xero-ruby 3.0.0 → 3.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (396) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xero-ruby.rb +4 -0
  3. data/lib/xero-ruby/api/accounting_api.rb +305 -152
  4. data/lib/xero-ruby/models/accounting/account.rb +2 -0
  5. data/lib/xero-ruby/models/accounting/accounts.rb +2 -0
  6. data/lib/xero-ruby/models/accounting/accounts_payable.rb +2 -0
  7. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +2 -0
  8. data/lib/xero-ruby/models/accounting/action.rb +2 -0
  9. data/lib/xero-ruby/models/accounting/actions.rb +2 -0
  10. data/lib/xero-ruby/models/accounting/address.rb +2 -0
  11. data/lib/xero-ruby/models/accounting/address_for_organisation.rb +2 -0
  12. data/lib/xero-ruby/models/accounting/allocation.rb +2 -0
  13. data/lib/xero-ruby/models/accounting/allocations.rb +2 -0
  14. data/lib/xero-ruby/models/accounting/attachment.rb +2 -0
  15. data/lib/xero-ruby/models/accounting/attachments.rb +2 -0
  16. data/lib/xero-ruby/models/accounting/balance_details.rb +2 -0
  17. data/lib/xero-ruby/models/accounting/balances.rb +2 -0
  18. data/lib/xero-ruby/models/accounting/bank_transaction.rb +2 -0
  19. data/lib/xero-ruby/models/accounting/bank_transactions.rb +2 -0
  20. data/lib/xero-ruby/models/accounting/bank_transfer.rb +2 -0
  21. data/lib/xero-ruby/models/accounting/bank_transfers.rb +2 -0
  22. data/lib/xero-ruby/models/accounting/batch_payment.rb +2 -0
  23. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +2 -0
  24. data/lib/xero-ruby/models/accounting/batch_payments.rb +2 -0
  25. data/lib/xero-ruby/models/accounting/bill.rb +2 -0
  26. data/lib/xero-ruby/models/accounting/branding_theme.rb +2 -0
  27. data/lib/xero-ruby/models/accounting/branding_themes.rb +2 -0
  28. data/lib/xero-ruby/models/accounting/budget.rb +327 -0
  29. data/lib/xero-ruby/models/accounting/budget_balance.rb +267 -0
  30. data/lib/xero-ruby/models/accounting/budget_line.rb +244 -0
  31. data/lib/xero-ruby/models/accounting/budgets.rb +224 -0
  32. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +2 -0
  33. data/lib/xero-ruby/models/accounting/cis_org_settings.rb +2 -0
  34. data/lib/xero-ruby/models/accounting/cis_setting.rb +2 -0
  35. data/lib/xero-ruby/models/accounting/cis_settings.rb +2 -0
  36. data/lib/xero-ruby/models/accounting/contact.rb +2 -0
  37. data/lib/xero-ruby/models/accounting/contact_group.rb +2 -0
  38. data/lib/xero-ruby/models/accounting/contact_groups.rb +2 -0
  39. data/lib/xero-ruby/models/accounting/contact_person.rb +2 -0
  40. data/lib/xero-ruby/models/accounting/contacts.rb +2 -0
  41. data/lib/xero-ruby/models/accounting/conversion_balances.rb +2 -0
  42. data/lib/xero-ruby/models/accounting/conversion_date.rb +2 -0
  43. data/lib/xero-ruby/models/accounting/credit_note.rb +2 -0
  44. data/lib/xero-ruby/models/accounting/credit_notes.rb +2 -0
  45. data/lib/xero-ruby/models/accounting/currencies.rb +2 -0
  46. data/lib/xero-ruby/models/accounting/currency.rb +2 -0
  47. data/lib/xero-ruby/models/accounting/element.rb +2 -0
  48. data/lib/xero-ruby/models/accounting/employee.rb +2 -0
  49. data/lib/xero-ruby/models/accounting/employees.rb +2 -0
  50. data/lib/xero-ruby/models/accounting/error.rb +2 -0
  51. data/lib/xero-ruby/models/accounting/expense_claim.rb +2 -0
  52. data/lib/xero-ruby/models/accounting/expense_claims.rb +2 -0
  53. data/lib/xero-ruby/models/accounting/external_link.rb +2 -0
  54. data/lib/xero-ruby/models/accounting/history_record.rb +2 -0
  55. data/lib/xero-ruby/models/accounting/history_records.rb +2 -0
  56. data/lib/xero-ruby/models/accounting/import_summary.rb +2 -0
  57. data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +2 -0
  58. data/lib/xero-ruby/models/accounting/import_summary_object.rb +2 -0
  59. data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +2 -0
  60. data/lib/xero-ruby/models/accounting/invoice.rb +2 -0
  61. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +2 -0
  62. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +2 -0
  63. data/lib/xero-ruby/models/accounting/invoices.rb +2 -0
  64. data/lib/xero-ruby/models/accounting/item.rb +2 -0
  65. data/lib/xero-ruby/models/accounting/items.rb +2 -0
  66. data/lib/xero-ruby/models/accounting/journal.rb +2 -0
  67. data/lib/xero-ruby/models/accounting/journal_line.rb +2 -0
  68. data/lib/xero-ruby/models/accounting/journals.rb +2 -0
  69. data/lib/xero-ruby/models/accounting/line_item.rb +13 -1
  70. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +2 -0
  71. data/lib/xero-ruby/models/accounting/linked_transaction.rb +2 -0
  72. data/lib/xero-ruby/models/accounting/linked_transactions.rb +2 -0
  73. data/lib/xero-ruby/models/accounting/manual_journal.rb +2 -0
  74. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +2 -0
  75. data/lib/xero-ruby/models/accounting/manual_journals.rb +2 -0
  76. data/lib/xero-ruby/models/accounting/online_invoice.rb +2 -0
  77. data/lib/xero-ruby/models/accounting/online_invoices.rb +2 -0
  78. data/lib/xero-ruby/models/accounting/organisation.rb +2 -0
  79. data/lib/xero-ruby/models/accounting/organisations.rb +2 -0
  80. data/lib/xero-ruby/models/accounting/overpayment.rb +2 -0
  81. data/lib/xero-ruby/models/accounting/overpayments.rb +2 -0
  82. data/lib/xero-ruby/models/accounting/payment.rb +2 -0
  83. data/lib/xero-ruby/models/accounting/payment_delete.rb +2 -0
  84. data/lib/xero-ruby/models/accounting/payment_service.rb +2 -0
  85. data/lib/xero-ruby/models/accounting/payment_services.rb +2 -0
  86. data/lib/xero-ruby/models/accounting/payment_term.rb +2 -0
  87. data/lib/xero-ruby/models/accounting/payments.rb +2 -0
  88. data/lib/xero-ruby/models/accounting/phone.rb +2 -0
  89. data/lib/xero-ruby/models/accounting/prepayment.rb +2 -0
  90. data/lib/xero-ruby/models/accounting/prepayments.rb +2 -0
  91. data/lib/xero-ruby/models/accounting/purchase.rb +2 -0
  92. data/lib/xero-ruby/models/accounting/purchase_order.rb +2 -0
  93. data/lib/xero-ruby/models/accounting/purchase_orders.rb +2 -0
  94. data/lib/xero-ruby/models/accounting/quote.rb +2 -0
  95. data/lib/xero-ruby/models/accounting/quotes.rb +2 -0
  96. data/lib/xero-ruby/models/accounting/receipt.rb +2 -0
  97. data/lib/xero-ruby/models/accounting/receipts.rb +2 -0
  98. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +2 -0
  99. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +2 -0
  100. data/lib/xero-ruby/models/accounting/report.rb +3 -11
  101. data/lib/xero-ruby/models/accounting/report_attribute.rb +2 -0
  102. data/lib/xero-ruby/models/accounting/report_cell.rb +2 -0
  103. data/lib/xero-ruby/models/accounting/report_fields.rb +2 -0
  104. data/lib/xero-ruby/models/accounting/report_row.rb +2 -0
  105. data/lib/xero-ruby/models/accounting/report_rows.rb +2 -0
  106. data/lib/xero-ruby/models/accounting/report_with_row.rb +3 -1
  107. data/lib/xero-ruby/models/accounting/report_with_rows.rb +2 -0
  108. data/lib/xero-ruby/models/accounting/reports.rb +2 -0
  109. data/lib/xero-ruby/models/accounting/request_empty.rb +2 -0
  110. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +2 -0
  111. data/lib/xero-ruby/models/accounting/schedule.rb +2 -0
  112. data/lib/xero-ruby/models/accounting/setup.rb +2 -0
  113. data/lib/xero-ruby/models/accounting/tax_component.rb +2 -0
  114. data/lib/xero-ruby/models/accounting/tax_rate.rb +2 -0
  115. data/lib/xero-ruby/models/accounting/tax_rates.rb +2 -0
  116. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +2 -0
  117. data/lib/xero-ruby/models/accounting/tracking_categories.rb +2 -0
  118. data/lib/xero-ruby/models/accounting/tracking_category.rb +2 -0
  119. data/lib/xero-ruby/models/accounting/tracking_option.rb +2 -0
  120. data/lib/xero-ruby/models/accounting/tracking_options.rb +2 -0
  121. data/lib/xero-ruby/models/accounting/user.rb +2 -0
  122. data/lib/xero-ruby/models/accounting/users.rb +2 -0
  123. data/lib/xero-ruby/models/accounting/validation_error.rb +2 -0
  124. data/lib/xero-ruby/models/assets/asset.rb +2 -0
  125. data/lib/xero-ruby/models/assets/asset_type.rb +2 -0
  126. data/lib/xero-ruby/models/assets/assets.rb +2 -0
  127. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +2 -0
  128. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +2 -0
  129. data/lib/xero-ruby/models/assets/error.rb +2 -0
  130. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +2 -0
  131. data/lib/xero-ruby/models/assets/pagination.rb +2 -0
  132. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +2 -0
  133. data/lib/xero-ruby/models/assets/setting.rb +2 -0
  134. data/lib/xero-ruby/models/files/association.rb +2 -0
  135. data/lib/xero-ruby/models/files/file_object.rb +2 -0
  136. data/lib/xero-ruby/models/files/files.rb +2 -0
  137. data/lib/xero-ruby/models/files/folder.rb +2 -0
  138. data/lib/xero-ruby/models/files/folders.rb +2 -0
  139. data/lib/xero-ruby/models/files/upload_object.rb +2 -0
  140. data/lib/xero-ruby/models/files/user.rb +2 -0
  141. data/lib/xero-ruby/models/payroll_au/account.rb +2 -0
  142. data/lib/xero-ruby/models/payroll_au/api_exception.rb +2 -0
  143. data/lib/xero-ruby/models/payroll_au/bank_account.rb +2 -0
  144. data/lib/xero-ruby/models/payroll_au/deduction_line.rb +2 -0
  145. data/lib/xero-ruby/models/payroll_au/deduction_type.rb +2 -0
  146. data/lib/xero-ruby/models/payroll_au/earnings_line.rb +2 -0
  147. data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +2 -0
  148. data/lib/xero-ruby/models/payroll_au/employee.rb +2 -0
  149. data/lib/xero-ruby/models/payroll_au/employees.rb +2 -0
  150. data/lib/xero-ruby/models/payroll_au/home_address.rb +2 -0
  151. data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +2 -0
  152. data/lib/xero-ruby/models/payroll_au/leave_application.rb +2 -0
  153. data/lib/xero-ruby/models/payroll_au/leave_applications.rb +2 -0
  154. data/lib/xero-ruby/models/payroll_au/leave_balance.rb +2 -0
  155. data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +2 -0
  156. data/lib/xero-ruby/models/payroll_au/leave_line.rb +2 -0
  157. data/lib/xero-ruby/models/payroll_au/leave_lines.rb +2 -0
  158. data/lib/xero-ruby/models/payroll_au/leave_period.rb +2 -0
  159. data/lib/xero-ruby/models/payroll_au/leave_type.rb +2 -0
  160. data/lib/xero-ruby/models/payroll_au/opening_balances.rb +2 -0
  161. data/lib/xero-ruby/models/payroll_au/pay_item.rb +2 -0
  162. data/lib/xero-ruby/models/payroll_au/pay_items.rb +2 -0
  163. data/lib/xero-ruby/models/payroll_au/pay_run.rb +2 -0
  164. data/lib/xero-ruby/models/payroll_au/pay_runs.rb +2 -0
  165. data/lib/xero-ruby/models/payroll_au/pay_template.rb +2 -0
  166. data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +2 -0
  167. data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +2 -0
  168. data/lib/xero-ruby/models/payroll_au/payslip.rb +2 -0
  169. data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +2 -0
  170. data/lib/xero-ruby/models/payroll_au/payslip_object.rb +2 -0
  171. data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +2 -0
  172. data/lib/xero-ruby/models/payroll_au/payslips.rb +2 -0
  173. data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +2 -0
  174. data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +2 -0
  175. data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +2 -0
  176. data/lib/xero-ruby/models/payroll_au/settings.rb +2 -0
  177. data/lib/xero-ruby/models/payroll_au/settings_object.rb +2 -0
  178. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +2 -0
  179. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +2 -0
  180. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +2 -0
  181. data/lib/xero-ruby/models/payroll_au/super_fund.rb +2 -0
  182. data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +2 -0
  183. data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +2 -0
  184. data/lib/xero-ruby/models/payroll_au/super_funds.rb +2 -0
  185. data/lib/xero-ruby/models/payroll_au/super_line.rb +2 -0
  186. data/lib/xero-ruby/models/payroll_au/super_membership.rb +2 -0
  187. data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +2 -0
  188. data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +2 -0
  189. data/lib/xero-ruby/models/payroll_au/tax_line.rb +2 -0
  190. data/lib/xero-ruby/models/payroll_au/timesheet.rb +2 -0
  191. data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +2 -0
  192. data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +2 -0
  193. data/lib/xero-ruby/models/payroll_au/timesheets.rb +2 -0
  194. data/lib/xero-ruby/models/payroll_au/validation_error.rb +2 -0
  195. data/lib/xero-ruby/models/payroll_nz/account.rb +2 -0
  196. data/lib/xero-ruby/models/payroll_nz/accounts.rb +2 -0
  197. data/lib/xero-ruby/models/payroll_nz/address.rb +2 -0
  198. data/lib/xero-ruby/models/payroll_nz/bank_account.rb +2 -0
  199. data/lib/xero-ruby/models/payroll_nz/benefit.rb +2 -0
  200. data/lib/xero-ruby/models/payroll_nz/deduction.rb +2 -0
  201. data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +2 -0
  202. data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +2 -0
  203. data/lib/xero-ruby/models/payroll_nz/deductions.rb +2 -0
  204. data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +2 -0
  205. data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +2 -0
  206. data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +2 -0
  207. data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +2 -0
  208. data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +2 -0
  209. data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +2 -0
  210. data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +2 -0
  211. data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +2 -0
  212. data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +2 -0
  213. data/lib/xero-ruby/models/payroll_nz/employee.rb +2 -0
  214. data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +2 -0
  215. data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +2 -0
  216. data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +2 -0
  217. data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +2 -0
  218. data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +2 -0
  219. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +2 -0
  220. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +2 -0
  221. data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +2 -0
  222. data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +2 -0
  223. data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +2 -0
  224. data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +2 -0
  225. data/lib/xero-ruby/models/payroll_nz/employee_object.rb +2 -0
  226. data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +2 -0
  227. data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +2 -0
  228. data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +2 -0
  229. data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +2 -0
  230. data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +2 -0
  231. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +2 -0
  232. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +2 -0
  233. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +2 -0
  234. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +2 -0
  235. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +2 -0
  236. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +2 -0
  237. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +2 -0
  238. data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +2 -0
  239. data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +2 -0
  240. data/lib/xero-ruby/models/payroll_nz/employees.rb +2 -0
  241. data/lib/xero-ruby/models/payroll_nz/employment.rb +2 -0
  242. data/lib/xero-ruby/models/payroll_nz/employment_object.rb +2 -0
  243. data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +2 -0
  244. data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +2 -0
  245. data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +2 -0
  246. data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +2 -0
  247. data/lib/xero-ruby/models/payroll_nz/leave_period.rb +2 -0
  248. data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +2 -0
  249. data/lib/xero-ruby/models/payroll_nz/leave_type.rb +2 -0
  250. data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +2 -0
  251. data/lib/xero-ruby/models/payroll_nz/leave_types.rb +2 -0
  252. data/lib/xero-ruby/models/payroll_nz/pagination.rb +2 -0
  253. data/lib/xero-ruby/models/payroll_nz/pay_run.rb +2 -0
  254. data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +2 -0
  255. data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +2 -0
  256. data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +2 -0
  257. data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +2 -0
  258. data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +2 -0
  259. data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +2 -0
  260. data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +2 -0
  261. data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +2 -0
  262. data/lib/xero-ruby/models/payroll_nz/payment_line.rb +2 -0
  263. data/lib/xero-ruby/models/payroll_nz/payment_method.rb +2 -0
  264. data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +2 -0
  265. data/lib/xero-ruby/models/payroll_nz/problem.rb +2 -0
  266. data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +2 -0
  267. data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +2 -0
  268. data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +2 -0
  269. data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +2 -0
  270. data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +2 -0
  271. data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +2 -0
  272. data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +2 -0
  273. data/lib/xero-ruby/models/payroll_nz/settings.rb +2 -0
  274. data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +2 -0
  275. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +2 -0
  276. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +2 -0
  277. data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +2 -0
  278. data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +2 -0
  279. data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +2 -0
  280. data/lib/xero-ruby/models/payroll_nz/superannuations.rb +2 -0
  281. data/lib/xero-ruby/models/payroll_nz/tax_line.rb +2 -0
  282. data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +2 -0
  283. data/lib/xero-ruby/models/payroll_nz/timesheet.rb +2 -0
  284. data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +2 -0
  285. data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +2 -0
  286. data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +2 -0
  287. data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +2 -0
  288. data/lib/xero-ruby/models/payroll_nz/timesheets.rb +2 -0
  289. data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +2 -0
  290. data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +2 -0
  291. data/lib/xero-ruby/models/payroll_uk/account.rb +2 -0
  292. data/lib/xero-ruby/models/payroll_uk/accounts.rb +2 -0
  293. data/lib/xero-ruby/models/payroll_uk/address.rb +2 -0
  294. data/lib/xero-ruby/models/payroll_uk/bank_account.rb +2 -0
  295. data/lib/xero-ruby/models/payroll_uk/benefit.rb +2 -0
  296. data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +2 -0
  297. data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +2 -0
  298. data/lib/xero-ruby/models/payroll_uk/benefits.rb +2 -0
  299. data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +2 -0
  300. data/lib/xero-ruby/models/payroll_uk/deduction.rb +2 -0
  301. data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +2 -0
  302. data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +2 -0
  303. data/lib/xero-ruby/models/payroll_uk/deductions.rb +2 -0
  304. data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +2 -0
  305. data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +2 -0
  306. data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +2 -0
  307. data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +2 -0
  308. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +5 -2
  309. data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +2 -0
  310. data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +2 -0
  311. data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +2 -0
  312. data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +2 -0
  313. data/lib/xero-ruby/models/payroll_uk/employee.rb +2 -0
  314. data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +2 -0
  315. data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +2 -0
  316. data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +2 -0
  317. data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +2 -0
  318. data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +2 -0
  319. data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +2 -0
  320. data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +2 -0
  321. data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +2 -0
  322. data/lib/xero-ruby/models/payroll_uk/employee_object.rb +2 -0
  323. data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +2 -0
  324. data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +2 -0
  325. data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +2 -0
  326. data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +2 -0
  327. data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +2 -0
  328. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +2 -0
  329. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +2 -0
  330. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +2 -0
  331. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +2 -0
  332. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +2 -0
  333. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +2 -0
  334. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +2 -0
  335. data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +2 -0
  336. data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +2 -0
  337. data/lib/xero-ruby/models/payroll_uk/employees.rb +2 -0
  338. data/lib/xero-ruby/models/payroll_uk/employment.rb +2 -0
  339. data/lib/xero-ruby/models/payroll_uk/employment_object.rb +2 -0
  340. data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +2 -0
  341. data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +2 -0
  342. data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +2 -0
  343. data/lib/xero-ruby/models/payroll_uk/leave_period.rb +2 -0
  344. data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +2 -0
  345. data/lib/xero-ruby/models/payroll_uk/leave_type.rb +2 -0
  346. data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +2 -0
  347. data/lib/xero-ruby/models/payroll_uk/leave_types.rb +2 -0
  348. data/lib/xero-ruby/models/payroll_uk/pagination.rb +2 -0
  349. data/lib/xero-ruby/models/payroll_uk/pay_run.rb +2 -0
  350. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +2 -0
  351. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +2 -0
  352. data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +2 -0
  353. data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +2 -0
  354. data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +2 -0
  355. data/lib/xero-ruby/models/payroll_uk/payment_line.rb +2 -0
  356. data/lib/xero-ruby/models/payroll_uk/payment_method.rb +2 -0
  357. data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +2 -0
  358. data/lib/xero-ruby/models/payroll_uk/payslip.rb +2 -0
  359. data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +2 -0
  360. data/lib/xero-ruby/models/payroll_uk/payslips.rb +2 -0
  361. data/lib/xero-ruby/models/payroll_uk/problem.rb +2 -0
  362. data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +2 -0
  363. data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +2 -0
  364. data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +2 -0
  365. data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +2 -0
  366. data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +2 -0
  367. data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +2 -0
  368. data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +2 -0
  369. data/lib/xero-ruby/models/payroll_uk/settings.rb +2 -0
  370. data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +2 -0
  371. data/lib/xero-ruby/models/payroll_uk/tax_line.rb +2 -0
  372. data/lib/xero-ruby/models/payroll_uk/timesheet.rb +2 -0
  373. data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +2 -0
  374. data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +2 -0
  375. data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +2 -0
  376. data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +2 -0
  377. data/lib/xero-ruby/models/payroll_uk/timesheets.rb +2 -0
  378. data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +2 -0
  379. data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +2 -0
  380. data/lib/xero-ruby/models/projects/amount.rb +2 -0
  381. data/lib/xero-ruby/models/projects/error.rb +2 -0
  382. data/lib/xero-ruby/models/projects/pagination.rb +2 -0
  383. data/lib/xero-ruby/models/projects/project.rb +2 -0
  384. data/lib/xero-ruby/models/projects/project_create_or_update.rb +2 -0
  385. data/lib/xero-ruby/models/projects/project_patch.rb +2 -0
  386. data/lib/xero-ruby/models/projects/project_user.rb +2 -0
  387. data/lib/xero-ruby/models/projects/project_users.rb +2 -0
  388. data/lib/xero-ruby/models/projects/projects.rb +2 -0
  389. data/lib/xero-ruby/models/projects/task.rb +2 -0
  390. data/lib/xero-ruby/models/projects/task_create_or_update.rb +2 -0
  391. data/lib/xero-ruby/models/projects/tasks.rb +2 -0
  392. data/lib/xero-ruby/models/projects/time_entries.rb +2 -0
  393. data/lib/xero-ruby/models/projects/time_entry.rb +2 -0
  394. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +2 -0
  395. data/lib/xero-ruby/version.rb +2 -2
  396. metadata +9 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 318fb48f176b7958600aff1846180a94028bcafd1802e7620622c5bfaa3598a9
