xero-ruby 2.6.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +28 -9
- data/lib/xero-ruby.rb +4 -2
- data/lib/xero-ruby/api/accounting_api.rb +446 -446
- data/lib/xero-ruby/api/asset_api.rb +3 -7
- data/lib/xero-ruby/api/files_api.rb +49 -55
- data/lib/xero-ruby/api/payroll_au_api.rb +63 -63
- data/lib/xero-ruby/api/payroll_nz_api.rb +171 -171
- data/lib/xero-ruby/api/payroll_uk_api.rb +173 -173
- data/lib/xero-ruby/api/project_api.rb +45 -45
- data/lib/xero-ruby/api_client.rb +25 -89
- data/lib/xero-ruby/api_error.rb +1 -1
- data/lib/xero-ruby/configuration.rb +3 -3
- data/lib/xero-ruby/models/accounting/account.rb +7 -2
- data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts.rb +7 -2
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +7 -2
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +7 -2
- data/lib/xero-ruby/models/accounting/action.rb +7 -2
- data/lib/xero-ruby/models/accounting/actions.rb +7 -2
- data/lib/xero-ruby/models/accounting/address.rb +7 -2
- data/lib/xero-ruby/models/accounting/address_for_organisation.rb +7 -2
- data/lib/xero-ruby/models/accounting/allocation.rb +7 -2
- data/lib/xero-ruby/models/accounting/allocations.rb +7 -2
- data/lib/xero-ruby/models/accounting/attachment.rb +7 -2
- data/lib/xero-ruby/models/accounting/attachments.rb +7 -2
- data/lib/xero-ruby/models/accounting/balance_details.rb +7 -2
- data/lib/xero-ruby/models/accounting/balances.rb +7 -2
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +7 -2
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +7 -2
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +7 -2
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +7 -2
- data/lib/xero-ruby/models/accounting/batch_payment.rb +7 -2
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +7 -2
- data/lib/xero-ruby/models/accounting/batch_payments.rb +7 -2
- data/lib/xero-ruby/models/accounting/bill.rb +7 -2
- data/lib/xero-ruby/models/accounting/branding_theme.rb +7 -2
- data/lib/xero-ruby/models/accounting/branding_themes.rb +7 -2
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +7 -2
- data/lib/xero-ruby/models/{files/file_response204.rb → accounting/cis_org_settings.rb} +22 -15
- data/lib/xero-ruby/models/accounting/cis_setting.rb +7 -2
- data/lib/xero-ruby/models/accounting/cis_settings.rb +7 -2
- data/lib/xero-ruby/models/accounting/contact.rb +7 -2
- data/lib/xero-ruby/models/accounting/contact_group.rb +7 -2
- data/lib/xero-ruby/models/accounting/contact_groups.rb +7 -2
- data/lib/xero-ruby/models/accounting/contact_person.rb +7 -2
- data/lib/xero-ruby/models/accounting/contacts.rb +7 -2
- data/lib/xero-ruby/models/accounting/conversion_balances.rb +7 -2
- data/lib/xero-ruby/models/accounting/conversion_date.rb +7 -2
- data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
- data/lib/xero-ruby/models/accounting/credit_note.rb +24 -7
- data/lib/xero-ruby/models/accounting/credit_notes.rb +7 -2
- data/lib/xero-ruby/models/accounting/currencies.rb +7 -2
- data/lib/xero-ruby/models/accounting/currency.rb +7 -2
- data/lib/xero-ruby/models/accounting/currency_code.rb +1 -1
- data/lib/xero-ruby/models/accounting/element.rb +7 -2
- data/lib/xero-ruby/models/accounting/employee.rb +7 -2
- data/lib/xero-ruby/models/accounting/employees.rb +7 -2
- data/lib/xero-ruby/models/accounting/error.rb +7 -2
- data/lib/xero-ruby/models/accounting/expense_claim.rb +7 -2
- data/lib/xero-ruby/models/accounting/expense_claims.rb +7 -2
- data/lib/xero-ruby/models/accounting/external_link.rb +7 -2
- data/lib/xero-ruby/models/accounting/history_record.rb +7 -2
- data/lib/xero-ruby/models/accounting/history_records.rb +7 -2
- data/lib/xero-ruby/models/accounting/import_summary.rb +7 -2
- data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +7 -2
- data/lib/xero-ruby/models/accounting/import_summary_object.rb +7 -2
- data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +7 -2
- data/lib/xero-ruby/models/accounting/invoice.rb +7 -2
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +7 -2
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +7 -2
- data/lib/xero-ruby/models/accounting/invoices.rb +7 -2
- data/lib/xero-ruby/models/accounting/item.rb +7 -2
- data/lib/xero-ruby/models/accounting/items.rb +7 -2
- data/lib/xero-ruby/models/accounting/journal.rb +7 -2
- data/lib/xero-ruby/models/accounting/journal_line.rb +7 -2
- data/lib/xero-ruby/models/accounting/journals.rb +7 -2
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_item.rb +7 -2
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +7 -2
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +7 -2
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +7 -2
- data/lib/xero-ruby/models/accounting/manual_journal.rb +7 -2
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +7 -2
- data/lib/xero-ruby/models/accounting/manual_journals.rb +7 -2
- data/lib/xero-ruby/models/accounting/online_invoice.rb +7 -2
- data/lib/xero-ruby/models/accounting/online_invoices.rb +7 -2
- data/lib/xero-ruby/models/accounting/organisation.rb +7 -2
- data/lib/xero-ruby/models/accounting/organisations.rb +7 -2
- data/lib/xero-ruby/models/accounting/overpayment.rb +7 -2
- data/lib/xero-ruby/models/accounting/overpayments.rb +7 -2
- data/lib/xero-ruby/models/accounting/payment.rb +18 -3
- data/lib/xero-ruby/models/accounting/payment_delete.rb +7 -2
- data/lib/xero-ruby/models/accounting/payment_service.rb +7 -2
- data/lib/xero-ruby/models/accounting/payment_services.rb +7 -2
- data/lib/xero-ruby/models/accounting/payment_term.rb +7 -2
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/payments.rb +7 -2
- data/lib/xero-ruby/models/accounting/phone.rb +7 -2
- data/lib/xero-ruby/models/accounting/prepayment.rb +7 -2
- data/lib/xero-ruby/models/accounting/prepayments.rb +7 -2
- data/lib/xero-ruby/models/accounting/purchase.rb +7 -2
- data/lib/xero-ruby/models/accounting/purchase_order.rb +7 -2
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +7 -2
- data/lib/xero-ruby/models/accounting/quote.rb +7 -2
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
- data/lib/xero-ruby/models/accounting/quotes.rb +7 -2
- data/lib/xero-ruby/models/accounting/receipt.rb +7 -2
- data/lib/xero-ruby/models/accounting/receipts.rb +7 -2
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +7 -2
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +7 -2
- data/lib/xero-ruby/models/accounting/report.rb +7 -2
- data/lib/xero-ruby/models/accounting/report_attribute.rb +7 -2
- data/lib/xero-ruby/models/accounting/report_cell.rb +7 -2
- data/lib/xero-ruby/models/accounting/report_fields.rb +7 -2
- data/lib/xero-ruby/models/accounting/report_row.rb +7 -2
- data/lib/xero-ruby/models/accounting/report_rows.rb +7 -2
- data/lib/xero-ruby/models/accounting/report_with_row.rb +7 -2
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +7 -2
- data/lib/xero-ruby/models/accounting/reports.rb +7 -2
- data/lib/xero-ruby/models/accounting/request_empty.rb +7 -2
- data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +7 -2
- data/lib/xero-ruby/models/accounting/schedule.rb +7 -2
- data/lib/xero-ruby/models/accounting/setup.rb +7 -2
- data/lib/xero-ruby/models/accounting/tax_component.rb +7 -2
- data/lib/xero-ruby/models/accounting/tax_rate.rb +7 -2
- data/lib/xero-ruby/models/accounting/tax_rates.rb +7 -2
- data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +7 -2
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +7 -2
- data/lib/xero-ruby/models/accounting/tracking_category.rb +7 -2
- data/lib/xero-ruby/models/accounting/tracking_option.rb +7 -2
- data/lib/xero-ruby/models/accounting/tracking_options.rb +7 -2
- data/lib/xero-ruby/models/accounting/user.rb +7 -2
- data/lib/xero-ruby/models/accounting/users.rb +7 -2
- data/lib/xero-ruby/models/accounting/validation_error.rb +7 -2
- data/lib/xero-ruby/models/assets/asset.rb +7 -2
- data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_type.rb +7 -2
- data/lib/xero-ruby/models/assets/assets.rb +7 -2
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +7 -2
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +7 -2
- data/lib/xero-ruby/models/assets/error.rb +7 -2
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +8 -3
- data/lib/xero-ruby/models/assets/pagination.rb +7 -2
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +8 -3
- data/lib/xero-ruby/models/assets/setting.rb +7 -2
- data/lib/xero-ruby/models/files/association.rb +7 -2
- data/lib/xero-ruby/models/files/file_object.rb +7 -2
- data/lib/xero-ruby/models/files/files.rb +7 -2
- data/lib/xero-ruby/models/files/folder.rb +7 -2
- data/lib/xero-ruby/models/files/folders.rb +7 -2
- data/lib/xero-ruby/models/files/inline_object.rb +7 -2
- data/lib/xero-ruby/models/files/object_group.rb +1 -1
- data/lib/xero-ruby/models/files/object_type.rb +1 -1
- data/lib/xero-ruby/models/files/user.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/account.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/account_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/api_exception.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/bank_account.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/calendar_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employee.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/employee_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employees.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/home_address.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_applications.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_balance.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_lines.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_period.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/pay_item.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/pay_items.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/pay_run.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/pay_runs.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/pay_template.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/payslip.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/payslip_object.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/payslips.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/rate_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/residency_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/settings.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/settings_object.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/state.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_fund.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/super_funds.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/super_line.rb +8 -3
- data/lib/xero-ruby/models/payroll_au/super_membership.rb +8 -3
- data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/tax_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheet.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +1 -1
- data/lib/xero-ruby/models/payroll_au/timesheets.rb +7 -2
- data/lib/xero-ruby/models/payroll_au/validation_error.rb +7 -2
- data/lib/xero-ruby/models/payroll_nz/account.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/accounts.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/address.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/bank_account.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/benefit.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/deduction.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/deductions.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +7 -2
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employees.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employment.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/employment_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/leave_types.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pagination.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_run.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/payment_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/payment_method.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/problem.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/settings.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/superannuations.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/tax_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +7 -2
- data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +7 -2
- data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/timesheets.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +6 -1
- data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/account.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/accounts.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/address.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/bank_account.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/benefit.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/benefits.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/deduction.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/deductions.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +15 -3
- data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +7 -2
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employees.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employment.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/employment_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/leave_period.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/leave_type.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/leave_types.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/pagination.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/payment_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/payment_method.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/payslip.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/payslips.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/problem.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/settings.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/tax_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +7 -2
- data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/timesheets.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +6 -1
- data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +6 -1
- data/lib/xero-ruby/models/projects/amount.rb +6 -1
- data/lib/xero-ruby/models/projects/error.rb +6 -1
- data/lib/xero-ruby/models/projects/pagination.rb +6 -1
- data/lib/xero-ruby/models/projects/project.rb +6 -1
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +6 -1
- data/lib/xero-ruby/models/projects/project_patch.rb +6 -1
- data/lib/xero-ruby/models/projects/project_user.rb +6 -1
- data/lib/xero-ruby/models/projects/project_users.rb +6 -1
- data/lib/xero-ruby/models/projects/projects.rb +6 -1
- data/lib/xero-ruby/models/projects/task.rb +6 -1
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +6 -1
- data/lib/xero-ruby/models/projects/tasks.rb +6 -1
- data/lib/xero-ruby/models/projects/time_entries.rb +6 -1
- data/lib/xero-ruby/models/projects/time_entry.rb +6 -1
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +6 -1
- data/lib/xero-ruby/string_serialization.rb +52 -0
- data/lib/xero-ruby/version.rb +3 -3
- data/lib/xero-ruby/where.rb +65 -0
- data/spec/configuration_spec.rb +1 -1
- data/spec/helper_methods_spec.rb +16 -4
- data/spec/where_spec.rb +82 -0
- metadata +8 -6
- data/spec/files/models/file_response204_spec.rb +0 -41
|
@@ -16,7 +16,7 @@ module XeroRuby
|
|
|
16
16
|
def initialize(api_client = ApiClient.new)
|
|
17
17
|
@api_client = api_client
|
|
18
18
|
end
|
|
19
|
-
#
|
|
19
|
+
# Approves a specific timesheet
|
|
20
20
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
21
21
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
22
22
|
# @param [Hash] opts the optional parameters
|
|
@@ -26,7 +26,7 @@ module XeroRuby
|
|
|
26
26
|
data
|
|
27
27
|
end
|
|
28
28
|
|
|
29
|
-
#
|
|
29
|
+
# Approves a specific timesheet
|
|
30
30
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
31
31
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
32
32
|
# @param [Hash] opts the optional parameters
|
|
@@ -90,7 +90,7 @@ module XeroRuby
|
|
|
90
90
|
return data, status_code, headers
|
|
91
91
|
end
|
|
92
92
|
|
|
93
|
-
#
|
|
93
|
+
# Creates a new employee benefit
|
|
94
94
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
95
95
|
# @param benefit [Benefit]
|
|
96
96
|
# @param [Hash] opts the optional parameters
|
|
@@ -100,7 +100,7 @@ module XeroRuby
|
|
|
100
100
|
data
|
|
101
101
|
end
|
|
102
102
|
|
|
103
|
-
#
|
|
103
|
+
# Creates a new employee benefit
|
|
104
104
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
105
105
|
# @param benefit [Benefit]
|
|
106
106
|
# @param [Hash] opts the optional parameters
|
|
@@ -166,7 +166,7 @@ module XeroRuby
|
|
|
166
166
|
return data, status_code, headers
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
-
#
|
|
169
|
+
# Creates a new deduction
|
|
170
170
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
171
171
|
# @param deduction [Deduction]
|
|
172
172
|
# @param [Hash] opts the optional parameters
|
|
@@ -176,7 +176,7 @@ module XeroRuby
|
|
|
176
176
|
data
|
|
177
177
|
end
|
|
178
178
|
|
|
179
|
-
#
|
|
179
|
+
# Creates a new deduction
|
|
180
180
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
181
181
|
# @param deduction [Deduction]
|
|
182
182
|
# @param [Hash] opts the optional parameters
|
|
@@ -242,7 +242,7 @@ module XeroRuby
|
|
|
242
242
|
return data, status_code, headers
|
|
243
243
|
end
|
|
244
244
|
|
|
245
|
-
#
|
|
245
|
+
# Creates a new earnings rate
|
|
246
246
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
247
247
|
# @param earnings_rate [EarningsRate]
|
|
248
248
|
# @param [Hash] opts the optional parameters
|
|
@@ -252,7 +252,7 @@ module XeroRuby
|
|
|
252
252
|
data
|
|
253
253
|
end
|
|
254
254
|
|
|
255
|
-
#
|
|
255
|
+
# Creates a new earnings rate
|
|
256
256
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
257
257
|
# @param earnings_rate [EarningsRate]
|
|
258
258
|
# @param [Hash] opts the optional parameters
|
|
@@ -318,7 +318,7 @@ module XeroRuby
|
|
|
318
318
|
return data, status_code, headers
|
|
319
319
|
end
|
|
320
320
|
|
|
321
|
-
#
|
|
321
|
+
# Creates employees
|
|
322
322
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
323
323
|
# @param employee [Employee]
|
|
324
324
|
# @param [Hash] opts the optional parameters
|
|
@@ -328,7 +328,7 @@ module XeroRuby
|
|
|
328
328
|
data
|
|
329
329
|
end
|
|
330
330
|
|
|
331
|
-
#
|
|
331
|
+
# Creates employees
|
|
332
332
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
333
333
|
# @param employee [Employee]
|
|
334
334
|
# @param [Hash] opts the optional parameters
|
|
@@ -394,7 +394,7 @@ module XeroRuby
|
|
|
394
394
|
return data, status_code, headers
|
|
395
395
|
end
|
|
396
396
|
|
|
397
|
-
#
|
|
397
|
+
# Creates an earnings template records for a specific employee
|
|
398
398
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
399
399
|
# @param employee_id [String] Employee id for single object
|
|
400
400
|
# @param earnings_template [EarningsTemplate]
|
|
@@ -405,7 +405,7 @@ module XeroRuby
|
|
|
405
405
|
data
|
|
406
406
|
end
|
|
407
407
|
|
|
408
|
-
#
|
|
408
|
+
# Creates an earnings template records for a specific employee
|
|
409
409
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
410
410
|
# @param employee_id [String] Employee id for single object
|
|
411
411
|
# @param earnings_template [EarningsTemplate]
|
|
@@ -428,7 +428,7 @@ module XeroRuby
|
|
|
428
428
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollUkApi.create_employee_earnings_template"
|
|
429
429
|
end
|
|
430
430
|
# resource path
|
|
431
|
-
local_var_path = '/Employees/{
|
|
431
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates/earnings'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
432
432
|
|
|
433
433
|
# camelize keys of incoming `where` opts
|
|
434
434
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -476,7 +476,7 @@ module XeroRuby
|
|
|
476
476
|
return data, status_code, headers
|
|
477
477
|
end
|
|
478
478
|
|
|
479
|
-
#
|
|
479
|
+
# Creates leave records for a specific employee
|
|
480
480
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
481
481
|
# @param employee_id [String] Employee id for single object
|
|
482
482
|
# @param employee_leave [EmployeeLeave]
|
|
@@ -487,7 +487,7 @@ module XeroRuby
|
|
|
487
487
|
data
|
|
488
488
|
end
|
|
489
489
|
|
|
490
|
-
#
|
|
490
|
+
# Creates leave records for a specific employee
|
|
491
491
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
492
492
|
# @param employee_id [String] Employee id for single object
|
|
493
493
|
# @param employee_leave [EmployeeLeave]
|
|
@@ -510,7 +510,7 @@ module XeroRuby
|
|
|
510
510
|
fail ArgumentError, "Missing the required parameter 'employee_leave' when calling PayrollUkApi.create_employee_leave"
|
|
511
511
|
end
|
|
512
512
|
# resource path
|
|
513
|
-
local_var_path = '/Employees/{
|
|
513
|
+
local_var_path = '/Employees/{EmployeeID}/Leave'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
514
514
|
|
|
515
515
|
# camelize keys of incoming `where` opts
|
|
516
516
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -558,7 +558,7 @@ module XeroRuby
|
|
|
558
558
|
return data, status_code, headers
|
|
559
559
|
end
|
|
560
560
|
|
|
561
|
-
#
|
|
561
|
+
# Creates employee leave type records
|
|
562
562
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
563
563
|
# @param employee_id [String] Employee id for single object
|
|
564
564
|
# @param employee_leave_type [EmployeeLeaveType]
|
|
@@ -569,7 +569,7 @@ module XeroRuby
|
|
|
569
569
|
data
|
|
570
570
|
end
|
|
571
571
|
|
|
572
|
-
#
|
|
572
|
+
# Creates employee leave type records
|
|
573
573
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
574
574
|
# @param employee_id [String] Employee id for single object
|
|
575
575
|
# @param employee_leave_type [EmployeeLeaveType]
|
|
@@ -592,7 +592,7 @@ module XeroRuby
|
|
|
592
592
|
fail ArgumentError, "Missing the required parameter 'employee_leave_type' when calling PayrollUkApi.create_employee_leave_type"
|
|
593
593
|
end
|
|
594
594
|
# resource path
|
|
595
|
-
local_var_path = '/Employees/{
|
|
595
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveTypes'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
596
596
|
|
|
597
597
|
# camelize keys of incoming `where` opts
|
|
598
598
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -640,7 +640,7 @@ module XeroRuby
|
|
|
640
640
|
return data, status_code, headers
|
|
641
641
|
end
|
|
642
642
|
|
|
643
|
-
#
|
|
643
|
+
# Creates an opening balance for a specific employee
|
|
644
644
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
645
645
|
# @param employee_id [String] Employee id for single object
|
|
646
646
|
# @param employee_opening_balances [EmployeeOpeningBalances]
|
|
@@ -651,7 +651,7 @@ module XeroRuby
|
|
|
651
651
|
data
|
|
652
652
|
end
|
|
653
653
|
|
|
654
|
-
#
|
|
654
|
+
# Creates an opening balance for a specific employee
|
|
655
655
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
656
656
|
# @param employee_id [String] Employee id for single object
|
|
657
657
|
# @param employee_opening_balances [EmployeeOpeningBalances]
|
|
@@ -674,7 +674,7 @@ module XeroRuby
|
|
|
674
674
|
fail ArgumentError, "Missing the required parameter 'employee_opening_balances' when calling PayrollUkApi.create_employee_opening_balances"
|
|
675
675
|
end
|
|
676
676
|
# resource path
|
|
677
|
-
local_var_path = '/Employees/{
|
|
677
|
+
local_var_path = '/Employees/{EmployeeID}/ukopeningbalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
678
678
|
|
|
679
679
|
# camelize keys of incoming `where` opts
|
|
680
680
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -722,7 +722,7 @@ module XeroRuby
|
|
|
722
722
|
return data, status_code, headers
|
|
723
723
|
end
|
|
724
724
|
|
|
725
|
-
#
|
|
725
|
+
# Creates an employee payment method
|
|
726
726
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
727
727
|
# @param employee_id [String] Employee id for single object
|
|
728
728
|
# @param payment_method [PaymentMethod]
|
|
@@ -733,7 +733,7 @@ module XeroRuby
|
|
|
733
733
|
data
|
|
734
734
|
end
|
|
735
735
|
|
|
736
|
-
#
|
|
736
|
+
# Creates an employee payment method
|
|
737
737
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
738
738
|
# @param employee_id [String] Employee id for single object
|
|
739
739
|
# @param payment_method [PaymentMethod]
|
|
@@ -756,7 +756,7 @@ module XeroRuby
|
|
|
756
756
|
fail ArgumentError, "Missing the required parameter 'payment_method' when calling PayrollUkApi.create_employee_payment_method"
|
|
757
757
|
end
|
|
758
758
|
# resource path
|
|
759
|
-
local_var_path = '/Employees/{
|
|
759
|
+
local_var_path = '/Employees/{EmployeeID}/PaymentMethods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
760
760
|
|
|
761
761
|
# camelize keys of incoming `where` opts
|
|
762
762
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -804,7 +804,7 @@ module XeroRuby
|
|
|
804
804
|
return data, status_code, headers
|
|
805
805
|
end
|
|
806
806
|
|
|
807
|
-
#
|
|
807
|
+
# Creates a salary and wage record for a specific employee
|
|
808
808
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
809
809
|
# @param employee_id [String] Employee id for single object
|
|
810
810
|
# @param salary_and_wage [SalaryAndWage]
|
|
@@ -815,7 +815,7 @@ module XeroRuby
|
|
|
815
815
|
data
|
|
816
816
|
end
|
|
817
817
|
|
|
818
|
-
#
|
|
818
|
+
# Creates a salary and wage record for a specific employee
|
|
819
819
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
820
820
|
# @param employee_id [String] Employee id for single object
|
|
821
821
|
# @param salary_and_wage [SalaryAndWage]
|
|
@@ -838,7 +838,7 @@ module XeroRuby
|
|
|
838
838
|
fail ArgumentError, "Missing the required parameter 'salary_and_wage' when calling PayrollUkApi.create_employee_salary_and_wage"
|
|
839
839
|
end
|
|
840
840
|
# resource path
|
|
841
|
-
local_var_path = '/Employees/{
|
|
841
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
842
842
|
|
|
843
843
|
# camelize keys of incoming `where` opts
|
|
844
844
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -886,7 +886,7 @@ module XeroRuby
|
|
|
886
886
|
return data, status_code, headers
|
|
887
887
|
end
|
|
888
888
|
|
|
889
|
-
#
|
|
889
|
+
# Creates statutory sick leave records
|
|
890
890
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
891
891
|
# @param employee_statutory_sick_leave [EmployeeStatutorySickLeave]
|
|
892
892
|
# @param [Hash] opts the optional parameters
|
|
@@ -896,7 +896,7 @@ module XeroRuby
|
|
|
896
896
|
data
|
|
897
897
|
end
|
|
898
898
|
|
|
899
|
-
#
|
|
899
|
+
# Creates statutory sick leave records
|
|
900
900
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
901
901
|
# @param employee_statutory_sick_leave [EmployeeStatutorySickLeave]
|
|
902
902
|
# @param [Hash] opts the optional parameters
|
|
@@ -962,7 +962,7 @@ module XeroRuby
|
|
|
962
962
|
return data, status_code, headers
|
|
963
963
|
end
|
|
964
964
|
|
|
965
|
-
#
|
|
965
|
+
# Creates employment detail for a specific employee using a unique employee ID
|
|
966
966
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
967
967
|
# @param employee_id [String] Employee id for single object
|
|
968
968
|
# @param employment [Employment]
|
|
@@ -973,7 +973,7 @@ module XeroRuby
|
|
|
973
973
|
data
|
|
974
974
|
end
|
|
975
975
|
|
|
976
|
-
#
|
|
976
|
+
# Creates employment detail for a specific employee using a unique employee ID
|
|
977
977
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
978
978
|
# @param employee_id [String] Employee id for single object
|
|
979
979
|
# @param employment [Employment]
|
|
@@ -996,7 +996,7 @@ module XeroRuby
|
|
|
996
996
|
fail ArgumentError, "Missing the required parameter 'employment' when calling PayrollUkApi.create_employment"
|
|
997
997
|
end
|
|
998
998
|
# resource path
|
|
999
|
-
local_var_path = '/Employees/{
|
|
999
|
+
local_var_path = '/Employees/{EmployeeID}/Employment'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
1000
1000
|
|
|
1001
1001
|
# camelize keys of incoming `where` opts
|
|
1002
1002
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1044,7 +1044,7 @@ module XeroRuby
|
|
|
1044
1044
|
return data, status_code, headers
|
|
1045
1045
|
end
|
|
1046
1046
|
|
|
1047
|
-
#
|
|
1047
|
+
# Creates a new leave type
|
|
1048
1048
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1049
1049
|
# @param leave_type [LeaveType]
|
|
1050
1050
|
# @param [Hash] opts the optional parameters
|
|
@@ -1054,7 +1054,7 @@ module XeroRuby
|
|
|
1054
1054
|
data
|
|
1055
1055
|
end
|
|
1056
1056
|
|
|
1057
|
-
#
|
|
1057
|
+
# Creates a new leave type
|
|
1058
1058
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1059
1059
|
# @param leave_type [LeaveType]
|
|
1060
1060
|
# @param [Hash] opts the optional parameters
|
|
@@ -1120,7 +1120,7 @@ module XeroRuby
|
|
|
1120
1120
|
return data, status_code, headers
|
|
1121
1121
|
end
|
|
1122
1122
|
|
|
1123
|
-
#
|
|
1123
|
+
# Creates multiple earnings template records for a specific employee using a unique employee ID
|
|
1124
1124
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1125
1125
|
# @param employee_id [String] Employee id for single object
|
|
1126
1126
|
# @param earnings_template [Array<EarningsTemplate>]
|
|
@@ -1131,7 +1131,7 @@ module XeroRuby
|
|
|
1131
1131
|
data
|
|
1132
1132
|
end
|
|
1133
1133
|
|
|
1134
|
-
#
|
|
1134
|
+
# Creates multiple earnings template records for a specific employee using a unique employee ID
|
|
1135
1135
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1136
1136
|
# @param employee_id [String] Employee id for single object
|
|
1137
1137
|
# @param earnings_template [Array<EarningsTemplate>]
|
|
@@ -1154,7 +1154,7 @@ module XeroRuby
|
|
|
1154
1154
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollUkApi.create_multiple_employee_earnings_template"
|
|
1155
1155
|
end
|
|
1156
1156
|
# resource path
|
|
1157
|
-
local_var_path = '/Employees/{
|
|
1157
|
+
local_var_path = '/Employees/{EmployeeID}/paytemplateearnings'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
1158
1158
|
|
|
1159
1159
|
# camelize keys of incoming `where` opts
|
|
1160
1160
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1202,7 +1202,7 @@ module XeroRuby
|
|
|
1202
1202
|
return data, status_code, headers
|
|
1203
1203
|
end
|
|
1204
1204
|
|
|
1205
|
-
#
|
|
1205
|
+
# Creates a new payrun calendar
|
|
1206
1206
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1207
1207
|
# @param pay_run_calendar [PayRunCalendar]
|
|
1208
1208
|
# @param [Hash] opts the optional parameters
|
|
@@ -1212,7 +1212,7 @@ module XeroRuby
|
|
|
1212
1212
|
data
|
|
1213
1213
|
end
|
|
1214
1214
|
|
|
1215
|
-
#
|
|
1215
|
+
# Creates a new payrun calendar
|
|
1216
1216
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1217
1217
|
# @param pay_run_calendar [PayRunCalendar]
|
|
1218
1218
|
# @param [Hash] opts the optional parameters
|
|
@@ -1278,7 +1278,7 @@ module XeroRuby
|
|
|
1278
1278
|
return data, status_code, headers
|
|
1279
1279
|
end
|
|
1280
1280
|
|
|
1281
|
-
#
|
|
1281
|
+
# Creates a new reimbursement
|
|
1282
1282
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1283
1283
|
# @param reimbursement [Reimbursement]
|
|
1284
1284
|
# @param [Hash] opts the optional parameters
|
|
@@ -1288,7 +1288,7 @@ module XeroRuby
|
|
|
1288
1288
|
data
|
|
1289
1289
|
end
|
|
1290
1290
|
|
|
1291
|
-
#
|
|
1291
|
+
# Creates a new reimbursement
|
|
1292
1292
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1293
1293
|
# @param reimbursement [Reimbursement]
|
|
1294
1294
|
# @param [Hash] opts the optional parameters
|
|
@@ -1354,7 +1354,7 @@ module XeroRuby
|
|
|
1354
1354
|
return data, status_code, headers
|
|
1355
1355
|
end
|
|
1356
1356
|
|
|
1357
|
-
#
|
|
1357
|
+
# Creates a new timesheet
|
|
1358
1358
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1359
1359
|
# @param timesheet [Timesheet]
|
|
1360
1360
|
# @param [Hash] opts the optional parameters
|
|
@@ -1364,7 +1364,7 @@ module XeroRuby
|
|
|
1364
1364
|
data
|
|
1365
1365
|
end
|
|
1366
1366
|
|
|
1367
|
-
#
|
|
1367
|
+
# Creates a new timesheet
|
|
1368
1368
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1369
1369
|
# @param timesheet [Timesheet]
|
|
1370
1370
|
# @param [Hash] opts the optional parameters
|
|
@@ -1430,7 +1430,7 @@ module XeroRuby
|
|
|
1430
1430
|
return data, status_code, headers
|
|
1431
1431
|
end
|
|
1432
1432
|
|
|
1433
|
-
#
|
|
1433
|
+
# Creates a new timesheet line for a specific timesheet using a unique timesheet ID
|
|
1434
1434
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1435
1435
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1436
1436
|
# @param timesheet_line [TimesheetLine]
|
|
@@ -1441,7 +1441,7 @@ module XeroRuby
|
|
|
1441
1441
|
data
|
|
1442
1442
|
end
|
|
1443
1443
|
|
|
1444
|
-
#
|
|
1444
|
+
# Creates a new timesheet line for a specific timesheet using a unique timesheet ID
|
|
1445
1445
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1446
1446
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1447
1447
|
# @param timesheet_line [TimesheetLine]
|
|
@@ -1512,7 +1512,7 @@ module XeroRuby
|
|
|
1512
1512
|
return data, status_code, headers
|
|
1513
1513
|
end
|
|
1514
1514
|
|
|
1515
|
-
#
|
|
1515
|
+
# Deletes a specific employee's earnings template record
|
|
1516
1516
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1517
1517
|
# @param employee_id [String] Employee id for single object
|
|
1518
1518
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
|
@@ -1523,7 +1523,7 @@ module XeroRuby
|
|
|
1523
1523
|
nil
|
|
1524
1524
|
end
|
|
1525
1525
|
|
|
1526
|
-
#
|
|
1526
|
+
# Deletes a specific employee's earnings template record
|
|
1527
1527
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1528
1528
|
# @param employee_id [String] Employee id for single object
|
|
1529
1529
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
|
@@ -1546,7 +1546,7 @@ module XeroRuby
|
|
|
1546
1546
|
fail ArgumentError, "Missing the required parameter 'pay_template_earning_id' when calling PayrollUkApi.delete_employee_earnings_template"
|
|
1547
1547
|
end
|
|
1548
1548
|
# resource path
|
|
1549
|
-
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)
|
|
1550
1550
|
|
|
1551
1551
|
# camelize keys of incoming `where` opts
|
|
1552
1552
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1590,7 +1590,7 @@ module XeroRuby
|
|
|
1590
1590
|
return data, status_code, headers
|
|
1591
1591
|
end
|
|
1592
1592
|
|
|
1593
|
-
#
|
|
1593
|
+
# Deletes a specific employee's leave record
|
|
1594
1594
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1595
1595
|
# @param employee_id [String] Employee id for single object
|
|
1596
1596
|
# @param leave_id [String] Leave id for single object
|
|
@@ -1601,7 +1601,7 @@ module XeroRuby
|
|
|
1601
1601
|
data
|
|
1602
1602
|
end
|
|
1603
1603
|
|
|
1604
|
-
#
|
|
1604
|
+
# Deletes a specific employee's leave record
|
|
1605
1605
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1606
1606
|
# @param employee_id [String] Employee id for single object
|
|
1607
1607
|
# @param leave_id [String] Leave id for single object
|
|
@@ -1624,7 +1624,7 @@ module XeroRuby
|
|
|
1624
1624
|
fail ArgumentError, "Missing the required parameter 'leave_id' when calling PayrollUkApi.delete_employee_leave"
|
|
1625
1625
|
end
|
|
1626
1626
|
# resource path
|
|
1627
|
-
local_var_path = '/Employees/{
|
|
1627
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
|
1628
1628
|
|
|
1629
1629
|
# camelize keys of incoming `where` opts
|
|
1630
1630
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1670,7 +1670,7 @@ module XeroRuby
|
|
|
1670
1670
|
return data, status_code, headers
|
|
1671
1671
|
end
|
|
1672
1672
|
|
|
1673
|
-
#
|
|
1673
|
+
# Deletes a salary and wages record for a specific employee
|
|
1674
1674
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1675
1675
|
# @param employee_id [String] Employee id for single object
|
|
1676
1676
|
# @param salary_and_wages_id [String] Id for single salary and wages object
|
|
@@ -1681,7 +1681,7 @@ module XeroRuby
|
|
|
1681
1681
|
nil
|
|
1682
1682
|
end
|
|
1683
1683
|
|
|
1684
|
-
#
|
|
1684
|
+
# Deletes a salary and wages record for a specific employee
|
|
1685
1685
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1686
1686
|
# @param employee_id [String] Employee id for single object
|
|
1687
1687
|
# @param salary_and_wages_id [String] Id for single salary and wages object
|
|
@@ -1704,7 +1704,7 @@ module XeroRuby
|
|
|
1704
1704
|
fail ArgumentError, "Missing the required parameter 'salary_and_wages_id' when calling PayrollUkApi.delete_employee_salary_and_wage"
|
|
1705
1705
|
end
|
|
1706
1706
|
# resource path
|
|
1707
|
-
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)
|
|
1708
1708
|
|
|
1709
1709
|
# camelize keys of incoming `where` opts
|
|
1710
1710
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -1748,7 +1748,7 @@ module XeroRuby
|
|
|
1748
1748
|
return data, status_code, headers
|
|
1749
1749
|
end
|
|
1750
1750
|
|
|
1751
|
-
#
|
|
1751
|
+
# Deletes a specific timesheet
|
|
1752
1752
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1753
1753
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1754
1754
|
# @param [Hash] opts the optional parameters
|
|
@@ -1758,7 +1758,7 @@ module XeroRuby
|
|
|
1758
1758
|
data
|
|
1759
1759
|
end
|
|
1760
1760
|
|
|
1761
|
-
#
|
|
1761
|
+
# Deletes a specific timesheet
|
|
1762
1762
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1763
1763
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1764
1764
|
# @param [Hash] opts the optional parameters
|
|
@@ -1822,7 +1822,7 @@ module XeroRuby
|
|
|
1822
1822
|
return data, status_code, headers
|
|
1823
1823
|
end
|
|
1824
1824
|
|
|
1825
|
-
#
|
|
1825
|
+
# Deletes a specific timesheet line
|
|
1826
1826
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1827
1827
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1828
1828
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
|
@@ -1833,7 +1833,7 @@ module XeroRuby
|
|
|
1833
1833
|
data
|
|
1834
1834
|
end
|
|
1835
1835
|
|
|
1836
|
-
#
|
|
1836
|
+
# Deletes a specific timesheet line
|
|
1837
1837
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1838
1838
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
1839
1839
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
|
@@ -1902,7 +1902,7 @@ module XeroRuby
|
|
|
1902
1902
|
return data, status_code, headers
|
|
1903
1903
|
end
|
|
1904
1904
|
|
|
1905
|
-
#
|
|
1905
|
+
# Retrieves a specific benefit by using a unique benefit ID
|
|
1906
1906
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1907
1907
|
# @param id [String] Identifier for the benefit
|
|
1908
1908
|
# @param [Hash] opts the optional parameters
|
|
@@ -1912,7 +1912,7 @@ module XeroRuby
|
|
|
1912
1912
|
data
|
|
1913
1913
|
end
|
|
1914
1914
|
|
|
1915
|
-
#
|
|
1915
|
+
# Retrieves a specific benefit by using a unique benefit ID
|
|
1916
1916
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1917
1917
|
# @param id [String] Identifier for the benefit
|
|
1918
1918
|
# @param [Hash] opts the optional parameters
|
|
@@ -1976,7 +1976,7 @@ module XeroRuby
|
|
|
1976
1976
|
return data, status_code, headers
|
|
1977
1977
|
end
|
|
1978
1978
|
|
|
1979
|
-
#
|
|
1979
|
+
# Retrieves employee benefits
|
|
1980
1980
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1981
1981
|
# @param [Hash] opts the optional parameters
|
|
1982
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.
|
|
@@ -1986,7 +1986,7 @@ module XeroRuby
|
|
|
1986
1986
|
data
|
|
1987
1987
|
end
|
|
1988
1988
|
|
|
1989
|
-
#
|
|
1989
|
+
# Retrieves employee benefits
|
|
1990
1990
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
1991
1991
|
# @param [Hash] opts the optional parameters
|
|
1992
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.
|
|
@@ -2047,7 +2047,7 @@ module XeroRuby
|
|
|
2047
2047
|
return data, status_code, headers
|
|
2048
2048
|
end
|
|
2049
2049
|
|
|
2050
|
-
#
|
|
2050
|
+
# Retrieves a specific deduction by using a unique deduction ID
|
|
2051
2051
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2052
2052
|
# @param deduction_id [String] Identifier for the deduction
|
|
2053
2053
|
# @param [Hash] opts the optional parameters
|
|
@@ -2057,7 +2057,7 @@ module XeroRuby
|
|
|
2057
2057
|
data
|
|
2058
2058
|
end
|
|
2059
2059
|
|
|
2060
|
-
#
|
|
2060
|
+
# Retrieves a specific deduction by using a unique deduction ID
|
|
2061
2061
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2062
2062
|
# @param deduction_id [String] Identifier for the deduction
|
|
2063
2063
|
# @param [Hash] opts the optional parameters
|
|
@@ -2121,7 +2121,7 @@ module XeroRuby
|
|
|
2121
2121
|
return data, status_code, headers
|
|
2122
2122
|
end
|
|
2123
2123
|
|
|
2124
|
-
#
|
|
2124
|
+
# Retrieves deductions
|
|
2125
2125
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2126
2126
|
# @param [Hash] opts the optional parameters
|
|
2127
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.
|
|
@@ -2131,7 +2131,7 @@ module XeroRuby
|
|
|
2131
2131
|
data
|
|
2132
2132
|
end
|
|
2133
2133
|
|
|
2134
|
-
#
|
|
2134
|
+
# Retrieves deductions
|
|
2135
2135
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2136
2136
|
# @param [Hash] opts the optional parameters
|
|
2137
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.
|
|
@@ -2192,7 +2192,7 @@ module XeroRuby
|
|
|
2192
2192
|
return data, status_code, headers
|
|
2193
2193
|
end
|
|
2194
2194
|
|
|
2195
|
-
#
|
|
2195
|
+
# Retrieves a specific earnings orders by using a unique earnings orders id
|
|
2196
2196
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2197
2197
|
# @param id [String] Identifier for the deduction
|
|
2198
2198
|
# @param [Hash] opts the optional parameters
|
|
@@ -2202,7 +2202,7 @@ module XeroRuby
|
|
|
2202
2202
|
data
|
|
2203
2203
|
end
|
|
2204
2204
|
|
|
2205
|
-
#
|
|
2205
|
+
# Retrieves a specific earnings orders by using a unique earnings orders id
|
|
2206
2206
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2207
2207
|
# @param id [String] Identifier for the deduction
|
|
2208
2208
|
# @param [Hash] opts the optional parameters
|
|
@@ -2266,7 +2266,7 @@ module XeroRuby
|
|
|
2266
2266
|
return data, status_code, headers
|
|
2267
2267
|
end
|
|
2268
2268
|
|
|
2269
|
-
#
|
|
2269
|
+
# Retrieves earnings orders
|
|
2270
2270
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2271
2271
|
# @param [Hash] opts the optional parameters
|
|
2272
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.
|
|
@@ -2276,7 +2276,7 @@ module XeroRuby
|
|
|
2276
2276
|
data
|
|
2277
2277
|
end
|
|
2278
2278
|
|
|
2279
|
-
#
|
|
2279
|
+
# Retrieves earnings orders
|
|
2280
2280
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2281
2281
|
# @param [Hash] opts the optional parameters
|
|
2282
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.
|
|
@@ -2337,7 +2337,7 @@ module XeroRuby
|
|
|
2337
2337
|
return data, status_code, headers
|
|
2338
2338
|
end
|
|
2339
2339
|
|
|
2340
|
-
#
|
|
2340
|
+
# Retrieves a specific earnings rates by using a unique earnings rate id
|
|
2341
2341
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2342
2342
|
# @param earnings_rate_id [String] Identifier for the earnings rate
|
|
2343
2343
|
# @param [Hash] opts the optional parameters
|
|
@@ -2347,7 +2347,7 @@ module XeroRuby
|
|
|
2347
2347
|
data
|
|
2348
2348
|
end
|
|
2349
2349
|
|
|
2350
|
-
#
|
|
2350
|
+
# Retrieves a specific earnings rates by using a unique earnings rate id
|
|
2351
2351
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2352
2352
|
# @param earnings_rate_id [String] Identifier for the earnings rate
|
|
2353
2353
|
# @param [Hash] opts the optional parameters
|
|
@@ -2411,7 +2411,7 @@ module XeroRuby
|
|
|
2411
2411
|
return data, status_code, headers
|
|
2412
2412
|
end
|
|
2413
2413
|
|
|
2414
|
-
#
|
|
2414
|
+
# Retrieves earnings rates
|
|
2415
2415
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2416
2416
|
# @param [Hash] opts the optional parameters
|
|
2417
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.
|
|
@@ -2421,7 +2421,7 @@ module XeroRuby
|
|
|
2421
2421
|
data
|
|
2422
2422
|
end
|
|
2423
2423
|
|
|
2424
|
-
#
|
|
2424
|
+
# Retrieves earnings rates
|
|
2425
2425
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2426
2426
|
# @param [Hash] opts the optional parameters
|
|
2427
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.
|
|
@@ -2482,7 +2482,7 @@ module XeroRuby
|
|
|
2482
2482
|
return data, status_code, headers
|
|
2483
2483
|
end
|
|
2484
2484
|
|
|
2485
|
-
#
|
|
2485
|
+
# Retrieves specific employees by using a unique employee ID
|
|
2486
2486
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2487
2487
|
# @param employee_id [String] Employee id for single object
|
|
2488
2488
|
# @param [Hash] opts the optional parameters
|
|
@@ -2492,7 +2492,7 @@ module XeroRuby
|
|
|
2492
2492
|
data
|
|
2493
2493
|
end
|
|
2494
2494
|
|
|
2495
|
-
#
|
|
2495
|
+
# Retrieves specific employees by using a unique employee ID
|
|
2496
2496
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2497
2497
|
# @param employee_id [String] Employee id for single object
|
|
2498
2498
|
# @param [Hash] opts the optional parameters
|
|
@@ -2510,7 +2510,7 @@ module XeroRuby
|
|
|
2510
2510
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee"
|
|
2511
2511
|
end
|
|
2512
2512
|
# resource path
|
|
2513
|
-
local_var_path = '/Employees/{
|
|
2513
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2514
2514
|
|
|
2515
2515
|
# camelize keys of incoming `where` opts
|
|
2516
2516
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2556,7 +2556,7 @@ module XeroRuby
|
|
|
2556
2556
|
return data, status_code, headers
|
|
2557
2557
|
end
|
|
2558
2558
|
|
|
2559
|
-
#
|
|
2559
|
+
# Retrieves a specific employee's leave record using a unique employee ID
|
|
2560
2560
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2561
2561
|
# @param employee_id [String] Employee id for single object
|
|
2562
2562
|
# @param leave_id [String] Leave id for single object
|
|
@@ -2567,7 +2567,7 @@ module XeroRuby
|
|
|
2567
2567
|
data
|
|
2568
2568
|
end
|
|
2569
2569
|
|
|
2570
|
-
#
|
|
2570
|
+
# Retrieves a specific employee's leave record using a unique employee ID
|
|
2571
2571
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2572
2572
|
# @param employee_id [String] Employee id for single object
|
|
2573
2573
|
# @param leave_id [String] Leave id for single object
|
|
@@ -2590,7 +2590,7 @@ module XeroRuby
|
|
|
2590
2590
|
fail ArgumentError, "Missing the required parameter 'leave_id' when calling PayrollUkApi.get_employee_leave"
|
|
2591
2591
|
end
|
|
2592
2592
|
# resource path
|
|
2593
|
-
local_var_path = '/Employees/{
|
|
2593
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
|
2594
2594
|
|
|
2595
2595
|
# camelize keys of incoming `where` opts
|
|
2596
2596
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2636,7 +2636,7 @@ module XeroRuby
|
|
|
2636
2636
|
return data, status_code, headers
|
|
2637
2637
|
end
|
|
2638
2638
|
|
|
2639
|
-
#
|
|
2639
|
+
# Retrieves a specific employee's leave balances using a unique employee ID
|
|
2640
2640
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2641
2641
|
# @param employee_id [String] Employee id for single object
|
|
2642
2642
|
# @param [Hash] opts the optional parameters
|
|
@@ -2646,7 +2646,7 @@ module XeroRuby
|
|
|
2646
2646
|
data
|
|
2647
2647
|
end
|
|
2648
2648
|
|
|
2649
|
-
#
|
|
2649
|
+
# Retrieves a specific employee's leave balances using a unique employee ID
|
|
2650
2650
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2651
2651
|
# @param employee_id [String] Employee id for single object
|
|
2652
2652
|
# @param [Hash] opts the optional parameters
|
|
@@ -2664,7 +2664,7 @@ module XeroRuby
|
|
|
2664
2664
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_leave_balances"
|
|
2665
2665
|
end
|
|
2666
2666
|
# resource path
|
|
2667
|
-
local_var_path = '/Employees/{
|
|
2667
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveBalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2668
2668
|
|
|
2669
2669
|
# camelize keys of incoming `where` opts
|
|
2670
2670
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2710,7 +2710,7 @@ module XeroRuby
|
|
|
2710
2710
|
return data, status_code, headers
|
|
2711
2711
|
end
|
|
2712
2712
|
|
|
2713
|
-
#
|
|
2713
|
+
# Retrieves a specific employee's leave periods using a unique employee ID
|
|
2714
2714
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2715
2715
|
# @param employee_id [String] Employee id for single object
|
|
2716
2716
|
# @param [Hash] opts the optional parameters
|
|
@@ -2722,7 +2722,7 @@ module XeroRuby
|
|
|
2722
2722
|
data
|
|
2723
2723
|
end
|
|
2724
2724
|
|
|
2725
|
-
#
|
|
2725
|
+
# Retrieves a specific employee's leave periods using a unique employee ID
|
|
2726
2726
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2727
2727
|
# @param employee_id [String] Employee id for single object
|
|
2728
2728
|
# @param [Hash] opts the optional parameters
|
|
@@ -2742,7 +2742,7 @@ module XeroRuby
|
|
|
2742
2742
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_leave_periods"
|
|
2743
2743
|
end
|
|
2744
2744
|
# resource path
|
|
2745
|
-
local_var_path = '/Employees/{
|
|
2745
|
+
local_var_path = '/Employees/{EmployeeID}/LeavePeriods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2746
2746
|
|
|
2747
2747
|
# camelize keys of incoming `where` opts
|
|
2748
2748
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2790,7 +2790,7 @@ module XeroRuby
|
|
|
2790
2790
|
return data, status_code, headers
|
|
2791
2791
|
end
|
|
2792
2792
|
|
|
2793
|
-
#
|
|
2793
|
+
# Retrieves a specific employee's leave types using a unique employee ID
|
|
2794
2794
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2795
2795
|
# @param employee_id [String] Employee id for single object
|
|
2796
2796
|
# @param [Hash] opts the optional parameters
|
|
@@ -2800,7 +2800,7 @@ module XeroRuby
|
|
|
2800
2800
|
data
|
|
2801
2801
|
end
|
|
2802
2802
|
|
|
2803
|
-
#
|
|
2803
|
+
# Retrieves a specific employee's leave types using a unique employee ID
|
|
2804
2804
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2805
2805
|
# @param employee_id [String] Employee id for single object
|
|
2806
2806
|
# @param [Hash] opts the optional parameters
|
|
@@ -2818,7 +2818,7 @@ module XeroRuby
|
|
|
2818
2818
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_leave_types"
|
|
2819
2819
|
end
|
|
2820
2820
|
# resource path
|
|
2821
|
-
local_var_path = '/Employees/{
|
|
2821
|
+
local_var_path = '/Employees/{EmployeeID}/LeaveTypes'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2822
2822
|
|
|
2823
2823
|
# camelize keys of incoming `where` opts
|
|
2824
2824
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2864,7 +2864,7 @@ module XeroRuby
|
|
|
2864
2864
|
return data, status_code, headers
|
|
2865
2865
|
end
|
|
2866
2866
|
|
|
2867
|
-
#
|
|
2867
|
+
# Retrieves a specific employee's leave records using a unique employee ID
|
|
2868
2868
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2869
2869
|
# @param employee_id [String] Employee id for single object
|
|
2870
2870
|
# @param [Hash] opts the optional parameters
|
|
@@ -2874,7 +2874,7 @@ module XeroRuby
|
|
|
2874
2874
|
data
|
|
2875
2875
|
end
|
|
2876
2876
|
|
|
2877
|
-
#
|
|
2877
|
+
# Retrieves a specific employee's leave records using a unique employee ID
|
|
2878
2878
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2879
2879
|
# @param employee_id [String] Employee id for single object
|
|
2880
2880
|
# @param [Hash] opts the optional parameters
|
|
@@ -2892,7 +2892,7 @@ module XeroRuby
|
|
|
2892
2892
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_leaves"
|
|
2893
2893
|
end
|
|
2894
2894
|
# resource path
|
|
2895
|
-
local_var_path = '/Employees/{
|
|
2895
|
+
local_var_path = '/Employees/{EmployeeID}/Leave'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2896
2896
|
|
|
2897
2897
|
# camelize keys of incoming `where` opts
|
|
2898
2898
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -2938,7 +2938,7 @@ module XeroRuby
|
|
|
2938
2938
|
return data, status_code, headers
|
|
2939
2939
|
end
|
|
2940
2940
|
|
|
2941
|
-
#
|
|
2941
|
+
# Retrieves a specific employee's openingbalances using a unique employee ID
|
|
2942
2942
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2943
2943
|
# @param employee_id [String] Employee id for single object
|
|
2944
2944
|
# @param [Hash] opts the optional parameters
|
|
@@ -2948,7 +2948,7 @@ module XeroRuby
|
|
|
2948
2948
|
data
|
|
2949
2949
|
end
|
|
2950
2950
|
|
|
2951
|
-
#
|
|
2951
|
+
# Retrieves a specific employee's openingbalances using a unique employee ID
|
|
2952
2952
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
2953
2953
|
# @param employee_id [String] Employee id for single object
|
|
2954
2954
|
# @param [Hash] opts the optional parameters
|
|
@@ -2966,7 +2966,7 @@ module XeroRuby
|
|
|
2966
2966
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_opening_balances"
|
|
2967
2967
|
end
|
|
2968
2968
|
# resource path
|
|
2969
|
-
local_var_path = '/Employees/{
|
|
2969
|
+
local_var_path = '/Employees/{EmployeeID}/ukopeningbalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
2970
2970
|
|
|
2971
2971
|
# camelize keys of incoming `where` opts
|
|
2972
2972
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3012,7 +3012,7 @@ module XeroRuby
|
|
|
3012
3012
|
return data, status_code, headers
|
|
3013
3013
|
end
|
|
3014
3014
|
|
|
3015
|
-
#
|
|
3015
|
+
# Retrieves a specific employee pay templates using a unique employee ID
|
|
3016
3016
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3017
3017
|
# @param employee_id [String] Employee id for single object
|
|
3018
3018
|
# @param [Hash] opts the optional parameters
|
|
@@ -3022,7 +3022,7 @@ module XeroRuby
|
|
|
3022
3022
|
data
|
|
3023
3023
|
end
|
|
3024
3024
|
|
|
3025
|
-
#
|
|
3025
|
+
# Retrieves a specific employee pay templates using a unique employee ID
|
|
3026
3026
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3027
3027
|
# @param employee_id [String] Employee id for single object
|
|
3028
3028
|
# @param [Hash] opts the optional parameters
|
|
@@ -3040,7 +3040,7 @@ module XeroRuby
|
|
|
3040
3040
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_pay_template"
|
|
3041
3041
|
end
|
|
3042
3042
|
# resource path
|
|
3043
|
-
local_var_path = '/Employees/{
|
|
3043
|
+
local_var_path = '/Employees/{EmployeeID}/PayTemplates'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
3044
3044
|
|
|
3045
3045
|
# camelize keys of incoming `where` opts
|
|
3046
3046
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3086,7 +3086,7 @@ module XeroRuby
|
|
|
3086
3086
|
return data, status_code, headers
|
|
3087
3087
|
end
|
|
3088
3088
|
|
|
3089
|
-
#
|
|
3089
|
+
# Retrieves a specific employee's payment method using a unique employee ID
|
|
3090
3090
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3091
3091
|
# @param employee_id [String] Employee id for single object
|
|
3092
3092
|
# @param [Hash] opts the optional parameters
|
|
@@ -3096,7 +3096,7 @@ module XeroRuby
|
|
|
3096
3096
|
data
|
|
3097
3097
|
end
|
|
3098
3098
|
|
|
3099
|
-
#
|
|
3099
|
+
# Retrieves a specific employee's payment method using a unique employee ID
|
|
3100
3100
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3101
3101
|
# @param employee_id [String] Employee id for single object
|
|
3102
3102
|
# @param [Hash] opts the optional parameters
|
|
@@ -3114,7 +3114,7 @@ module XeroRuby
|
|
|
3114
3114
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_payment_method"
|
|
3115
3115
|
end
|
|
3116
3116
|
# resource path
|
|
3117
|
-
local_var_path = '/Employees/{
|
|
3117
|
+
local_var_path = '/Employees/{EmployeeID}/PaymentMethods'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
3118
3118
|
|
|
3119
3119
|
# camelize keys of incoming `where` opts
|
|
3120
3120
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3160,7 +3160,7 @@ module XeroRuby
|
|
|
3160
3160
|
return data, status_code, headers
|
|
3161
3161
|
end
|
|
3162
3162
|
|
|
3163
|
-
#
|
|
3163
|
+
# Retrieves a specific salary and wages record for a specific employee using a unique salary and wage id
|
|
3164
3164
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3165
3165
|
# @param employee_id [String] Employee id for single object
|
|
3166
3166
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
|
@@ -3171,7 +3171,7 @@ module XeroRuby
|
|
|
3171
3171
|
data
|
|
3172
3172
|
end
|
|
3173
3173
|
|
|
3174
|
-
#
|
|
3174
|
+
# Retrieves a specific salary and wages record for a specific employee using a unique salary and wage id
|
|
3175
3175
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3176
3176
|
# @param employee_id [String] Employee id for single object
|
|
3177
3177
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
|
@@ -3194,7 +3194,7 @@ module XeroRuby
|
|
|
3194
3194
|
fail ArgumentError, "Missing the required parameter 'salary_and_wages_id' when calling PayrollUkApi.get_employee_salary_and_wage"
|
|
3195
3195
|
end
|
|
3196
3196
|
# resource path
|
|
3197
|
-
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)
|
|
3198
3198
|
|
|
3199
3199
|
# camelize keys of incoming `where` opts
|
|
3200
3200
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3240,7 +3240,7 @@ module XeroRuby
|
|
|
3240
3240
|
return data, status_code, headers
|
|
3241
3241
|
end
|
|
3242
3242
|
|
|
3243
|
-
#
|
|
3243
|
+
# Retrieves a specific employee's salary and wages by using a unique employee ID
|
|
3244
3244
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3245
3245
|
# @param employee_id [String] Employee id for single object
|
|
3246
3246
|
# @param [Hash] opts the optional parameters
|
|
@@ -3251,7 +3251,7 @@ module XeroRuby
|
|
|
3251
3251
|
data
|
|
3252
3252
|
end
|
|
3253
3253
|
|
|
3254
|
-
#
|
|
3254
|
+
# Retrieves a specific employee's salary and wages by using a unique employee ID
|
|
3255
3255
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3256
3256
|
# @param employee_id [String] Employee id for single object
|
|
3257
3257
|
# @param [Hash] opts the optional parameters
|
|
@@ -3270,7 +3270,7 @@ module XeroRuby
|
|
|
3270
3270
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_salary_and_wages"
|
|
3271
3271
|
end
|
|
3272
3272
|
# resource path
|
|
3273
|
-
local_var_path = '/Employees/{
|
|
3273
|
+
local_var_path = '/Employees/{EmployeeID}/SalaryAndWages'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
3274
3274
|
|
|
3275
3275
|
# camelize keys of incoming `where` opts
|
|
3276
3276
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3317,7 +3317,7 @@ module XeroRuby
|
|
|
3317
3317
|
return data, status_code, headers
|
|
3318
3318
|
end
|
|
3319
3319
|
|
|
3320
|
-
#
|
|
3320
|
+
# Retrieves a specific employee's leave balances using a unique employee ID
|
|
3321
3321
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3322
3322
|
# @param employee_id [String] Employee id for single object
|
|
3323
3323
|
# @param [Hash] opts the optional parameters
|
|
@@ -3329,7 +3329,7 @@ module XeroRuby
|
|
|
3329
3329
|
data
|
|
3330
3330
|
end
|
|
3331
3331
|
|
|
3332
|
-
#
|
|
3332
|
+
# Retrieves a specific employee's leave balances using a unique employee ID
|
|
3333
3333
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3334
3334
|
# @param employee_id [String] Employee id for single object
|
|
3335
3335
|
# @param [Hash] opts the optional parameters
|
|
@@ -3349,7 +3349,7 @@ module XeroRuby
|
|
|
3349
3349
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_statutory_leave_balances"
|
|
3350
3350
|
end
|
|
3351
3351
|
# resource path
|
|
3352
|
-
local_var_path = '/Employees/{
|
|
3352
|
+
local_var_path = '/Employees/{EmployeeID}/StatutoryLeaveBalance'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
3353
3353
|
|
|
3354
3354
|
# camelize keys of incoming `where` opts
|
|
3355
3355
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3397,7 +3397,7 @@ module XeroRuby
|
|
|
3397
3397
|
return data, status_code, headers
|
|
3398
3398
|
end
|
|
3399
3399
|
|
|
3400
|
-
#
|
|
3400
|
+
# Retrieves a statutory sick leave for an employee
|
|
3401
3401
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3402
3402
|
# @param statutory_sick_leave_id [String] Statutory sick leave id for single object
|
|
3403
3403
|
# @param [Hash] opts the optional parameters
|
|
@@ -3407,7 +3407,7 @@ module XeroRuby
|
|
|
3407
3407
|
data
|
|
3408
3408
|
end
|
|
3409
3409
|
|
|
3410
|
-
#
|
|
3410
|
+
# Retrieves a statutory sick leave for an employee
|
|
3411
3411
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3412
3412
|
# @param statutory_sick_leave_id [String] Statutory sick leave id for single object
|
|
3413
3413
|
# @param [Hash] opts the optional parameters
|
|
@@ -3471,7 +3471,7 @@ module XeroRuby
|
|
|
3471
3471
|
return data, status_code, headers
|
|
3472
3472
|
end
|
|
3473
3473
|
|
|
3474
|
-
#
|
|
3474
|
+
# Retrieves tax records for a specific employee using a unique employee ID
|
|
3475
3475
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3476
3476
|
# @param employee_id [String] Employee id for single object
|
|
3477
3477
|
# @param [Hash] opts the optional parameters
|
|
@@ -3481,7 +3481,7 @@ module XeroRuby
|
|
|
3481
3481
|
data
|
|
3482
3482
|
end
|
|
3483
3483
|
|
|
3484
|
-
#
|
|
3484
|
+
# Retrieves tax records for a specific employee using a unique employee ID
|
|
3485
3485
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3486
3486
|
# @param employee_id [String] Employee id for single object
|
|
3487
3487
|
# @param [Hash] opts the optional parameters
|
|
@@ -3499,7 +3499,7 @@ module XeroRuby
|
|
|
3499
3499
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_employee_tax"
|
|
3500
3500
|
end
|
|
3501
3501
|
# resource path
|
|
3502
|
-
local_var_path = '/Employees/{
|
|
3502
|
+
local_var_path = '/Employees/{EmployeeID}/Tax'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
3503
3503
|
|
|
3504
3504
|
# camelize keys of incoming `where` opts
|
|
3505
3505
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -3545,7 +3545,7 @@ module XeroRuby
|
|
|
3545
3545
|
return data, status_code, headers
|
|
3546
3546
|
end
|
|
3547
3547
|
|
|
3548
|
-
#
|
|
3548
|
+
# Retrieves employees
|
|
3549
3549
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3550
3550
|
# @param [Hash] opts the optional parameters
|
|
3551
3551
|
# @option opts [String] :first_name Filter by first name
|
|
@@ -3557,7 +3557,7 @@ module XeroRuby
|
|
|
3557
3557
|
data
|
|
3558
3558
|
end
|
|
3559
3559
|
|
|
3560
|
-
#
|
|
3560
|
+
# Retrieves employees
|
|
3561
3561
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3562
3562
|
# @param [Hash] opts the optional parameters
|
|
3563
3563
|
# @option opts [String] :first_name Filter by first name
|
|
@@ -3622,7 +3622,7 @@ module XeroRuby
|
|
|
3622
3622
|
return data, status_code, headers
|
|
3623
3623
|
end
|
|
3624
3624
|
|
|
3625
|
-
#
|
|
3625
|
+
# Retrieves a specific leave type by using a unique leave type ID
|
|
3626
3626
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3627
3627
|
# @param leave_type_id [String] Identifier for the leave type
|
|
3628
3628
|
# @param [Hash] opts the optional parameters
|
|
@@ -3632,7 +3632,7 @@ module XeroRuby
|
|
|
3632
3632
|
data
|
|
3633
3633
|
end
|
|
3634
3634
|
|
|
3635
|
-
#
|
|
3635
|
+
# Retrieves a specific leave type by using a unique leave type ID
|
|
3636
3636
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3637
3637
|
# @param leave_type_id [String] Identifier for the leave type
|
|
3638
3638
|
# @param [Hash] opts the optional parameters
|
|
@@ -3696,7 +3696,7 @@ module XeroRuby
|
|
|
3696
3696
|
return data, status_code, headers
|
|
3697
3697
|
end
|
|
3698
3698
|
|
|
3699
|
-
#
|
|
3699
|
+
# Retrieves leave types
|
|
3700
3700
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3701
3701
|
# @param [Hash] opts the optional parameters
|
|
3702
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.
|
|
@@ -3707,7 +3707,7 @@ module XeroRuby
|
|
|
3707
3707
|
data
|
|
3708
3708
|
end
|
|
3709
3709
|
|
|
3710
|
-
#
|
|
3710
|
+
# Retrieves leave types
|
|
3711
3711
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3712
3712
|
# @param [Hash] opts the optional parameters
|
|
3713
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.
|
|
@@ -3770,7 +3770,7 @@ module XeroRuby
|
|
|
3770
3770
|
return data, status_code, headers
|
|
3771
3771
|
end
|
|
3772
3772
|
|
|
3773
|
-
#
|
|
3773
|
+
# Retrieves a specific pay run by using a unique pay run ID
|
|
3774
3774
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3775
3775
|
# @param pay_run_id [String] Identifier for the pay run
|
|
3776
3776
|
# @param [Hash] opts the optional parameters
|
|
@@ -3780,7 +3780,7 @@ module XeroRuby
|
|
|
3780
3780
|
data
|
|
3781
3781
|
end
|
|
3782
3782
|
|
|
3783
|
-
#
|
|
3783
|
+
# Retrieves a specific pay run by using a unique pay run ID
|
|
3784
3784
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3785
3785
|
# @param pay_run_id [String] Identifier for the pay run
|
|
3786
3786
|
# @param [Hash] opts the optional parameters
|
|
@@ -3844,7 +3844,7 @@ module XeroRuby
|
|
|
3844
3844
|
return data, status_code, headers
|
|
3845
3845
|
end
|
|
3846
3846
|
|
|
3847
|
-
#
|
|
3847
|
+
# Retrieves a specific payrun calendar by using a unique payrun calendar ID
|
|
3848
3848
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3849
3849
|
# @param pay_run_calendar_id [String] Identifier for the payrun calendars
|
|
3850
3850
|
# @param [Hash] opts the optional parameters
|
|
@@ -3854,7 +3854,7 @@ module XeroRuby
|
|
|
3854
3854
|
data
|
|
3855
3855
|
end
|
|
3856
3856
|
|
|
3857
|
-
#
|
|
3857
|
+
# Retrieves a specific payrun calendar by using a unique payrun calendar ID
|
|
3858
3858
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3859
3859
|
# @param pay_run_calendar_id [String] Identifier for the payrun calendars
|
|
3860
3860
|
# @param [Hash] opts the optional parameters
|
|
@@ -3918,7 +3918,7 @@ module XeroRuby
|
|
|
3918
3918
|
return data, status_code, headers
|
|
3919
3919
|
end
|
|
3920
3920
|
|
|
3921
|
-
#
|
|
3921
|
+
# Retrieves payrun calendars
|
|
3922
3922
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3923
3923
|
# @param [Hash] opts the optional parameters
|
|
3924
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.
|
|
@@ -3928,7 +3928,7 @@ module XeroRuby
|
|
|
3928
3928
|
data
|
|
3929
3929
|
end
|
|
3930
3930
|
|
|
3931
|
-
#
|
|
3931
|
+
# Retrieves payrun calendars
|
|
3932
3932
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3933
3933
|
# @param [Hash] opts the optional parameters
|
|
3934
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.
|
|
@@ -3989,7 +3989,7 @@ module XeroRuby
|
|
|
3989
3989
|
return data, status_code, headers
|
|
3990
3990
|
end
|
|
3991
3991
|
|
|
3992
|
-
#
|
|
3992
|
+
# Retrieves pay runs
|
|
3993
3993
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
3994
3994
|
# @param [Hash] opts the optional parameters
|
|
3995
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.
|
|
@@ -4000,7 +4000,7 @@ module XeroRuby
|
|
|
4000
4000
|
data
|
|
4001
4001
|
end
|
|
4002
4002
|
|
|
4003
|
-
#
|
|
4003
|
+
# Retrieves pay runs
|
|
4004
4004
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4005
4005
|
# @param [Hash] opts the optional parameters
|
|
4006
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.
|
|
@@ -4067,7 +4067,7 @@ module XeroRuby
|
|
|
4067
4067
|
return data, status_code, headers
|
|
4068
4068
|
end
|
|
4069
4069
|
|
|
4070
|
-
#
|
|
4070
|
+
# Retrieves a specific payslip by using a unique payslip ID
|
|
4071
4071
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4072
4072
|
# @param payslip_id [String] Identifier for the payslip
|
|
4073
4073
|
# @param [Hash] opts the optional parameters
|
|
@@ -4077,7 +4077,7 @@ module XeroRuby
|
|
|
4077
4077
|
data
|
|
4078
4078
|
end
|
|
4079
4079
|
|
|
4080
|
-
#
|
|
4080
|
+
# Retrieves a specific payslip by using a unique payslip ID
|
|
4081
4081
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4082
4082
|
# @param payslip_id [String] Identifier for the payslip
|
|
4083
4083
|
# @param [Hash] opts the optional parameters
|
|
@@ -4141,7 +4141,7 @@ module XeroRuby
|
|
|
4141
4141
|
return data, status_code, headers
|
|
4142
4142
|
end
|
|
4143
4143
|
|
|
4144
|
-
#
|
|
4144
|
+
# Retrieves payslips
|
|
4145
4145
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4146
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.
|
|
4147
4147
|
# @param [Hash] opts the optional parameters
|
|
@@ -4152,7 +4152,7 @@ module XeroRuby
|
|
|
4152
4152
|
data
|
|
4153
4153
|
end
|
|
4154
4154
|
|
|
4155
|
-
#
|
|
4155
|
+
# Retrieves payslips
|
|
4156
4156
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4157
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.
|
|
4158
4158
|
# @param [Hash] opts the optional parameters
|
|
@@ -4219,7 +4219,7 @@ module XeroRuby
|
|
|
4219
4219
|
return data, status_code, headers
|
|
4220
4220
|
end
|
|
4221
4221
|
|
|
4222
|
-
#
|
|
4222
|
+
# Retrieves a specific reimbursement by using a unique reimbursement id
|
|
4223
4223
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4224
4224
|
# @param reimbursement_id [String] Identifier for the reimbursement
|
|
4225
4225
|
# @param [Hash] opts the optional parameters
|
|
@@ -4229,7 +4229,7 @@ module XeroRuby
|
|
|
4229
4229
|
data
|
|
4230
4230
|
end
|
|
4231
4231
|
|
|
4232
|
-
#
|
|
4232
|
+
# Retrieves a specific reimbursement by using a unique reimbursement id
|
|
4233
4233
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4234
4234
|
# @param reimbursement_id [String] Identifier for the reimbursement
|
|
4235
4235
|
# @param [Hash] opts the optional parameters
|
|
@@ -4293,7 +4293,7 @@ module XeroRuby
|
|
|
4293
4293
|
return data, status_code, headers
|
|
4294
4294
|
end
|
|
4295
4295
|
|
|
4296
|
-
#
|
|
4296
|
+
# Retrieves reimbursements
|
|
4297
4297
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4298
4298
|
# @param [Hash] opts the optional parameters
|
|
4299
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.
|
|
@@ -4303,7 +4303,7 @@ module XeroRuby
|
|
|
4303
4303
|
data
|
|
4304
4304
|
end
|
|
4305
4305
|
|
|
4306
|
-
#
|
|
4306
|
+
# Retrieves reimbursements
|
|
4307
4307
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4308
4308
|
# @param [Hash] opts the optional parameters
|
|
4309
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.
|
|
@@ -4364,7 +4364,7 @@ module XeroRuby
|
|
|
4364
4364
|
return data, status_code, headers
|
|
4365
4365
|
end
|
|
4366
4366
|
|
|
4367
|
-
#
|
|
4367
|
+
# Retrieves payroll settings
|
|
4368
4368
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4369
4369
|
# @param [Hash] opts the optional parameters
|
|
4370
4370
|
# @return [Settings]
|
|
@@ -4373,7 +4373,7 @@ module XeroRuby
|
|
|
4373
4373
|
data
|
|
4374
4374
|
end
|
|
4375
4375
|
|
|
4376
|
-
#
|
|
4376
|
+
# Retrieves payroll settings
|
|
4377
4377
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4378
4378
|
# @param [Hash] opts the optional parameters
|
|
4379
4379
|
# @return [Array<(Settings, Integer, Hash)>] Settings data, response status code and response headers
|
|
@@ -4432,7 +4432,7 @@ module XeroRuby
|
|
|
4432
4432
|
return data, status_code, headers
|
|
4433
4433
|
end
|
|
4434
4434
|
|
|
4435
|
-
#
|
|
4435
|
+
# Retrieves a specific employee's summary of statutory leaves using a unique employee ID
|
|
4436
4436
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4437
4437
|
# @param employee_id [String] Employee id for single object
|
|
4438
4438
|
# @param [Hash] opts the optional parameters
|
|
@@ -4443,7 +4443,7 @@ module XeroRuby
|
|
|
4443
4443
|
data
|
|
4444
4444
|
end
|
|
4445
4445
|
|
|
4446
|
-
#
|
|
4446
|
+
# Retrieves a specific employee's summary of statutory leaves using a unique employee ID
|
|
4447
4447
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4448
4448
|
# @param employee_id [String] Employee id for single object
|
|
4449
4449
|
# @param [Hash] opts the optional parameters
|
|
@@ -4462,7 +4462,7 @@ module XeroRuby
|
|
|
4462
4462
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollUkApi.get_statutory_leave_summary"
|
|
4463
4463
|
end
|
|
4464
4464
|
# resource path
|
|
4465
|
-
local_var_path = '/
|
|
4465
|
+
local_var_path = '/StatutoryLeaves/Summary/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
4466
4466
|
|
|
4467
4467
|
# camelize keys of incoming `where` opts
|
|
4468
4468
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4509,7 +4509,7 @@ module XeroRuby
|
|
|
4509
4509
|
return data, status_code, headers
|
|
4510
4510
|
end
|
|
4511
4511
|
|
|
4512
|
-
#
|
|
4512
|
+
# Retrieve a specific timesheet by using a unique timesheet ID
|
|
4513
4513
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4514
4514
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
4515
4515
|
# @param [Hash] opts the optional parameters
|
|
@@ -4519,7 +4519,7 @@ module XeroRuby
|
|
|
4519
4519
|
data
|
|
4520
4520
|
end
|
|
4521
4521
|
|
|
4522
|
-
#
|
|
4522
|
+
# Retrieve a specific timesheet by using a unique timesheet ID
|
|
4523
4523
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4524
4524
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
4525
4525
|
# @param [Hash] opts the optional parameters
|
|
@@ -4583,11 +4583,11 @@ module XeroRuby
|
|
|
4583
4583
|
return data, status_code, headers
|
|
4584
4584
|
end
|
|
4585
4585
|
|
|
4586
|
-
#
|
|
4586
|
+
# Retrieves timesheets
|
|
4587
4587
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4588
4588
|
# @param [Hash] opts the optional parameters
|
|
4589
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.
|
|
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=={
|
|
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.
|
|
4591
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
|
|
4592
4592
|
# @return [Timesheets]
|
|
4593
4593
|
def get_timesheets(xero_tenant_id, opts = {})
|
|
@@ -4595,11 +4595,11 @@ module XeroRuby
|
|
|
4595
4595
|
data
|
|
4596
4596
|
end
|
|
4597
4597
|
|
|
4598
|
-
#
|
|
4598
|
+
# Retrieves timesheets
|
|
4599
4599
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4600
4600
|
# @param [Hash] opts the optional parameters
|
|
4601
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.
|
|
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=={
|
|
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.
|
|
4603
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
|
|
4604
4604
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
|
4605
4605
|
def get_timesheets_with_http_info(xero_tenant_id, opts = {})
|
|
@@ -4660,7 +4660,7 @@ module XeroRuby
|
|
|
4660
4660
|
return data, status_code, headers
|
|
4661
4661
|
end
|
|
4662
4662
|
|
|
4663
|
-
#
|
|
4663
|
+
# Retrieves tracking categories
|
|
4664
4664
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4665
4665
|
# @param [Hash] opts the optional parameters
|
|
4666
4666
|
# @return [TrackingCategories]
|
|
@@ -4669,7 +4669,7 @@ module XeroRuby
|
|
|
4669
4669
|
data
|
|
4670
4670
|
end
|
|
4671
4671
|
|
|
4672
|
-
#
|
|
4672
|
+
# Retrieves tracking categories
|
|
4673
4673
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4674
4674
|
# @param [Hash] opts the optional parameters
|
|
4675
4675
|
# @return [Array<(TrackingCategories, Integer, Hash)>] TrackingCategories data, response status code and response headers
|
|
@@ -4682,7 +4682,7 @@ module XeroRuby
|
|
|
4682
4682
|
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling PayrollUkApi.get_tracking_categories"
|
|
4683
4683
|
end
|
|
4684
4684
|
# resource path
|
|
4685
|
-
local_var_path = '/
|
|
4685
|
+
local_var_path = '/Settings/trackingCategories'
|
|
4686
4686
|
|
|
4687
4687
|
# camelize keys of incoming `where` opts
|
|
4688
4688
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4728,7 +4728,7 @@ module XeroRuby
|
|
|
4728
4728
|
return data, status_code, headers
|
|
4729
4729
|
end
|
|
4730
4730
|
|
|
4731
|
-
#
|
|
4731
|
+
# Reverts a specific timesheet to draft
|
|
4732
4732
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4733
4733
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
4734
4734
|
# @param [Hash] opts the optional parameters
|
|
@@ -4738,7 +4738,7 @@ module XeroRuby
|
|
|
4738
4738
|
data
|
|
4739
4739
|
end
|
|
4740
4740
|
|
|
4741
|
-
#
|
|
4741
|
+
# Reverts a specific timesheet to draft
|
|
4742
4742
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4743
4743
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
4744
4744
|
# @param [Hash] opts the optional parameters
|
|
@@ -4802,7 +4802,7 @@ module XeroRuby
|
|
|
4802
4802
|
return data, status_code, headers
|
|
4803
4803
|
end
|
|
4804
4804
|
|
|
4805
|
-
#
|
|
4805
|
+
# Updates a specific employee's detail
|
|
4806
4806
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4807
4807
|
# @param employee_id [String] Employee id for single object
|
|
4808
4808
|
# @param employee [Employee]
|
|
@@ -4813,7 +4813,7 @@ module XeroRuby
|
|
|
4813
4813
|
data
|
|
4814
4814
|
end
|
|
4815
4815
|
|
|
4816
|
-
#
|
|
4816
|
+
# Updates a specific employee's detail
|
|
4817
4817
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4818
4818
|
# @param employee_id [String] Employee id for single object
|
|
4819
4819
|
# @param employee [Employee]
|
|
@@ -4836,7 +4836,7 @@ module XeroRuby
|
|
|
4836
4836
|
fail ArgumentError, "Missing the required parameter 'employee' when calling PayrollUkApi.update_employee"
|
|
4837
4837
|
end
|
|
4838
4838
|
# resource path
|
|
4839
|
-
local_var_path = '/Employees/{
|
|
4839
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
4840
4840
|
|
|
4841
4841
|
# camelize keys of incoming `where` opts
|
|
4842
4842
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4884,7 +4884,7 @@ module XeroRuby
|
|
|
4884
4884
|
return data, status_code, headers
|
|
4885
4885
|
end
|
|
4886
4886
|
|
|
4887
|
-
#
|
|
4887
|
+
# Updates a specific employee's earnings template records
|
|
4888
4888
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4889
4889
|
# @param employee_id [String] Employee id for single object
|
|
4890
4890
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
|
@@ -4896,7 +4896,7 @@ module XeroRuby
|
|
|
4896
4896
|
data
|
|
4897
4897
|
end
|
|
4898
4898
|
|
|
4899
|
-
#
|
|
4899
|
+
# Updates a specific employee's earnings template records
|
|
4900
4900
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4901
4901
|
# @param employee_id [String] Employee id for single object
|
|
4902
4902
|
# @param pay_template_earning_id [String] Id for single pay template earnings object
|
|
@@ -4924,7 +4924,7 @@ module XeroRuby
|
|
|
4924
4924
|
fail ArgumentError, "Missing the required parameter 'earnings_template' when calling PayrollUkApi.update_employee_earnings_template"
|
|
4925
4925
|
end
|
|
4926
4926
|
# resource path
|
|
4927
|
-
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)
|
|
4928
4928
|
|
|
4929
4929
|
# camelize keys of incoming `where` opts
|
|
4930
4930
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -4972,7 +4972,7 @@ module XeroRuby
|
|
|
4972
4972
|
return data, status_code, headers
|
|
4973
4973
|
end
|
|
4974
4974
|
|
|
4975
|
-
#
|
|
4975
|
+
# Updates a specific employee's leave records
|
|
4976
4976
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4977
4977
|
# @param employee_id [String] Employee id for single object
|
|
4978
4978
|
# @param leave_id [String] Leave id for single object
|
|
@@ -4984,7 +4984,7 @@ module XeroRuby
|
|
|
4984
4984
|
data
|
|
4985
4985
|
end
|
|
4986
4986
|
|
|
4987
|
-
#
|
|
4987
|
+
# Updates a specific employee's leave records
|
|
4988
4988
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
4989
4989
|
# @param employee_id [String] Employee id for single object
|
|
4990
4990
|
# @param leave_id [String] Leave id for single object
|
|
@@ -5012,7 +5012,7 @@ module XeroRuby
|
|
|
5012
5012
|
fail ArgumentError, "Missing the required parameter 'employee_leave' when calling PayrollUkApi.update_employee_leave"
|
|
5013
5013
|
end
|
|
5014
5014
|
# resource path
|
|
5015
|
-
local_var_path = '/Employees/{
|
|
5015
|
+
local_var_path = '/Employees/{EmployeeID}/Leave/{LeaveID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s).sub('{' + 'LeaveID' + '}', leave_id.to_s)
|
|
5016
5016
|
|
|
5017
5017
|
# camelize keys of incoming `where` opts
|
|
5018
5018
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -5060,7 +5060,7 @@ module XeroRuby
|
|
|
5060
5060
|
return data, status_code, headers
|
|
5061
5061
|
end
|
|
5062
5062
|
|
|
5063
|
-
#
|
|
5063
|
+
# Updates a specific employee's opening balances
|
|
5064
5064
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5065
5065
|
# @param employee_id [String] Employee id for single object
|
|
5066
5066
|
# @param employee_opening_balances [EmployeeOpeningBalances]
|
|
@@ -5071,7 +5071,7 @@ module XeroRuby
|
|
|
5071
5071
|
data
|
|
5072
5072
|
end
|
|
5073
5073
|
|
|
5074
|
-
#
|
|
5074
|
+
# Updates a specific employee's opening balances
|
|
5075
5075
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5076
5076
|
# @param employee_id [String] Employee id for single object
|
|
5077
5077
|
# @param employee_opening_balances [EmployeeOpeningBalances]
|
|
@@ -5094,7 +5094,7 @@ module XeroRuby
|
|
|
5094
5094
|
fail ArgumentError, "Missing the required parameter 'employee_opening_balances' when calling PayrollUkApi.update_employee_opening_balances"
|
|
5095
5095
|
end
|
|
5096
5096
|
# resource path
|
|
5097
|
-
local_var_path = '/Employees/{
|
|
5097
|
+
local_var_path = '/Employees/{EmployeeID}/ukopeningbalances'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
|
5098
5098
|
|
|
5099
5099
|
# camelize keys of incoming `where` opts
|
|
5100
5100
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -5142,7 +5142,7 @@ module XeroRuby
|
|
|
5142
5142
|
return data, status_code, headers
|
|
5143
5143
|
end
|
|
5144
5144
|
|
|
5145
|
-
#
|
|
5145
|
+
# Updates salary and wages record for a specific employee
|
|
5146
5146
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5147
5147
|
# @param employee_id [String] Employee id for single object
|
|
5148
5148
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
|
@@ -5154,7 +5154,7 @@ module XeroRuby
|
|
|
5154
5154
|
data
|
|
5155
5155
|
end
|
|
5156
5156
|
|
|
5157
|
-
#
|
|
5157
|
+
# Updates salary and wages record for a specific employee
|
|
5158
5158
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5159
5159
|
# @param employee_id [String] Employee id for single object
|
|
5160
5160
|
# @param salary_and_wages_id [String] Id for single pay template earnings object
|
|
@@ -5182,7 +5182,7 @@ module XeroRuby
|
|
|
5182
5182
|
fail ArgumentError, "Missing the required parameter 'salary_and_wage' when calling PayrollUkApi.update_employee_salary_and_wage"
|
|
5183
5183
|
end
|
|
5184
5184
|
# resource path
|
|
5185
|
-
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)
|
|
5186
5186
|
|
|
5187
5187
|
# camelize keys of incoming `where` opts
|
|
5188
5188
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
|
@@ -5230,7 +5230,7 @@ module XeroRuby
|
|
|
5230
5230
|
return data, status_code, headers
|
|
5231
5231
|
end
|
|
5232
5232
|
|
|
5233
|
-
#
|
|
5233
|
+
# Updates a specific pay run
|
|
5234
5234
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5235
5235
|
# @param pay_run_id [String] Identifier for the pay run
|
|
5236
5236
|
# @param pay_run [PayRun]
|
|
@@ -5241,7 +5241,7 @@ module XeroRuby
|
|
|
5241
5241
|
data
|
|
5242
5242
|
end
|
|
5243
5243
|
|
|
5244
|
-
#
|
|
5244
|
+
# Updates a specific pay run
|
|
5245
5245
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5246
5246
|
# @param pay_run_id [String] Identifier for the pay run
|
|
5247
5247
|
# @param pay_run [PayRun]
|
|
@@ -5312,7 +5312,7 @@ module XeroRuby
|
|
|
5312
5312
|
return data, status_code, headers
|
|
5313
5313
|
end
|
|
5314
5314
|
|
|
5315
|
-
#
|
|
5315
|
+
# Updates a specific timesheet line for a specific timesheet
|
|
5316
5316
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5317
5317
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
5318
5318
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|
|
@@ -5324,7 +5324,7 @@ module XeroRuby
|
|
|
5324
5324
|
data
|
|
5325
5325
|
end
|
|
5326
5326
|
|
|
5327
|
-
#
|
|
5327
|
+
# Updates a specific timesheet line for a specific timesheet
|
|
5328
5328
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
|
5329
5329
|
# @param timesheet_id [String] Identifier for the timesheet
|
|
5330
5330
|
# @param timesheet_line_id [String] Identifier for the timesheet line
|