xero-ruby 2.4.1 → 3.2.1
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 +240 -189
- data/lib/xero-ruby.rb +10 -4
- data/lib/xero-ruby/api/accounting_api.rb +1308 -920
- data/lib/xero-ruby/api/asset_api.rb +15 -14
- data/lib/xero-ruby/api/files_api.rb +204 -85
- data/lib/xero-ruby/api/payroll_au_api.rb +121 -93
- data/lib/xero-ruby/api/payroll_nz_api.rb +307 -240
- data/lib/xero-ruby/api/payroll_uk_api.rb +317 -254
- data/lib/xero-ruby/api/project_api.rb +71 -59
- data/lib/xero-ruby/api_client.rb +182 -128
- data/lib/xero-ruby/api_error.rb +4 -4
- data/lib/xero-ruby/configuration.rb +17 -5
- data/lib/xero-ruby/models/accounting/account.rb +25 -12
- data/lib/xero-ruby/models/accounting/account_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/accounts.rb +25 -11
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +25 -11
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +25 -11
- data/lib/xero-ruby/models/accounting/action.rb +25 -11
- data/lib/xero-ruby/models/accounting/actions.rb +25 -11
- data/lib/xero-ruby/models/accounting/address.rb +27 -14
- data/lib/xero-ruby/models/accounting/address_for_organisation.rb +484 -0
- data/lib/xero-ruby/models/accounting/allocation.rb +25 -11
- data/lib/xero-ruby/models/accounting/allocations.rb +25 -11
- data/lib/xero-ruby/models/accounting/attachment.rb +25 -11
- data/lib/xero-ruby/models/accounting/attachments.rb +25 -11
- data/lib/xero-ruby/models/accounting/balance_details.rb +25 -11
- data/lib/xero-ruby/models/accounting/balances.rb +25 -11
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +25 -11
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +25 -11
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +25 -11
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +25 -11
- data/lib/xero-ruby/models/accounting/batch_payment.rb +41 -15
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +25 -11
- data/lib/xero-ruby/models/accounting/batch_payments.rb +25 -11
- data/lib/xero-ruby/models/accounting/bill.rb +25 -11
- data/lib/xero-ruby/models/accounting/branding_theme.rb +25 -11
- data/lib/xero-ruby/models/accounting/branding_themes.rb +25 -11
- data/lib/xero-ruby/models/accounting/budget.rb +327 -0
- data/lib/xero-ruby/models/accounting/budget_balance.rb +267 -0
- data/lib/xero-ruby/models/accounting/budget_line.rb +244 -0
- data/lib/xero-ruby/models/{files/file_response204.rb → accounting/budgets.rb} +40 -24
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +26 -12
- data/lib/xero-ruby/models/accounting/cis_org_settings.rb +224 -0
- data/lib/xero-ruby/models/accounting/cis_setting.rb +26 -12
- data/lib/xero-ruby/models/accounting/cis_settings.rb +25 -11
- data/lib/xero-ruby/models/accounting/contact.rb +25 -11
- data/lib/xero-ruby/models/accounting/contact_group.rb +25 -11
- data/lib/xero-ruby/models/accounting/contact_groups.rb +25 -11
- data/lib/xero-ruby/models/accounting/contact_person.rb +25 -11
- data/lib/xero-ruby/models/accounting/contacts.rb +25 -11
- data/lib/xero-ruby/models/accounting/conversion_balances.rb +25 -11
- data/lib/xero-ruby/models/accounting/conversion_date.rb +25 -11
- data/lib/xero-ruby/models/accounting/country_code.rb +1 -2
- data/lib/xero-ruby/models/accounting/credit_note.rb +62 -16
- data/lib/xero-ruby/models/accounting/credit_notes.rb +25 -11
- data/lib/xero-ruby/models/accounting/currencies.rb +25 -11
- data/lib/xero-ruby/models/accounting/currency.rb +25 -11
- data/lib/xero-ruby/models/accounting/currency_code.rb +1 -2
- data/lib/xero-ruby/models/accounting/element.rb +25 -11
- data/lib/xero-ruby/models/accounting/employee.rb +25 -11
- data/lib/xero-ruby/models/accounting/employees.rb +25 -11
- data/lib/xero-ruby/models/accounting/error.rb +25 -11
- data/lib/xero-ruby/models/accounting/expense_claim.rb +25 -11
- data/lib/xero-ruby/models/accounting/expense_claims.rb +25 -11
- data/lib/xero-ruby/models/accounting/external_link.rb +25 -11
- data/lib/xero-ruby/models/accounting/history_record.rb +25 -11
- data/lib/xero-ruby/models/accounting/history_records.rb +25 -11
- data/lib/xero-ruby/models/accounting/import_summary.rb +25 -11
- data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +33 -19
- data/lib/xero-ruby/models/accounting/import_summary_object.rb +25 -11
- data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +25 -11
- data/lib/xero-ruby/models/accounting/invoice.rb +37 -28
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +25 -11
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +25 -11
- data/lib/xero-ruby/models/accounting/invoices.rb +25 -11
- data/lib/xero-ruby/models/accounting/item.rb +25 -11
- data/lib/xero-ruby/models/accounting/items.rb +25 -11
- data/lib/xero-ruby/models/accounting/journal.rb +25 -11
- data/lib/xero-ruby/models/accounting/journal_line.rb +25 -11
- data/lib/xero-ruby/models/accounting/journals.rb +25 -11
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -2
- data/lib/xero-ruby/models/accounting/line_item.rb +36 -12
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +25 -11
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +25 -11
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +25 -11
- data/lib/xero-ruby/models/accounting/manual_journal.rb +25 -11
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +25 -11
- data/lib/xero-ruby/models/accounting/manual_journals.rb +25 -11
- data/lib/xero-ruby/models/accounting/online_invoice.rb +25 -11
- data/lib/xero-ruby/models/accounting/online_invoices.rb +25 -11
- data/lib/xero-ruby/models/accounting/organisation.rb +26 -14
- data/lib/xero-ruby/models/accounting/organisations.rb +25 -11
- data/lib/xero-ruby/models/accounting/overpayment.rb +25 -11
- data/lib/xero-ruby/models/accounting/overpayments.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment.rb +36 -12
- data/lib/xero-ruby/models/accounting/payment_delete.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment_service.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment_services.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment_term.rb +25 -11
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/payments.rb +25 -11
- data/lib/xero-ruby/models/accounting/phone.rb +25 -11
- data/lib/xero-ruby/models/accounting/prepayment.rb +38 -12
- data/lib/xero-ruby/models/accounting/prepayments.rb +25 -11
- data/lib/xero-ruby/models/accounting/purchase.rb +25 -11
- data/lib/xero-ruby/models/accounting/purchase_order.rb +25 -11
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +25 -11
- data/lib/xero-ruby/models/accounting/quote.rb +25 -11
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -2
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -2
- data/lib/xero-ruby/models/accounting/quotes.rb +25 -11
- data/lib/xero-ruby/models/accounting/receipt.rb +25 -11
- data/lib/xero-ruby/models/accounting/receipts.rb +25 -11
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +25 -11
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +25 -11
- data/lib/xero-ruby/models/accounting/report.rb +26 -22
- data/lib/xero-ruby/models/accounting/report_attribute.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_cell.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_fields.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_row.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_rows.rb +25 -11
- data/lib/xero-ruby/models/accounting/report_with_row.rb +26 -12
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +25 -11
- data/lib/xero-ruby/models/accounting/reports.rb +25 -11
- data/lib/xero-ruby/models/accounting/request_empty.rb +25 -11
- data/lib/xero-ruby/models/accounting/row_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +25 -11
- data/lib/xero-ruby/models/accounting/schedule.rb +25 -11
- data/lib/xero-ruby/models/accounting/setup.rb +25 -11
- data/lib/xero-ruby/models/accounting/tax_component.rb +25 -11
- data/lib/xero-ruby/models/accounting/tax_rate.rb +25 -11
- data/lib/xero-ruby/models/accounting/tax_rates.rb +25 -11
- data/lib/xero-ruby/models/accounting/tax_type.rb +1 -2
- data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +25 -11
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -2
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +25 -11
- data/lib/xero-ruby/models/accounting/tracking_category.rb +25 -11
- data/lib/xero-ruby/models/accounting/tracking_option.rb +25 -11
- data/lib/xero-ruby/models/accounting/tracking_options.rb +25 -11
- data/lib/xero-ruby/models/accounting/user.rb +25 -11
- data/lib/xero-ruby/models/accounting/users.rb +25 -11
- data/lib/xero-ruby/models/accounting/validation_error.rb +25 -11
- data/lib/xero-ruby/models/assets/asset.rb +25 -11
- data/lib/xero-ruby/models/assets/asset_status.rb +1 -2
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -2
- data/lib/xero-ruby/models/assets/asset_type.rb +25 -11
- data/lib/xero-ruby/models/assets/assets.rb +25 -11
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +25 -11
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +25 -11
- data/lib/xero-ruby/models/assets/error.rb +25 -11
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +26 -12
- data/lib/xero-ruby/models/assets/pagination.rb +25 -11
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +26 -12
- data/lib/xero-ruby/models/assets/setting.rb +25 -11
- data/lib/xero-ruby/models/files/association.rb +25 -11
- data/lib/xero-ruby/models/files/file_object.rb +25 -11
- data/lib/xero-ruby/models/files/files.rb +25 -11
- data/lib/xero-ruby/models/files/folder.rb +25 -11
- data/lib/xero-ruby/models/files/folders.rb +25 -11
- data/lib/xero-ruby/models/files/object_group.rb +1 -2
- data/lib/xero-ruby/models/files/object_type.rb +1 -2
- data/lib/xero-ruby/models/files/{inline_object.rb → upload_object.rb} +43 -14
- data/lib/xero-ruby/models/files/user.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/account.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/account_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/allowance_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/api_exception.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/bank_account.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/calendar_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/deduction_line.rb +25 -16
- data/lib/xero-ruby/models/payroll_au/deduction_type.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -2
- data/lib/xero-ruby/models/payroll_au/employee.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/employee_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/employees.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/home_address.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_application.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_applications.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_balance.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/leave_lines.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_period.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/leave_type.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/opening_balances.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_item.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_items.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_run.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/pay_runs.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/pay_template.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslip.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslip_object.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/payslips.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/rate_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/residency_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/settings.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/settings_object.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/state.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/super_fund.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/super_funds.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/super_line.rb +26 -12
- data/lib/xero-ruby/models/payroll_au/super_membership.rb +26 -12
- data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/tax_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/timesheet.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +1 -2
- data/lib/xero-ruby/models/payroll_au/timesheets.rb +25 -11
- data/lib/xero-ruby/models/payroll_au/validation_error.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/account.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/accounts.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/address.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/bank_account.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/benefit.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/deduction.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/deductions.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employees.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employment.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/employment_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/leave_period.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_type.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/leave_types.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pagination.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/payment_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/payment_method.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/problem.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +28 -13
- data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/settings.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/superannuations.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/tax_code.rb +0 -1
- data/lib/xero-ruby/models/payroll_nz/tax_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/timesheet.rb +28 -13
- data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +25 -11
- data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/timesheets.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +24 -10
- data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/account.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/accounts.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/address.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/bank_account.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/benefit.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/benefits.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/deduction.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/deductions.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +34 -12
- data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +25 -11
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employees.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employment.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/employment_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_period.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_type.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/leave_types.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pagination.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payment_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payment_method.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payslip.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/payslips.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/problem.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +27 -12
- data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/settings.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +0 -1
- data/lib/xero-ruby/models/payroll_uk/tax_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheet.rb +25 -11
- data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/timesheets.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +24 -10
- data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +24 -10
- data/lib/xero-ruby/models/projects/amount.rb +24 -10
- data/lib/xero-ruby/models/projects/charge_type.rb +0 -1
- data/lib/xero-ruby/models/projects/currency_code.rb +0 -1
- data/lib/xero-ruby/models/projects/error.rb +24 -10
- data/lib/xero-ruby/models/projects/pagination.rb +24 -10
- data/lib/xero-ruby/models/projects/project.rb +24 -10
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +24 -10
- data/lib/xero-ruby/models/projects/project_patch.rb +24 -10
- data/lib/xero-ruby/models/projects/project_status.rb +0 -1
- data/lib/xero-ruby/models/projects/project_user.rb +24 -10
- data/lib/xero-ruby/models/projects/project_users.rb +24 -10
- data/lib/xero-ruby/models/projects/projects.rb +24 -10
- data/lib/xero-ruby/models/projects/task.rb +24 -10
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +24 -10
- data/lib/xero-ruby/models/projects/tasks.rb +24 -10
- data/lib/xero-ruby/models/projects/time_entries.rb +24 -10
- data/lib/xero-ruby/models/projects/time_entry.rb +27 -12
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +24 -10
- data/lib/xero-ruby/string_serialization.rb +52 -0
- data/lib/xero-ruby/version.rb +3 -3
- data/lib/xero-ruby/where.rb +65 -0
- data/spec/api_client_spec.rb +292 -14
- data/spec/api_error_spec.rb +45 -0
- data/spec/configuration_spec.rb +26 -16
- data/spec/files/models/inline_object_spec.rb +3 -3
- data/spec/helper_methods_spec.rb +110 -0
- data/spec/where_spec.rb +82 -0
- metadata +43 -12
- data/spec/files/models/file_response204_spec.rb +0 -41
@@ -1,9 +1,8 @@
|
|
1
1
|
=begin
|
2
|
-
#Xero Payroll AU
|
2
|
+
#Xero Payroll AU API
|
3
3
|
|
4
4
|
#This is the Xero Payroll API for orgs in Australia region.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.6.0
|
7
6
|
Contact: api@xero.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 4.3.1
|
@@ -17,7 +16,7 @@ module XeroRuby
|
|
17
16
|
def initialize(api_client = ApiClient.new)
|
18
17
|
@api_client = api_client
|
19
18
|
end
|
20
|
-
#
|
19
|
+
# Creates a payroll employee
|
21
20
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
22
21
|
# @param employee [Array<Employee>]
|
23
22
|
# @param [Hash] opts the optional parameters
|
@@ -27,12 +26,13 @@ module XeroRuby
|
|
27
26
|
data
|
28
27
|
end
|
29
28
|
|
30
|
-
#
|
29
|
+
# Creates a payroll employee
|
31
30
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
32
31
|
# @param employee [Array<Employee>]
|
33
32
|
# @param [Hash] opts the optional parameters
|
34
33
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
35
|
-
def create_employee_with_http_info(xero_tenant_id, employee,
|
34
|
+
def create_employee_with_http_info(xero_tenant_id, employee, options = {})
|
35
|
+
opts = options.dup
|
36
36
|
if @api_client.config.debugging
|
37
37
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.create_employee ...'
|
38
38
|
end
|
@@ -93,7 +93,7 @@ module XeroRuby
|
|
93
93
|
return data, status_code, headers
|
94
94
|
end
|
95
95
|
|
96
|
-
#
|
96
|
+
# Creates a leave application
|
97
97
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
98
98
|
# @param leave_application [Array<LeaveApplication>]
|
99
99
|
# @param [Hash] opts the optional parameters
|
@@ -103,12 +103,13 @@ module XeroRuby
|
|
103
103
|
data
|
104
104
|
end
|
105
105
|
|
106
|
-
#
|
106
|
+
# Creates a leave application
|
107
107
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
108
108
|
# @param leave_application [Array<LeaveApplication>]
|
109
109
|
# @param [Hash] opts the optional parameters
|
110
110
|
# @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
|
111
|
-
def create_leave_application_with_http_info(xero_tenant_id, leave_application,
|
111
|
+
def create_leave_application_with_http_info(xero_tenant_id, leave_application, options = {})
|
112
|
+
opts = options.dup
|
112
113
|
if @api_client.config.debugging
|
113
114
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.create_leave_application ...'
|
114
115
|
end
|
@@ -169,7 +170,7 @@ module XeroRuby
|
|
169
170
|
return data, status_code, headers
|
170
171
|
end
|
171
172
|
|
172
|
-
#
|
173
|
+
# Creates a pay item
|
173
174
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
174
175
|
# @param pay_item [PayItem]
|
175
176
|
# @param [Hash] opts the optional parameters
|
@@ -179,12 +180,13 @@ module XeroRuby
|
|
179
180
|
data
|
180
181
|
end
|
181
182
|
|
182
|
-
#
|
183
|
+
# Creates a pay item
|
183
184
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
184
185
|
# @param pay_item [PayItem]
|
185
186
|
# @param [Hash] opts the optional parameters
|
186
187
|
# @return [Array<(PayItems, Integer, Hash)>] PayItems data, response status code and response headers
|
187
|
-
def create_pay_item_with_http_info(xero_tenant_id, pay_item,
|
188
|
+
def create_pay_item_with_http_info(xero_tenant_id, pay_item, options = {})
|
189
|
+
opts = options.dup
|
188
190
|
if @api_client.config.debugging
|
189
191
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.create_pay_item ...'
|
190
192
|
end
|
@@ -245,7 +247,7 @@ module XeroRuby
|
|
245
247
|
return data, status_code, headers
|
246
248
|
end
|
247
249
|
|
248
|
-
#
|
250
|
+
# Creates a pay run
|
249
251
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
250
252
|
# @param pay_run [Array<PayRun>]
|
251
253
|
# @param [Hash] opts the optional parameters
|
@@ -255,12 +257,13 @@ module XeroRuby
|
|
255
257
|
data
|
256
258
|
end
|
257
259
|
|
258
|
-
#
|
260
|
+
# Creates a pay run
|
259
261
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
260
262
|
# @param pay_run [Array<PayRun>]
|
261
263
|
# @param [Hash] opts the optional parameters
|
262
264
|
# @return [Array<(PayRuns, Integer, Hash)>] PayRuns data, response status code and response headers
|
263
|
-
def create_pay_run_with_http_info(xero_tenant_id, pay_run,
|
265
|
+
def create_pay_run_with_http_info(xero_tenant_id, pay_run, options = {})
|
266
|
+
opts = options.dup
|
264
267
|
if @api_client.config.debugging
|
265
268
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.create_pay_run ...'
|
266
269
|
end
|
@@ -321,7 +324,7 @@ module XeroRuby
|
|
321
324
|
return data, status_code, headers
|
322
325
|
end
|
323
326
|
|
324
|
-
#
|
327
|
+
# Creates a Payroll Calendar
|
325
328
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
326
329
|
# @param payroll_calendar [Array<PayrollCalendar>]
|
327
330
|
# @param [Hash] opts the optional parameters
|
@@ -331,12 +334,13 @@ module XeroRuby
|
|
331
334
|
data
|
332
335
|
end
|
333
336
|
|
334
|
-
#
|
337
|
+
# Creates a Payroll Calendar
|
335
338
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
336
339
|
# @param payroll_calendar [Array<PayrollCalendar>]
|
337
340
|
# @param [Hash] opts the optional parameters
|
338
341
|
# @return [Array<(PayrollCalendars, Integer, Hash)>] PayrollCalendars data, response status code and response headers
|
339
|
-
def create_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar,
|
342
|
+
def create_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar, options = {})
|
343
|
+
opts = options.dup
|
340
344
|
if @api_client.config.debugging
|
341
345
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.create_payroll_calendar ...'
|
342
346
|
end
|
@@ -397,7 +401,7 @@ module XeroRuby
|
|
397
401
|
return data, status_code, headers
|
398
402
|
end
|
399
403
|
|
400
|
-
#
|
404
|
+
# Creates a superfund
|
401
405
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
402
406
|
# @param super_fund [Array<SuperFund>]
|
403
407
|
# @param [Hash] opts the optional parameters
|
@@ -407,12 +411,13 @@ module XeroRuby
|
|
407
411
|
data
|
408
412
|
end
|
409
413
|
|
410
|
-
#
|
414
|
+
# Creates a superfund
|
411
415
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
412
416
|
# @param super_fund [Array<SuperFund>]
|
413
417
|
# @param [Hash] opts the optional parameters
|
414
418
|
# @return [Array<(SuperFunds, Integer, Hash)>] SuperFunds data, response status code and response headers
|
415
|
-
def create_superfund_with_http_info(xero_tenant_id, super_fund,
|
419
|
+
def create_superfund_with_http_info(xero_tenant_id, super_fund, options = {})
|
420
|
+
opts = options.dup
|
416
421
|
if @api_client.config.debugging
|
417
422
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.create_superfund ...'
|
418
423
|
end
|
@@ -473,7 +478,7 @@ module XeroRuby
|
|
473
478
|
return data, status_code, headers
|
474
479
|
end
|
475
480
|
|
476
|
-
#
|
481
|
+
# Creates a timesheet
|
477
482
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
478
483
|
# @param timesheet [Array<Timesheet>]
|
479
484
|
# @param [Hash] opts the optional parameters
|
@@ -483,12 +488,13 @@ module XeroRuby
|
|
483
488
|
data
|
484
489
|
end
|
485
490
|
|
486
|
-
#
|
491
|
+
# Creates a timesheet
|
487
492
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
488
493
|
# @param timesheet [Array<Timesheet>]
|
489
494
|
# @param [Hash] opts the optional parameters
|
490
495
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
491
|
-
def create_timesheet_with_http_info(xero_tenant_id, timesheet,
|
496
|
+
def create_timesheet_with_http_info(xero_tenant_id, timesheet, options = {})
|
497
|
+
opts = options.dup
|
492
498
|
if @api_client.config.debugging
|
493
499
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.create_timesheet ...'
|
494
500
|
end
|
@@ -549,7 +555,7 @@ module XeroRuby
|
|
549
555
|
return data, status_code, headers
|
550
556
|
end
|
551
557
|
|
552
|
-
#
|
558
|
+
# Retrieves an employee's detail by unique employee id
|
553
559
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
554
560
|
# @param employee_id [String] Employee id for single object
|
555
561
|
# @param [Hash] opts the optional parameters
|
@@ -559,12 +565,13 @@ module XeroRuby
|
|
559
565
|
data
|
560
566
|
end
|
561
567
|
|
562
|
-
#
|
568
|
+
# Retrieves an employee's detail by unique employee id
|
563
569
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
564
570
|
# @param employee_id [String] Employee id for single object
|
565
571
|
# @param [Hash] opts the optional parameters
|
566
572
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
567
|
-
def get_employee_with_http_info(xero_tenant_id, employee_id,
|
573
|
+
def get_employee_with_http_info(xero_tenant_id, employee_id, options = {})
|
574
|
+
opts = options.dup
|
568
575
|
if @api_client.config.debugging
|
569
576
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_employee ...'
|
570
577
|
end
|
@@ -577,7 +584,7 @@ module XeroRuby
|
|
577
584
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollAuApi.get_employee"
|
578
585
|
end
|
579
586
|
# resource path
|
580
|
-
local_var_path = '/Employees/{
|
587
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
581
588
|
|
582
589
|
# camelize keys of incoming `where` opts
|
583
590
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -623,7 +630,7 @@ module XeroRuby
|
|
623
630
|
return data, status_code, headers
|
624
631
|
end
|
625
632
|
|
626
|
-
#
|
633
|
+
# Searches payroll employees
|
627
634
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
628
635
|
# @param [Hash] opts the optional parameters
|
629
636
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -636,7 +643,7 @@ module XeroRuby
|
|
636
643
|
data
|
637
644
|
end
|
638
645
|
|
639
|
-
#
|
646
|
+
# Searches payroll employees
|
640
647
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
641
648
|
# @param [Hash] opts the optional parameters
|
642
649
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -644,7 +651,8 @@ module XeroRuby
|
|
644
651
|
# @option opts [String] :order Order by an any element
|
645
652
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 employees will be returned in a single API call
|
646
653
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
647
|
-
def get_employees_with_http_info(xero_tenant_id,
|
654
|
+
def get_employees_with_http_info(xero_tenant_id, options = {})
|
655
|
+
opts = options.dup
|
648
656
|
if @api_client.config.debugging
|
649
657
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_employees ...'
|
650
658
|
end
|
@@ -703,7 +711,7 @@ module XeroRuby
|
|
703
711
|
return data, status_code, headers
|
704
712
|
end
|
705
713
|
|
706
|
-
#
|
714
|
+
# Retrieves a leave application by a unique leave application id
|
707
715
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
708
716
|
# @param leave_application_id [String] Leave Application id for single object
|
709
717
|
# @param [Hash] opts the optional parameters
|
@@ -713,12 +721,13 @@ module XeroRuby
|
|
713
721
|
data
|
714
722
|
end
|
715
723
|
|
716
|
-
#
|
724
|
+
# Retrieves a leave application by a unique leave application id
|
717
725
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
718
726
|
# @param leave_application_id [String] Leave Application id for single object
|
719
727
|
# @param [Hash] opts the optional parameters
|
720
728
|
# @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
|
721
|
-
def get_leave_application_with_http_info(xero_tenant_id, leave_application_id,
|
729
|
+
def get_leave_application_with_http_info(xero_tenant_id, leave_application_id, options = {})
|
730
|
+
opts = options.dup
|
722
731
|
if @api_client.config.debugging
|
723
732
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_leave_application ...'
|
724
733
|
end
|
@@ -731,7 +740,7 @@ module XeroRuby
|
|
731
740
|
fail ArgumentError, "Missing the required parameter 'leave_application_id' when calling PayrollAuApi.get_leave_application"
|
732
741
|
end
|
733
742
|
# resource path
|
734
|
-
local_var_path = '/LeaveApplications/{
|
743
|
+
local_var_path = '/LeaveApplications/{LeaveApplicationID}'.sub('{' + 'LeaveApplicationID' + '}', leave_application_id.to_s)
|
735
744
|
|
736
745
|
# camelize keys of incoming `where` opts
|
737
746
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -777,7 +786,7 @@ module XeroRuby
|
|
777
786
|
return data, status_code, headers
|
778
787
|
end
|
779
788
|
|
780
|
-
#
|
789
|
+
# Retrieves leave applications
|
781
790
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
782
791
|
# @param [Hash] opts the optional parameters
|
783
792
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -790,7 +799,7 @@ module XeroRuby
|
|
790
799
|
data
|
791
800
|
end
|
792
801
|
|
793
|
-
#
|
802
|
+
# Retrieves leave applications
|
794
803
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
795
804
|
# @param [Hash] opts the optional parameters
|
796
805
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -798,7 +807,8 @@ module XeroRuby
|
|
798
807
|
# @option opts [String] :order Order by an any element
|
799
808
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
800
809
|
# @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
|
801
|
-
def get_leave_applications_with_http_info(xero_tenant_id,
|
810
|
+
def get_leave_applications_with_http_info(xero_tenant_id, options = {})
|
811
|
+
opts = options.dup
|
802
812
|
if @api_client.config.debugging
|
803
813
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_leave_applications ...'
|
804
814
|
end
|
@@ -857,7 +867,7 @@ module XeroRuby
|
|
857
867
|
return data, status_code, headers
|
858
868
|
end
|
859
869
|
|
860
|
-
#
|
870
|
+
# Retrieves pay items
|
861
871
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
862
872
|
# @param [Hash] opts the optional parameters
|
863
873
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -870,7 +880,7 @@ module XeroRuby
|
|
870
880
|
data
|
871
881
|
end
|
872
882
|
|
873
|
-
#
|
883
|
+
# Retrieves pay items
|
874
884
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
875
885
|
# @param [Hash] opts the optional parameters
|
876
886
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -878,7 +888,8 @@ module XeroRuby
|
|
878
888
|
# @option opts [String] :order Order by an any element
|
879
889
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
880
890
|
# @return [Array<(PayItems, Integer, Hash)>] PayItems data, response status code and response headers
|
881
|
-
def get_pay_items_with_http_info(xero_tenant_id,
|
891
|
+
def get_pay_items_with_http_info(xero_tenant_id, options = {})
|
892
|
+
opts = options.dup
|
882
893
|
if @api_client.config.debugging
|
883
894
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_items ...'
|
884
895
|
end
|
@@ -937,7 +948,7 @@ module XeroRuby
|
|
937
948
|
return data, status_code, headers
|
938
949
|
end
|
939
950
|
|
940
|
-
#
|
951
|
+
# Retrieves a pay run by using a unique pay run id
|
941
952
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
942
953
|
# @param pay_run_id [String] PayRun id for single object
|
943
954
|
# @param [Hash] opts the optional parameters
|
@@ -947,12 +958,13 @@ module XeroRuby
|
|
947
958
|
data
|
948
959
|
end
|
949
960
|
|
950
|
-
#
|
961
|
+
# Retrieves a pay run by using a unique pay run id
|
951
962
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
952
963
|
# @param pay_run_id [String] PayRun id for single object
|
953
964
|
# @param [Hash] opts the optional parameters
|
954
965
|
# @return [Array<(PayRuns, Integer, Hash)>] PayRuns data, response status code and response headers
|
955
|
-
def get_pay_run_with_http_info(xero_tenant_id, pay_run_id,
|
966
|
+
def get_pay_run_with_http_info(xero_tenant_id, pay_run_id, options = {})
|
967
|
+
opts = options.dup
|
956
968
|
if @api_client.config.debugging
|
957
969
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_run ...'
|
958
970
|
end
|
@@ -1011,7 +1023,7 @@ module XeroRuby
|
|
1011
1023
|
return data, status_code, headers
|
1012
1024
|
end
|
1013
1025
|
|
1014
|
-
#
|
1026
|
+
# Retrieves pay runs
|
1015
1027
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1016
1028
|
# @param [Hash] opts the optional parameters
|
1017
1029
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -1024,7 +1036,7 @@ module XeroRuby
|
|
1024
1036
|
data
|
1025
1037
|
end
|
1026
1038
|
|
1027
|
-
#
|
1039
|
+
# Retrieves pay runs
|
1028
1040
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1029
1041
|
# @param [Hash] opts the optional parameters
|
1030
1042
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -1032,7 +1044,8 @@ module XeroRuby
|
|
1032
1044
|
# @option opts [String] :order Order by an any element
|
1033
1045
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 PayRuns will be returned in a single API call
|
1034
1046
|
# @return [Array<(PayRuns, Integer, Hash)>] PayRuns data, response status code and response headers
|
1035
|
-
def get_pay_runs_with_http_info(xero_tenant_id,
|
1047
|
+
def get_pay_runs_with_http_info(xero_tenant_id, options = {})
|
1048
|
+
opts = options.dup
|
1036
1049
|
if @api_client.config.debugging
|
1037
1050
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_pay_runs ...'
|
1038
1051
|
end
|
@@ -1091,7 +1104,7 @@ module XeroRuby
|
|
1091
1104
|
return data, status_code, headers
|
1092
1105
|
end
|
1093
1106
|
|
1094
|
-
#
|
1107
|
+
# Retrieves payroll calendar by using a unique payroll calendar ID
|
1095
1108
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1096
1109
|
# @param payroll_calendar_id [String] Payroll Calendar id for single object
|
1097
1110
|
# @param [Hash] opts the optional parameters
|
@@ -1101,12 +1114,13 @@ module XeroRuby
|
|
1101
1114
|
data
|
1102
1115
|
end
|
1103
1116
|
|
1104
|
-
#
|
1117
|
+
# Retrieves payroll calendar by using a unique payroll calendar ID
|
1105
1118
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1106
1119
|
# @param payroll_calendar_id [String] Payroll Calendar id for single object
|
1107
1120
|
# @param [Hash] opts the optional parameters
|
1108
1121
|
# @return [Array<(PayrollCalendars, Integer, Hash)>] PayrollCalendars data, response status code and response headers
|
1109
|
-
def get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id,
|
1122
|
+
def get_payroll_calendar_with_http_info(xero_tenant_id, payroll_calendar_id, options = {})
|
1123
|
+
opts = options.dup
|
1110
1124
|
if @api_client.config.debugging
|
1111
1125
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payroll_calendar ...'
|
1112
1126
|
end
|
@@ -1165,7 +1179,7 @@ module XeroRuby
|
|
1165
1179
|
return data, status_code, headers
|
1166
1180
|
end
|
1167
1181
|
|
1168
|
-
#
|
1182
|
+
# Retrieves payroll calendars
|
1169
1183
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1170
1184
|
# @param [Hash] opts the optional parameters
|
1171
1185
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -1178,7 +1192,7 @@ module XeroRuby
|
|
1178
1192
|
data
|
1179
1193
|
end
|
1180
1194
|
|
1181
|
-
#
|
1195
|
+
# Retrieves payroll calendars
|
1182
1196
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1183
1197
|
# @param [Hash] opts the optional parameters
|
1184
1198
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -1186,7 +1200,8 @@ module XeroRuby
|
|
1186
1200
|
# @option opts [String] :order Order by an any element
|
1187
1201
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 objects will be returned in a single API call
|
1188
1202
|
# @return [Array<(PayrollCalendars, Integer, Hash)>] PayrollCalendars data, response status code and response headers
|
1189
|
-
def get_payroll_calendars_with_http_info(xero_tenant_id,
|
1203
|
+
def get_payroll_calendars_with_http_info(xero_tenant_id, options = {})
|
1204
|
+
opts = options.dup
|
1190
1205
|
if @api_client.config.debugging
|
1191
1206
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payroll_calendars ...'
|
1192
1207
|
end
|
@@ -1245,7 +1260,7 @@ module XeroRuby
|
|
1245
1260
|
return data, status_code, headers
|
1246
1261
|
end
|
1247
1262
|
|
1248
|
-
#
|
1263
|
+
# Retrieves for a payslip by a unique payslip id
|
1249
1264
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1250
1265
|
# @param payslip_id [String] Payslip id for single object
|
1251
1266
|
# @param [Hash] opts the optional parameters
|
@@ -1255,12 +1270,13 @@ module XeroRuby
|
|
1255
1270
|
data
|
1256
1271
|
end
|
1257
1272
|
|
1258
|
-
#
|
1273
|
+
# Retrieves for a payslip by a unique payslip id
|
1259
1274
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1260
1275
|
# @param payslip_id [String] Payslip id for single object
|
1261
1276
|
# @param [Hash] opts the optional parameters
|
1262
1277
|
# @return [Array<(PayslipObject, Integer, Hash)>] PayslipObject data, response status code and response headers
|
1263
|
-
def get_payslip_with_http_info(xero_tenant_id, payslip_id,
|
1278
|
+
def get_payslip_with_http_info(xero_tenant_id, payslip_id, options = {})
|
1279
|
+
opts = options.dup
|
1264
1280
|
if @api_client.config.debugging
|
1265
1281
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_payslip ...'
|
1266
1282
|
end
|
@@ -1319,7 +1335,7 @@ module XeroRuby
|
|
1319
1335
|
return data, status_code, headers
|
1320
1336
|
end
|
1321
1337
|
|
1322
|
-
#
|
1338
|
+
# Retrieves payroll settings
|
1323
1339
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1324
1340
|
# @param [Hash] opts the optional parameters
|
1325
1341
|
# @return [SettingsObject]
|
@@ -1328,11 +1344,12 @@ module XeroRuby
|
|
1328
1344
|
data
|
1329
1345
|
end
|
1330
1346
|
|
1331
|
-
#
|
1347
|
+
# Retrieves payroll settings
|
1332
1348
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1333
1349
|
# @param [Hash] opts the optional parameters
|
1334
1350
|
# @return [Array<(SettingsObject, Integer, Hash)>] SettingsObject data, response status code and response headers
|
1335
|
-
def get_settings_with_http_info(xero_tenant_id,
|
1351
|
+
def get_settings_with_http_info(xero_tenant_id, options = {})
|
1352
|
+
opts = options.dup
|
1336
1353
|
if @api_client.config.debugging
|
1337
1354
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_settings ...'
|
1338
1355
|
end
|
@@ -1387,7 +1404,7 @@ module XeroRuby
|
|
1387
1404
|
return data, status_code, headers
|
1388
1405
|
end
|
1389
1406
|
|
1390
|
-
#
|
1407
|
+
# Retrieves a superfund by using a unique superfund ID
|
1391
1408
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1392
1409
|
# @param super_fund_id [String] Superfund id for single object
|
1393
1410
|
# @param [Hash] opts the optional parameters
|
@@ -1397,12 +1414,13 @@ module XeroRuby
|
|
1397
1414
|
data
|
1398
1415
|
end
|
1399
1416
|
|
1400
|
-
#
|
1417
|
+
# Retrieves a superfund by using a unique superfund ID
|
1401
1418
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1402
1419
|
# @param super_fund_id [String] Superfund id for single object
|
1403
1420
|
# @param [Hash] opts the optional parameters
|
1404
1421
|
# @return [Array<(SuperFunds, Integer, Hash)>] SuperFunds data, response status code and response headers
|
1405
|
-
def get_superfund_with_http_info(xero_tenant_id, super_fund_id,
|
1422
|
+
def get_superfund_with_http_info(xero_tenant_id, super_fund_id, options = {})
|
1423
|
+
opts = options.dup
|
1406
1424
|
if @api_client.config.debugging
|
1407
1425
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfund ...'
|
1408
1426
|
end
|
@@ -1461,7 +1479,7 @@ module XeroRuby
|
|
1461
1479
|
return data, status_code, headers
|
1462
1480
|
end
|
1463
1481
|
|
1464
|
-
#
|
1482
|
+
# Retrieves superfund products
|
1465
1483
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1466
1484
|
# @param [Hash] opts the optional parameters
|
1467
1485
|
# @option opts [String] :abn The ABN of the Regulated SuperFund
|
@@ -1472,13 +1490,14 @@ module XeroRuby
|
|
1472
1490
|
data
|
1473
1491
|
end
|
1474
1492
|
|
1475
|
-
#
|
1493
|
+
# Retrieves superfund products
|
1476
1494
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1477
1495
|
# @param [Hash] opts the optional parameters
|
1478
1496
|
# @option opts [String] :abn The ABN of the Regulated SuperFund
|
1479
1497
|
# @option opts [String] :usi The USI of the Regulated SuperFund
|
1480
1498
|
# @return [Array<(SuperFundProducts, Integer, Hash)>] SuperFundProducts data, response status code and response headers
|
1481
|
-
def get_superfund_products_with_http_info(xero_tenant_id,
|
1499
|
+
def get_superfund_products_with_http_info(xero_tenant_id, options = {})
|
1500
|
+
opts = options.dup
|
1482
1501
|
if @api_client.config.debugging
|
1483
1502
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfund_products ...'
|
1484
1503
|
end
|
@@ -1535,7 +1554,7 @@ module XeroRuby
|
|
1535
1554
|
return data, status_code, headers
|
1536
1555
|
end
|
1537
1556
|
|
1538
|
-
#
|
1557
|
+
# Retrieves superfunds
|
1539
1558
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1540
1559
|
# @param [Hash] opts the optional parameters
|
1541
1560
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -1548,7 +1567,7 @@ module XeroRuby
|
|
1548
1567
|
data
|
1549
1568
|
end
|
1550
1569
|
|
1551
|
-
#
|
1570
|
+
# Retrieves superfunds
|
1552
1571
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1553
1572
|
# @param [Hash] opts the optional parameters
|
1554
1573
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -1556,7 +1575,8 @@ module XeroRuby
|
|
1556
1575
|
# @option opts [String] :order Order by an any element
|
1557
1576
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 SuperFunds will be returned in a single API call
|
1558
1577
|
# @return [Array<(SuperFunds, Integer, Hash)>] SuperFunds data, response status code and response headers
|
1559
|
-
def get_superfunds_with_http_info(xero_tenant_id,
|
1578
|
+
def get_superfunds_with_http_info(xero_tenant_id, options = {})
|
1579
|
+
opts = options.dup
|
1560
1580
|
if @api_client.config.debugging
|
1561
1581
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_superfunds ...'
|
1562
1582
|
end
|
@@ -1615,7 +1635,7 @@ module XeroRuby
|
|
1615
1635
|
return data, status_code, headers
|
1616
1636
|
end
|
1617
1637
|
|
1618
|
-
#
|
1638
|
+
# Retrieves a timesheet by using a unique timesheet id
|
1619
1639
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1620
1640
|
# @param timesheet_id [String] Timesheet id for single object
|
1621
1641
|
# @param [Hash] opts the optional parameters
|
@@ -1625,12 +1645,13 @@ module XeroRuby
|
|
1625
1645
|
data
|
1626
1646
|
end
|
1627
1647
|
|
1628
|
-
#
|
1648
|
+
# Retrieves a timesheet by using a unique timesheet id
|
1629
1649
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1630
1650
|
# @param timesheet_id [String] Timesheet id for single object
|
1631
1651
|
# @param [Hash] opts the optional parameters
|
1632
1652
|
# @return [Array<(TimesheetObject, Integer, Hash)>] TimesheetObject data, response status code and response headers
|
1633
|
-
def get_timesheet_with_http_info(xero_tenant_id, timesheet_id,
|
1653
|
+
def get_timesheet_with_http_info(xero_tenant_id, timesheet_id, options = {})
|
1654
|
+
opts = options.dup
|
1634
1655
|
if @api_client.config.debugging
|
1635
1656
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_timesheet ...'
|
1636
1657
|
end
|
@@ -1689,7 +1710,7 @@ module XeroRuby
|
|
1689
1710
|
return data, status_code, headers
|
1690
1711
|
end
|
1691
1712
|
|
1692
|
-
#
|
1713
|
+
# Retrieves timesheets
|
1693
1714
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1694
1715
|
# @param [Hash] opts the optional parameters
|
1695
1716
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -1702,7 +1723,7 @@ module XeroRuby
|
|
1702
1723
|
data
|
1703
1724
|
end
|
1704
1725
|
|
1705
|
-
#
|
1726
|
+
# Retrieves timesheets
|
1706
1727
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1707
1728
|
# @param [Hash] opts the optional parameters
|
1708
1729
|
# @option opts [String] :if_modified_since Only records created or modified since this timestamp will be returned
|
@@ -1710,7 +1731,8 @@ module XeroRuby
|
|
1710
1731
|
# @option opts [String] :order Order by an any element
|
1711
1732
|
# @option opts [Integer] :page e.g. page=1 – Up to 100 timesheets will be returned in a single API call
|
1712
1733
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
1713
|
-
def get_timesheets_with_http_info(xero_tenant_id,
|
1734
|
+
def get_timesheets_with_http_info(xero_tenant_id, options = {})
|
1735
|
+
opts = options.dup
|
1714
1736
|
if @api_client.config.debugging
|
1715
1737
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.get_timesheets ...'
|
1716
1738
|
end
|
@@ -1769,7 +1791,7 @@ module XeroRuby
|
|
1769
1791
|
return data, status_code, headers
|
1770
1792
|
end
|
1771
1793
|
|
1772
|
-
#
|
1794
|
+
# Updates an employee's detail
|
1773
1795
|
# Update properties on a single employee
|
1774
1796
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1775
1797
|
# @param employee_id [String] Employee id for single object
|
@@ -1781,14 +1803,15 @@ module XeroRuby
|
|
1781
1803
|
data
|
1782
1804
|
end
|
1783
1805
|
|
1784
|
-
#
|
1806
|
+
# Updates an employee's detail
|
1785
1807
|
# Update properties on a single employee
|
1786
1808
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1787
1809
|
# @param employee_id [String] Employee id for single object
|
1788
1810
|
# @param [Hash] opts the optional parameters
|
1789
1811
|
# @option opts [Array<Employee>] :employee
|
1790
1812
|
# @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
|
1791
|
-
def update_employee_with_http_info(xero_tenant_id, employee_id,
|
1813
|
+
def update_employee_with_http_info(xero_tenant_id, employee_id, options = {})
|
1814
|
+
opts = options.dup
|
1792
1815
|
if @api_client.config.debugging
|
1793
1816
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.update_employee ...'
|
1794
1817
|
end
|
@@ -1801,7 +1824,7 @@ module XeroRuby
|
|
1801
1824
|
fail ArgumentError, "Missing the required parameter 'employee_id' when calling PayrollAuApi.update_employee"
|
1802
1825
|
end
|
1803
1826
|
# resource path
|
1804
|
-
local_var_path = '/Employees/{
|
1827
|
+
local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s)
|
1805
1828
|
|
1806
1829
|
# camelize keys of incoming `where` opts
|
1807
1830
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1849,7 +1872,7 @@ module XeroRuby
|
|
1849
1872
|
return data, status_code, headers
|
1850
1873
|
end
|
1851
1874
|
|
1852
|
-
#
|
1875
|
+
# Updates a specific leave application
|
1853
1876
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1854
1877
|
# @param leave_application_id [String] Leave Application id for single object
|
1855
1878
|
# @param leave_application [Array<LeaveApplication>]
|
@@ -1860,13 +1883,14 @@ module XeroRuby
|
|
1860
1883
|
data
|
1861
1884
|
end
|
1862
1885
|
|
1863
|
-
#
|
1886
|
+
# Updates a specific leave application
|
1864
1887
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1865
1888
|
# @param leave_application_id [String] Leave Application id for single object
|
1866
1889
|
# @param leave_application [Array<LeaveApplication>]
|
1867
1890
|
# @param [Hash] opts the optional parameters
|
1868
1891
|
# @return [Array<(LeaveApplications, Integer, Hash)>] LeaveApplications data, response status code and response headers
|
1869
|
-
def update_leave_application_with_http_info(xero_tenant_id, leave_application_id, leave_application,
|
1892
|
+
def update_leave_application_with_http_info(xero_tenant_id, leave_application_id, leave_application, options = {})
|
1893
|
+
opts = options.dup
|
1870
1894
|
if @api_client.config.debugging
|
1871
1895
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.update_leave_application ...'
|
1872
1896
|
end
|
@@ -1883,7 +1907,7 @@ module XeroRuby
|
|
1883
1907
|
fail ArgumentError, "Missing the required parameter 'leave_application' when calling PayrollAuApi.update_leave_application"
|
1884
1908
|
end
|
1885
1909
|
# resource path
|
1886
|
-
local_var_path = '/LeaveApplications/{
|
1910
|
+
local_var_path = '/LeaveApplications/{LeaveApplicationID}'.sub('{' + 'LeaveApplicationID' + '}', leave_application_id.to_s)
|
1887
1911
|
|
1888
1912
|
# camelize keys of incoming `where` opts
|
1889
1913
|
opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
|
@@ -1931,7 +1955,7 @@ module XeroRuby
|
|
1931
1955
|
return data, status_code, headers
|
1932
1956
|
end
|
1933
1957
|
|
1934
|
-
#
|
1958
|
+
# Updates a pay run
|
1935
1959
|
# Update properties on a single PayRun
|
1936
1960
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1937
1961
|
# @param pay_run_id [String] PayRun id for single object
|
@@ -1943,14 +1967,15 @@ module XeroRuby
|
|
1943
1967
|
data
|
1944
1968
|
end
|
1945
1969
|
|
1946
|
-
#
|
1970
|
+
# Updates a pay run
|
1947
1971
|
# Update properties on a single PayRun
|
1948
1972
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
1949
1973
|
# @param pay_run_id [String] PayRun id for single object
|
1950
1974
|
# @param [Hash] opts the optional parameters
|
1951
1975
|
# @option opts [Array<PayRun>] :pay_run
|
1952
1976
|
# @return [Array<(PayRuns, Integer, Hash)>] PayRuns data, response status code and response headers
|
1953
|
-
def update_pay_run_with_http_info(xero_tenant_id, pay_run_id,
|
1977
|
+
def update_pay_run_with_http_info(xero_tenant_id, pay_run_id, options = {})
|
1978
|
+
opts = options.dup
|
1954
1979
|
if @api_client.config.debugging
|
1955
1980
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.update_pay_run ...'
|
1956
1981
|
end
|
@@ -2011,7 +2036,7 @@ module XeroRuby
|
|
2011
2036
|
return data, status_code, headers
|
2012
2037
|
end
|
2013
2038
|
|
2014
|
-
#
|
2039
|
+
# Updates a payslip
|
2015
2040
|
# Update lines on a single payslips
|
2016
2041
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2017
2042
|
# @param payslip_id [String] Payslip id for single object
|
@@ -2023,14 +2048,15 @@ module XeroRuby
|
|
2023
2048
|
data
|
2024
2049
|
end
|
2025
2050
|
|
2026
|
-
#
|
2051
|
+
# Updates a payslip
|
2027
2052
|
# Update lines on a single payslips
|
2028
2053
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2029
2054
|
# @param payslip_id [String] Payslip id for single object
|
2030
2055
|
# @param [Hash] opts the optional parameters
|
2031
2056
|
# @option opts [Array<PayslipLines>] :payslip_lines
|
2032
2057
|
# @return [Array<(Payslips, Integer, Hash)>] Payslips data, response status code and response headers
|
2033
|
-
def update_payslip_with_http_info(xero_tenant_id, payslip_id,
|
2058
|
+
def update_payslip_with_http_info(xero_tenant_id, payslip_id, options = {})
|
2059
|
+
opts = options.dup
|
2034
2060
|
if @api_client.config.debugging
|
2035
2061
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.update_payslip ...'
|
2036
2062
|
end
|
@@ -2091,7 +2117,7 @@ module XeroRuby
|
|
2091
2117
|
return data, status_code, headers
|
2092
2118
|
end
|
2093
2119
|
|
2094
|
-
#
|
2120
|
+
# Updates a superfund
|
2095
2121
|
# Update properties on a single Superfund
|
2096
2122
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2097
2123
|
# @param super_fund_id [String] Superfund id for single object
|
@@ -2103,14 +2129,15 @@ module XeroRuby
|
|
2103
2129
|
data
|
2104
2130
|
end
|
2105
2131
|
|
2106
|
-
#
|
2132
|
+
# Updates a superfund
|
2107
2133
|
# Update properties on a single Superfund
|
2108
2134
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2109
2135
|
# @param super_fund_id [String] Superfund id for single object
|
2110
2136
|
# @param [Hash] opts the optional parameters
|
2111
2137
|
# @option opts [Array<SuperFund>] :super_fund
|
2112
2138
|
# @return [Array<(SuperFunds, Integer, Hash)>] SuperFunds data, response status code and response headers
|
2113
|
-
def update_superfund_with_http_info(xero_tenant_id, super_fund_id,
|
2139
|
+
def update_superfund_with_http_info(xero_tenant_id, super_fund_id, options = {})
|
2140
|
+
opts = options.dup
|
2114
2141
|
if @api_client.config.debugging
|
2115
2142
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.update_superfund ...'
|
2116
2143
|
end
|
@@ -2171,7 +2198,7 @@ module XeroRuby
|
|
2171
2198
|
return data, status_code, headers
|
2172
2199
|
end
|
2173
2200
|
|
2174
|
-
#
|
2201
|
+
# Updates a timesheet
|
2175
2202
|
# Update properties on a single timesheet
|
2176
2203
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2177
2204
|
# @param timesheet_id [String] Timesheet id for single object
|
@@ -2183,14 +2210,15 @@ module XeroRuby
|
|
2183
2210
|
data
|
2184
2211
|
end
|
2185
2212
|
|
2186
|
-
#
|
2213
|
+
# Updates a timesheet
|
2187
2214
|
# Update properties on a single timesheet
|
2188
2215
|
# @param xero_tenant_id [String] Xero identifier for Tenant
|
2189
2216
|
# @param timesheet_id [String] Timesheet id for single object
|
2190
2217
|
# @param [Hash] opts the optional parameters
|
2191
2218
|
# @option opts [Array<Timesheet>] :timesheet
|
2192
2219
|
# @return [Array<(Timesheets, Integer, Hash)>] Timesheets data, response status code and response headers
|
2193
|
-
def update_timesheet_with_http_info(xero_tenant_id, timesheet_id,
|
2220
|
+
def update_timesheet_with_http_info(xero_tenant_id, timesheet_id, options = {})
|
2221
|
+
opts = options.dup
|
2194
2222
|
if @api_client.config.debugging
|
2195
2223
|
@api_client.config.logger.debug 'Calling API: PayrollAuApi.update_timesheet ...'
|
2196
2224
|
end
|