4
- data.tar.gz: 3d6cf058f85c0ab341932ae6ca4f838a6915a8fb2f75dcd45269cf9d5bbdeee0
3
+ metadata.gz: 06a855fcd373f4b83eb0de6f4ebda1eadb564bd568b85c312a23b93747d9a55c
4
+ data.tar.gz: 1cf8fad6ef31ff2c413418aad2aa5faf9188868f9e2ffc110321867315fba7d0
5
5
  SHA512:
6
- metadata.gz: 06d8ad44f3611f0d4c403916ff8f67c456225d8dca591c9ef7a25062fbcd77c638f5ffd6c408d63a0dac5307d1ecc9d5e274bdc9c22b517273363dc6859f4517
7
- data.tar.gz: 4556718e67afd15190357406cba150b83cb901bbbfd677752a12a10053dd400167d23b7fc373a6e1dd987c2fef5be9467ddfd8b2df944e3d6180ac79a737ae12
6
+ metadata.gz: 2292f433cd0c52c9bd89673c16a65078a91aae0aeb7266975e256da8907746396ef097215666ae00e2adea2c59d5b0ce8852476a5bde7c1a1009301ae037df4a
7
+ data.tar.gz: 850b5487a92752dd0d74e0bc2b13d78a73d66419dd38e2c8f629eb58e8c49dc665383f398846cd802c6992d1b26b76198a278d4f0fc90c50adc48adfc70fea2e
data/lib/xero-ruby.rb CHANGED
@@ -349,6 +349,10 @@ require 'xero-ruby/models/accounting/batch_payments'
349
349
  require 'xero-ruby/models/accounting/bill'
