Class: XeroRuby::PayrollAuApi
- Inherits:
-
Object
- Object
- XeroRuby::PayrollAuApi
- Defined in:
- lib/xero-ruby/api/payroll_au_api.rb
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_employee(xero_tenant_id, employee, opts = {}) ⇒ Employees
Use this method to create a payroll employee.
-
#create_employee_with_http_info(xero_tenant_id, employee, opts = {}) ⇒ Array<(Employees, Integer, Hash)>
Use this method to create a payroll employee.
-
#create_leave_application(xero_tenant_id, leave_application, opts = {}) ⇒ LeaveApplications
Use this method to create a Leave Application.
-
#create_leave_application_with_http_info(xero_tenant_id, leave_application, opts = {}) ⇒ Array<(LeaveApplications, Integer, Hash)>
Use this method to create a Leave Application.
-
#create_pay_item(xero_tenant_id, pay_item, opts = {}) ⇒ PayItems
Use this method to create a Pay Item.
-
#create_pay_item_with_http_info(xero_tenant_id, pay_item, opts = {}) ⇒ Array<(PayItems, Integer, Hash)>
Use this method to create a Pay Item.
-
#create_pay_run(xero_tenant_id, pay_run, opts = {}) ⇒ PayRuns
Use this method to create a PayRun.
-
#create_pay_run_with_http_info(xero_tenant_id, pay_run, opts = {}) ⇒ Array<(PayRuns, Integer, Hash)>
Use this method to create a PayRun.
-
#create_payroll_calendar(xero_tenant_id, payroll_calendar, opts = {}) ⇒ PayrollCalendars
Use this method to create a Payroll Calendars.
-
#create_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar, opts = {}) ⇒ Array<(PayrollCalendars, Integer, Hash)>
Use this method to create a Payroll Calendars.
-
#create_superfund(xero_tenant_id, super_fund, opts = {}) ⇒ SuperFunds
Use this method to create a super fund.
-
#create_superfund_with_http_info(xero_tenant_id, super_fund, opts = {}) ⇒ Array<(SuperFunds, Integer, Hash)>
Use this method to create a super fund.
-
#create_timesheet(xero_tenant_id, timesheet, opts = {}) ⇒ Timesheets
Use this method to create a timesheet.
-
#create_timesheet_with_http_info(xero_tenant_id, timesheet, opts = {}) ⇒ Array<(Timesheets, Integer, Hash)>
Use this method to create a timesheet.
-
#get_employee(xero_tenant_id, employee_id, opts = {}) ⇒ Employees
searches for an employee by unique id.
-
#get_employee_with_http_info(xero_tenant_id, employee_id, opts = {}) ⇒ Array<(Employees, Integer, Hash)>
searches for an employee by unique id.
-
#get_employees(xero_tenant_id, opts = {}) ⇒ Employees
searches employees.
-
#get_employees_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(Employees, Integer, Hash)>
searches employees.
-
#get_leave_application(xero_tenant_id, leave_application_id, opts = {}) ⇒ LeaveApplications
searches for an Leave Application by unique id.
-
#get_leave_application_with_http_info(xero_tenant_id, leave_application_id, opts = {}) ⇒ Array<(LeaveApplications, Integer, Hash)>
searches for an Leave Application by unique id.
-
#get_leave_applications(xero_tenant_id, opts = {}) ⇒ LeaveApplications
searches Leave Applications.
-
#get_leave_applications_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(LeaveApplications, Integer, Hash)>
searches Leave Applications.
-
#get_pay_items(xero_tenant_id, opts = {}) ⇒ PayItems
searches Pay Items.
-
#get_pay_items_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(PayItems, Integer, Hash)>
searches Pay Items.
-
#get_pay_run(xero_tenant_id, pay_run_id, opts = {}) ⇒ PayRuns
searches for an payrun by unique id.
-
#get_pay_run_with_http_info(xero_tenant_id, pay_run_id, opts = {}) ⇒ Array<(PayRuns, Integer, Hash)>
searches for an payrun by unique id.
-
#get_pay_runs(xero_tenant_id, opts = {}) ⇒ PayRuns
searches PayRuns.
-
#get_pay_runs_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(PayRuns, Integer, Hash)>
searches PayRuns.
-
#get_payroll_calendar(xero_tenant_id, payroll_calendar_id, opts = {}) ⇒ PayrollCalendars
searches Payroll Calendars.
-
#get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id, opts = {}) ⇒ Array<(PayrollCalendars, Integer, Hash)>
searches Payroll Calendars.
-
#get_payroll_calendars(xero_tenant_id, opts = {}) ⇒ PayrollCalendars
searches Payroll Calendars.
-
#get_payroll_calendars_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(PayrollCalendars, Integer, Hash)>
searches Payroll Calendars.
-
#get_payslip(xero_tenant_id, payslip_id, opts = {}) ⇒ PayslipObject
searches for an payslip by unique id.
-
#get_payslip_with_http_info(xero_tenant_id, payslip_id, opts = {}) ⇒ Array<(PayslipObject, Integer, Hash)>
searches for an payslip by unique id.
-
#get_settings(xero_tenant_id, opts = {}) ⇒ SettingsObject
retrieve settings.
-
#get_settings_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(SettingsObject, Integer, Hash)>
retrieve settings.
-
#get_superfund(xero_tenant_id, super_fund_id, opts = {}) ⇒ SuperFunds
searches for an Superfund by unique id.
-
#get_superfund_products(xero_tenant_id, opts = {}) ⇒ SuperFundProducts
searches SuperfundProducts.
-
#get_superfund_products_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(SuperFundProducts, Integer, Hash)>
searches SuperfundProducts.
-
#get_superfund_with_http_info(xero_tenant_id, super_fund_id, opts = {}) ⇒ Array<(SuperFunds, Integer, Hash)>
searches for an Superfund by unique id.
-
#get_superfunds(xero_tenant_id, opts = {}) ⇒ SuperFunds
searches SuperFunds.
-
#get_superfunds_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(SuperFunds, Integer, Hash)>
searches SuperFunds.
-
#get_timesheet(xero_tenant_id, timesheet_id, opts = {}) ⇒ TimesheetObject
searches for an timesheet by unique id.
-
#get_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts = {}) ⇒ Array<(TimesheetObject, Integer, Hash)>
searches for an timesheet by unique id.
-
#get_timesheets(xero_tenant_id, opts = {}) ⇒ Timesheets
searches timesheets.
-
#get_timesheets_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(Timesheets, Integer, Hash)>
searches timesheets.
-
#initialize(api_client = ApiClient.new) ⇒ PayrollAuApi
constructor
A new instance of PayrollAuApi.
-
#update_employee(xero_tenant_id, employee_id, opts = {}) ⇒ Employees
Update an Employee Update properties on a single employee.
-
#update_employee_with_http_info(xero_tenant_id, employee_id, opts = {}) ⇒ Array<(Employees, Integer, Hash)>
Update an Employee Update properties on a single employee.
-
#update_leave_application(xero_tenant_id, leave_application_id, leave_application, opts = {}) ⇒ LeaveApplications
Use this method to update a Leave Application.
-
#update_leave_application_with_http_info(xero_tenant_id, leave_application_id, leave_application, opts = {}) ⇒ Array<(LeaveApplications, Integer, Hash)>
Use this method to update a Leave Application.
-
#update_pay_run(xero_tenant_id, pay_run_id, opts = {}) ⇒ PayRuns
Update a PayRun Update properties on a single PayRun.
-
#update_pay_run_with_http_info(xero_tenant_id, pay_run_id, opts = {}) ⇒ Array<(PayRuns, Integer, Hash)>
Update a PayRun Update properties on a single PayRun.
-
#update_payslip(xero_tenant_id, payslip_id, opts = {}) ⇒ Payslips
Update a Payslip Update lines on a single payslips.
-
#update_payslip_with_http_info(xero_tenant_id, payslip_id, opts = {}) ⇒ Array<(Payslips, Integer, Hash)>
Update a Payslip Update lines on a single payslips.
-
#update_superfund(xero_tenant_id, super_fund_id, opts = {}) ⇒ SuperFunds
Update a Superfund Update properties on a single Superfund.
-
#update_superfund_with_http_info(xero_tenant_id, super_fund_id, opts = {}) ⇒ Array<(SuperFunds, Integer, Hash)>
Update a Superfund Update properties on a single Superfund.
-
#update_timesheet(xero_tenant_id, timesheet_id, opts = {}) ⇒ Timesheets
Update a Timesheet Update properties on a single timesheet.
-
#update_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts = {}) ⇒ Array<(Timesheets, Integer, Hash)>
Update a Timesheet Update properties on a single timesheet.
Constructor Details
#initialize(api_client = ApiClient.new) ⇒ PayrollAuApi
Returns a new instance of PayrollAuApi.
17 18 19 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 17 def initialize(api_client = ApiClient.new) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
15 16 17 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 15 def api_client @api_client end |
Instance Method Details
#create_employee(xero_tenant_id, employee, opts = {}) ⇒ Employees
Use this method to create a payroll employee
25 26 27 28 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 25 def create_employee(xero_tenant_id, employee, opts = {}) data, _status_code, _headers = create_employee_with_http_info(xero_tenant_id, employee, opts) data end |
#create_employee_with_http_info(xero_tenant_id, employee, opts = {}) ⇒ Array<(Employees, Integer, Hash)>
Use this method to create a payroll employee
35 36 37 38 39 40 41 42 43 44 45 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 85 86 87 88 89 90 91 92 93 94 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 35 def create_employee_with_http_info(xero_tenant_id, employee, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_employee ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.create_employee" end # verify the required parameter 'employee' is set if @api_client.config.client_side_validation && employee.nil? fail ArgumentError, "Missing the required parameter 'employee' when calling PayrollAuApi.create_employee" end # resource path local_var_path = '/Employees' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(employee) # return_type return_type = opts[:return_type] || 'Employees' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#create_employee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_leave_application(xero_tenant_id, leave_application, opts = {}) ⇒ LeaveApplications
Use this method to create a Leave Application
101 102 103 104 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 101 def create_leave_application(xero_tenant_id, leave_application, opts = {}) data, _status_code, _headers = create_leave_application_with_http_info(xero_tenant_id, leave_application, opts) data end |
#create_leave_application_with_http_info(xero_tenant_id, leave_application, opts = {}) ⇒ Array<(LeaveApplications, Integer, Hash)>
Use this method to create a Leave Application
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 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 111 def create_leave_application_with_http_info(xero_tenant_id, leave_application, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_leave_application ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.create_leave_application" end # verify the required parameter 'leave_application' is set if @api_client.config.client_side_validation && leave_application.nil? fail ArgumentError, "Missing the required parameter 'leave_application' when calling PayrollAuApi.create_leave_application" end # resource path local_var_path = '/LeaveApplications' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(leave_application) # return_type return_type = opts[:return_type] || 'LeaveApplications' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#create_leave_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_pay_item(xero_tenant_id, pay_item, opts = {}) ⇒ PayItems
Use this method to create a Pay Item
177 178 179 180 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 177 def create_pay_item(xero_tenant_id, pay_item, opts = {}) data, _status_code, _headers = create_pay_item_with_http_info(xero_tenant_id, pay_item, opts) data end |
#create_pay_item_with_http_info(xero_tenant_id, pay_item, opts = {}) ⇒ Array<(PayItems, Integer, Hash)>
Use this method to create a Pay Item
187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 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 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 187 def create_pay_item_with_http_info(xero_tenant_id, pay_item, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_pay_item ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.create_pay_item" end # verify the required parameter 'pay_item' is set if @api_client.config.client_side_validation && pay_item.nil? fail ArgumentError, "Missing the required parameter 'pay_item' when calling PayrollAuApi.create_pay_item" end # resource path local_var_path = '/PayItems' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(pay_item) # return_type return_type = opts[:return_type] || 'PayItems' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#create_pay_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_pay_run(xero_tenant_id, pay_run, opts = {}) ⇒ PayRuns
Use this method to create a PayRun
253 254 255 256 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 253 def create_pay_run(xero_tenant_id, pay_run, opts = {}) data, _status_code, _headers = create_pay_run_with_http_info(xero_tenant_id, pay_run, opts) data end |
#create_pay_run_with_http_info(xero_tenant_id, pay_run, opts = {}) ⇒ Array<(PayRuns, Integer, Hash)>
Use this method to create a PayRun
263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 263 def create_pay_run_with_http_info(xero_tenant_id, pay_run, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_pay_run ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.create_pay_run" end # verify the required parameter 'pay_run' is set if @api_client.config.client_side_validation && pay_run.nil? fail ArgumentError, "Missing the required parameter 'pay_run' when calling PayrollAuApi.create_pay_run" end # resource path local_var_path = '/PayRuns' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(pay_run) # return_type return_type = opts[:return_type] || 'PayRuns' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#create_pay_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_payroll_calendar(xero_tenant_id, payroll_calendar, opts = {}) ⇒ PayrollCalendars
Use this method to create a Payroll Calendars
329 330 331 332 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 329 def create_payroll_calendar(xero_tenant_id, payroll_calendar, opts = {}) data, _status_code, _headers = create_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar, opts) data end |
#create_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar, opts = {}) ⇒ Array<(PayrollCalendars, Integer, Hash)>
Use this method to create a Payroll Calendars
339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 339 def create_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_payroll_calendar ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.create_payroll_calendar" end # verify the required parameter 'payroll_calendar' is set if @api_client.config.client_side_validation && payroll_calendar.nil? fail ArgumentError, "Missing the required parameter 'payroll_calendar' when calling PayrollAuApi.create_payroll_calendar" end # resource path local_var_path = '/PayrollCalendars' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(payroll_calendar) # return_type return_type = opts[:return_type] || 'PayrollCalendars' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#create_payroll_calendar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_superfund(xero_tenant_id, super_fund, opts = {}) ⇒ SuperFunds
Use this method to create a super fund
405 406 407 408 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 405 def create_superfund(xero_tenant_id, super_fund, opts = {}) data, _status_code, _headers = create_superfund_with_http_info(xero_tenant_id, super_fund, opts) data end |
#create_superfund_with_http_info(xero_tenant_id, super_fund, opts = {}) ⇒ Array<(SuperFunds, Integer, Hash)>
Use this method to create a super fund
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 415 def create_superfund_with_http_info(xero_tenant_id, super_fund, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_superfund ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.create_superfund" end # verify the required parameter 'super_fund' is set if @api_client.config.client_side_validation && super_fund.nil? fail ArgumentError, "Missing the required parameter 'super_fund' when calling PayrollAuApi.create_superfund" end # resource path local_var_path = '/Superfunds' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(super_fund) # return_type return_type = opts[:return_type] || 'SuperFunds' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#create_superfund\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#create_timesheet(xero_tenant_id, timesheet, opts = {}) ⇒ Timesheets
Use this method to create a timesheet
481 482 483 484 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 481 def create_timesheet(xero_tenant_id, timesheet, opts = {}) data, _status_code, _headers = create_timesheet_with_http_info(xero_tenant_id, timesheet, opts) data end |
#create_timesheet_with_http_info(xero_tenant_id, timesheet, opts = {}) ⇒ Array<(Timesheets, Integer, Hash)>
Use this method to create a timesheet
491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 491 def create_timesheet_with_http_info(xero_tenant_id, timesheet, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.create_timesheet ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.create_timesheet" end # verify the required parameter 'timesheet' is set if @api_client.config.client_side_validation && timesheet.nil? fail ArgumentError, "Missing the required parameter 'timesheet' when calling PayrollAuApi.create_timesheet" end # resource path local_var_path = '/Timesheets' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(timesheet) # return_type return_type = opts[:return_type] || 'Timesheets' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#create_timesheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_employee(xero_tenant_id, employee_id, opts = {}) ⇒ Employees
searches for an employee by unique id
557 558 559 560 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 557 def get_employee(xero_tenant_id, employee_id, opts = {}) data, _status_code, _headers = get_employee_with_http_info(xero_tenant_id, employee_id, opts) data end |
#get_employee_with_http_info(xero_tenant_id, employee_id, opts = {}) ⇒ Array<(Employees, Integer, Hash)>
searches for an employee by unique id
567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 567 def get_employee_with_http_info(xero_tenant_id, employee_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_employee ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_employee" end # verify the required parameter 'employee_id' is set if @api_client.config.client_side_validation && employee_id.nil? fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollAuApi.get_employee" end # resource path local_var_path = '/Employees/{EmployeeId}'.sub('{' + 'EmployeeId' + '}', employee_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Employees' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_employee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_employees(xero_tenant_id, opts = {}) ⇒ Employees
searches employees
634 635 636 637 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 634 def get_employees(xero_tenant_id, opts = {}) data, _status_code, _headers = get_employees_with_http_info(xero_tenant_id, opts) data end |
#get_employees_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(Employees, Integer, Hash)>
searches employees
647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 647 def get_employees_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_employees ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_employees" end # resource path local_var_path = '/Employees' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Employees' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_leave_application(xero_tenant_id, leave_application_id, opts = {}) ⇒ LeaveApplications
searches for an Leave Application by unique id
711 712 713 714 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 711 def get_leave_application(xero_tenant_id, leave_application_id, opts = {}) data, _status_code, _headers = get_leave_application_with_http_info(xero_tenant_id, leave_application_id, opts) data end |
#get_leave_application_with_http_info(xero_tenant_id, leave_application_id, opts = {}) ⇒ Array<(LeaveApplications, Integer, Hash)>
searches for an Leave Application by unique id
721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 721 def get_leave_application_with_http_info(xero_tenant_id, leave_application_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_leave_application ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_leave_application" end # verify the required parameter 'leave_application_id' is set if @api_client.config.client_side_validation && leave_application_id.nil? fail ArgumentError, "Missing the required parameter 'leave_application_id' when calling PayrollAuApi.get_leave_application" end # resource path local_var_path = '/LeaveApplications/{LeaveApplicationId}'.sub('{' + 'LeaveApplicationId' + '}', leave_application_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'LeaveApplications' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_leave_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_leave_applications(xero_tenant_id, opts = {}) ⇒ LeaveApplications
searches Leave Applications
788 789 790 791 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 788 def get_leave_applications(xero_tenant_id, opts = {}) data, _status_code, _headers = get_leave_applications_with_http_info(xero_tenant_id, opts) data end |
#get_leave_applications_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(LeaveApplications, Integer, Hash)>
searches Leave Applications
801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 801 def get_leave_applications_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_leave_applications ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_leave_applications" end # resource path local_var_path = '/LeaveApplications' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'LeaveApplications' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_leave_applications\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_pay_items(xero_tenant_id, opts = {}) ⇒ PayItems
searches Pay Items
868 869 870 871 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 868 def get_pay_items(xero_tenant_id, opts = {}) data, _status_code, _headers = get_pay_items_with_http_info(xero_tenant_id, opts) data end |
#get_pay_items_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(PayItems, Integer, Hash)>
searches Pay Items
881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 881 def get_pay_items_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_items ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_pay_items" end # resource path local_var_path = '/PayItems' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PayItems' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_pay_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_pay_run(xero_tenant_id, pay_run_id, opts = {}) ⇒ PayRuns
searches for an payrun by unique id
945 946 947 948 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 945 def get_pay_run(xero_tenant_id, pay_run_id, opts = {}) data, _status_code, _headers = get_pay_run_with_http_info(xero_tenant_id, pay_run_id, opts) data end |
#get_pay_run_with_http_info(xero_tenant_id, pay_run_id, opts = {}) ⇒ Array<(PayRuns, Integer, Hash)>
searches for an payrun by unique id
955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 955 def get_pay_run_with_http_info(xero_tenant_id, pay_run_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_run ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_pay_run" end # verify the required parameter 'pay_run_id' is set if @api_client.config.client_side_validation && pay_run_id.nil? fail ArgumentError, "Missing the required parameter 'pay_run_id' when calling PayrollAuApi.get_pay_run" end # resource path local_var_path = '/PayRuns/{PayRunID}'.sub('{' + 'PayRunID' + '}', pay_run_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PayRuns' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_pay_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_pay_runs(xero_tenant_id, opts = {}) ⇒ PayRuns
searches PayRuns
1022 1023 1024 1025 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1022 def get_pay_runs(xero_tenant_id, opts = {}) data, _status_code, _headers = get_pay_runs_with_http_info(xero_tenant_id, opts) data end |
#get_pay_runs_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(PayRuns, Integer, Hash)>
searches PayRuns
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1035 def get_pay_runs_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_runs ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_pay_runs" end # resource path local_var_path = '/PayRuns' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PayRuns' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_pay_runs\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_payroll_calendar(xero_tenant_id, payroll_calendar_id, opts = {}) ⇒ PayrollCalendars
searches Payroll Calendars
1099 1100 1101 1102 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1099 def get_payroll_calendar(xero_tenant_id, payroll_calendar_id, opts = {}) data, _status_code, _headers = get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id, opts) data end |
#get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id, opts = {}) ⇒ Array<(PayrollCalendars, Integer, Hash)>
searches Payroll Calendars
1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1109 def get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payroll_calendar ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_payroll_calendar" end # verify the required parameter 'payroll_calendar_id' is set if @api_client.config.client_side_validation && payroll_calendar_id.nil? fail ArgumentError, "Missing the required parameter 'payroll_calendar_id' when calling PayrollAuApi.get_payroll_calendar" end # resource path local_var_path = '/PayrollCalendars/{PayrollCalendarID}'.sub('{' + 'PayrollCalendarID' + '}', payroll_calendar_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PayrollCalendars' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_payroll_calendar\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_payroll_calendars(xero_tenant_id, opts = {}) ⇒ PayrollCalendars
searches Payroll Calendars
1176 1177 1178 1179 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1176 def get_payroll_calendars(xero_tenant_id, opts = {}) data, _status_code, _headers = get_payroll_calendars_with_http_info(xero_tenant_id, opts) data end |
#get_payroll_calendars_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(PayrollCalendars, Integer, Hash)>
searches Payroll Calendars
1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1189 def get_payroll_calendars_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payroll_calendars ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_payroll_calendars" end # resource path local_var_path = '/PayrollCalendars' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PayrollCalendars' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_payroll_calendars\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_payslip(xero_tenant_id, payslip_id, opts = {}) ⇒ PayslipObject
searches for an payslip by unique id
1253 1254 1255 1256 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1253 def get_payslip(xero_tenant_id, payslip_id, opts = {}) data, _status_code, _headers = get_payslip_with_http_info(xero_tenant_id, payslip_id, opts) data end |
#get_payslip_with_http_info(xero_tenant_id, payslip_id, opts = {}) ⇒ Array<(PayslipObject, Integer, Hash)>
searches for an payslip by unique id
1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1263 def get_payslip_with_http_info(xero_tenant_id, payslip_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payslip ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_payslip" end # verify the required parameter 'payslip_id' is set if @api_client.config.client_side_validation && payslip_id.nil? fail ArgumentError, "Missing the required parameter 'payslip_id' when calling PayrollAuApi.get_payslip" end # resource path local_var_path = '/Payslip/{PayslipID}'.sub('{' + 'PayslipID' + '}', payslip_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'PayslipObject' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_payslip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_settings(xero_tenant_id, opts = {}) ⇒ SettingsObject
retrieve settings
1326 1327 1328 1329 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1326 def get_settings(xero_tenant_id, opts = {}) data, _status_code, _headers = get_settings_with_http_info(xero_tenant_id, opts) data end |
#get_settings_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(SettingsObject, Integer, Hash)>
retrieve settings
1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1335 def get_settings_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_settings ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_settings" end # resource path local_var_path = '/Settings' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SettingsObject' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_superfund(xero_tenant_id, super_fund_id, opts = {}) ⇒ SuperFunds
searches for an Superfund by unique id
1395 1396 1397 1398 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1395 def get_superfund(xero_tenant_id, super_fund_id, opts = {}) data, _status_code, _headers = get_superfund_with_http_info(xero_tenant_id, super_fund_id, opts) data end |
#get_superfund_products(xero_tenant_id, opts = {}) ⇒ SuperFundProducts
searches SuperfundProducts
1470 1471 1472 1473 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1470 def get_superfund_products(xero_tenant_id, opts = {}) data, _status_code, _headers = get_superfund_products_with_http_info(xero_tenant_id, opts) data end |
#get_superfund_products_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(SuperFundProducts, Integer, Hash)>
searches SuperfundProducts
1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1481 def get_superfund_products_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfund_products ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_superfund_products" end # resource path local_var_path = '/SuperfundProducts' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} query_params[:'ABN'] = opts[:'abn'] if !opts[:'abn'].nil? query_params[:'USI'] = opts[:'usi'] if !opts[:'usi'].nil? # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SuperFundProducts' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_superfund_products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_superfund_with_http_info(xero_tenant_id, super_fund_id, opts = {}) ⇒ Array<(SuperFunds, Integer, Hash)>
searches for an Superfund by unique id
1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1405 def get_superfund_with_http_info(xero_tenant_id, super_fund_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfund ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_superfund" end # verify the required parameter 'super_fund_id' is set if @api_client.config.client_side_validation && super_fund_id.nil? fail ArgumentError, "Missing the required parameter 'super_fund_id' when calling PayrollAuApi.get_superfund" end # resource path local_var_path = '/Superfunds/{SuperFundID}'.sub('{' + 'SuperFundID' + '}', super_fund_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SuperFunds' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_superfund\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_superfunds(xero_tenant_id, opts = {}) ⇒ SuperFunds
searches SuperFunds
1546 1547 1548 1549 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1546 def get_superfunds(xero_tenant_id, opts = {}) data, _status_code, _headers = get_superfunds_with_http_info(xero_tenant_id, opts) data end |
#get_superfunds_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(SuperFunds, Integer, Hash)>
searches SuperFunds
1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1559 def get_superfunds_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfunds ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_superfunds" end # resource path local_var_path = '/Superfunds' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'SuperFunds' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_superfunds\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_timesheet(xero_tenant_id, timesheet_id, opts = {}) ⇒ TimesheetObject
searches for an timesheet by unique id
1623 1624 1625 1626 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1623 def get_timesheet(xero_tenant_id, timesheet_id, opts = {}) data, _status_code, _headers = get_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts) data end |
#get_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts = {}) ⇒ Array<(TimesheetObject, Integer, Hash)>
searches for an timesheet by unique id
1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1633 def get_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_timesheet ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_timesheet" end # verify the required parameter 'timesheet_id' is set if @api_client.config.client_side_validation && timesheet_id.nil? fail ArgumentError, "Missing the required parameter 'timesheet_id' when calling PayrollAuApi.get_timesheet" end # resource path local_var_path = '/Timesheets/{TimesheetID}'.sub('{' + 'TimesheetID' + '}', timesheet_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'TimesheetObject' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_timesheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#get_timesheets(xero_tenant_id, opts = {}) ⇒ Timesheets
searches timesheets
1700 1701 1702 1703 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1700 def get_timesheets(xero_tenant_id, opts = {}) data, _status_code, _headers = get_timesheets_with_http_info(xero_tenant_id, opts) data end |
#get_timesheets_with_http_info(xero_tenant_id, opts = {}) ⇒ Array<(Timesheets, Integer, Hash)>
searches timesheets
1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1713 def get_timesheets_with_http_info(xero_tenant_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.get_timesheets ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.get_timesheets" end # resource path local_var_path = '/Timesheets' # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} query_params[:'where'] = opts[:'where'] if !opts[:'where'].nil? query_params[:'order'] = opts[:'order'] if !opts[:'order'].nil? query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil? # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id header_params[:'If-Modified-Since'] = opts[:'if_modified_since'] if !opts[:'if_modified_since'].nil? # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] # return_type return_type = opts[:return_type] || 'Timesheets' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:GET, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#get_timesheets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_employee(xero_tenant_id, employee_id, opts = {}) ⇒ Employees
Update an Employee Update properties on a single employee
1779 1780 1781 1782 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1779 def update_employee(xero_tenant_id, employee_id, opts = {}) data, _status_code, _headers = update_employee_with_http_info(xero_tenant_id, employee_id, opts) data end |
#update_employee_with_http_info(xero_tenant_id, employee_id, opts = {}) ⇒ Array<(Employees, Integer, Hash)>
Update an Employee Update properties on a single employee
1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1791 def update_employee_with_http_info(xero_tenant_id, employee_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_employee ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.update_employee" end # verify the required parameter 'employee_id' is set if @api_client.config.client_side_validation && employee_id.nil? fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollAuApi.update_employee" end # resource path local_var_path = '/Employees/{EmployeeId}'.sub('{' + 'EmployeeId' + '}', employee_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(opts[:'employee']) # return_type return_type = opts[:return_type] || 'Employees' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#update_employee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_leave_application(xero_tenant_id, leave_application_id, leave_application, opts = {}) ⇒ LeaveApplications
Use this method to update a Leave Application
1858 1859 1860 1861 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1858 def update_leave_application(xero_tenant_id, leave_application_id, leave_application, opts = {}) data, _status_code, _headers = update_leave_application_with_http_info(xero_tenant_id, leave_application_id, leave_application, opts) data end |
#update_leave_application_with_http_info(xero_tenant_id, leave_application_id, leave_application, opts = {}) ⇒ Array<(LeaveApplications, Integer, Hash)>
Use this method to update a Leave Application
1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1869 def update_leave_application_with_http_info(xero_tenant_id, leave_application_id, leave_application, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_leave_application ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.update_leave_application" end # verify the required parameter 'leave_application_id' is set if @api_client.config.client_side_validation && leave_application_id.nil? fail ArgumentError, "Missing the required parameter 'leave_application_id' when calling PayrollAuApi.update_leave_application" end # verify the required parameter 'leave_application' is set if @api_client.config.client_side_validation && leave_application.nil? fail ArgumentError, "Missing the required parameter 'leave_application' when calling PayrollAuApi.update_leave_application" end # resource path local_var_path = '/LeaveApplications/{LeaveApplicationId}'.sub('{' + 'LeaveApplicationId' + '}', leave_application_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(leave_application) # return_type return_type = opts[:return_type] || 'LeaveApplications' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#update_leave_application\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_pay_run(xero_tenant_id, pay_run_id, opts = {}) ⇒ PayRuns
Update a PayRun Update properties on a single PayRun
1941 1942 1943 1944 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1941 def update_pay_run(xero_tenant_id, pay_run_id, opts = {}) data, _status_code, _headers = update_pay_run_with_http_info(xero_tenant_id, pay_run_id, opts) data end |
#update_pay_run_with_http_info(xero_tenant_id, pay_run_id, opts = {}) ⇒ Array<(PayRuns, Integer, Hash)>
Update a PayRun Update properties on a single PayRun
1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 1953 def update_pay_run_with_http_info(xero_tenant_id, pay_run_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_pay_run ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.update_pay_run" end # verify the required parameter 'pay_run_id' is set if @api_client.config.client_side_validation && pay_run_id.nil? fail ArgumentError, "Missing the required parameter 'pay_run_id' when calling PayrollAuApi.update_pay_run" end # resource path local_var_path = '/PayRuns/{PayRunID}'.sub('{' + 'PayRunID' + '}', pay_run_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(opts[:'pay_run']) # return_type return_type = opts[:return_type] || 'PayRuns' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#update_pay_run\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_payslip(xero_tenant_id, payslip_id, opts = {}) ⇒ Payslips
Update a Payslip Update lines on a single payslips
2021 2022 2023 2024 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 2021 def update_payslip(xero_tenant_id, payslip_id, opts = {}) data, _status_code, _headers = update_payslip_with_http_info(xero_tenant_id, payslip_id, opts) data end |
#update_payslip_with_http_info(xero_tenant_id, payslip_id, opts = {}) ⇒ Array<(Payslips, Integer, Hash)>
Update a Payslip Update lines on a single payslips
2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 2033 def update_payslip_with_http_info(xero_tenant_id, payslip_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_payslip ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.update_payslip" end # verify the required parameter 'payslip_id' is set if @api_client.config.client_side_validation && payslip_id.nil? fail ArgumentError, "Missing the required parameter 'payslip_id' when calling PayrollAuApi.update_payslip" end # resource path local_var_path = '/Payslip/{PayslipID}'.sub('{' + 'PayslipID' + '}', payslip_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(opts[:'payslip_lines']) # return_type return_type = opts[:return_type] || 'Payslips' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#update_payslip\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_superfund(xero_tenant_id, super_fund_id, opts = {}) ⇒ SuperFunds
Update a Superfund Update properties on a single Superfund
2101 2102 2103 2104 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 2101 def update_superfund(xero_tenant_id, super_fund_id, opts = {}) data, _status_code, _headers = update_superfund_with_http_info(xero_tenant_id, super_fund_id, opts) data end |
#update_superfund_with_http_info(xero_tenant_id, super_fund_id, opts = {}) ⇒ Array<(SuperFunds, Integer, Hash)>
Update a Superfund Update properties on a single Superfund
2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 2113 def update_superfund_with_http_info(xero_tenant_id, super_fund_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_superfund ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.update_superfund" end # verify the required parameter 'super_fund_id' is set if @api_client.config.client_side_validation && super_fund_id.nil? fail ArgumentError, "Missing the required parameter 'super_fund_id' when calling PayrollAuApi.update_superfund" end # resource path local_var_path = '/Superfunds/{SuperFundID}'.sub('{' + 'SuperFundID' + '}', super_fund_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(opts[:'super_fund']) # return_type return_type = opts[:return_type] || 'SuperFunds' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#update_superfund\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |
#update_timesheet(xero_tenant_id, timesheet_id, opts = {}) ⇒ Timesheets
Update a Timesheet Update properties on a single timesheet
2181 2182 2183 2184 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 2181 def update_timesheet(xero_tenant_id, timesheet_id, opts = {}) data, _status_code, _headers = update_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts) data end |
#update_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts = {}) ⇒ Array<(Timesheets, Integer, Hash)>
Update a Timesheet Update properties on a single timesheet
2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 |
# File 'lib/xero-ruby/api/payroll_au_api.rb', line 2193 def update_timesheet_with_http_info(xero_tenant_id, timesheet_id, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: PayrollAuApi.update_timesheet ...' end # verify the required parameter 'xero_tenant_id' is set if @api_client.config.client_side_validation && xero_tenant_id.nil? fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollAuApi.update_timesheet" end # verify the required parameter 'timesheet_id' is set if @api_client.config.client_side_validation && timesheet_id.nil? fail ArgumentError, "Missing the required parameter 'timesheet_id' when calling PayrollAuApi.update_timesheet" end # resource path local_var_path = '/Timesheets/{TimesheetID}'.sub('{' + 'TimesheetID' + '}', timesheet_id.to_s) # camelize keys of incoming `where` opts opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil? # query parameters query_params = opts[:query_params] || {} # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations: query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil? query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil? # header parameters header_params = opts[:header_params] || {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params[:'Xero-Tenant-Id'] = xero_tenant_id # form parameters form_params = opts[:form_params] || {} # http body (model) post_body = opts[:body] || @api_client.object_to_http_body(opts[:'timesheet']) # return_type return_type = opts[:return_type] || 'Timesheets' # auth_names auth_names = opts[:auth_names] || ['OAuth2'] = opts.merge( :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => return_type ) data, status_code, headers = @api_client.call_api(:POST, local_var_path, "PayrollAuApi", ) if @api_client.config.debugging @api_client.config.logger.debug "API called: PayrollAuApi#update_timesheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end |