xero-ruby 2.6.2 → 2.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +18 -8
- data/lib/xero-ruby.rb +4 -2
- data/lib/xero-ruby/api/accounting_api.rb +446 -446
- data/lib/xero-ruby/api/asset_api.rb +3 -7
- data/lib/xero-ruby/api/files_api.rb +49 -55
- data/lib/xero-ruby/api/payroll_au_api.rb +63 -63
- data/lib/xero-ruby/api/payroll_nz_api.rb +171 -171
- data/lib/xero-ruby/api/payroll_uk_api.rb +173 -173
- data/lib/xero-ruby/api/project_api.rb +45 -45
- data/lib/xero-ruby/api_client.rb +22 -87
- data/lib/xero-ruby/api_error.rb +1 -1
- data/lib/xero-ruby/configuration.rb +3 -3
- data/lib/xero-ruby/models/accounting/account.rb +1 -1
- data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +1 -1
- data/lib/xero-ruby/models/accounting/action.rb +1 -1
- data/lib/xero-ruby/models/accounting/actions.rb +1 -1
- data/lib/xero-ruby/models/accounting/address.rb +1 -1
- data/lib/xero-ruby/models/accounting/address_for_organisation.rb +1 -1
- data/lib/xero-ruby/models/accounting/allocation.rb +1 -1
- data/lib/xero-ruby/models/accounting/allocations.rb +1 -1
- data/lib/xero-ruby/models/accounting/attachment.rb +1 -1
- data/lib/xero-ruby/models/accounting/attachments.rb +1 -1
- data/lib/xero-ruby/models/accounting/balance_details.rb +1 -1
- data/lib/xero-ruby/models/accounting/balances.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +1 -1
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +1 -1
- data/lib/xero-ruby/models/accounting/batch_payment.rb +1 -1
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +1 -1
- data/lib/xero-ruby/models/accounting/batch_payments.rb +1 -1
- data/lib/xero-ruby/models/accounting/bill.rb +1 -1
- data/lib/xero-ruby/models/accounting/branding_theme.rb +1 -1
- data/lib/xero-ruby/models/accounting/branding_themes.rb +1 -1
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +1 -1
- data/lib/xero-ruby/models/{files/file_response204.rb → accounting/cis_org_settings.rb} +16 -14
- data/lib/xero-ruby/models/accounting/cis_setting.rb +1 -1
- data/lib/xero-ruby/models/accounting/cis_settings.rb +1 -1
- data/lib/xero-ruby/models/accounting/contact.rb +1 -1
- data/lib/xero-ruby/models/accounting/contact_group.rb +1 -1
- data/lib/xero-ruby/models/accounting/contact_groups.rb +1 -1
- data/lib/xero-ruby/models/accounting/contact_person.rb +1 -1
- data/lib/xero-ruby/models/accounting/contacts.rb +1 -1
- data/lib/xero-ruby/models/accounting/conversion_balances.rb +1 -1
- data/lib/xero-ruby/models/accounting/conversion_date.rb +1 -1
- data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
- data/lib/xero-ruby/models/accounting/credit_note.rb +18 -6
- data/lib/xero-ruby/models/accounting/credit_notes.rb +1 -1
- data/lib/xero-ruby/models/accounting/currencies.rb +1 -1
- data/lib/xero-ruby/models/accounting/currency.rb +1 -1
- data/lib/xero-ruby/models/accounting/currency_code.rb +1 -1
- data/lib/xero-ruby/models/accounting/element.rb +1 -1
- data/lib/xero-ruby/models/accounting/employee.rb +1 -1
- data/lib/xero-ruby/models/accounting/employees.rb +1 -1
- data/lib/xero-ruby/models/accounting/error.rb +1 -1
- data/lib/xero-ruby/models/accounting/expense_claim.rb +1 -1
- data/lib/xero-ruby/models/accounting/expense_claims.rb +1 -1
- data/lib/xero-ruby/models/accounting/external_link.rb +1 -1
- data/lib/xero-ruby/models/accounting/history_record.rb +1 -1
- data/lib/xero-ruby/models/accounting/history_records.rb +1 -1
- data/lib/xero-ruby/models/accounting/import_summary.rb +1 -1
- data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +1 -1
- data/lib/xero-ruby/models/accounting/import_summary_object.rb +1 -1
- data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +1 -1
- data/lib/xero-ruby/models/accounting/invoice.rb +1 -1
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +1 -1
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +1 -1
- data/lib/xero-ruby/models/accounting/invoices.rb +1 -1
- data/lib/xero-ruby/models/accounting/item.rb +1 -1
- data/lib/xero-ruby/models/accounting/items.rb +1 -1
- data/lib/xero-ruby/models/accounting/journal.rb +1 -1
- data/lib/xero-ruby/models/accounting/journal_line.rb +1 -1
- data/lib/xero-ruby/models/accounting/journals.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_item.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +1 -1
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +1 -1
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +1 -1
- data/lib/xero-ruby/models/accounting/manual_journal.rb +1 -1
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +1 -1
- data/lib/xero-ruby/models/accounting/manual_journals.rb +1 -1
- data/lib/xero-ruby/models/accounting/online_invoice.rb +1 -1
- data/lib/xero-ruby/models/accounting/online_invoices.rb +1 -1
- data/lib/xero-ruby/models/accounting/organisation.rb +1 -1
- data/lib/xero-ruby/models/accounting/organisations.rb +1 -1
- data/lib/xero-ruby/models/accounting/overpayment.rb +1 -1
- data/lib/xero-ruby/models/accounting/overpayments.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment.rb +12 -2
- data/lib/xero-ruby/models/accounting/payment_delete.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_service.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_services.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_term.rb +1 -1
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/payments.rb +1 -1
- data/lib/xero-ruby/models/accounting/phone.rb +1 -1
- data/lib/xero-ruby/models/accounting/prepayment.rb +1 -1
- data/lib/xero-ruby/models/accounting/prepayments.rb +1 -1
- data/lib/xero-ruby/models/accounting/purchase.rb +1 -1
- data/lib/xero-ruby/models/accounting/purchase_order.rb +1 -1
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +1 -1
- data/lib/xero-ruby/models/accounting/quote.rb +1 -1
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
- data/lib/xero-ruby/models/accounting/quotes.rb +1 -1
- data/lib/xero-ruby/models/accounting/receipt.rb +1 -1
- data/lib/xero-ruby/models/accounting/receipts.rb +1 -1
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +1 -1
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +1 -1
- data/lib/xero-ruby/models/accounting/report.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_attribute.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_cell.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_fields.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_row.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_rows.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_with_row.rb +1 -1
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +1 -1
- data/lib/xero-ruby/models/accounting/reports.rb +1 -1
- data/lib/xero-ruby/models/accounting/request_empty.rb +1 -1
- data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +1 -1
- data/lib/xero-ruby/models/accounting/schedule.rb +1 -1
- data/lib/xero-ruby/models/accounting/setup.rb +1 -1
- data/lib/xero-ruby/models/accounting/tax_component.rb +1 -1
- data/lib/xero-ruby/models/accounting/tax_rate.rb +1 -1
- data/lib/xero-ruby/models/accounting/tax_rates.rb +1 -1
- data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +1 -1
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_category.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_option.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_options.rb +1 -1
- data/lib/xero-ruby/models/accounting/user.rb +1 -1
- data/lib/xero-ruby/models/accounting/users.rb +1 -1
- data/lib/xero-ruby/models/accounting/validation_error.rb +1 -1
- data/lib/xero-ruby/models/assets/asset.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_type.rb +1 -1
- data/lib/xero-ruby/models/assets/assets.rb +1 -1
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +1 -1
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +1 -1
- data/lib/xero-ruby/models/assets/error.rb +1 -1
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +2 -2
- data/lib/xero-ruby/models/assets/pagination.rb +1 -1
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +2 -2
- data/lib/xero-ruby/models/assets/setting.rb +1 -1
- data/lib/xero-ruby/models/files/association.rb +1 -1
- data/lib/xero-ruby/models/files/file_object.rb +1 -1
- data/lib/xero-ruby/models/files/files.rb +1 -1
- data/lib/xero-ruby/models/files/folder.rb +1 -1
- data/lib/xero-ruby/models/files/folders.rb +1 -1
- data/lib/xero-ruby/models/files/inline_object.rb +1 -1
- data/lib/xero-ruby/models/files/object_group.rb +1 -1
- data/lib/xero-ruby/models/files/object_type.rb +1 -1
- data/lib/xero-ruby/models/files/user.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/account.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/account_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/api_exception.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/bank_account.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/calendar_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employee.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employee_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employees.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/home_address.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_applications.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_balance.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_lines.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_period.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_item.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_items.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_run.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_runs.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_template.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslip.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslip_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payslips.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/rate_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/residency_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/state.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_funds.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_line.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/super_membership.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/tax_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheets.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/validation_error.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +1 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +1 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +1 -1
- data/lib/xero-ruby/string_serialization.rb +52 -0
- data/lib/xero-ruby/version.rb +3 -3
- data/lib/xero-ruby/where.rb +65 -0
- data/spec/configuration_spec.rb +1 -1
- data/spec/where_spec.rb +82 -0
- metadata +8 -6
- data/spec/files/models/file_response204_spec.rb +0 -41
@@ -16,7 +16,7 @@ module XeroRuby
|
|
16
16
|
def initialize(api_client = ApiClient.new)
|
17
17
|
@api_client = api_client
|
18
18
|
end
|
19
|
-
#
|
19
|
+
# Approves a timesheet
|
20
20
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
21
21
|
# @param timesheet_id [String] Identifier for the timesheet
|
22
22
|
# @param [Hash] opts the optional parameters
|
@@ -26,7 +26,7 @@ module XeroRuby
|
|
26
26
|
data
|
27
27
|
end
|
28
28
|
|
29
|
-
#
|
29
|
+
# Approves a timesheet
|
30
30
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
31
31
|
# @param timesheet_id [String] Identifier for the timesheet
|
32
32
|
# @param [Hash] opts the optional parameters
|
@@ -90,7 +90,7 @@ module XeroRuby
|
|
90
90
|
return data, status_code, headers
|
91
91
|
end
|
92
92
|
|
93
|
-
#
|
93
|
+
# Creates a new deduction for a specific employee
|
94
94
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
95
95
|
# @param deduction [Deduction]
|
96
96
|
# @param [Hash] opts the optional parameters
|
@@ -100,7 +100,7 @@ module XeroRuby
|
|
100
100
|
data
|
101
101
|
end
|
102
102
|
|
103
|
-
#
|
103
|
+
# Creates a new deduction for a specific employee
|
104
104
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
105
105
|
# @param deduction [Deduction]
|
106
106
|
# @param [Hash] opts the optional parameters
|
@@ -166,7 +166,7 @@ module XeroRuby
|
|
166
166
|
return data, status_code, headers
|
167
167
|
end
|
168
168
|
|
169
|
-
#
|
169
|
+
# Creates a new earnings rate
|
170
170
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
171
171
|
# @param earnings_rate [EarningsRate]
|
172
172
|
# @param [Hash] opts the optional parameters
|
@@ -176,7 +176,7 @@ module XeroRuby
|
|
176
176
|
data
|
177
177
|
end
|
178
178
|
|
179
|
-
#
|
179
|
+
# Creates a new earnings rate
|
180
180
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
181
181
|
# @param earnings_rate [EarningsRate]
|
182
182
|
# @param [Hash] opts the optional parameters
|
@@ -242,7 +242,7 @@ module XeroRuby
|
|
242
242
|
return data, status_code, headers
|
243
243
|
end
|
244
244
|
|
245
|
-
#
|
245
|
+
# Creates an employees
|
246
246
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
247
247
|
# @param employee [Employee]
|
248
248
|
# @param [Hash] opts the optional parameters
|
@@ -252,7 +252,7 @@ module XeroRuby
|
|
252
252
|
data
|
253
253
|
end
|
254
254
|
|
255
|
-
#
|
255
|
+
# Creates an employees
|
256
256
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
257
257
|
# @param employee [Employee]
|
258
258
|
# @param [Hash] opts the optional parameters
|
@@ -318,7 +318,7 @@ module XeroRuby
|
|
318
318
|
return data, status_code, headers
|
319
319
|
end
|
320
320
|
|
321
|
-
#
|
321
|
+
# Creates earnings template records for an employee
|
322
322
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
323
323
|
# @param employee_id [String] Employee id for single object
|
324
324
|
# @param earnings_template [EarningsTemplate]
|
@@ -329,7 +329,7 @@ module XeroRuby
|
|
329
329
|
data
|
330
330
|
end
|
331
331
|
|
332
|
-
#
|
332
|
+
# Creates earnings template records for an employee
|
333
333
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
334
334
|
# @param employee_id [String] Employee id for single object
|
335
335
|
# @param earnings_template [EarningsTemplate]
|
@@ -352,7 +352,7 @@ module XeroRuby
|
|
352
352
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollNzApi.create_employee_earnings_template"
|
353
353
|
end
|
354
354
|
# resource path
|
355
|
-
local_var_path = '/Employees/{
|
355
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates/earnings'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
356
356
|
|
357
357
|
# camelize keys of incoming `where` opts
|
358
358
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -400,7 +400,7 @@ module XeroRuby
|
|
400
400
|
return data, status_code, headers
|
401
401
|
end
|
402
402
|
|
403
|
-
#
|
403
|
+
# Creates leave records for a specific employee
|
404
404
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
405
405
|
# @param employee_id [String] Employee id for single object
|
406
406
|
# @param employee_leave [EmployeeLeave]
|
@@ -411,7 +411,7 @@ module XeroRuby
|
|
411
411
|
data
|
412
412
|
end
|
413
413
|
|
414
|
-
#
|
414
|
+
# Creates leave records for a specific employee
|
415
415
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
416
416
|
# @param employee_id [String] Employee id for single object
|
417
417
|
# @param employee_leave [EmployeeLeave]
|
@@ -434,7 +434,7 @@ module XeroRuby
|
|
434
434
|
fail ArgumentError, "Missing the required parameter 'employee_leave' when calling PayrollNzApi.create_employee_leave"
|
435
435
|
end
|
436
436
|
# resource path
|
437
|
-
local_var_path = '/Employees/{
|
437
|
+
local_var_path = '/Employees/{EmployeeID}/Leave'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
438
438
|
|
439
439
|
# camelize keys of incoming `where` opts
|
440
440
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -482,7 +482,7 @@ module XeroRuby
|
|
482
482
|
return data, status_code, headers
|
483
483
|
end
|
484
484
|
|
485
|
-
#
|
485
|
+
# Creates a leave set-up for a specific employee. This is required before viewing, configuring and requesting leave for an employee
|
486
486
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
487
487
|
# @param employee_id [String] Employee id for single object
|
488
488
|
# @param employee_leave_setup [EmployeeLeaveSetup]
|
@@ -493,7 +493,7 @@ module XeroRuby
|
|
493
493
|
data
|
494
494
|
end
|
495
495
|
|
496
|
-
#
|
496
|
+
# Creates a leave set-up for a specific employee. This is required before viewing, configuring and requesting leave for an employee
|
497
497
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
498
498
|
# @param employee_id [String] Employee id for single object
|
499
499
|
# @param employee_leave_setup [EmployeeLeaveSetup]
|
@@ -516,7 +516,7 @@ module XeroRuby
|
|
516
516
|
fail ArgumentError, "Missing the required parameter 'employee_leave_setup' when calling PayrollNzApi.create_employee_leave_setup"
|
517
517
|
end
|
518
518
|
# resource path
|
519
|
-
local_var_path = '/Employees/{
|
519
|
+
local_var_path = '/Employees/{EmployeeID}/leaveSetup'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
520
520
|
|
521
521
|
# camelize keys of incoming `where` opts
|
522
522
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -564,7 +564,7 @@ module XeroRuby
|
|
564
564
|
return data, status_code, headers
|
565
565
|
end
|
566
566
|
|
567
|
-
#
|
567
|
+
# Creates leave type records for a specific employee
|
568
568
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
569
569
|
# @param employee_id [String] Employee id for single object
|
570
570
|
# @param employee_leave_type [EmployeeLeaveType]
|
@@ -575,7 +575,7 @@ module XeroRuby
|
|
575
575
|
data
|
576
576
|
end
|
577
577
|
|
578
|
-
#
|
578
|
+
# Creates leave type records for a specific employee
|
579
579
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
580
580
|
# @param employee_id [String] Employee id for single object
|
581
581
|
# @param employee_leave_type [EmployeeLeaveType]
|
@@ -598,7 +598,7 @@ module XeroRuby
|
|
598
598
|
fail ArgumentError, "Missing the required parameter 'employee_leave_type' when calling PayrollNzApi.create_employee_leave_type"
|
599
599
|
end
|
600
600
|
# resource path
|
601
|
-
local_var_path = '/Employees/{
|
601
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveTypes'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
602
602
|
|
603
603
|
# camelize keys of incoming `where` opts
|
604
604
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -646,7 +646,7 @@ module XeroRuby
|
|
646
646
|
return data, status_code, headers
|
647
647
|
end
|
648
648
|
|
649
|
-
#
|
649
|
+
# Creates opening balances for a specific employee
|
650
650
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
651
651
|
# @param employee_id [String] Employee id for single object
|
652
652
|
# @param employee_opening_balance [Array<EmployeeOpeningBalance>]
|
@@ -657,7 +657,7 @@ module XeroRuby
|
|
657
657
|
data
|
658
658
|
end
|
659
659
|
|
660
|
-
#
|
660
|
+
# Creates opening balances for a specific employee
|
661
661
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
662
662
|
# @param employee_id [String] Employee id for single object
|
663
663
|
# @param employee_opening_balance [Array<EmployeeOpeningBalance>]
|
@@ -680,7 +680,7 @@ module XeroRuby
|
|
680
680
|
fail ArgumentError, "Missing the required parameter 'employee_opening_balance' when calling PayrollNzApi.create_employee_opening_balances"
|
681
681
|
end
|
682
682
|
# resource path
|
683
|
-
local_var_path = '/Employees/{
|
683
|
+
local_var_path = '/Employees/{EmployeeID}/openingBalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
684
684
|
|
685
685
|
# camelize keys of incoming `where` opts
|
686
686
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -728,7 +728,7 @@ module XeroRuby
|
|
728
728
|
return data, status_code, headers
|
729
729
|
end
|
730
730
|
|
731
|
-
#
|
731
|
+
# Creates a payment method for an employee
|
732
732
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
733
733
|
# @param employee_id [String] Employee id for single object
|
734
734
|
# @param payment_method [PaymentMethod]
|
@@ -739,7 +739,7 @@ module XeroRuby
|
|
739
739
|
data
|
740
740
|
end
|
741
741
|
|
742
|
-
#
|
742
|
+
# Creates a payment method for an employee
|
743
743
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
744
744
|
# @param employee_id [String] Employee id for single object
|
745
745
|
# @param payment_method [PaymentMethod]
|
@@ -762,7 +762,7 @@ module XeroRuby
|
|
762
762
|
fail ArgumentError, "Missing the required parameter 'payment_method' when calling PayrollNzApi.create_employee_payment_method"
|
763
763
|
end
|
764
764
|
# resource path
|
765
|
-
local_var_path = '/Employees/{
|
765
|
+
local_var_path = '/Employees/{EmployeeID}/PaymentMethods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
766
766
|
|
767
767
|
# camelize keys of incoming `where` opts
|
768
768
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -810,7 +810,7 @@ module XeroRuby
|
|
810
810
|
return data, status_code, headers
|
811
811
|
end
|
812
812
|
|
813
|
-
#
|
813
|
+
# Creates an employee salary and wage record
|
814
814
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
815
815
|
# @param employee_id [String] Employee id for single object
|
816
816
|
# @param salary_and_wage [SalaryAndWage]
|
@@ -821,7 +821,7 @@ module XeroRuby
|
|
821
821
|
data
|
822
822
|
end
|
823
823
|
|
824
|
-
#
|
824
|
+
# Creates an employee salary and wage record
|
825
825
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
826
826
|
# @param employee_id [String] Employee id for single object
|
827
827
|
# @param salary_and_wage [SalaryAndWage]
|
@@ -844,7 +844,7 @@ module XeroRuby
|
|
844
844
|
fail ArgumentError, "Missing the required parameter 'salary_and_wage' when calling PayrollNzApi.create_employee_salary_and_wage"
|
845
845
|
end
|
846
846
|
# resource path
|
847
|
-
local_var_path = '/Employees/{
|
847
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
848
848
|
|
849
849
|
# camelize keys of incoming `where` opts
|
850
850
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -892,7 +892,7 @@ module XeroRuby
|
|
892
892
|
return data, status_code, headers
|
893
893
|
end
|
894
894
|
|
895
|
-
#
|
895
|
+
# Creates an employment detail for a specific employee
|
896
896
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
897
897
|
# @param employee_id [String] Employee id for single object
|
898
898
|
# @param employment [Employment]
|
@@ -903,7 +903,7 @@ module XeroRuby
|
|
903
903
|
data
|
904
904
|
end
|
905
905
|
|
906
|
-
#
|
906
|
+
# Creates an employment detail for a specific employee
|
907
907
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
908
908
|
# @param employee_id [String] Employee id for single object
|
909
909
|
# @param employment [Employment]
|
@@ -926,7 +926,7 @@ module XeroRuby
|
|
926
926
|
fail ArgumentError, "Missing the required parameter 'employment' when calling PayrollNzApi.create_employment"
|
927
927
|
end
|
928
928
|
# resource path
|
929
|
-
local_var_path = '/Employees/{
|
929
|
+
local_var_path = '/Employees/{EmployeeID}/Employment'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
930
930
|
|
931
931
|
# camelize keys of incoming `where` opts
|
932
932
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -974,7 +974,7 @@ module XeroRuby
|
|
974
974
|
return data, status_code, headers
|
975
975
|
end
|
976
976
|
|
977
|
-
#
|
977
|
+
# Creates a new leave type
|
978
978
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
979
979
|
# @param leave_type [LeaveType]
|
980
980
|
# @param [Hash] opts the optional parameters
|
@@ -984,7 +984,7 @@ module XeroRuby
|
|
984
984
|
data
|
985
985
|
end
|
986
986
|
|
987
|
-
#
|
987
|
+
# Creates a new leave type
|
988
988
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
989
989
|
# @param leave_type [LeaveType]
|
990
990
|
# @param [Hash] opts the optional parameters
|
@@ -1050,7 +1050,7 @@ module XeroRuby
|
|
1050
1050
|
return data, status_code, headers
|
1051
1051
|
end
|
1052
1052
|
|
1053
|
-
#
|
1053
|
+
# Creates multiple employee earnings template records for a specific employee
|
1054
1054
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1055
1055
|
# @param employee_id [String] Employee id for single object
|
1056
1056
|
# @param earnings_template [Array<EarningsTemplate>]
|
@@ -1061,7 +1061,7 @@ module XeroRuby
|
|
1061
1061
|
data
|
1062
1062
|
end
|
1063
1063
|
|
1064
|
-
#
|
1064
|
+
# Creates multiple employee earnings template records for a specific employee
|
1065
1065
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1066
1066
|
# @param employee_id [String] Employee id for single object
|
1067
1067
|
# @param earnings_template [Array<EarningsTemplate>]
|
@@ -1084,7 +1084,7 @@ module XeroRuby
|
|
1084
1084
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollNzApi.create_multiple_employee_earnings_template"
|
1085
1085
|
end
|
1086
1086
|
# resource path
|
1087
|
-
local_var_path = '/Employees/{
|
1087
|
+
local_var_path = '/Employees/{EmployeeID}/paytemplateearnings'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
1088
1088
|
|
1089
1089
|
# camelize keys of incoming `where` opts
|
1090
1090
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1132,7 +1132,7 @@ module XeroRuby
|
|
1132
1132
|
return data, status_code, headers
|
1133
1133
|
end
|
1134
1134
|
|
1135
|
-
#
|
1135
|
+
# Creates a pay run
|
1136
1136
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1137
1137
|
# @param pay_run [PayRun]
|
1138
1138
|
# @param [Hash] opts the optional parameters
|
@@ -1142,7 +1142,7 @@ module XeroRuby
|
|
1142
1142
|
data
|
1143
1143
|
end
|
1144
1144
|
|
1145
|
-
#
|
1145
|
+
# Creates a pay run
|
1146
1146
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1147
1147
|
# @param pay_run [PayRun]
|
1148
1148
|
# @param [Hash] opts the optional parameters
|
@@ -1208,7 +1208,7 @@ module XeroRuby
|
|
1208
1208
|
return data, status_code, headers
|
1209
1209
|
end
|
1210
1210
|
|
1211
|
-
#
|
1211
|
+
# Creates a new payrun calendar
|
1212
1212
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1213
1213
|
# @param pay_run_calendar [PayRunCalendar]
|
1214
1214
|
# @param [Hash] opts the optional parameters
|
@@ -1218,7 +1218,7 @@ module XeroRuby
|
|
1218
1218
|
data
|
1219
1219
|
end
|
1220
1220
|
|
1221
|
-
#
|
1221
|
+
# Creates a new payrun calendar
|
1222
1222
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1223
1223
|
# @param pay_run_calendar [PayRunCalendar]
|
1224
1224
|
# @param [Hash] opts the optional parameters
|
@@ -1284,7 +1284,7 @@ module XeroRuby
|
|
1284
1284
|
return data, status_code, headers
|
1285
1285
|
end
|
1286
1286
|
|
1287
|
-
#
|
1287
|
+
# Creates a new reimbursement
|
1288
1288
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1289
1289
|
# @param reimbursement [Reimbursement]
|
1290
1290
|
# @param [Hash] opts the optional parameters
|
@@ -1294,7 +1294,7 @@ module XeroRuby
|
|
1294
1294
|
data
|
1295
1295
|
end
|
1296
1296
|
|
1297
|
-
#
|
1297
|
+
# Creates a new reimbursement
|
1298
1298
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1299
1299
|
# @param reimbursement [Reimbursement]
|
1300
1300
|
# @param [Hash] opts the optional parameters
|
@@ -1360,7 +1360,7 @@ module XeroRuby
|
|
1360
1360
|
return data, status_code, headers
|
1361
1361
|
end
|
1362
1362
|
|
1363
|
-
#
|
1363
|
+
# Creates a new superannuation
|
1364
1364
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1365
1365
|
# @param benefit [Benefit]
|
1366
1366
|
# @param [Hash] opts the optional parameters
|
@@ -1370,7 +1370,7 @@ module XeroRuby
|
|
1370
1370
|
data
|
1371
1371
|
end
|
1372
1372
|
|
1373
|
-
#
|
1373
|
+
# Creates a new superannuation
|
1374
1374
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1375
1375
|
# @param benefit [Benefit]
|
1376
1376
|
# @param [Hash] opts the optional parameters
|
@@ -1388,7 +1388,7 @@ module XeroRuby
|
|
1388
1388
|
fail ArgumentError, "Missing the required parameter 'benefit' when calling PayrollNzApi.create_superannuation"
|
1389
1389
|
end
|
1390
1390
|
# resource path
|
1391
|
-
local_var_path = '/
|
1391
|
+
local_var_path = '/Superannuations'
|
1392
1392
|
|
1393
1393
|
# camelize keys of incoming `where` opts
|
1394
1394
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1436,7 +1436,7 @@ module XeroRuby
|
|
1436
1436
|
return data, status_code, headers
|
1437
1437
|
end
|
1438
1438
|
|
1439
|
-
#
|
1439
|
+
# Creates a new timesheet
|
1440
1440
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1441
1441
|
# @param timesheet [Timesheet]
|
1442
1442
|
# @param [Hash] opts the optional parameters
|
@@ -1446,7 +1446,7 @@ module XeroRuby
|
|
1446
1446
|
data
|
1447
1447
|
end
|
1448
1448
|
|
1449
|
-
#
|
1449
|
+
# Creates a new timesheet
|
1450
1450
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1451
1451
|
# @param timesheet [Timesheet]
|
1452
1452
|
# @param [Hash] opts the optional parameters
|
@@ -1512,7 +1512,7 @@ module XeroRuby
|
|
1512
1512
|
return data, status_code, headers
|
1513
1513
|
end
|
1514
1514
|
|
1515
|
-
#
|
1515
|
+
# Create a new timesheet line for a specific time sheet
|
1516
1516
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1517
1517
|
# @param timesheet_id [String] Identifier for the timesheet
|
1518
1518
|
# @param timesheet_line [TimesheetLine]
|
@@ -1523,7 +1523,7 @@ module XeroRuby
|
|
1523
1523
|
data
|
1524
1524
|
end
|
1525
1525
|
|
1526
|
-
#
|
1526
|
+
# Create a new timesheet line for a specific time sheet
|
1527
1527
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1528
1528
|
# @param timesheet_id [String] Identifier for the timesheet
|
1529
1529
|
# @param timesheet_line [TimesheetLine]
|
@@ -1594,7 +1594,7 @@ module XeroRuby
|
|
1594
1594
|
return data, status_code, headers
|
1595
1595
|
end
|
1596
1596
|
|
1597
|
-
#
|
1597
|
+
# Deletes an employee's earnings template record
|
1598
1598
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1599
1599
|
# @param employee_id [String] Employee id for single object
|
1600
1600
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
@@ -1605,7 +1605,7 @@ module XeroRuby
|
|
1605
1605
|
data
|
1606
1606
|
end
|
1607
1607
|
|
1608
|
-
#
|
1608
|
+
# Deletes an employee's earnings template record
|
1609
1609
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1610
1610
|
# @param employee_id [String] Employee id for single object
|
1611
1611
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
@@ -1628,7 +1628,7 @@ module XeroRuby
|
|
1628
1628
|
fail ArgumentError, "Missing the required parameter 'pay_template_earning_id' when calling PayrollNzApi.delete_employee_earnings_template"
|
1629
1629
|
end
|
1630
1630
|
# resource path
|
1631
|
-
local_var_path = '/Employees/{
|
1631
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates/earnings/{PayTemplateEarningID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'PayTemplateEarningID' + '}', pay_template_earning_id.to_s)
|
1632
1632
|
|
1633
1633
|
# camelize keys of incoming `where` opts
|
1634
1634
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1674,7 +1674,7 @@ module XeroRuby
|
|
1674
1674
|
return data, status_code, headers
|
1675
1675
|
end
|
1676
1676
|
|
1677
|
-
#
|
1677
|
+
# Deletes a leave record for a specific employee
|
1678
1678
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1679
1679
|
# @param employee_id [String] Employee id for single object
|
1680
1680
|
# @param leave_id [String] Leave id for single object
|
@@ -1685,7 +1685,7 @@ module XeroRuby
|
|
1685
1685
|
data
|
1686
1686
|
end
|
1687
1687
|
|
1688
|
-
#
|
1688
|
+
# Deletes a leave record for a specific employee
|
1689
1689
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1690
1690
|
# @param employee_id [String] Employee id for single object
|
1691
1691
|
# @param leave_id [String] Leave id for single object
|
@@ -1708,7 +1708,7 @@ module XeroRuby
|
|
1708
1708
|
fail ArgumentError, "Missing the required parameter 'leave_id' when calling PayrollNzApi.delete_employee_leave"
|
1709
1709
|
end
|
1710
1710
|
# resource path
|
1711
|
-
local_var_path = '/Employees/{
|
1711
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
1712
1712
|
|
1713
1713
|
# camelize keys of incoming `where` opts
|
1714
1714
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1754,7 +1754,7 @@ module XeroRuby
|
|
1754
1754
|
return data, status_code, headers
|
1755
1755
|
end
|
1756
1756
|
|
1757
|
-
#
|
1757
|
+
# Deletes an employee's salary and wages record
|
1758
1758
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1759
1759
|
# @param employee_id [String] Employee id for single object
|
1760
1760
|
# @param salary_and_wages_id [String] Id for single salary and wages object
|
@@ -1765,7 +1765,7 @@ module XeroRuby
|
|
1765
1765
|
data
|
1766
1766
|
end
|
1767
1767
|
|
1768
|
-
#
|
1768
|
+
# Deletes an employee's salary and wages record
|
1769
1769
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1770
1770
|
# @param employee_id [String] Employee id for single object
|
1771
1771
|
# @param salary_and_wages_id [String] Id for single salary and wages object
|
@@ -1788,7 +1788,7 @@ module XeroRuby
|
|
1788
1788
|
fail ArgumentError, "Missing the required parameter 'salary_and_wages_id' when calling PayrollNzApi.delete_employee_salary_and_wage"
|
1789
1789
|
end
|
1790
1790
|
# resource path
|
1791
|
-
local_var_path = '/Employees/{
|
1791
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'SalaryAndWagesID' + '}', salary_and_wages_id.to_s)
|
1792
1792
|
|
1793
1793
|
# camelize keys of incoming `where` opts
|
1794
1794
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1834,7 +1834,7 @@ module XeroRuby
|
|
1834
1834
|
return data, status_code, headers
|
1835
1835
|
end
|
1836
1836
|
|
1837
|
-
#
|
1837
|
+
# Deletes a timesheet
|
1838
1838
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1839
1839
|
# @param timesheet_id [String] Identifier for the timesheet
|
1840
1840
|
# @param [Hash] opts the optional parameters
|
@@ -1844,7 +1844,7 @@ module XeroRuby
|
|
1844
1844
|
data
|
1845
1845
|
end
|
1846
1846
|
|
1847
|
-
#
|
1847
|
+
# Deletes a timesheet
|
1848
1848
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1849
1849
|
# @param timesheet_id [String] Identifier for the timesheet
|
1850
1850
|
# @param [Hash] opts the optional parameters
|
@@ -1908,7 +1908,7 @@ module XeroRuby
|
|
1908
1908
|
return data, status_code, headers
|
1909
1909
|
end
|
1910
1910
|
|
1911
|
-
#
|
1911
|
+
# Deletes a timesheet line for a specific timesheet
|
1912
1912
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1913
1913
|
# @param timesheet_id [String] Identifier for the timesheet
|
1914
1914
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
@@ -1919,7 +1919,7 @@ module XeroRuby
|
|
1919
1919
|
data
|
1920
1920
|
end
|
1921
1921
|
|
1922
|
-
#
|
1922
|
+
# Deletes a timesheet line for a specific timesheet
|
1923
1923
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1924
1924
|
# @param timesheet_id [String] Identifier for the timesheet
|
1925
1925
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
@@ -1988,7 +1988,7 @@ module XeroRuby
|
|
1988
1988
|
return data, status_code, headers
|
1989
1989
|
end
|
1990
1990
|
|
1991
|
-
#
|
1991
|
+
# Retrieves a single deduction by using a unique deduction ID
|
1992
1992
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1993
1993
|
# @param deduction_id [String] Identifier for the deduction
|
1994
1994
|
# @param [Hash] opts the optional parameters
|
@@ -1998,7 +1998,7 @@ module XeroRuby
|
|
1998
1998
|
data
|
1999
1999
|
end
|
2000
2000
|
|
2001
|
-
#
|
2001
|
+
# Retrieves a single deduction by using a unique deduction ID
|
2002
2002
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2003
2003
|
# @param deduction_id [String] Identifier for the deduction
|
2004
2004
|
# @param [Hash] opts the optional parameters
|
@@ -2062,7 +2062,7 @@ module XeroRuby
|
|
2062
2062
|
return data, status_code, headers
|
2063
2063
|
end
|
2064
2064
|
|
2065
|
-
#
|
2065
|
+
# Retrieves deductions for a specific employee
|
2066
2066
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2067
2067
|
# @param [Hash] opts the optional parameters
|
2068
2068
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -2072,7 +2072,7 @@ module XeroRuby
|
|
2072
2072
|
data
|
2073
2073
|
end
|
2074
2074
|
|
2075
|
-
#
|
2075
|
+
# Retrieves deductions for a specific employee
|
2076
2076
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2077
2077
|
# @param [Hash] opts the optional parameters
|
2078
2078
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -2133,7 +2133,7 @@ module XeroRuby
|
|
2133
2133
|
return data, status_code, headers
|
2134
2134
|
end
|
2135
2135
|
|
2136
|
-
#
|
2136
|
+
# Retrieves a specific earnings rates by using a unique earnings rate id
|
2137
2137
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2138
2138
|
# @param earnings_rate_id [String] Identifier for the earnings rate
|
2139
2139
|
# @param [Hash] opts the optional parameters
|
@@ -2143,7 +2143,7 @@ module XeroRuby
|
|
2143
2143
|
data
|
2144
2144
|
end
|
2145
2145
|
|
2146
|
-
#
|
2146
|
+
# Retrieves a specific earnings rates by using a unique earnings rate id
|
2147
2147
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2148
2148
|
# @param earnings_rate_id [String] Identifier for the earnings rate
|
2149
2149
|
# @param [Hash] opts the optional parameters
|
@@ -2207,7 +2207,7 @@ module XeroRuby
|
|
2207
2207
|
return data, status_code, headers
|
2208
2208
|
end
|
2209
2209
|
|
2210
|
-
#
|
2210
|
+
# Retrieves earnings rates
|
2211
2211
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2212
2212
|
# @param [Hash] opts the optional parameters
|
2213
2213
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -2217,7 +2217,7 @@ module XeroRuby
|
|
2217
2217
|
data
|
2218
2218
|
end
|
2219
2219
|
|
2220
|
-
#
|
2220
|
+
# Retrieves earnings rates
|
2221
2221
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2222
2222
|
# @param [Hash] opts the optional parameters
|
2223
2223
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -2278,7 +2278,7 @@ module XeroRuby
|
|
2278
2278
|
return data, status_code, headers
|
2279
2279
|
end
|
2280
2280
|
|
2281
|
-
#
|
2281
|
+
# Retrieves an employees using a unique employee ID
|
2282
2282
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2283
2283
|
# @param employee_id [String] Employee id for single object
|
2284
2284
|
# @param [Hash] opts the optional parameters
|
@@ -2288,7 +2288,7 @@ module XeroRuby
|
|
2288
2288
|
data
|
2289
2289
|
end
|
2290
2290
|
|
2291
|
-
#
|
2291
|
+
# Retrieves an employees using a unique employee ID
|
2292
2292
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2293
2293
|
# @param employee_id [String] Employee id for single object
|
2294
2294
|
# @param [Hash] opts the optional parameters
|
@@ -2306,7 +2306,7 @@ module XeroRuby
|
|
2306
2306
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee"
|
2307
2307
|
end
|
2308
2308
|
# resource path
|
2309
|
-
local_var_path = '/Employees/{
|
2309
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2310
2310
|
|
2311
2311
|
# camelize keys of incoming `where` opts
|
2312
2312
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2352,7 +2352,7 @@ module XeroRuby
|
|
2352
2352
|
return data, status_code, headers
|
2353
2353
|
end
|
2354
2354
|
|
2355
|
-
#
|
2355
|
+
# Retrieves leave balances for a specific employee
|
2356
2356
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2357
2357
|
# @param employee_id [String] Employee id for single object
|
2358
2358
|
# @param [Hash] opts the optional parameters
|
@@ -2362,7 +2362,7 @@ module XeroRuby
|
|
2362
2362
|
data
|
2363
2363
|
end
|
2364
2364
|
|
2365
|
-
#
|
2365
|
+
# Retrieves leave balances for a specific employee
|
2366
2366
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2367
2367
|
# @param employee_id [String] Employee id for single object
|
2368
2368
|
# @param [Hash] opts the optional parameters
|
@@ -2380,7 +2380,7 @@ module XeroRuby
|
|
2380
2380
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_leave_balances"
|
2381
2381
|
end
|
2382
2382
|
# resource path
|
2383
|
-
local_var_path = '/Employees/{
|
2383
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveBalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2384
2384
|
|
2385
2385
|
# camelize keys of incoming `where` opts
|
2386
2386
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2426,7 +2426,7 @@ module XeroRuby
|
|
2426
2426
|
return data, status_code, headers
|
2427
2427
|
end
|
2428
2428
|
|
2429
|
-
#
|
2429
|
+
# Retrieves leave periods for a specific employee
|
2430
2430
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2431
2431
|
# @param employee_id [String] Employee id for single object
|
2432
2432
|
# @param [Hash] opts the optional parameters
|
@@ -2438,7 +2438,7 @@ module XeroRuby
|
|
2438
2438
|
data
|
2439
2439
|
end
|
2440
2440
|
|
2441
|
-
#
|
2441
|
+
# Retrieves leave periods for a specific employee
|
2442
2442
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2443
2443
|
# @param employee_id [String] Employee id for single object
|
2444
2444
|
# @param [Hash] opts the optional parameters
|
@@ -2458,7 +2458,7 @@ module XeroRuby
|
|
2458
2458
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_leave_periods"
|
2459
2459
|
end
|
2460
2460
|
# resource path
|
2461
|
-
local_var_path = '/Employees/{
|
2461
|
+
local_var_path = '/Employees/{EmployeeID}/LeavePeriods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2462
2462
|
|
2463
2463
|
# camelize keys of incoming `where` opts
|
2464
2464
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2506,7 +2506,7 @@ module XeroRuby
|
|
2506
2506
|
return data, status_code, headers
|
2507
2507
|
end
|
2508
2508
|
|
2509
|
-
#
|
2509
|
+
# Retrieves leave types for a specific employee
|
2510
2510
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2511
2511
|
# @param employee_id [String] Employee id for single object
|
2512
2512
|
# @param [Hash] opts the optional parameters
|
@@ -2516,7 +2516,7 @@ module XeroRuby
|
|
2516
2516
|
data
|
2517
2517
|
end
|
2518
2518
|
|
2519
|
-
#
|
2519
|
+
# Retrieves leave types for a specific employee
|
2520
2520
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2521
2521
|
# @param employee_id [String] Employee id for single object
|
2522
2522
|
# @param [Hash] opts the optional parameters
|
@@ -2534,7 +2534,7 @@ module XeroRuby
|
|
2534
2534
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_leave_types"
|
2535
2535
|
end
|
2536
2536
|
# resource path
|
2537
|
-
local_var_path = '/Employees/{
|
2537
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveTypes'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2538
2538
|
|
2539
2539
|
# camelize keys of incoming `where` opts
|
2540
2540
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2580,7 +2580,7 @@ module XeroRuby
|
|
2580
2580
|
return data, status_code, headers
|
2581
2581
|
end
|
2582
2582
|
|
2583
|
-
#
|
2583
|
+
# Retrieves leave records for a specific employee
|
2584
2584
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2585
2585
|
# @param employee_id [String] Employee id for single object
|
2586
2586
|
# @param [Hash] opts the optional parameters
|
@@ -2590,7 +2590,7 @@ module XeroRuby
|
|
2590
2590
|
data
|
2591
2591
|
end
|
2592
2592
|
|
2593
|
-
#
|
2593
|
+
# Retrieves leave records for a specific employee
|
2594
2594
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2595
2595
|
# @param employee_id [String] Employee id for single object
|
2596
2596
|
# @param [Hash] opts the optional parameters
|
@@ -2608,7 +2608,7 @@ module XeroRuby
|
|
2608
2608
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_leaves"
|
2609
2609
|
end
|
2610
2610
|
# resource path
|
2611
|
-
local_var_path = '/Employees/{
|
2611
|
+
local_var_path = '/Employees/{EmployeeID}/Leave'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2612
2612
|
|
2613
2613
|
# camelize keys of incoming `where` opts
|
2614
2614
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2654,7 +2654,7 @@ module XeroRuby
|
|
2654
2654
|
return data, status_code, headers
|
2655
2655
|
end
|
2656
2656
|
|
2657
|
-
#
|
2657
|
+
# Retrieves the opening balance for a specific employee
|
2658
2658
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2659
2659
|
# @param employee_id [String] Employee id for single object
|
2660
2660
|
# @param [Hash] opts the optional parameters
|
@@ -2664,7 +2664,7 @@ module XeroRuby
|
|
2664
2664
|
data
|
2665
2665
|
end
|
2666
2666
|
|
2667
|
-
#
|
2667
|
+
# Retrieves the opening balance for a specific employee
|
2668
2668
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2669
2669
|
# @param employee_id [String] Employee id for single object
|
2670
2670
|
# @param [Hash] opts the optional parameters
|
@@ -2682,7 +2682,7 @@ module XeroRuby
|
|
2682
2682
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_opening_balances"
|
2683
2683
|
end
|
2684
2684
|
# resource path
|
2685
|
-
local_var_path = '/Employees/{
|
2685
|
+
local_var_path = '/Employees/{EmployeeID}/openingBalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2686
2686
|
|
2687
2687
|
# camelize keys of incoming `where` opts
|
2688
2688
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2728,7 +2728,7 @@ module XeroRuby
|
|
2728
2728
|
return data, status_code, headers
|
2729
2729
|
end
|
2730
2730
|
|
2731
|
-
#
|
2731
|
+
# Retrieves pay templates for a specific employee
|
2732
2732
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2733
2733
|
# @param employee_id [String] Employee id for single object
|
2734
2734
|
# @param [Hash] opts the optional parameters
|
@@ -2738,7 +2738,7 @@ module XeroRuby
|
|
2738
2738
|
data
|
2739
2739
|
end
|
2740
2740
|
|
2741
|
-
#
|
2741
|
+
# Retrieves pay templates for a specific employee
|
2742
2742
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2743
2743
|
# @param employee_id [String] Employee id for single object
|
2744
2744
|
# @param [Hash] opts the optional parameters
|
@@ -2756,7 +2756,7 @@ module XeroRuby
|
|
2756
2756
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_pay_templates"
|
2757
2757
|
end
|
2758
2758
|
# resource path
|
2759
|
-
local_var_path = '/Employees/{
|
2759
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2760
2760
|
|
2761
2761
|
# camelize keys of incoming `where` opts
|
2762
2762
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2802,7 +2802,7 @@ module XeroRuby
|
|
2802
2802
|
return data, status_code, headers
|
2803
2803
|
end
|
2804
2804
|
|
2805
|
-
#
|
2805
|
+
# Retrieves available payment methods for a specific employee
|
2806
2806
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2807
2807
|
# @param employee_id [String] Employee id for single object
|
2808
2808
|
# @param [Hash] opts the optional parameters
|
@@ -2812,7 +2812,7 @@ module XeroRuby
|
|
2812
2812
|
data
|
2813
2813
|
end
|
2814
2814
|
|
2815
|
-
#
|
2815
|
+
# Retrieves available payment methods for a specific employee
|
2816
2816
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2817
2817
|
# @param employee_id [String] Employee id for single object
|
2818
2818
|
# @param [Hash] opts the optional parameters
|
@@ -2830,7 +2830,7 @@ module XeroRuby
|
|
2830
2830
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_payment_method"
|
2831
2831
|
end
|
2832
2832
|
# resource path
|
2833
|
-
local_var_path = '/Employees/{
|
2833
|
+
local_var_path = '/Employees/{EmployeeID}/PaymentMethods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2834
2834
|
|
2835
2835
|
# camelize keys of incoming `where` opts
|
2836
2836
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2876,7 +2876,7 @@ module XeroRuby
|
|
2876
2876
|
return data, status_code, headers
|
2877
2877
|
end
|
2878
2878
|
|
2879
|
-
#
|
2879
|
+
# Retrieves an employee's salary and wages record by using a unique salary and wage ID
|
2880
2880
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2881
2881
|
# @param employee_id [String] Employee id for single object
|
2882
2882
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
@@ -2887,7 +2887,7 @@ module XeroRuby
|
|
2887
2887
|
data
|
2888
2888
|
end
|
2889
2889
|
|
2890
|
-
#
|
2890
|
+
# Retrieves an employee's salary and wages record by using a unique salary and wage ID
|
2891
2891
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2892
2892
|
# @param employee_id [String] Employee id for single object
|
2893
2893
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
@@ -2910,7 +2910,7 @@ module XeroRuby
|
|
2910
2910
|
fail ArgumentError, "Missing the required parameter 'salary_and_wages_id' when calling PayrollNzApi.get_employee_salary_and_wage"
|
2911
2911
|
end
|
2912
2912
|
# resource path
|
2913
|
-
local_var_path = '/Employees/{
|
2913
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'SalaryAndWagesID' + '}', salary_and_wages_id.to_s)
|
2914
2914
|
|
2915
2915
|
# camelize keys of incoming `where` opts
|
2916
2916
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2956,7 +2956,7 @@ module XeroRuby
|
|
2956
2956
|
return data, status_code, headers
|
2957
2957
|
end
|
2958
2958
|
|
2959
|
-
#
|
2959
|
+
# Retrieves an employee's salary and wages
|
2960
2960
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2961
2961
|
# @param employee_id [String] Employee id for single object
|
2962
2962
|
# @param [Hash] opts the optional parameters
|
@@ -2967,7 +2967,7 @@ module XeroRuby
|
|
2967
2967
|
data
|
2968
2968
|
end
|
2969
2969
|
|
2970
|
-
#
|
2970
|
+
# Retrieves an employee's salary and wages
|
2971
2971
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2972
2972
|
# @param employee_id [String] Employee id for single object
|
2973
2973
|
# @param [Hash] opts the optional parameters
|
@@ -2986,7 +2986,7 @@ module XeroRuby
|
|
2986
2986
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_salary_and_wages"
|
2987
2987
|
end
|
2988
2988
|
# resource path
|
2989
|
-
local_var_path = '/Employees/{
|
2989
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2990
2990
|
|
2991
2991
|
# camelize keys of incoming `where` opts
|
2992
2992
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3033,7 +3033,7 @@ module XeroRuby
|
|
3033
3033
|
return data, status_code, headers
|
3034
3034
|
end
|
3035
3035
|
|
3036
|
-
#
|
3036
|
+
# Retrieves tax records for a specific employee
|
3037
3037
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3038
3038
|
# @param employee_id [String] Employee id for single object
|
3039
3039
|
# @param [Hash] opts the optional parameters
|
@@ -3043,7 +3043,7 @@ module XeroRuby
|
|
3043
3043
|
data
|
3044
3044
|
end
|
3045
3045
|
|
3046
|
-
#
|
3046
|
+
# Retrieves tax records for a specific employee
|
3047
3047
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3048
3048
|
# @param employee_id [String] Employee id for single object
|
3049
3049
|
# @param [Hash] opts the optional parameters
|
@@ -3061,7 +3061,7 @@ module XeroRuby
|
|
3061
3061
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_tax"
|
3062
3062
|
end
|
3063
3063
|
# resource path
|
3064
|
-
local_var_path = '/Employees/{
|
3064
|
+
local_var_path = '/Employees/{EmployeeID}/Tax'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
3065
3065
|
|
3066
3066
|
# camelize keys of incoming `where` opts
|
3067
3067
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3107,7 +3107,7 @@ module XeroRuby
|
|
3107
3107
|
return data, status_code, headers
|
3108
3108
|
end
|
3109
3109
|
|
3110
|
-
#
|
3110
|
+
# Retrieves employees
|
3111
3111
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3112
3112
|
# @param [Hash] opts the optional parameters
|
3113
3113
|
# @option opts [String] :first_name Filter by first name
|
@@ -3119,7 +3119,7 @@ module XeroRuby
|
|
3119
3119
|
data
|
3120
3120
|
end
|
3121
3121
|
|
3122
|
-
#
|
3122
|
+
# Retrieves employees
|
3123
3123
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3124
3124
|
# @param [Hash] opts the optional parameters
|
3125
3125
|
# @option opts [String] :first_name Filter by first name
|
@@ -3184,7 +3184,7 @@ module XeroRuby
|
|
3184
3184
|
return data, status_code, headers
|
3185
3185
|
end
|
3186
3186
|
|
3187
|
-
#
|
3187
|
+
# Retrieves a specific leave type by using a unique leave type ID
|
3188
3188
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3189
3189
|
# @param leave_type_id [String] Identifier for the leave type
|
3190
3190
|
# @param [Hash] opts the optional parameters
|
@@ -3194,7 +3194,7 @@ module XeroRuby
|
|
3194
3194
|
data
|
3195
3195
|
end
|
3196
3196
|
|
3197
|
-
#
|
3197
|
+
# Retrieves a specific leave type by using a unique leave type ID
|
3198
3198
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3199
3199
|
# @param leave_type_id [String] Identifier for the leave type
|
3200
3200
|
# @param [Hash] opts the optional parameters
|
@@ -3258,7 +3258,7 @@ module XeroRuby
|
|
3258
3258
|
return data, status_code, headers
|
3259
3259
|
end
|
3260
3260
|
|
3261
|
-
#
|
3261
|
+
# Retrieves leave types
|
3262
3262
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3263
3263
|
# @param [Hash] opts the optional parameters
|
3264
3264
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -3269,7 +3269,7 @@ module XeroRuby
|
|
3269
3269
|
data
|
3270
3270
|
end
|
3271
3271
|
|
3272
|
-
#
|
3272
|
+
# Retrieves leave types
|
3273
3273
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3274
3274
|
# @param [Hash] opts the optional parameters
|
3275
3275
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -3332,7 +3332,7 @@ module XeroRuby
|
|
3332
3332
|
return data, status_code, headers
|
3333
3333
|
end
|
3334
3334
|
|
3335
|
-
#
|
3335
|
+
# Retrieves a specific pay run by using a unique pay run ID
|
3336
3336
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3337
3337
|
# @param pay_run_id [String] Identifier for the pay run
|
3338
3338
|
# @param [Hash] opts the optional parameters
|
@@ -3342,7 +3342,7 @@ module XeroRuby
|
|
3342
3342
|
data
|
3343
3343
|
end
|
3344
3344
|
|
3345
|
-
#
|
3345
|
+
# Retrieves a specific pay run by using a unique pay run ID
|
3346
3346
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3347
3347
|
# @param pay_run_id [String] Identifier for the pay run
|
3348
3348
|
# @param [Hash] opts the optional parameters
|
@@ -3406,7 +3406,7 @@ module XeroRuby
|
|
3406
3406
|
return data, status_code, headers
|
3407
3407
|
end
|
3408
3408
|
|
3409
|
-
#
|
3409
|
+
# Retrieves a specific payrun calendar by using a unique payroll calendar ID
|
3410
3410
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3411
3411
|
# @param payroll_calendar_id [String] Identifier for the payrun calendars
|
3412
3412
|
# @param [Hash] opts the optional parameters
|
@@ -3416,7 +3416,7 @@ module XeroRuby
|
|
3416
3416
|
data
|
3417
3417
|
end
|
3418
3418
|
|
3419
|
-
#
|
3419
|
+
# Retrieves a specific payrun calendar by using a unique payroll calendar ID
|
3420
3420
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3421
3421
|
# @param payroll_calendar_id [String] Identifier for the payrun calendars
|
3422
3422
|
# @param [Hash] opts the optional parameters
|
@@ -3480,7 +3480,7 @@ module XeroRuby
|
|
3480
3480
|
return data, status_code, headers
|
3481
3481
|
end
|
3482
3482
|
|
3483
|
-
#
|
3483
|
+
# Retrieves payrun calendars
|
3484
3484
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3485
3485
|
# @param [Hash] opts the optional parameters
|
3486
3486
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -3490,7 +3490,7 @@ module XeroRuby
|
|
3490
3490
|
data
|
3491
3491
|
end
|
3492
3492
|
|
3493
|
-
#
|
3493
|
+
# Retrieves payrun calendars
|
3494
3494
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3495
3495
|
# @param [Hash] opts the optional parameters
|
3496
3496
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -3551,7 +3551,7 @@ module XeroRuby
|
|
3551
3551
|
return data, status_code, headers
|
3552
3552
|
end
|
3553
3553
|
|
3554
|
-
#
|
3554
|
+
# Retrieves pay runs
|
3555
3555
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3556
3556
|
# @param [Hash] opts the optional parameters
|
3557
3557
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -3562,7 +3562,7 @@ module XeroRuby
|
|
3562
3562
|
data
|
3563
3563
|
end
|
3564
3564
|
|
3565
|
-
#
|
3565
|
+
# Retrieves pay runs
|
3566
3566
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3567
3567
|
# @param [Hash] opts the optional parameters
|
3568
3568
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -3629,7 +3629,7 @@ module XeroRuby
|
|
3629
3629
|
return data, status_code, headers
|
3630
3630
|
end
|
3631
3631
|
|
3632
|
-
#
|
3632
|
+
# Retrieves a specific payslip by a unique pay slip ID
|
3633
3633
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3634
3634
|
# @param pay_slip_id [String] Identifier for the payslip
|
3635
3635
|
# @param [Hash] opts the optional parameters
|
@@ -3639,7 +3639,7 @@ module XeroRuby
|
|
3639
3639
|
data
|
3640
3640
|
end
|
3641
3641
|
|
3642
|
-
#
|
3642
|
+
# Retrieves a specific payslip by a unique pay slip ID
|
3643
3643
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3644
3644
|
# @param pay_slip_id [String] Identifier for the payslip
|
3645
3645
|
# @param [Hash] opts the optional parameters
|
@@ -3703,7 +3703,7 @@ module XeroRuby
|
|
3703
3703
|
return data, status_code, headers
|
3704
3704
|
end
|
3705
3705
|
|
3706
|
-
#
|
3706
|
+
# Retrieves payslips
|
3707
3707
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3708
3708
|
# @param pay_run_id [String] PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.
|
3709
3709
|
# @param [Hash] opts the optional parameters
|
@@ -3714,7 +3714,7 @@ module XeroRuby
|
|
3714
3714
|
data
|
3715
3715
|
end
|
3716
3716
|
|
3717
|
-
#
|
3717
|
+
# Retrieves payslips
|
3718
3718
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3719
3719
|
# @param pay_run_id [String] PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.
|
3720
3720
|
# @param [Hash] opts the optional parameters
|
@@ -3781,7 +3781,7 @@ module XeroRuby
|
|
3781
3781
|
return data, status_code, headers
|
3782
3782
|
end
|
3783
3783
|
|
3784
|
-
#
|
3784
|
+
# Retrieves a specific reimbursement by using a unique reimbursement ID
|
3785
3785
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3786
3786
|
# @param reimbursement_id [String] Identifier for the reimbursement
|
3787
3787
|
# @param [Hash] opts the optional parameters
|
@@ -3791,7 +3791,7 @@ module XeroRuby
|
|
3791
3791
|
data
|
3792
3792
|
end
|
3793
3793
|
|
3794
|
-
#
|
3794
|
+
# Retrieves a specific reimbursement by using a unique reimbursement ID
|
3795
3795
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3796
3796
|
# @param reimbursement_id [String] Identifier for the reimbursement
|
3797
3797
|
# @param [Hash] opts the optional parameters
|
@@ -3855,7 +3855,7 @@ module XeroRuby
|
|
3855
3855
|
return data, status_code, headers
|
3856
3856
|
end
|
3857
3857
|
|
3858
|
-
#
|
3858
|
+
# Retrieves reimbursements
|
3859
3859
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3860
3860
|
# @param [Hash] opts the optional parameters
|
3861
3861
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -3865,7 +3865,7 @@ module XeroRuby
|
|
3865
3865
|
data
|
3866
3866
|
end
|
3867
3867
|
|
3868
|
-
#
|
3868
|
+
# Retrieves reimbursements
|
3869
3869
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3870
3870
|
# @param [Hash] opts the optional parameters
|
3871
3871
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -3926,7 +3926,7 @@ module XeroRuby
|
|
3926
3926
|
return data, status_code, headers
|
3927
3927
|
end
|
3928
3928
|
|
3929
|
-
#
|
3929
|
+
# Retrieves settings
|
3930
3930
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3931
3931
|
# @param [Hash] opts the optional parameters
|
3932
3932
|
# @return [Settings]
|
@@ -3935,7 +3935,7 @@ module XeroRuby
|
|
3935
3935
|
data
|
3936
3936
|
end
|
3937
3937
|
|
3938
|
-
#
|
3938
|
+
# Retrieves settings
|
3939
3939
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3940
3940
|
# @param [Hash] opts the optional parameters
|
3941
3941
|
# @return [Array<(Settings, Integer, Hash)>] Settings data, response status code and response headers
|
@@ -3994,7 +3994,7 @@ module XeroRuby
|
|
3994
3994
|
return data, status_code, headers
|
3995
3995
|
end
|
3996
3996
|
|
3997
|
-
#
|
3997
|
+
# Retrieves a specific statutory deduction by using a unique statutory deductions id
|
3998
3998
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3999
3999
|
# @param id [String] Identifier for the statutory deduction
|
4000
4000
|
# @param [Hash] opts the optional parameters
|
@@ -4004,7 +4004,7 @@ module XeroRuby
|
|
4004
4004
|
data
|
4005
4005
|
end
|
4006
4006
|
|
4007
|
-
#
|
4007
|
+
# Retrieves a specific statutory deduction by using a unique statutory deductions id
|
4008
4008
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4009
4009
|
# @param id [String] Identifier for the statutory deduction
|
4010
4010
|
# @param [Hash] opts the optional parameters
|
@@ -4022,7 +4022,7 @@ module XeroRuby
|
|
4022
4022
|
fail ArgumentError, "Missing the required parameter 'id' when calling PayrollNzApi.get_statutory_deduction"
|
4023
4023
|
end
|
4024
4024
|
# resource path
|
4025
|
-
local_var_path = '/StatutoryDeductions/{
|
4025
|
+
local_var_path = '/StatutoryDeductions/{id}'.sub('{' + 'id' + '}', id.to_s)
|
4026
4026
|
|
4027
4027
|
# camelize keys of incoming `where` opts
|
4028
4028
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4068,7 +4068,7 @@ module XeroRuby
|
|
4068
4068
|
return data, status_code, headers
|
4069
4069
|
end
|
4070
4070
|
|
4071
|
-
#
|
4071
|
+
# Retrieves statutory deductions
|
4072
4072
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4073
4073
|
# @param [Hash] opts the optional parameters
|
4074
4074
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -4078,7 +4078,7 @@ module XeroRuby
|
|
4078
4078
|
data
|
4079
4079
|
end
|
4080
4080
|
|
4081
|
-
#
|
4081
|
+
# Retrieves statutory deductions
|
4082
4082
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4083
4083
|
# @param [Hash] opts the optional parameters
|
4084
4084
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -4139,7 +4139,7 @@ module XeroRuby
|
|
4139
4139
|
return data, status_code, headers
|
4140
4140
|
end
|
4141
4141
|
|
4142
|
-
#
|
4142
|
+
# Retrieves a specific superannuation using a unique superannuation ID
|
4143
4143
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4144
4144
|
# @param superannuation_id [String] Identifier for the superannuation
|
4145
4145
|
# @param [Hash] opts the optional parameters
|
@@ -4149,7 +4149,7 @@ module XeroRuby
|
|
4149
4149
|
data
|
4150
4150
|
end
|
4151
4151
|
|
4152
|
-
#
|
4152
|
+
# Retrieves a specific superannuation using a unique superannuation ID
|
4153
4153
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4154
4154
|
# @param superannuation_id [String] Identifier for the superannuation
|
4155
4155
|
# @param [Hash] opts the optional parameters
|
@@ -4167,7 +4167,7 @@ module XeroRuby
|
|
4167
4167
|
fail ArgumentError, "Missing the required parameter 'superannuation_id' when calling PayrollNzApi.get_superannuation"
|
4168
4168
|
end
|
4169
4169
|
# resource path
|
4170
|
-
local_var_path = '/
|
4170
|
+
local_var_path = '/Superannuations/{SuperannuationID}'.sub('{' + 'SuperannuationID' + '}', superannuation_id.to_s)
|
4171
4171
|
|
4172
4172
|
# camelize keys of incoming `where` opts
|
4173
4173
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4213,7 +4213,7 @@ module XeroRuby
|
|
4213
4213
|
return data, status_code, headers
|
4214
4214
|
end
|
4215
4215
|
|
4216
|
-
#
|
4216
|
+
# Retrieves superannuations
|
4217
4217
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4218
4218
|
# @param [Hash] opts the optional parameters
|
4219
4219
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -4223,7 +4223,7 @@ module XeroRuby
|
|
4223
4223
|
data
|
4224
4224
|
end
|
4225
4225
|
|
4226
|
-
#
|
4226
|
+
# Retrieves superannuations
|
4227
4227
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4228
4228
|
# @param [Hash] opts the optional parameters
|
4229
4229
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -4237,7 +4237,7 @@ module XeroRuby
|
|
4237
4237
|
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollNzApi.get_superannuations"
|
4238
4238
|
end
|
4239
4239
|
# resource path
|
4240
|
-
local_var_path = '/
|
4240
|
+
local_var_path = '/Superannuations'
|
4241
4241
|
|
4242
4242
|
# camelize keys of incoming `where` opts
|
4243
4243
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4284,7 +4284,7 @@ module XeroRuby
|
|
4284
4284
|
return data, status_code, headers
|
4285
4285
|
end
|
4286
4286
|
|
4287
|
-
#
|
4287
|
+
# Retrieves a specific timesheet by using a unique timesheet ID
|
4288
4288
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4289
4289
|
# @param timesheet_id [String] Identifier for the timesheet
|
4290
4290
|
# @param [Hash] opts the optional parameters
|
@@ -4294,7 +4294,7 @@ module XeroRuby
|
|
4294
4294
|
data
|
4295
4295
|
end
|
4296
4296
|
|
4297
|
-
#
|
4297
|
+
# Retrieves a specific timesheet by using a unique timesheet ID
|
4298
4298
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4299
4299
|
# @param timesheet_id [String] Identifier for the timesheet
|
4300
4300
|
# @param [Hash] opts the optional parameters
|
@@ -4358,11 +4358,11 @@ module XeroRuby
|
|
4358
4358
|
return data, status_code, headers
|
4359
4359
|
end
|
4360
4360
|
|
4361
|
-
#
|
4361
|
+
# Retrieves timesheets
|
4362
4362
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4363
4363
|
# @param [Hash] opts the optional parameters
|
4364
4364
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
4365
|
-
# @option opts [String] :employee_id By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter=employeeId=={
|
4365
|
+
# @option opts [String] :employee_id By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter=employeeId=={EmployeeID} to get only the timesheets of a particular employee.
|
4366
4366
|
# @option opts [String] :payroll_calendar_id By default get Timesheets will return all the timesheets for an organization. You can add GET https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter the timesheets by payroll calendar id
|
4367
4367
|
# @return [Timesheets]
|
4368
4368
|
def get_timesheets(xero_tenant_id, opts = {})
|
@@ -4370,11 +4370,11 @@ module XeroRuby
|
|
4370
4370
|
data
|
4371
4371
|
end
|
4372
4372
|
|
4373
|
-
#
|
4373
|
+
# Retrieves timesheets
|
4374
4374
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4375
4375
|
# @param [Hash] opts the optional parameters
|
4376
4376
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
4377
|
-
# @option opts [String] :employee_id By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter=employeeId=={
|
4377
|
+
# @option opts [String] :employee_id By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter=employeeId=={EmployeeID} to get only the timesheets of a particular employee.
|
4378
4378
|
# @option opts [String] :payroll_calendar_id By default get Timesheets will return all the timesheets for an organization. You can add GET https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter the timesheets by payroll calendar id
|
4379
4379
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
4380
4380
|
def get_timesheets_with_http_info(xero_tenant_id, opts = {})
|
@@ -4435,7 +4435,7 @@ module XeroRuby
|
|
4435
4435
|
return data, status_code, headers
|
4436
4436
|
end
|
4437
4437
|
|
4438
|
-
#
|
4438
|
+
# Retrieves tracking categories
|
4439
4439
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4440
4440
|
# @param [Hash] opts the optional parameters
|
4441
4441
|
# @return [TrackingCategories]
|
@@ -4444,7 +4444,7 @@ module XeroRuby
|
|
4444
4444
|
data
|
4445
4445
|
end
|
4446
4446
|
|
4447
|
-
#
|
4447
|
+
# Retrieves tracking categories
|
4448
4448
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4449
4449
|
# @param [Hash] opts the optional parameters
|
4450
4450
|
# @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
|
@@ -4457,7 +4457,7 @@ module XeroRuby
|
|
4457
4457
|
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollNzApi.get_tracking_categories"
|
4458
4458
|
end
|
4459
4459
|
# resource path
|
4460
|
-
local_var_path = '/
|
4460
|
+
local_var_path = '/Settings/TrackingCategories'
|
4461
4461
|
|
4462
4462
|
# camelize keys of incoming `where` opts
|
4463
4463
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4503,7 +4503,7 @@ module XeroRuby
|
|
4503
4503
|
return data, status_code, headers
|
4504
4504
|
end
|
4505
4505
|
|
4506
|
-
#
|
4506
|
+
# Reverts a timesheet to draft
|
4507
4507
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4508
4508
|
# @param timesheet_id [String] Identifier for the timesheet
|
4509
4509
|
# @param [Hash] opts the optional parameters
|
@@ -4513,7 +4513,7 @@ module XeroRuby
|
|
4513
4513
|
data
|
4514
4514
|
end
|
4515
4515
|
|
4516
|
-
#
|
4516
|
+
# Reverts a timesheet to draft
|
4517
4517
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4518
4518
|
# @param timesheet_id [String] Identifier for the timesheet
|
4519
4519
|
# @param [Hash] opts the optional parameters
|
@@ -4577,7 +4577,7 @@ module XeroRuby
|
|
4577
4577
|
return data, status_code, headers
|
4578
4578
|
end
|
4579
4579
|
|
4580
|
-
#
|
4580
|
+
# Updates an existing employee
|
4581
4581
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4582
4582
|
# @param employee_id [String] Employee id for single object
|
4583
4583
|
# @param employee [Employee]
|
@@ -4588,7 +4588,7 @@ module XeroRuby
|
|
4588
4588
|
data
|
4589
4589
|
end
|
4590
4590
|
|
4591
|
-
#
|
4591
|
+
# Updates an existing employee
|
4592
4592
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4593
4593
|
# @param employee_id [String] Employee id for single object
|
4594
4594
|
# @param employee [Employee]
|
@@ -4611,7 +4611,7 @@ module XeroRuby
|
|
4611
4611
|
fail ArgumentError, "Missing the required parameter 'employee' when calling PayrollNzApi.update_employee"
|
4612
4612
|
end
|
4613
4613
|
# resource path
|
4614
|
-
local_var_path = '/Employees/{
|
4614
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
4615
4615
|
|
4616
4616
|
# camelize keys of incoming `where` opts
|
4617
4617
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4659,7 +4659,7 @@ module XeroRuby
|
|
4659
4659
|
return data, status_code, headers
|
4660
4660
|
end
|
4661
4661
|
|
4662
|
-
#
|
4662
|
+
# Updates an earnings template records for an employee
|
4663
4663
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4664
4664
|
# @param employee_id [String] Employee id for single object
|
4665
4665
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
@@ -4671,7 +4671,7 @@ module XeroRuby
|
|
4671
4671
|
data
|
4672
4672
|
end
|
4673
4673
|
|
4674
|
-
#
|
4674
|
+
# Updates an earnings template records for an employee
|
4675
4675
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4676
4676
|
# @param employee_id [String] Employee id for single object
|
4677
4677
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
@@ -4699,7 +4699,7 @@ module XeroRuby
|
|
4699
4699
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollNzApi.update_employee_earnings_template"
|
4700
4700
|
end
|
4701
4701
|
# resource path
|
4702
|
-
local_var_path = '/Employees/{
|
4702
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates/earnings/{PayTemplateEarningID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'PayTemplateEarningID' + '}', pay_template_earning_id.to_s)
|
4703
4703
|
|
4704
4704
|
# camelize keys of incoming `where` opts
|
4705
4705
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4747,7 +4747,7 @@ module XeroRuby
|
|
4747
4747
|
return data, status_code, headers
|
4748
4748
|
end
|
4749
4749
|
|
4750
|
-
#
|
4750
|
+
# Updates leave records for a specific employee
|
4751
4751
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4752
4752
|
# @param employee_id [String] Employee id for single object
|
4753
4753
|
# @param leave_id [String] Leave id for single object
|
@@ -4759,7 +4759,7 @@ module XeroRuby
|
|
4759
4759
|
data
|
4760
4760
|
end
|
4761
4761
|
|
4762
|
-
#
|
4762
|
+
# Updates leave records for a specific employee
|
4763
4763
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4764
4764
|
# @param employee_id [String] Employee id for single object
|
4765
4765
|
# @param leave_id [String] Leave id for single object
|
@@ -4787,7 +4787,7 @@ module XeroRuby
|
|
4787
4787
|
fail ArgumentError, "Missing the required parameter 'employee_leave' when calling PayrollNzApi.update_employee_leave"
|
4788
4788
|
end
|
4789
4789
|
# resource path
|
4790
|
-
local_var_path = '/Employees/{
|
4790
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
4791
4791
|
|
4792
4792
|
# camelize keys of incoming `where` opts
|
4793
4793
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4835,7 +4835,7 @@ module XeroRuby
|
|
4835
4835
|
return data, status_code, headers
|
4836
4836
|
end
|
4837
4837
|
|
4838
|
-
#
|
4838
|
+
# Updates an employee's salary and wages record
|
4839
4839
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4840
4840
|
# @param employee_id [String] Employee id for single object
|
4841
4841
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
@@ -4847,7 +4847,7 @@ module XeroRuby
|
|
4847
4847
|
data
|
4848
4848
|
end
|
4849
4849
|
|
4850
|
-
#
|
4850
|
+
# Updates an employee's salary and wages record
|
4851
4851
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4852
4852
|
# @param employee_id [String] Employee id for single object
|
4853
4853
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
@@ -4875,7 +4875,7 @@ module XeroRuby
|
|
4875
4875
|
fail ArgumentError, "Missing the required parameter 'salary_and_wage' when calling PayrollNzApi.update_employee_salary_and_wage"
|
4876
4876
|
end
|
4877
4877
|
# resource path
|
4878
|
-
local_var_path = '/Employees/{
|
4878
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'SalaryAndWagesID' + '}', salary_and_wages_id.to_s)
|
4879
4879
|
|
4880
4880
|
# camelize keys of incoming `where` opts
|
4881
4881
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4923,7 +4923,7 @@ module XeroRuby
|
|
4923
4923
|
return data, status_code, headers
|
4924
4924
|
end
|
4925
4925
|
|
4926
|
-
#
|
4926
|
+
# Updates the tax records for a specific employee
|
4927
4927
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4928
4928
|
# @param employee_id [String] Employee id for single object
|
4929
4929
|
# @param employee_tax [EmployeeTax]
|
@@ -4934,7 +4934,7 @@ module XeroRuby
|
|
4934
4934
|
data
|
4935
4935
|
end
|
4936
4936
|
|
4937
|
-
#
|
4937
|
+
# Updates the tax records for a specific employee
|
4938
4938
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4939
4939
|
# @param employee_id [String] Employee id for single object
|
4940
4940
|
# @param employee_tax [EmployeeTax]
|
@@ -4957,7 +4957,7 @@ module XeroRuby
|
|
4957
4957
|
fail ArgumentError, "Missing the required parameter 'employee_tax' when calling PayrollNzApi.update_employee_tax"
|
4958
4958
|
end
|
4959
4959
|
# resource path
|
4960
|
-
local_var_path = '/Employees/{
|
4960
|
+
local_var_path = '/Employees/{EmployeeID}/Tax'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
4961
4961
|
|
4962
4962
|
# camelize keys of incoming `where` opts
|
4963
4963
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -5005,7 +5005,7 @@ module XeroRuby
|
|
5005
5005
|
return data, status_code, headers
|
5006
5006
|
end
|
5007
5007
|
|
5008
|
-
#
|
5008
|
+
# Updates a pay run
|
5009
5009
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5010
5010
|
# @param pay_run_id [String] Identifier for the pay run
|
5011
5011
|
# @param pay_run [PayRun]
|
@@ -5016,7 +5016,7 @@ module XeroRuby
|
|
5016
5016
|
data
|
5017
5017
|
end
|
5018
5018
|
|
5019
|
-
#
|
5019
|
+
# Updates a pay run
|
5020
5020
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5021
5021
|
# @param pay_run_id [String] Identifier for the pay run
|
5022
5022
|
# @param pay_run [PayRun]
|
@@ -5087,7 +5087,7 @@ module XeroRuby
|
|
5087
5087
|
return data, status_code, headers
|
5088
5088
|
end
|
5089
5089
|
|
5090
|
-
#
|
5090
|
+
# Creates an employee pay slip
|
5091
5091
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5092
5092
|
# @param pay_slip_id [String] Identifier for the payslip
|
5093
5093
|
# @param pay_slip [PaySlip]
|
@@ -5098,7 +5098,7 @@ module XeroRuby
|
|
5098
5098
|
data
|
5099
5099
|
end
|
5100
5100
|
|
5101
|
-
#
|
5101
|
+
# Creates an employee pay slip
|
5102
5102
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5103
5103
|
# @param pay_slip_id [String] Identifier for the payslip
|
5104
5104
|
# @param pay_slip [PaySlip]
|
@@ -5169,7 +5169,7 @@ module XeroRuby
|
|
5169
5169
|
return data, status_code, headers
|
5170
5170
|
end
|
5171
5171
|
|
5172
|
-
#
|
5172
|
+
# Updates a timesheet line for a specific timesheet
|
5173
5173
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5174
5174
|
# @param timesheet_id [String] Identifier for the timesheet
|
5175
5175
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
@@ -5181,7 +5181,7 @@ module XeroRuby
|
|
5181
5181
|
data
|
5182
5182
|
end
|
5183
5183
|
|
5184
|
-
#
|
5184
|
+
# Updates a timesheet line for a specific timesheet
|
5185
5185
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5186
5186
|
# @param timesheet_id [String] Identifier for the timesheet
|
5187
5187
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|