350
350
  require 'xero-ruby/models/accounting/branding_theme'
351
351
  require 'xero-ruby/models/accounting/branding_themes'
352
+ require 'xero-ruby/models/accounting/budget'
353
+ require 'xero-ruby/models/accounting/budget_balance'
354
+ require 'xero-ruby/models/accounting/budget_line'
355
+ require 'xero-ruby/models/accounting/budgets'
352
356
  require 'xero-ruby/models/accounting/cis_org_setting'
353
357
  require 'xero-ruby/models/accounting/cis_org_settings'
354
358
  require 'xero-ruby/models/accounting/cis_setting'
@@ -7018,6 +7018,159 @@ module XeroRuby
7018
7018
  return data, status_code, headers
7019
7019
  end
7020
7020
 
7021
+ # Retrieves a specific budgets, which includes budget lines
7022
+ # @param xero_tenant_id [String] Xero identifier for Tenant
7023
+ # @param budget_id [String] Unique identifier for Budgets
7024
+ # @param [Hash] opts the optional parameters
7025
+ # @return [Budgets]
7026
+ def get_budget(xero_tenant_id, budget_id, opts = {})
7027
+ data, _status_code, _headers = get_budget_with_http_info(xero_tenant_id, budget_id, opts)
7028
+ data
7029
+ end
7030
+
7031
+ # Retrieves a specific budgets, which includes budget lines
7032
+ # @param xero_tenant_id [String] Xero identifier for Tenant
7033
+ # @param budget_id [String] Unique identifier for Budgets
7034
+ # @param [Hash] opts the optional parameters
7035
+ # @return [Array<(Budgets, Integer, Hash)>] Budgets data, response status code and response headers
7036
+ def get_budget_with_http_info(xero_tenant_id, budget_id, options = {})
7037
+ opts = options.dup
7038
+ if @api_client.config.debugging
7039
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_budget ...'
7040
+ end
7041
+ # verify the required parameter 'xero_tenant_id' is set
7042
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
7043
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_budget"
7044
+ end
7045
+ # verify the required parameter 'budget_id' is set
7046
+ if @api_client.config.client_side_validation && budget_id.nil?
7047
+ fail ArgumentError, "Missing the required parameter 'budget_id' when calling AccountingApi.get_budget"
7048
+ end
7049
+ # resource path
7050
+ local_var_path = '/Budgets/{BudgetID}'.sub('{' + 'BudgetID' + '}', budget_id.to_s)
7051
+
7052
+ # camelize keys of incoming `where` opts
7053
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7054
+
7055
+ # query parameters
7056
+ query_params = opts[:query_params] || {}
7057
+
7058
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7059
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7060
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7061
+
7062
+ # header parameters
7063
+ header_params = opts[:header_params] || {}
7064
+ # HTTP header 'Accept' (if needed)
7065
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
7066
+ header_params[:'xero-tenant-id'] = xero_tenant_id
7067
+
7068
+ # form parameters
7069
+ form_params = opts[:form_params] || {}
7070
+
7071
+ # http body (model)
7072
+ post_body = opts[:body]
7073
+
7074
+ # return_type
7075
+ return_type = opts[:return_type] || 'Budgets'
7076
+
7077
+ # auth_names
7078
+ auth_names = opts[:auth_names] || ['OAuth2']
7079
+
7080
+ new_options = opts.merge(
7081
+ :header_params => header_params,
7082
+ :query_params => query_params,
7083
+ :form_params => form_params,
7084
+ :body => post_body,
7085
+ :auth_names => auth_names,
7086
+ :return_type => return_type
7087
+ )
7088
+
7089
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7090
+ if @api_client.config.debugging
7091
+ @api_client.config.logger.debug "API called: AccountingApi#get_budget\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7092
+ end
7093
+ return data, status_code, headers
7094
+ end
7095
+
7096
+ # Retrieve a list of budgets
7097
+ # @param xero_tenant_id [String] Xero identifier for Tenant
7098
+ # @param [Hash] opts the optional parameters
7099
+ # @option opts [Array<String>] :i_ds Filter by BudgetID. Allows you to retrieve a specific individual budget.
7100
+ # @option opts [Date] :date_to Filter by start date
7101
+ # @option opts [Date] :date_from Filter by end date
7102
+ # @return [Budgets]
7103
+ def get_budgets(xero_tenant_id, opts = {})
7104
+ data, _status_code, _headers = get_budgets_with_http_info(xero_tenant_id, opts)
7105
+ data
7106
+ end
7107
+
7108
+ # Retrieve a list of budgets
7109
+ # @param xero_tenant_id [String] Xero identifier for Tenant
7110
+ # @param [Hash] opts the optional parameters
7111
+ # @option opts [Array<String>] :i_ds Filter by BudgetID. Allows you to retrieve a specific individual budget.
7112
+ # @option opts [Date] :date_to Filter by start date
7113
+ # @option opts [Date] :date_from Filter by end date
7114
+ # @return [Array<(Budgets, Integer, Hash)>] Budgets data, response status code and response headers
7115
+ def get_budgets_with_http_info(xero_tenant_id, options = {})
7116
+ opts = options.dup
7117
+ if @api_client.config.debugging
7118
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_budgets ...'
7119
+ end
7120
+ # verify the required parameter 'xero_tenant_id' is set
7121
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
7122
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_budgets"
7123
+ end
7124
+ # resource path
7125
+ local_var_path = '/Budgets'
7126
+
7127
+ # camelize keys of incoming `where` opts
7128
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
7129
+
7130
+ # query parameters
7131
+ query_params = opts[:query_params] || {}
7132
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'i_ds'], :csv) if !opts[:'i_ds'].nil?
7133
+ query_params[:'DateTo'] = opts[:'date_to'] if !opts[:'date_to'].nil?
7134
+ query_params[:'DateFrom'] = opts[:'date_from'] if !opts[:'date_from'].nil?
7135
+
7136
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
7137
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
7138
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
7139
+
7140
+ # header parameters
7141
+ header_params = opts[:header_params] || {}
7142
+ # HTTP header 'Accept' (if needed)
7143
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
7144
+ header_params[:'xero-tenant-id'] = xero_tenant_id
7145
+
7146
+ # form parameters
7147
+ form_params = opts[:form_params] || {}
7148
+
7149
+ # http body (model)
7150
+ post_body = opts[:body]
7151
+
7152
+ # return_type
7153
+ return_type = opts[:return_type] || 'Budgets'
7154
+
7155
+ # auth_names
7156
+ auth_names = opts[:auth_names] || ['OAuth2']
7157
+
7158
+ new_options = opts.merge(
7159
+ :header_params => header_params,
7160
+ :query_params => query_params,
7161
+ :form_params => form_params,
7162
+ :body => post_body,
7163
+ :auth_names => auth_names,
7164
+ :return_type => return_type
7165
+ )
7166
+
7167
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7168
+ if @api_client.config.debugging
7169
+ @api_client.config.logger.debug "API called: AccountingApi#get_budgets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7170
+ end
7171
+ return data, status_code, headers
7172
+ end
7173
+
7021
7174
  # Retrieves a specific contacts in a Xero organisation using a unique contact Id
