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.
Files changed (460) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +240 -189
  3. data/lib/xero-ruby.rb +10 -4
  4. data/lib/xero-ruby/api/accounting_api.rb +1308 -920
  5. data/lib/xero-ruby/api/asset_api.rb +15 -14
  6. data/lib/xero-ruby/api/files_api.rb +204 -85
  7. data/lib/xero-ruby/api/payroll_au_api.rb +121 -93
  8. data/lib/xero-ruby/api/payroll_nz_api.rb +307 -240
  9. data/lib/xero-ruby/api/payroll_uk_api.rb +317 -254
  10. data/lib/xero-ruby/api/project_api.rb +71 -59
  11. data/lib/xero-ruby/api_client.rb +182 -128
  12. data/lib/xero-ruby/api_error.rb +4 -4
  13. data/lib/xero-ruby/configuration.rb +17 -5
  14. data/lib/xero-ruby/models/accounting/account.rb +25 -12
  15. data/lib/xero-ruby/models/accounting/account_type.rb +1 -2
  16. data/lib/xero-ruby/models/accounting/accounts.rb +25 -11
  17. data/lib/xero-ruby/models/accounting/accounts_payable.rb +25 -11
  18. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +25 -11
  19. data/lib/xero-ruby/models/accounting/action.rb +25 -11
  20. data/lib/xero-ruby/models/accounting/actions.rb +25 -11
  21. data/lib/xero-ruby/models/accounting/address.rb +27 -14
  22. data/lib/xero-ruby/models/accounting/address_for_organisation.rb +484 -0
  23. data/lib/xero-ruby/models/accounting/allocation.rb +25 -11
  24. data/lib/xero-ruby/models/accounting/allocations.rb +25 -11
  25. data/lib/xero-ruby/models/accounting/attachment.rb +25 -11
  26. data/lib/xero-ruby/models/accounting/attachments.rb +25 -11
  27. data/lib/xero-ruby/models/accounting/balance_details.rb +25 -11
  28. data/lib/xero-ruby/models/accounting/balances.rb +25 -11
  29. data/lib/xero-ruby/models/accounting/bank_transaction.rb +25 -11
  30. data/lib/xero-ruby/models/accounting/bank_transactions.rb +25 -11
  31. data/lib/xero-ruby/models/accounting/bank_transfer.rb +25 -11
  32. data/lib/xero-ruby/models/accounting/bank_transfers.rb +25 -11
  33. data/lib/xero-ruby/models/accounting/batch_payment.rb +41 -15
  34. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +25 -11
  35. data/lib/xero-ruby/models/accounting/batch_payments.rb +25 -11
  36. data/lib/xero-ruby/models/accounting/bill.rb +25 -11
  37. data/lib/xero-ruby/models/accounting/branding_theme.rb +25 -11
  38. data/lib/xero-ruby/models/accounting/branding_themes.rb +25 -11
  39. data/lib/xero-ruby/models/accounting/budget.rb +327 -0
  40. data/lib/xero-ruby/models/accounting/budget_balance.rb +267 -0
  41. data/lib/xero-ruby/models/accounting/budget_line.rb +244 -0
  42. data/lib/xero-ruby/models/{files/file_response204.rb → accounting/budgets.rb} +40 -24
  43. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +26 -12
  44. data/lib/xero-ruby/models/accounting/cis_org_settings.rb +224 -0
  45. data/lib/xero-ruby/models/accounting/cis_setting.rb +26 -12
  46. data/lib/xero-ruby/models/accounting/cis_settings.rb +25 -11
  47. data/lib/xero-ruby/models/accounting/contact.rb +25 -11
  48. data/lib/xero-ruby/models/accounting/contact_group.rb +25 -11
  49. data/lib/xero-ruby/models/accounting/contact_groups.rb +25 -11
  50. data/lib/xero-ruby/models/accounting/contact_person.rb +25 -11
  51. data/lib/xero-ruby/models/accounting/contacts.rb +25 -11
  52. data/lib/xero-ruby/models/accounting/conversion_balances.rb +25 -11
  53. data/lib/xero-ruby/models/accounting/conversion_date.rb +25 -11
  54. data/lib/xero-ruby/models/accounting/country_code.rb +1 -2
  55. data/lib/xero-ruby/models/accounting/credit_note.rb +62 -16
  56. data/lib/xero-ruby/models/accounting/credit_notes.rb +25 -11
  57. data/lib/xero-ruby/models/accounting/currencies.rb +25 -11
  58. data/lib/xero-ruby/models/accounting/currency.rb +25 -11
  59. data/lib/xero-ruby/models/accounting/currency_code.rb +1 -2
  60. data/lib/xero-ruby/models/accounting/element.rb +25 -11
  61. data/lib/xero-ruby/models/accounting/employee.rb +25 -11
  62. data/lib/xero-ruby/models/accounting/employees.rb +25 -11
  63. data/lib/xero-ruby/models/accounting/error.rb +25 -11
  64. data/lib/xero-ruby/models/accounting/expense_claim.rb +25 -11
  65. data/lib/xero-ruby/models/accounting/expense_claims.rb +25 -11
  66. data/lib/xero-ruby/models/accounting/external_link.rb +25 -11
  67. data/lib/xero-ruby/models/accounting/history_record.rb +25 -11
  68. data/lib/xero-ruby/models/accounting/history_records.rb +25 -11
  69. data/lib/xero-ruby/models/accounting/import_summary.rb +25 -11
  70. data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +33 -19
  71. data/lib/xero-ruby/models/accounting/import_summary_object.rb +25 -11
  72. data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +25 -11
  73. data/lib/xero-ruby/models/accounting/invoice.rb +37 -28
  74. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +25 -11
  75. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +25 -11
  76. data/lib/xero-ruby/models/accounting/invoices.rb +25 -11
  77. data/lib/xero-ruby/models/accounting/item.rb +25 -11
  78. data/lib/xero-ruby/models/accounting/items.rb +25 -11
  79. data/lib/xero-ruby/models/accounting/journal.rb +25 -11
  80. data/lib/xero-ruby/models/accounting/journal_line.rb +25 -11
  81. data/lib/xero-ruby/models/accounting/journals.rb +25 -11
  82. data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -2
  83. data/lib/xero-ruby/models/accounting/line_item.rb +36 -12
  84. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +25 -11
  85. data/lib/xero-ruby/models/accounting/linked_transaction.rb +25 -11
  86. data/lib/xero-ruby/models/accounting/linked_transactions.rb +25 -11
  87. data/lib/xero-ruby/models/accounting/manual_journal.rb +25 -11
  88. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +25 -11
  89. data/lib/xero-ruby/models/accounting/manual_journals.rb +25 -11
  90. data/lib/xero-ruby/models/accounting/online_invoice.rb +25 -11
  91. data/lib/xero-ruby/models/accounting/online_invoices.rb +25 -11
  92. data/lib/xero-ruby/models/accounting/organisation.rb +26 -14
  93. data/lib/xero-ruby/models/accounting/organisations.rb +25 -11
  94. data/lib/xero-ruby/models/accounting/overpayment.rb +25 -11
  95. data/lib/xero-ruby/models/accounting/overpayments.rb +25 -11
  96. data/lib/xero-ruby/models/accounting/payment.rb +36 -12
  97. data/lib/xero-ruby/models/accounting/payment_delete.rb +25 -11
  98. data/lib/xero-ruby/models/accounting/payment_service.rb +25 -11
  99. data/lib/xero-ruby/models/accounting/payment_services.rb +25 -11
  100. data/lib/xero-ruby/models/accounting/payment_term.rb +25 -11
  101. data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -2
  102. data/lib/xero-ruby/models/accounting/payments.rb +25 -11
  103. data/lib/xero-ruby/models/accounting/phone.rb +25 -11
  104. data/lib/xero-ruby/models/accounting/prepayment.rb +38 -12
  105. data/lib/xero-ruby/models/accounting/prepayments.rb +25 -11
  106. data/lib/xero-ruby/models/accounting/purchase.rb +25 -11
  107. data/lib/xero-ruby/models/accounting/purchase_order.rb +25 -11
  108. data/lib/xero-ruby/models/accounting/purchase_orders.rb +25 -11
  109. data/lib/xero-ruby/models/accounting/quote.rb +25 -11
  110. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -2
  111. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -2
  112. data/lib/xero-ruby/models/accounting/quotes.rb +25 -11
  113. data/lib/xero-ruby/models/accounting/receipt.rb +25 -11
  114. data/lib/xero-ruby/models/accounting/receipts.rb +25 -11
  115. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +25 -11
  116. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +25 -11
  117. data/lib/xero-ruby/models/accounting/report.rb +26 -22
  118. data/lib/xero-ruby/models/accounting/report_attribute.rb +25 -11
  119. data/lib/xero-ruby/models/accounting/report_cell.rb +25 -11
  120. data/lib/xero-ruby/models/accounting/report_fields.rb +25 -11
  121. data/lib/xero-ruby/models/accounting/report_row.rb +25 -11
  122. data/lib/xero-ruby/models/accounting/report_rows.rb +25 -11
  123. data/lib/xero-ruby/models/accounting/report_with_row.rb +26 -12
  124. data/lib/xero-ruby/models/accounting/report_with_rows.rb +25 -11
  125. data/lib/xero-ruby/models/accounting/reports.rb +25 -11
  126. data/lib/xero-ruby/models/accounting/request_empty.rb +25 -11
  127. data/lib/xero-ruby/models/accounting/row_type.rb +1 -2
  128. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +25 -11
  129. data/lib/xero-ruby/models/accounting/schedule.rb +25 -11
  130. data/lib/xero-ruby/models/accounting/setup.rb +25 -11
  131. data/lib/xero-ruby/models/accounting/tax_component.rb +25 -11
  132. data/lib/xero-ruby/models/accounting/tax_rate.rb +25 -11
  133. data/lib/xero-ruby/models/accounting/tax_rates.rb +25 -11
  134. data/lib/xero-ruby/models/accounting/tax_type.rb +1 -2
  135. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +25 -11
  136. data/lib/xero-ruby/models/accounting/time_zone.rb +1 -2
  137. data/lib/xero-ruby/models/accounting/tracking_categories.rb +25 -11
  138. data/lib/xero-ruby/models/accounting/tracking_category.rb +25 -11
  139. data/lib/xero-ruby/models/accounting/tracking_option.rb +25 -11
  140. data/lib/xero-ruby/models/accounting/tracking_options.rb +25 -11
  141. data/lib/xero-ruby/models/accounting/user.rb +25 -11
  142. data/lib/xero-ruby/models/accounting/users.rb +25 -11
  143. data/lib/xero-ruby/models/accounting/validation_error.rb +25 -11
  144. data/lib/xero-ruby/models/assets/asset.rb +25 -11
  145. data/lib/xero-ruby/models/assets/asset_status.rb +1 -2
  146. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -2
  147. data/lib/xero-ruby/models/assets/asset_type.rb +25 -11
  148. data/lib/xero-ruby/models/assets/assets.rb +25 -11
  149. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +25 -11
  150. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +25 -11
  151. data/lib/xero-ruby/models/assets/error.rb +25 -11
  152. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +26 -12
  153. data/lib/xero-ruby/models/assets/pagination.rb +25 -11
  154. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +26 -12
  155. data/lib/xero-ruby/models/assets/setting.rb +25 -11
  156. data/lib/xero-ruby/models/files/association.rb +25 -11
  157. data/lib/xero-ruby/models/files/file_object.rb +25 -11
  158. data/lib/xero-ruby/models/files/files.rb +25 -11
  159. data/lib/xero-ruby/models/files/folder.rb +25 -11
  160. data/lib/xero-ruby/models/files/folders.rb +25 -11
  161. data/lib/xero-ruby/models/files/object_group.rb +1 -2
  162. data/lib/xero-ruby/models/files/object_type.rb +1 -2
  163. data/lib/xero-ruby/models/files/{inline_object.rb → upload_object.rb} +43 -14
  164. data/lib/xero-ruby/models/files/user.rb +25 -11
  165. data/lib/xero-ruby/models/payroll_au/account.rb +25 -11
  166. data/lib/xero-ruby/models/payroll_au/account_type.rb +1 -2
  167. data/lib/xero-ruby/models/payroll_au/allowance_type.rb +1 -2
  168. data/lib/xero-ruby/models/payroll_au/api_exception.rb +25 -11
  169. data/lib/xero-ruby/models/payroll_au/bank_account.rb +25 -11
  170. data/lib/xero-ruby/models/payroll_au/calendar_type.rb +1 -2
  171. data/lib/xero-ruby/models/payroll_au/deduction_line.rb +25 -16
  172. data/lib/xero-ruby/models/payroll_au/deduction_type.rb +25 -11
  173. data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +1 -2
  174. data/lib/xero-ruby/models/payroll_au/earnings_line.rb +25 -11
  175. data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +25 -11
  176. data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +1 -2
  177. data/lib/xero-ruby/models/payroll_au/earnings_type.rb +2 -2
  178. data/lib/xero-ruby/models/payroll_au/employee.rb +25 -11
  179. data/lib/xero-ruby/models/payroll_au/employee_status.rb +1 -2
  180. data/lib/xero-ruby/models/payroll_au/employees.rb +25 -11
  181. data/lib/xero-ruby/models/payroll_au/employment_basis.rb +1 -2
  182. data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +1 -2
  183. data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +1 -2
  184. data/lib/xero-ruby/models/payroll_au/home_address.rb +25 -11
  185. data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +25 -11
  186. data/lib/xero-ruby/models/payroll_au/leave_application.rb +25 -11
  187. data/lib/xero-ruby/models/payroll_au/leave_applications.rb +25 -11
  188. data/lib/xero-ruby/models/payroll_au/leave_balance.rb +25 -11
  189. data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +25 -11
  190. data/lib/xero-ruby/models/payroll_au/leave_line.rb +25 -11
  191. data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +1 -2
  192. data/lib/xero-ruby/models/payroll_au/leave_lines.rb +25 -11
  193. data/lib/xero-ruby/models/payroll_au/leave_period.rb +25 -11
  194. data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +1 -2
  195. data/lib/xero-ruby/models/payroll_au/leave_type.rb +25 -11
  196. data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +1 -2
  197. data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +1 -2
  198. data/lib/xero-ruby/models/payroll_au/opening_balances.rb +25 -11
  199. data/lib/xero-ruby/models/payroll_au/pay_item.rb +25 -11
  200. data/lib/xero-ruby/models/payroll_au/pay_items.rb +25 -11
  201. data/lib/xero-ruby/models/payroll_au/pay_run.rb +25 -11
  202. data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +1 -2
  203. data/lib/xero-ruby/models/payroll_au/pay_runs.rb +25 -11
  204. data/lib/xero-ruby/models/payroll_au/pay_template.rb +25 -11
  205. data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +1 -2
  206. data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +25 -11
  207. data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +25 -11
  208. data/lib/xero-ruby/models/payroll_au/payslip.rb +25 -11
  209. data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +25 -11
  210. data/lib/xero-ruby/models/payroll_au/payslip_object.rb +25 -11
  211. data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +25 -11
  212. data/lib/xero-ruby/models/payroll_au/payslips.rb +25 -11
  213. data/lib/xero-ruby/models/payroll_au/rate_type.rb +1 -2
  214. data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +25 -11
  215. data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +25 -11
  216. data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +25 -11
  217. data/lib/xero-ruby/models/payroll_au/residency_status.rb +1 -2
  218. data/lib/xero-ruby/models/payroll_au/settings.rb +25 -11
  219. data/lib/xero-ruby/models/payroll_au/settings_object.rb +25 -11
  220. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +25 -11
  221. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +25 -11
  222. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +25 -11
  223. data/lib/xero-ruby/models/payroll_au/state.rb +1 -2
  224. data/lib/xero-ruby/models/payroll_au/super_fund.rb +25 -11
  225. data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +25 -11
  226. data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +25 -11
  227. data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +1 -2
  228. data/lib/xero-ruby/models/payroll_au/super_funds.rb +25 -11
  229. data/lib/xero-ruby/models/payroll_au/super_line.rb +26 -12
  230. data/lib/xero-ruby/models/payroll_au/super_membership.rb +26 -12
  231. data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +1 -2
  232. data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +1 -2
  233. data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +25 -11
  234. data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +25 -11
  235. data/lib/xero-ruby/models/payroll_au/tax_line.rb +25 -11
  236. data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +1 -2
  237. data/lib/xero-ruby/models/payroll_au/timesheet.rb +25 -11
  238. data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +25 -11
  239. data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +25 -11
  240. data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +1 -2
  241. data/lib/xero-ruby/models/payroll_au/timesheets.rb +25 -11
  242. data/lib/xero-ruby/models/payroll_au/validation_error.rb +25 -11
  243. data/lib/xero-ruby/models/payroll_nz/account.rb +24 -10
  244. data/lib/xero-ruby/models/payroll_nz/accounts.rb +24 -10
  245. data/lib/xero-ruby/models/payroll_nz/address.rb +24 -10
  246. data/lib/xero-ruby/models/payroll_nz/bank_account.rb +24 -10
  247. data/lib/xero-ruby/models/payroll_nz/benefit.rb +24 -10
  248. data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +0 -1
  249. data/lib/xero-ruby/models/payroll_nz/deduction.rb +24 -10
  250. data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +24 -10
  251. data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +24 -10
  252. data/lib/xero-ruby/models/payroll_nz/deductions.rb +24 -10
  253. data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +25 -11
  254. data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +24 -10
  255. data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +24 -10
  256. data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +24 -10
  257. data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +24 -10
  258. data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +24 -10
  259. data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +24 -10
  260. data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +24 -10
  261. data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +24 -10
  262. data/lib/xero-ruby/models/payroll_nz/employee.rb +24 -10
  263. data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +24 -10
  264. data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +24 -10
  265. data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +24 -10
  266. data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +24 -10
  267. data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +24 -10
  268. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +24 -10
  269. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +24 -10
  270. data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +24 -10
  271. data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +24 -10
  272. data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +24 -10
  273. data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +24 -10
  274. data/lib/xero-ruby/models/payroll_nz/employee_object.rb +24 -10
  275. data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +24 -10
  276. data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +24 -10
  277. data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +24 -10
  278. data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +24 -10
  279. data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +24 -10
  280. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +24 -10
  281. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +24 -10
  282. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +24 -10
  283. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +24 -10
  284. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +25 -11
  285. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +24 -10
  286. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +24 -10
  287. data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +24 -10
  288. data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +24 -10
  289. data/lib/xero-ruby/models/payroll_nz/employees.rb +24 -10
  290. data/lib/xero-ruby/models/payroll_nz/employment.rb +24 -10
  291. data/lib/xero-ruby/models/payroll_nz/employment_object.rb +24 -10
  292. data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +24 -10
  293. data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +24 -10
  294. data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +24 -10
  295. data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +25 -11
  296. data/lib/xero-ruby/models/payroll_nz/leave_period.rb +24 -10
  297. data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +24 -10
  298. data/lib/xero-ruby/models/payroll_nz/leave_type.rb +24 -10
  299. data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +24 -10
  300. data/lib/xero-ruby/models/payroll_nz/leave_types.rb +24 -10
  301. data/lib/xero-ruby/models/payroll_nz/pagination.rb +24 -10
  302. data/lib/xero-ruby/models/payroll_nz/pay_run.rb +24 -10
  303. data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +24 -10
  304. data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +24 -10
  305. data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +24 -10
  306. data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +24 -10
  307. data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +24 -10
  308. data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +24 -10
  309. data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +24 -10
  310. data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +24 -10
  311. data/lib/xero-ruby/models/payroll_nz/payment_line.rb +24 -10
  312. data/lib/xero-ruby/models/payroll_nz/payment_method.rb +24 -10
  313. data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +24 -10
  314. data/lib/xero-ruby/models/payroll_nz/problem.rb +24 -10
  315. data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +24 -10
  316. data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +24 -10
  317. data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +24 -10
  318. data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +24 -10
  319. data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +28 -13
  320. data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +24 -10
  321. data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +24 -10
  322. data/lib/xero-ruby/models/payroll_nz/settings.rb +24 -10
  323. data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +24 -10
  324. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +0 -1
  325. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +24 -10
  326. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +24 -10
  327. data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +24 -10
  328. data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +25 -11
  329. data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +24 -10
  330. data/lib/xero-ruby/models/payroll_nz/superannuations.rb +24 -10
  331. data/lib/xero-ruby/models/payroll_nz/tax_code.rb +0 -1
  332. data/lib/xero-ruby/models/payroll_nz/tax_line.rb +24 -10
  333. data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +24 -10
  334. data/lib/xero-ruby/models/payroll_nz/timesheet.rb +28 -13
  335. data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +25 -11
  336. data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +24 -10
  337. data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +24 -10
  338. data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +24 -10
  339. data/lib/xero-ruby/models/payroll_nz/timesheets.rb +24 -10
  340. data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +24 -10
  341. data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +24 -10
  342. data/lib/xero-ruby/models/payroll_uk/account.rb +24 -10
  343. data/lib/xero-ruby/models/payroll_uk/accounts.rb +24 -10
  344. data/lib/xero-ruby/models/payroll_uk/address.rb +24 -10
  345. data/lib/xero-ruby/models/payroll_uk/bank_account.rb +24 -10
  346. data/lib/xero-ruby/models/payroll_uk/benefit.rb +24 -10
  347. data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +24 -10
  348. data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +24 -10
  349. data/lib/xero-ruby/models/payroll_uk/benefits.rb +24 -10
  350. data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +24 -10
  351. data/lib/xero-ruby/models/payroll_uk/deduction.rb +24 -10
  352. data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +24 -10
  353. data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +24 -10
  354. data/lib/xero-ruby/models/payroll_uk/deductions.rb +24 -10
  355. data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +24 -10
  356. data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +24 -10
  357. data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +24 -10
  358. data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +24 -10
  359. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +34 -12
  360. data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +24 -10
  361. data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +24 -10
  362. data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +24 -10
  363. data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +24 -10
  364. data/lib/xero-ruby/models/payroll_uk/employee.rb +24 -10
  365. data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +24 -10
  366. data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +24 -10
  367. data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +24 -10
  368. data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +24 -10
  369. data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +24 -10
  370. data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +24 -10
  371. data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +24 -10
  372. data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +24 -10
  373. data/lib/xero-ruby/models/payroll_uk/employee_object.rb +24 -10
  374. data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +24 -10
  375. data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +24 -10
  376. data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +24 -10
  377. data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +24 -10
  378. data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +24 -10
  379. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +24 -10
  380. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +24 -10
  381. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +24 -10
  382. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +24 -10
  383. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +25 -11
  384. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +24 -10
  385. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +24 -10
  386. data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +24 -10
  387. data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +24 -10
  388. data/lib/xero-ruby/models/payroll_uk/employees.rb +24 -10
  389. data/lib/xero-ruby/models/payroll_uk/employment.rb +24 -10
  390. data/lib/xero-ruby/models/payroll_uk/employment_object.rb +24 -10
  391. data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +24 -10
  392. data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +24 -10
  393. data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +24 -10
  394. data/lib/xero-ruby/models/payroll_uk/leave_period.rb +24 -10
  395. data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +24 -10
  396. data/lib/xero-ruby/models/payroll_uk/leave_type.rb +24 -10
  397. data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +24 -10
  398. data/lib/xero-ruby/models/payroll_uk/leave_types.rb +24 -10
  399. data/lib/xero-ruby/models/payroll_uk/pagination.rb +24 -10
  400. data/lib/xero-ruby/models/payroll_uk/pay_run.rb +24 -10
  401. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +24 -10
  402. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +24 -10
  403. data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +24 -10
  404. data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +24 -10
  405. data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +24 -10
  406. data/lib/xero-ruby/models/payroll_uk/payment_line.rb +24 -10
  407. data/lib/xero-ruby/models/payroll_uk/payment_method.rb +24 -10
  408. data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +24 -10
  409. data/lib/xero-ruby/models/payroll_uk/payslip.rb +24 -10
  410. data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +24 -10
  411. data/lib/xero-ruby/models/payroll_uk/payslips.rb +24 -10
  412. data/lib/xero-ruby/models/payroll_uk/problem.rb +24 -10
  413. data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +24 -10
  414. data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +24 -10
  415. data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +24 -10
  416. data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +24 -10
  417. data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +27 -12
  418. data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +24 -10
  419. data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +24 -10
  420. data/lib/xero-ruby/models/payroll_uk/settings.rb +24 -10
  421. data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +24 -10
  422. data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +0 -1
  423. data/lib/xero-ruby/models/payroll_uk/tax_line.rb +24 -10
  424. data/lib/xero-ruby/models/payroll_uk/timesheet.rb +25 -11
  425. data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +24 -10
  426. data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +24 -10
  427. data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +24 -10
  428. data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +24 -10
  429. data/lib/xero-ruby/models/payroll_uk/timesheets.rb +24 -10
  430. data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +24 -10
  431. data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +24 -10
  432. data/lib/xero-ruby/models/projects/amount.rb +24 -10
  433. data/lib/xero-ruby/models/projects/charge_type.rb +0 -1
  434. data/lib/xero-ruby/models/projects/currency_code.rb +0 -1
  435. data/lib/xero-ruby/models/projects/error.rb +24 -10
  436. data/lib/xero-ruby/models/projects/pagination.rb +24 -10
  437. data/lib/xero-ruby/models/projects/project.rb +24 -10
  438. data/lib/xero-ruby/models/projects/project_create_or_update.rb +24 -10
  439. data/lib/xero-ruby/models/projects/project_patch.rb +24 -10
  440. data/lib/xero-ruby/models/projects/project_status.rb +0 -1
  441. data/lib/xero-ruby/models/projects/project_user.rb +24 -10
  442. data/lib/xero-ruby/models/projects/project_users.rb +24 -10
  443. data/lib/xero-ruby/models/projects/projects.rb +24 -10
  444. data/lib/xero-ruby/models/projects/task.rb +24 -10
  445. data/lib/xero-ruby/models/projects/task_create_or_update.rb +24 -10
  446. data/lib/xero-ruby/models/projects/tasks.rb +24 -10
  447. data/lib/xero-ruby/models/projects/time_entries.rb +24 -10
  448. data/lib/xero-ruby/models/projects/time_entry.rb +27 -12
  449. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +24 -10
  450. data/lib/xero-ruby/string_serialization.rb +52 -0
  451. data/lib/xero-ruby/version.rb +3 -3
  452. data/lib/xero-ruby/where.rb +65 -0
  453. data/spec/api_client_spec.rb +292 -14
  454. data/spec/api_error_spec.rb +45 -0
  455. data/spec/configuration_spec.rb +26 -16
  456. data/spec/files/models/inline_object_spec.rb +3 -3
  457. data/spec/helper_methods_spec.rb +110 -0
  458. data/spec/where_spec.rb +82 -0
  459. metadata +43 -12
  460. 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
