xero-ruby 2.5.1 → 2.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +47 -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 +29 -91
- 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 +23 -8
- 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 +86 -0
- data/spec/configuration_spec.rb +1 -1
- data/spec/helper_methods_spec.rb +82 -0
- data/spec/where_spec.rb +82 -0
- metadata +10 -6
- data/spec/files/models/file_response204_spec.rb +0 -41
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
#This is the Xero Payroll API for orgs in the UK 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 specific 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 specific 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 employee benefit
|
95
94
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
96
95
|
# @param benefit [Benefit]
|
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 employee benefit
|
105
104
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
106
105
|
# @param benefit [Benefit]
|
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 deduction
|
171
170
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
172
171
|
# @param deduction [Deduction]
|
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 deduction
|
181
180
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
182
181
|
# @param deduction [Deduction]
|
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 a new earnings rate
|
247
246
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
248
247
|
# @param earnings_rate [EarningsRate]
|
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 a new earnings rate
|
257
256
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
258
257
|
# @param earnings_rate [EarningsRate]
|
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 employees
|
323
322
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
324
323
|
# @param employee [Employee]
|
325
324
|
# @param [Hash] opts the optional parameters
|
@@ -329,7 +328,7 @@ module XeroRuby
|
|
329
328
|
data
|
330
329
|
end
|
331
330
|
|
332
|
-
#
|
331
|
+
# Creates employees
|
333
332
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
334
333
|
# @param employee [Employee]
|
335
334
|
# @param [Hash] opts the optional parameters
|
@@ -395,7 +394,7 @@ module XeroRuby
|
|
395
394
|
return data, status_code, headers
|
396
395
|
end
|
397
396
|
|
398
|
-
#
|
397
|
+
# Creates an earnings template records for a specific employee
|
399
398
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
400
399
|
# @param employee_id [String] Employee id for single object
|
401
400
|
# @param earnings_template [EarningsTemplate]
|
@@ -406,7 +405,7 @@ module XeroRuby
|
|
406
405
|
data
|
407
406
|
end
|
408
407
|
|
409
|
-
#
|
408
|
+
# Creates an earnings template records for a specific employee
|
410
409
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
411
410
|
# @param employee_id [String] Employee id for single object
|
412
411
|
# @param earnings_template [EarningsTemplate]
|
@@ -429,7 +428,7 @@ module XeroRuby
|
|
429
428
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollUkApi.create_employee_earnings_template"
|
430
429
|
end
|
431
430
|
# resource path
|
432
|
-
local_var_path = '/Employees/{
|
431
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates/earnings'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
433
432
|
|
434
433
|
# camelize keys of incoming `where` opts
|
435
434
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -477,7 +476,7 @@ module XeroRuby
|
|
477
476
|
return data, status_code, headers
|
478
477
|
end
|
479
478
|
|
480
|
-
#
|
479
|
+
# Creates leave records for a specific employee
|
481
480
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
482
481
|
# @param employee_id [String] Employee id for single object
|
483
482
|
# @param employee_leave [EmployeeLeave]
|
@@ -488,7 +487,7 @@ module XeroRuby
|
|
488
487
|
data
|
489
488
|
end
|
490
489
|
|
491
|
-
#
|
490
|
+
# Creates leave records for a specific employee
|
492
491
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
493
492
|
# @param employee_id [String] Employee id for single object
|
494
493
|
# @param employee_leave [EmployeeLeave]
|
@@ -511,7 +510,7 @@ module XeroRuby
|
|
511
510
|
fail ArgumentError, "Missing the required parameter 'employee_leave' when calling PayrollUkApi.create_employee_leave"
|
512
511
|
end
|
513
512
|
# resource path
|
514
|
-
local_var_path = '/Employees/{
|
513
|
+
local_var_path = '/Employees/{EmployeeID}/Leave'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
515
514
|
|
516
515
|
# camelize keys of incoming `where` opts
|
517
516
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -559,7 +558,7 @@ module XeroRuby
|
|
559
558
|
return data, status_code, headers
|
560
559
|
end
|
561
560
|
|
562
|
-
#
|
561
|
+
# Creates employee leave type records
|
563
562
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
564
563
|
# @param employee_id [String] Employee id for single object
|
565
564
|
# @param employee_leave_type [EmployeeLeaveType]
|
@@ -570,7 +569,7 @@ module XeroRuby
|
|
570
569
|
data
|
571
570
|
end
|
572
571
|
|
573
|
-
#
|
572
|
+
# Creates employee leave type records
|
574
573
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
575
574
|
# @param employee_id [String] Employee id for single object
|
576
575
|
# @param employee_leave_type [EmployeeLeaveType]
|
@@ -593,7 +592,7 @@ module XeroRuby
|
|
593
592
|
fail ArgumentError, "Missing the required parameter 'employee_leave_type' when calling PayrollUkApi.create_employee_leave_type"
|
594
593
|
end
|
595
594
|
# resource path
|
596
|
-
local_var_path = '/Employees/{
|
595
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveTypes'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
597
596
|
|
598
597
|
# camelize keys of incoming `where` opts
|
599
598
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -641,7 +640,7 @@ module XeroRuby
|
|
641
640
|
return data, status_code, headers
|
642
641
|
end
|
643
642
|
|
644
|
-
#
|
643
|
+
# Creates an opening balance for a specific employee
|
645
644
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
646
645
|
# @param employee_id [String] Employee id for single object
|
647
646
|
# @param employee_opening_balances [EmployeeOpeningBalances]
|
@@ -652,7 +651,7 @@ module XeroRuby
|
|
652
651
|
data
|
653
652
|
end
|
654
653
|
|
655
|
-
#
|
654
|
+
# Creates an opening balance for a specific employee
|
656
655
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
657
656
|
# @param employee_id [String] Employee id for single object
|
658
657
|
# @param employee_opening_balances [EmployeeOpeningBalances]
|
@@ -675,7 +674,7 @@ module XeroRuby
|
|
675
674
|
fail ArgumentError, "Missing the required parameter 'employee_opening_balances' when calling PayrollUkApi.create_employee_opening_balances"
|
676
675
|
end
|
677
676
|
# resource path
|
678
|
-
local_var_path = '/Employees/{
|
677
|
+
local_var_path = '/Employees/{EmployeeID}/ukopeningbalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
679
678
|
|
680
679
|
# camelize keys of incoming `where` opts
|
681
680
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -723,7 +722,7 @@ module XeroRuby
|
|
723
722
|
return data, status_code, headers
|
724
723
|
end
|
725
724
|
|
726
|
-
#
|
725
|
+
# Creates an employee payment method
|
727
726
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
728
727
|
# @param employee_id [String] Employee id for single object
|
729
728
|
# @param payment_method [PaymentMethod]
|
@@ -734,7 +733,7 @@ module XeroRuby
|
|
734
733
|
data
|
735
734
|
end
|
736
735
|
|
737
|
-
#
|
736
|
+
# Creates an employee payment method
|
738
737
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
739
738
|
# @param employee_id [String] Employee id for single object
|
740
739
|
# @param payment_method [PaymentMethod]
|
@@ -757,7 +756,7 @@ module XeroRuby
|
|
757
756
|
fail ArgumentError, "Missing the required parameter 'payment_method' when calling PayrollUkApi.create_employee_payment_method"
|
758
757
|
end
|
759
758
|
# resource path
|
760
|
-
local_var_path = '/Employees/{
|
759
|
+
local_var_path = '/Employees/{EmployeeID}/PaymentMethods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
761
760
|
|
762
761
|
# camelize keys of incoming `where` opts
|
763
762
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -805,7 +804,7 @@ module XeroRuby
|
|
805
804
|
return data, status_code, headers
|
806
805
|
end
|
807
806
|
|
808
|
-
#
|
807
|
+
# Creates a salary and wage record for a specific employee
|
809
808
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
810
809
|
# @param employee_id [String] Employee id for single object
|
811
810
|
# @param salary_and_wage [SalaryAndWage]
|
@@ -816,7 +815,7 @@ module XeroRuby
|
|
816
815
|
data
|
817
816
|
end
|
818
817
|
|
819
|
-
#
|
818
|
+
# Creates a salary and wage record for a specific employee
|
820
819
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
821
820
|
# @param employee_id [String] Employee id for single object
|
822
821
|
# @param salary_and_wage [SalaryAndWage]
|
@@ -839,7 +838,7 @@ module XeroRuby
|
|
839
838
|
fail ArgumentError, "Missing the required parameter 'salary_and_wage' when calling PayrollUkApi.create_employee_salary_and_wage"
|
840
839
|
end
|
841
840
|
# resource path
|
842
|
-
local_var_path = '/Employees/{
|
841
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
843
842
|
|
844
843
|
# camelize keys of incoming `where` opts
|
845
844
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -887,7 +886,7 @@ module XeroRuby
|
|
887
886
|
return data, status_code, headers
|
888
887
|
end
|
889
888
|
|
890
|
-
#
|
889
|
+
# Creates statutory sick leave records
|
891
890
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
892
891
|
# @param employee_statutory_sick_leave [EmployeeStatutorySickLeave]
|
893
892
|
# @param [Hash] opts the optional parameters
|
@@ -897,7 +896,7 @@ module XeroRuby
|
|
897
896
|
data
|
898
897
|
end
|
899
898
|
|
900
|
-
#
|
899
|
+
# Creates statutory sick leave records
|
901
900
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
902
901
|
# @param employee_statutory_sick_leave [EmployeeStatutorySickLeave]
|
903
902
|
# @param [Hash] opts the optional parameters
|
@@ -963,7 +962,7 @@ module XeroRuby
|
|
963
962
|
return data, status_code, headers
|
964
963
|
end
|
965
964
|
|
966
|
-
#
|
965
|
+
# Creates employment detail for a specific employee using a unique employee ID
|
967
966
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
968
967
|
# @param employee_id [String] Employee id for single object
|
969
968
|
# @param employment [Employment]
|
@@ -974,7 +973,7 @@ module XeroRuby
|
|
974
973
|
data
|
975
974
|
end
|
976
975
|
|
977
|
-
#
|
976
|
+
# Creates employment detail for a specific employee using a unique employee ID
|
978
977
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
979
978
|
# @param employee_id [String] Employee id for single object
|
980
979
|
# @param employment [Employment]
|
@@ -997,7 +996,7 @@ module XeroRuby
|
|
997
996
|
fail ArgumentError, "Missing the required parameter 'employment' when calling PayrollUkApi.create_employment"
|
998
997
|
end
|
999
998
|
# resource path
|
1000
|
-
local_var_path = '/Employees/{
|
999
|
+
local_var_path = '/Employees/{EmployeeID}/Employment'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
1001
1000
|
|
1002
1001
|
# camelize keys of incoming `where` opts
|
1003
1002
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1045,7 +1044,7 @@ module XeroRuby
|
|
1045
1044
|
return data, status_code, headers
|
1046
1045
|
end
|
1047
1046
|
|
1048
|
-
#
|
1047
|
+
# Creates a new leave type
|
1049
1048
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1050
1049
|
# @param leave_type [LeaveType]
|
1051
1050
|
# @param [Hash] opts the optional parameters
|
@@ -1055,7 +1054,7 @@ module XeroRuby
|
|
1055
1054
|
data
|
1056
1055
|
end
|
1057
1056
|
|
1058
|
-
#
|
1057
|
+
# Creates a new leave type
|
1059
1058
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1060
1059
|
# @param leave_type [LeaveType]
|
1061
1060
|
# @param [Hash] opts the optional parameters
|
@@ -1121,7 +1120,7 @@ module XeroRuby
|
|
1121
1120
|
return data, status_code, headers
|
1122
1121
|
end
|
1123
1122
|
|
1124
|
-
#
|
1123
|
+
# Creates multiple earnings template records for a specific employee using a unique employee ID
|
1125
1124
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1126
1125
|
# @param employee_id [String] Employee id for single object
|
1127
1126
|
# @param earnings_template [Array<EarningsTemplate>]
|
@@ -1132,7 +1131,7 @@ module XeroRuby
|
|
1132
1131
|
data
|
1133
1132
|
end
|
1134
1133
|
|
1135
|
-
#
|
1134
|
+
# Creates multiple earnings template records for a specific employee using a unique employee ID
|
1136
1135
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1137
1136
|
# @param employee_id [String] Employee id for single object
|
1138
1137
|
# @param earnings_template [Array<EarningsTemplate>]
|
@@ -1155,7 +1154,7 @@ module XeroRuby
|
|
1155
1154
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollUkApi.create_multiple_employee_earnings_template"
|
1156
1155
|
end
|
1157
1156
|
# resource path
|
1158
|
-
local_var_path = '/Employees/{
|
1157
|
+
local_var_path = '/Employees/{EmployeeID}/paytemplateearnings'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
1159
1158
|
|
1160
1159
|
# camelize keys of incoming `where` opts
|
1161
1160
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1203,7 +1202,7 @@ module XeroRuby
|
|
1203
1202
|
return data, status_code, headers
|
1204
1203
|
end
|
1205
1204
|
|
1206
|
-
#
|
1205
|
+
# Creates a new payrun calendar
|
1207
1206
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1208
1207
|
# @param pay_run_calendar [PayRunCalendar]
|
1209
1208
|
# @param [Hash] opts the optional parameters
|
@@ -1213,7 +1212,7 @@ module XeroRuby
|
|
1213
1212
|
data
|
1214
1213
|
end
|
1215
1214
|
|
1216
|
-
#
|
1215
|
+
# Creates a new payrun calendar
|
1217
1216
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1218
1217
|
# @param pay_run_calendar [PayRunCalendar]
|
1219
1218
|
# @param [Hash] opts the optional parameters
|
@@ -1279,7 +1278,7 @@ module XeroRuby
|
|
1279
1278
|
return data, status_code, headers
|
1280
1279
|
end
|
1281
1280
|
|
1282
|
-
#
|
1281
|
+
# Creates a new reimbursement
|
1283
1282
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1284
1283
|
# @param reimbursement [Reimbursement]
|
1285
1284
|
# @param [Hash] opts the optional parameters
|
@@ -1289,7 +1288,7 @@ module XeroRuby
|
|
1289
1288
|
data
|
1290
1289
|
end
|
1291
1290
|
|
1292
|
-
#
|
1291
|
+
# Creates a new reimbursement
|
1293
1292
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1294
1293
|
# @param reimbursement [Reimbursement]
|
1295
1294
|
# @param [Hash] opts the optional parameters
|
@@ -1355,7 +1354,7 @@ module XeroRuby
|
|
1355
1354
|
return data, status_code, headers
|
1356
1355
|
end
|
1357
1356
|
|
1358
|
-
#
|
1357
|
+
# Creates a new timesheet
|
1359
1358
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1360
1359
|
# @param timesheet [Timesheet]
|
1361
1360
|
# @param [Hash] opts the optional parameters
|
@@ -1365,7 +1364,7 @@ module XeroRuby
|
|
1365
1364
|
data
|
1366
1365
|
end
|
1367
1366
|
|
1368
|
-
#
|
1367
|
+
# Creates a new timesheet
|
1369
1368
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1370
1369
|
# @param timesheet [Timesheet]
|
1371
1370
|
# @param [Hash] opts the optional parameters
|
@@ -1431,7 +1430,7 @@ module XeroRuby
|
|
1431
1430
|
return data, status_code, headers
|
1432
1431
|
end
|
1433
1432
|
|
1434
|
-
#
|
1433
|
+
# Creates a new timesheet line for a specific timesheet using a unique timesheet ID
|
1435
1434
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1436
1435
|
# @param timesheet_id [String] Identifier for the timesheet
|
1437
1436
|
# @param timesheet_line [TimesheetLine]
|
@@ -1442,7 +1441,7 @@ module XeroRuby
|
|
1442
1441
|
data
|
1443
1442
|
end
|
1444
1443
|
|
1445
|
-
#
|
1444
|
+
# Creates a new timesheet line for a specific timesheet using a unique timesheet ID
|
1446
1445
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1447
1446
|
# @param timesheet_id [String] Identifier for the timesheet
|
1448
1447
|
# @param timesheet_line [TimesheetLine]
|
@@ -1513,7 +1512,7 @@ module XeroRuby
|
|
1513
1512
|
return data, status_code, headers
|
1514
1513
|
end
|
1515
1514
|
|
1516
|
-
#
|
1515
|
+
# Deletes a specific employee's earnings template record
|
1517
1516
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1518
1517
|
# @param employee_id [String] Employee id for single object
|
1519
1518
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
@@ -1524,7 +1523,7 @@ module XeroRuby
|
|
1524
1523
|
nil
|
1525
1524
|
end
|
1526
1525
|
|
1527
|
-
#
|
1526
|
+
# Deletes a specific employee's earnings template record
|
1528
1527
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1529
1528
|
# @param employee_id [String] Employee id for single object
|
1530
1529
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
@@ -1547,7 +1546,7 @@ module XeroRuby
|
|
1547
1546
|
fail ArgumentError, "Missing the required parameter 'pay_template_earning_id' when calling PayrollUkApi.delete_employee_earnings_template"
|
1548
1547
|
end
|
1549
1548
|
# resource path
|
1550
|
-
local_var_path = '/Employees/{
|
1549
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates/earnings/{PayTemplateEarningID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'PayTemplateEarningID' + '}', pay_template_earning_id.to_s)
|
1551
1550
|
|
1552
1551
|
# camelize keys of incoming `where` opts
|
1553
1552
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1591,7 +1590,7 @@ module XeroRuby
|
|
1591
1590
|
return data, status_code, headers
|
1592
1591
|
end
|
1593
1592
|
|
1594
|
-
#
|
1593
|
+
# Deletes a specific employee's leave record
|
1595
1594
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1596
1595
|
# @param employee_id [String] Employee id for single object
|
1597
1596
|
# @param leave_id [String] Leave id for single object
|
@@ -1602,7 +1601,7 @@ module XeroRuby
|
|
1602
1601
|
data
|
1603
1602
|
end
|
1604
1603
|
|
1605
|
-
#
|
1604
|
+
# Deletes a specific employee's leave record
|
1606
1605
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1607
1606
|
# @param employee_id [String] Employee id for single object
|
1608
1607
|
# @param leave_id [String] Leave id for single object
|
@@ -1625,7 +1624,7 @@ module XeroRuby
|
|
1625
1624
|
fail ArgumentError, "Missing the required parameter 'leave_id' when calling PayrollUkApi.delete_employee_leave"
|
1626
1625
|
end
|
1627
1626
|
# resource path
|
1628
|
-
local_var_path = '/Employees/{
|
1627
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
1629
1628
|
|
1630
1629
|
# camelize keys of incoming `where` opts
|
1631
1630
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1671,7 +1670,7 @@ module XeroRuby
|
|
1671
1670
|
return data, status_code, headers
|
1672
1671
|
end
|
1673
1672
|
|
1674
|
-
#
|
1673
|
+
# Deletes a salary and wages record for a specific employee
|
1675
1674
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1676
1675
|
# @param employee_id [String] Employee id for single object
|
1677
1676
|
# @param salary_and_wages_id [String] Id for single salary and wages object
|
@@ -1682,7 +1681,7 @@ module XeroRuby
|
|
1682
1681
|
nil
|
1683
1682
|
end
|
1684
1683
|
|
1685
|
-
#
|
1684
|
+
# Deletes a salary and wages record for a specific employee
|
1686
1685
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1687
1686
|
# @param employee_id [String] Employee id for single object
|
1688
1687
|
# @param salary_and_wages_id [String] Id for single salary and wages object
|
@@ -1705,7 +1704,7 @@ module XeroRuby
|
|
1705
1704
|
fail ArgumentError, "Missing the required parameter 'salary_and_wages_id' when calling PayrollUkApi.delete_employee_salary_and_wage"
|
1706
1705
|
end
|
1707
1706
|
# resource path
|
1708
|
-
local_var_path = '/Employees/{
|
1707
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'SalaryAndWagesID' + '}', salary_and_wages_id.to_s)
|
1709
1708
|
|
1710
1709
|
# camelize keys of incoming `where` opts
|
1711
1710
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1749,7 +1748,7 @@ module XeroRuby
|
|
1749
1748
|
return data, status_code, headers
|
1750
1749
|
end
|
1751
1750
|
|
1752
|
-
#
|
1751
|
+
# Deletes a specific timesheet
|
1753
1752
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1754
1753
|
# @param timesheet_id [String] Identifier for the timesheet
|
1755
1754
|
# @param [Hash] opts the optional parameters
|
@@ -1759,7 +1758,7 @@ module XeroRuby
|
|
1759
1758
|
data
|
1760
1759
|
end
|
1761
1760
|
|
1762
|
-
#
|
1761
|
+
# Deletes a specific timesheet
|
1763
1762
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1764
1763
|
# @param timesheet_id [String] Identifier for the timesheet
|
1765
1764
|
# @param [Hash] opts the optional parameters
|
@@ -1823,7 +1822,7 @@ module XeroRuby
|
|
1823
1822
|
return data, status_code, headers
|
1824
1823
|
end
|
1825
1824
|
|
1826
|
-
#
|
1825
|
+
# Deletes a specific timesheet line
|
1827
1826
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1828
1827
|
# @param timesheet_id [String] Identifier for the timesheet
|
1829
1828
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
@@ -1834,7 +1833,7 @@ module XeroRuby
|
|
1834
1833
|
data
|
1835
1834
|
end
|
1836
1835
|
|
1837
|
-
#
|
1836
|
+
# Deletes a specific timesheet line
|
1838
1837
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1839
1838
|
# @param timesheet_id [String] Identifier for the timesheet
|
1840
1839
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
@@ -1903,7 +1902,7 @@ module XeroRuby
|
|
1903
1902
|
return data, status_code, headers
|
1904
1903
|
end
|
1905
1904
|
|
1906
|
-
#
|
1905
|
+
# Retrieves a specific benefit by using a unique benefit ID
|
1907
1906
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1908
1907
|
# @param id [String] Identifier for the benefit
|
1909
1908
|
# @param [Hash] opts the optional parameters
|
@@ -1913,7 +1912,7 @@ module XeroRuby
|
|
1913
1912
|
data
|
1914
1913
|
end
|
1915
1914
|
|
1916
|
-
#
|
1915
|
+
# Retrieves a specific benefit by using a unique benefit ID
|
1917
1916
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1918
1917
|
# @param id [String] Identifier for the benefit
|
1919
1918
|
# @param [Hash] opts the optional parameters
|
@@ -1977,7 +1976,7 @@ module XeroRuby
|
|
1977
1976
|
return data, status_code, headers
|
1978
1977
|
end
|
1979
1978
|
|
1980
|
-
#
|
1979
|
+
# Retrieves employee benefits
|
1981
1980
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1982
1981
|
# @param [Hash] opts the optional parameters
|
1983
1982
|
# @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.
|
@@ -1987,7 +1986,7 @@ module XeroRuby
|
|
1987
1986
|
data
|
1988
1987
|
end
|
1989
1988
|
|
1990
|
-
#
|
1989
|
+
# Retrieves employee benefits
|
1991
1990
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1992
1991
|
# @param [Hash] opts the optional parameters
|
1993
1992
|
# @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.
|
@@ -2048,7 +2047,7 @@ module XeroRuby
|
|
2048
2047
|
return data, status_code, headers
|
2049
2048
|
end
|
2050
2049
|
|
2051
|
-
#
|
2050
|
+
# Retrieves a specific deduction by using a unique deduction ID
|
2052
2051
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2053
2052
|
# @param deduction_id [String] Identifier for the deduction
|
2054
2053
|
# @param [Hash] opts the optional parameters
|
@@ -2058,7 +2057,7 @@ module XeroRuby
|
|
2058
2057
|
data
|
2059
2058
|
end
|
2060
2059
|
|
2061
|
-
#
|
2060
|
+
# Retrieves a specific deduction by using a unique deduction ID
|
2062
2061
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2063
2062
|
# @param deduction_id [String] Identifier for the deduction
|
2064
2063
|
# @param [Hash] opts the optional parameters
|
@@ -2122,7 +2121,7 @@ module XeroRuby
|
|
2122
2121
|
return data, status_code, headers
|
2123
2122
|
end
|
2124
2123
|
|
2125
|
-
#
|
2124
|
+
# Retrieves deductions
|
2126
2125
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2127
2126
|
# @param [Hash] opts the optional parameters
|
2128
2127
|
# @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.
|
@@ -2132,7 +2131,7 @@ module XeroRuby
|
|
2132
2131
|
data
|
2133
2132
|
end
|
2134
2133
|
|
2135
|
-
#
|
2134
|
+
# Retrieves deductions
|
2136
2135
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2137
2136
|
# @param [Hash] opts the optional parameters
|
2138
2137
|
# @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.
|
@@ -2193,7 +2192,7 @@ module XeroRuby
|
|
2193
2192
|
return data, status_code, headers
|
2194
2193
|
end
|
2195
2194
|
|
2196
|
-
#
|
2195
|
+
# Retrieves a specific earnings orders by using a unique earnings orders id
|
2197
2196
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2198
2197
|
# @param id [String] Identifier for the deduction
|
2199
2198
|
# @param [Hash] opts the optional parameters
|
@@ -2203,7 +2202,7 @@ module XeroRuby
|
|
2203
2202
|
data
|
2204
2203
|
end
|
2205
2204
|
|
2206
|
-
#
|
2205
|
+
# Retrieves a specific earnings orders by using a unique earnings orders id
|
2207
2206
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2208
2207
|
# @param id [String] Identifier for the deduction
|
2209
2208
|
# @param [Hash] opts the optional parameters
|
@@ -2267,7 +2266,7 @@ module XeroRuby
|
|
2267
2266
|
return data, status_code, headers
|
2268
2267
|
end
|
2269
2268
|
|
2270
|
-
#
|
2269
|
+
# Retrieves earnings orders
|
2271
2270
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2272
2271
|
# @param [Hash] opts the optional parameters
|
2273
2272
|
# @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.
|
@@ -2277,7 +2276,7 @@ module XeroRuby
|
|
2277
2276
|
data
|
2278
2277
|
end
|
2279
2278
|
|
2280
|
-
#
|
2279
|
+
# Retrieves earnings orders
|
2281
2280
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2282
2281
|
# @param [Hash] opts the optional parameters
|
2283
2282
|
# @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.
|
@@ -2338,7 +2337,7 @@ module XeroRuby
|
|
2338
2337
|
return data, status_code, headers
|
2339
2338
|
end
|
2340
2339
|
|
2341
|
-
#
|
2340
|
+
# Retrieves a specific earnings rates by using a unique earnings rate id
|
2342
2341
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2343
2342
|
# @param earnings_rate_id [String] Identifier for the earnings rate
|
2344
2343
|
# @param [Hash] opts the optional parameters
|
@@ -2348,7 +2347,7 @@ module XeroRuby
|
|
2348
2347
|
data
|
2349
2348
|
end
|
2350
2349
|
|
2351
|
-
#
|
2350
|
+
# Retrieves a specific earnings rates by using a unique earnings rate id
|
2352
2351
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2353
2352
|
# @param earnings_rate_id [String] Identifier for the earnings rate
|
2354
2353
|
# @param [Hash] opts the optional parameters
|
@@ -2412,7 +2411,7 @@ module XeroRuby
|
|
2412
2411
|
return data, status_code, headers
|
2413
2412
|
end
|
2414
2413
|
|
2415
|
-
#
|
2414
|
+
# Retrieves earnings rates
|
2416
2415
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2417
2416
|
# @param [Hash] opts the optional parameters
|
2418
2417
|
# @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.
|
@@ -2422,7 +2421,7 @@ module XeroRuby
|
|
2422
2421
|
data
|
2423
2422
|
end
|
2424
2423
|
|
2425
|
-
#
|
2424
|
+
# Retrieves earnings rates
|
2426
2425
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2427
2426
|
# @param [Hash] opts the optional parameters
|
2428
2427
|
# @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.
|
@@ -2483,7 +2482,7 @@ module XeroRuby
|
|
2483
2482
|
return data, status_code, headers
|
2484
2483
|
end
|
2485
2484
|
|
2486
|
-
#
|
2485
|
+
# Retrieves specific employees by using a unique employee ID
|
2487
2486
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2488
2487
|
# @param employee_id [String] Employee id for single object
|
2489
2488
|
# @param [Hash] opts the optional parameters
|
@@ -2493,7 +2492,7 @@ module XeroRuby
|
|
2493
2492
|
data
|
2494
2493
|
end
|
2495
2494
|
|
2496
|
-
#
|
2495
|
+
# Retrieves specific employees by using a unique employee ID
|
2497
2496
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2498
2497
|
# @param employee_id [String] Employee id for single object
|
2499
2498
|
# @param [Hash] opts the optional parameters
|
@@ -2511,7 +2510,7 @@ module XeroRuby
|
|
2511
2510
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee"
|
2512
2511
|
end
|
2513
2512
|
# resource path
|
2514
|
-
local_var_path = '/Employees/{
|
2513
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2515
2514
|
|
2516
2515
|
# camelize keys of incoming `where` opts
|
2517
2516
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2557,7 +2556,7 @@ module XeroRuby
|
|
2557
2556
|
return data, status_code, headers
|
2558
2557
|
end
|
2559
2558
|
|
2560
|
-
#
|
2559
|
+
# Retrieves a specific employee's leave record using a unique employee ID
|
2561
2560
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2562
2561
|
# @param employee_id [String] Employee id for single object
|
2563
2562
|
# @param leave_id [String] Leave id for single object
|
@@ -2568,7 +2567,7 @@ module XeroRuby
|
|
2568
2567
|
data
|
2569
2568
|
end
|
2570
2569
|
|
2571
|
-
#
|
2570
|
+
# Retrieves a specific employee's leave record using a unique employee ID
|
2572
2571
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2573
2572
|
# @param employee_id [String] Employee id for single object
|
2574
2573
|
# @param leave_id [String] Leave id for single object
|
@@ -2591,7 +2590,7 @@ module XeroRuby
|
|
2591
2590
|
fail ArgumentError, "Missing the required parameter 'leave_id' when calling PayrollUkApi.get_employee_leave"
|
2592
2591
|
end
|
2593
2592
|
# resource path
|
2594
|
-
local_var_path = '/Employees/{
|
2593
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
2595
2594
|
|
2596
2595
|
# camelize keys of incoming `where` opts
|
2597
2596
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2637,7 +2636,7 @@ module XeroRuby
|
|
2637
2636
|
return data, status_code, headers
|
2638
2637
|
end
|
2639
2638
|
|
2640
|
-
#
|
2639
|
+
# Retrieves a specific employee's leave balances using a unique employee ID
|
2641
2640
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2642
2641
|
# @param employee_id [String] Employee id for single object
|
2643
2642
|
# @param [Hash] opts the optional parameters
|
@@ -2647,7 +2646,7 @@ module XeroRuby
|
|
2647
2646
|
data
|
2648
2647
|
end
|
2649
2648
|
|
2650
|
-
#
|
2649
|
+
# Retrieves a specific employee's leave balances using a unique employee ID
|
2651
2650
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2652
2651
|
# @param employee_id [String] Employee id for single object
|
2653
2652
|
# @param [Hash] opts the optional parameters
|
@@ -2665,7 +2664,7 @@ module XeroRuby
|
|
2665
2664
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_leave_balances"
|
2666
2665
|
end
|
2667
2666
|
# resource path
|
2668
|
-
local_var_path = '/Employees/{
|
2667
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveBalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2669
2668
|
|
2670
2669
|
# camelize keys of incoming `where` opts
|
2671
2670
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2711,7 +2710,7 @@ module XeroRuby
|
|
2711
2710
|
return data, status_code, headers
|
2712
2711
|
end
|
2713
2712
|
|
2714
|
-
#
|
2713
|
+
# Retrieves a specific employee's leave periods using a unique employee ID
|
2715
2714
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2716
2715
|
# @param employee_id [String] Employee id for single object
|
2717
2716
|
# @param [Hash] opts the optional parameters
|
@@ -2723,7 +2722,7 @@ module XeroRuby
|
|
2723
2722
|
data
|
2724
2723
|
end
|
2725
2724
|
|
2726
|
-
#
|
2725
|
+
# Retrieves a specific employee's leave periods using a unique employee ID
|
2727
2726
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2728
2727
|
# @param employee_id [String] Employee id for single object
|
2729
2728
|
# @param [Hash] opts the optional parameters
|
@@ -2743,7 +2742,7 @@ module XeroRuby
|
|
2743
2742
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_leave_periods"
|
2744
2743
|
end
|
2745
2744
|
# resource path
|
2746
|
-
local_var_path = '/Employees/{
|
2745
|
+
local_var_path = '/Employees/{EmployeeID}/LeavePeriods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2747
2746
|
|
2748
2747
|
# camelize keys of incoming `where` opts
|
2749
2748
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2791,7 +2790,7 @@ module XeroRuby
|
|
2791
2790
|
return data, status_code, headers
|
2792
2791
|
end
|
2793
2792
|
|
2794
|
-
#
|
2793
|
+
# Retrieves a specific employee's leave types using a unique employee ID
|
2795
2794
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2796
2795
|
# @param employee_id [String] Employee id for single object
|
2797
2796
|
# @param [Hash] opts the optional parameters
|
@@ -2801,7 +2800,7 @@ module XeroRuby
|
|
2801
2800
|
data
|
2802
2801
|
end
|
2803
2802
|
|
2804
|
-
#
|
2803
|
+
# Retrieves a specific employee's leave types using a unique employee ID
|
2805
2804
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2806
2805
|
# @param employee_id [String] Employee id for single object
|
2807
2806
|
# @param [Hash] opts the optional parameters
|
@@ -2819,7 +2818,7 @@ module XeroRuby
|
|
2819
2818
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_leave_types"
|
2820
2819
|
end
|
2821
2820
|
# resource path
|
2822
|
-
local_var_path = '/Employees/{
|
2821
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveTypes'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2823
2822
|
|
2824
2823
|
# camelize keys of incoming `where` opts
|
2825
2824
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2865,7 +2864,7 @@ module XeroRuby
|
|
2865
2864
|
return data, status_code, headers
|
2866
2865
|
end
|
2867
2866
|
|
2868
|
-
#
|
2867
|
+
# Retrieves a specific employee's leave records using a unique employee ID
|
2869
2868
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2870
2869
|
# @param employee_id [String] Employee id for single object
|
2871
2870
|
# @param [Hash] opts the optional parameters
|
@@ -2875,7 +2874,7 @@ module XeroRuby
|
|
2875
2874
|
data
|
2876
2875
|
end
|
2877
2876
|
|
2878
|
-
#
|
2877
|
+
# Retrieves a specific employee's leave records using a unique employee ID
|
2879
2878
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2880
2879
|
# @param employee_id [String] Employee id for single object
|
2881
2880
|
# @param [Hash] opts the optional parameters
|
@@ -2893,7 +2892,7 @@ module XeroRuby
|
|
2893
2892
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_leaves"
|
2894
2893
|
end
|
2895
2894
|
# resource path
|
2896
|
-
local_var_path = '/Employees/{
|
2895
|
+
local_var_path = '/Employees/{EmployeeID}/Leave'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2897
2896
|
|
2898
2897
|
# camelize keys of incoming `where` opts
|
2899
2898
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -2939,7 +2938,7 @@ module XeroRuby
|
|
2939
2938
|
return data, status_code, headers
|
2940
2939
|
end
|
2941
2940
|
|
2942
|
-
#
|
2941
|
+
# Retrieves a specific employee's openingbalances using a unique employee ID
|
2943
2942
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2944
2943
|
# @param employee_id [String] Employee id for single object
|
2945
2944
|
# @param [Hash] opts the optional parameters
|
@@ -2949,7 +2948,7 @@ module XeroRuby
|
|
2949
2948
|
data
|
2950
2949
|
end
|
2951
2950
|
|
2952
|
-
#
|
2951
|
+
# Retrieves a specific employee's openingbalances using a unique employee ID
|
2953
2952
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2954
2953
|
# @param employee_id [String] Employee id for single object
|
2955
2954
|
# @param [Hash] opts the optional parameters
|
@@ -2967,7 +2966,7 @@ module XeroRuby
|
|
2967
2966
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_opening_balances"
|
2968
2967
|
end
|
2969
2968
|
# resource path
|
2970
|
-
local_var_path = '/Employees/{
|
2969
|
+
local_var_path = '/Employees/{EmployeeID}/ukopeningbalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
2971
2970
|
|
2972
2971
|
# camelize keys of incoming `where` opts
|
2973
2972
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3013,7 +3012,7 @@ module XeroRuby
|
|
3013
3012
|
return data, status_code, headers
|
3014
3013
|
end
|
3015
3014
|
|
3016
|
-
#
|
3015
|
+
# Retrieves a specific employee pay templates using a unique employee ID
|
3017
3016
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3018
3017
|
# @param employee_id [String] Employee id for single object
|
3019
3018
|
# @param [Hash] opts the optional parameters
|
@@ -3023,7 +3022,7 @@ module XeroRuby
|
|
3023
3022
|
data
|
3024
3023
|
end
|
3025
3024
|
|
3026
|
-
#
|
3025
|
+
# Retrieves a specific employee pay templates using a unique employee ID
|
3027
3026
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3028
3027
|
# @param employee_id [String] Employee id for single object
|
3029
3028
|
# @param [Hash] opts the optional parameters
|
@@ -3041,7 +3040,7 @@ module XeroRuby
|
|
3041
3040
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_pay_template"
|
3042
3041
|
end
|
3043
3042
|
# resource path
|
3044
|
-
local_var_path = '/Employees/{
|
3043
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
3045
3044
|
|
3046
3045
|
# camelize keys of incoming `where` opts
|
3047
3046
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3087,7 +3086,7 @@ module XeroRuby
|
|
3087
3086
|
return data, status_code, headers
|
3088
3087
|
end
|
3089
3088
|
|
3090
|
-
#
|
3089
|
+
# Retrieves a specific employee's payment method using a unique employee ID
|
3091
3090
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3092
3091
|
# @param employee_id [String] Employee id for single object
|
3093
3092
|
# @param [Hash] opts the optional parameters
|
@@ -3097,7 +3096,7 @@ module XeroRuby
|
|
3097
3096
|
data
|
3098
3097
|
end
|
3099
3098
|
|
3100
|
-
#
|
3099
|
+
# Retrieves a specific employee's payment method using a unique employee ID
|
3101
3100
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3102
3101
|
# @param employee_id [String] Employee id for single object
|
3103
3102
|
# @param [Hash] opts the optional parameters
|
@@ -3115,7 +3114,7 @@ module XeroRuby
|
|
3115
3114
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_payment_method"
|
3116
3115
|
end
|
3117
3116
|
# resource path
|
3118
|
-
local_var_path = '/Employees/{
|
3117
|
+
local_var_path = '/Employees/{EmployeeID}/PaymentMethods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
3119
3118
|
|
3120
3119
|
# camelize keys of incoming `where` opts
|
3121
3120
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3161,7 +3160,7 @@ module XeroRuby
|
|
3161
3160
|
return data, status_code, headers
|
3162
3161
|
end
|
3163
3162
|
|
3164
|
-
#
|
3163
|
+
# Retrieves a specific salary and wages record for a specific employee using a unique salary and wage id
|
3165
3164
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3166
3165
|
# @param employee_id [String] Employee id for single object
|
3167
3166
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
@@ -3172,7 +3171,7 @@ module XeroRuby
|
|
3172
3171
|
data
|
3173
3172
|
end
|
3174
3173
|
|
3175
|
-
#
|
3174
|
+
# Retrieves a specific salary and wages record for a specific employee using a unique salary and wage id
|
3176
3175
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3177
3176
|
# @param employee_id [String] Employee id for single object
|
3178
3177
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
@@ -3195,7 +3194,7 @@ module XeroRuby
|
|
3195
3194
|
fail ArgumentError, "Missing the required parameter 'salary_and_wages_id' when calling PayrollUkApi.get_employee_salary_and_wage"
|
3196
3195
|
end
|
3197
3196
|
# resource path
|
3198
|
-
local_var_path = '/Employees/{
|
3197
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'SalaryAndWagesID' + '}', salary_and_wages_id.to_s)
|
3199
3198
|
|
3200
3199
|
# camelize keys of incoming `where` opts
|
3201
3200
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3241,7 +3240,7 @@ module XeroRuby
|
|
3241
3240
|
return data, status_code, headers
|
3242
3241
|
end
|
3243
3242
|
|
3244
|
-
#
|
3243
|
+
# Retrieves a specific employee's salary and wages by using a unique employee ID
|
3245
3244
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3246
3245
|
# @param employee_id [String] Employee id for single object
|
3247
3246
|
# @param [Hash] opts the optional parameters
|
@@ -3252,7 +3251,7 @@ module XeroRuby
|
|
3252
3251
|
data
|
3253
3252
|
end
|
3254
3253
|
|
3255
|
-
#
|
3254
|
+
# Retrieves a specific employee's salary and wages by using a unique employee ID
|
3256
3255
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3257
3256
|
# @param employee_id [String] Employee id for single object
|
3258
3257
|
# @param [Hash] opts the optional parameters
|
@@ -3271,7 +3270,7 @@ module XeroRuby
|
|
3271
3270
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_salary_and_wages"
|
3272
3271
|
end
|
3273
3272
|
# resource path
|
3274
|
-
local_var_path = '/Employees/{
|
3273
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
3275
3274
|
|
3276
3275
|
# camelize keys of incoming `where` opts
|
3277
3276
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3318,7 +3317,7 @@ module XeroRuby
|
|
3318
3317
|
return data, status_code, headers
|
3319
3318
|
end
|
3320
3319
|
|
3321
|
-
#
|
3320
|
+
# Retrieves a specific employee's leave balances using a unique employee ID
|
3322
3321
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3323
3322
|
# @param employee_id [String] Employee id for single object
|
3324
3323
|
# @param [Hash] opts the optional parameters
|
@@ -3330,7 +3329,7 @@ module XeroRuby
|
|
3330
3329
|
data
|
3331
3330
|
end
|
3332
3331
|
|
3333
|
-
#
|
3332
|
+
# Retrieves a specific employee's leave balances using a unique employee ID
|
3334
3333
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3335
3334
|
# @param employee_id [String] Employee id for single object
|
3336
3335
|
# @param [Hash] opts the optional parameters
|
@@ -3350,7 +3349,7 @@ module XeroRuby
|
|
3350
3349
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_statutory_leave_balances"
|
3351
3350
|
end
|
3352
3351
|
# resource path
|
3353
|
-
local_var_path = '/Employees/{
|
3352
|
+
local_var_path = '/Employees/{EmployeeID}/StatutoryLeaveBalance'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
3354
3353
|
|
3355
3354
|
# camelize keys of incoming `where` opts
|
3356
3355
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3398,7 +3397,7 @@ module XeroRuby
|
|
3398
3397
|
return data, status_code, headers
|
3399
3398
|
end
|
3400
3399
|
|
3401
|
-
#
|
3400
|
+
# Retrieves a statutory sick leave for an employee
|
3402
3401
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3403
3402
|
# @param statutory_sick_leave_id [String] Statutory sick leave id for single object
|
3404
3403
|
# @param [Hash] opts the optional parameters
|
@@ -3408,7 +3407,7 @@ module XeroRuby
|
|
3408
3407
|
data
|
3409
3408
|
end
|
3410
3409
|
|
3411
|
-
#
|
3410
|
+
# Retrieves a statutory sick leave for an employee
|
3412
3411
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3413
3412
|
# @param statutory_sick_leave_id [String] Statutory sick leave id for single object
|
3414
3413
|
# @param [Hash] opts the optional parameters
|
@@ -3472,7 +3471,7 @@ module XeroRuby
|
|
3472
3471
|
return data, status_code, headers
|
3473
3472
|
end
|
3474
3473
|
|
3475
|
-
#
|
3474
|
+
# Retrieves tax records for a specific employee using a unique employee ID
|
3476
3475
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3477
3476
|
# @param employee_id [String] Employee id for single object
|
3478
3477
|
# @param [Hash] opts the optional parameters
|
@@ -3482,7 +3481,7 @@ module XeroRuby
|
|
3482
3481
|
data
|
3483
3482
|
end
|
3484
3483
|
|
3485
|
-
#
|
3484
|
+
# Retrieves tax records for a specific employee using a unique employee ID
|
3486
3485
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3487
3486
|
# @param employee_id [String] Employee id for single object
|
3488
3487
|
# @param [Hash] opts the optional parameters
|
@@ -3500,7 +3499,7 @@ module XeroRuby
|
|
3500
3499
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_tax"
|
3501
3500
|
end
|
3502
3501
|
# resource path
|
3503
|
-
local_var_path = '/Employees/{
|
3502
|
+
local_var_path = '/Employees/{EmployeeID}/Tax'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
3504
3503
|
|
3505
3504
|
# camelize keys of incoming `where` opts
|
3506
3505
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -3546,7 +3545,7 @@ module XeroRuby
|
|
3546
3545
|
return data, status_code, headers
|
3547
3546
|
end
|
3548
3547
|
|
3549
|
-
#
|
3548
|
+
# Retrieves employees
|
3550
3549
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3551
3550
|
# @param [Hash] opts the optional parameters
|
3552
3551
|
# @option opts [String] :first_name Filter by first name
|
@@ -3558,7 +3557,7 @@ module XeroRuby
|
|
3558
3557
|
data
|
3559
3558
|
end
|
3560
3559
|
|
3561
|
-
#
|
3560
|
+
# Retrieves employees
|
3562
3561
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3563
3562
|
# @param [Hash] opts the optional parameters
|
3564
3563
|
# @option opts [String] :first_name Filter by first name
|
@@ -3623,7 +3622,7 @@ module XeroRuby
|
|
3623
3622
|
return data, status_code, headers
|
3624
3623
|
end
|
3625
3624
|
|
3626
|
-
#
|
3625
|
+
# Retrieves a specific leave type by using a unique leave type ID
|
3627
3626
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3628
3627
|
# @param leave_type_id [String] Identifier for the leave type
|
3629
3628
|
# @param [Hash] opts the optional parameters
|
@@ -3633,7 +3632,7 @@ module XeroRuby
|
|
3633
3632
|
data
|
3634
3633
|
end
|
3635
3634
|
|
3636
|
-
#
|
3635
|
+
# Retrieves a specific leave type by using a unique leave type ID
|
3637
3636
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3638
3637
|
# @param leave_type_id [String] Identifier for the leave type
|
3639
3638
|
# @param [Hash] opts the optional parameters
|
@@ -3697,7 +3696,7 @@ module XeroRuby
|
|
3697
3696
|
return data, status_code, headers
|
3698
3697
|
end
|
3699
3698
|
|
3700
|
-
#
|
3699
|
+
# Retrieves leave types
|
3701
3700
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3702
3701
|
# @param [Hash] opts the optional parameters
|
3703
3702
|
# @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.
|
@@ -3708,7 +3707,7 @@ module XeroRuby
|
|
3708
3707
|
data
|
3709
3708
|
end
|
3710
3709
|
|
3711
|
-
#
|
3710
|
+
# Retrieves leave types
|
3712
3711
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3713
3712
|
# @param [Hash] opts the optional parameters
|
3714
3713
|
# @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.
|
@@ -3771,7 +3770,7 @@ module XeroRuby
|
|
3771
3770
|
return data, status_code, headers
|
3772
3771
|
end
|
3773
3772
|
|
3774
|
-
#
|
3773
|
+
# Retrieves a specific pay run by using a unique pay run ID
|
3775
3774
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3776
3775
|
# @param pay_run_id [String] Identifier for the pay run
|
3777
3776
|
# @param [Hash] opts the optional parameters
|
@@ -3781,7 +3780,7 @@ module XeroRuby
|
|
3781
3780
|
data
|
3782
3781
|
end
|
3783
3782
|
|
3784
|
-
#
|
3783
|
+
# Retrieves a specific pay run by using a unique pay run ID
|
3785
3784
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3786
3785
|
# @param pay_run_id [String] Identifier for the pay run
|
3787
3786
|
# @param [Hash] opts the optional parameters
|
@@ -3845,7 +3844,7 @@ module XeroRuby
|
|
3845
3844
|
return data, status_code, headers
|
3846
3845
|
end
|
3847
3846
|
|
3848
|
-
#
|
3847
|
+
# Retrieves a specific payrun calendar by using a unique payrun calendar ID
|
3849
3848
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3850
3849
|
# @param pay_run_calendar_id [String] Identifier for the payrun calendars
|
3851
3850
|
# @param [Hash] opts the optional parameters
|
@@ -3855,7 +3854,7 @@ module XeroRuby
|
|
3855
3854
|
data
|
3856
3855
|
end
|
3857
3856
|
|
3858
|
-
#
|
3857
|
+
# Retrieves a specific payrun calendar by using a unique payrun calendar ID
|
3859
3858
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3860
3859
|
# @param pay_run_calendar_id [String] Identifier for the payrun calendars
|
3861
3860
|
# @param [Hash] opts the optional parameters
|
@@ -3919,7 +3918,7 @@ module XeroRuby
|
|
3919
3918
|
return data, status_code, headers
|
3920
3919
|
end
|
3921
3920
|
|
3922
|
-
#
|
3921
|
+
# Retrieves payrun calendars
|
3923
3922
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3924
3923
|
# @param [Hash] opts the optional parameters
|
3925
3924
|
# @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.
|
@@ -3929,7 +3928,7 @@ module XeroRuby
|
|
3929
3928
|
data
|
3930
3929
|
end
|
3931
3930
|
|
3932
|
-
#
|
3931
|
+
# Retrieves payrun calendars
|
3933
3932
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3934
3933
|
# @param [Hash] opts the optional parameters
|
3935
3934
|
# @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.
|
@@ -3990,7 +3989,7 @@ module XeroRuby
|
|
3990
3989
|
return data, status_code, headers
|
3991
3990
|
end
|
3992
3991
|
|
3993
|
-
#
|
3992
|
+
# Retrieves pay runs
|
3994
3993
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
3995
3994
|
# @param [Hash] opts the optional parameters
|
3996
3995
|
# @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.
|
@@ -4001,7 +4000,7 @@ module XeroRuby
|
|
4001
4000
|
data
|
4002
4001
|
end
|
4003
4002
|
|
4004
|
-
#
|
4003
|
+
# Retrieves pay runs
|
4005
4004
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4006
4005
|
# @param [Hash] opts the optional parameters
|
4007
4006
|
# @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.
|
@@ -4068,7 +4067,7 @@ module XeroRuby
|
|
4068
4067
|
return data, status_code, headers
|
4069
4068
|
end
|
4070
4069
|
|
4071
|
-
#
|
4070
|
+
# Retrieves a specific payslip by using a unique payslip ID
|
4072
4071
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4073
4072
|
# @param payslip_id [String] Identifier for the payslip
|
4074
4073
|
# @param [Hash] opts the optional parameters
|
@@ -4078,7 +4077,7 @@ module XeroRuby
|
|
4078
4077
|
data
|
4079
4078
|
end
|
4080
4079
|
|
4081
|
-
#
|
4080
|
+
# Retrieves a specific payslip by using a unique payslip ID
|
4082
4081
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4083
4082
|
# @param payslip_id [String] Identifier for the payslip
|
4084
4083
|
# @param [Hash] opts the optional parameters
|
@@ -4142,7 +4141,7 @@ module XeroRuby
|
|
4142
4141
|
return data, status_code, headers
|
4143
4142
|
end
|
4144
4143
|
|
4145
|
-
#
|
4144
|
+
# Retrieves payslips
|
4146
4145
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4147
4146
|
# @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.
|
4148
4147
|
# @param [Hash] opts the optional parameters
|
@@ -4153,7 +4152,7 @@ module XeroRuby
|
|
4153
4152
|
data
|
4154
4153
|
end
|
4155
4154
|
|
4156
|
-
#
|
4155
|
+
# Retrieves payslips
|
4157
4156
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4158
4157
|
# @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.
|
4159
4158
|
# @param [Hash] opts the optional parameters
|
@@ -4220,7 +4219,7 @@ module XeroRuby
|
|
4220
4219
|
return data, status_code, headers
|
4221
4220
|
end
|
4222
4221
|
|
4223
|
-
#
|
4222
|
+
# Retrieves a specific reimbursement by using a unique reimbursement id
|
4224
4223
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4225
4224
|
# @param reimbursement_id [String] Identifier for the reimbursement
|
4226
4225
|
# @param [Hash] opts the optional parameters
|
@@ -4230,7 +4229,7 @@ module XeroRuby
|
|
4230
4229
|
data
|
4231
4230
|
end
|
4232
4231
|
|
4233
|
-
#
|
4232
|
+
# Retrieves a specific reimbursement by using a unique reimbursement id
|
4234
4233
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4235
4234
|
# @param reimbursement_id [String] Identifier for the reimbursement
|
4236
4235
|
# @param [Hash] opts the optional parameters
|
@@ -4294,7 +4293,7 @@ module XeroRuby
|
|
4294
4293
|
return data, status_code, headers
|
4295
4294
|
end
|
4296
4295
|
|
4297
|
-
#
|
4296
|
+
# Retrieves reimbursements
|
4298
4297
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4299
4298
|
# @param [Hash] opts the optional parameters
|
4300
4299
|
# @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.
|
@@ -4304,7 +4303,7 @@ module XeroRuby
|
|
4304
4303
|
data
|
4305
4304
|
end
|
4306
4305
|
|
4307
|
-
#
|
4306
|
+
# Retrieves reimbursements
|
4308
4307
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4309
4308
|
# @param [Hash] opts the optional parameters
|
4310
4309
|
# @option opts [Integer] :page Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
|
@@ -4365,7 +4364,7 @@ module XeroRuby
|
|
4365
4364
|
return data, status_code, headers
|
4366
4365
|
end
|
4367
4366
|
|
4368
|
-
#
|
4367
|
+
# Retrieves payroll settings
|
4369
4368
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4370
4369
|
# @param [Hash] opts the optional parameters
|
4371
4370
|
# @return [Settings]
|
@@ -4374,7 +4373,7 @@ module XeroRuby
|
|
4374
4373
|
data
|
4375
4374
|
end
|
4376
4375
|
|
4377
|
-
#
|
4376
|
+
# Retrieves payroll settings
|
4378
4377
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4379
4378
|
# @param [Hash] opts the optional parameters
|
4380
4379
|
# @return [Array<(Settings, Integer, Hash)>] Settings data, response status code and response headers
|
@@ -4433,7 +4432,7 @@ module XeroRuby
|
|
4433
4432
|
return data, status_code, headers
|
4434
4433
|
end
|
4435
4434
|
|
4436
|
-
#
|
4435
|
+
# Retrieves a specific employee's summary of statutory leaves using a unique employee ID
|
4437
4436
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4438
4437
|
# @param employee_id [String] Employee id for single object
|
4439
4438
|
# @param [Hash] opts the optional parameters
|
@@ -4444,7 +4443,7 @@ module XeroRuby
|
|
4444
4443
|
data
|
4445
4444
|
end
|
4446
4445
|
|
4447
|
-
#
|
4446
|
+
# Retrieves a specific employee's summary of statutory leaves using a unique employee ID
|
4448
4447
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4449
4448
|
# @param employee_id [String] Employee id for single object
|
4450
4449
|
# @param [Hash] opts the optional parameters
|
@@ -4463,7 +4462,7 @@ module XeroRuby
|
|
4463
4462
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_statutory_leave_summary"
|
4464
4463
|
end
|
4465
4464
|
# resource path
|
4466
|
-
local_var_path = '/
|
4465
|
+
local_var_path = '/StatutoryLeaves/Summary/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
4467
4466
|
|
4468
4467
|
# camelize keys of incoming `where` opts
|
4469
4468
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4510,7 +4509,7 @@ module XeroRuby
|
|
4510
4509
|
return data, status_code, headers
|
4511
4510
|
end
|
4512
4511
|
|
4513
|
-
#
|
4512
|
+
# Retrieve a specific timesheet by using a unique timesheet ID
|
4514
4513
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4515
4514
|
# @param timesheet_id [String] Identifier for the timesheet
|
4516
4515
|
# @param [Hash] opts the optional parameters
|
@@ -4520,7 +4519,7 @@ module XeroRuby
|
|
4520
4519
|
data
|
4521
4520
|
end
|
4522
4521
|
|
4523
|
-
#
|
4522
|
+
# Retrieve a specific timesheet by using a unique timesheet ID
|
4524
4523
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4525
4524
|
# @param timesheet_id [String] Identifier for the timesheet
|
4526
4525
|
# @param [Hash] opts the optional parameters
|
@@ -4584,11 +4583,11 @@ module XeroRuby
|
|
4584
4583
|
return data, status_code, headers
|
4585
4584
|
end
|
4586
4585
|
|
4587
|
-
#
|
4586
|
+
# Retrieves timesheets
|
4588
4587
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4589
4588
|
# @param [Hash] opts the optional parameters
|
4590
4589
|
# @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.
|
4591
|
-
# @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=={
|
4590
|
+
# @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.
|
4592
4591
|
# @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
|
4593
4592
|
# @return [Timesheets]
|
4594
4593
|
def get_timesheets(xero_tenant_id, opts = {})
|
@@ -4596,11 +4595,11 @@ module XeroRuby
|
|
4596
4595
|
data
|
4597
4596
|
end
|
4598
4597
|
|
4599
|
-
#
|
4598
|
+
# Retrieves timesheets
|
4600
4599
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4601
4600
|
# @param [Hash] opts the optional parameters
|
4602
4601
|
# @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.
|
4603
|
-
# @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=={
|
4602
|
+
# @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.
|
4604
4603
|
# @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
|
4605
4604
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
4606
4605
|
def get_timesheets_with_http_info(xero_tenant_id, opts = {})
|
@@ -4661,7 +4660,7 @@ module XeroRuby
|
|
4661
4660
|
return data, status_code, headers
|
4662
4661
|
end
|
4663
4662
|
|
4664
|
-
#
|
4663
|
+
# Retrieves tracking categories
|
4665
4664
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4666
4665
|
# @param [Hash] opts the optional parameters
|
4667
4666
|
# @return [TrackingCategories]
|
@@ -4670,7 +4669,7 @@ module XeroRuby
|
|
4670
4669
|
data
|
4671
4670
|
end
|
4672
4671
|
|
4673
|
-
#
|
4672
|
+
# Retrieves tracking categories
|
4674
4673
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4675
4674
|
# @param [Hash] opts the optional parameters
|
4676
4675
|
# @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
|
@@ -4683,7 +4682,7 @@ module XeroRuby
|
|
4683
4682
|
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollUkApi.get_tracking_categories"
|
4684
4683
|
end
|
4685
4684
|
# resource path
|
4686
|
-
local_var_path = '/
|
4685
|
+
local_var_path = '/Settings/trackingCategories'
|
4687
4686
|
|
4688
4687
|
# camelize keys of incoming `where` opts
|
4689
4688
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4729,7 +4728,7 @@ module XeroRuby
|
|
4729
4728
|
return data, status_code, headers
|
4730
4729
|
end
|
4731
4730
|
|
4732
|
-
#
|
4731
|
+
# Reverts a specific timesheet to draft
|
4733
4732
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4734
4733
|
# @param timesheet_id [String] Identifier for the timesheet
|
4735
4734
|
# @param [Hash] opts the optional parameters
|
@@ -4739,7 +4738,7 @@ module XeroRuby
|
|
4739
4738
|
data
|
4740
4739
|
end
|
4741
4740
|
|
4742
|
-
#
|
4741
|
+
# Reverts a specific timesheet to draft
|
4743
4742
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4744
4743
|
# @param timesheet_id [String] Identifier for the timesheet
|
4745
4744
|
# @param [Hash] opts the optional parameters
|
@@ -4803,7 +4802,7 @@ module XeroRuby
|
|
4803
4802
|
return data, status_code, headers
|
4804
4803
|
end
|
4805
4804
|
|
4806
|
-
#
|
4805
|
+
# Updates a specific employee's detail
|
4807
4806
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4808
4807
|
# @param employee_id [String] Employee id for single object
|
4809
4808
|
# @param employee [Employee]
|
@@ -4814,7 +4813,7 @@ module XeroRuby
|
|
4814
4813
|
data
|
4815
4814
|
end
|
4816
4815
|
|
4817
|
-
#
|
4816
|
+
# Updates a specific employee's detail
|
4818
4817
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4819
4818
|
# @param employee_id [String] Employee id for single object
|
4820
4819
|
# @param employee [Employee]
|
@@ -4837,7 +4836,7 @@ module XeroRuby
|
|
4837
4836
|
fail ArgumentError, "Missing the required parameter 'employee' when calling PayrollUkApi.update_employee"
|
4838
4837
|
end
|
4839
4838
|
# resource path
|
4840
|
-
local_var_path = '/Employees/{
|
4839
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
4841
4840
|
|
4842
4841
|
# camelize keys of incoming `where` opts
|
4843
4842
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4885,7 +4884,7 @@ module XeroRuby
|
|
4885
4884
|
return data, status_code, headers
|
4886
4885
|
end
|
4887
4886
|
|
4888
|
-
#
|
4887
|
+
# Updates a specific employee's earnings template records
|
4889
4888
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4890
4889
|
# @param employee_id [String] Employee id for single object
|
4891
4890
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
@@ -4897,7 +4896,7 @@ module XeroRuby
|
|
4897
4896
|
data
|
4898
4897
|
end
|
4899
4898
|
|
4900
|
-
#
|
4899
|
+
# Updates a specific employee's earnings template records
|
4901
4900
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4902
4901
|
# @param employee_id [String] Employee id for single object
|
4903
4902
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
@@ -4925,7 +4924,7 @@ module XeroRuby
|
|
4925
4924
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollUkApi.update_employee_earnings_template"
|
4926
4925
|
end
|
4927
4926
|
# resource path
|
4928
|
-
local_var_path = '/Employees/{
|
4927
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates/earnings/{PayTemplateEarningID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'PayTemplateEarningID' + '}', pay_template_earning_id.to_s)
|
4929
4928
|
|
4930
4929
|
# camelize keys of incoming `where` opts
|
4931
4930
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -4973,7 +4972,7 @@ module XeroRuby
|
|
4973
4972
|
return data, status_code, headers
|
4974
4973
|
end
|
4975
4974
|
|
4976
|
-
#
|
4975
|
+
# Updates a specific employee's leave records
|
4977
4976
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4978
4977
|
# @param employee_id [String] Employee id for single object
|
4979
4978
|
# @param leave_id [String] Leave id for single object
|
@@ -4985,7 +4984,7 @@ module XeroRuby
|
|
4985
4984
|
data
|
4986
4985
|
end
|
4987
4986
|
|
4988
|
-
#
|
4987
|
+
# Updates a specific employee's leave records
|
4989
4988
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
4990
4989
|
# @param employee_id [String] Employee id for single object
|
4991
4990
|
# @param leave_id [String] Leave id for single object
|
@@ -5013,7 +5012,7 @@ module XeroRuby
|
|
5013
5012
|
fail ArgumentError, "Missing the required parameter 'employee_leave' when calling PayrollUkApi.update_employee_leave"
|
5014
5013
|
end
|
5015
5014
|
# resource path
|
5016
|
-
local_var_path = '/Employees/{
|
5015
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
5017
5016
|
|
5018
5017
|
# camelize keys of incoming `where` opts
|
5019
5018
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -5061,7 +5060,7 @@ module XeroRuby
|
|
5061
5060
|
return data, status_code, headers
|
5062
5061
|
end
|
5063
5062
|
|
5064
|
-
#
|
5063
|
+
# Updates a specific employee's opening balances
|
5065
5064
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5066
5065
|
# @param employee_id [String] Employee id for single object
|
5067
5066
|
# @param employee_opening_balances [EmployeeOpeningBalances]
|
@@ -5072,7 +5071,7 @@ module XeroRuby
|
|
5072
5071
|
data
|
5073
5072
|
end
|
5074
5073
|
|
5075
|
-
#
|
5074
|
+
# Updates a specific employee's opening balances
|
5076
5075
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5077
5076
|
# @param employee_id [String] Employee id for single object
|
5078
5077
|
# @param employee_opening_balances [EmployeeOpeningBalances]
|
@@ -5095,7 +5094,7 @@ module XeroRuby
|
|
5095
5094
|
fail ArgumentError, "Missing the required parameter 'employee_opening_balances' when calling PayrollUkApi.update_employee_opening_balances"
|
5096
5095
|
end
|
5097
5096
|
# resource path
|
5098
|
-
local_var_path = '/Employees/{
|
5097
|
+
local_var_path = '/Employees/{EmployeeID}/ukopeningbalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
5099
5098
|
|
5100
5099
|
# camelize keys of incoming `where` opts
|
5101
5100
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -5143,7 +5142,7 @@ module XeroRuby
|
|
5143
5142
|
return data, status_code, headers
|
5144
5143
|
end
|
5145
5144
|
|
5146
|
-
#
|
5145
|
+
# Updates salary and wages record for a specific employee
|
5147
5146
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5148
5147
|
# @param employee_id [String] Employee id for single object
|
5149
5148
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
@@ -5155,7 +5154,7 @@ module XeroRuby
|
|
5155
5154
|
data
|
5156
5155
|
end
|
5157
5156
|
|
5158
|
-
#
|
5157
|
+
# Updates salary and wages record for a specific employee
|
5159
5158
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5160
5159
|
# @param employee_id [String] Employee id for single object
|
5161
5160
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
@@ -5183,7 +5182,7 @@ module XeroRuby
|
|
5183
5182
|
fail ArgumentError, "Missing the required parameter 'salary_and_wage' when calling PayrollUkApi.update_employee_salary_and_wage"
|
5184
5183
|
end
|
5185
5184
|
# resource path
|
5186
|
-
local_var_path = '/Employees/{
|
5185
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages/{SalaryAndWagesID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'SalaryAndWagesID' + '}', salary_and_wages_id.to_s)
|
5187
5186
|
|
5188
5187
|
# camelize keys of incoming `where` opts
|
5189
5188
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -5231,7 +5230,7 @@ module XeroRuby
|
|
5231
5230
|
return data, status_code, headers
|
5232
5231
|
end
|
5233
5232
|
|
5234
|
-
#
|
5233
|
+
# Updates a specific pay run
|
5235
5234
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5236
5235
|
# @param pay_run_id [String] Identifier for the pay run
|
5237
5236
|
# @param pay_run [PayRun]
|
@@ -5242,7 +5241,7 @@ module XeroRuby
|
|
5242
5241
|
data
|
5243
5242
|
end
|
5244
5243
|
|
5245
|
-
#
|
5244
|
+
# Updates a specific pay run
|
5246
5245
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5247
5246
|
# @param pay_run_id [String] Identifier for the pay run
|
5248
5247
|
# @param pay_run [PayRun]
|
@@ -5313,7 +5312,7 @@ module XeroRuby
|
|
5313
5312
|
return data, status_code, headers
|
5314
5313
|
end
|
5315
5314
|
|
5316
|
-
#
|
5315
|
+
# Updates a specific timesheet line for a specific timesheet
|
5317
5316
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5318
5317
|
# @param timesheet_id [String] Identifier for the timesheet
|
5319
5318
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
@@ -5325,7 +5324,7 @@ module XeroRuby
|
|
5325
5324
|
data
|
5326
5325
|
end
|
5327
5326
|
|
5328
|
-
#
|
5327
|
+
# Updates a specific timesheet line for a specific timesheet
|
5329
5328
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
5330
5329
|
# @param timesheet_id [String] Identifier for the timesheet
|
5331
5330
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|