7022
7175
  # @param xero_tenant_id [String] Xero identifier for Tenant
7023
7176
  # @param contact_id [String] Unique identifier for a Contact
@@ -7569,7 +7722,7 @@ module XeroRuby
7569
7722
  return data, status_code, headers
7570
7723
  end
7571
7724
 
7572
- # Retrieves the contact Id and name of all the contacts in a contact group
7725
+ # Retrieves the contact Id and name of each contact group
7573
7726
  # @param xero_tenant_id [String] Xero identifier for Tenant
7574
7727
  # @param [Hash] opts the optional parameters
7575
7728
  # @option opts [String] :where Filter by an any element
@@ -7580,7 +7733,7 @@ module XeroRuby
7580
7733
  data
7581
7734
  end
7582
7735
 
7583
- # Retrieves the contact Id and name of all the contacts in a contact group
7736
+ # Retrieves the contact Id and name of each contact group
7584
7737
  # @param xero_tenant_id [String] Xero identifier for Tenant
7585
7738
  # @param [Hash] opts the optional parameters
7586
7739
  # @option opts [String] :where Filter by an any element
@@ -9389,8 +9542,8 @@ module XeroRuby
9389
9542
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
9390
9543
  # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Invoices with a status of ARCHIVED will be included in the response
9391
9544
  # @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
9392
- # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (default to false)
9393
9545
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
9546
+ # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (default to false)
9394
9547
  # @return [Invoices]
9395
9548
  def get_invoices(xero_tenant_id, opts = {})
9396
9549
  data, _status_code, _headers = get_invoices_with_http_info(xero_tenant_id, opts)
@@ -9410,8 +9563,8 @@ module XeroRuby
9410
9563
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
9411
9564
  # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Invoices with a status of ARCHIVED will be included in the response
9412
9565
  # @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
9413
- # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
9414
9566
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
9567
+ # @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
9415
9568
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
9416
9569
  def get_invoices_with_http_info(xero_tenant_id, options = {})
9417
9570
  opts = options.dup
@@ -9439,8 +9592,8 @@ module XeroRuby
9439
9592
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
9440
9593
  query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
9441
9594
  query_params[:'createdByMyApp'] = opts[:'created_by_my_app'] if !opts[:'created_by_my_app'].nil?
9442
- query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
9443
9595
  query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
9596
+ query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
9444
9597
 
9445
9598
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
9446
9599
  query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
@@ -13916,150 +14069,6 @@ module XeroRuby
13916
14069
  return data, status_code, headers
13917
14070
  end
13918
14071
 
13919
- # Retrieves a specific report for BAS using a unique report Id (only valid for AU orgs)
13920
- # @param xero_tenant_id [String] Xero identifier for Tenant
13921
- # @param report_id [String] Unique identifier for a Report
13922
- # @param [Hash] opts the optional parameters
13923
- # @return [ReportWithRows]
13924
- def get_report_ba_sor_gst(xero_tenant_id, report_id, opts = {})
13925
- data, _status_code, _headers = get_report_ba_sor_gst_with_http_info(xero_tenant_id, report_id, opts)
13926
- data
13927
- end
13928
-
13929
- # Retrieves a specific report for BAS using a unique report Id (only valid for AU orgs)
13930
- # @param xero_tenant_id [String] Xero identifier for Tenant
13931
- # @param report_id [String] Unique identifier for a Report
13932
- # @param [Hash] opts the optional parameters
13933
- # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
13934
- def get_report_ba_sor_gst_with_http_info(xero_tenant_id, report_id, options = {})
13935
- opts = options.dup
13936
- if @api_client.config.debugging
13937
- @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_ba_sor_gst ...'
13938
- end
13939
- # verify the required parameter 'xero_tenant_id' is set
13940
- if @api_client.config.client_side_validation && xero_tenant_id.nil?
13941
- fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_report_ba_sor_gst"
13942
- end
13943
- # verify the required parameter 'report_id' is set
13944
- if @api_client.config.client_side_validation && report_id.nil?
13945
- fail ArgumentError, "Missing the required parameter 'report_id' when calling AccountingApi.get_report_ba_sor_gst"
13946
- end
13947
- # resource path
13948
- local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', report_id.to_s)
13949
-
13950
- # camelize keys of incoming `where` opts
13951
- opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
13952
-
13953
- # query parameters
13954
- query_params = opts[:query_params] || {}
13955
-
13956
- # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
13957
- query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
13958
- query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
13959
-
13960
- # header parameters
13961
- header_params = opts[:header_params] || {}
13962
- # HTTP header 'Accept' (if needed)
13963
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13964
- header_params[:'xero-tenant-id'] = xero_tenant_id
13965
-
13966
- # form parameters
13967
- form_params = opts[:form_params] || {}
13968
-
13969
- # http body (model)
13970
- post_body = opts[:body]
13971
-
13972
- # return_type
13973
- return_type = opts[:return_type] || 'ReportWithRows'
13974
-
13975
- # auth_names
13976
- auth_names = opts[:auth_names] || ['OAuth2']
13977
-
13978
- new_options = opts.merge(
13979
- :header_params => header_params,
13980
- :query_params => query_params,
13981
- :form_params => form_params,
13982
- :body => post_body,
13983
- :auth_names => auth_names,
13984
- :return_type => return_type
13985
- )
13986
-
13987
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13988
- if @api_client.config.debugging
13989
- @api_client.config.logger.debug "API called: AccountingApi#get_report_ba_sor_gst\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13990
- end
13991
- return data, status_code, headers
13992
- end
13993
-
13994
- # Retrieves report for BAS (only valid for AU orgs)
13995
- # @param xero_tenant_id [String] Xero identifier for Tenant
13996
- # @param [Hash] opts the optional parameters
13997
- # @return [ReportWithRows]
13998
- def get_report_ba_sor_gst_list(xero_tenant_id, opts = {})
13999
- data, _status_code, _headers = get_report_ba_sor_gst_list_with_http_info(xero_tenant_id, opts)
14000
- data
14001
- end
14002
-
14003
- # Retrieves report for BAS (only valid for AU orgs)
14004
- # @param xero_tenant_id [String] Xero identifier for Tenant
14005
- # @param [Hash] opts the optional parameters
14006
- # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
14007
- def get_report_ba_sor_gst_list_with_http_info(xero_tenant_id, options = {})
14008
- opts = options.dup
14009
- if @api_client.config.debugging
14010
- @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_ba_sor_gst_list ...'
14011
- end
14012
- # verify the required parameter 'xero_tenant_id' is set
14013
- if @api_client.config.client_side_validation && xero_tenant_id.nil?
14014
- fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_report_ba_sor_gst_list"
14015
- end
14016
- # resource path
14017
- local_var_path = '/Reports'
14018
-
14019
- # camelize keys of incoming `where` opts
14020
- opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14021
-
14022
- # query parameters
14023
- query_params = opts[:query_params] || {}
14024
-
14025
- # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14026
- query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14027
- query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14028
-
14029
- # header parameters
14030
- header_params = opts[:header_params] || {}
14031
- # HTTP header 'Accept' (if needed)
14032
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14033
- header_params[:'xero-tenant-id'] = xero_tenant_id
14034
-
14035
- # form parameters
14036
- form_params = opts[:form_params] || {}
14037
-
14038
- # http body (model)
14039
- post_body = opts[:body]
14040
-
14041
- # return_type
14042
- return_type = opts[:return_type] || 'ReportWithRows'
14043
-
14044
- # auth_names
14045
- auth_names = opts[:auth_names] || ['OAuth2']
14046
-
14047
- new_options = opts.merge(
14048
- :header_params => header_params,
14049
- :query_params => query_params,
14050
- :form_params => form_params,
14051
- :body => post_body,
14052
- :auth_names => auth_names,
14053
- :return_type => return_type
14054
- )
14055
-
14056
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
14057
- if @api_client.config.debugging
14058
- @api_client.config.logger.debug "API called: AccountingApi#get_report_ba_sor_gst_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14059
- end
14060
- return data, status_code, headers
14061
- end
14062
-
14063
14072
  # Retrieves report for balancesheet
14064
14073
  # @param xero_tenant_id [String] Xero identifier for Tenant
14065
14074
  # @param [Hash] opts the optional parameters
@@ -14233,7 +14242,7 @@ module XeroRuby
14233
14242
  # @param xero_tenant_id [String] Xero identifier for Tenant
14234
14243
  # @param [Hash] opts the optional parameters
14235
14244
  # @option opts [Date] :date The date for the Bank Summary report e.g. 2018-03-31
14236
- # @option opts [Integer] :period The number of periods to compare (integer between 1 and 12)
14245
+ # @option opts [Integer] :periods The number of periods to compare (integer between 1 and 12)
14237
14246
  # @option opts [Integer] :timeframe The period size to compare to (1&#x3D;month, 3&#x3D;quarter, 12&#x3D;year)
14238
14247
  # @return [ReportWithRows]
14239
14248
  def get_report_budget_summary(xero_tenant_id, opts = {})
@@ -14245,7 +14254,7 @@ module XeroRuby
14245
14254
  # @param xero_tenant_id [String] Xero identifier for Tenant
14246
14255
  # @param [Hash] opts the optional parameters
14247
14256
  # @option opts [Date] :date The date for the Bank Summary report e.g. 2018-03-31
14248
- # @option opts [Integer] :period The number of periods to compare (integer between 1 and 12)
14257
+ # @option opts [Integer] :periods The number of periods to compare (integer between 1 and 12)
14249
14258
  # @option opts [Integer] :timeframe The period size to compare to (1&#x3D;month, 3&#x3D;quarter, 12&#x3D;year)
