Class: TripletexApi::EmployeeemploymentemploymentTypeApi
- Inherits:
-
Object
- Object
- TripletexApi::EmployeeemploymentemploymentTypeApi
- Defined in:
- lib/tripletex_api/api/employeeemploymentemployment_type_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#get_maritime_employment_type(opts = {}) ⇒ ListResponseEmploymentType
- BETA
-
Find all maritime employment type IDs.
-
#get_maritime_employment_type_with_http_info(opts = {}) ⇒ Array<(ListResponseEmploymentType, Fixnum, Hash)>
- BETA
-
Find all maritime employment type IDs.
-
#get_salary_type(opts = {}) ⇒ ListResponseEmploymentType
- BETA
-
Find all salary type IDs.
-
#get_salary_type_with_http_info(opts = {}) ⇒ Array<(ListResponseEmploymentType, Fixnum, Hash)>
- BETA
-
Find all salary type IDs.
-
#get_schedule_type(opts = {}) ⇒ ListResponseEmploymentType
- BETA
-
Find all schedule type IDs.
-
#get_schedule_type_with_http_info(opts = {}) ⇒ Array<(ListResponseEmploymentType, Fixnum, Hash)>
- BETA
-
Find all schedule type IDs.
-
#initialize(api_client = ApiClient.default) ⇒ EmployeeemploymentemploymentTypeApi
constructor
A new instance of EmployeeemploymentemploymentTypeApi.
-
#search(opts = {}) ⇒ ListResponseEmploymentType
- BETA
-
Find all employment type IDs.
-
#search_with_http_info(opts = {}) ⇒ Array<(ListResponseEmploymentType, Fixnum, Hash)>
- BETA
-
Find all employment type IDs.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ EmployeeemploymentemploymentTypeApi
Returns a new instance of EmployeeemploymentemploymentTypeApi.
19 20 21 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
17 18 19 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 17 def api_client @api_client end |
Instance Method Details
#get_maritime_employment_type(opts = {}) ⇒ ListResponseEmploymentType
- BETA
-
Find all maritime employment type IDs.
32 33 34 35 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 32 def get_maritime_employment_type(opts = {}) data, _status_code, _headers = get_maritime_employment_type_with_http_info(opts) return data end |
#get_maritime_employment_type_with_http_info(opts = {}) ⇒ Array<(ListResponseEmploymentType, Fixnum, Hash)>
- BETA
-
Find all maritime employment type IDs.
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 46 def get_maritime_employment_type_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: EmployeeemploymentemploymentTypeApi.get_maritime_employment_type ..." end if @api_client.config.client_side_validation && opts[:'type'] && !['SHIP_REGISTER', 'SHIP_TYPE', 'TRADE_AREA'].include?(opts[:'type']) fail ArgumentError, 'invalid value for "type", must be one of SHIP_REGISTER, SHIP_TYPE, TRADE_AREA' end # resource path local_var_path = "/employee/employment/employmentType/maritimeEmploymentType" # query parameters query_params = {} query_params[:'type'] = opts[:'type'] if !opts[:'type'].nil? query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil? query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? # header parameters header_params = {} # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['tokenAuthScheme'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ListResponseEmploymentType') if @api_client.config.debugging @api_client.config.logger.debug "API called: EmployeeemploymentemploymentTypeApi#get_maritime_employment_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_salary_type(opts = {}) ⇒ ListResponseEmploymentType
- BETA
-
Find all salary type IDs.
94 95 96 97 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 94 def get_salary_type(opts = {}) data, _status_code, _headers = get_salary_type_with_http_info(opts) return data end |
#get_salary_type_with_http_info(opts = {}) ⇒ Array<(ListResponseEmploymentType, Fixnum, Hash)>
- BETA
-
Find all salary type IDs.
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 107 def get_salary_type_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: EmployeeemploymentemploymentTypeApi.get_salary_type ..." end # resource path local_var_path = "/employee/employment/employmentType/salaryType" # query parameters query_params = {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil? query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? # header parameters header_params = {} # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['tokenAuthScheme'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ListResponseEmploymentType') if @api_client.config.debugging @api_client.config.logger.debug "API called: EmployeeemploymentemploymentTypeApi#get_salary_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_schedule_type(opts = {}) ⇒ ListResponseEmploymentType
- BETA
-
Find all schedule type IDs.
151 152 153 154 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 151 def get_schedule_type(opts = {}) data, _status_code, _headers = get_schedule_type_with_http_info(opts) return data end |
#get_schedule_type_with_http_info(opts = {}) ⇒ Array<(ListResponseEmploymentType, Fixnum, Hash)>
- BETA
-
Find all schedule type IDs.
164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 164 def get_schedule_type_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: EmployeeemploymentemploymentTypeApi.get_schedule_type ..." end # resource path local_var_path = "/employee/employment/employmentType/scheduleType" # query parameters query_params = {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil? query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? # header parameters header_params = {} # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['tokenAuthScheme'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ListResponseEmploymentType') if @api_client.config.debugging @api_client.config.logger.debug "API called: EmployeeemploymentemploymentTypeApi#get_schedule_type\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#search(opts = {}) ⇒ ListResponseEmploymentType
- BETA
-
Find all employment type IDs.
208 209 210 211 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 208 def search(opts = {}) data, _status_code, _headers = search_with_http_info(opts) return data end |
#search_with_http_info(opts = {}) ⇒ Array<(ListResponseEmploymentType, Fixnum, Hash)>
- BETA
-
Find all employment type IDs.
221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/tripletex_api/api/employeeemploymentemployment_type_api.rb', line 221 def search_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug "Calling API: EmployeeemploymentemploymentTypeApi.search ..." end # resource path local_var_path = "/employee/employment/employmentType" # query parameters query_params = {} query_params[:'from'] = opts[:'from'] if !opts[:'from'].nil? query_params[:'count'] = opts[:'count'] if !opts[:'count'].nil? query_params[:'sorting'] = opts[:'sorting'] if !opts[:'sorting'].nil? query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil? # header parameters header_params = {} # form parameters form_params = {} # http body (model) post_body = nil auth_names = ['tokenAuthScheme'] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'ListResponseEmploymentType') if @api_client.config.debugging @api_client.config.logger.debug "API called: EmployeeemploymentemploymentTypeApi#search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |