xero-ruby 2.5.0 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +46 -7
- data/lib/xero-ruby.rb +4 -3
- data/lib/xero-ruby/api/accounting_api.rb +446 -441
- data/lib/xero-ruby/api/asset_api.rb +3 -8
- data/lib/xero-ruby/api/files_api.rb +49 -56
- data/lib/xero-ruby/api/payroll_au_api.rb +63 -64
- data/lib/xero-ruby/api/payroll_nz_api.rb +171 -172
- data/lib/xero-ruby/api/payroll_uk_api.rb +173 -174
- data/lib/xero-ruby/api/project_api.rb +45 -46
- data/lib/xero-ruby/api_client.rb +28 -90
- data/lib/xero-ruby/api_error.rb +1 -2
- data/lib/xero-ruby/configuration.rb +3 -4
- data/lib/xero-ruby/models/accounting/account.rb +15 -8
- data/lib/xero-ruby/models/accounting/account_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/accounts.rb +15 -7
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +15 -7
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +15 -7
- data/lib/xero-ruby/models/accounting/action.rb +15 -7
- data/lib/xero-ruby/models/accounting/actions.rb +15 -7
- data/lib/xero-ruby/models/accounting/address.rb +15 -7
- data/lib/xero-ruby/models/accounting/address_for_organisation.rb +15 -7
- data/lib/xero-ruby/models/accounting/allocation.rb +15 -7
- data/lib/xero-ruby/models/accounting/allocations.rb +15 -7
- data/lib/xero-ruby/models/accounting/attachment.rb +15 -7
- data/lib/xero-ruby/models/accounting/attachments.rb +15 -7
- data/lib/xero-ruby/models/accounting/balance_details.rb +15 -7
- data/lib/xero-ruby/models/accounting/balances.rb +15 -7
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +15 -7
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +15 -7
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +15 -7
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +15 -7
- data/lib/xero-ruby/models/accounting/batch_payment.rb +15 -7
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +15 -7
- data/lib/xero-ruby/models/accounting/batch_payments.rb +15 -7
- data/lib/xero-ruby/models/accounting/bill.rb +15 -7
- data/lib/xero-ruby/models/accounting/branding_theme.rb +15 -7
- data/lib/xero-ruby/models/accounting/branding_themes.rb +15 -7
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +15 -7
- data/lib/xero-ruby/models/{files/file_response204.rb → accounting/cis_org_settings.rb} +30 -20
- data/lib/xero-ruby/models/accounting/cis_setting.rb +15 -7
- data/lib/xero-ruby/models/accounting/cis_settings.rb +15 -7
- data/lib/xero-ruby/models/accounting/contact.rb +15 -7
- data/lib/xero-ruby/models/accounting/contact_group.rb +15 -7
- data/lib/xero-ruby/models/accounting/contact_groups.rb +15 -7
- data/lib/xero-ruby/models/accounting/contact_person.rb +15 -7
- data/lib/xero-ruby/models/accounting/contacts.rb +15 -7
- data/lib/xero-ruby/models/accounting/conversion_balances.rb +15 -7
- data/lib/xero-ruby/models/accounting/conversion_date.rb +15 -7
- data/lib/xero-ruby/models/accounting/country_code.rb +1 -2
- data/lib/xero-ruby/models/accounting/credit_note.rb +32 -12
- data/lib/xero-ruby/models/accounting/credit_notes.rb +15 -7
- data/lib/xero-ruby/models/accounting/currencies.rb +15 -7
- data/lib/xero-ruby/models/accounting/currency.rb +15 -7
- data/lib/xero-ruby/models/accounting/currency_code.rb +1 -2
- data/lib/xero-ruby/models/accounting/element.rb +15 -7
- data/lib/xero-ruby/models/accounting/employee.rb +15 -7
- data/lib/xero-ruby/models/accounting/employees.rb +15 -7
- data/lib/xero-ruby/models/accounting/error.rb +15 -7
- data/lib/xero-ruby/models/accounting/expense_claim.rb +15 -7
- data/lib/xero-ruby/models/accounting/expense_claims.rb +15 -7
- data/lib/xero-ruby/models/accounting/external_link.rb +15 -7
- data/lib/xero-ruby/models/accounting/history_record.rb +15 -7
- data/lib/xero-ruby/models/accounting/history_records.rb +15 -7
- data/lib/xero-ruby/models/accounting/import_summary.rb +15 -7
- data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +15 -7
- data/lib/xero-ruby/models/accounting/import_summary_object.rb +15 -7
- data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +15 -7
- data/lib/xero-ruby/models/accounting/invoice.rb +15 -7
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +15 -7
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +15 -7
- data/lib/xero-ruby/models/accounting/invoices.rb +15 -7
- data/lib/xero-ruby/models/accounting/item.rb +15 -7
- data/lib/xero-ruby/models/accounting/items.rb +15 -7
- data/lib/xero-ruby/models/accounting/journal.rb +15 -7
- data/lib/xero-ruby/models/accounting/journal_line.rb +15 -7
- data/lib/xero-ruby/models/accounting/journals.rb +15 -7
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -2
- data/lib/xero-ruby/models/accounting/line_item.rb +15 -7
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +15 -7
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +15 -7
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +15 -7
- data/lib/xero-ruby/models/accounting/manual_journal.rb +15 -7
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +15 -7
- data/lib/xero-ruby/models/accounting/manual_journals.rb +15 -7
- data/lib/xero-ruby/models/accounting/online_invoice.rb +15 -7
- data/lib/xero-ruby/models/accounting/online_invoices.rb +15 -7
- data/lib/xero-ruby/models/accounting/organisation.rb +15 -9
- data/lib/xero-ruby/models/accounting/organisations.rb +15 -7
- data/lib/xero-ruby/models/accounting/overpayment.rb +15 -7
- data/lib/xero-ruby/models/accounting/overpayments.rb +15 -7
- data/lib/xero-ruby/models/accounting/payment.rb +26 -8
- data/lib/xero-ruby/models/accounting/payment_delete.rb +15 -7
- data/lib/xero-ruby/models/accounting/payment_service.rb +15 -7
- data/lib/xero-ruby/models/accounting/payment_services.rb +15 -7
- data/lib/xero-ruby/models/accounting/payment_term.rb +15 -7
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/payments.rb +15 -7
- data/lib/xero-ruby/models/accounting/phone.rb +15 -7
- data/lib/xero-ruby/models/accounting/prepayment.rb +15 -7
- data/lib/xero-ruby/models/accounting/prepayments.rb +15 -7
- data/lib/xero-ruby/models/accounting/purchase.rb +15 -7
- data/lib/xero-ruby/models/accounting/purchase_order.rb +15 -7
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +15 -7
- data/lib/xero-ruby/models/accounting/quote.rb +15 -7
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -2
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -2
- data/lib/xero-ruby/models/accounting/quotes.rb +15 -7
- data/lib/xero-ruby/models/accounting/receipt.rb +15 -7
- data/lib/xero-ruby/models/accounting/receipts.rb +15 -7
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +15 -7
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +15 -7
- data/lib/xero-ruby/models/accounting/report.rb +15 -7
- data/lib/xero-ruby/models/accounting/report_attribute.rb +15 -7
- data/lib/xero-ruby/models/accounting/report_cell.rb +15 -7
- data/lib/xero-ruby/models/accounting/report_fields.rb +15 -7
- data/lib/xero-ruby/models/accounting/report_row.rb +15 -7
- data/lib/xero-ruby/models/accounting/report_rows.rb +15 -7
- data/lib/xero-ruby/models/accounting/report_with_row.rb +15 -7
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +15 -7
- data/lib/xero-ruby/models/accounting/reports.rb +15 -7
- data/lib/xero-ruby/models/accounting/request_empty.rb +15 -7
- data/lib/xero-ruby/models/accounting/row_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +15 -7
- data/lib/xero-ruby/models/accounting/schedule.rb +15 -7
- data/lib/xero-ruby/models/accounting/setup.rb +15 -7
- data/lib/xero-ruby/models/accounting/tax_component.rb +15 -7
- data/lib/xero-ruby/models/accounting/tax_rate.rb +15 -7
- data/lib/xero-ruby/models/accounting/tax_rates.rb +15 -7
- data/lib/xero-ruby/models/accounting/tax_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +15 -7
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -2
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +15 -7
- data/lib/xero-ruby/models/accounting/tracking_category.rb +15 -7
- data/lib/xero-ruby/models/accounting/tracking_option.rb +15 -7
- data/lib/xero-ruby/models/accounting/tracking_options.rb +15 -7
- data/lib/xero-ruby/models/accounting/user.rb +15 -7
- data/lib/xero-ruby/models/accounting/users.rb +15 -7
- data/lib/xero-ruby/models/accounting/validation_error.rb +15 -7
- data/lib/xero-ruby/models/assets/asset.rb +15 -7
- data/lib/xero-ruby/models/assets/asset_status.rb +1 -2
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -2
- data/lib/xero-ruby/models/assets/asset_type.rb +15 -7
- data/lib/xero-ruby/models/assets/assets.rb +15 -7
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +15 -7
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +15 -7
- data/lib/xero-ruby/models/assets/error.rb +15 -7
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +16 -8
- data/lib/xero-ruby/models/assets/pagination.rb +15 -7
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +16 -8
- data/lib/xero-ruby/models/assets/setting.rb +15 -7
- data/lib/xero-ruby/models/files/association.rb +15 -7
- data/lib/xero-ruby/models/files/file_object.rb +15 -7
- data/lib/xero-ruby/models/files/files.rb +15 -7
- data/lib/xero-ruby/models/files/folder.rb +15 -7
- data/lib/xero-ruby/models/files/folders.rb +15 -7
- data/lib/xero-ruby/models/files/inline_object.rb +15 -7
- data/lib/xero-ruby/models/files/object_group.rb +1 -2
- data/lib/xero-ruby/models/files/object_type.rb +1 -2
- data/lib/xero-ruby/models/files/user.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/account.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/account_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/api_exception.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/bank_account.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/calendar_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/earnings_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/employee.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/employee_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/employees.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/home_address.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_applications.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_balance.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/leave_lines.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_period.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/pay_item.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/pay_items.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/pay_run.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/pay_runs.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/pay_template.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/payslip.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/payslip_object.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/payslips.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/rate_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/residency_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/settings.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/settings_object.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/state.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/super_fund.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/super_funds.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/super_line.rb +16 -8
- data/lib/xero-ruby/models/payroll_au/super_membership.rb +16 -8
- data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/tax_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/timesheet.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/timesheets.rb +15 -7
- data/lib/xero-ruby/models/payroll_au/validation_error.rb +15 -7
- data/lib/xero-ruby/models/payroll_nz/account.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/accounts.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/address.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/bank_account.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/benefit.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/deduction.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/deductions.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +15 -7
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employees.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employment.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/employment_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/leave_types.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pagination.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_run.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/payment_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/payment_method.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/problem.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/settings.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/superannuations.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/tax_code.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/tax_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +15 -7
- data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +15 -7
- data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/timesheets.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +14 -6
- data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/account.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/accounts.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/address.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/bank_account.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/benefit.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/benefits.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/deduction.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/deductions.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +15 -7
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employees.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employment.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/employment_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/leave_period.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/leave_type.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/leave_types.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/pagination.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/pay_run.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/payment_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/payment_method.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/payslip.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/payslips.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/problem.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/settings.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +0 -1
- data/lib/xero-ruby/models/payroll_uk/tax_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +15 -7
- data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/timesheets.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +14 -6
- data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +14 -6
- data/lib/xero-ruby/models/projects/amount.rb +14 -6
- data/lib/xero-ruby/models/projects/charge_type.rb +0 -1
- data/lib/xero-ruby/models/projects/currency_code.rb +0 -1
- data/lib/xero-ruby/models/projects/error.rb +14 -6
- data/lib/xero-ruby/models/projects/pagination.rb +14 -6
- data/lib/xero-ruby/models/projects/project.rb +14 -6
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +14 -6
- data/lib/xero-ruby/models/projects/project_patch.rb +14 -6
- data/lib/xero-ruby/models/projects/project_status.rb +0 -1
- data/lib/xero-ruby/models/projects/project_user.rb +14 -6
- data/lib/xero-ruby/models/projects/project_users.rb +14 -6
- data/lib/xero-ruby/models/projects/projects.rb +14 -6
- data/lib/xero-ruby/models/projects/task.rb +14 -6
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +14 -6
- data/lib/xero-ruby/models/projects/tasks.rb +14 -6
- data/lib/xero-ruby/models/projects/time_entries.rb +14 -6
- data/lib/xero-ruby/models/projects/time_entry.rb +14 -6
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +14 -6
- 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/api_client_spec.rb +101 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/helper_methods_spec.rb +82 -0
- data/spec/where_spec.rb +82 -0
- metadata +12 -456
- data/CODE_OF_CONDUCT.md +0 -76
- data/CONTRIBUTING.md +0 -82
- data/Gemfile +0 -9
- data/Gemfile.lock +0 -68
- data/LICENSE +0 -21
- data/Rakefile +0 -10
- data/build_notes.md +0 -52
- data/docs/accounting/Account.md +0 -55
- data/docs/accounting/AccountType.md +0 -16
- data/docs/accounting/AccountingApi.md +0 -15310
- data/docs/accounting/Accounts.md +0 -17
- data/docs/accounting/AccountsPayable.md +0 -19
- data/docs/accounting/AccountsReceivable.md +0 -19
- data/docs/accounting/Action.md +0 -19
- data/docs/accounting/Actions.md +0 -17
- data/docs/accounting/Address.md +0 -35
- data/docs/accounting/AddressForOrganisation.md +0 -35
- data/docs/accounting/Allocation.md +0 -31
- data/docs/accounting/Allocations.md +0 -17
- data/docs/accounting/Attachment.md +0 -27
- data/docs/accounting/Attachments.md +0 -17
- data/docs/accounting/BalanceDetails.md +0 -21
- data/docs/accounting/Balances.md +0 -19
- data/docs/accounting/BankTransaction.md +0 -59
- data/docs/accounting/BankTransactions.md +0 -17
- data/docs/accounting/BankTransfer.md +0 -37
- data/docs/accounting/BankTransfers.md +0 -17
- data/docs/accounting/BatchPayment.md +0 -47
- data/docs/accounting/BatchPaymentDetails.md +0 -25
- data/docs/accounting/BatchPayments.md +0 -17
- data/docs/accounting/Bill.md +0 -19
- data/docs/accounting/BrandingTheme.md +0 -27
- data/docs/accounting/BrandingThemes.md +0 -17
- data/docs/accounting/CISOrgSetting.md +0 -21
- data/docs/accounting/CISSetting.md +0 -19
- data/docs/accounting/CISSettings.md +0 -17
- data/docs/accounting/Contact.md +0 -93
- data/docs/accounting/ContactGroup.md +0 -23
- data/docs/accounting/ContactGroups.md +0 -17
- data/docs/accounting/ContactPerson.md +0 -23
- data/docs/accounting/Contacts.md +0 -17
- data/docs/accounting/ConversionBalances.md +0 -21
- data/docs/accounting/ConversionDate.md +0 -19
- data/docs/accounting/CountryCode.md +0 -16
- data/docs/accounting/CreditNote.md +0 -73
- data/docs/accounting/CreditNotes.md +0 -17
- data/docs/accounting/Currencies.md +0 -17
- data/docs/accounting/Currency.md +0 -19
- data/docs/accounting/CurrencyCode.md +0 -16
- data/docs/accounting/Element.md +0 -31
- data/docs/accounting/Employee.md +0 -31
- data/docs/accounting/Employees.md +0 -17
- data/docs/accounting/Error.md +0 -23
- data/docs/accounting/ExpenseClaim.md +0 -39
- data/docs/accounting/ExpenseClaims.md +0 -17
- data/docs/accounting/ExternalLink.md +0 -21
- data/docs/accounting/HistoryRecord.md +0 -23
- data/docs/accounting/HistoryRecords.md +0 -17
- data/docs/accounting/ImportSummary.md +0 -19
- data/docs/accounting/ImportSummaryAccounts.md +0 -33
- data/docs/accounting/ImportSummaryObject.md +0 -17
- data/docs/accounting/ImportSummaryOrganisation.md +0 -17
- data/docs/accounting/Invoice.md +0 -95
- data/docs/accounting/InvoiceReminder.md +0 -17
- data/docs/accounting/InvoiceReminders.md +0 -17
- data/docs/accounting/Invoices.md +0 -17
- data/docs/accounting/Item.md +0 -47
- data/docs/accounting/Items.md +0 -17
- data/docs/accounting/Journal.md +0 -31
- data/docs/accounting/JournalLine.md +0 -39
- data/docs/accounting/Journals.md +0 -17
- data/docs/accounting/LineAmountTypes.md +0 -16
- data/docs/accounting/LineItem.md +0 -41
- data/docs/accounting/LineItemTracking.md +0 -23
- data/docs/accounting/LinkedTransaction.md +0 -37
- data/docs/accounting/LinkedTransactions.md +0 -17
- data/docs/accounting/ManualJournal.md +0 -43
- data/docs/accounting/ManualJournalLine.md +0 -31
- data/docs/accounting/ManualJournals.md +0 -17
- data/docs/accounting/OnlineInvoice.md +0 -17
- data/docs/accounting/OnlineInvoices.md +0 -17
- data/docs/accounting/Organisation.md +0 -81
- data/docs/accounting/Organisations.md +0 -17
- data/docs/accounting/Overpayment.md +0 -53
- data/docs/accounting/Overpayments.md +0 -17
- data/docs/accounting/Payment.md +0 -63
- data/docs/accounting/PaymentDelete.md +0 -17
- data/docs/accounting/PaymentService.md +0 -27
- data/docs/accounting/PaymentServices.md +0 -17
- data/docs/accounting/PaymentTerm.md +0 -19
- data/docs/accounting/PaymentTermType.md +0 -16
- data/docs/accounting/Payments.md +0 -17
- data/docs/accounting/Phone.md +0 -23
- data/docs/accounting/Prepayment.md +0 -53
- data/docs/accounting/Prepayments.md +0 -17
- data/docs/accounting/Purchase.md +0 -23
- data/docs/accounting/PurchaseOrder.md +0 -71
- data/docs/accounting/PurchaseOrders.md +0 -17
- data/docs/accounting/Quote.md +0 -63
- data/docs/accounting/QuoteLineAmountTypes.md +0 -16
- data/docs/accounting/QuoteStatusCodes.md +0 -16
- data/docs/accounting/Quotes.md +0 -17
- data/docs/accounting/Receipt.md +0 -51
- data/docs/accounting/Receipts.md +0 -17
- data/docs/accounting/RepeatingInvoice.md +0 -47
- data/docs/accounting/RepeatingInvoices.md +0 -17
- data/docs/accounting/Report.md +0 -29
- data/docs/accounting/ReportAttribute.md +0 -19
- data/docs/accounting/ReportCell.md +0 -19
- data/docs/accounting/ReportFields.md +0 -21
- data/docs/accounting/ReportRow.md +0 -21
- data/docs/accounting/ReportRows.md +0 -23
- data/docs/accounting/ReportWithRow.md +0 -33
- data/docs/accounting/ReportWithRows.md +0 -17
- data/docs/accounting/Reports.md +0 -17
- data/docs/accounting/RequestEmpty.md +0 -17
- data/docs/accounting/RowType.md +0 -16
- data/docs/accounting/SalesTrackingCategory.md +0 -19
- data/docs/accounting/Schedule.md +0 -29
- data/docs/accounting/Setup.md +0 -21
- data/docs/accounting/TaxComponent.md +0 -23
- data/docs/accounting/TaxRate.md +0 -39
- data/docs/accounting/TaxRates.md +0 -17
- data/docs/accounting/TaxType.md +0 -16
- data/docs/accounting/TenNinetyNineContact.md +0 -59
- data/docs/accounting/TimeZone.md +0 -16
- data/docs/accounting/TrackingCategories.md +0 -17
- data/docs/accounting/TrackingCategory.md +0 -27
- data/docs/accounting/TrackingOption.md +0 -23
- data/docs/accounting/TrackingOptions.md +0 -17
- data/docs/accounting/User.md +0 -29
- data/docs/accounting/Users.md +0 -17
- data/docs/accounting/ValidationError.md +0 -17
- data/docs/assets/Asset.md +0 -47
- data/docs/assets/AssetApi.md +0 -426
- data/docs/assets/AssetStatus.md +0 -16
- data/docs/assets/AssetStatusQueryParam.md +0 -16
- data/docs/assets/AssetType.md +0 -29
- data/docs/assets/Assets.md +0 -19
- data/docs/assets/BookDepreciationDetail.md +0 -29
- data/docs/assets/BookDepreciationSetting.md +0 -31
- data/docs/assets/Error.md +0 -25
- data/docs/assets/FieldValidationErrorsElement.md +0 -27
- data/docs/assets/Pagination.md +0 -23
- data/docs/assets/ResourceValidationErrorsElement.md +0 -25
- data/docs/assets/Setting.md +0 -31
- data/docs/files/Association.md +0 -23
- data/docs/files/FileObject.md +0 -31
- data/docs/files/FileResponse204.md +0 -17
- data/docs/files/Files.md +0 -23
- data/docs/files/FilesApi.md +0 -1116
- data/docs/files/Folder.md +0 -25
- data/docs/files/Folders.md +0 -17
- data/docs/files/InlineObject.md +0 -23
- data/docs/files/ObjectGroup.md +0 -16
- data/docs/files/ObjectType.md +0 -16
- data/docs/files/User.md +0 -25
- data/docs/payroll_au/APIException.md +0 -21
- data/docs/payroll_au/Account.md +0 -23
- data/docs/payroll_au/AccountType.md +0 -16
- data/docs/payroll_au/AllowanceType.md +0 -16
- data/docs/payroll_au/BankAccount.md +0 -27
- data/docs/payroll_au/CalendarType.md +0 -16
- data/docs/payroll_au/DeductionLine.md +0 -25
- data/docs/payroll_au/DeductionType.md +0 -33
- data/docs/payroll_au/DeductionTypeCalculationType.md +0 -16
- data/docs/payroll_au/EarningsLine.md +0 -33
- data/docs/payroll_au/EarningsRate.md +0 -49
- data/docs/payroll_au/EarningsRateCalculationType.md +0 -16
- data/docs/payroll_au/EarningsType.md +0 -16
- data/docs/payroll_au/Employee.md +0 -77
- data/docs/payroll_au/EmployeeStatus.md +0 -16
- data/docs/payroll_au/Employees.md +0 -17
- data/docs/payroll_au/EmploymentBasis.md +0 -16
- data/docs/payroll_au/EmploymentTerminationPaymentType.md +0 -16
- data/docs/payroll_au/EntitlementFinalPayPayoutType.md +0 -16
- data/docs/payroll_au/HomeAddress.md +0 -27
- data/docs/payroll_au/LeaveAccrualLine.md +0 -21
- data/docs/payroll_au/LeaveApplication.md +0 -35
- data/docs/payroll_au/LeaveApplications.md +0 -17
- data/docs/payroll_au/LeaveBalance.md +0 -23
- data/docs/payroll_au/LeaveEarningsLine.md +0 -21
- data/docs/payroll_au/LeaveLine.md +0 -31
- data/docs/payroll_au/LeaveLineCalculationType.md +0 -16
- data/docs/payroll_au/LeaveLines.md +0 -17
- data/docs/payroll_au/LeavePeriod.md +0 -23
- data/docs/payroll_au/LeavePeriodStatus.md +0 -16
- data/docs/payroll_au/LeaveType.md +0 -33
- data/docs/payroll_au/LeaveTypeContributionType.md +0 -16
- data/docs/payroll_au/ManualTaxType.md +0 -16
- data/docs/payroll_au/OpeningBalances.md +0 -29
- data/docs/payroll_au/PayItem.md +0 -23
- data/docs/payroll_au/PayItems.md +0 -17
- data/docs/payroll_au/PayRun.md +0 -47
- data/docs/payroll_au/PayRunStatus.md +0 -16
- data/docs/payroll_au/PayRuns.md +0 -17
- data/docs/payroll_au/PayTemplate.md +0 -25
- data/docs/payroll_au/PaymentFrequencyType.md +0 -16
- data/docs/payroll_au/PayrollAuApi.md +0 -2018
- data/docs/payroll_au/PayrollCalendar.md +0 -29
- data/docs/payroll_au/PayrollCalendars.md +0 -17
- data/docs/payroll_au/Payslip.md +0 -53
- data/docs/payroll_au/PayslipLines.md +0 -31
- data/docs/payroll_au/PayslipObject.md +0 -17
- data/docs/payroll_au/PayslipSummary.md +0 -39
- data/docs/payroll_au/Payslips.md +0 -17
- data/docs/payroll_au/RateType.md +0 -16
- data/docs/payroll_au/ReimbursementLine.md +0 -23
- data/docs/payroll_au/ReimbursementLines.md +0 -17
- data/docs/payroll_au/ReimbursementType.md +0 -25
- data/docs/payroll_au/ResidencyStatus.md +0 -16
- data/docs/payroll_au/Settings.md +0 -21
- data/docs/payroll_au/SettingsObject.md +0 -17
- data/docs/payroll_au/SettingsTrackingCategories.md +0 -19
- data/docs/payroll_au/SettingsTrackingCategoriesEmployeeGroups.md +0 -19
- data/docs/payroll_au/SettingsTrackingCategoriesTimesheetCategories.md +0 -19
- data/docs/payroll_au/State.md +0 -16
- data/docs/payroll_au/SuperFund.md +0 -41
- data/docs/payroll_au/SuperFundProduct.md +0 -23
- data/docs/payroll_au/SuperFundProducts.md +0 -17
- data/docs/payroll_au/SuperFundType.md +0 -16
- data/docs/payroll_au/SuperFunds.md +0 -17
- data/docs/payroll_au/SuperLine.md +0 -31
- data/docs/payroll_au/SuperMembership.md +0 -21
- data/docs/payroll_au/SuperannuationCalculationType.md +0 -16
- data/docs/payroll_au/SuperannuationContributionType.md +0 -16
- data/docs/payroll_au/SuperannuationLine.md +0 -33
- data/docs/payroll_au/TFNExemptionType.md +0 -16
- data/docs/payroll_au/TaxDeclaration.md +0 -47
- data/docs/payroll_au/TaxLine.md +0 -27
- data/docs/payroll_au/Timesheet.md +0 -33
- data/docs/payroll_au/TimesheetLine.md +0 -23
- data/docs/payroll_au/TimesheetObject.md +0 -17
- data/docs/payroll_au/TimesheetStatus.md +0 -16
- data/docs/payroll_au/Timesheets.md +0 -17
- data/docs/payroll_au/ValidationError.md +0 -17
- data/docs/payroll_nz/Account.md +0 -23
- data/docs/payroll_nz/Accounts.md +0 -17
- data/docs/payroll_nz/Address.md +0 -27
- data/docs/payroll_nz/BankAccount.md +0 -31
- data/docs/payroll_nz/Benefit.md +0 -35
- data/docs/payroll_nz/CalendarType.md +0 -16
- data/docs/payroll_nz/Deduction.md +0 -27
- data/docs/payroll_nz/DeductionLine.md +0 -25
- data/docs/payroll_nz/DeductionObject.md +0 -21
- data/docs/payroll_nz/Deductions.md +0 -21
- data/docs/payroll_nz/EarningsLine.md +0 -35
- data/docs/payroll_nz/EarningsOrder.md +0 -25
- data/docs/payroll_nz/EarningsOrderObject.md +0 -21
- data/docs/payroll_nz/EarningsOrders.md +0 -21
- data/docs/payroll_nz/EarningsRate.md +0 -35
- data/docs/payroll_nz/EarningsRateObject.md +0 -21
- data/docs/payroll_nz/EarningsRates.md +0 -21
- data/docs/payroll_nz/EarningsTemplate.md +0 -27
- data/docs/payroll_nz/EarningsTemplateObject.md +0 -21
- data/docs/payroll_nz/Employee.md +0 -43
- data/docs/payroll_nz/EmployeeEarningsTemplates.md +0 -21
- data/docs/payroll_nz/EmployeeLeave.md +0 -29
- data/docs/payroll_nz/EmployeeLeaveBalance.md +0 -23
- data/docs/payroll_nz/EmployeeLeaveBalances.md +0 -21
- data/docs/payroll_nz/EmployeeLeaveObject.md +0 -21
- data/docs/payroll_nz/EmployeeLeaveSetup.md +0 -29
- data/docs/payroll_nz/EmployeeLeaveSetupObject.md +0 -21
- data/docs/payroll_nz/EmployeeLeaveType.md +0 -35
- data/docs/payroll_nz/EmployeeLeaveTypeObject.md +0 -21
- data/docs/payroll_nz/EmployeeLeaveTypes.md +0 -21
- data/docs/payroll_nz/EmployeeLeaves.md +0 -21
- data/docs/payroll_nz/EmployeeObject.md +0 -21
- data/docs/payroll_nz/EmployeeOpeningBalance.md +0 -23
- data/docs/payroll_nz/EmployeeOpeningBalancesObject.md +0 -21
- data/docs/payroll_nz/EmployeePayTemplate.md +0 -19
- data/docs/payroll_nz/EmployeePayTemplateObject.md +0 -21
- data/docs/payroll_nz/EmployeePayTemplates.md +0 -21
- data/docs/payroll_nz/EmployeeStatutoryLeaveBalance.md +0 -21
- data/docs/payroll_nz/EmployeeStatutoryLeaveBalanceObject.md +0 -21
- data/docs/payroll_nz/EmployeeStatutoryLeaveSummary.md +0 -29
- data/docs/payroll_nz/EmployeeStatutoryLeavesSummaries.md +0 -21
- data/docs/payroll_nz/EmployeeStatutorySickLeave.md +0 -47
- data/docs/payroll_nz/EmployeeStatutorySickLeaveObject.md +0 -21
- data/docs/payroll_nz/EmployeeStatutorySickLeaves.md +0 -21
- data/docs/payroll_nz/EmployeeTax.md +0 -47
- data/docs/payroll_nz/EmployeeTaxObject.md +0 -21
- data/docs/payroll_nz/Employees.md +0 -21
- data/docs/payroll_nz/Employment.md +0 -21
- data/docs/payroll_nz/EmploymentObject.md +0 -21
- data/docs/payroll_nz/GrossEarningsHistory.md +0 -19
- data/docs/payroll_nz/InvalidField.md +0 -19
- data/docs/payroll_nz/LeaveAccrualLine.md +0 -19
- data/docs/payroll_nz/LeaveEarningsLine.md +0 -35
- data/docs/payroll_nz/LeavePeriod.md +0 -23
- data/docs/payroll_nz/LeavePeriods.md +0 -21
- data/docs/payroll_nz/LeaveType.md +0 -27
- data/docs/payroll_nz/LeaveTypeObject.md +0 -21
- data/docs/payroll_nz/LeaveTypes.md +0 -21
- data/docs/payroll_nz/Pagination.md +0 -23
- data/docs/payroll_nz/PayRun.md +0 -39
- data/docs/payroll_nz/PayRunCalendar.md +0 -29
- data/docs/payroll_nz/PayRunCalendarObject.md +0 -21
- data/docs/payroll_nz/PayRunCalendars.md +0 -21
- data/docs/payroll_nz/PayRunObject.md +0 -21
- data/docs/payroll_nz/PayRuns.md +0 -21
- data/docs/payroll_nz/PaySlip.md +0 -75
- data/docs/payroll_nz/PaySlipObject.md +0 -21
- data/docs/payroll_nz/PaySlips.md +0 -21
- data/docs/payroll_nz/PaymentLine.md +0 -25
- data/docs/payroll_nz/PaymentMethod.md +0 -19
- data/docs/payroll_nz/PaymentMethodObject.md +0 -21
- data/docs/payroll_nz/PayrollNzApi.md +0 -4544
- data/docs/payroll_nz/Problem.md +0 -27
- data/docs/payroll_nz/Reimbursement.md +0 -33
- data/docs/payroll_nz/ReimbursementLine.md +0 -25
- data/docs/payroll_nz/ReimbursementObject.md +0 -21
- data/docs/payroll_nz/Reimbursements.md +0 -21
- data/docs/payroll_nz/SalaryAndWage.md +0 -35
- data/docs/payroll_nz/SalaryAndWageObject.md +0 -21
- data/docs/payroll_nz/SalaryAndWages.md +0 -21
- data/docs/payroll_nz/Settings.md +0 -21
- data/docs/payroll_nz/StatutoryDeduction.md +0 -25
- data/docs/payroll_nz/StatutoryDeductionCategory.md +0 -16
- data/docs/payroll_nz/StatutoryDeductionLine.md +0 -23
- data/docs/payroll_nz/StatutoryDeductionObject.md +0 -21
- data/docs/payroll_nz/StatutoryDeductions.md +0 -21
- data/docs/payroll_nz/SuperannuationLine.md +0 -27
- data/docs/payroll_nz/SuperannuationObject.md +0 -21
- data/docs/payroll_nz/Superannuations.md +0 -21
- data/docs/payroll_nz/TaxCode.md +0 -16
- data/docs/payroll_nz/TaxLine.md +0 -25
- data/docs/payroll_nz/TaxSettings.md +0 -27
- data/docs/payroll_nz/Timesheet.md +0 -33
- data/docs/payroll_nz/TimesheetEarningsLine.md +0 -35
- data/docs/payroll_nz/TimesheetLine.md +0 -25
- data/docs/payroll_nz/TimesheetLineObject.md +0 -21
- data/docs/payroll_nz/TimesheetObject.md +0 -21
- data/docs/payroll_nz/Timesheets.md +0 -21
- data/docs/payroll_nz/TrackingCategories.md +0 -21
- data/docs/payroll_nz/TrackingCategory.md +0 -19
- data/docs/payroll_uk/Account.md +0 -23
- data/docs/payroll_uk/Accounts.md +0 -17
- data/docs/payroll_uk/Address.md +0 -25
- data/docs/payroll_uk/BankAccount.md +0 -21
- data/docs/payroll_uk/Benefit.md +0 -43
- data/docs/payroll_uk/BenefitLine.md +0 -25
- data/docs/payroll_uk/BenefitObject.md +0 -21
- data/docs/payroll_uk/Benefits.md +0 -21
- data/docs/payroll_uk/CourtOrderLine.md +0 -19
- data/docs/payroll_uk/Deduction.md +0 -47
- data/docs/payroll_uk/DeductionLine.md +0 -23
- data/docs/payroll_uk/DeductionObject.md +0 -21
- data/docs/payroll_uk/Deductions.md +0 -21
- data/docs/payroll_uk/EarningsLine.md +0 -33
- data/docs/payroll_uk/EarningsOrder.md +0 -25
- data/docs/payroll_uk/EarningsOrderObject.md +0 -21
- data/docs/payroll_uk/EarningsOrders.md +0 -21
- data/docs/payroll_uk/EarningsRate.md +0 -35
- data/docs/payroll_uk/EarningsRateObject.md +0 -21
- data/docs/payroll_uk/EarningsRates.md +0 -21
- data/docs/payroll_uk/EarningsTemplate.md +0 -27
- data/docs/payroll_uk/EarningsTemplateObject.md +0 -21
- data/docs/payroll_uk/Employee.md +0 -45
- data/docs/payroll_uk/EmployeeLeave.md +0 -29
- data/docs/payroll_uk/EmployeeLeaveBalance.md +0 -23
- data/docs/payroll_uk/EmployeeLeaveBalances.md +0 -21
- data/docs/payroll_uk/EmployeeLeaveObject.md +0 -21
- data/docs/payroll_uk/EmployeeLeaveType.md +0 -27
- data/docs/payroll_uk/EmployeeLeaveTypeObject.md +0 -21
- data/docs/payroll_uk/EmployeeLeaveTypes.md +0 -21
- data/docs/payroll_uk/EmployeeLeaves.md +0 -21
- data/docs/payroll_uk/EmployeeObject.md +0 -21
- data/docs/payroll_uk/EmployeeOpeningBalances.md +0 -27
- data/docs/payroll_uk/EmployeeOpeningBalancesObject.md +0 -21
- data/docs/payroll_uk/EmployeePayTemplate.md +0 -19
- data/docs/payroll_uk/EmployeePayTemplateObject.md +0 -21
- data/docs/payroll_uk/EmployeePayTemplates.md +0 -21
- data/docs/payroll_uk/EmployeeStatutoryLeaveBalance.md +0 -21
- data/docs/payroll_uk/EmployeeStatutoryLeaveBalanceObject.md +0 -21
- data/docs/payroll_uk/EmployeeStatutoryLeaveSummary.md +0 -29
- data/docs/payroll_uk/EmployeeStatutoryLeavesSummaries.md +0 -21
- data/docs/payroll_uk/EmployeeStatutorySickLeave.md +0 -47
- data/docs/payroll_uk/EmployeeStatutorySickLeaveObject.md +0 -21
- data/docs/payroll_uk/EmployeeStatutorySickLeaves.md +0 -21
- data/docs/payroll_uk/EmployeeTax.md +0 -37
- data/docs/payroll_uk/EmployeeTaxObject.md +0 -21
- data/docs/payroll_uk/Employees.md +0 -21
- data/docs/payroll_uk/Employment.md +0 -23
- data/docs/payroll_uk/EmploymentObject.md +0 -21
- data/docs/payroll_uk/InvalidField.md +0 -19
- data/docs/payroll_uk/LeaveAccrualLine.md +0 -19
- data/docs/payroll_uk/LeaveEarningsLine.md +0 -27
- data/docs/payroll_uk/LeavePeriod.md +0 -23
- data/docs/payroll_uk/LeavePeriods.md +0 -21
- data/docs/payroll_uk/LeaveType.md +0 -31
- data/docs/payroll_uk/LeaveTypeObject.md +0 -21
- data/docs/payroll_uk/LeaveTypes.md +0 -21
- data/docs/payroll_uk/Pagination.md +0 -23
- data/docs/payroll_uk/PayRun.md +0 -39
- data/docs/payroll_uk/PayRunCalendar.md +0 -29
- data/docs/payroll_uk/PayRunCalendarObject.md +0 -21
- data/docs/payroll_uk/PayRunCalendars.md +0 -21
- data/docs/payroll_uk/PayRunObject.md +0 -21
- data/docs/payroll_uk/PayRuns.md +0 -21
- data/docs/payroll_uk/PaymentLine.md +0 -25
- data/docs/payroll_uk/PaymentMethod.md +0 -19
- data/docs/payroll_uk/PaymentMethodObject.md +0 -21
- data/docs/payroll_uk/PayrollUkApi.md +0 -4683
- data/docs/payroll_uk/Payslip.md +0 -71
- data/docs/payroll_uk/PayslipObject.md +0 -21
- data/docs/payroll_uk/Payslips.md +0 -21
- data/docs/payroll_uk/Problem.md +0 -27
- data/docs/payroll_uk/Reimbursement.md +0 -23
- data/docs/payroll_uk/ReimbursementLine.md +0 -21
- data/docs/payroll_uk/ReimbursementObject.md +0 -21
- data/docs/payroll_uk/Reimbursements.md +0 -21
- data/docs/payroll_uk/SalaryAndWage.md +0 -33
- data/docs/payroll_uk/SalaryAndWageObject.md +0 -21
- data/docs/payroll_uk/SalaryAndWages.md +0 -21
- data/docs/payroll_uk/Settings.md +0 -21
- data/docs/payroll_uk/StatutoryDeduction.md +0 -25
- data/docs/payroll_uk/StatutoryDeductionCategory.md +0 -16
- data/docs/payroll_uk/TaxLine.md +0 -27
- data/docs/payroll_uk/Timesheet.md +0 -33
- data/docs/payroll_uk/TimesheetEarningsLine.md +0 -27
- data/docs/payroll_uk/TimesheetLine.md +0 -25
- data/docs/payroll_uk/TimesheetLineObject.md +0 -21
- data/docs/payroll_uk/TimesheetObject.md +0 -21
- data/docs/payroll_uk/Timesheets.md +0 -21
- data/docs/payroll_uk/TrackingCategories.md +0 -21
- data/docs/payroll_uk/TrackingCategory.md +0 -19
- data/docs/projects/Amount.md +0 -19
- data/docs/projects/ChargeType.md +0 -16
- data/docs/projects/CurrencyCode.md +0 -16
- data/docs/projects/Error.md +0 -19
- data/docs/projects/Pagination.md +0 -23
- data/docs/projects/Project.md +0 -59
- data/docs/projects/ProjectApi.md +0 -956
- data/docs/projects/ProjectCreateOrUpdate.md +0 -23
- data/docs/projects/ProjectPatch.md +0 -17
- data/docs/projects/ProjectStatus.md +0 -16
- data/docs/projects/ProjectUser.md +0 -21
- data/docs/projects/ProjectUsers.md +0 -19
- data/docs/projects/Projects.md +0 -19
- data/docs/projects/Task.md +0 -45
- data/docs/projects/TaskCreateOrUpdate.md +0 -23
- data/docs/projects/Tasks.md +0 -19
- data/docs/projects/TimeEntries.md +0 -19
- data/docs/projects/TimeEntry.md +0 -33
- data/docs/projects/TimeEntryCreateOrUpdate.md +0 -25
- data/git_push.sh +0 -55
- data/spec/files/models/file_response204_spec.rb +0 -41
- data/xero-ruby.gemspec +0 -38
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
|
|
4
4
|
#This is the Xero Payroll API for orgs in the NZ region.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2.8.0
|
|
7
6
|
Contact: api@xero.com
|
|
8
7
|
Generated by: https://openapi-generator.tech
|
|
9
8
|
OpenAPI Generator version: 4.3.1
|
|
@@ -17,7 +16,7 @@ module XeroRuby
|
|
|
17
16
|
def initialize(api_client = ApiClient.new)
|
|
18
17
|
@api_client = api_client
|
|
19
18
|
end
|
|
20
|
-
#
|
|
19
|
+
# Approves a timesheet
|
|
21
20
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
22
21
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
23
22
|
# @param [Hash] opts the optional parameters
|
|
@@ -27,7 +26,7 @@ module XeroRuby
|
|
|
27
26
|
data
|
|
28
27
|
end
|
|
29
28
|
|
|
30
|
-
#
|
|
29
|
+
# Approves a timesheet
|
|
31
30
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
32
31
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
33
32
|
# @param [Hash] opts the optional parameters
|
|
@@ -91,7 +90,7 @@ module XeroRuby
|
|
|
91
90
|
return data, status_code, headers
|
|
92
91
|
end
|
|
93
92
|
|
|
94
|
-
#
|
|
93
|
+
# Creates a new deduction for a specific employee
|
|
95
94
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
96
95
|
# @param deduction [Deduction]
|
|
97
96
|
# @param [Hash] opts the optional parameters
|
|
@@ -101,7 +100,7 @@ module XeroRuby
|
|
|
101
100
|
data
|
|
102
101
|
end
|
|
103
102
|
|
|
104
|
-
#
|
|
103
|
+
# Creates a new deduction for a specific employee
|
|
105
104
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
106
105
|
# @param deduction [Deduction]
|
|
107
106
|
# @param [Hash] opts the optional parameters
|
|
@@ -167,7 +166,7 @@ module XeroRuby
|
|
|
167
166
|
return data, status_code, headers
|
|
168
167
|
end
|
|
169
168
|
|
|
170
|
-
#
|
|
169
|
+
# Creates a new earnings rate
|
|
171
170
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
172
171
|
# @param earnings_rate [EarningsRate]
|
|
173
172
|
# @param [Hash] opts the optional parameters
|
|
@@ -177,7 +176,7 @@ module XeroRuby
|
|
|
177
176
|
data
|
|
178
177
|
end
|
|
179
178
|
|
|
180
|
-
#
|
|
179
|
+
# Creates a new earnings rate
|
|
181
180
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
182
181
|
# @param earnings_rate [EarningsRate]
|
|
183
182
|
# @param [Hash] opts the optional parameters
|
|
@@ -243,7 +242,7 @@ module XeroRuby
|
|
|
243
242
|
return data, status_code, headers
|
|
244
243
|
end
|
|
245
244
|
|
|
246
|
-
#
|
|
245
|
+
# Creates an employees
|
|
247
246
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
248
247
|
# @param employee [Employee]
|
|
249
248
|
# @param [Hash] opts the optional parameters
|
|
@@ -253,7 +252,7 @@ module XeroRuby
|
|
|
253
252
|
data
|
|
254
253
|
end
|
|
255
254
|
|
|
256
|
-
#
|
|
255
|
+
# Creates an employees
|
|
257
256
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
258
257
|
# @param employee [Employee]
|
|
259
258
|
# @param [Hash] opts the optional parameters
|
|
@@ -319,7 +318,7 @@ module XeroRuby
|
|
|
319
318
|
return data, status_code, headers
|
|
320
319
|
end
|
|
321
320
|
|
|
322
|
-
#
|
|
321
|
+
# Creates earnings template records for an employee
|
|
323
322
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
324
323
|
# @param employee_id [String] Employee id for single object
|
|
325
324
|
# @param earnings_template [EarningsTemplate]
|
|
@@ -330,7 +329,7 @@ module XeroRuby
|
|
|
330
329
|
data
|
|
331
330
|
end
|
|
332
331
|
|
|
333
|
-
#
|
|
332
|
+
# Creates earnings template records for an employee
|
|
334
333
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
335
334
|
# @param employee_id [String] Employee id for single object
|
|
336
335
|
# @param earnings_template [EarningsTemplate]
|
|
@@ -353,7 +352,7 @@ module XeroRuby
|
|
|
353
352
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollNzApi.create_employee_earnings_template"
|
|
354
353
|
end
|
|
355
354
|
# resource path
|
|
356
|
-
local_var_path = '/Employees/{
|
|
355
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates/earnings'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
357
356
|
|
|
358
357
|
# camelize keys of incoming `where` opts
|
|
359
358
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -401,7 +400,7 @@ module XeroRuby
|
|
|
401
400
|
return data, status_code, headers
|
|
402
401
|
end
|
|
403
402
|
|
|
404
|
-
#
|
|
403
|
+
# Creates leave records for a specific employee
|
|
405
404
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
406
405
|
# @param employee_id [String] Employee id for single object
|
|
407
406
|
# @param employee_leave [EmployeeLeave]
|
|
@@ -412,7 +411,7 @@ module XeroRuby
|
|
|
412
411
|
data
|
|
413
412
|
end
|
|
414
413
|
|
|
415
|
-
#
|
|
414
|
+
# Creates leave records for a specific employee
|
|
416
415
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
417
416
|
# @param employee_id [String] Employee id for single object
|
|
418
417
|
# @param employee_leave [EmployeeLeave]
|
|
@@ -435,7 +434,7 @@ module XeroRuby
|
|
|
435
434
|
fail ArgumentError, "Missing the required parameter 'employee_leave' when calling PayrollNzApi.create_employee_leave"
|
|
436
435
|
end
|
|
437
436
|
# resource path
|
|
438
|
-
local_var_path = '/Employees/{
|
|
437
|
+
local_var_path = '/Employees/{EmployeeID}/Leave'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
439
438
|
|
|
440
439
|
# camelize keys of incoming `where` opts
|
|
441
440
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -483,7 +482,7 @@ module XeroRuby
|
|
|
483
482
|
return data, status_code, headers
|
|
484
483
|
end
|
|
485
484
|
|
|
486
|
-
#
|
|
485
|
+
# Creates a leave set-up for a specific employee. This is required before viewing, configuring and requesting leave for an employee
|
|
487
486
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
488
487
|
# @param employee_id [String] Employee id for single object
|
|
489
488
|
# @param employee_leave_setup [EmployeeLeaveSetup]
|
|
@@ -494,7 +493,7 @@ module XeroRuby
|
|
|
494
493
|
data
|
|
495
494
|
end
|
|
496
495
|
|
|
497
|
-
#
|
|
496
|
+
# Creates a leave set-up for a specific employee. This is required before viewing, configuring and requesting leave for an employee
|
|
498
497
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
499
498
|
# @param employee_id [String] Employee id for single object
|
|
500
499
|
# @param employee_leave_setup [EmployeeLeaveSetup]
|
|
@@ -517,7 +516,7 @@ module XeroRuby
|
|
|
517
516
|
fail ArgumentError, "Missing the required parameter 'employee_leave_setup' when calling PayrollNzApi.create_employee_leave_setup"
|
|
518
517
|
end
|
|
519
518
|
# resource path
|
|
520
|
-
local_var_path = '/Employees/{
|
|
519
|
+
local_var_path = '/Employees/{EmployeeID}/leaveSetup'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
521
520
|
|
|
522
521
|
# camelize keys of incoming `where` opts
|
|
523
522
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -565,7 +564,7 @@ module XeroRuby
|
|
|
565
564
|
return data, status_code, headers
|
|
566
565
|
end
|
|
567
566
|
|
|
568
|
-
#
|
|
567
|
+
# Creates leave type records for a specific employee
|
|
569
568
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
570
569
|
# @param employee_id [String] Employee id for single object
|
|
571
570
|
# @param employee_leave_type [EmployeeLeaveType]
|
|
@@ -576,7 +575,7 @@ module XeroRuby
|
|
|
576
575
|
data
|
|
577
576
|
end
|
|
578
577
|
|
|
579
|
-
#
|
|
578
|
+
# Creates leave type records for a specific employee
|
|
580
579
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
581
580
|
# @param employee_id [String] Employee id for single object
|
|
582
581
|
# @param employee_leave_type [EmployeeLeaveType]
|
|
@@ -599,7 +598,7 @@ module XeroRuby
|
|
|
599
598
|
fail ArgumentError, "Missing the required parameter 'employee_leave_type' when calling PayrollNzApi.create_employee_leave_type"
|
|
600
599
|
end
|
|
601
600
|
# resource path
|
|
602
|
-
local_var_path = '/Employees/{
|
|
601
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveTypes'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
603
602
|
|
|
604
603
|
# camelize keys of incoming `where` opts
|
|
605
604
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -647,7 +646,7 @@ module XeroRuby
|
|
|
647
646
|
return data, status_code, headers
|
|
648
647
|
end
|
|
649
648
|
|
|
650
|
-
#
|
|
649
|
+
# Creates opening balances for a specific employee
|
|
651
650
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
652
651
|
# @param employee_id [String] Employee id for single object
|
|
653
652
|
# @param employee_opening_balance [Array<EmployeeOpeningBalance>]
|
|
@@ -658,7 +657,7 @@ module XeroRuby
|
|
|
658
657
|
data
|
|
659
658
|
end
|
|
660
659
|
|
|
661
|
-
#
|
|
660
|
+
# Creates opening balances for a specific employee
|
|
662
661
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
663
662
|
# @param employee_id [String] Employee id for single object
|
|
664
663
|
# @param employee_opening_balance [Array<EmployeeOpeningBalance>]
|
|
@@ -681,7 +680,7 @@ module XeroRuby
|
|
|
681
680
|
fail ArgumentError, "Missing the required parameter 'employee_opening_balance' when calling PayrollNzApi.create_employee_opening_balances"
|
|
682
681
|
end
|
|
683
682
|
# resource path
|
|
684
|
-
local_var_path = '/Employees/{
|
|
683
|
+
local_var_path = '/Employees/{EmployeeID}/openingBalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
685
684
|
|
|
686
685
|
# camelize keys of incoming `where` opts
|
|
687
686
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -729,7 +728,7 @@ module XeroRuby
|
|
|
729
728
|
return data, status_code, headers
|
|
730
729
|
end
|
|
731
730
|
|
|
732
|
-
#
|
|
731
|
+
# Creates a payment method for an employee
|
|
733
732
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
734
733
|
# @param employee_id [String] Employee id for single object
|
|
735
734
|
# @param payment_method [PaymentMethod]
|
|
@@ -740,7 +739,7 @@ module XeroRuby
|
|
|
740
739
|
data
|
|
741
740
|
end
|
|
742
741
|
|
|
743
|
-
#
|
|
742
|
+
# Creates a payment method for an employee
|
|
744
743
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
745
744
|
# @param employee_id [String] Employee id for single object
|
|
746
745
|
# @param payment_method [PaymentMethod]
|
|
@@ -763,7 +762,7 @@ module XeroRuby
|
|
|
763
762
|
fail ArgumentError, "Missing the required parameter 'payment_method' when calling PayrollNzApi.create_employee_payment_method"
|
|
764
763
|
end
|
|
765
764
|
# resource path
|
|
766
|
-
local_var_path = '/Employees/{
|
|
765
|
+
local_var_path = '/Employees/{EmployeeID}/PaymentMethods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
767
766
|
|
|
768
767
|
# camelize keys of incoming `where` opts
|
|
769
768
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -811,7 +810,7 @@ module XeroRuby
|
|
|
811
810
|
return data, status_code, headers
|
|
812
811
|
end
|
|
813
812
|
|
|
814
|
-
#
|
|
813
|
+
# Creates an employee salary and wage record
|
|
815
814
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
816
815
|
# @param employee_id [String] Employee id for single object
|
|
817
816
|
# @param salary_and_wage [SalaryAndWage]
|
|
@@ -822,7 +821,7 @@ module XeroRuby
|
|
|
822
821
|
data
|
|
823
822
|
end
|
|
824
823
|
|
|
825
|
-
#
|
|
824
|
+
# Creates an employee salary and wage record
|
|
826
825
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
827
826
|
# @param employee_id [String] Employee id for single object
|
|
828
827
|
# @param salary_and_wage [SalaryAndWage]
|
|
@@ -845,7 +844,7 @@ module XeroRuby
|
|
|
845
844
|
fail ArgumentError, "Missing the required parameter 'salary_and_wage' when calling PayrollNzApi.create_employee_salary_and_wage"
|
|
846
845
|
end
|
|
847
846
|
# resource path
|
|
848
|
-
local_var_path = '/Employees/{
|
|
847
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
849
848
|
|
|
850
849
|
# camelize keys of incoming `where` opts
|
|
851
850
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -893,7 +892,7 @@ module XeroRuby
|
|
|
893
892
|
return data, status_code, headers
|
|
894
893
|
end
|
|
895
894
|
|
|
896
|
-
#
|
|
895
|
+
# Creates an employment detail for a specific employee
|
|
897
896
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
898
897
|
# @param employee_id [String] Employee id for single object
|
|
899
898
|
# @param employment [Employment]
|
|
@@ -904,7 +903,7 @@ module XeroRuby
|
|
|
904
903
|
data
|
|
905
904
|
end
|
|
906
905
|
|
|
907
|
-
#
|
|
906
|
+
# Creates an employment detail for a specific employee
|
|
908
907
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
909
908
|
# @param employee_id [String] Employee id for single object
|
|
910
909
|
# @param employment [Employment]
|
|
@@ -927,7 +926,7 @@ module XeroRuby
|
|
|
927
926
|
fail ArgumentError, "Missing the required parameter 'employment' when calling PayrollNzApi.create_employment"
|
|
928
927
|
end
|
|
929
928
|
# resource path
|
|
930
|
-
local_var_path = '/Employees/{
|
|
929
|
+
local_var_path = '/Employees/{EmployeeID}/Employment'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
931
930
|
|
|
932
931
|
# camelize keys of incoming `where` opts
|
|
933
932
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -975,7 +974,7 @@ module XeroRuby
|
|
|
975
974
|
return data, status_code, headers
|
|
976
975
|
end
|
|
977
976
|
|
|
978
|
-
#
|
|
977
|
+
# Creates a new leave type
|
|
979
978
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
980
979
|
# @param leave_type [LeaveType]
|
|
981
980
|
# @param [Hash] opts the optional parameters
|
|
@@ -985,7 +984,7 @@ module XeroRuby
|
|
|
985
984
|
data
|
|
986
985
|
end
|
|
987
986
|
|
|
988
|
-
#
|
|
987
|
+
# Creates a new leave type
|
|
989
988
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
990
989
|
# @param leave_type [LeaveType]
|
|
991
990
|
# @param [Hash] opts the optional parameters
|
|
@@ -1051,7 +1050,7 @@ module XeroRuby
|
|
|
1051
1050
|
return data, status_code, headers
|
|
1052
1051
|
end
|
|
1053
1052
|
|
|
1054
|
-
#
|
|
1053
|
+
# Creates multiple employee earnings template records for a specific employee
|
|
1055
1054
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1056
1055
|
# @param employee_id [String] Employee id for single object
|
|
1057
1056
|
# @param earnings_template [Array<EarningsTemplate>]
|
|
@@ -1062,7 +1061,7 @@ module XeroRuby
|
|
|
1062
1061
|
data
|
|
1063
1062
|
end
|
|
1064
1063
|
|
|
1065
|
-
#
|
|
1064
|
+
# Creates multiple employee earnings template records for a specific employee
|
|
1066
1065
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1067
1066
|
# @param employee_id [String] Employee id for single object
|
|
1068
1067
|
# @param earnings_template [Array<EarningsTemplate>]
|
|
@@ -1085,7 +1084,7 @@ module XeroRuby
|
|
|
1085
1084
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollNzApi.create_multiple_employee_earnings_template"
|
|
1086
1085
|
end
|
|
1087
1086
|
# resource path
|
|
1088
|
-
local_var_path = '/Employees/{
|
|
1087
|
+
local_var_path = '/Employees/{EmployeeID}/paytemplateearnings'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
1089
1088
|
|
|
1090
1089
|
# camelize keys of incoming `where` opts
|
|
1091
1090
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1133,7 +1132,7 @@ module XeroRuby
|
|
|
1133
1132
|
return data, status_code, headers
|
|
1134
1133
|
end
|
|
1135
1134
|
|
|
1136
|
-
#
|
|
1135
|
+
# Creates a pay run
|
|
1137
1136
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1138
1137
|
# @param pay_run [PayRun]
|
|
1139
1138
|
# @param [Hash] opts the optional parameters
|
|
@@ -1143,7 +1142,7 @@ module XeroRuby
|
|
|
1143
1142
|
data
|
|
1144
1143
|
end
|
|
1145
1144
|
|
|
1146
|
-
#
|
|
1145
|
+
# Creates a pay run
|
|
1147
1146
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1148
1147
|
# @param pay_run [PayRun]
|
|
1149
1148
|
# @param [Hash] opts the optional parameters
|
|
@@ -1209,7 +1208,7 @@ module XeroRuby
|
|
|
1209
1208
|
return data, status_code, headers
|
|
1210
1209
|
end
|
|
1211
1210
|
|
|
1212
|
-
#
|
|
1211
|
+
# Creates a new payrun calendar
|
|
1213
1212
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1214
1213
|
# @param pay_run_calendar [PayRunCalendar]
|
|
1215
1214
|
# @param [Hash] opts the optional parameters
|
|
@@ -1219,7 +1218,7 @@ module XeroRuby
|
|
|
1219
1218
|
data
|
|
1220
1219
|
end
|
|
1221
1220
|
|
|
1222
|
-
#
|
|
1221
|
+
# Creates a new payrun calendar
|
|
1223
1222
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1224
1223
|
# @param pay_run_calendar [PayRunCalendar]
|
|
1225
1224
|
# @param [Hash] opts the optional parameters
|
|
@@ -1285,7 +1284,7 @@ module XeroRuby
|
|
|
1285
1284
|
return data, status_code, headers
|
|
1286
1285
|
end
|
|
1287
1286
|
|
|
1288
|
-
#
|
|
1287
|
+
# Creates a new reimbursement
|
|
1289
1288
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1290
1289
|
# @param reimbursement [Reimbursement]
|
|
1291
1290
|
# @param [Hash] opts the optional parameters
|
|
@@ -1295,7 +1294,7 @@ module XeroRuby
|
|
|
1295
1294
|
data
|
|
1296
1295
|
end
|
|
1297
1296
|
|
|
1298
|
-
#
|
|
1297
|
+
# Creates a new reimbursement
|
|
1299
1298
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1300
1299
|
# @param reimbursement [Reimbursement]
|
|
1301
1300
|
# @param [Hash] opts the optional parameters
|
|
@@ -1361,7 +1360,7 @@ module XeroRuby
|
|
|
1361
1360
|
return data, status_code, headers
|
|
1362
1361
|
end
|
|
1363
1362
|
|
|
1364
|
-
#
|
|
1363
|
+
# Creates a new superannuation
|
|
1365
1364
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1366
1365
|
# @param benefit [Benefit]
|
|
1367
1366
|
# @param [Hash] opts the optional parameters
|
|
@@ -1371,7 +1370,7 @@ module XeroRuby
|
|
|
1371
1370
|
data
|
|
1372
1371
|
end
|
|
1373
1372
|
|
|
1374
|
-
#
|
|
1373
|
+
# Creates a new superannuation
|
|
1375
1374
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1376
1375
|
# @param benefit [Benefit]
|
|
1377
1376
|
# @param [Hash] opts the optional parameters
|
|
@@ -1389,7 +1388,7 @@ module XeroRuby
|
|
|
1389
1388
|
fail ArgumentError, "Missing the required parameter 'benefit' when calling PayrollNzApi.create_superannuation"
|
|
1390
1389
|
end
|
|
1391
1390
|
# resource path
|
|
1392
|
-
local_var_path = '/
|
|
1391
|
+
local_var_path = '/Superannuations'
|
|
1393
1392
|
|
|
1394
1393
|
# camelize keys of incoming `where` opts
|
|
1395
1394
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1437,7 +1436,7 @@ module XeroRuby
|
|
|
1437
1436
|
return data, status_code, headers
|
|
1438
1437
|
end
|
|
1439
1438
|
|
|
1440
|
-
#
|
|
1439
|
+
# Creates a new timesheet
|
|
1441
1440
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1442
1441
|
# @param timesheet [Timesheet]
|
|
1443
1442
|
# @param [Hash] opts the optional parameters
|
|
@@ -1447,7 +1446,7 @@ module XeroRuby
|
|
|
1447
1446
|
data
|
|
1448
1447
|
end
|
|
1449
1448
|
|
|
1450
|
-
#
|
|
1449
|
+
# Creates a new timesheet
|
|
1451
1450
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1452
1451
|
# @param timesheet [Timesheet]
|
|
1453
1452
|
# @param [Hash] opts the optional parameters
|
|
@@ -1513,7 +1512,7 @@ module XeroRuby
|
|
|
1513
1512
|
return data, status_code, headers
|
|
1514
1513
|
end
|
|
1515
1514
|
|
|
1516
|
-
#
|
|
1515
|
+
# Create a new timesheet line for a specific time sheet
|
|
1517
1516
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1518
1517
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1519
1518
|
# @param timesheet_line [TimesheetLine]
|
|
@@ -1524,7 +1523,7 @@ module XeroRuby
|
|
|
1524
1523
|
data
|
|
1525
1524
|
end
|
|
1526
1525
|
|
|
1527
|
-
#
|
|
1526
|
+
# Create a new timesheet line for a specific time sheet
|
|
1528
1527
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1529
1528
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1530
1529
|
# @param timesheet_line [TimesheetLine]
|
|
@@ -1595,7 +1594,7 @@ module XeroRuby
|
|
|
1595
1594
|
return data, status_code, headers
|
|
1596
1595
|
end
|
|
1597
1596
|
|
|
1598
|
-
#
|
|
1597
|
+
# Deletes an employee's earnings template record
|
|
1599
1598
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1600
1599
|
# @param employee_id [String] Employee id for single object
|
|
1601
1600
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
|
@@ -1606,7 +1605,7 @@ module XeroRuby
|
|
|
1606
1605
|
data
|
|
1607
1606
|
end
|
|
1608
1607
|
|
|
1609
|
-
#
|
|
1608
|
+
# Deletes an employee's earnings template record
|
|
1610
1609
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1611
1610
|
# @param employee_id [String] Employee id for single object
|
|
1612
1611
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
|
@@ -1629,7 +1628,7 @@ module XeroRuby
|
|
|
1629
1628
|
fail ArgumentError, "Missing the required parameter 'pay_template_earning_id' when calling PayrollNzApi.delete_employee_earnings_template"
|
|
1630
1629
|
end
|
|
1631
1630
|
# resource path
|
|
1632
|
-
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)
|
|
1633
1632
|
|
|
1634
1633
|
# camelize keys of incoming `where` opts
|
|
1635
1634
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1675,7 +1674,7 @@ module XeroRuby
|
|
|
1675
1674
|
return data, status_code, headers
|
|
1676
1675
|
end
|
|
1677
1676
|
|
|
1678
|
-
#
|
|
1677
|
+
# Deletes a leave record for a specific employee
|
|
1679
1678
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1680
1679
|
# @param employee_id [String] Employee id for single object
|
|
1681
1680
|
# @param leave_id [String] Leave id for single object
|
|
@@ -1686,7 +1685,7 @@ module XeroRuby
|
|
|
1686
1685
|
data
|
|
1687
1686
|
end
|
|
1688
1687
|
|
|
1689
|
-
#
|
|
1688
|
+
# Deletes a leave record for a specific employee
|
|
1690
1689
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1691
1690
|
# @param employee_id [String] Employee id for single object
|
|
1692
1691
|
# @param leave_id [String] Leave id for single object
|
|
@@ -1709,7 +1708,7 @@ module XeroRuby
|
|
|
1709
1708
|
fail ArgumentError, "Missing the required parameter 'leave_id' when calling PayrollNzApi.delete_employee_leave"
|
|
1710
1709
|
end
|
|
1711
1710
|
# resource path
|
|
1712
|
-
local_var_path = '/Employees/{
|
|
1711
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
|
1713
1712
|
|
|
1714
1713
|
# camelize keys of incoming `where` opts
|
|
1715
1714
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1755,7 +1754,7 @@ module XeroRuby
|
|
|
1755
1754
|
return data, status_code, headers
|
|
1756
1755
|
end
|
|
1757
1756
|
|
|
1758
|
-
#
|
|
1757
|
+
# Deletes an employee's salary and wages record
|
|
1759
1758
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1760
1759
|
# @param employee_id [String] Employee id for single object
|
|
1761
1760
|
# @param salary_and_wages_id [String] Id for single salary and wages object
|
|
@@ -1766,7 +1765,7 @@ module XeroRuby
|
|
|
1766
1765
|
data
|
|
1767
1766
|
end
|
|
1768
1767
|
|
|
1769
|
-
#
|
|
1768
|
+
# Deletes an employee's salary and wages record
|
|
1770
1769
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1771
1770
|
# @param employee_id [String] Employee id for single object
|
|
1772
1771
|
# @param salary_and_wages_id [String] Id for single salary and wages object
|
|
@@ -1789,7 +1788,7 @@ module XeroRuby
|
|
|
1789
1788
|
fail ArgumentError, "Missing the required parameter 'salary_and_wages_id' when calling PayrollNzApi.delete_employee_salary_and_wage"
|
|
1790
1789
|
end
|
|
1791
1790
|
# resource path
|
|
1792
|
-
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)
|
|
1793
1792
|
|
|
1794
1793
|
# camelize keys of incoming `where` opts
|
|
1795
1794
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1835,7 +1834,7 @@ module XeroRuby
|
|
|
1835
1834
|
return data, status_code, headers
|
|
1836
1835
|
end
|
|
1837
1836
|
|
|
1838
|
-
#
|
|
1837
|
+
# Deletes a timesheet
|
|
1839
1838
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1840
1839
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1841
1840
|
# @param [Hash] opts the optional parameters
|
|
@@ -1845,7 +1844,7 @@ module XeroRuby
|
|
|
1845
1844
|
data
|
|
1846
1845
|
end
|
|
1847
1846
|
|
|
1848
|
-
#
|
|
1847
|
+
# Deletes a timesheet
|
|
1849
1848
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1850
1849
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1851
1850
|
# @param [Hash] opts the optional parameters
|
|
@@ -1909,7 +1908,7 @@ module XeroRuby
|
|
|
1909
1908
|
return data, status_code, headers
|
|
1910
1909
|
end
|
|
1911
1910
|
|
|
1912
|
-
#
|
|
1911
|
+
# Deletes a timesheet line for a specific timesheet
|
|
1913
1912
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1914
1913
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1915
1914
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
|
@@ -1920,7 +1919,7 @@ module XeroRuby
|
|
|
1920
1919
|
data
|
|
1921
1920
|
end
|
|
1922
1921
|
|
|
1923
|
-
#
|
|
1922
|
+
# Deletes a timesheet line for a specific timesheet
|
|
1924
1923
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1925
1924
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1926
1925
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
|
@@ -1989,7 +1988,7 @@ module XeroRuby
|
|
|
1989
1988
|
return data, status_code, headers
|
|
1990
1989
|
end
|
|
1991
1990
|
|
|
1992
|
-
#
|
|
1991
|
+
# Retrieves a single deduction by using a unique deduction ID
|
|
1993
1992
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1994
1993
|
# @param deduction_id [String] Identifier for the deduction
|
|
1995
1994
|
# @param [Hash] opts the optional parameters
|
|
@@ -1999,7 +1998,7 @@ module XeroRuby
|
|
|
1999
1998
|
data
|
|
2000
1999
|
end
|
|
2001
2000
|
|
|
2002
|
-
#
|
|
2001
|
+
# Retrieves a single deduction by using a unique deduction ID
|
|
2003
2002
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2004
2003
|
# @param deduction_id [String] Identifier for the deduction
|
|
2005
2004
|
# @param [Hash] opts the optional parameters
|
|
@@ -2063,7 +2062,7 @@ module XeroRuby
|
|
|
2063
2062
|
return data, status_code, headers
|
|
2064
2063
|
end
|
|
2065
2064
|
|
|
2066
|
-
#
|
|
2065
|
+
# Retrieves deductions for a specific employee
|
|
2067
2066
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2068
2067
|
# @param [Hash] opts the optional parameters
|
|
2069
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.
|
|
@@ -2073,7 +2072,7 @@ module XeroRuby
|
|
|
2073
2072
|
data
|
|
2074
2073
|
end
|
|
2075
2074
|
|
|
2076
|
-
#
|
|
2075
|
+
# Retrieves deductions for a specific employee
|
|
2077
2076
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2078
2077
|
# @param [Hash] opts the optional parameters
|
|
2079
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.
|
|
@@ -2134,7 +2133,7 @@ module XeroRuby
|
|
|
2134
2133
|
return data, status_code, headers
|
|
2135
2134
|
end
|
|
2136
2135
|
|
|
2137
|
-
#
|
|
2136
|
+
# Retrieves a specific earnings rates by using a unique earnings rate id
|
|
2138
2137
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2139
2138
|
# @param earnings_rate_id [String] Identifier for the earnings rate
|
|
2140
2139
|
# @param [Hash] opts the optional parameters
|
|
@@ -2144,7 +2143,7 @@ module XeroRuby
|
|
|
2144
2143
|
data
|
|
2145
2144
|
end
|
|
2146
2145
|
|
|
2147
|
-
#
|
|
2146
|
+
# Retrieves a specific earnings rates by using a unique earnings rate id
|
|
2148
2147
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2149
2148
|
# @param earnings_rate_id [String] Identifier for the earnings rate
|
|
2150
2149
|
# @param [Hash] opts the optional parameters
|
|
@@ -2208,7 +2207,7 @@ module XeroRuby
|
|
|
2208
2207
|
return data, status_code, headers
|
|
2209
2208
|
end
|
|
2210
2209
|
|
|
2211
|
-
#
|
|
2210
|
+
# Retrieves earnings rates
|
|
2212
2211
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2213
2212
|
# @param [Hash] opts the optional parameters
|
|
2214
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.
|
|
@@ -2218,7 +2217,7 @@ module XeroRuby
|
|
|
2218
2217
|
data
|
|
2219
2218
|
end
|
|
2220
2219
|
|
|
2221
|
-
#
|
|
2220
|
+
# Retrieves earnings rates
|
|
2222
2221
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2223
2222
|
# @param [Hash] opts the optional parameters
|
|
2224
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.
|
|
@@ -2279,7 +2278,7 @@ module XeroRuby
|
|
|
2279
2278
|
return data, status_code, headers
|
|
2280
2279
|
end
|
|
2281
2280
|
|
|
2282
|
-
#
|
|
2281
|
+
# Retrieves an employees using a unique employee ID
|
|
2283
2282
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2284
2283
|
# @param employee_id [String] Employee id for single object
|
|
2285
2284
|
# @param [Hash] opts the optional parameters
|
|
@@ -2289,7 +2288,7 @@ module XeroRuby
|
|
|
2289
2288
|
data
|
|
2290
2289
|
end
|
|
2291
2290
|
|
|
2292
|
-
#
|
|
2291
|
+
# Retrieves an employees using a unique employee ID
|
|
2293
2292
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2294
2293
|
# @param employee_id [String] Employee id for single object
|
|
2295
2294
|
# @param [Hash] opts the optional parameters
|
|
@@ -2307,7 +2306,7 @@ module XeroRuby
|
|
|
2307
2306
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee"
|
|
2308
2307
|
end
|
|
2309
2308
|
# resource path
|
|
2310
|
-
local_var_path = '/Employees/{
|
|
2309
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2311
2310
|
|
|
2312
2311
|
# camelize keys of incoming `where` opts
|
|
2313
2312
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2353,7 +2352,7 @@ module XeroRuby
|
|
|
2353
2352
|
return data, status_code, headers
|
|
2354
2353
|
end
|
|
2355
2354
|
|
|
2356
|
-
#
|
|
2355
|
+
# Retrieves leave balances for a specific employee
|
|
2357
2356
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2358
2357
|
# @param employee_id [String] Employee id for single object
|
|
2359
2358
|
# @param [Hash] opts the optional parameters
|
|
@@ -2363,7 +2362,7 @@ module XeroRuby
|
|
|
2363
2362
|
data
|
|
2364
2363
|
end
|
|
2365
2364
|
|
|
2366
|
-
#
|
|
2365
|
+
# Retrieves leave balances for a specific employee
|
|
2367
2366
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2368
2367
|
# @param employee_id [String] Employee id for single object
|
|
2369
2368
|
# @param [Hash] opts the optional parameters
|
|
@@ -2381,7 +2380,7 @@ module XeroRuby
|
|
|
2381
2380
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_leave_balances"
|
|
2382
2381
|
end
|
|
2383
2382
|
# resource path
|
|
2384
|
-
local_var_path = '/Employees/{
|
|
2383
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveBalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2385
2384
|
|
|
2386
2385
|
# camelize keys of incoming `where` opts
|
|
2387
2386
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2427,7 +2426,7 @@ module XeroRuby
|
|
|
2427
2426
|
return data, status_code, headers
|
|
2428
2427
|
end
|
|
2429
2428
|
|
|
2430
|
-
#
|
|
2429
|
+
# Retrieves leave periods for a specific employee
|
|
2431
2430
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2432
2431
|
# @param employee_id [String] Employee id for single object
|
|
2433
2432
|
# @param [Hash] opts the optional parameters
|
|
@@ -2439,7 +2438,7 @@ module XeroRuby
|
|
|
2439
2438
|
data
|
|
2440
2439
|
end
|
|
2441
2440
|
|
|
2442
|
-
#
|
|
2441
|
+
# Retrieves leave periods for a specific employee
|
|
2443
2442
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2444
2443
|
# @param employee_id [String] Employee id for single object
|
|
2445
2444
|
# @param [Hash] opts the optional parameters
|
|
@@ -2459,7 +2458,7 @@ module XeroRuby
|
|
|
2459
2458
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_leave_periods"
|
|
2460
2459
|
end
|
|
2461
2460
|
# resource path
|
|
2462
|
-
local_var_path = '/Employees/{
|
|
2461
|
+
local_var_path = '/Employees/{EmployeeID}/LeavePeriods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2463
2462
|
|
|
2464
2463
|
# camelize keys of incoming `where` opts
|
|
2465
2464
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2507,7 +2506,7 @@ module XeroRuby
|
|
|
2507
2506
|
return data, status_code, headers
|
|
2508
2507
|
end
|
|
2509
2508
|
|
|
2510
|
-
#
|
|
2509
|
+
# Retrieves leave types for a specific employee
|
|
2511
2510
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2512
2511
|
# @param employee_id [String] Employee id for single object
|
|
2513
2512
|
# @param [Hash] opts the optional parameters
|
|
@@ -2517,7 +2516,7 @@ module XeroRuby
|
|
|
2517
2516
|
data
|
|
2518
2517
|
end
|
|
2519
2518
|
|
|
2520
|
-
#
|
|
2519
|
+
# Retrieves leave types for a specific employee
|
|
2521
2520
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2522
2521
|
# @param employee_id [String] Employee id for single object
|
|
2523
2522
|
# @param [Hash] opts the optional parameters
|
|
@@ -2535,7 +2534,7 @@ module XeroRuby
|
|
|
2535
2534
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_leave_types"
|
|
2536
2535
|
end
|
|
2537
2536
|
# resource path
|
|
2538
|
-
local_var_path = '/Employees/{
|
|
2537
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveTypes'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2539
2538
|
|
|
2540
2539
|
# camelize keys of incoming `where` opts
|
|
2541
2540
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2581,7 +2580,7 @@ module XeroRuby
|
|
|
2581
2580
|
return data, status_code, headers
|
|
2582
2581
|
end
|
|
2583
2582
|
|
|
2584
|
-
#
|
|
2583
|
+
# Retrieves leave records for a specific employee
|
|
2585
2584
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2586
2585
|
# @param employee_id [String] Employee id for single object
|
|
2587
2586
|
# @param [Hash] opts the optional parameters
|
|
@@ -2591,7 +2590,7 @@ module XeroRuby
|
|
|
2591
2590
|
data
|
|
2592
2591
|
end
|
|
2593
2592
|
|
|
2594
|
-
#
|
|
2593
|
+
# Retrieves leave records for a specific employee
|
|
2595
2594
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2596
2595
|
# @param employee_id [String] Employee id for single object
|
|
2597
2596
|
# @param [Hash] opts the optional parameters
|
|
@@ -2609,7 +2608,7 @@ module XeroRuby
|
|
|
2609
2608
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_leaves"
|
|
2610
2609
|
end
|
|
2611
2610
|
# resource path
|
|
2612
|
-
local_var_path = '/Employees/{
|
|
2611
|
+
local_var_path = '/Employees/{EmployeeID}/Leave'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2613
2612
|
|
|
2614
2613
|
# camelize keys of incoming `where` opts
|
|
2615
2614
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2655,7 +2654,7 @@ module XeroRuby
|
|
|
2655
2654
|
return data, status_code, headers
|
|
2656
2655
|
end
|
|
2657
2656
|
|
|
2658
|
-
#
|
|
2657
|
+
# Retrieves the opening balance for a specific employee
|
|
2659
2658
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2660
2659
|
# @param employee_id [String] Employee id for single object
|
|
2661
2660
|
# @param [Hash] opts the optional parameters
|
|
@@ -2665,7 +2664,7 @@ module XeroRuby
|
|
|
2665
2664
|
data
|
|
2666
2665
|
end
|
|
2667
2666
|
|
|
2668
|
-
#
|
|
2667
|
+
# Retrieves the opening balance for a specific employee
|
|
2669
2668
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2670
2669
|
# @param employee_id [String] Employee id for single object
|
|
2671
2670
|
# @param [Hash] opts the optional parameters
|
|
@@ -2683,7 +2682,7 @@ module XeroRuby
|
|
|
2683
2682
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_opening_balances"
|
|
2684
2683
|
end
|
|
2685
2684
|
# resource path
|
|
2686
|
-
local_var_path = '/Employees/{
|
|
2685
|
+
local_var_path = '/Employees/{EmployeeID}/openingBalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2687
2686
|
|
|
2688
2687
|
# camelize keys of incoming `where` opts
|
|
2689
2688
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2729,7 +2728,7 @@ module XeroRuby
|
|
|
2729
2728
|
return data, status_code, headers
|
|
2730
2729
|
end
|
|
2731
2730
|
|
|
2732
|
-
#
|
|
2731
|
+
# Retrieves pay templates for a specific employee
|
|
2733
2732
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2734
2733
|
# @param employee_id [String] Employee id for single object
|
|
2735
2734
|
# @param [Hash] opts the optional parameters
|
|
@@ -2739,7 +2738,7 @@ module XeroRuby
|
|
|
2739
2738
|
data
|
|
2740
2739
|
end
|
|
2741
2740
|
|
|
2742
|
-
#
|
|
2741
|
+
# Retrieves pay templates for a specific employee
|
|
2743
2742
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2744
2743
|
# @param employee_id [String] Employee id for single object
|
|
2745
2744
|
# @param [Hash] opts the optional parameters
|
|
@@ -2757,7 +2756,7 @@ module XeroRuby
|
|
|
2757
2756
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_pay_templates"
|
|
2758
2757
|
end
|
|
2759
2758
|
# resource path
|
|
2760
|
-
local_var_path = '/Employees/{
|
|
2759
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2761
2760
|
|
|
2762
2761
|
# camelize keys of incoming `where` opts
|
|
2763
2762
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2803,7 +2802,7 @@ module XeroRuby
|
|
|
2803
2802
|
return data, status_code, headers
|
|
2804
2803
|
end
|
|
2805
2804
|
|
|
2806
|
-
#
|
|
2805
|
+
# Retrieves available payment methods for a specific employee
|
|
2807
2806
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2808
2807
|
# @param employee_id [String] Employee id for single object
|
|
2809
2808
|
# @param [Hash] opts the optional parameters
|
|
@@ -2813,7 +2812,7 @@ module XeroRuby
|
|
|
2813
2812
|
data
|
|
2814
2813
|
end
|
|
2815
2814
|
|
|
2816
|
-
#
|
|
2815
|
+
# Retrieves available payment methods for a specific employee
|
|
2817
2816
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2818
2817
|
# @param employee_id [String] Employee id for single object
|
|
2819
2818
|
# @param [Hash] opts the optional parameters
|
|
@@ -2831,7 +2830,7 @@ module XeroRuby
|
|
|
2831
2830
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_payment_method"
|
|
2832
2831
|
end
|
|
2833
2832
|
# resource path
|
|
2834
|
-
local_var_path = '/Employees/{
|
|
2833
|
+
local_var_path = '/Employees/{EmployeeID}/PaymentMethods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2835
2834
|
|
|
2836
2835
|
# camelize keys of incoming `where` opts
|
|
2837
2836
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2877,7 +2876,7 @@ module XeroRuby
|
|
|
2877
2876
|
return data, status_code, headers
|
|
2878
2877
|
end
|
|
2879
2878
|
|
|
2880
|
-
#
|
|
2879
|
+
# Retrieves an employee's salary and wages record by using a unique salary and wage ID
|
|
2881
2880
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2882
2881
|
# @param employee_id [String] Employee id for single object
|
|
2883
2882
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
|
@@ -2888,7 +2887,7 @@ module XeroRuby
|
|
|
2888
2887
|
data
|
|
2889
2888
|
end
|
|
2890
2889
|
|
|
2891
|
-
#
|
|
2890
|
+
# Retrieves an employee's salary and wages record by using a unique salary and wage ID
|
|
2892
2891
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2893
2892
|
# @param employee_id [String] Employee id for single object
|
|
2894
2893
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
|
@@ -2911,7 +2910,7 @@ module XeroRuby
|
|
|
2911
2910
|
fail ArgumentError, "Missing the required parameter 'salary_and_wages_id' when calling PayrollNzApi.get_employee_salary_and_wage"
|
|
2912
2911
|
end
|
|
2913
2912
|
# resource path
|
|
2914
|
-
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)
|
|
2915
2914
|
|
|
2916
2915
|
# camelize keys of incoming `where` opts
|
|
2917
2916
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2957,7 +2956,7 @@ module XeroRuby
|
|
|
2957
2956
|
return data, status_code, headers
|
|
2958
2957
|
end
|
|
2959
2958
|
|
|
2960
|
-
#
|
|
2959
|
+
# Retrieves an employee's salary and wages
|
|
2961
2960
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2962
2961
|
# @param employee_id [String] Employee id for single object
|
|
2963
2962
|
# @param [Hash] opts the optional parameters
|
|
@@ -2968,7 +2967,7 @@ module XeroRuby
|
|
|
2968
2967
|
data
|
|
2969
2968
|
end
|
|
2970
2969
|
|
|
2971
|
-
#
|
|
2970
|
+
# Retrieves an employee's salary and wages
|
|
2972
2971
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2973
2972
|
# @param employee_id [String] Employee id for single object
|
|
2974
2973
|
# @param [Hash] opts the optional parameters
|
|
@@ -2987,7 +2986,7 @@ module XeroRuby
|
|
|
2987
2986
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_salary_and_wages"
|
|
2988
2987
|
end
|
|
2989
2988
|
# resource path
|
|
2990
|
-
local_var_path = '/Employees/{
|
|
2989
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2991
2990
|
|
|
2992
2991
|
# camelize keys of incoming `where` opts
|
|
2993
2992
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3034,7 +3033,7 @@ module XeroRuby
|
|
|
3034
3033
|
return data, status_code, headers
|
|
3035
3034
|
end
|
|
3036
3035
|
|
|
3037
|
-
#
|
|
3036
|
+
# Retrieves tax records for a specific employee
|
|
3038
3037
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3039
3038
|
# @param employee_id [String] Employee id for single object
|
|
3040
3039
|
# @param [Hash] opts the optional parameters
|
|
@@ -3044,7 +3043,7 @@ module XeroRuby
|
|
|
3044
3043
|
data
|
|
3045
3044
|
end
|
|
3046
3045
|
|
|
3047
|
-
#
|
|
3046
|
+
# Retrieves tax records for a specific employee
|
|
3048
3047
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3049
3048
|
# @param employee_id [String] Employee id for single object
|
|
3050
3049
|
# @param [Hash] opts the optional parameters
|
|
@@ -3062,7 +3061,7 @@ module XeroRuby
|
|
|
3062
3061
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollNzApi.get_employee_tax"
|
|
3063
3062
|
end
|
|
3064
3063
|
# resource path
|
|
3065
|
-
local_var_path = '/Employees/{
|
|
3064
|
+
local_var_path = '/Employees/{EmployeeID}/Tax'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
3066
3065
|
|
|
3067
3066
|
# camelize keys of incoming `where` opts
|
|
3068
3067
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3108,7 +3107,7 @@ module XeroRuby
|
|
|
3108
3107
|
return data, status_code, headers
|
|
3109
3108
|
end
|
|
3110
3109
|
|
|
3111
|
-
#
|
|
3110
|
+
# Retrieves employees
|
|
3112
3111
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3113
3112
|
# @param [Hash] opts the optional parameters
|
|
3114
3113
|
# @option opts [String] :first_name Filter by first name
|
|
@@ -3120,7 +3119,7 @@ module XeroRuby
|
|
|
3120
3119
|
data
|
|
3121
3120
|
end
|
|
3122
3121
|
|
|
3123
|
-
#
|
|
3122
|
+
# Retrieves employees
|
|
3124
3123
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3125
3124
|
# @param [Hash] opts the optional parameters
|
|
3126
3125
|
# @option opts [String] :first_name Filter by first name
|
|
@@ -3185,7 +3184,7 @@ module XeroRuby
|
|
|
3185
3184
|
return data, status_code, headers
|
|
3186
3185
|
end
|
|
3187
3186
|
|
|
3188
|
-
#
|
|
3187
|
+
# Retrieves a specific leave type by using a unique leave type ID
|
|
3189
3188
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3190
3189
|
# @param leave_type_id [String] Identifier for the leave type
|
|
3191
3190
|
# @param [Hash] opts the optional parameters
|
|
@@ -3195,7 +3194,7 @@ module XeroRuby
|
|
|
3195
3194
|
data
|
|
3196
3195
|
end
|
|
3197
3196
|
|
|
3198
|
-
#
|
|
3197
|
+
# Retrieves a specific leave type by using a unique leave type ID
|
|
3199
3198
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3200
3199
|
# @param leave_type_id [String] Identifier for the leave type
|
|
3201
3200
|
# @param [Hash] opts the optional parameters
|
|
@@ -3259,7 +3258,7 @@ module XeroRuby
|
|
|
3259
3258
|
return data, status_code, headers
|
|
3260
3259
|
end
|
|
3261
3260
|
|
|
3262
|
-
#
|
|
3261
|
+
# Retrieves leave types
|
|
3263
3262
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3264
3263
|
# @param [Hash] opts the optional parameters
|
|
3265
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.
|
|
@@ -3270,7 +3269,7 @@ module XeroRuby
|
|
|
3270
3269
|
data
|
|
3271
3270
|
end
|
|
3272
3271
|
|
|
3273
|
-
#
|
|
3272
|
+
# Retrieves leave types
|
|
3274
3273
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3275
3274
|
# @param [Hash] opts the optional parameters
|
|
3276
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.
|
|
@@ -3333,7 +3332,7 @@ module XeroRuby
|
|
|
3333
3332
|
return data, status_code, headers
|
|
3334
3333
|
end
|
|
3335
3334
|
|
|
3336
|
-
#
|
|
3335
|
+
# Retrieves a specific pay run by using a unique pay run ID
|
|
3337
3336
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3338
3337
|
# @param pay_run_id [String] Identifier for the pay run
|
|
3339
3338
|
# @param [Hash] opts the optional parameters
|
|
@@ -3343,7 +3342,7 @@ module XeroRuby
|
|
|
3343
3342
|
data
|
|
3344
3343
|
end
|
|
3345
3344
|
|
|
3346
|
-
#
|
|
3345
|
+
# Retrieves a specific pay run by using a unique pay run ID
|
|
3347
3346
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3348
3347
|
# @param pay_run_id [String] Identifier for the pay run
|
|
3349
3348
|
# @param [Hash] opts the optional parameters
|
|
@@ -3407,7 +3406,7 @@ module XeroRuby
|
|
|
3407
3406
|
return data, status_code, headers
|
|
3408
3407
|
end
|
|
3409
3408
|
|
|
3410
|
-
#
|
|
3409
|
+
# Retrieves a specific payrun calendar by using a unique payroll calendar ID
|
|
3411
3410
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3412
3411
|
# @param payroll_calendar_id [String] Identifier for the payrun calendars
|
|
3413
3412
|
# @param [Hash] opts the optional parameters
|
|
@@ -3417,7 +3416,7 @@ module XeroRuby
|
|
|
3417
3416
|
data
|
|
3418
3417
|
end
|
|
3419
3418
|
|
|
3420
|
-
#
|
|
3419
|
+
# Retrieves a specific payrun calendar by using a unique payroll calendar ID
|
|
3421
3420
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3422
3421
|
# @param payroll_calendar_id [String] Identifier for the payrun calendars
|
|
3423
3422
|
# @param [Hash] opts the optional parameters
|
|
@@ -3481,7 +3480,7 @@ module XeroRuby
|
|
|
3481
3480
|
return data, status_code, headers
|
|
3482
3481
|
end
|
|
3483
3482
|
|
|
3484
|
-
#
|
|
3483
|
+
# Retrieves payrun calendars
|
|
3485
3484
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3486
3485
|
# @param [Hash] opts the optional parameters
|
|
3487
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.
|
|
@@ -3491,7 +3490,7 @@ module XeroRuby
|
|
|
3491
3490
|
data
|
|
3492
3491
|
end
|
|
3493
3492
|
|
|
3494
|
-
#
|
|
3493
|
+
# Retrieves payrun calendars
|
|
3495
3494
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3496
3495
|
# @param [Hash] opts the optional parameters
|
|
3497
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.
|
|
@@ -3552,7 +3551,7 @@ module XeroRuby
|
|
|
3552
3551
|
return data, status_code, headers
|
|
3553
3552
|
end
|
|
3554
3553
|
|
|
3555
|
-
#
|
|
3554
|
+
# Retrieves pay runs
|
|
3556
3555
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3557
3556
|
# @param [Hash] opts the optional parameters
|
|
3558
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.
|
|
@@ -3563,7 +3562,7 @@ module XeroRuby
|
|
|
3563
3562
|
data
|
|
3564
3563
|
end
|
|
3565
3564
|
|
|
3566
|
-
#
|
|
3565
|
+
# Retrieves pay runs
|
|
3567
3566
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3568
3567
|
# @param [Hash] opts the optional parameters
|
|
3569
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.
|
|
@@ -3630,7 +3629,7 @@ module XeroRuby
|
|
|
3630
3629
|
return data, status_code, headers
|
|
3631
3630
|
end
|
|
3632
3631
|
|
|
3633
|
-
#
|
|
3632
|
+
# Retrieves a specific payslip by a unique pay slip ID
|
|
3634
3633
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3635
3634
|
# @param pay_slip_id [String] Identifier for the payslip
|
|
3636
3635
|
# @param [Hash] opts the optional parameters
|
|
@@ -3640,7 +3639,7 @@ module XeroRuby
|
|
|
3640
3639
|
data
|
|
3641
3640
|
end
|
|
3642
3641
|
|
|
3643
|
-
#
|
|
3642
|
+
# Retrieves a specific payslip by a unique pay slip ID
|
|
3644
3643
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3645
3644
|
# @param pay_slip_id [String] Identifier for the payslip
|
|
3646
3645
|
# @param [Hash] opts the optional parameters
|
|
@@ -3704,7 +3703,7 @@ module XeroRuby
|
|
|
3704
3703
|
return data, status_code, headers
|
|
3705
3704
|
end
|
|
3706
3705
|
|
|
3707
|
-
#
|
|
3706
|
+
# Retrieves payslips
|
|
3708
3707
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3709
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.
|
|
3710
3709
|
# @param [Hash] opts the optional parameters
|
|
@@ -3715,7 +3714,7 @@ module XeroRuby
|
|
|
3715
3714
|
data
|
|
3716
3715
|
end
|
|
3717
3716
|
|
|
3718
|
-
#
|
|
3717
|
+
# Retrieves payslips
|
|
3719
3718
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3720
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.
|
|
3721
3720
|
# @param [Hash] opts the optional parameters
|
|
@@ -3782,7 +3781,7 @@ module XeroRuby
|
|
|
3782
3781
|
return data, status_code, headers
|
|
3783
3782
|
end
|
|
3784
3783
|
|
|
3785
|
-
#
|
|
3784
|
+
# Retrieves a specific reimbursement by using a unique reimbursement ID
|
|
3786
3785
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3787
3786
|
# @param reimbursement_id [String] Identifier for the reimbursement
|
|
3788
3787
|
# @param [Hash] opts the optional parameters
|
|
@@ -3792,7 +3791,7 @@ module XeroRuby
|
|
|
3792
3791
|
data
|
|
3793
3792
|
end
|
|
3794
3793
|
|
|
3795
|
-
#
|
|
3794
|
+
# Retrieves a specific reimbursement by using a unique reimbursement ID
|
|
3796
3795
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3797
3796
|
# @param reimbursement_id [String] Identifier for the reimbursement
|
|
3798
3797
|
# @param [Hash] opts the optional parameters
|
|
@@ -3856,7 +3855,7 @@ module XeroRuby
|
|
|
3856
3855
|
return data, status_code, headers
|
|
3857
3856
|
end
|
|
3858
3857
|
|
|
3859
|
-
#
|
|
3858
|
+
# Retrieves reimbursements
|
|
3860
3859
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3861
3860
|
# @param [Hash] opts the optional parameters
|
|
3862
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.
|
|
@@ -3866,7 +3865,7 @@ module XeroRuby
|
|
|
3866
3865
|
data
|
|
3867
3866
|
end
|
|
3868
3867
|
|
|
3869
|
-
#
|
|
3868
|
+
# Retrieves reimbursements
|
|
3870
3869
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3871
3870
|
# @param [Hash] opts the optional parameters
|
|
3872
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.
|
|
@@ -3927,7 +3926,7 @@ module XeroRuby
|
|
|
3927
3926
|
return data, status_code, headers
|
|
3928
3927
|
end
|
|
3929
3928
|
|
|
3930
|
-
#
|
|
3929
|
+
# Retrieves settings
|
|
3931
3930
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3932
3931
|
# @param [Hash] opts the optional parameters
|
|
3933
3932
|
# @return [Settings]
|
|
@@ -3936,7 +3935,7 @@ module XeroRuby
|
|
|
3936
3935
|
data
|
|
3937
3936
|
end
|
|
3938
3937
|
|
|
3939
|
-
#
|
|
3938
|
+
# Retrieves settings
|
|
3940
3939
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3941
3940
|
# @param [Hash] opts the optional parameters
|
|
3942
3941
|
# @return [Array<(Settings, Integer, Hash)>] Settings data, response status code and response headers
|
|
@@ -3995,7 +3994,7 @@ module XeroRuby
|
|
|
3995
3994
|
return data, status_code, headers
|
|
3996
3995
|
end
|
|
3997
3996
|
|
|
3998
|
-
#
|
|
3997
|
+
# Retrieves a specific statutory deduction by using a unique statutory deductions id
|
|
3999
3998
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4000
3999
|
# @param id [String] Identifier for the statutory deduction
|
|
4001
4000
|
# @param [Hash] opts the optional parameters
|
|
@@ -4005,7 +4004,7 @@ module XeroRuby
|
|
|
4005
4004
|
data
|
|
4006
4005
|
end
|
|
4007
4006
|
|
|
4008
|
-
#
|
|
4007
|
+
# Retrieves a specific statutory deduction by using a unique statutory deductions id
|
|
4009
4008
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4010
4009
|
# @param id [String] Identifier for the statutory deduction
|
|
4011
4010
|
# @param [Hash] opts the optional parameters
|
|
@@ -4023,7 +4022,7 @@ module XeroRuby
|
|
|
4023
4022
|
fail ArgumentError, "Missing the required parameter 'id' when calling PayrollNzApi.get_statutory_deduction"
|
|
4024
4023
|
end
|
|
4025
4024
|
# resource path
|
|
4026
|
-
local_var_path = '/StatutoryDeductions/{
|
|
4025
|
+
local_var_path = '/StatutoryDeductions/{id}'.sub('{' + 'id' + '}', id.to_s)
|
|
4027
4026
|
|
|
4028
4027
|
# camelize keys of incoming `where` opts
|
|
4029
4028
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4069,7 +4068,7 @@ module XeroRuby
|
|
|
4069
4068
|
return data, status_code, headers
|
|
4070
4069
|
end
|
|
4071
4070
|
|
|
4072
|
-
#
|
|
4071
|
+
# Retrieves statutory deductions
|
|
4073
4072
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4074
4073
|
# @param [Hash] opts the optional parameters
|
|
4075
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.
|
|
@@ -4079,7 +4078,7 @@ module XeroRuby
|
|
|
4079
4078
|
data
|
|
4080
4079
|
end
|
|
4081
4080
|
|
|
4082
|
-
#
|
|
4081
|
+
# Retrieves statutory deductions
|
|
4083
4082
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4084
4083
|
# @param [Hash] opts the optional parameters
|
|
4085
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.
|
|
@@ -4140,7 +4139,7 @@ module XeroRuby
|
|
|
4140
4139
|
return data, status_code, headers
|
|
4141
4140
|
end
|
|
4142
4141
|
|
|
4143
|
-
#
|
|
4142
|
+
# Retrieves a specific superannuation using a unique superannuation ID
|
|
4144
4143
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4145
4144
|
# @param superannuation_id [String] Identifier for the superannuation
|
|
4146
4145
|
# @param [Hash] opts the optional parameters
|
|
@@ -4150,7 +4149,7 @@ module XeroRuby
|
|
|
4150
4149
|
data
|
|
4151
4150
|
end
|
|
4152
4151
|
|
|
4153
|
-
#
|
|
4152
|
+
# Retrieves a specific superannuation using a unique superannuation ID
|
|
4154
4153
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4155
4154
|
# @param superannuation_id [String] Identifier for the superannuation
|
|
4156
4155
|
# @param [Hash] opts the optional parameters
|
|
@@ -4168,7 +4167,7 @@ module XeroRuby
|
|
|
4168
4167
|
fail ArgumentError, "Missing the required parameter 'superannuation_id' when calling PayrollNzApi.get_superannuation"
|
|
4169
4168
|
end
|
|
4170
4169
|
# resource path
|
|
4171
|
-
local_var_path = '/
|
|
4170
|
+
local_var_path = '/Superannuations/{SuperannuationID}'.sub('{' + 'SuperannuationID' + '}', superannuation_id.to_s)
|
|
4172
4171
|
|
|
4173
4172
|
# camelize keys of incoming `where` opts
|
|
4174
4173
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4214,7 +4213,7 @@ module XeroRuby
|
|
|
4214
4213
|
return data, status_code, headers
|
|
4215
4214
|
end
|
|
4216
4215
|
|
|
4217
|
-
#
|
|
4216
|
+
# Retrieves superannuations
|
|
4218
4217
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4219
4218
|
# @param [Hash] opts the optional parameters
|
|
4220
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.
|
|
@@ -4224,7 +4223,7 @@ module XeroRuby
|
|
|
4224
4223
|
data
|
|
4225
4224
|
end
|
|
4226
4225
|
|
|
4227
|
-
#
|
|
4226
|
+
# Retrieves superannuations
|
|
4228
4227
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4229
4228
|
# @param [Hash] opts the optional parameters
|
|
4230
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.
|
|
@@ -4238,7 +4237,7 @@ module XeroRuby
|
|
|
4238
4237
|
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollNzApi.get_superannuations"
|
|
4239
4238
|
end
|
|
4240
4239
|
# resource path
|
|
4241
|
-
local_var_path = '/
|
|
4240
|
+
local_var_path = '/Superannuations'
|
|
4242
4241
|
|
|
4243
4242
|
# camelize keys of incoming `where` opts
|
|
4244
4243
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4285,7 +4284,7 @@ module XeroRuby
|
|
|
4285
4284
|
return data, status_code, headers
|
|
4286
4285
|
end
|
|
4287
4286
|
|
|
4288
|
-
#
|
|
4287
|
+
# Retrieves a specific timesheet by using a unique timesheet ID
|
|
4289
4288
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4290
4289
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
4291
4290
|
# @param [Hash] opts the optional parameters
|
|
@@ -4295,7 +4294,7 @@ module XeroRuby
|
|
|
4295
4294
|
data
|
|
4296
4295
|
end
|
|
4297
4296
|
|
|
4298
|
-
#
|
|
4297
|
+
# Retrieves a specific timesheet by using a unique timesheet ID
|
|
4299
4298
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4300
4299
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
4301
4300
|
# @param [Hash] opts the optional parameters
|
|
@@ -4359,11 +4358,11 @@ module XeroRuby
|
|
|
4359
4358
|
return data, status_code, headers
|
|
4360
4359
|
end
|
|
4361
4360
|
|
|
4362
|
-
#
|
|
4361
|
+
# Retrieves timesheets
|
|
4363
4362
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4364
4363
|
# @param [Hash] opts the optional parameters
|
|
4365
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.
|
|
4366
|
-
# @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.
|
|
4367
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
|
|
4368
4367
|
# @return [Timesheets]
|
|
4369
4368
|
def get_timesheets(xero_tenant_id, opts = {})
|
|
@@ -4371,11 +4370,11 @@ module XeroRuby
|
|
|
4371
4370
|
data
|
|
4372
4371
|
end
|
|
4373
4372
|
|
|
4374
|
-
#
|
|
4373
|
+
# Retrieves timesheets
|
|
4375
4374
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4376
4375
|
# @param [Hash] opts the optional parameters
|
|
4377
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.
|
|
4378
|
-
# @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.
|
|
4379
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
|
|
4380
4379
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
|
4381
4380
|
def get_timesheets_with_http_info(xero_tenant_id, opts = {})
|
|
@@ -4436,7 +4435,7 @@ module XeroRuby
|
|
|
4436
4435
|
return data, status_code, headers
|
|
4437
4436
|
end
|
|
4438
4437
|
|
|
4439
|
-
#
|
|
4438
|
+
# Retrieves tracking categories
|
|
4440
4439
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4441
4440
|
# @param [Hash] opts the optional parameters
|
|
4442
4441
|
# @return [TrackingCategories]
|
|
@@ -4445,7 +4444,7 @@ module XeroRuby
|
|
|
4445
4444
|
data
|
|
4446
4445
|
end
|
|
4447
4446
|
|
|
4448
|
-
#
|
|
4447
|
+
# Retrieves tracking categories
|
|
4449
4448
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4450
4449
|
# @param [Hash] opts the optional parameters
|
|
4451
4450
|
# @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
|
|
@@ -4458,7 +4457,7 @@ module XeroRuby
|
|
|
4458
4457
|
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollNzApi.get_tracking_categories"
|
|
4459
4458
|
end
|
|
4460
4459
|
# resource path
|
|
4461
|
-
local_var_path = '/
|
|
4460
|
+
local_var_path = '/Settings/TrackingCategories'
|
|
4462
4461
|
|
|
4463
4462
|
# camelize keys of incoming `where` opts
|
|
4464
4463
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4504,7 +4503,7 @@ module XeroRuby
|
|
|
4504
4503
|
return data, status_code, headers
|
|
4505
4504
|
end
|
|
4506
4505
|
|
|
4507
|
-
#
|
|
4506
|
+
# Reverts a timesheet to draft
|
|
4508
4507
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4509
4508
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
4510
4509
|
# @param [Hash] opts the optional parameters
|
|
@@ -4514,7 +4513,7 @@ module XeroRuby
|
|
|
4514
4513
|
data
|
|
4515
4514
|
end
|
|
4516
4515
|
|
|
4517
|
-
#
|
|
4516
|
+
# Reverts a timesheet to draft
|
|
4518
4517
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4519
4518
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
4520
4519
|
# @param [Hash] opts the optional parameters
|
|
@@ -4578,7 +4577,7 @@ module XeroRuby
|
|
|
4578
4577
|
return data, status_code, headers
|
|
4579
4578
|
end
|
|
4580
4579
|
|
|
4581
|
-
#
|
|
4580
|
+
# Updates an existing employee
|
|
4582
4581
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4583
4582
|
# @param employee_id [String] Employee id for single object
|
|
4584
4583
|
# @param employee [Employee]
|
|
@@ -4589,7 +4588,7 @@ module XeroRuby
|
|
|
4589
4588
|
data
|
|
4590
4589
|
end
|
|
4591
4590
|
|
|
4592
|
-
#
|
|
4591
|
+
# Updates an existing employee
|
|
4593
4592
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4594
4593
|
# @param employee_id [String] Employee id for single object
|
|
4595
4594
|
# @param employee [Employee]
|
|
@@ -4612,7 +4611,7 @@ module XeroRuby
|
|
|
4612
4611
|
fail ArgumentError, "Missing the required parameter 'employee' when calling PayrollNzApi.update_employee"
|
|
4613
4612
|
end
|
|
4614
4613
|
# resource path
|
|
4615
|
-
local_var_path = '/Employees/{
|
|
4614
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
4616
4615
|
|
|
4617
4616
|
# camelize keys of incoming `where` opts
|
|
4618
4617
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4660,7 +4659,7 @@ module XeroRuby
|
|
|
4660
4659
|
return data, status_code, headers
|
|
4661
4660
|
end
|
|
4662
4661
|
|
|
4663
|
-
#
|
|
4662
|
+
# Updates an earnings template records for an employee
|
|
4664
4663
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4665
4664
|
# @param employee_id [String] Employee id for single object
|
|
4666
4665
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
|
@@ -4672,7 +4671,7 @@ module XeroRuby
|
|
|
4672
4671
|
data
|
|
4673
4672
|
end
|
|
4674
4673
|
|
|
4675
|
-
#
|
|
4674
|
+
# Updates an earnings template records for an employee
|
|
4676
4675
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4677
4676
|
# @param employee_id [String] Employee id for single object
|
|
4678
4677
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
|
@@ -4700,7 +4699,7 @@ module XeroRuby
|
|
|
4700
4699
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollNzApi.update_employee_earnings_template"
|
|
4701
4700
|
end
|
|
4702
4701
|
# resource path
|
|
4703
|
-
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)
|
|
4704
4703
|
|
|
4705
4704
|
# camelize keys of incoming `where` opts
|
|
4706
4705
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4748,7 +4747,7 @@ module XeroRuby
|
|
|
4748
4747
|
return data, status_code, headers
|
|
4749
4748
|
end
|
|
4750
4749
|
|
|
4751
|
-
#
|
|
4750
|
+
# Updates leave records for a specific employee
|
|
4752
4751
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4753
4752
|
# @param employee_id [String] Employee id for single object
|
|
4754
4753
|
# @param leave_id [String] Leave id for single object
|
|
@@ -4760,7 +4759,7 @@ module XeroRuby
|
|
|
4760
4759
|
data
|
|
4761
4760
|
end
|
|
4762
4761
|
|
|
4763
|
-
#
|
|
4762
|
+
# Updates leave records for a specific employee
|
|
4764
4763
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4765
4764
|
# @param employee_id [String] Employee id for single object
|
|
4766
4765
|
# @param leave_id [String] Leave id for single object
|
|
@@ -4788,7 +4787,7 @@ module XeroRuby
|
|
|
4788
4787
|
fail ArgumentError, "Missing the required parameter 'employee_leave' when calling PayrollNzApi.update_employee_leave"
|
|
4789
4788
|
end
|
|
4790
4789
|
# resource path
|
|
4791
|
-
local_var_path = '/Employees/{
|
|
4790
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
|
4792
4791
|
|
|
4793
4792
|
# camelize keys of incoming `where` opts
|
|
4794
4793
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4836,7 +4835,7 @@ module XeroRuby
|
|
|
4836
4835
|
return data, status_code, headers
|
|
4837
4836
|
end
|
|
4838
4837
|
|
|
4839
|
-
#
|
|
4838
|
+
# Updates an employee's salary and wages record
|
|
4840
4839
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4841
4840
|
# @param employee_id [String] Employee id for single object
|
|
4842
4841
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
|
@@ -4848,7 +4847,7 @@ module XeroRuby
|
|
|
4848
4847
|
data
|
|
4849
4848
|
end
|
|
4850
4849
|
|
|
4851
|
-
#
|
|
4850
|
+
# Updates an employee's salary and wages record
|
|
4852
4851
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4853
4852
|
# @param employee_id [String] Employee id for single object
|
|
4854
4853
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
|
@@ -4876,7 +4875,7 @@ module XeroRuby
|
|
|
4876
4875
|
fail ArgumentError, "Missing the required parameter 'salary_and_wage' when calling PayrollNzApi.update_employee_salary_and_wage"
|
|
4877
4876
|
end
|
|
4878
4877
|
# resource path
|
|
4879
|
-
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)
|
|
4880
4879
|
|
|
4881
4880
|
# camelize keys of incoming `where` opts
|
|
4882
4881
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4924,7 +4923,7 @@ module XeroRuby
|
|
|
4924
4923
|
return data, status_code, headers
|
|
4925
4924
|
end
|
|
4926
4925
|
|
|
4927
|
-
#
|
|
4926
|
+
# Updates the tax records for a specific employee
|
|
4928
4927
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4929
4928
|
# @param employee_id [String] Employee id for single object
|
|
4930
4929
|
# @param employee_tax [EmployeeTax]
|
|
@@ -4935,7 +4934,7 @@ module XeroRuby
|
|
|
4935
4934
|
data
|
|
4936
4935
|
end
|
|
4937
4936
|
|
|
4938
|
-
#
|
|
4937
|
+
# Updates the tax records for a specific employee
|
|
4939
4938
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4940
4939
|
# @param employee_id [String] Employee id for single object
|
|
4941
4940
|
# @param employee_tax [EmployeeTax]
|
|
@@ -4958,7 +4957,7 @@ module XeroRuby
|
|
|
4958
4957
|
fail ArgumentError, "Missing the required parameter 'employee_tax' when calling PayrollNzApi.update_employee_tax"
|
|
4959
4958
|
end
|
|
4960
4959
|
# resource path
|
|
4961
|
-
local_var_path = '/Employees/{
|
|
4960
|
+
local_var_path = '/Employees/{EmployeeID}/Tax'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
4962
4961
|
|
|
4963
4962
|
# camelize keys of incoming `where` opts
|
|
4964
4963
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -5006,7 +5005,7 @@ module XeroRuby
|
|
|
5006
5005
|
return data, status_code, headers
|
|
5007
5006
|
end
|
|
5008
5007
|
|
|
5009
|
-
#
|
|
5008
|
+
# Updates a pay run
|
|
5010
5009
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5011
5010
|
# @param pay_run_id [String] Identifier for the pay run
|
|
5012
5011
|
# @param pay_run [PayRun]
|
|
@@ -5017,7 +5016,7 @@ module XeroRuby
|
|
|
5017
5016
|
data
|
|
5018
5017
|
end
|
|
5019
5018
|
|
|
5020
|
-
#
|
|
5019
|
+
# Updates a pay run
|
|
5021
5020
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5022
5021
|
# @param pay_run_id [String] Identifier for the pay run
|
|
5023
5022
|
# @param pay_run [PayRun]
|
|
@@ -5088,7 +5087,7 @@ module XeroRuby
|
|
|
5088
5087
|
return data, status_code, headers
|
|
5089
5088
|
end
|
|
5090
5089
|
|
|
5091
|
-
#
|
|
5090
|
+
# Creates an employee pay slip
|
|
5092
5091
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5093
5092
|
# @param pay_slip_id [String] Identifier for the payslip
|
|
5094
5093
|
# @param pay_slip [PaySlip]
|
|
@@ -5099,7 +5098,7 @@ module XeroRuby
|
|
|
5099
5098
|
data
|
|
5100
5099
|
end
|
|
5101
5100
|
|
|
5102
|
-
#
|
|
5101
|
+
# Creates an employee pay slip
|
|
5103
5102
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5104
5103
|
# @param pay_slip_id [String] Identifier for the payslip
|
|
5105
5104
|
# @param pay_slip [PaySlip]
|
|
@@ -5170,7 +5169,7 @@ module XeroRuby
|
|
|
5170
5169
|
return data, status_code, headers
|
|
5171
5170
|
end
|
|
5172
5171
|
|
|
5173
|
-
#
|
|
5172
|
+
# Updates a timesheet line for a specific timesheet
|
|
5174
5173
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5175
5174
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
5176
5175
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
|
@@ -5182,7 +5181,7 @@ module XeroRuby
|
|
|
5182
5181
|
data
|
|
5183
5182
|
end
|
|
5184
5183
|
|
|
5185
|
-
#
|
|
5184
|
+
# Updates a timesheet line for a specific timesheet
|
|
5186
5185
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5187
5186
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
5188
5187
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|