14250
14259
  # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
14251
14260
  def get_report_budget_summary_with_http_info(xero_tenant_id, options = {})
@@ -14266,7 +14275,7 @@ module XeroRuby
14266
14275
  # query parameters
14267
14276
  query_params = opts[:query_params] || {}
14268
14277
  query_params[:'date'] = opts[:'date'] if !opts[:'date'].nil?
14269
- query_params[:'period'] = opts[:'period'] if !opts[:'period'].nil?
14278
+ query_params[:'periods'] = opts[:'periods'] if !opts[:'periods'].nil?
14270
14279
  query_params[:'timeframe'] = opts[:'timeframe'] if !opts[:'timeframe'].nil?
14271
14280
 
14272
14281
  # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
@@ -14379,6 +14388,81 @@ module XeroRuby
14379
14388
  return data, status_code, headers
14380
14389
  end
14381
14390
 
14391
+ # Retrieves a specific report using a unique ReportID
14392
+ # @param xero_tenant_id [String] Xero identifier for Tenant
14393
+ # @param report_id [String] Unique identifier for a Report
14394
+ # @param [Hash] opts the optional parameters
14395
+ # @return [ReportWithRows]
14396
+ def get_report_from_id(xero_tenant_id, report_id, opts = {})
14397
+ data, _status_code, _headers = get_report_from_id_with_http_info(xero_tenant_id, report_id, opts)
14398
+ data
14399
+ end
14400
+
14401
+ # Retrieves a specific report using a unique ReportID
14402
+ # @param xero_tenant_id [String] Xero identifier for Tenant
14403
+ # @param report_id [String] Unique identifier for a Report
14404
+ # @param [Hash] opts the optional parameters
14405
+ # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
14406
+ def get_report_from_id_with_http_info(xero_tenant_id, report_id, options = {})
14407
+ opts = options.dup
14408
+ if @api_client.config.debugging
14409
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_report_from_id ...'
14410
+ end
14411
+ # verify the required parameter 'xero_tenant_id' is set
14412
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
14413
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_report_from_id"
14414
+ end
14415
+ # verify the required parameter 'report_id' is set
14416
+ if @api_client.config.client_side_validation && report_id.nil?
14417
+ fail ArgumentError, "Missing the required parameter 'report_id' when calling AccountingApi.get_report_from_id"
14418
+ end
14419
+ # resource path
14420
+ local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', report_id.to_s)
14421
+
14422
+ # camelize keys of incoming `where` opts
14423
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14424
+
14425
+ # query parameters
14426
+ query_params = opts[:query_params] || {}
14427
+
14428
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14429
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14430
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14431
+
14432
+ # header parameters
14433
+ header_params = opts[:header_params] || {}
14434
+ # HTTP header 'Accept' (if needed)
14435
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14436
+ header_params[:'xero-tenant-id'] = xero_tenant_id
14437
+
14438
+ # form parameters
14439
+ form_params = opts[:form_params] || {}
14440
+
14441
+ # http body (model)
14442
+ post_body = opts[:body]
14443
+
14444
+ # return_type
14445
+ return_type = opts[:return_type] || 'ReportWithRows'
14446
+
14447
+ # auth_names
14448
+ auth_names = opts[:auth_names] || ['OAuth2']
14449
+
14450
+ new_options = opts.merge(
14451
+ :header_params => header_params,
14452
+ :query_params => query_params,
14453
+ :form_params => form_params,
14454
+ :body => post_body,
14455
+ :auth_names => auth_names,
14456
+ :return_type => return_type
14457
+ )
14458
+
14459
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
14460
+ if @api_client.config.debugging
14461
+ @api_client.config.logger.debug "API called: AccountingApi#get_report_from_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14462
+ end
14463
+ return data, status_code, headers
14464
+ end
14465
+
14382
14466
  # Retrieves report for profit and loss