- # Use this method to create a payroll employee
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
- # Use this method to create a payroll employee
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, opts = {})
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
- # Use this method to create a Leave Application
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
- # Use this method to create a Leave Application
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, opts = {})
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
- # Use this method to create a Pay Item
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
- # Use this method to create a Pay Item
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, opts = {})
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
- # Use this method to create a PayRun
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
- # Use this method to create a PayRun
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, opts = {})
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
- # Use this method to create a Payroll Calendars
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
- # Use this method to create a Payroll Calendars
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, opts = {})
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
- # Use this method to create a super fund
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
- # Use this method to create a super fund
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, opts = {})
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
- # Use this method to create a timesheet
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
- # Use this method to create a timesheet
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, opts = {})
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
- # searches for an employee by unique id
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
- # searches for an employee by unique id
568
+ # Retrieves an employee&#39;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, opts = {})
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/{EmployeeId}'.sub('{' + 'EmployeeId' + '}', employee_id.to_s)
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
- # searches employees
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
- # searches employees
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&#x3D;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, opts = {})
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
- # searches for an Leave Application by unique id
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
- # searches for an Leave Application by unique id
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, opts = {})
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/{LeaveApplicationId}'.sub('{' + 'LeaveApplicationId' + '}', leave_application_id.to_s)
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
- # searches Leave Applications
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
- # searches Leave Applications
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&#x3D;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, opts = {})
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
- # searches Pay Items
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
- # searches Pay Items
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&#x3D;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, opts = {})
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
- # searches for an payrun by unique id
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
- # searches for an payrun by unique id
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, opts = {})
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
- # searches PayRuns
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
- # searches PayRuns
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&#x3D;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, opts = {})
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
- # searches Payroll Calendars
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
- # searches Payroll Calendars
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, opts = {})
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
- # searches Payroll Calendars
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
- # searches Payroll Calendars
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&#x3D;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, opts = {})
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
- # searches for an payslip by unique id
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
- # searches for an payslip by unique id
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, opts = {})
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
- # retrieve settings
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
- # retrieve settings
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, opts = {})
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
- # searches for an Superfund by unique id
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
- # searches for an Superfund by unique id
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, opts = {})
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
- # searches SuperfundProducts
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
- # searches SuperfundProducts
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, opts = {})
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
- # searches SuperFunds
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
- # searches SuperFunds
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&#x3D;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, opts = {})
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
- # searches for an timesheet by unique id
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
- # searches for an timesheet by unique id
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, opts = {})
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
- # searches timesheets
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
- # searches timesheets
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&#x3D;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, opts = {})
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
- # Update an Employee
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
- # Update an Employee
1806
+ # Updates an employee&#39;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, opts = {})
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/{EmployeeId}'.sub('{' + 'EmployeeId' + '}', employee_id.to_s)
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
- # Use this method to update a Leave Application
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
- # Use this method to update a Leave Application
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, opts = {})
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/{LeaveApplicationId}'.sub('{' + 'LeaveApplicationId' + '}', leave_application_id.to_s)
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
- # Update a PayRun
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
- # Update a PayRun
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, opts = {})
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
- # Update a Payslip
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
- # Update a Payslip
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, opts = {})
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
- # Update a Superfund
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
- # Update a Superfund
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, opts = {})
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
- # Update a Timesheet
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
- # Update a Timesheet
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, opts = {})
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