14383
14467
  # @param xero_tenant_id [String] Xero identifier for Tenant
14384
14468
  # @param [Hash] opts the optional parameters
@@ -14629,6 +14713,75 @@ module XeroRuby
14629
14713
  return data, status_code, headers
14630
14714
  end
14631
14715
 
14716
+ # Retrieves a list of the organistaions unique reports that require a uuid to fetch
14717
+ # @param xero_tenant_id [String] Xero identifier for Tenant
14718
+ # @param [Hash] opts the optional parameters
14719
+ # @return [ReportWithRows]
14720
+ def get_reports_list(xero_tenant_id, opts = {})
14721
+ data, _status_code, _headers = get_reports_list_with_http_info(xero_tenant_id, opts)
14722
+ data
14723
+ end
14724
+
14725
+ # Retrieves a list of the organistaions unique reports that require a uuid to fetch
14726
+ # @param xero_tenant_id [String] Xero identifier for Tenant
14727
+ # @param [Hash] opts the optional parameters
14728
+ # @return [Array<(ReportWithRows, Integer, Hash)>] ReportWithRows data, response status code and response headers
14729
+ def get_reports_list_with_http_info(xero_tenant_id, options = {})
14730
+ opts = options.dup
14731
+ if @api_client.config.debugging
14732
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_reports_list ...'
14733
+ end
14734
+ # verify the required parameter 'xero_tenant_id' is set
14735
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
14736
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_reports_list"
14737
+ end
14738
+ # resource path
14739
+ local_var_path = '/Reports'
14740
+
14741
+ # camelize keys of incoming `where` opts
14742
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14743
+
14744
+ # query parameters
14745
+ query_params = opts[:query_params] || {}
14746
+
14747
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14748
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14749
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14750
+
14751
+ # header parameters
14752
+ header_params = opts[:header_params] || {}
14753
+ # HTTP header 'Accept' (if needed)
14754
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14755
+ header_params[:'xero-tenant-id'] = xero_tenant_id
14756
+
14757
+ # form parameters
14758
+ form_params = opts[:form_params] || {}
14759
+
14760
+ # http body (model)
14761
+ post_body = opts[:body]
14762
+
14763
+ # return_type
14764
+ return_type = opts[:return_type] || 'ReportWithRows'
14765
+
14766
+ # auth_names
14767
+ auth_names = opts[:auth_names] || ['OAuth2']
14768
+
14769
+ new_options = opts.merge(
14770
+ :header_params => header_params,
14771
+ :query_params => query_params,
14772
+ :form_params => form_params,
14773
+ :body => post_body,
14774
+ :auth_names => auth_names,
14775
+ :return_type => return_type
14776
+ )
14777
+
14778
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
14779
+ if @api_client.config.debugging
14780
+ @api_client.config.logger.debug "API called: AccountingApi#get_reports_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14781
+ end
14782
+ return data, status_code, headers
14783
+ end
14784
+
14632
14785
  # Retrieves tax rates
14633
14786
  # @param xero_tenant_id [String] Xero identifier for Tenant
14634
14787
  # @param [Hash] opts the optional parameters