xero-ruby 2.2.4 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (1037) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +68 -0
  3. data/README.md +91 -47
  4. data/build_notes.md +0 -10
  5. data/docs/accounting/AccountingApi.md +1752 -1593
  6. data/docs/accounting/Action.md +19 -0
  7. data/docs/accounting/Actions.md +17 -0
  8. data/docs/accounting/AddressForOrganisation.md +35 -0
  9. data/docs/accounting/BalanceDetails.md +21 -0
  10. data/docs/accounting/CISOrgSetting.md +1 -1
  11. data/docs/accounting/CISSetting.md +1 -1
  12. data/docs/accounting/ConversionBalances.md +21 -0
  13. data/docs/accounting/ConversionDate.md +19 -0
  14. data/docs/accounting/CreditNote.md +6 -0
  15. data/docs/accounting/ExpenseClaim.md +1 -1
  16. data/docs/accounting/ImportSummary.md +19 -0
  17. data/docs/accounting/ImportSummaryAccounts.md +33 -0
  18. data/docs/accounting/ImportSummaryObject.md +17 -0
  19. data/docs/accounting/ImportSummaryOrganisation.md +17 -0
  20. data/docs/accounting/Invoice.md +3 -1
  21. data/docs/accounting/Organisation.md +1 -1
  22. data/docs/accounting/Setup.md +21 -0
  23. data/docs/assets/Asset.md +2 -0
  24. data/docs/assets/AssetApi.md +30 -42
  25. data/docs/files/Association.md +23 -0
  26. data/docs/files/FileObject.md +31 -0
  27. data/docs/files/FileResponse204.md +17 -0
  28. data/docs/files/Files.md +23 -0
  29. data/docs/files/FilesApi.md +1116 -0
  30. data/docs/files/Folder.md +25 -0
  31. data/docs/files/Folders.md +17 -0
  32. data/docs/files/InlineObject.md +23 -0
  33. data/docs/files/ObjectGroup.md +16 -0
  34. data/docs/files/ObjectType.md +16 -0
  35. data/docs/files/User.md +25 -0
  36. data/docs/payroll_au/APIException.md +21 -0
  37. data/docs/payroll_au/Account.md +23 -0
  38. data/docs/payroll_au/AccountType.md +16 -0
  39. data/docs/payroll_au/AllowanceType.md +16 -0
  40. data/docs/payroll_au/BankAccount.md +27 -0
  41. data/docs/payroll_au/CalendarType.md +16 -0
  42. data/docs/payroll_au/DeductionLine.md +25 -0
  43. data/docs/payroll_au/DeductionType.md +33 -0
  44. data/docs/payroll_au/DeductionTypeCalculationType.md +16 -0
  45. data/docs/payroll_au/EarningsLine.md +33 -0
  46. data/docs/payroll_au/EarningsRate.md +49 -0
  47. data/docs/payroll_au/EarningsRateCalculationType.md +16 -0
  48. data/docs/payroll_au/EarningsType.md +16 -0
  49. data/docs/payroll_au/Employee.md +77 -0
  50. data/docs/payroll_au/EmployeeStatus.md +16 -0
  51. data/docs/payroll_au/Employees.md +17 -0
  52. data/docs/payroll_au/EmploymentBasis.md +16 -0
  53. data/docs/payroll_au/EmploymentTerminationPaymentType.md +16 -0
  54. data/docs/payroll_au/EntitlementFinalPayPayoutType.md +16 -0
  55. data/docs/payroll_au/HomeAddress.md +27 -0
  56. data/docs/payroll_au/LeaveAccrualLine.md +21 -0
  57. data/docs/payroll_au/LeaveApplication.md +35 -0
  58. data/docs/payroll_au/LeaveApplications.md +17 -0
  59. data/docs/payroll_au/LeaveBalance.md +23 -0
  60. data/docs/payroll_au/LeaveEarningsLine.md +21 -0
  61. data/docs/payroll_au/LeaveLine.md +31 -0
  62. data/docs/payroll_au/LeaveLineCalculationType.md +16 -0
  63. data/docs/payroll_au/LeaveLines.md +17 -0
  64. data/docs/payroll_au/LeavePeriod.md +23 -0
  65. data/docs/payroll_au/LeavePeriodStatus.md +16 -0
  66. data/docs/payroll_au/LeaveType.md +33 -0
  67. data/docs/payroll_au/LeaveTypeContributionType.md +16 -0
  68. data/docs/payroll_au/ManualTaxType.md +16 -0
  69. data/docs/payroll_au/OpeningBalances.md +29 -0
  70. data/docs/payroll_au/PayItem.md +23 -0
  71. data/docs/payroll_au/PayItems.md +17 -0
  72. data/docs/payroll_au/PayRun.md +47 -0
  73. data/docs/payroll_au/PayRunStatus.md +16 -0
  74. data/docs/payroll_au/PayRuns.md +17 -0
  75. data/docs/payroll_au/PayTemplate.md +25 -0
  76. data/docs/payroll_au/PaymentFrequencyType.md +16 -0
  77. data/docs/payroll_au/PayrollAuApi.md +2018 -0
  78. data/docs/payroll_au/PayrollCalendar.md +29 -0
  79. data/docs/payroll_au/PayrollCalendars.md +17 -0
  80. data/docs/payroll_au/Payslip.md +53 -0
  81. data/docs/payroll_au/PayslipLines.md +31 -0
  82. data/docs/payroll_au/PayslipObject.md +17 -0
  83. data/docs/payroll_au/PayslipSummary.md +39 -0
  84. data/docs/payroll_au/Payslips.md +17 -0
  85. data/docs/payroll_au/RateType.md +16 -0
  86. data/docs/payroll_au/ReimbursementLine.md +23 -0
  87. data/docs/payroll_au/ReimbursementLines.md +17 -0
  88. data/docs/payroll_au/ReimbursementType.md +25 -0
  89. data/docs/payroll_au/ResidencyStatus.md +16 -0
  90. data/docs/payroll_au/Settings.md +21 -0
  91. data/docs/payroll_au/SettingsObject.md +17 -0
  92. data/docs/payroll_au/SettingsTrackingCategories.md +19 -0
  93. data/docs/payroll_au/SettingsTrackingCategoriesEmployeeGroups.md +19 -0
  94. data/docs/payroll_au/SettingsTrackingCategoriesTimesheetCategories.md +19 -0
  95. data/docs/payroll_au/State.md +16 -0
  96. data/docs/payroll_au/SuperFund.md +41 -0
  97. data/docs/payroll_au/SuperFundProduct.md +23 -0
  98. data/docs/payroll_au/SuperFundProducts.md +17 -0
  99. data/docs/payroll_au/SuperFundType.md +16 -0
  100. data/docs/payroll_au/SuperFunds.md +17 -0
  101. data/docs/payroll_au/SuperLine.md +31 -0
  102. data/docs/payroll_au/SuperMembership.md +21 -0
  103. data/docs/payroll_au/SuperannuationCalculationType.md +16 -0
  104. data/docs/payroll_au/SuperannuationContributionType.md +16 -0
  105. data/docs/payroll_au/SuperannuationLine.md +33 -0
  106. data/docs/payroll_au/TFNExemptionType.md +16 -0
  107. data/docs/payroll_au/TaxDeclaration.md +47 -0
  108. data/docs/payroll_au/TaxLine.md +27 -0
  109. data/docs/payroll_au/Timesheet.md +33 -0
  110. data/docs/payroll_au/TimesheetLine.md +23 -0
  111. data/docs/payroll_au/TimesheetObject.md +17 -0
  112. data/docs/payroll_au/TimesheetStatus.md +16 -0
  113. data/docs/payroll_au/Timesheets.md +17 -0
  114. data/docs/payroll_au/ValidationError.md +17 -0
  115. data/docs/payroll_nz/Account.md +23 -0
  116. data/docs/payroll_nz/Accounts.md +17 -0
  117. data/docs/payroll_nz/Address.md +27 -0
  118. data/docs/payroll_nz/BankAccount.md +31 -0
  119. data/docs/payroll_nz/Benefit.md +35 -0
  120. data/docs/payroll_nz/CalendarType.md +16 -0
  121. data/docs/payroll_nz/Deduction.md +27 -0
  122. data/docs/payroll_nz/DeductionLine.md +25 -0
  123. data/docs/payroll_nz/DeductionObject.md +21 -0
  124. data/docs/payroll_nz/Deductions.md +21 -0
  125. data/docs/payroll_nz/EarningsLine.md +35 -0
  126. data/docs/payroll_nz/EarningsOrder.md +25 -0
  127. data/docs/payroll_nz/EarningsOrderObject.md +21 -0
  128. data/docs/payroll_nz/EarningsOrders.md +21 -0
  129. data/docs/payroll_nz/EarningsRate.md +35 -0
  130. data/docs/payroll_nz/EarningsRateObject.md +21 -0
  131. data/docs/payroll_nz/EarningsRates.md +21 -0
  132. data/docs/payroll_nz/EarningsTemplate.md +27 -0
  133. data/docs/payroll_nz/EarningsTemplateObject.md +21 -0
  134. data/docs/payroll_nz/Employee.md +43 -0
  135. data/docs/payroll_nz/EmployeeEarningsTemplates.md +21 -0
  136. data/docs/payroll_nz/EmployeeLeave.md +29 -0
  137. data/docs/payroll_nz/EmployeeLeaveBalance.md +23 -0
  138. data/docs/payroll_nz/EmployeeLeaveBalances.md +21 -0
  139. data/docs/payroll_nz/EmployeeLeaveObject.md +21 -0
  140. data/docs/payroll_nz/EmployeeLeaveSetup.md +29 -0
  141. data/docs/payroll_nz/EmployeeLeaveSetupObject.md +21 -0
  142. data/docs/payroll_nz/EmployeeLeaveType.md +35 -0
  143. data/docs/payroll_nz/EmployeeLeaveTypeObject.md +21 -0
  144. data/docs/payroll_nz/EmployeeLeaveTypes.md +21 -0
  145. data/docs/payroll_nz/EmployeeLeaves.md +21 -0
  146. data/docs/payroll_nz/EmployeeObject.md +21 -0
  147. data/docs/payroll_nz/EmployeeOpeningBalance.md +23 -0
  148. data/docs/payroll_nz/EmployeeOpeningBalancesObject.md +21 -0
  149. data/docs/payroll_nz/EmployeePayTemplate.md +19 -0
  150. data/docs/payroll_nz/EmployeePayTemplateObject.md +21 -0
  151. data/docs/payroll_nz/EmployeePayTemplates.md +21 -0
  152. data/docs/payroll_nz/EmployeeStatutoryLeaveBalance.md +21 -0
  153. data/docs/payroll_nz/EmployeeStatutoryLeaveBalanceObject.md +21 -0
  154. data/docs/payroll_nz/EmployeeStatutoryLeaveSummary.md +29 -0
  155. data/docs/payroll_nz/EmployeeStatutoryLeavesSummaries.md +21 -0
  156. data/docs/payroll_nz/EmployeeStatutorySickLeave.md +47 -0
  157. data/docs/payroll_nz/EmployeeStatutorySickLeaveObject.md +21 -0
  158. data/docs/payroll_nz/EmployeeStatutorySickLeaves.md +21 -0
  159. data/docs/payroll_nz/EmployeeTax.md +47 -0
  160. data/docs/payroll_nz/EmployeeTaxObject.md +21 -0
  161. data/docs/payroll_nz/Employees.md +21 -0
  162. data/docs/payroll_nz/Employment.md +21 -0
  163. data/docs/payroll_nz/EmploymentObject.md +21 -0
  164. data/docs/payroll_nz/GrossEarningsHistory.md +19 -0
  165. data/docs/payroll_nz/InvalidField.md +19 -0
  166. data/docs/payroll_nz/LeaveAccrualLine.md +19 -0
  167. data/docs/payroll_nz/LeaveEarningsLine.md +35 -0
  168. data/docs/payroll_nz/LeavePeriod.md +23 -0
  169. data/docs/payroll_nz/LeavePeriods.md +21 -0
  170. data/docs/payroll_nz/LeaveType.md +27 -0
  171. data/docs/payroll_nz/LeaveTypeObject.md +21 -0
  172. data/docs/payroll_nz/LeaveTypes.md +21 -0
  173. data/docs/payroll_nz/Pagination.md +23 -0
  174. data/docs/payroll_nz/PayRun.md +39 -0
  175. data/docs/payroll_nz/PayRunCalendar.md +29 -0
  176. data/docs/payroll_nz/PayRunCalendarObject.md +21 -0
  177. data/docs/payroll_nz/PayRunCalendars.md +21 -0
  178. data/docs/payroll_nz/PayRunObject.md +21 -0
  179. data/docs/payroll_nz/PayRuns.md +21 -0
  180. data/docs/payroll_nz/PaySlip.md +75 -0
  181. data/docs/payroll_nz/PaySlipObject.md +21 -0
  182. data/docs/payroll_nz/PaySlips.md +21 -0
  183. data/docs/payroll_nz/PaymentLine.md +25 -0
  184. data/docs/payroll_nz/PaymentMethod.md +19 -0
  185. data/docs/payroll_nz/PaymentMethodObject.md +21 -0
  186. data/docs/payroll_nz/PayrollNzApi.md +4544 -0
  187. data/docs/payroll_nz/Problem.md +27 -0
  188. data/docs/payroll_nz/Reimbursement.md +33 -0
  189. data/docs/payroll_nz/ReimbursementLine.md +25 -0
  190. data/docs/payroll_nz/ReimbursementObject.md +21 -0
  191. data/docs/payroll_nz/Reimbursements.md +21 -0
  192. data/docs/payroll_nz/SalaryAndWage.md +35 -0
  193. data/docs/payroll_nz/SalaryAndWageObject.md +21 -0
  194. data/docs/payroll_nz/SalaryAndWages.md +21 -0
  195. data/docs/payroll_nz/Settings.md +21 -0
  196. data/docs/payroll_nz/StatutoryDeduction.md +25 -0
  197. data/docs/payroll_nz/StatutoryDeductionCategory.md +16 -0
  198. data/docs/payroll_nz/StatutoryDeductionLine.md +23 -0
  199. data/docs/payroll_nz/StatutoryDeductionObject.md +21 -0
  200. data/docs/payroll_nz/StatutoryDeductions.md +21 -0
  201. data/docs/payroll_nz/SuperannuationLine.md +27 -0
  202. data/docs/payroll_nz/SuperannuationObject.md +21 -0
  203. data/docs/payroll_nz/Superannuations.md +21 -0
  204. data/docs/payroll_nz/TaxCode.md +16 -0
  205. data/docs/payroll_nz/TaxLine.md +25 -0
  206. data/docs/payroll_nz/TaxSettings.md +27 -0
  207. data/docs/payroll_nz/Timesheet.md +33 -0
  208. data/docs/payroll_nz/TimesheetEarningsLine.md +35 -0
  209. data/docs/payroll_nz/TimesheetLine.md +25 -0
  210. data/docs/payroll_nz/TimesheetLineObject.md +21 -0
  211. data/docs/payroll_nz/TimesheetObject.md +21 -0
  212. data/docs/payroll_nz/Timesheets.md +21 -0
  213. data/docs/payroll_nz/TrackingCategories.md +21 -0
  214. data/docs/payroll_nz/TrackingCategory.md +19 -0
  215. data/docs/payroll_uk/Account.md +23 -0
  216. data/docs/payroll_uk/Accounts.md +17 -0
  217. data/docs/payroll_uk/Address.md +25 -0
  218. data/docs/payroll_uk/BankAccount.md +21 -0
  219. data/docs/payroll_uk/Benefit.md +43 -0
  220. data/docs/payroll_uk/BenefitLine.md +25 -0
  221. data/docs/payroll_uk/BenefitObject.md +21 -0
  222. data/docs/payroll_uk/Benefits.md +21 -0
  223. data/docs/payroll_uk/CourtOrderLine.md +19 -0
  224. data/docs/payroll_uk/Deduction.md +47 -0
  225. data/docs/payroll_uk/DeductionLine.md +23 -0
  226. data/docs/payroll_uk/DeductionObject.md +21 -0
  227. data/docs/payroll_uk/Deductions.md +21 -0
  228. data/docs/payroll_uk/EarningsLine.md +33 -0
  229. data/docs/payroll_uk/EarningsOrder.md +25 -0
  230. data/docs/payroll_uk/EarningsOrderObject.md +21 -0
  231. data/docs/payroll_uk/EarningsOrders.md +21 -0
  232. data/docs/payroll_uk/EarningsRate.md +35 -0
  233. data/docs/payroll_uk/EarningsRateObject.md +21 -0
  234. data/docs/payroll_uk/EarningsRates.md +21 -0
  235. data/docs/payroll_uk/EarningsTemplate.md +27 -0
  236. data/docs/payroll_uk/EarningsTemplateObject.md +21 -0
  237. data/docs/payroll_uk/Employee.md +45 -0
  238. data/docs/payroll_uk/EmployeeLeave.md +29 -0
  239. data/docs/payroll_uk/EmployeeLeaveBalance.md +23 -0
  240. data/docs/payroll_uk/EmployeeLeaveBalances.md +21 -0
  241. data/docs/payroll_uk/EmployeeLeaveObject.md +21 -0
  242. data/docs/payroll_uk/EmployeeLeaveType.md +27 -0
  243. data/docs/payroll_uk/EmployeeLeaveTypeObject.md +21 -0
  244. data/docs/payroll_uk/EmployeeLeaveTypes.md +21 -0
  245. data/docs/payroll_uk/EmployeeLeaves.md +21 -0
  246. data/docs/payroll_uk/EmployeeObject.md +21 -0
  247. data/docs/payroll_uk/EmployeeOpeningBalances.md +27 -0
  248. data/docs/payroll_uk/EmployeeOpeningBalancesObject.md +21 -0
  249. data/docs/payroll_uk/EmployeePayTemplate.md +19 -0
  250. data/docs/payroll_uk/EmployeePayTemplateObject.md +21 -0
  251. data/docs/payroll_uk/EmployeePayTemplates.md +21 -0
  252. data/docs/payroll_uk/EmployeeStatutoryLeaveBalance.md +21 -0
  253. data/docs/payroll_uk/EmployeeStatutoryLeaveBalanceObject.md +21 -0
  254. data/docs/payroll_uk/EmployeeStatutoryLeaveSummary.md +29 -0
  255. data/docs/payroll_uk/EmployeeStatutoryLeavesSummaries.md +21 -0
  256. data/docs/payroll_uk/EmployeeStatutorySickLeave.md +47 -0
  257. data/docs/payroll_uk/EmployeeStatutorySickLeaveObject.md +21 -0
  258. data/docs/payroll_uk/EmployeeStatutorySickLeaves.md +21 -0
  259. data/docs/payroll_uk/EmployeeTax.md +37 -0
  260. data/docs/payroll_uk/EmployeeTaxObject.md +21 -0
  261. data/docs/payroll_uk/Employees.md +21 -0
  262. data/docs/payroll_uk/Employment.md +23 -0
  263. data/docs/payroll_uk/EmploymentObject.md +21 -0
  264. data/docs/payroll_uk/InvalidField.md +19 -0
  265. data/docs/payroll_uk/LeaveAccrualLine.md +19 -0
  266. data/docs/payroll_uk/LeaveEarningsLine.md +27 -0
  267. data/docs/payroll_uk/LeavePeriod.md +23 -0
  268. data/docs/payroll_uk/LeavePeriods.md +21 -0
  269. data/docs/payroll_uk/LeaveType.md +31 -0
  270. data/docs/payroll_uk/LeaveTypeObject.md +21 -0
  271. data/docs/payroll_uk/LeaveTypes.md +21 -0
  272. data/docs/payroll_uk/Pagination.md +23 -0
  273. data/docs/payroll_uk/PayRun.md +39 -0
  274. data/docs/payroll_uk/PayRunCalendar.md +29 -0
  275. data/docs/payroll_uk/PayRunCalendarObject.md +21 -0
  276. data/docs/payroll_uk/PayRunCalendars.md +21 -0
  277. data/docs/payroll_uk/PayRunObject.md +21 -0
  278. data/docs/payroll_uk/PayRuns.md +21 -0
  279. data/docs/payroll_uk/PaymentLine.md +25 -0
  280. data/docs/payroll_uk/PaymentMethod.md +19 -0
  281. data/docs/payroll_uk/PaymentMethodObject.md +21 -0
  282. data/docs/payroll_uk/PayrollUkApi.md +4683 -0
  283. data/docs/payroll_uk/Payslip.md +71 -0
  284. data/docs/payroll_uk/PayslipObject.md +21 -0
  285. data/docs/payroll_uk/Payslips.md +21 -0
  286. data/docs/payroll_uk/Problem.md +27 -0
  287. data/docs/payroll_uk/Reimbursement.md +23 -0
  288. data/docs/payroll_uk/ReimbursementLine.md +21 -0
  289. data/docs/payroll_uk/ReimbursementObject.md +21 -0
  290. data/docs/payroll_uk/Reimbursements.md +21 -0
  291. data/docs/payroll_uk/SalaryAndWage.md +33 -0
  292. data/docs/payroll_uk/SalaryAndWageObject.md +21 -0
  293. data/docs/payroll_uk/SalaryAndWages.md +21 -0
  294. data/docs/payroll_uk/Settings.md +21 -0
  295. data/docs/payroll_uk/StatutoryDeduction.md +25 -0
  296. data/docs/payroll_uk/StatutoryDeductionCategory.md +16 -0
  297. data/docs/payroll_uk/TaxLine.md +27 -0
  298. data/docs/payroll_uk/Timesheet.md +33 -0
  299. data/docs/payroll_uk/TimesheetEarningsLine.md +27 -0
  300. data/docs/payroll_uk/TimesheetLine.md +25 -0
  301. data/docs/payroll_uk/TimesheetLineObject.md +21 -0
  302. data/docs/payroll_uk/TimesheetObject.md +21 -0
  303. data/docs/payroll_uk/Timesheets.md +21 -0
  304. data/docs/payroll_uk/TrackingCategories.md +21 -0
  305. data/docs/payroll_uk/TrackingCategory.md +19 -0
  306. data/docs/projects/ProjectApi.md +69 -92
  307. data/lib/xero-ruby.rb +293 -1
  308. data/lib/xero-ruby/api/accounting_api.rb +1058 -336
  309. data/lib/xero-ruby/api/asset_api.rb +7 -9
  310. data/lib/xero-ruby/api/files_api.rb +1271 -0
  311. data/lib/xero-ruby/api/payroll_au_api.rb +2254 -0
  312. data/lib/xero-ruby/api/payroll_nz_api.rb +5261 -0
  313. data/lib/xero-ruby/api/payroll_uk_api.rb +5404 -0
  314. data/lib/xero-ruby/api/project_api.rb +17 -16
  315. data/lib/xero-ruby/api_client.rb +71 -57
  316. data/lib/xero-ruby/api_error.rb +4 -3
  317. data/lib/xero-ruby/configuration.rb +9 -1
  318. data/lib/xero-ruby/models/accounting/account.rb +2 -1
  319. data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
  320. data/lib/xero-ruby/models/accounting/accounts.rb +1 -1
  321. data/lib/xero-ruby/models/accounting/accounts_payable.rb +1 -1
  322. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +1 -1
  323. data/lib/xero-ruby/models/accounting/action.rb +254 -0
  324. data/lib/xero-ruby/models/accounting/actions.rb +210 -0
  325. data/lib/xero-ruby/models/accounting/address.rb +3 -4
  326. data/lib/xero-ruby/models/accounting/address_for_organisation.rb +470 -0
  327. data/lib/xero-ruby/models/accounting/allocation.rb +1 -1
  328. data/lib/xero-ruby/models/accounting/allocations.rb +1 -1
  329. data/lib/xero-ruby/models/accounting/attachment.rb +1 -1
  330. data/lib/xero-ruby/models/accounting/attachments.rb +1 -1
  331. data/lib/xero-ruby/models/accounting/balance_details.rb +229 -0
  332. data/lib/xero-ruby/models/accounting/balances.rb +1 -1
  333. data/lib/xero-ruby/models/accounting/bank_transaction.rb +1 -1
  334. data/lib/xero-ruby/models/accounting/bank_transactions.rb +1 -1
  335. data/lib/xero-ruby/models/accounting/bank_transfer.rb +1 -1
  336. data/lib/xero-ruby/models/accounting/bank_transfers.rb +1 -1
  337. data/lib/xero-ruby/models/accounting/batch_payment.rb +6 -6
  338. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +1 -16
  339. data/lib/xero-ruby/models/accounting/batch_payments.rb +1 -1
  340. data/lib/xero-ruby/models/accounting/bill.rb +1 -1
  341. data/lib/xero-ruby/models/accounting/branding_theme.rb +1 -1
  342. data/lib/xero-ruby/models/accounting/branding_themes.rb +1 -1
  343. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +2 -2
  344. data/lib/xero-ruby/models/accounting/cis_setting.rb +2 -2
  345. data/lib/xero-ruby/models/accounting/cis_settings.rb +1 -1
  346. data/lib/xero-ruby/models/accounting/contact.rb +1 -1
  347. data/lib/xero-ruby/models/accounting/contact_group.rb +1 -1
  348. data/lib/xero-ruby/models/accounting/contact_groups.rb +1 -1
  349. data/lib/xero-ruby/models/accounting/contact_person.rb +1 -1
  350. data/lib/xero-ruby/models/accounting/contacts.rb +1 -1
  351. data/lib/xero-ruby/models/accounting/conversion_balances.rb +231 -0
  352. data/lib/xero-ruby/models/accounting/conversion_date.rb +219 -0
  353. data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
  354. data/lib/xero-ruby/models/accounting/credit_note.rb +32 -2
  355. data/lib/xero-ruby/models/accounting/credit_notes.rb +1 -1
  356. data/lib/xero-ruby/models/accounting/currencies.rb +1 -1
  357. data/lib/xero-ruby/models/accounting/currency.rb +1 -1
  358. data/lib/xero-ruby/models/accounting/currency_code.rb +3 -3
  359. data/lib/xero-ruby/models/accounting/element.rb +1 -1
  360. data/lib/xero-ruby/models/accounting/employee.rb +1 -1
  361. data/lib/xero-ruby/models/accounting/employees.rb +1 -1
  362. data/lib/xero-ruby/models/accounting/error.rb +1 -1
  363. data/lib/xero-ruby/models/accounting/expense_claim.rb +2 -2
  364. data/lib/xero-ruby/models/accounting/expense_claims.rb +1 -1
  365. data/lib/xero-ruby/models/accounting/external_link.rb +1 -1
  366. data/lib/xero-ruby/models/accounting/history_record.rb +1 -1
  367. data/lib/xero-ruby/models/accounting/history_records.rb +1 -1
  368. data/lib/xero-ruby/models/accounting/import_summary.rb +219 -0
  369. data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +289 -0
  370. data/lib/xero-ruby/models/accounting/import_summary_object.rb +208 -0
  371. data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +208 -0
  372. data/lib/xero-ruby/models/accounting/invoice.rb +13 -18
  373. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +1 -1
  374. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +1 -1
  375. data/lib/xero-ruby/models/accounting/invoices.rb +1 -1
  376. data/lib/xero-ruby/models/accounting/item.rb +1 -1
  377. data/lib/xero-ruby/models/accounting/items.rb +1 -1
  378. data/lib/xero-ruby/models/accounting/journal.rb +1 -1
  379. data/lib/xero-ruby/models/accounting/journal_line.rb +1 -1
  380. data/lib/xero-ruby/models/accounting/journals.rb +1 -1
  381. data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
  382. data/lib/xero-ruby/models/accounting/line_item.rb +1 -1
  383. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +1 -1
  384. data/lib/xero-ruby/models/accounting/linked_transaction.rb +1 -1
  385. data/lib/xero-ruby/models/accounting/linked_transactions.rb +1 -1
  386. data/lib/xero-ruby/models/accounting/manual_journal.rb +1 -1
  387. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +1 -1
  388. data/lib/xero-ruby/models/accounting/manual_journals.rb +1 -1
  389. data/lib/xero-ruby/models/accounting/online_invoice.rb +1 -1
  390. data/lib/xero-ruby/models/accounting/online_invoices.rb +1 -1
  391. data/lib/xero-ruby/models/accounting/organisation.rb +4 -2
  392. data/lib/xero-ruby/models/accounting/organisations.rb +1 -1
  393. data/lib/xero-ruby/models/accounting/overpayment.rb +1 -1
  394. data/lib/xero-ruby/models/accounting/overpayments.rb +1 -1
  395. data/lib/xero-ruby/models/accounting/payment.rb +1 -1
  396. data/lib/xero-ruby/models/accounting/payment_delete.rb +1 -1
  397. data/lib/xero-ruby/models/accounting/payment_service.rb +1 -1
  398. data/lib/xero-ruby/models/accounting/payment_services.rb +1 -1
  399. data/lib/xero-ruby/models/accounting/payment_term.rb +1 -1
  400. data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
  401. data/lib/xero-ruby/models/accounting/payments.rb +1 -1
  402. data/lib/xero-ruby/models/accounting/phone.rb +1 -1
  403. data/lib/xero-ruby/models/accounting/prepayment.rb +1 -1
  404. data/lib/xero-ruby/models/accounting/prepayments.rb +1 -1
  405. data/lib/xero-ruby/models/accounting/purchase.rb +1 -1
  406. data/lib/xero-ruby/models/accounting/purchase_order.rb +1 -1
  407. data/lib/xero-ruby/models/accounting/purchase_orders.rb +1 -1
  408. data/lib/xero-ruby/models/accounting/quote.rb +1 -1
  409. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
  410. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
  411. data/lib/xero-ruby/models/accounting/quotes.rb +1 -1
  412. data/lib/xero-ruby/models/accounting/receipt.rb +1 -1
  413. data/lib/xero-ruby/models/accounting/receipts.rb +1 -1
  414. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +1 -1
  415. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +1 -1
  416. data/lib/xero-ruby/models/accounting/report.rb +1 -1
  417. data/lib/xero-ruby/models/accounting/report_attribute.rb +1 -1
  418. data/lib/xero-ruby/models/accounting/report_cell.rb +1 -1
  419. data/lib/xero-ruby/models/accounting/report_fields.rb +1 -1
  420. data/lib/xero-ruby/models/accounting/report_row.rb +1 -1
  421. data/lib/xero-ruby/models/accounting/report_rows.rb +1 -1
  422. data/lib/xero-ruby/models/accounting/report_with_row.rb +1 -1
  423. data/lib/xero-ruby/models/accounting/report_with_rows.rb +1 -1
  424. data/lib/xero-ruby/models/accounting/reports.rb +1 -1
  425. data/lib/xero-ruby/models/accounting/request_empty.rb +1 -1
  426. data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
  427. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +1 -1
  428. data/lib/xero-ruby/models/accounting/schedule.rb +1 -1
  429. data/lib/xero-ruby/models/accounting/setup.rb +232 -0
  430. data/lib/xero-ruby/models/accounting/tax_component.rb +1 -1
  431. data/lib/xero-ruby/models/accounting/tax_rate.rb +1 -1
  432. data/lib/xero-ruby/models/accounting/tax_rates.rb +1 -1
  433. data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
  434. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +1 -1
  435. data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
  436. data/lib/xero-ruby/models/accounting/tracking_categories.rb +1 -1
  437. data/lib/xero-ruby/models/accounting/tracking_category.rb +1 -1
  438. data/lib/xero-ruby/models/accounting/tracking_option.rb +1 -1
  439. data/lib/xero-ruby/models/accounting/tracking_options.rb +1 -1
  440. data/lib/xero-ruby/models/accounting/user.rb +1 -1
  441. data/lib/xero-ruby/models/accounting/users.rb +1 -1
  442. data/lib/xero-ruby/models/accounting/validation_error.rb +1 -1
  443. data/lib/xero-ruby/models/assets/asset.rb +12 -2
  444. data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
  445. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
  446. data/lib/xero-ruby/models/assets/asset_type.rb +1 -1
  447. data/lib/xero-ruby/models/assets/assets.rb +1 -1
  448. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +1 -1
  449. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +1 -1
  450. data/lib/xero-ruby/models/assets/error.rb +1 -1
  451. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +1 -1
  452. data/lib/xero-ruby/models/assets/pagination.rb +1 -1
  453. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +1 -1
  454. data/lib/xero-ruby/models/assets/setting.rb +1 -1
  455. data/lib/xero-ruby/models/files/association.rb +238 -0
  456. data/lib/xero-ruby/models/files/file_object.rb +278 -0
  457. data/lib/xero-ruby/models/files/file_response204.rb +208 -0
  458. data/lib/xero-ruby/models/files/files.rb +240 -0
  459. data/lib/xero-ruby/models/files/folder.rb +248 -0
  460. data/lib/xero-ruby/models/files/folders.rb +210 -0
  461. data/lib/xero-ruby/models/files/inline_object.rb +238 -0
  462. data/lib/xero-ruby/models/files/object_group.rb +46 -0
  463. data/lib/xero-ruby/models/files/object_type.rb +90 -0
  464. data/lib/xero-ruby/models/files/user.rb +253 -0
  465. data/lib/xero-ruby/models/payroll_au/account.rb +238 -0
  466. data/lib/xero-ruby/models/payroll_au/account_type.rb +58 -0
  467. data/lib/xero-ruby/models/payroll_au/allowance_type.rb +42 -0
  468. data/lib/xero-ruby/models/payroll_au/api_exception.rb +229 -0
  469. data/lib/xero-ruby/models/payroll_au/bank_account.rb +258 -0
  470. data/lib/xero-ruby/models/payroll_au/calendar_type.rb +41 -0
  471. data/lib/xero-ruby/models/payroll_au/deduction_line.rb +258 -0
  472. data/lib/xero-ruby/models/payroll_au/deduction_type.rb +340 -0
  473. data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +38 -0
  474. data/lib/xero-ruby/models/payroll_au/earnings_line.rb +293 -0
  475. data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +398 -0
  476. data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +38 -0
  477. data/lib/xero-ruby/models/payroll_au/earnings_type.rb +44 -0
  478. data/lib/xero-ruby/models/payroll_au/employee.rb +571 -0
  479. data/lib/xero-ruby/models/payroll_au/employee_status.rb +37 -0
  480. data/lib/xero-ruby/models/payroll_au/employees.rb +210 -0
  481. data/lib/xero-ruby/models/payroll_au/employment_basis.rb +40 -0
  482. data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +37 -0
  483. data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +37 -0
  484. data/lib/xero-ruby/models/payroll_au/home_address.rb +263 -0
  485. data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +228 -0
  486. data/lib/xero-ruby/models/payroll_au/leave_application.rb +302 -0
  487. data/lib/xero-ruby/models/payroll_au/leave_applications.rb +210 -0
  488. data/lib/xero-ruby/models/payroll_au/leave_balance.rb +238 -0
  489. data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +228 -0
  490. data/lib/xero-ruby/models/payroll_au/leave_line.rb +278 -0
  491. data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +40 -0
  492. data/lib/xero-ruby/models/payroll_au/leave_lines.rb +211 -0
  493. data/lib/xero-ruby/models/payroll_au/leave_period.rb +238 -0
  494. data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +37 -0
  495. data/lib/xero-ruby/models/payroll_au/leave_type.rb +303 -0
  496. data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +39 -0
  497. data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +40 -0
  498. data/lib/xero-ruby/models/payroll_au/opening_balances.rb +278 -0
  499. data/lib/xero-ruby/models/payroll_au/pay_item.rb +246 -0
  500. data/lib/xero-ruby/models/payroll_au/pay_items.rb +208 -0
  501. data/lib/xero-ruby/models/payroll_au/pay_run.rb +367 -0
  502. data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +37 -0
  503. data/lib/xero-ruby/models/payroll_au/pay_runs.rb +210 -0
  504. data/lib/xero-ruby/models/payroll_au/pay_template.rb +258 -0
  505. data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +42 -0
  506. data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +270 -0
  507. data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +210 -0
  508. data/lib/xero-ruby/models/payroll_au/payslip.rb +404 -0
  509. data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +294 -0
  510. data/lib/xero-ruby/models/payroll_au/payslip_object.rb +208 -0
  511. data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +318 -0
  512. data/lib/xero-ruby/models/payroll_au/payslips.rb +210 -0
  513. data/lib/xero-ruby/models/payroll_au/rate_type.rb +38 -0
  514. data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +253 -0
  515. data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +211 -0
  516. data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +263 -0
  517. data/lib/xero-ruby/models/payroll_au/residency_status.rb +38 -0
  518. data/lib/xero-ruby/models/payroll_au/settings.rb +230 -0
  519. data/lib/xero-ruby/models/payroll_au/settings_object.rb +208 -0
  520. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +219 -0
  521. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +219 -0
  522. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +219 -0
  523. data/lib/xero-ruby/models/payroll_au/state.rb +43 -0
  524. data/lib/xero-ruby/models/payroll_au/super_fund.rb +335 -0
  525. data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +238 -0
  526. data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +210 -0
  527. data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +37 -0
  528. data/lib/xero-ruby/models/payroll_au/super_funds.rb +210 -0
  529. data/lib/xero-ruby/models/payroll_au/super_line.rb +278 -0
  530. data/lib/xero-ruby/models/payroll_au/super_membership.rb +238 -0
  531. data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +38 -0
  532. data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +39 -0
  533. data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +288 -0
  534. data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +358 -0
  535. data/lib/xero-ruby/models/payroll_au/tax_line.rb +258 -0
  536. data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +39 -0
  537. data/lib/xero-ruby/models/payroll_au/timesheet.rb +307 -0
  538. data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +240 -0
  539. data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +208 -0
  540. data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +40 -0
  541. data/lib/xero-ruby/models/payroll_au/timesheets.rb +210 -0
  542. data/lib/xero-ruby/models/payroll_au/validation_error.rb +208 -0
  543. data/lib/xero-ruby/models/payroll_nz/account.rb +276 -0
  544. data/lib/xero-ruby/models/payroll_nz/accounts.rb +210 -0
  545. data/lib/xero-ruby/models/payroll_nz/address.rb +273 -0
  546. data/lib/xero-ruby/models/payroll_nz/bank_account.rb +329 -0
  547. data/lib/xero-ruby/models/payroll_nz/benefit.rb +369 -0
  548. data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +42 -0
  549. data/lib/xero-ruby/models/payroll_nz/deduction.rb +311 -0
  550. data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +248 -0
  551. data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +228 -0
  552. data/lib/xero-ruby/models/payroll_nz/deductions.rb +230 -0
  553. data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +298 -0
  554. data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +255 -0
  555. data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +228 -0
  556. data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +230 -0
  557. data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +387 -0
  558. data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +228 -0
  559. data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +230 -0
  560. data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +258 -0
  561. data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +228 -0
  562. data/lib/xero-ruby/models/payroll_nz/employee.rb +374 -0
  563. data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +230 -0
  564. data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +290 -0
  565. data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +238 -0
  566. data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +230 -0
  567. data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +228 -0
  568. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +268 -0
  569. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +228 -0
  570. data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +336 -0
  571. data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +228 -0
  572. data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +230 -0
  573. data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +230 -0
  574. data/lib/xero-ruby/models/payroll_nz/employee_object.rb +228 -0
  575. data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +238 -0
  576. data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +230 -0
  577. data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +220 -0
  578. data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +228 -0
  579. data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +228 -0
  580. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +280 -0
  581. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +228 -0
  582. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +322 -0
  583. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +230 -0
  584. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +419 -0
  585. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +228 -0
  586. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +230 -0
  587. data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +397 -0
  588. data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +228 -0
  589. data/lib/xero-ruby/models/payroll_nz/employees.rb +230 -0
  590. data/lib/xero-ruby/models/payroll_nz/employment.rb +228 -0
  591. data/lib/xero-ruby/models/payroll_nz/employment_object.rb +228 -0
  592. data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +218 -0
  593. data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +218 -0
  594. data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +218 -0
  595. data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +298 -0
  596. data/lib/xero-ruby/models/payroll_nz/leave_period.rb +274 -0
  597. data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +230 -0
  598. data/lib/xero-ruby/models/payroll_nz/leave_type.rb +273 -0
  599. data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +228 -0
  600. data/lib/xero-ruby/models/payroll_nz/leave_types.rb +230 -0
  601. data/lib/xero-ruby/models/payroll_nz/pagination.rb +238 -0
  602. data/lib/xero-ruby/models/payroll_nz/pay_run.rb +371 -0
  603. data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +288 -0
  604. data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +228 -0
  605. data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +230 -0
  606. data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +228 -0
  607. data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +230 -0
  608. data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +557 -0
  609. data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +228 -0
  610. data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +230 -0
  611. data/lib/xero-ruby/models/payroll_nz/payment_line.rb +248 -0
  612. data/lib/xero-ruby/models/payroll_nz/payment_method.rb +257 -0
  613. data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +228 -0
  614. data/lib/xero-ruby/models/payroll_nz/problem.rb +261 -0
  615. data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +364 -0
  616. data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +248 -0
  617. data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +228 -0
  618. data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +230 -0
  619. data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +383 -0
  620. data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +228 -0
  621. data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +230 -0
  622. data/lib/xero-ruby/models/payroll_nz/settings.rb +228 -0
  623. data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +248 -0
  624. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +46 -0
  625. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +238 -0
  626. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +228 -0
  627. data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +230 -0
  628. data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +258 -0
  629. data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +228 -0
  630. data/lib/xero-ruby/models/payroll_nz/superannuations.rb +230 -0
  631. data/lib/xero-ruby/models/payroll_nz/tax_code.rb +54 -0
  632. data/lib/xero-ruby/models/payroll_nz/tax_line.rb +248 -0
  633. data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +294 -0
  634. data/lib/xero-ruby/models/payroll_nz/timesheet.rb +347 -0
  635. data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +298 -0
  636. data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +263 -0
  637. data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +228 -0
  638. data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +228 -0
  639. data/lib/xero-ruby/models/payroll_nz/timesheets.rb +230 -0
  640. data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +228 -0
  641. data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +218 -0
  642. data/lib/xero-ruby/models/payroll_uk/account.rb +279 -0
  643. data/lib/xero-ruby/models/payroll_uk/accounts.rb +210 -0
  644. data/lib/xero-ruby/models/payroll_uk/address.rb +263 -0
  645. data/lib/xero-ruby/models/payroll_uk/bank_account.rb +243 -0
  646. data/lib/xero-ruby/models/payroll_uk/benefit.rb +418 -0
  647. data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +248 -0
  648. data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +228 -0
  649. data/lib/xero-ruby/models/payroll_uk/benefits.rb +230 -0
  650. data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +218 -0
  651. data/lib/xero-ruby/models/payroll_uk/deduction.rb +426 -0
  652. data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +238 -0
  653. data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +228 -0
  654. data/lib/xero-ruby/models/payroll_uk/deductions.rb +230 -0
  655. data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +288 -0
  656. data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +255 -0
  657. data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +228 -0
  658. data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +230 -0
  659. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +387 -0
  660. data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +228 -0
  661. data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +230 -0
  662. data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +258 -0
  663. data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +228 -0
  664. data/lib/xero-ruby/models/payroll_uk/employee.rb +384 -0
  665. data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +290 -0
  666. data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +238 -0
  667. data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +230 -0
  668. data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +228 -0
  669. data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +306 -0
  670. data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +228 -0
  671. data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +230 -0
  672. data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +230 -0
  673. data/lib/xero-ruby/models/payroll_uk/employee_object.rb +228 -0
  674. data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +258 -0
  675. data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +228 -0
  676. data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +220 -0
  677. data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +228 -0
  678. data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +230 -0
  679. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +280 -0
  680. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +228 -0
  681. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +322 -0
  682. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +230 -0
  683. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +419 -0
  684. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +228 -0
  685. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +230 -0
  686. data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +308 -0
  687. data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +228 -0
  688. data/lib/xero-ruby/models/payroll_uk/employees.rb +230 -0
  689. data/lib/xero-ruby/models/payroll_uk/employment.rb +280 -0
  690. data/lib/xero-ruby/models/payroll_uk/employment_object.rb +228 -0
  691. data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +218 -0
  692. data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +218 -0
  693. data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +258 -0
  694. data/lib/xero-ruby/models/payroll_uk/leave_period.rb +274 -0
  695. data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +230 -0
  696. data/lib/xero-ruby/models/payroll_uk/leave_type.rb +293 -0
  697. data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +228 -0
  698. data/lib/xero-ruby/models/payroll_uk/leave_types.rb +230 -0
  699. data/lib/xero-ruby/models/payroll_uk/pagination.rb +238 -0
  700. data/lib/xero-ruby/models/payroll_uk/pay_run.rb +389 -0
  701. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +328 -0
  702. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +228 -0
  703. data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +230 -0
  704. data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +228 -0
  705. data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +230 -0
  706. data/lib/xero-ruby/models/payroll_uk/payment_line.rb +248 -0
  707. data/lib/xero-ruby/models/payroll_uk/payment_method.rb +262 -0
  708. data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +228 -0
  709. data/lib/xero-ruby/models/payroll_uk/payslip.rb +537 -0
  710. data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +228 -0
  711. data/lib/xero-ruby/models/payroll_uk/payslips.rb +230 -0
  712. data/lib/xero-ruby/models/payroll_uk/problem.rb +261 -0
  713. data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +248 -0
  714. data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +228 -0
  715. data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +228 -0
  716. data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +230 -0
  717. data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +368 -0
  718. data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +228 -0
  719. data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +230 -0
  720. data/lib/xero-ruby/models/payroll_uk/settings.rb +228 -0
  721. data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +248 -0
  722. data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +49 -0
  723. data/lib/xero-ruby/models/payroll_uk/tax_line.rb +258 -0
  724. data/lib/xero-ruby/models/payroll_uk/timesheet.rb +347 -0
  725. data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +258 -0
  726. data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +263 -0
  727. data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +228 -0
  728. data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +228 -0
  729. data/lib/xero-ruby/models/payroll_uk/timesheets.rb +230 -0
  730. data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +228 -0
  731. data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +218 -0
  732. data/lib/xero-ruby/models/projects/amount.rb +1 -1
  733. data/lib/xero-ruby/models/projects/charge_type.rb +1 -1
  734. data/lib/xero-ruby/models/projects/currency_code.rb +1 -1
  735. data/lib/xero-ruby/models/projects/error.rb +1 -1
  736. data/lib/xero-ruby/models/projects/pagination.rb +1 -1
  737. data/lib/xero-ruby/models/projects/project.rb +1 -1
  738. data/lib/xero-ruby/models/projects/project_create_or_update.rb +1 -1
  739. data/lib/xero-ruby/models/projects/project_patch.rb +1 -1
  740. data/lib/xero-ruby/models/projects/project_status.rb +1 -1
  741. data/lib/xero-ruby/models/projects/project_user.rb +1 -1
  742. data/lib/xero-ruby/models/projects/project_users.rb +1 -1
  743. data/lib/xero-ruby/models/projects/projects.rb +1 -1
  744. data/lib/xero-ruby/models/projects/task.rb +1 -1
  745. data/lib/xero-ruby/models/projects/task_create_or_update.rb +1 -1
  746. data/lib/xero-ruby/models/projects/tasks.rb +1 -1
  747. data/lib/xero-ruby/models/projects/time_entries.rb +1 -1
  748. data/lib/xero-ruby/models/projects/time_entry.rb +1 -1
  749. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +1 -1
  750. data/lib/xero-ruby/version.rb +2 -2
  751. data/spec/api_client_spec.rb +3 -15
  752. data/spec/api_error_spec.rb +45 -0
  753. data/spec/configuration_spec.rb +9 -16
  754. data/spec/files/api/files_api_spec.rb +249 -0
  755. data/spec/files/models/association_spec.rb +59 -0
  756. data/spec/files/models/file_object_spec.rb +83 -0
  757. data/spec/files/models/file_response204_spec.rb +41 -0
  758. data/spec/files/models/files_spec.rb +59 -0
  759. data/spec/files/models/folder_spec.rb +65 -0
  760. data/spec/files/models/folders_spec.rb +41 -0
  761. data/spec/files/models/inline_object_spec.rb +59 -0
  762. data/spec/files/models/object_group_spec.rb +35 -0
  763. data/spec/files/models/object_type_spec.rb +35 -0
  764. data/spec/files/models/user_spec.rb +81 -0
  765. data/spec/payroll_au/api/payroll_au_api_spec.rb +415 -0
  766. data/spec/payroll_au/models/account_spec.rb +59 -0
  767. data/spec/payroll_au/models/account_type_spec.rb +35 -0
  768. data/spec/payroll_au/models/allowance_type_spec.rb +35 -0
  769. data/spec/payroll_au/models/api_exception_spec.rb +53 -0
  770. data/spec/payroll_au/models/bank_account_spec.rb +71 -0
  771. data/spec/payroll_au/models/calendar_type_spec.rb +35 -0
  772. data/spec/payroll_au/models/deduction_line_spec.rb +65 -0
  773. data/spec/payroll_au/models/deduction_type_calculation_type_spec.rb +35 -0
  774. data/spec/payroll_au/models/deduction_type_spec.rb +93 -0
  775. data/spec/payroll_au/models/earnings_line_spec.rb +89 -0
  776. data/spec/payroll_au/models/earnings_rate_calculation_type_spec.rb +35 -0
  777. data/spec/payroll_au/models/earnings_rate_spec.rb +137 -0
  778. data/spec/payroll_au/models/earnings_type_spec.rb +35 -0
  779. data/spec/payroll_au/models/employee_spec.rb +225 -0
  780. data/spec/payroll_au/models/employee_status_spec.rb +35 -0
  781. data/spec/payroll_au/models/employees_spec.rb +41 -0
  782. data/spec/payroll_au/models/employment_basis_spec.rb +35 -0
  783. data/spec/payroll_au/models/employment_termination_payment_type_spec.rb +35 -0
  784. data/spec/payroll_au/models/entitlement_final_pay_payout_type_spec.rb +35 -0
  785. data/spec/payroll_au/models/home_address_spec.rb +71 -0
  786. data/spec/payroll_au/models/leave_accrual_line_spec.rb +53 -0
  787. data/spec/payroll_au/models/leave_application_spec.rb +95 -0
  788. data/spec/payroll_au/models/leave_applications_spec.rb +41 -0
  789. data/spec/payroll_au/models/leave_balance_spec.rb +59 -0
  790. data/spec/payroll_au/models/leave_earnings_line_spec.rb +53 -0
  791. data/spec/payroll_au/models/leave_line_calculation_type_spec.rb +35 -0
  792. data/spec/payroll_au/models/leave_line_spec.rb +83 -0
  793. data/spec/payroll_au/models/leave_lines_spec.rb +41 -0
  794. data/spec/payroll_au/models/leave_period_spec.rb +59 -0
  795. data/spec/payroll_au/models/leave_period_status_spec.rb +35 -0
  796. data/spec/payroll_au/models/leave_type_contribution_type_spec.rb +35 -0
  797. data/spec/payroll_au/models/leave_type_spec.rb +89 -0
  798. data/spec/payroll_au/models/manual_tax_type_spec.rb +35 -0
  799. data/spec/payroll_au/models/opening_balances_spec.rb +77 -0
  800. data/spec/payroll_au/models/pay_item_spec.rb +59 -0
  801. data/spec/payroll_au/models/pay_items_spec.rb +41 -0
  802. data/spec/payroll_au/models/pay_run_spec.rb +131 -0
  803. data/spec/payroll_au/models/pay_run_status_spec.rb +35 -0
  804. data/spec/payroll_au/models/pay_runs_spec.rb +41 -0
  805. data/spec/payroll_au/models/pay_template_spec.rb +65 -0
  806. data/spec/payroll_au/models/payment_frequency_type_spec.rb +35 -0
  807. data/spec/payroll_au/models/payroll_calendar_spec.rb +77 -0
  808. data/spec/payroll_au/models/payroll_calendars_spec.rb +41 -0
  809. data/spec/payroll_au/models/payslip_lines_spec.rb +83 -0
  810. data/spec/payroll_au/models/payslip_object_spec.rb +41 -0
  811. data/spec/payroll_au/models/payslip_spec.rb +149 -0
  812. data/spec/payroll_au/models/payslip_summary_spec.rb +107 -0
  813. data/spec/payroll_au/models/payslips_spec.rb +41 -0
  814. data/spec/payroll_au/models/rate_type_spec.rb +35 -0
  815. data/spec/payroll_au/models/reimbursement_line_spec.rb +59 -0
  816. data/spec/payroll_au/models/reimbursement_lines_spec.rb +41 -0
  817. data/spec/payroll_au/models/reimbursement_type_spec.rb +65 -0
  818. data/spec/payroll_au/models/residency_status_spec.rb +35 -0
  819. data/spec/payroll_au/models/settings_object_spec.rb +41 -0
  820. data/spec/payroll_au/models/settings_spec.rb +53 -0
  821. data/spec/payroll_au/models/settings_tracking_categories_employee_groups_spec.rb +47 -0
  822. data/spec/payroll_au/models/settings_tracking_categories_spec.rb +47 -0
  823. data/spec/payroll_au/models/settings_tracking_categories_timesheet_categories_spec.rb +47 -0
  824. data/spec/payroll_au/models/state_spec.rb +35 -0
  825. data/spec/payroll_au/models/super_fund_product_spec.rb +59 -0
  826. data/spec/payroll_au/models/super_fund_products_spec.rb +41 -0
  827. data/spec/payroll_au/models/super_fund_spec.rb +113 -0
  828. data/spec/payroll_au/models/super_fund_type_spec.rb +35 -0
  829. data/spec/payroll_au/models/super_funds_spec.rb +41 -0
  830. data/spec/payroll_au/models/super_line_spec.rb +83 -0
  831. data/spec/payroll_au/models/super_membership_spec.rb +53 -0
  832. data/spec/payroll_au/models/superannuation_calculation_type_spec.rb +35 -0
  833. data/spec/payroll_au/models/superannuation_contribution_type_spec.rb +35 -0
  834. data/spec/payroll_au/models/superannuation_line_spec.rb +89 -0
  835. data/spec/payroll_au/models/tax_declaration_spec.rb +131 -0
  836. data/spec/payroll_au/models/tax_line_spec.rb +71 -0
  837. data/spec/payroll_au/models/tfn_exemption_type_spec.rb +35 -0
  838. data/spec/payroll_au/models/timesheet_line_spec.rb +59 -0
  839. data/spec/payroll_au/models/timesheet_object_spec.rb +41 -0
  840. data/spec/payroll_au/models/timesheet_spec.rb +89 -0
  841. data/spec/payroll_au/models/timesheet_status_spec.rb +35 -0
  842. data/spec/payroll_au/models/timesheets_spec.rb +41 -0
  843. data/spec/payroll_au/models/validation_error_spec.rb +41 -0
  844. data/spec/payroll_nz/api/payroll_nz_api_spec.rb +886 -0
  845. data/spec/payroll_nz/models/account_spec.rb +63 -0
  846. data/spec/payroll_nz/models/accounts_spec.rb +41 -0
  847. data/spec/payroll_nz/models/address_spec.rb +71 -0
  848. data/spec/payroll_nz/models/bank_account_spec.rb +87 -0
  849. data/spec/payroll_nz/models/benefit_spec.rb +103 -0
  850. data/spec/payroll_nz/models/deduction_line_spec.rb +65 -0
  851. data/spec/payroll_nz/models/deduction_object_spec.rb +53 -0
  852. data/spec/payroll_nz/models/deduction_spec.rb +75 -0
  853. data/spec/payroll_nz/models/deductions_spec.rb +53 -0
  854. data/spec/payroll_nz/models/earnings_line_spec.rb +95 -0
  855. data/spec/payroll_nz/models/earnings_order_object_spec.rb +53 -0
  856. data/spec/payroll_nz/models/earnings_order_spec.rb +65 -0
  857. data/spec/payroll_nz/models/earnings_orders_spec.rb +53 -0
  858. data/spec/payroll_nz/models/earnings_rate_object_spec.rb +53 -0
  859. data/spec/payroll_nz/models/earnings_rate_spec.rb +103 -0
  860. data/spec/payroll_nz/models/earnings_rates_spec.rb +53 -0
  861. data/spec/payroll_nz/models/earnings_template_object_spec.rb +53 -0
  862. data/spec/payroll_nz/models/earnings_template_spec.rb +71 -0
  863. data/spec/payroll_nz/models/employee_earnings_templates_spec.rb +53 -0
  864. data/spec/payroll_nz/models/employee_leave_balance_spec.rb +59 -0
  865. data/spec/payroll_nz/models/employee_leave_balances_spec.rb +53 -0
  866. data/spec/payroll_nz/models/employee_leave_object_spec.rb +53 -0
  867. data/spec/payroll_nz/models/employee_leave_setup_object_spec.rb +53 -0
  868. data/spec/payroll_nz/models/employee_leave_setup_spec.rb +77 -0
  869. data/spec/payroll_nz/models/employee_leave_spec.rb +77 -0
  870. data/spec/payroll_nz/models/employee_leave_type_object_spec.rb +53 -0
  871. data/spec/payroll_nz/models/employee_leave_type_spec.rb +99 -0
  872. data/spec/payroll_nz/models/employee_leave_types_spec.rb +53 -0
  873. data/spec/payroll_nz/models/employee_leaves_spec.rb +53 -0
  874. data/spec/payroll_nz/models/employee_object_spec.rb +53 -0
  875. data/spec/payroll_nz/models/employee_opening_balance_spec.rb +59 -0
  876. data/spec/payroll_nz/models/employee_opening_balances_object_spec.rb +53 -0
  877. data/spec/payroll_nz/models/employee_pay_template_object_spec.rb +53 -0
  878. data/spec/payroll_nz/models/employee_pay_template_spec.rb +47 -0
  879. data/spec/payroll_nz/models/employee_pay_templates_spec.rb +53 -0
  880. data/spec/payroll_nz/models/employee_spec.rb +123 -0
  881. data/spec/payroll_nz/models/employee_statutory_leave_balance_object_spec.rb +53 -0
  882. data/spec/payroll_nz/models/employee_statutory_leave_balance_spec.rb +61 -0
  883. data/spec/payroll_nz/models/employee_statutory_leave_summary_spec.rb +85 -0
  884. data/spec/payroll_nz/models/employee_statutory_leaves_summaries_spec.rb +53 -0
  885. data/spec/payroll_nz/models/employee_statutory_sick_leave_object_spec.rb +53 -0
  886. data/spec/payroll_nz/models/employee_statutory_sick_leave_spec.rb +135 -0
  887. data/spec/payroll_nz/models/employee_statutory_sick_leaves_spec.rb +53 -0
  888. data/spec/payroll_nz/models/employee_tax_object_spec.rb +53 -0
  889. data/spec/payroll_nz/models/employee_tax_spec.rb +135 -0
  890. data/spec/payroll_nz/models/employees_spec.rb +53 -0
  891. data/spec/payroll_nz/models/employment_object_spec.rb +53 -0
  892. data/spec/payroll_nz/models/employment_spec.rb +53 -0
  893. data/spec/payroll_nz/models/gross_earnings_history_spec.rb +47 -0
  894. data/spec/payroll_nz/models/invalid_field_spec.rb +47 -0
  895. data/spec/payroll_nz/models/leave_accrual_line_spec.rb +47 -0
  896. data/spec/payroll_nz/models/leave_earnings_line_spec.rb +95 -0
  897. data/spec/payroll_nz/models/leave_period_spec.rb +63 -0
  898. data/spec/payroll_nz/models/leave_periods_spec.rb +53 -0
  899. data/spec/payroll_nz/models/leave_type_object_spec.rb +53 -0
  900. data/spec/payroll_nz/models/leave_type_spec.rb +71 -0
  901. data/spec/payroll_nz/models/leave_types_spec.rb +53 -0
  902. data/spec/payroll_nz/models/pagination_spec.rb +59 -0
  903. data/spec/payroll_nz/models/pay_run_calendar_object_spec.rb +53 -0
  904. data/spec/payroll_nz/models/pay_run_calendar_spec.rb +81 -0
  905. data/spec/payroll_nz/models/pay_run_calendars_spec.rb +53 -0
  906. data/spec/payroll_nz/models/pay_run_object_spec.rb +53 -0
  907. data/spec/payroll_nz/models/pay_run_spec.rb +119 -0
  908. data/spec/payroll_nz/models/pay_runs_spec.rb +53 -0
  909. data/spec/payroll_nz/models/pay_slip_object_spec.rb +53 -0
  910. data/spec/payroll_nz/models/pay_slip_spec.rb +219 -0
  911. data/spec/payroll_nz/models/pay_slips_spec.rb +53 -0
  912. data/spec/payroll_nz/models/payment_line_spec.rb +65 -0
  913. data/spec/payroll_nz/models/payment_method_object_spec.rb +53 -0
  914. data/spec/payroll_nz/models/payment_method_spec.rb +51 -0
  915. data/spec/payroll_nz/models/problem_spec.rb +71 -0
  916. data/spec/payroll_nz/models/reimbursement_line_spec.rb +65 -0
  917. data/spec/payroll_nz/models/reimbursement_object_spec.rb +53 -0
  918. data/spec/payroll_nz/models/reimbursement_spec.rb +101 -0
  919. data/spec/payroll_nz/models/reimbursements_spec.rb +53 -0
  920. data/spec/payroll_nz/models/salary_and_wage_object_spec.rb +53 -0
  921. data/spec/payroll_nz/models/salary_and_wage_spec.rb +103 -0
  922. data/spec/payroll_nz/models/salary_and_wages_spec.rb +53 -0
  923. data/spec/payroll_nz/models/settings_spec.rb +53 -0
  924. data/spec/payroll_nz/models/statutory_deduction_category_spec.rb +35 -0
  925. data/spec/payroll_nz/models/statutory_deduction_line_spec.rb +59 -0
  926. data/spec/payroll_nz/models/statutory_deduction_object_spec.rb +53 -0
  927. data/spec/payroll_nz/models/statutory_deduction_spec.rb +65 -0
  928. data/spec/payroll_nz/models/statutory_deductions_spec.rb +53 -0
  929. data/spec/payroll_nz/models/superannuation_line_spec.rb +71 -0
  930. data/spec/payroll_nz/models/superannuation_object_spec.rb +53 -0
  931. data/spec/payroll_nz/models/superannuations_spec.rb +53 -0
  932. data/spec/payroll_nz/models/tax_code_spec.rb +35 -0
  933. data/spec/payroll_nz/models/tax_line_spec.rb +65 -0
  934. data/spec/payroll_nz/models/tax_settings_spec.rb +75 -0
  935. data/spec/payroll_nz/models/timesheet_earnings_line_spec.rb +95 -0
  936. data/spec/payroll_nz/models/timesheet_line_object_spec.rb +53 -0
  937. data/spec/payroll_nz/models/timesheet_line_spec.rb +65 -0
  938. data/spec/payroll_nz/models/timesheet_object_spec.rb +53 -0
  939. data/spec/payroll_nz/models/timesheet_spec.rb +93 -0
  940. data/spec/payroll_nz/models/timesheets_spec.rb +53 -0
  941. data/spec/payroll_nz/models/tracking_categories_spec.rb +53 -0
  942. data/spec/payroll_nz/models/tracking_category_spec.rb +47 -0
  943. data/spec/payroll_uk/api/payroll_uk_api_spec.rb +912 -0
  944. data/spec/payroll_uk/models/account_spec.rb +63 -0
  945. data/spec/payroll_uk/models/accounts_spec.rb +41 -0
  946. data/spec/payroll_uk/models/address_spec.rb +65 -0
  947. data/spec/payroll_uk/models/bank_account_spec.rb +53 -0
  948. data/spec/payroll_uk/models/benefit_line_spec.rb +65 -0
  949. data/spec/payroll_uk/models/benefit_object_spec.rb +53 -0
  950. data/spec/payroll_uk/models/benefit_spec.rb +127 -0
  951. data/spec/payroll_uk/models/benefits_spec.rb +53 -0
  952. data/spec/payroll_uk/models/court_order_line_spec.rb +47 -0
  953. data/spec/payroll_uk/models/deduction_line_spec.rb +59 -0
  954. data/spec/payroll_uk/models/deduction_object_spec.rb +53 -0
  955. data/spec/payroll_uk/models/deduction_spec.rb +139 -0
  956. data/spec/payroll_uk/models/deductions_spec.rb +53 -0
  957. data/spec/payroll_uk/models/earnings_line_spec.rb +89 -0
  958. data/spec/payroll_uk/models/earnings_order_object_spec.rb +53 -0
  959. data/spec/payroll_uk/models/earnings_order_spec.rb +65 -0
  960. data/spec/payroll_uk/models/earnings_orders_spec.rb +53 -0
  961. data/spec/payroll_uk/models/earnings_rate_object_spec.rb +53 -0
  962. data/spec/payroll_uk/models/earnings_rate_spec.rb +103 -0
  963. data/spec/payroll_uk/models/earnings_rates_spec.rb +53 -0
  964. data/spec/payroll_uk/models/earnings_template_object_spec.rb +53 -0
  965. data/spec/payroll_uk/models/earnings_template_spec.rb +71 -0
  966. data/spec/payroll_uk/models/employee_leave_balance_spec.rb +59 -0
  967. data/spec/payroll_uk/models/employee_leave_balances_spec.rb +53 -0
  968. data/spec/payroll_uk/models/employee_leave_object_spec.rb +53 -0
  969. data/spec/payroll_uk/models/employee_leave_spec.rb +77 -0
  970. data/spec/payroll_uk/models/employee_leave_type_object_spec.rb +53 -0
  971. data/spec/payroll_uk/models/employee_leave_type_spec.rb +75 -0
  972. data/spec/payroll_uk/models/employee_leave_types_spec.rb +53 -0
  973. data/spec/payroll_uk/models/employee_leaves_spec.rb +53 -0
  974. data/spec/payroll_uk/models/employee_object_spec.rb +53 -0
  975. data/spec/payroll_uk/models/employee_opening_balances_object_spec.rb +53 -0
  976. data/spec/payroll_uk/models/employee_opening_balances_spec.rb +71 -0
  977. data/spec/payroll_uk/models/employee_pay_template_object_spec.rb +53 -0
  978. data/spec/payroll_uk/models/employee_pay_template_spec.rb +47 -0
  979. data/spec/payroll_uk/models/employee_pay_templates_spec.rb +53 -0
  980. data/spec/payroll_uk/models/employee_spec.rb +129 -0
  981. data/spec/payroll_uk/models/employee_statutory_leave_balance_object_spec.rb +53 -0
  982. data/spec/payroll_uk/models/employee_statutory_leave_balance_spec.rb +61 -0
  983. data/spec/payroll_uk/models/employee_statutory_leave_summary_spec.rb +85 -0
  984. data/spec/payroll_uk/models/employee_statutory_leaves_summaries_spec.rb +53 -0
  985. data/spec/payroll_uk/models/employee_statutory_sick_leave_object_spec.rb +53 -0
  986. data/spec/payroll_uk/models/employee_statutory_sick_leave_spec.rb +135 -0
  987. data/spec/payroll_uk/models/employee_statutory_sick_leaves_spec.rb +53 -0
  988. data/spec/payroll_uk/models/employee_tax_object_spec.rb +53 -0
  989. data/spec/payroll_uk/models/employee_tax_spec.rb +101 -0
  990. data/spec/payroll_uk/models/employees_spec.rb +53 -0
  991. data/spec/payroll_uk/models/employment_object_spec.rb +53 -0
  992. data/spec/payroll_uk/models/employment_spec.rb +63 -0
  993. data/spec/payroll_uk/models/invalid_field_spec.rb +47 -0
  994. data/spec/payroll_uk/models/leave_accrual_line_spec.rb +47 -0
  995. data/spec/payroll_uk/models/leave_earnings_line_spec.rb +71 -0
  996. data/spec/payroll_uk/models/leave_period_spec.rb +63 -0
  997. data/spec/payroll_uk/models/leave_periods_spec.rb +53 -0
  998. data/spec/payroll_uk/models/leave_type_object_spec.rb +53 -0
  999. data/spec/payroll_uk/models/leave_type_spec.rb +83 -0
  1000. data/spec/payroll_uk/models/leave_types_spec.rb +53 -0
  1001. data/spec/payroll_uk/models/pagination_spec.rb +59 -0
  1002. data/spec/payroll_uk/models/pay_run_calendar_object_spec.rb +53 -0
  1003. data/spec/payroll_uk/models/pay_run_calendar_spec.rb +81 -0
  1004. data/spec/payroll_uk/models/pay_run_calendars_spec.rb +53 -0
  1005. data/spec/payroll_uk/models/pay_run_object_spec.rb +53 -0
  1006. data/spec/payroll_uk/models/pay_run_spec.rb +119 -0
  1007. data/spec/payroll_uk/models/pay_runs_spec.rb +53 -0
  1008. data/spec/payroll_uk/models/payment_line_spec.rb +65 -0
  1009. data/spec/payroll_uk/models/payment_method_object_spec.rb +53 -0
  1010. data/spec/payroll_uk/models/payment_method_spec.rb +51 -0
  1011. data/spec/payroll_uk/models/payslip_object_spec.rb +53 -0
  1012. data/spec/payroll_uk/models/payslip_spec.rb +201 -0
  1013. data/spec/payroll_uk/models/payslips_spec.rb +53 -0
  1014. data/spec/payroll_uk/models/problem_spec.rb +71 -0
  1015. data/spec/payroll_uk/models/reimbursement_line_spec.rb +53 -0
  1016. data/spec/payroll_uk/models/reimbursement_object_spec.rb +53 -0
  1017. data/spec/payroll_uk/models/reimbursement_spec.rb +59 -0
  1018. data/spec/payroll_uk/models/reimbursements_spec.rb +53 -0
  1019. data/spec/payroll_uk/models/salary_and_wage_object_spec.rb +53 -0
  1020. data/spec/payroll_uk/models/salary_and_wage_spec.rb +97 -0
  1021. data/spec/payroll_uk/models/salary_and_wages_spec.rb +53 -0
  1022. data/spec/payroll_uk/models/settings_spec.rb +53 -0
  1023. data/spec/payroll_uk/models/statutory_deduction_category_spec.rb +35 -0
  1024. data/spec/payroll_uk/models/statutory_deduction_spec.rb +65 -0
  1025. data/spec/payroll_uk/models/tax_line_spec.rb +71 -0
  1026. data/spec/payroll_uk/models/timesheet_earnings_line_spec.rb +71 -0
  1027. data/spec/payroll_uk/models/timesheet_line_object_spec.rb +53 -0
  1028. data/spec/payroll_uk/models/timesheet_line_spec.rb +65 -0
  1029. data/spec/payroll_uk/models/timesheet_object_spec.rb +53 -0
  1030. data/spec/payroll_uk/models/timesheet_spec.rb +93 -0
  1031. data/spec/payroll_uk/models/timesheets_spec.rb +53 -0
  1032. data/spec/payroll_uk/models/tracking_categories_spec.rb +53 -0
  1033. data/spec/payroll_uk/models/tracking_category_spec.rb +47 -0
  1034. data/xero-ruby.gemspec +1 -1
  1035. metadata +1150 -5
  1036. data/xero-ruby-2.2.3.gem +0 -0
  1037. data/xero-ruby.gem +0 -0
@@ -3,15 +3,13 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.3.2
6
+ The version of the OpenAPI document: 2.8.0
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
13
- require 'cgi'
14
-
15
13
  module XeroRuby
16
14
  class AccountingApi
17
15
  attr_accessor :api_client
@@ -88,7 +86,7 @@ module XeroRuby
88
86
  :return_type => return_type
89
87
  )
90
88
 
91
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
89
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
92
90
  if @api_client.config.debugging
93
91
  @api_client.config.logger.debug "API called: AccountingApi#create_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
94
92
  end
@@ -176,7 +174,7 @@ module XeroRuby
176
174
  :return_type => return_type
177
175
  )
178
176
 
179
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
177
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
180
178
  if @api_client.config.debugging
181
179
  @api_client.config.logger.debug "API called: AccountingApi#create_account_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
182
180
  end
@@ -264,7 +262,7 @@ module XeroRuby
264
262
  :return_type => return_type
265
263
  )
266
264
 
267
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
265
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
268
266
  if @api_client.config.debugging
269
267
  @api_client.config.logger.debug "API called: AccountingApi#create_bank_transaction_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
268
  end
@@ -346,7 +344,7 @@ module XeroRuby
346
344
  :return_type => return_type
347
345
  )
348
346
 
349
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
347
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
350
348
  if @api_client.config.debugging
351
349
  @api_client.config.logger.debug "API called: AccountingApi#create_bank_transaction_history_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
352
350
  end
@@ -357,7 +355,7 @@ module XeroRuby
357
355
  # @param xero_tenant_id [String] Xero identifier for Tenant
358
356
  # @param bank_transactions [BankTransactions] BankTransactions with an array of BankTransaction objects in body of request
359
357
  # @param [Hash] opts the optional parameters
360
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
358
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
361
359
  # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
362
360
  # @return [BankTransactions]
363
361
  def create_bank_transactions(xero_tenant_id, bank_transactions, opts = {})
@@ -369,7 +367,7 @@ module XeroRuby
369
367
  # @param xero_tenant_id [String] Xero identifier for Tenant
370
368
  # @param bank_transactions [BankTransactions] BankTransactions with an array of BankTransaction objects in body of request
371
369
  # @param [Hash] opts the optional parameters
372
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
370
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
373
371
  # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
374
372
  # @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
375
373
  def create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts = {})
@@ -428,7 +426,7 @@ module XeroRuby
428
426
  :return_type => return_type
429
427
  )
430
428
 
431
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
429
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
432
430
  if @api_client.config.debugging
433
431
  @api_client.config.logger.debug "API called: AccountingApi#create_bank_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
434
432
  end
@@ -504,7 +502,7 @@ module XeroRuby
504
502
  :return_type => return_type
505
503
  )
506
504
 
507
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
505
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
508
506
  if @api_client.config.debugging
509
507
  @api_client.config.logger.debug "API called: AccountingApi#create_bank_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
510
508
  end
@@ -590,7 +588,7 @@ module XeroRuby
590
588
  :return_type => return_type
591
589
  )
592
590
 
593
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
591
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
594
592
  if @api_client.config.debugging
595
593
  @api_client.config.logger.debug "API called: AccountingApi#create_bank_transfer_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
596
594
  end
@@ -670,7 +668,7 @@ module XeroRuby
670
668
  :return_type => return_type
671
669
  )
672
670
 
673
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
671
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
674
672
  if @api_client.config.debugging
675
673
  @api_client.config.logger.debug "API called: AccountingApi#create_bank_transfer_history_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
676
674
  end
@@ -681,7 +679,7 @@ module XeroRuby
681
679
  # @param xero_tenant_id [String] Xero identifier for Tenant
682
680
  # @param batch_payments [BatchPayments] BatchPayments with an array of Payments in body of request
683
681
  # @param [Hash] opts the optional parameters
684
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
682
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
685
683
  # @return [BatchPayments]
686
684
  def create_batch_payment(xero_tenant_id, batch_payments, opts = {})
687
685
  data, _status_code, _headers = create_batch_payment_with_http_info(xero_tenant_id, batch_payments, opts)
@@ -692,7 +690,7 @@ module XeroRuby
692
690
  # @param xero_tenant_id [String] Xero identifier for Tenant
693
691
  # @param batch_payments [BatchPayments] BatchPayments with an array of Payments in body of request
694
692
  # @param [Hash] opts the optional parameters
695
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
693
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
696
694
  # @return [Array<(BatchPayments, Integer, Hash)>] BatchPayments data, response status code and response headers
697
695
  def create_batch_payment_with_http_info(xero_tenant_id, batch_payments, opts = {})
698
696
  if @api_client.config.debugging
@@ -749,7 +747,7 @@ module XeroRuby
749
747
  :return_type => return_type
750
748
  )
751
749
 
752
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
750
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
753
751
  if @api_client.config.debugging
754
752
  @api_client.config.logger.debug "API called: AccountingApi#create_batch_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
755
753
  end
@@ -831,7 +829,7 @@ module XeroRuby
831
829
  :return_type => return_type
832
830
  )
833
831
 
834
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
832
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
835
833
  if @api_client.config.debugging
836
834
  @api_client.config.logger.debug "API called: AccountingApi#create_batch_payment_history_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
837
835
  end
@@ -913,7 +911,7 @@ module XeroRuby
913
911
  :return_type => return_type
914
912
  )
915
913
 
916
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
914
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
917
915
  if @api_client.config.debugging
918
916
  @api_client.config.logger.debug "API called: AccountingApi#create_branding_theme_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
919
917
  end
@@ -999,7 +997,7 @@ module XeroRuby
999
997
  :return_type => return_type
1000
998
  )
1001
999
 
1002
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1000
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1003
1001
  if @api_client.config.debugging
1004
1002
  @api_client.config.logger.debug "API called: AccountingApi#create_contact_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1005
1003
  end
@@ -1075,7 +1073,7 @@ module XeroRuby
1075
1073
  :return_type => return_type
1076
1074
  )
1077
1075
 
1078
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1076
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1079
1077
  if @api_client.config.debugging
1080
1078
  @api_client.config.logger.debug "API called: AccountingApi#create_contact_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1081
1079
  end
@@ -1157,7 +1155,7 @@ module XeroRuby
1157
1155
  :return_type => return_type
1158
1156
  )
1159
1157
 
1160
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1158
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1161
1159
  if @api_client.config.debugging
1162
1160
  @api_client.config.logger.debug "API called: AccountingApi#create_contact_group_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1163
1161
  end
@@ -1239,7 +1237,7 @@ module XeroRuby
1239
1237
  :return_type => return_type
1240
1238
  )
1241
1239
 
1242
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1240
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1243
1241
  if @api_client.config.debugging
1244
1242
  @api_client.config.logger.debug "API called: AccountingApi#create_contact_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1245
1243
  end
@@ -1250,7 +1248,7 @@ module XeroRuby
1250
1248
  # @param xero_tenant_id [String] Xero identifier for Tenant
1251
1249
  # @param contacts [Contacts] Contacts with an array of Contact objects to create in body of request
1252
1250
  # @param [Hash] opts the optional parameters
1253
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
1251
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
1254
1252
  # @return [Contacts]
1255
1253
  def create_contacts(xero_tenant_id, contacts, opts = {})
1256
1254
  data, _status_code, _headers = create_contacts_with_http_info(xero_tenant_id, contacts, opts)
@@ -1261,7 +1259,7 @@ module XeroRuby
1261
1259
  # @param xero_tenant_id [String] Xero identifier for Tenant
1262
1260
  # @param contacts [Contacts] Contacts with an array of Contact objects to create in body of request
1263
1261
  # @param [Hash] opts the optional parameters
1264
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
1262
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
1265
1263
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
1266
1264
  def create_contacts_with_http_info(xero_tenant_id, contacts, opts = {})
1267
1265
  if @api_client.config.debugging
@@ -1318,7 +1316,7 @@ module XeroRuby
1318
1316
  :return_type => return_type
1319
1317
  )
1320
1318
 
1321
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1319
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1322
1320
  if @api_client.config.debugging
1323
1321
  @api_client.config.logger.debug "API called: AccountingApi#create_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1324
1322
  end
@@ -1330,7 +1328,7 @@ module XeroRuby
1330
1328
  # @param credit_note_id [String] Unique identifier for a Credit Note
1331
1329
  # @param allocations [Allocations] Allocations with array of Allocation object in body of request.
1332
1330
  # @param [Hash] opts the optional parameters
1333
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
1331
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
1334
1332
  # @return [Allocations]
1335
1333
  def create_credit_note_allocation(xero_tenant_id, credit_note_id, allocations, opts = {})
1336
1334
  data, _status_code, _headers = create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, opts)
@@ -1342,7 +1340,7 @@ module XeroRuby
1342
1340
  # @param credit_note_id [String] Unique identifier for a Credit Note
1343
1341
  # @param allocations [Allocations] Allocations with array of Allocation object in body of request.
1344
1342
  # @param [Hash] opts the optional parameters
1345
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
1343
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
1346
1344
  # @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
1347
1345
  def create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, allocations, opts = {})
1348
1346
  if @api_client.config.debugging
@@ -1403,7 +1401,7 @@ module XeroRuby
1403
1401
  :return_type => return_type
1404
1402
  )
1405
1403
 
1406
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1404
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1407
1405
  if @api_client.config.debugging
1408
1406
  @api_client.config.logger.debug "API called: AccountingApi#create_credit_note_allocation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1409
1407
  end
@@ -1494,7 +1492,7 @@ module XeroRuby
1494
1492
  :return_type => return_type
1495
1493
  )
1496
1494
 
1497
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1495
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1498
1496
  if @api_client.config.debugging
1499
1497
  @api_client.config.logger.debug "API called: AccountingApi#create_credit_note_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1500
1498
  end
@@ -1576,7 +1574,7 @@ module XeroRuby
1576
1574
  :return_type => return_type
1577
1575
  )
1578
1576
 
1579
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1577
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1580
1578
  if @api_client.config.debugging
1581
1579
  @api_client.config.logger.debug "API called: AccountingApi#create_credit_note_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1582
1580
  end
@@ -1587,7 +1585,7 @@ module XeroRuby
1587
1585
  # @param xero_tenant_id [String] Xero identifier for Tenant
1588
1586
  # @param credit_notes [CreditNotes] Credit Notes with array of CreditNote object in body of request
1589
1587
  # @param [Hash] opts the optional parameters
1590
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
1588
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
1591
1589
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1592
1590
  # @return [CreditNotes]
1593
1591
  def create_credit_notes(xero_tenant_id, credit_notes, opts = {})
@@ -1599,7 +1597,7 @@ module XeroRuby
1599
1597
  # @param xero_tenant_id [String] Xero identifier for Tenant
1600
1598
  # @param credit_notes [CreditNotes] Credit Notes with array of CreditNote object in body of request
1601
1599
  # @param [Hash] opts the optional parameters
1602
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
1600
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
1603
1601
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1604
1602
  # @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
1605
1603
  def create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts = {})
@@ -1658,7 +1656,7 @@ module XeroRuby
1658
1656
  :return_type => return_type
1659
1657
  )
1660
1658
 
1661
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1659
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1662
1660
  if @api_client.config.debugging
1663
1661
  @api_client.config.logger.debug "API called: AccountingApi#create_credit_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1664
1662
  end
@@ -1732,7 +1730,7 @@ module XeroRuby
1732
1730
  :return_type => return_type
1733
1731
  )
1734
1732
 
1735
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1733
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1736
1734
  if @api_client.config.debugging
1737
1735
  @api_client.config.logger.debug "API called: AccountingApi#create_currency\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1738
1736
  end
@@ -1743,7 +1741,7 @@ module XeroRuby
1743
1741
  # @param xero_tenant_id [String] Xero identifier for Tenant
1744
1742
  # @param employees [Employees] Employees with array of Employee object in body of request
1745
1743
  # @param [Hash] opts the optional parameters
1746
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
1744
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
1747
1745
  # @return [Employees]
1748
1746
  def create_employees(xero_tenant_id, employees, opts = {})
1749
1747
  data, _status_code, _headers = create_employees_with_http_info(xero_tenant_id, employees, opts)
@@ -1754,7 +1752,7 @@ module XeroRuby
1754
1752
  # @param xero_tenant_id [String] Xero identifier for Tenant
1755
1753
  # @param employees [Employees] Employees with array of Employee object in body of request
1756
1754
  # @param [Hash] opts the optional parameters
1757
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
1755
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
1758
1756
  # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
1759
1757
  def create_employees_with_http_info(xero_tenant_id, employees, opts = {})
1760
1758
  if @api_client.config.debugging
@@ -1811,7 +1809,7 @@ module XeroRuby
1811
1809
  :return_type => return_type
1812
1810
  )
1813
1811
 
1814
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1812
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1815
1813
  if @api_client.config.debugging
1816
1814
  @api_client.config.logger.debug "API called: AccountingApi#create_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1817
1815
  end
@@ -1893,7 +1891,7 @@ module XeroRuby
1893
1891
  :return_type => return_type
1894
1892
  )
1895
1893
 
1896
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1894
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1897
1895
  if @api_client.config.debugging
1898
1896
  @api_client.config.logger.debug "API called: AccountingApi#create_expense_claim_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1899
1897
  end
@@ -1969,7 +1967,7 @@ module XeroRuby
1969
1967
  :return_type => return_type
1970
1968
  )
1971
1969
 
1972
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
1970
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
1973
1971
  if @api_client.config.debugging
1974
1972
  @api_client.config.logger.debug "API called: AccountingApi#create_expense_claims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1975
1973
  end
@@ -2060,7 +2058,7 @@ module XeroRuby
2060
2058
  :return_type => return_type
2061
2059
  )
2062
2060
 
2063
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2061
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2064
2062
  if @api_client.config.debugging
2065
2063
  @api_client.config.logger.debug "API called: AccountingApi#create_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2066
2064
  end
@@ -2142,7 +2140,7 @@ module XeroRuby
2142
2140
  :return_type => return_type
2143
2141
  )
2144
2142
 
2145
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2143
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2146
2144
  if @api_client.config.debugging
2147
2145
  @api_client.config.logger.debug "API called: AccountingApi#create_invoice_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2148
2146
  end
@@ -2153,7 +2151,7 @@ module XeroRuby
2153
2151
  # @param xero_tenant_id [String] Xero identifier for Tenant
2154
2152
  # @param invoices [Invoices] Invoices with an array of invoice objects in body of request
2155
2153
  # @param [Hash] opts the optional parameters
2156
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
2154
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
2157
2155
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2158
2156
  # @return [Invoices]
2159
2157
  def create_invoices(xero_tenant_id, invoices, opts = {})
@@ -2165,7 +2163,7 @@ module XeroRuby
2165
2163
  # @param xero_tenant_id [String] Xero identifier for Tenant
2166
2164
  # @param invoices [Invoices] Invoices with an array of invoice objects in body of request
2167
2165
  # @param [Hash] opts the optional parameters
2168
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2166
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
2169
2167
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2170
2168
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
2171
2169
  def create_invoices_with_http_info(xero_tenant_id, invoices, opts = {})
@@ -2224,7 +2222,7 @@ module XeroRuby
2224
2222
  :return_type => return_type
2225
2223
  )
2226
2224
 
2227
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2225
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2228
2226
  if @api_client.config.debugging
2229
2227
  @api_client.config.logger.debug "API called: AccountingApi#create_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2230
2228
  end
@@ -2306,7 +2304,7 @@ module XeroRuby
2306
2304
  :return_type => return_type
2307
2305
  )
2308
2306
 
2309
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2307
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2310
2308
  if @api_client.config.debugging
2311
2309
  @api_client.config.logger.debug "API called: AccountingApi#create_item_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2312
2310
  end
@@ -2317,7 +2315,7 @@ module XeroRuby
2317
2315
  # @param xero_tenant_id [String] Xero identifier for Tenant
2318
2316
  # @param items [Items] Items with an array of Item objects in body of request
2319
2317
  # @param [Hash] opts the optional parameters
2320
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
2318
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
2321
2319
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2322
2320
  # @return [Items]
2323
2321
  def create_items(xero_tenant_id, items, opts = {})
@@ -2329,7 +2327,7 @@ module XeroRuby
2329
2327
  # @param xero_tenant_id [String] Xero identifier for Tenant
2330
2328
  # @param items [Items] Items with an array of Item objects in body of request
2331
2329
  # @param [Hash] opts the optional parameters
2332
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2330
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
2333
2331
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2334
2332
  # @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
2335
2333
  def create_items_with_http_info(xero_tenant_id, items, opts = {})
@@ -2388,7 +2386,7 @@ module XeroRuby
2388
2386
  :return_type => return_type
2389
2387
  )
2390
2388
 
2391
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2389
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2392
2390
  if @api_client.config.debugging
2393
2391
  @api_client.config.logger.debug "API called: AccountingApi#create_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2394
2392
  end
@@ -2464,7 +2462,7 @@ module XeroRuby
2464
2462
  :return_type => return_type
2465
2463
  )
2466
2464
 
2467
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2465
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2468
2466
  if @api_client.config.debugging
2469
2467
  @api_client.config.logger.debug "API called: AccountingApi#create_linked_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2470
2468
  end
@@ -2552,18 +2550,100 @@ module XeroRuby
2552
2550
  :return_type => return_type
2553
2551
  )
2554
2552
 
2555
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2553
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2556
2554
  if @api_client.config.debugging
2557
2555
  @api_client.config.logger.debug "API called: AccountingApi#create_manual_journal_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2558
2556
  end
2559
2557
  return data, status_code, headers
2560
2558
  end
2561
2559
 
2560
+ # Allows you to create history record for a manual journal
2561
+ # @param xero_tenant_id [String] Xero identifier for Tenant
2562
+ # @param manual_journal_id [String] Xero generated unique identifier for a manual journal
2563
+ # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
2564
+ # @param [Hash] opts the optional parameters
2565
+ # @return [HistoryRecords]
2566
+ def create_manual_journal_history_record(xero_tenant_id, manual_journal_id, history_records, opts = {})
2567
+ data, _status_code, _headers = create_manual_journal_history_record_with_http_info(xero_tenant_id, manual_journal_id, history_records, opts)
2568
+ data
2569
+ end
2570
+
2571
+ # Allows you to create history record for a manual journal
2572
+ # @param xero_tenant_id [String] Xero identifier for Tenant
2573
+ # @param manual_journal_id [String] Xero generated unique identifier for a manual journal
2574
+ # @param history_records [HistoryRecords] HistoryRecords containing an array of HistoryRecord objects in body of request
2575
+ # @param [Hash] opts the optional parameters
2576
+ # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
2577
+ def create_manual_journal_history_record_with_http_info(xero_tenant_id, manual_journal_id, history_records, opts = {})
2578
+ if @api_client.config.debugging
2579
+ @api_client.config.logger.debug 'Calling API: AccountingApi.create_manual_journal_history_record ...'
2580
+ end
2581
+ # verify the required parameter 'xero_tenant_id' is set
2582
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
2583
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_manual_journal_history_record"
2584
+ end
2585
+ # verify the required parameter 'manual_journal_id' is set
2586
+ if @api_client.config.client_side_validation && manual_journal_id.nil?
2587
+ fail ArgumentError, "Missing the required parameter 'manual_journal_id' when calling AccountingApi.create_manual_journal_history_record"
2588
+ end
2589
+ # verify the required parameter 'history_records' is set
2590
+ if @api_client.config.client_side_validation && history_records.nil?
2591
+ fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_manual_journal_history_record"
2592
+ end
2593
+ # resource path
2594
+ local_var_path = '/ManualJournals/{ManualJournalID}/History'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
2595
+
2596
+ # camelize keys of incoming `where` opts
2597
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
2598
+
2599
+ # query parameters
2600
+ query_params = opts[:query_params] || {}
2601
+
2602
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
2603
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
2604
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
2605
+
2606
+ # header parameters
2607
+ header_params = opts[:header_params] || {}
2608
+ # HTTP header 'Accept' (if needed)
2609
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2610
+ # HTTP header 'Content-Type'
2611
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2612
+ header_params[:'xero-tenant-id'] = xero_tenant_id
2613
+
2614
+ # form parameters
2615
+ form_params = opts[:form_params] || {}
2616
+
2617
+ # http body (model)
2618
+ post_body = opts[:body] || @api_client.object_to_http_body(history_records)
2619
+
2620
+ # return_type
2621
+ return_type = opts[:return_type] || 'HistoryRecords'
2622
+
2623
+ # auth_names
2624
+ auth_names = opts[:auth_names] || ['OAuth2']
2625
+
2626
+ new_options = opts.merge(
2627
+ :header_params => header_params,
2628
+ :query_params => query_params,
2629
+ :form_params => form_params,
2630
+ :body => post_body,
2631
+ :auth_names => auth_names,
2632
+ :return_type => return_type
2633
+ )
2634
+
2635
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2636
+ if @api_client.config.debugging
2637
+ @api_client.config.logger.debug "API called: AccountingApi#create_manual_journal_history_record\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2638
+ end
2639
+ return data, status_code, headers
2640
+ end
2641
+
2562
2642
  # Allows you to create one or more manual journals
2563
2643
  # @param xero_tenant_id [String] Xero identifier for Tenant
2564
2644
  # @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
2565
2645
  # @param [Hash] opts the optional parameters
2566
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
2646
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
2567
2647
  # @return [ManualJournals]
2568
2648
  def create_manual_journals(xero_tenant_id, manual_journals, opts = {})
2569
2649
  data, _status_code, _headers = create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts)
@@ -2574,7 +2654,7 @@ module XeroRuby
2574
2654
  # @param xero_tenant_id [String] Xero identifier for Tenant
2575
2655
  # @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
2576
2656
  # @param [Hash] opts the optional parameters
2577
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2657
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
2578
2658
  # @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
2579
2659
  def create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts = {})
2580
2660
  if @api_client.config.debugging
@@ -2631,7 +2711,7 @@ module XeroRuby
2631
2711
  :return_type => return_type
2632
2712
  )
2633
2713
 
2634
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2714
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2635
2715
  if @api_client.config.debugging
2636
2716
  @api_client.config.logger.debug "API called: AccountingApi#create_manual_journals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2637
2717
  end
@@ -2643,7 +2723,7 @@ module XeroRuby
2643
2723
  # @param overpayment_id [String] Unique identifier for a Overpayment
2644
2724
  # @param allocations [Allocations] Allocations array with Allocation object in body of request
2645
2725
  # @param [Hash] opts the optional parameters
2646
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
2726
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
2647
2727
  # @return [Allocations]
2648
2728
  def create_overpayment_allocations(xero_tenant_id, overpayment_id, allocations, opts = {})
2649
2729
  data, _status_code, _headers = create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocations, opts)
@@ -2655,7 +2735,7 @@ module XeroRuby
2655
2735
  # @param overpayment_id [String] Unique identifier for a Overpayment
2656
2736
  # @param allocations [Allocations] Allocations array with Allocation object in body of request
2657
2737
  # @param [Hash] opts the optional parameters
2658
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2738
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
2659
2739
  # @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
2660
2740
  def create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id, allocations, opts = {})
2661
2741
  if @api_client.config.debugging
@@ -2716,7 +2796,7 @@ module XeroRuby
2716
2796
  :return_type => return_type
2717
2797
  )
2718
2798
 
2719
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2799
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2720
2800
  if @api_client.config.debugging
2721
2801
  @api_client.config.logger.debug "API called: AccountingApi#create_overpayment_allocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2722
2802
  end
@@ -2798,7 +2878,7 @@ module XeroRuby
2798
2878
  :return_type => return_type
2799
2879
  )
2800
2880
 
2801
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
2881
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2802
2882
  if @api_client.config.debugging
2803
2883
  @api_client.config.logger.debug "API called: AccountingApi#create_overpayment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2804
2884
  end
@@ -2874,7 +2954,7 @@ module XeroRuby
2874
2954
  :return_type => return_type
2875
2955
  )
2876
2956
 
2877
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
2957
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
2878
2958
  if @api_client.config.debugging
2879
2959
  @api_client.config.logger.debug "API called: AccountingApi#create_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2880
2960
  end
@@ -2956,7 +3036,7 @@ module XeroRuby
2956
3036
  :return_type => return_type
2957
3037
  )
2958
3038
 
2959
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3039
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
2960
3040
  if @api_client.config.debugging
2961
3041
  @api_client.config.logger.debug "API called: AccountingApi#create_payment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2962
3042
  end
@@ -3032,7 +3112,7 @@ module XeroRuby
3032
3112
  :return_type => return_type
3033
3113
  )
3034
3114
 
3035
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3115
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3036
3116
  if @api_client.config.debugging
3037
3117
  @api_client.config.logger.debug "API called: AccountingApi#create_payment_service\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3038
3118
  end
@@ -3043,7 +3123,7 @@ module XeroRuby
3043
3123
  # @param xero_tenant_id [String] Xero identifier for Tenant
3044
3124
  # @param payments [Payments] Payments array with Payment object in body of request
3045
3125
  # @param [Hash] opts the optional parameters
3046
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
3126
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
3047
3127
  # @return [Payments]
3048
3128
  def create_payments(xero_tenant_id, payments, opts = {})
3049
3129
  data, _status_code, _headers = create_payments_with_http_info(xero_tenant_id, payments, opts)
@@ -3054,7 +3134,7 @@ module XeroRuby
3054
3134
  # @param xero_tenant_id [String] Xero identifier for Tenant
3055
3135
  # @param payments [Payments] Payments array with Payment object in body of request
3056
3136
  # @param [Hash] opts the optional parameters
3057
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
3137
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
3058
3138
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
3059
3139
  def create_payments_with_http_info(xero_tenant_id, payments, opts = {})
3060
3140
  if @api_client.config.debugging
@@ -3111,7 +3191,7 @@ module XeroRuby
3111
3191
  :return_type => return_type
3112
3192
  )
3113
3193
 
3114
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3194
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3115
3195
  if @api_client.config.debugging
3116
3196
  @api_client.config.logger.debug "API called: AccountingApi#create_payments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3117
3197
  end
@@ -3123,7 +3203,7 @@ module XeroRuby
3123
3203
  # @param prepayment_id [String] Unique identifier for Prepayment
3124
3204
  # @param allocations [Allocations] Allocations with an array of Allocation object in body of request
3125
3205
  # @param [Hash] opts the optional parameters
3126
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
3206
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
3127
3207
  # @return [Allocations]
3128
3208
  def create_prepayment_allocations(xero_tenant_id, prepayment_id, allocations, opts = {})
3129
3209
  data, _status_code, _headers = create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocations, opts)
@@ -3135,7 +3215,7 @@ module XeroRuby
3135
3215
  # @param prepayment_id [String] Unique identifier for Prepayment
3136
3216
  # @param allocations [Allocations] Allocations with an array of Allocation object in body of request
3137
3217
  # @param [Hash] opts the optional parameters
3138
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
3218
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
3139
3219
  # @return [Array<(Allocations, Integer, Hash)>] Allocations data, response status code and response headers
3140
3220
  def create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, allocations, opts = {})
3141
3221
  if @api_client.config.debugging
@@ -3196,7 +3276,7 @@ module XeroRuby
3196
3276
  :return_type => return_type
3197
3277
  )
3198
3278
 
3199
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3279
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3200
3280
  if @api_client.config.debugging
3201
3281
  @api_client.config.logger.debug "API called: AccountingApi#create_prepayment_allocations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3202
3282
  end
@@ -3278,13 +3358,101 @@ module XeroRuby
3278
3358
  :return_type => return_type
3279
3359
  )
3280
3360
 
3281
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3361
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3282
3362
  if @api_client.config.debugging
3283
3363
  @api_client.config.logger.debug "API called: AccountingApi#create_prepayment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3284
3364
  end
3285
3365
  return data, status_code, headers
3286
3366
  end
3287
3367
 
3368
+ # Allows you to create Attachment on Purchase Order
3369
+ # @param xero_tenant_id [String] Xero identifier for Tenant
3370
+ # @param purchase_order_id [String] Unique identifier for Purchase Order object
3371
+ # @param file_name [String] Name of the attachment
3372
+ # @param body [String] Byte array of file in body of request
3373
+ # @param [Hash] opts the optional parameters
3374
+ # @return [Attachments]
3375
+ def create_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
3376
+ data, _status_code, _headers = create_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts)
3377
+ data
3378
+ end
3379
+
3380
+ # Allows you to create Attachment on Purchase Order
3381
+ # @param xero_tenant_id [String] Xero identifier for Tenant
3382
+ # @param purchase_order_id [String] Unique identifier for Purchase Order object
3383
+ # @param file_name [String] Name of the attachment
3384
+ # @param body [String] Byte array of file in body of request
3385
+ # @param [Hash] opts the optional parameters
3386
+ # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
3387
+ def create_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
3388
+ if @api_client.config.debugging
3389
+ @api_client.config.logger.debug 'Calling API: AccountingApi.create_purchase_order_attachment_by_file_name ...'
3390
+ end
3391
+ # verify the required parameter 'xero_tenant_id' is set
3392
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
3393
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.create_purchase_order_attachment_by_file_name"
3394
+ end
3395
+ # verify the required parameter 'purchase_order_id' is set
3396
+ if @api_client.config.client_side_validation && purchase_order_id.nil?
3397
+ fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.create_purchase_order_attachment_by_file_name"
3398
+ end
3399
+ # verify the required parameter 'file_name' is set
3400
+ if @api_client.config.client_side_validation && file_name.nil?
3401
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling AccountingApi.create_purchase_order_attachment_by_file_name"
3402
+ end
3403
+ # verify the required parameter 'body' is set
3404
+ if @api_client.config.client_side_validation && body.nil?
3405
+ fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_purchase_order_attachment_by_file_name"
3406
+ end
3407
+ # resource path
3408
+ local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
3409
+
3410
+ # camelize keys of incoming `where` opts
3411
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
3412
+
3413
+ # query parameters
3414
+ query_params = opts[:query_params] || {}
3415
+
3416
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
3417
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
3418
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
3419
+
3420
+ # header parameters
3421
+ header_params = opts[:header_params] || {}
3422
+ # HTTP header 'Accept' (if needed)
3423
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3424
+ # HTTP header 'Content-Type'
3425
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
3426
+ header_params[:'xero-tenant-id'] = xero_tenant_id
3427
+
3428
+ # form parameters
3429
+ form_params = opts[:form_params] || {}
3430
+
3431
+ # http body (model)
3432
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
3433
+
3434
+ # return_type
3435
+ return_type = opts[:return_type] || 'Attachments'
3436
+
3437
+ # auth_names
3438
+ auth_names = opts[:auth_names] || ['OAuth2']
3439
+
3440
+ new_options = opts.merge(
3441
+ :header_params => header_params,
3442
+ :query_params => query_params,
3443
+ :form_params => form_params,
3444
+ :body => post_body,
3445
+ :auth_names => auth_names,
3446
+ :return_type => return_type
3447
+ )
3448
+
3449
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3450
+ if @api_client.config.debugging
3451
+ @api_client.config.logger.debug "API called: AccountingApi#create_purchase_order_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3452
+ end
3453
+ return data, status_code, headers
3454
+ end
3455
+
3288
3456
  # Allows you to create HistoryRecord for purchase orders
3289
3457
  # @param xero_tenant_id [String] Xero identifier for Tenant
3290
3458
  # @param purchase_order_id [String] Unique identifier for a PurchaseOrder
@@ -3360,7 +3528,7 @@ module XeroRuby
3360
3528
  :return_type => return_type
3361
3529
  )
3362
3530
 
3363
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3531
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3364
3532
  if @api_client.config.debugging
3365
3533
  @api_client.config.logger.debug "API called: AccountingApi#create_purchase_order_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3366
3534
  end
@@ -3371,7 +3539,7 @@ module XeroRuby
3371
3539
  # @param xero_tenant_id [String] Xero identifier for Tenant
3372
3540
  # @param purchase_orders [PurchaseOrders] PurchaseOrders with an array of PurchaseOrder object in body of request
3373
3541
  # @param [Hash] opts the optional parameters
3374
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
3542
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
3375
3543
  # @return [PurchaseOrders]
3376
3544
  def create_purchase_orders(xero_tenant_id, purchase_orders, opts = {})
3377
3545
  data, _status_code, _headers = create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts)
@@ -3382,7 +3550,7 @@ module XeroRuby
3382
3550
  # @param xero_tenant_id [String] Xero identifier for Tenant
3383
3551
  # @param purchase_orders [PurchaseOrders] PurchaseOrders with an array of PurchaseOrder object in body of request
3384
3552
  # @param [Hash] opts the optional parameters
3385
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
3553
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
3386
3554
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
3387
3555
  def create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts = {})
3388
3556
  if @api_client.config.debugging
@@ -3439,7 +3607,7 @@ module XeroRuby
3439
3607
  :return_type => return_type
3440
3608
  )
3441
3609
 
3442
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3610
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3443
3611
  if @api_client.config.debugging
3444
3612
  @api_client.config.logger.debug "API called: AccountingApi#create_purchase_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3445
3613
  end
@@ -3527,7 +3695,7 @@ module XeroRuby
3527
3695
  :return_type => return_type
3528
3696
  )
3529
3697
 
3530
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3698
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3531
3699
  if @api_client.config.debugging
3532
3700
  @api_client.config.logger.debug "API called: AccountingApi#create_quote_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3533
3701
  end
@@ -3609,7 +3777,7 @@ module XeroRuby
3609
3777
  :return_type => return_type
3610
3778
  )
3611
3779
 
3612
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3780
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3613
3781
  if @api_client.config.debugging
3614
3782
  @api_client.config.logger.debug "API called: AccountingApi#create_quote_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3615
3783
  end
@@ -3620,7 +3788,7 @@ module XeroRuby
3620
3788
  # @param xero_tenant_id [String] Xero identifier for Tenant
3621
3789
  # @param quotes [Quotes] Quotes with an array of Quote object in body of request
3622
3790
  # @param [Hash] opts the optional parameters
3623
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
3791
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
3624
3792
  # @return [Quotes]
3625
3793
  def create_quotes(xero_tenant_id, quotes, opts = {})
3626
3794
  data, _status_code, _headers = create_quotes_with_http_info(xero_tenant_id, quotes, opts)
@@ -3631,7 +3799,7 @@ module XeroRuby
3631
3799
  # @param xero_tenant_id [String] Xero identifier for Tenant
3632
3800
  # @param quotes [Quotes] Quotes with an array of Quote object in body of request
3633
3801
  # @param [Hash] opts the optional parameters
3634
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
3802
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
3635
3803
  # @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
3636
3804
  def create_quotes_with_http_info(xero_tenant_id, quotes, opts = {})
3637
3805
  if @api_client.config.debugging
@@ -3688,7 +3856,7 @@ module XeroRuby
3688
3856
  :return_type => return_type
3689
3857
  )
3690
3858
 
3691
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3859
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3692
3860
  if @api_client.config.debugging
3693
3861
  @api_client.config.logger.debug "API called: AccountingApi#create_quotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3694
3862
  end
@@ -3767,7 +3935,7 @@ module XeroRuby
3767
3935
  :return_type => return_type
3768
3936
  )
3769
3937
 
3770
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
3938
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3771
3939
  if @api_client.config.debugging
3772
3940
  @api_client.config.logger.debug "API called: AccountingApi#create_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3773
3941
  end
@@ -3855,7 +4023,7 @@ module XeroRuby
3855
4023
  :return_type => return_type
3856
4024
  )
3857
4025
 
3858
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
4026
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3859
4027
  if @api_client.config.debugging
3860
4028
  @api_client.config.logger.debug "API called: AccountingApi#create_receipt_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3861
4029
  end
@@ -3937,7 +4105,7 @@ module XeroRuby
3937
4105
  :return_type => return_type
3938
4106
  )
3939
4107
 
3940
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
4108
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
3941
4109
  if @api_client.config.debugging
3942
4110
  @api_client.config.logger.debug "API called: AccountingApi#create_receipt_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3943
4111
  end
@@ -4025,7 +4193,7 @@ module XeroRuby
4025
4193
  :return_type => return_type
4026
4194
  )
4027
4195
 
4028
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
4196
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
4029
4197
  if @api_client.config.debugging
4030
4198
  @api_client.config.logger.debug "API called: AccountingApi#create_repeating_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4031
4199
  end
@@ -4107,7 +4275,7 @@ module XeroRuby
4107
4275
  :return_type => return_type
4108
4276
  )
4109
4277
 
4110
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
4278
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
4111
4279
  if @api_client.config.debugging
4112
4280
  @api_client.config.logger.debug "API called: AccountingApi#create_repeating_invoice_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4113
4281
  end
@@ -4183,7 +4351,7 @@ module XeroRuby
4183
4351
  :return_type => return_type
4184
4352
  )
4185
4353
 
4186
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
4354
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
4187
4355
  if @api_client.config.debugging
4188
4356
  @api_client.config.logger.debug "API called: AccountingApi#create_tax_rates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4189
4357
  end
@@ -4259,7 +4427,7 @@ module XeroRuby
4259
4427
  :return_type => return_type
4260
4428
  )
4261
4429
 
4262
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
4430
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
4263
4431
  if @api_client.config.debugging
4264
4432
  @api_client.config.logger.debug "API called: AccountingApi#create_tracking_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4265
4433
  end
@@ -4341,7 +4509,7 @@ module XeroRuby
4341
4509
  :return_type => return_type
4342
4510
  )
4343
4511
 
4344
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
4512
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, "AccountingApi", new_options)
4345
4513
  if @api_client.config.debugging
4346
4514
  @api_client.config.logger.debug "API called: AccountingApi#create_tracking_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4347
4515
  end
@@ -4415,7 +4583,7 @@ module XeroRuby
4415
4583
  :return_type => return_type
4416
4584
  )
4417
4585
 
4418
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
4586
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
4419
4587
  if @api_client.config.debugging
4420
4588
  @api_client.config.logger.debug "API called: AccountingApi#delete_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4421
4589
  end
@@ -4495,7 +4663,7 @@ module XeroRuby
4495
4663
  :return_type => return_type
4496
4664
  )
4497
4665
 
4498
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
4666
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
4499
4667
  if @api_client.config.debugging
4500
4668
  @api_client.config.logger.debug "API called: AccountingApi#delete_contact_group_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4501
4669
  end
@@ -4567,7 +4735,7 @@ module XeroRuby
4567
4735
  :return_type => return_type
4568
4736
  )
4569
4737
 
4570
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
4738
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
4571
4739
  if @api_client.config.debugging
4572
4740
  @api_client.config.logger.debug "API called: AccountingApi#delete_contact_group_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4573
4741
  end
@@ -4641,7 +4809,7 @@ module XeroRuby
4641
4809
  :return_type => return_type
4642
4810
  )
4643
4811
 
4644
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
4812
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
4645
4813
  if @api_client.config.debugging
4646
4814
  @api_client.config.logger.debug "API called: AccountingApi#delete_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4647
4815
  end
@@ -4715,7 +4883,7 @@ module XeroRuby
4715
4883
  :return_type => return_type
4716
4884
  )
4717
4885
 
4718
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
4886
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
4719
4887
  if @api_client.config.debugging
4720
4888
  @api_client.config.logger.debug "API called: AccountingApi#delete_linked_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4721
4889
  end
@@ -4797,7 +4965,7 @@ module XeroRuby
4797
4965
  :return_type => return_type
4798
4966
  )
4799
4967
 
4800
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4968
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
4801
4969
  if @api_client.config.debugging
4802
4970
  @api_client.config.logger.debug "API called: AccountingApi#delete_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4803
4971
  end
@@ -4871,7 +5039,7 @@ module XeroRuby
4871
5039
  :return_type => return_type
4872
5040
  )
4873
5041
 
4874
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
5042
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
4875
5043
  if @api_client.config.debugging
4876
5044
  @api_client.config.logger.debug "API called: AccountingApi#delete_tracking_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4877
5045
  end
@@ -4951,7 +5119,7 @@ module XeroRuby
4951
5119
  :return_type => return_type
4952
5120
  )
4953
5121
 
4954
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
5122
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, "AccountingApi", new_options)
4955
5123
  if @api_client.config.debugging
4956
5124
  @api_client.config.logger.debug "API called: AccountingApi#delete_tracking_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4957
5125
  end
@@ -5033,7 +5201,7 @@ module XeroRuby
5033
5201
  :return_type => return_type
5034
5202
  )
5035
5203
 
5036
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
5204
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
5037
5205
  if @api_client.config.debugging
5038
5206
  @api_client.config.logger.debug "API called: AccountingApi#email_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5039
5207
  end
@@ -5107,7 +5275,7 @@ module XeroRuby
5107
5275
  :return_type => return_type
5108
5276
  )
5109
5277
 
5110
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5278
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5111
5279
  if @api_client.config.debugging
5112
5280
  @api_client.config.logger.debug "API called: AccountingApi#get_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5113
5281
  end
@@ -5194,7 +5362,7 @@ module XeroRuby
5194
5362
  :return_type => return_type
5195
5363
  )
5196
5364
 
5197
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5365
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5198
5366
  if @api_client.config.debugging
5199
5367
  @api_client.config.logger.debug "API called: AccountingApi#get_account_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5200
5368
  end
@@ -5281,7 +5449,7 @@ module XeroRuby
5281
5449
  :return_type => return_type
5282
5450
  )
5283
5451
 
5284
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5452
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5285
5453
  if @api_client.config.debugging
5286
5454
  @api_client.config.logger.debug "API called: AccountingApi#get_account_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5287
5455
  end
@@ -5355,7 +5523,7 @@ module XeroRuby
5355
5523
  :return_type => return_type
5356
5524
  )
5357
5525
 
5358
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5526
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5359
5527
  if @api_client.config.debugging
5360
5528
  @api_client.config.logger.debug "API called: AccountingApi#get_account_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5361
5529
  end
@@ -5432,7 +5600,7 @@ module XeroRuby
5432
5600
  :return_type => return_type
5433
5601
  )
5434
5602
 
5435
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5603
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5436
5604
  if @api_client.config.debugging
5437
5605
  @api_client.config.logger.debug "API called: AccountingApi#get_accounts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5438
5606
  end
@@ -5509,7 +5677,7 @@ module XeroRuby
5509
5677
  :return_type => return_type
5510
5678
  )
5511
5679
 
5512
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5680
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5513
5681
  if @api_client.config.debugging
5514
5682
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5515
5683
  end
@@ -5596,7 +5764,7 @@ module XeroRuby
5596
5764
  :return_type => return_type
5597
5765
  )
5598
5766
 
5599
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5767
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5600
5768
  if @api_client.config.debugging
5601
5769
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transaction_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5602
5770
  end
@@ -5683,7 +5851,7 @@ module XeroRuby
5683
5851
  :return_type => return_type
5684
5852
  )
5685
5853
 
5686
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5854
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5687
5855
  if @api_client.config.debugging
5688
5856
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transaction_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5689
5857
  end
@@ -5757,7 +5925,7 @@ module XeroRuby
5757
5925
  :return_type => return_type
5758
5926
  )
5759
5927
 
5760
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5928
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5761
5929
  if @api_client.config.debugging
5762
5930
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transaction_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5763
5931
  end
@@ -5840,7 +6008,7 @@ module XeroRuby
5840
6008
  :return_type => return_type
5841
6009
  )
5842
6010
 
5843
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6011
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5844
6012
  if @api_client.config.debugging
5845
6013
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5846
6014
  end
@@ -5914,7 +6082,7 @@ module XeroRuby
5914
6082
  :return_type => return_type
5915
6083
  )
5916
6084
 
5917
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6085
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5918
6086
  if @api_client.config.debugging
5919
6087
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transactions_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5920
6088
  end
@@ -5988,7 +6156,7 @@ module XeroRuby
5988
6156
  :return_type => return_type
5989
6157
  )
5990
6158
 
5991
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6159
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
5992
6160
  if @api_client.config.debugging
5993
6161
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5994
6162
  end
@@ -6075,7 +6243,7 @@ module XeroRuby
6075
6243
  :return_type => return_type
6076
6244
  )
6077
6245
 
6078
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6246
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6079
6247
  if @api_client.config.debugging
6080
6248
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6081
6249
  end
@@ -6162,7 +6330,7 @@ module XeroRuby
6162
6330
  :return_type => return_type
6163
6331
  )
6164
6332
 
6165
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6333
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6166
6334
  if @api_client.config.debugging
6167
6335
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6168
6336
  end
@@ -6236,7 +6404,7 @@ module XeroRuby
6236
6404
  :return_type => return_type
6237
6405
  )
6238
6406
 
6239
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6407
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6240
6408
  if @api_client.config.debugging
6241
6409
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6242
6410
  end
@@ -6310,7 +6478,7 @@ module XeroRuby
6310
6478
  :return_type => return_type
6311
6479
  )
6312
6480
 
6313
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6481
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6314
6482
  if @api_client.config.debugging
6315
6483
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transfer_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6316
6484
  end
@@ -6387,7 +6555,7 @@ module XeroRuby
6387
6555
  :return_type => return_type
6388
6556
  )
6389
6557
 
6390
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6558
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6391
6559
  if @api_client.config.debugging
6392
6560
  @api_client.config.logger.debug "API called: AccountingApi#get_bank_transfers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6393
6561
  end
@@ -6461,7 +6629,7 @@ module XeroRuby
6461
6629
  :return_type => return_type
6462
6630
  )
6463
6631
 
6464
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6632
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6465
6633
  if @api_client.config.debugging
6466
6634
  @api_client.config.logger.debug "API called: AccountingApi#get_batch_payment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6467
6635
  end
@@ -6538,7 +6706,7 @@ module XeroRuby
6538
6706
  :return_type => return_type
6539
6707
  )
6540
6708
 
6541
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6709
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6542
6710
  if @api_client.config.debugging
6543
6711
  @api_client.config.logger.debug "API called: AccountingApi#get_batch_payments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6544
6712
  end
@@ -6612,7 +6780,7 @@ module XeroRuby
6612
6780
  :return_type => return_type
6613
6781
  )
6614
6782
 
6615
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6783
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6616
6784
  if @api_client.config.debugging
6617
6785
  @api_client.config.logger.debug "API called: AccountingApi#get_branding_theme\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6618
6786
  end
@@ -6686,7 +6854,7 @@ module XeroRuby
6686
6854
  :return_type => return_type
6687
6855
  )
6688
6856
 
6689
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6857
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6690
6858
  if @api_client.config.debugging
6691
6859
  @api_client.config.logger.debug "API called: AccountingApi#get_branding_theme_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6692
6860
  end
@@ -6754,7 +6922,7 @@ module XeroRuby
6754
6922
  :return_type => return_type
6755
6923
  )
6756
6924
 
6757
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6925
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6758
6926
  if @api_client.config.debugging
6759
6927
  @api_client.config.logger.debug "API called: AccountingApi#get_branding_themes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6760
6928
  end
@@ -6828,7 +6996,7 @@ module XeroRuby
6828
6996
  :return_type => return_type
6829
6997
  )
6830
6998
 
6831
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
6999
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6832
7000
  if @api_client.config.debugging
6833
7001
  @api_client.config.logger.debug "API called: AccountingApi#get_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6834
7002
  end
@@ -6915,7 +7083,7 @@ module XeroRuby
6915
7083
  :return_type => return_type
6916
7084
  )
6917
7085
 
6918
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7086
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
6919
7087
  if @api_client.config.debugging
6920
7088
  @api_client.config.logger.debug "API called: AccountingApi#get_contact_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6921
7089
  end
@@ -7002,7 +7170,7 @@ module XeroRuby
7002
7170
  :return_type => return_type
7003
7171
  )
7004
7172
 
7005
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7173
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7006
7174
  if @api_client.config.debugging
7007
7175
  @api_client.config.logger.debug "API called: AccountingApi#get_contact_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7008
7176
  end
@@ -7076,7 +7244,7 @@ module XeroRuby
7076
7244
  :return_type => return_type
7077
7245
  )
7078
7246
 
7079
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7247
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7080
7248
  if @api_client.config.debugging
7081
7249
  @api_client.config.logger.debug "API called: AccountingApi#get_contact_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7082
7250
  end
@@ -7150,7 +7318,7 @@ module XeroRuby
7150
7318
  :return_type => return_type
7151
7319
  )
7152
7320
 
7153
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7321
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7154
7322
  if @api_client.config.debugging
7155
7323
  @api_client.config.logger.debug "API called: AccountingApi#get_contact_by_contact_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7156
7324
  end
@@ -7224,7 +7392,7 @@ module XeroRuby
7224
7392
  :return_type => return_type
7225
7393
  )
7226
7394
 
7227
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7395
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7228
7396
  if @api_client.config.debugging
7229
7397
  @api_client.config.logger.debug "API called: AccountingApi#get_contact_cis_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7230
7398
  end
@@ -7298,7 +7466,7 @@ module XeroRuby
7298
7466
  :return_type => return_type
7299
7467
  )
7300
7468
 
7301
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7469
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7302
7470
  if @api_client.config.debugging
7303
7471
  @api_client.config.logger.debug "API called: AccountingApi#get_contact_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7304
7472
  end
@@ -7372,7 +7540,7 @@ module XeroRuby
7372
7540
  :return_type => return_type
7373
7541
  )
7374
7542
 
7375
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7543
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7376
7544
  if @api_client.config.debugging
7377
7545
  @api_client.config.logger.debug "API called: AccountingApi#get_contact_groups\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7378
7546
  end
@@ -7446,7 +7614,7 @@ module XeroRuby
7446
7614
  :return_type => return_type
7447
7615
  )
7448
7616
 
7449
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7617
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7450
7618
  if @api_client.config.debugging
7451
7619
  @api_client.config.logger.debug "API called: AccountingApi#get_contact_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7452
7620
  end
@@ -7532,7 +7700,7 @@ module XeroRuby
7532
7700
  :return_type => return_type
7533
7701
  )
7534
7702
 
7535
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7703
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7536
7704
  if @api_client.config.debugging
7537
7705
  @api_client.config.logger.debug "API called: AccountingApi#get_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7538
7706
  end
@@ -7609,7 +7777,7 @@ module XeroRuby
7609
7777
  :return_type => return_type
7610
7778
  )
7611
7779
 
7612
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7780
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7613
7781
  if @api_client.config.debugging
7614
7782
  @api_client.config.logger.debug "API called: AccountingApi#get_credit_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7615
7783
  end
@@ -7683,7 +7851,7 @@ module XeroRuby
7683
7851
  :return_type => return_type
7684
7852
  )
7685
7853
 
7686
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7854
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7687
7855
  if @api_client.config.debugging
7688
7856
  @api_client.config.logger.debug "API called: AccountingApi#get_credit_note_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7689
7857
  end
@@ -7770,7 +7938,7 @@ module XeroRuby
7770
7938
  :return_type => return_type
7771
7939
  )
7772
7940
 
7773
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
7941
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7774
7942
  if @api_client.config.debugging
7775
7943
  @api_client.config.logger.debug "API called: AccountingApi#get_credit_note_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7776
7944
  end
@@ -7857,7 +8025,7 @@ module XeroRuby
7857
8025
  :return_type => return_type
7858
8026
  )
7859
8027
 
7860
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8028
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7861
8029
  if @api_client.config.debugging
7862
8030
  @api_client.config.logger.debug "API called: AccountingApi#get_credit_note_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7863
8031
  end
@@ -7931,7 +8099,7 @@ module XeroRuby
7931
8099
  :return_type => return_type
7932
8100
  )
7933
8101
 
7934
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8102
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
7935
8103
  if @api_client.config.debugging
7936
8104
  @api_client.config.logger.debug "API called: AccountingApi#get_credit_note_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
7937
8105
  end
@@ -8005,7 +8173,7 @@ module XeroRuby
8005
8173
  :return_type => return_type
8006
8174
  )
8007
8175
 
8008
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8176
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8009
8177
  if @api_client.config.debugging
8010
8178
  @api_client.config.logger.debug "API called: AccountingApi#get_credit_note_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8011
8179
  end
@@ -8088,7 +8256,7 @@ module XeroRuby
8088
8256
  :return_type => return_type
8089
8257
  )
8090
8258
 
8091
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8259
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8092
8260
  if @api_client.config.debugging
8093
8261
  @api_client.config.logger.debug "API called: AccountingApi#get_credit_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8094
8262
  end
@@ -8162,7 +8330,7 @@ module XeroRuby
8162
8330
  :return_type => return_type
8163
8331
  )
8164
8332
 
8165
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8333
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8166
8334
  if @api_client.config.debugging
8167
8335
  @api_client.config.logger.debug "API called: AccountingApi#get_currencies\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8168
8336
  end
@@ -8236,7 +8404,7 @@ module XeroRuby
8236
8404
  :return_type => return_type
8237
8405
  )
8238
8406
 
8239
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8407
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8240
8408
  if @api_client.config.debugging
8241
8409
  @api_client.config.logger.debug "API called: AccountingApi#get_employee\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8242
8410
  end
@@ -8313,7 +8481,7 @@ module XeroRuby
8313
8481
  :return_type => return_type
8314
8482
  )
8315
8483
 
8316
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8484
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8317
8485
  if @api_client.config.debugging
8318
8486
  @api_client.config.logger.debug "API called: AccountingApi#get_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8319
8487
  end
@@ -8387,7 +8555,7 @@ module XeroRuby
8387
8555
  :return_type => return_type
8388
8556
  )
8389
8557
 
8390
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8558
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8391
8559
  if @api_client.config.debugging
8392
8560
  @api_client.config.logger.debug "API called: AccountingApi#get_expense_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8393
8561
  end
@@ -8461,7 +8629,7 @@ module XeroRuby
8461
8629
  :return_type => return_type
8462
8630
  )
8463
8631
 
8464
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8632
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8465
8633
  if @api_client.config.debugging
8466
8634
  @api_client.config.logger.debug "API called: AccountingApi#get_expense_claim_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8467
8635
  end
@@ -8538,7 +8706,7 @@ module XeroRuby
8538
8706
  :return_type => return_type
8539
8707
  )
8540
8708
 
8541
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8709
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8542
8710
  if @api_client.config.debugging
8543
8711
  @api_client.config.logger.debug "API called: AccountingApi#get_expense_claims\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8544
8712
  end
@@ -8615,7 +8783,7 @@ module XeroRuby
8615
8783
  :return_type => return_type
8616
8784
  )
8617
8785
 
8618
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8786
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8619
8787
  if @api_client.config.debugging
8620
8788
  @api_client.config.logger.debug "API called: AccountingApi#get_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8621
8789
  end
@@ -8689,7 +8857,7 @@ module XeroRuby
8689
8857
  :return_type => return_type
8690
8858
  )
8691
8859
 
8692
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8860
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8693
8861
  if @api_client.config.debugging
8694
8862
  @api_client.config.logger.debug "API called: AccountingApi#get_invoice_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8695
8863
  end
@@ -8776,7 +8944,7 @@ module XeroRuby
8776
8944
  :return_type => return_type
8777
8945
  )
8778
8946
 
8779
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
8947
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8780
8948
  if @api_client.config.debugging
8781
8949
  @api_client.config.logger.debug "API called: AccountingApi#get_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8782
8950
  end
@@ -8863,7 +9031,7 @@ module XeroRuby
8863
9031
  :return_type => return_type
8864
9032
  )
8865
9033
 
8866
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9034
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8867
9035
  if @api_client.config.debugging
8868
9036
  @api_client.config.logger.debug "API called: AccountingApi#get_invoice_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8869
9037
  end
@@ -8937,7 +9105,7 @@ module XeroRuby
8937
9105
  :return_type => return_type
8938
9106
  )
8939
9107
 
8940
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9108
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
8941
9109
  if @api_client.config.debugging
8942
9110
  @api_client.config.logger.debug "API called: AccountingApi#get_invoice_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
8943
9111
  end
@@ -9011,7 +9179,7 @@ module XeroRuby
9011
9179
  :return_type => return_type
9012
9180
  )
9013
9181
 
9014
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9182
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9015
9183
  if @api_client.config.debugging
9016
9184
  @api_client.config.logger.debug "API called: AccountingApi#get_invoice_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9017
9185
  end
@@ -9079,7 +9247,7 @@ module XeroRuby
9079
9247
  :return_type => return_type
9080
9248
  )
9081
9249
 
9082
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9250
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9083
9251
  if @api_client.config.debugging
9084
9252
  @api_client.config.logger.debug "API called: AccountingApi#get_invoice_reminders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9085
9253
  end
@@ -9180,7 +9348,7 @@ module XeroRuby
9180
9348
  :return_type => return_type
9181
9349
  )
9182
9350
 
9183
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9351
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9184
9352
  if @api_client.config.debugging
9185
9353
  @api_client.config.logger.debug "API called: AccountingApi#get_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9186
9354
  end
@@ -9257,7 +9425,7 @@ module XeroRuby
9257
9425
  :return_type => return_type
9258
9426
  )
9259
9427
 
9260
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9428
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9261
9429
  if @api_client.config.debugging
9262
9430
  @api_client.config.logger.debug "API called: AccountingApi#get_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9263
9431
  end
@@ -9331,7 +9499,7 @@ module XeroRuby
9331
9499
  :return_type => return_type
9332
9500
  )
9333
9501
 
9334
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9502
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9335
9503
  if @api_client.config.debugging
9336
9504
  @api_client.config.logger.debug "API called: AccountingApi#get_item_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9337
9505
  end
@@ -9411,7 +9579,7 @@ module XeroRuby
9411
9579
  :return_type => return_type
9412
9580
  )
9413
9581
 
9414
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9582
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9415
9583
  if @api_client.config.debugging
9416
9584
  @api_client.config.logger.debug "API called: AccountingApi#get_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9417
9585
  end
@@ -9485,7 +9653,7 @@ module XeroRuby
9485
9653
  :return_type => return_type
9486
9654
  )
9487
9655
 
9488
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9656
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9489
9657
  if @api_client.config.debugging
9490
9658
  @api_client.config.logger.debug "API called: AccountingApi#get_journal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9491
9659
  end
@@ -9562,7 +9730,7 @@ module XeroRuby
9562
9730
  :return_type => return_type
9563
9731
  )
9564
9732
 
9565
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9733
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9566
9734
  if @api_client.config.debugging
9567
9735
  @api_client.config.logger.debug "API called: AccountingApi#get_journals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9568
9736
  end
@@ -9636,7 +9804,7 @@ module XeroRuby
9636
9804
  :return_type => return_type
9637
9805
  )
9638
9806
 
9639
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9807
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9640
9808
  if @api_client.config.debugging
9641
9809
  @api_client.config.logger.debug "API called: AccountingApi#get_linked_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9642
9810
  end
@@ -9722,7 +9890,7 @@ module XeroRuby
9722
9890
  :return_type => return_type
9723
9891
  )
9724
9892
 
9725
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9893
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9726
9894
  if @api_client.config.debugging
9727
9895
  @api_client.config.logger.debug "API called: AccountingApi#get_linked_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9728
9896
  end
@@ -9796,7 +9964,7 @@ module XeroRuby
9796
9964
  :return_type => return_type
9797
9965
  )
9798
9966
 
9799
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9967
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9800
9968
  if @api_client.config.debugging
9801
9969
  @api_client.config.logger.debug "API called: AccountingApi#get_manual_journal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9802
9970
  end
@@ -9883,7 +10051,7 @@ module XeroRuby
9883
10051
  :return_type => return_type
9884
10052
  )
9885
10053
 
9886
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10054
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9887
10055
  if @api_client.config.debugging
9888
10056
  @api_client.config.logger.debug "API called: AccountingApi#get_manual_journal_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9889
10057
  end
@@ -9970,7 +10138,7 @@ module XeroRuby
9970
10138
  :return_type => return_type
9971
10139
  )
9972
10140
 
9973
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10141
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
9974
10142
  if @api_client.config.debugging
9975
10143
  @api_client.config.logger.debug "API called: AccountingApi#get_manual_journal_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9976
10144
  end
@@ -10044,7 +10212,7 @@ module XeroRuby
10044
10212
  :return_type => return_type
10045
10213
  )
10046
10214
 
10047
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10215
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10048
10216
  if @api_client.config.debugging
10049
10217
  @api_client.config.logger.debug "API called: AccountingApi#get_manual_journal_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10050
10218
  end
@@ -10124,42 +10292,42 @@ module XeroRuby
10124
10292
  :return_type => return_type
10125
10293
  )
10126
10294
 
10127
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10295
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10128
10296
  if @api_client.config.debugging
10129
10297
  @api_client.config.logger.debug "API called: AccountingApi#get_manual_journals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10130
10298
  end
10131
10299
  return data, status_code, headers
10132
10300
  end
10133
10301
 
10134
- # Allows you to retrieve a URL to an online invoice
10302
+ # Allows you to retrieve history from a manual journal
10135
10303
  # @param xero_tenant_id [String] Xero identifier for Tenant
10136
- # @param invoice_id [String] Unique identifier for an Invoice
10304
+ # @param manual_journal_id [String] Xero generated unique identifier for a manual journal
10137
10305
  # @param [Hash] opts the optional parameters
10138
- # @return [OnlineInvoices]
10139
- def get_online_invoice(xero_tenant_id, invoice_id, opts = {})
10140
- data, _status_code, _headers = get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts)
10306
+ # @return [HistoryRecords]
10307
+ def get_manual_journals_history(xero_tenant_id, manual_journal_id, opts = {})
10308
+ data, _status_code, _headers = get_manual_journals_history_with_http_info(xero_tenant_id, manual_journal_id, opts)
10141
10309
  data
10142
10310
  end
10143
10311
 
10144
- # Allows you to retrieve a URL to an online invoice
10312
+ # Allows you to retrieve history from a manual journal
10145
10313
  # @param xero_tenant_id [String] Xero identifier for Tenant
10146
- # @param invoice_id [String] Unique identifier for an Invoice
10314
+ # @param manual_journal_id [String] Xero generated unique identifier for a manual journal
10147
10315
  # @param [Hash] opts the optional parameters
10148
- # @return [Array<(OnlineInvoices, Integer, Hash)>] OnlineInvoices data, response status code and response headers
10149
- def get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {})
10316
+ # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
10317
+ def get_manual_journals_history_with_http_info(xero_tenant_id, manual_journal_id, opts = {})
10150
10318
  if @api_client.config.debugging
10151
- @api_client.config.logger.debug 'Calling API: AccountingApi.get_online_invoice ...'
10319
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_manual_journals_history ...'
10152
10320
  end
10153
10321
  # verify the required parameter 'xero_tenant_id' is set
10154
10322
  if @api_client.config.client_side_validation && xero_tenant_id.nil?
10155
- fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_online_invoice"
10323
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_manual_journals_history"
10156
10324
  end
10157
- # verify the required parameter 'invoice_id' is set
10158
- if @api_client.config.client_side_validation && invoice_id.nil?
10159
- fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_online_invoice"
10325
+ # verify the required parameter 'manual_journal_id' is set
10326
+ if @api_client.config.client_side_validation && manual_journal_id.nil?
10327
+ fail ArgumentError, "Missing the required parameter 'manual_journal_id' when calling AccountingApi.get_manual_journals_history"
10160
10328
  end
10161
10329
  # resource path
10162
- local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
10330
+ local_var_path = '/ManualJournals/{ManualJournalID}/History'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s)
10163
10331
 
10164
10332
  # camelize keys of incoming `where` opts
10165
10333
  opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
@@ -10184,7 +10352,7 @@ module XeroRuby
10184
10352
  post_body = opts[:body]
10185
10353
 
10186
10354
  # return_type
10187
- return_type = opts[:return_type] || 'OnlineInvoices'
10355
+ return_type = opts[:return_type] || 'HistoryRecords'
10188
10356
 
10189
10357
  # auth_names
10190
10358
  auth_names = opts[:auth_names] || ['OAuth2']
@@ -10198,42 +10366,42 @@ module XeroRuby
10198
10366
  :return_type => return_type
10199
10367
  )
10200
10368
 
10201
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10369
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10202
10370
  if @api_client.config.debugging
10203
- @api_client.config.logger.debug "API called: AccountingApi#get_online_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10371
+ @api_client.config.logger.debug "API called: AccountingApi#get_manual_journals_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10204
10372
  end
10205
10373
  return data, status_code, headers
10206
10374
  end
10207
10375
 
10208
- # Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
10376
+ # Allows you to retrieve a URL to an online invoice
10209
10377
  # @param xero_tenant_id [String] Xero identifier for Tenant
10210
- # @param organisation_id [String] The unique Xero identifier for an organisation
10378
+ # @param invoice_id [String] Unique identifier for an Invoice
10211
10379
  # @param [Hash] opts the optional parameters
10212
- # @return [CISOrgSetting]
10213
- def get_organisation_cis_settings(xero_tenant_id, organisation_id, opts = {})
10214
- data, _status_code, _headers = get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id, opts)
10380
+ # @return [OnlineInvoices]
10381
+ def get_online_invoice(xero_tenant_id, invoice_id, opts = {})
10382
+ data, _status_code, _headers = get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts)
10215
10383
  data
10216
10384
  end
10217
10385
 
10218
- # Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
10386
+ # Allows you to retrieve a URL to an online invoice
10219
10387
  # @param xero_tenant_id [String] Xero identifier for Tenant
10220
- # @param organisation_id [String] The unique Xero identifier for an organisation
10388
+ # @param invoice_id [String] Unique identifier for an Invoice
10221
10389
  # @param [Hash] opts the optional parameters
10222
- # @return [Array<(CISOrgSetting, Integer, Hash)>] CISOrgSetting data, response status code and response headers
10223
- def get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id, opts = {})
10390
+ # @return [Array<(OnlineInvoices, Integer, Hash)>] OnlineInvoices data, response status code and response headers
10391
+ def get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {})
10224
10392
  if @api_client.config.debugging
10225
- @api_client.config.logger.debug 'Calling API: AccountingApi.get_organisation_cis_settings ...'
10393
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_online_invoice ...'
10226
10394
  end
10227
10395
  # verify the required parameter 'xero_tenant_id' is set
10228
10396
  if @api_client.config.client_side_validation && xero_tenant_id.nil?
10229
- fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_organisation_cis_settings"
10397
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_online_invoice"
10230
10398
  end
10231
- # verify the required parameter 'organisation_id' is set
10232
- if @api_client.config.client_side_validation && organisation_id.nil?
10233
- fail ArgumentError, "Missing the required parameter 'organisation_id' when calling AccountingApi.get_organisation_cis_settings"
10399
+ # verify the required parameter 'invoice_id' is set
10400
+ if @api_client.config.client_side_validation && invoice_id.nil?
10401
+ fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_online_invoice"
10234
10402
  end
10235
10403
  # resource path
10236
- local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', organisation_id.to_s)
10404
+ local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s)
10237
10405
 
10238
10406
  # camelize keys of incoming `where` opts
10239
10407
  opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
@@ -10258,7 +10426,7 @@ module XeroRuby
10258
10426
  post_body = opts[:body]
10259
10427
 
10260
10428
  # return_type
10261
- return_type = opts[:return_type] || 'CISOrgSetting'
10429
+ return_type = opts[:return_type] || 'OnlineInvoices'
10262
10430
 
10263
10431
  # auth_names
10264
10432
  auth_names = opts[:auth_names] || ['OAuth2']
@@ -10272,36 +10440,36 @@ module XeroRuby
10272
10440
  :return_type => return_type
10273
10441
  )
10274
10442
 
10275
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10443
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10276
10444
  if @api_client.config.debugging
10277
- @api_client.config.logger.debug "API called: AccountingApi#get_organisation_cis_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10445
+ @api_client.config.logger.debug "API called: AccountingApi#get_online_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10278
10446
  end
10279
10447
  return data, status_code, headers
10280
10448
  end
10281
10449
 
10282
- # Allows you to retrieve Organisation details
10450
+ # Retrieve a list of the key actions your app has permission to perform in the connected organisation.
10283
10451
  # @param xero_tenant_id [String] Xero identifier for Tenant
10284
10452
  # @param [Hash] opts the optional parameters
10285
- # @return [Organisations]
10286
- def get_organisations(xero_tenant_id, opts = {})
10287
- data, _status_code, _headers = get_organisations_with_http_info(xero_tenant_id, opts)
10453
+ # @return [Actions]
10454
+ def get_organisation_actions(xero_tenant_id, opts = {})
10455
+ data, _status_code, _headers = get_organisation_actions_with_http_info(xero_tenant_id, opts)
10288
10456
  data
10289
10457
  end
10290
10458
 
10291
- # Allows you to retrieve Organisation details
10459
+ # Retrieve a list of the key actions your app has permission to perform in the connected organisation.
10292
10460
  # @param xero_tenant_id [String] Xero identifier for Tenant
10293
10461
  # @param [Hash] opts the optional parameters
10294
- # @return [Array<(Organisations, Integer, Hash)>] Organisations data, response status code and response headers
10295
- def get_organisations_with_http_info(xero_tenant_id, opts = {})
10462
+ # @return [Array<(Actions, Integer, Hash)>] Actions data, response status code and response headers
10463
+ def get_organisation_actions_with_http_info(xero_tenant_id, opts = {})
10296
10464
  if @api_client.config.debugging
10297
- @api_client.config.logger.debug 'Calling API: AccountingApi.get_organisations ...'
10465
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_organisation_actions ...'
10298
10466
  end
10299
10467
  # verify the required parameter 'xero_tenant_id' is set
10300
10468
  if @api_client.config.client_side_validation && xero_tenant_id.nil?
10301
- fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_organisations"
10469
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_organisation_actions"
10302
10470
  end
10303
10471
  # resource path
10304
- local_var_path = '/Organisation'
10472
+ local_var_path = '/Organisation/Actions'
10305
10473
 
10306
10474
  # camelize keys of incoming `where` opts
10307
10475
  opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
@@ -10326,7 +10494,7 @@ module XeroRuby
10326
10494
  post_body = opts[:body]
10327
10495
 
10328
10496
  # return_type
10329
- return_type = opts[:return_type] || 'Organisations'
10497
+ return_type = opts[:return_type] || 'Actions'
10330
10498
 
10331
10499
  # auth_names
10332
10500
  auth_names = opts[:auth_names] || ['OAuth2']
@@ -10340,42 +10508,42 @@ module XeroRuby
10340
10508
  :return_type => return_type
10341
10509
  )
10342
10510
 
10343
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10511
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10344
10512
  if @api_client.config.debugging
10345
- @api_client.config.logger.debug "API called: AccountingApi#get_organisations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10513
+ @api_client.config.logger.debug "API called: AccountingApi#get_organisation_actions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10346
10514
  end
10347
10515
  return data, status_code, headers
10348
10516
  end
10349
10517
 
10350
- # Allows you to retrieve a specified overpayments
10518
+ # Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
10351
10519
  # @param xero_tenant_id [String] Xero identifier for Tenant
10352
- # @param overpayment_id [String] Unique identifier for a Overpayment
10520
+ # @param organisation_id [String] The unique Xero identifier for an organisation
10353
10521
  # @param [Hash] opts the optional parameters
10354
- # @return [Overpayments]
10355
- def get_overpayment(xero_tenant_id, overpayment_id, opts = {})
10356
- data, _status_code, _headers = get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts)
10522
+ # @return [CISOrgSetting]
10523
+ def get_organisation_cis_settings(xero_tenant_id, organisation_id, opts = {})
10524
+ data, _status_code, _headers = get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id, opts)
10357
10525
  data
10358
10526
  end
10359
10527
 
10360
- # Allows you to retrieve a specified overpayments
10528
+ # Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
10361
10529
  # @param xero_tenant_id [String] Xero identifier for Tenant
10362
- # @param overpayment_id [String] Unique identifier for a Overpayment
10530
+ # @param organisation_id [String] The unique Xero identifier for an organisation
10363
10531
  # @param [Hash] opts the optional parameters
10364
- # @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
10365
- def get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts = {})
10532
+ # @return [Array<(CISOrgSetting, Integer, Hash)>] CISOrgSetting data, response status code and response headers
10533
+ def get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id, opts = {})
10366
10534
  if @api_client.config.debugging
10367
- @api_client.config.logger.debug 'Calling API: AccountingApi.get_overpayment ...'
10535
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_organisation_cis_settings ...'
10368
10536
  end
10369
10537
  # verify the required parameter 'xero_tenant_id' is set
10370
10538
  if @api_client.config.client_side_validation && xero_tenant_id.nil?
10371
- fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_overpayment"
10539
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_organisation_cis_settings"
10372
10540
  end
10373
- # verify the required parameter 'overpayment_id' is set
10374
- if @api_client.config.client_side_validation && overpayment_id.nil?
10375
- fail ArgumentError, "Missing the required parameter 'overpayment_id' when calling AccountingApi.get_overpayment"
10541
+ # verify the required parameter 'organisation_id' is set
10542
+ if @api_client.config.client_side_validation && organisation_id.nil?
10543
+ fail ArgumentError, "Missing the required parameter 'organisation_id' when calling AccountingApi.get_organisation_cis_settings"
10376
10544
  end
10377
10545
  # resource path
10378
- local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
10546
+ local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', organisation_id.to_s)
10379
10547
 
10380
10548
  # camelize keys of incoming `where` opts
10381
10549
  opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
@@ -10400,7 +10568,7 @@ module XeroRuby
10400
10568
  post_body = opts[:body]
10401
10569
 
10402
10570
  # return_type
10403
- return_type = opts[:return_type] || 'Overpayments'
10571
+ return_type = opts[:return_type] || 'CISOrgSetting'
10404
10572
 
10405
10573
  # auth_names
10406
10574
  auth_names = opts[:auth_names] || ['OAuth2']
@@ -10414,26 +10582,168 @@ module XeroRuby
10414
10582
  :return_type => return_type
10415
10583
  )
10416
10584
 
10417
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10585
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10418
10586
  if @api_client.config.debugging
10419
- @api_client.config.logger.debug "API called: AccountingApi#get_overpayment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10587
+ @api_client.config.logger.debug "API called: AccountingApi#get_organisation_cis_settings\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10420
10588
  end
10421
10589
  return data, status_code, headers
10422
10590
  end
10423
10591
 
10424
- # Allows you to retrieve a history records of an Overpayment
10592
+ # Allows you to retrieve Organisation details
10425
10593
  # @param xero_tenant_id [String] Xero identifier for Tenant
10426
- # @param overpayment_id [String] Unique identifier for a Overpayment
10427
10594
  # @param [Hash] opts the optional parameters
10428
- # @return [HistoryRecords]
10429
- def get_overpayment_history(xero_tenant_id, overpayment_id, opts = {})
10430
- data, _status_code, _headers = get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, opts)
10595
+ # @return [Organisations]
10596
+ def get_organisations(xero_tenant_id, opts = {})
10597
+ data, _status_code, _headers = get_organisations_with_http_info(xero_tenant_id, opts)
10431
10598
  data
10432
10599
  end
10433
10600
 
10434
- # Allows you to retrieve a history records of an Overpayment
10601
+ # Allows you to retrieve Organisation details
10435
10602
  # @param xero_tenant_id [String] Xero identifier for Tenant
10436
- # @param overpayment_id [String] Unique identifier for a Overpayment
10603
+ # @param [Hash] opts the optional parameters
10604
+ # @return [Array<(Organisations, Integer, Hash)>] Organisations data, response status code and response headers
10605
+ def get_organisations_with_http_info(xero_tenant_id, opts = {})
10606
+ if @api_client.config.debugging
10607
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_organisations ...'
10608
+ end
10609
+ # verify the required parameter 'xero_tenant_id' is set
10610
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
10611
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_organisations"
10612
+ end
10613
+ # resource path
10614
+ local_var_path = '/Organisation'
10615
+
10616
+ # camelize keys of incoming `where` opts
10617
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10618
+
10619
+ # query parameters
10620
+ query_params = opts[:query_params] || {}
10621
+
10622
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10623
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10624
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10625
+
10626
+ # header parameters
10627
+ header_params = opts[:header_params] || {}
10628
+ # HTTP header 'Accept' (if needed)
10629
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10630
+ header_params[:'xero-tenant-id'] = xero_tenant_id
10631
+
10632
+ # form parameters
10633
+ form_params = opts[:form_params] || {}
10634
+
10635
+ # http body (model)
10636
+ post_body = opts[:body]
10637
+
10638
+ # return_type
10639
+ return_type = opts[:return_type] || 'Organisations'
10640
+
10641
+ # auth_names
10642
+ auth_names = opts[:auth_names] || ['OAuth2']
10643
+
10644
+ new_options = opts.merge(
10645
+ :header_params => header_params,
10646
+ :query_params => query_params,
10647
+ :form_params => form_params,
10648
+ :body => post_body,
10649
+ :auth_names => auth_names,
10650
+ :return_type => return_type
10651
+ )
10652
+
10653
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10654
+ if @api_client.config.debugging
10655
+ @api_client.config.logger.debug "API called: AccountingApi#get_organisations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10656
+ end
10657
+ return data, status_code, headers
10658
+ end
10659
+
10660
+ # Allows you to retrieve a specified overpayments
10661
+ # @param xero_tenant_id [String] Xero identifier for Tenant
10662
+ # @param overpayment_id [String] Unique identifier for a Overpayment
10663
+ # @param [Hash] opts the optional parameters
10664
+ # @return [Overpayments]
10665
+ def get_overpayment(xero_tenant_id, overpayment_id, opts = {})
10666
+ data, _status_code, _headers = get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts)
10667
+ data
10668
+ end
10669
+
10670
+ # Allows you to retrieve a specified overpayments
10671
+ # @param xero_tenant_id [String] Xero identifier for Tenant
10672
+ # @param overpayment_id [String] Unique identifier for a Overpayment
10673
+ # @param [Hash] opts the optional parameters
10674
+ # @return [Array<(Overpayments, Integer, Hash)>] Overpayments data, response status code and response headers
10675
+ def get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts = {})
10676
+ if @api_client.config.debugging
10677
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_overpayment ...'
10678
+ end
10679
+ # verify the required parameter 'xero_tenant_id' is set
10680
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
10681
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_overpayment"
10682
+ end
10683
+ # verify the required parameter 'overpayment_id' is set
10684
+ if @api_client.config.client_side_validation && overpayment_id.nil?
10685
+ fail ArgumentError, "Missing the required parameter 'overpayment_id' when calling AccountingApi.get_overpayment"
10686
+ end
10687
+ # resource path
10688
+ local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s)
10689
+
10690
+ # camelize keys of incoming `where` opts
10691
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
10692
+
10693
+ # query parameters
10694
+ query_params = opts[:query_params] || {}
10695
+
10696
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
10697
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
10698
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
10699
+
10700
+ # header parameters
10701
+ header_params = opts[:header_params] || {}
10702
+ # HTTP header 'Accept' (if needed)
10703
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
10704
+ header_params[:'xero-tenant-id'] = xero_tenant_id
10705
+
10706
+ # form parameters
10707
+ form_params = opts[:form_params] || {}
10708
+
10709
+ # http body (model)
10710
+ post_body = opts[:body]
10711
+
10712
+ # return_type
10713
+ return_type = opts[:return_type] || 'Overpayments'
10714
+
10715
+ # auth_names
10716
+ auth_names = opts[:auth_names] || ['OAuth2']
10717
+
10718
+ new_options = opts.merge(
10719
+ :header_params => header_params,
10720
+ :query_params => query_params,
10721
+ :form_params => form_params,
10722
+ :body => post_body,
10723
+ :auth_names => auth_names,
10724
+ :return_type => return_type
10725
+ )
10726
+
10727
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10728
+ if @api_client.config.debugging
10729
+ @api_client.config.logger.debug "API called: AccountingApi#get_overpayment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10730
+ end
10731
+ return data, status_code, headers
10732
+ end
10733
+
10734
+ # Allows you to retrieve a history records of an Overpayment
10735
+ # @param xero_tenant_id [String] Xero identifier for Tenant
10736
+ # @param overpayment_id [String] Unique identifier for a Overpayment
10737
+ # @param [Hash] opts the optional parameters
10738
+ # @return [HistoryRecords]
10739
+ def get_overpayment_history(xero_tenant_id, overpayment_id, opts = {})
10740
+ data, _status_code, _headers = get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, opts)
10741
+ data
10742
+ end
10743
+
10744
+ # Allows you to retrieve a history records of an Overpayment
10745
+ # @param xero_tenant_id [String] Xero identifier for Tenant
10746
+ # @param overpayment_id [String] Unique identifier for a Overpayment
10437
10747
  # @param [Hash] opts the optional parameters
10438
10748
  # @return [Array<(HistoryRecords, Integer, Hash)>] HistoryRecords data, response status code and response headers
10439
10749
  def get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, opts = {})
@@ -10488,7 +10798,7 @@ module XeroRuby
10488
10798
  :return_type => return_type
10489
10799
  )
10490
10800
 
10491
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10801
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10492
10802
  if @api_client.config.debugging
10493
10803
  @api_client.config.logger.debug "API called: AccountingApi#get_overpayment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10494
10804
  end
@@ -10571,7 +10881,7 @@ module XeroRuby
10571
10881
  :return_type => return_type
10572
10882
  )
10573
10883
 
10574
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10884
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10575
10885
  if @api_client.config.debugging
10576
10886
  @api_client.config.logger.debug "API called: AccountingApi#get_overpayments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10577
10887
  end
@@ -10645,7 +10955,7 @@ module XeroRuby
10645
10955
  :return_type => return_type
10646
10956
  )
10647
10957
 
10648
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
10958
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10649
10959
  if @api_client.config.debugging
10650
10960
  @api_client.config.logger.debug "API called: AccountingApi#get_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10651
10961
  end
@@ -10719,7 +11029,7 @@ module XeroRuby
10719
11029
  :return_type => return_type
10720
11030
  )
10721
11031
 
10722
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11032
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10723
11033
  if @api_client.config.debugging
10724
11034
  @api_client.config.logger.debug "API called: AccountingApi#get_payment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10725
11035
  end
@@ -10787,7 +11097,7 @@ module XeroRuby
10787
11097
  :return_type => return_type
10788
11098
  )
10789
11099
 
10790
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11100
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10791
11101
  if @api_client.config.debugging
10792
11102
  @api_client.config.logger.debug "API called: AccountingApi#get_payment_services\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10793
11103
  end
@@ -10867,7 +11177,7 @@ module XeroRuby
10867
11177
  :return_type => return_type
10868
11178
  )
10869
11179
 
10870
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11180
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10871
11181
  if @api_client.config.debugging
10872
11182
  @api_client.config.logger.debug "API called: AccountingApi#get_payments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10873
11183
  end
@@ -10941,7 +11251,7 @@ module XeroRuby
10941
11251
  :return_type => return_type
10942
11252
  )
10943
11253
 
10944
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11254
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
10945
11255
  if @api_client.config.debugging
10946
11256
  @api_client.config.logger.debug "API called: AccountingApi#get_prepayment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
10947
11257
  end
@@ -11015,7 +11325,7 @@ module XeroRuby
11015
11325
  :return_type => return_type
11016
11326
  )
11017
11327
 
11018
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11328
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11019
11329
  if @api_client.config.debugging
11020
11330
  @api_client.config.logger.debug "API called: AccountingApi#get_prepayment_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11021
11331
  end
@@ -11098,7 +11408,7 @@ module XeroRuby
11098
11408
  :return_type => return_type
11099
11409
  )
11100
11410
 
11101
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11411
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11102
11412
  if @api_client.config.debugging
11103
11413
  @api_client.config.logger.debug "API called: AccountingApi#get_prepayments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11104
11414
  end
@@ -11172,7 +11482,7 @@ module XeroRuby
11172
11482
  :return_type => return_type
11173
11483
  )
11174
11484
 
11175
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11485
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11176
11486
  if @api_client.config.debugging
11177
11487
  @api_client.config.logger.debug "API called: AccountingApi#get_purchase_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11178
11488
  end
@@ -11246,13 +11556,261 @@ module XeroRuby
11246
11556
  :return_type => return_type
11247
11557
  )
11248
11558
 
11249
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11559
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11250
11560
  if @api_client.config.debugging
11251
11561
  @api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11252
11562
  end
11253
11563
  return data, status_code, headers
11254
11564
  end
11255
11565
 
11566
+ # Allows you to retrieve Attachment on a Purchase Order by Filename
11567
+ # @param xero_tenant_id [String] Xero identifier for Tenant
11568
+ # @param purchase_order_id [String] Unique identifier for Purchase Order object
11569
+ # @param file_name [String] Name of the attachment
11570
+ # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
11571
+ # @param [Hash] opts the optional parameters
11572
+ # @return [File]
11573
+ def get_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, content_type, opts = {})
11574
+ data, _status_code, _headers = get_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, content_type, opts)
11575
+ data
11576
+ end
11577
+
11578
+ # Allows you to retrieve Attachment on a Purchase Order by Filename
11579
+ # @param xero_tenant_id [String] Xero identifier for Tenant
11580
+ # @param purchase_order_id [String] Unique identifier for Purchase Order object
11581
+ # @param file_name [String] Name of the attachment
11582
+ # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
11583
+ # @param [Hash] opts the optional parameters
11584
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
11585
+ def get_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, content_type, opts = {})
11586
+ if @api_client.config.debugging
11587
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachment_by_file_name ...'
11588
+ end
11589
+ # verify the required parameter 'xero_tenant_id' is set
11590
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
11591
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_purchase_order_attachment_by_file_name"
11592
+ end
11593
+ # verify the required parameter 'purchase_order_id' is set
11594
+ if @api_client.config.client_side_validation && purchase_order_id.nil?
11595
+ fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_attachment_by_file_name"
11596
+ end
11597
+ # verify the required parameter 'file_name' is set
11598
+ if @api_client.config.client_side_validation && file_name.nil?
11599
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling AccountingApi.get_purchase_order_attachment_by_file_name"
11600
+ end
11601
+ # verify the required parameter 'content_type' is set
11602
+ if @api_client.config.client_side_validation && content_type.nil?
11603
+ fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_purchase_order_attachment_by_file_name"
11604
+ end
11605
+ # resource path
11606
+ local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
11607
+
11608
+ # camelize keys of incoming `where` opts
11609
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11610
+
11611
+ # query parameters
11612
+ query_params = opts[:query_params] || {}
11613
+
11614
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11615
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11616
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11617
+
11618
+ # header parameters
11619
+ header_params = opts[:header_params] || {}
11620
+ # HTTP header 'Accept' (if needed)
11621
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
11622
+ header_params[:'xero-tenant-id'] = xero_tenant_id
11623
+ header_params[:'contentType'] = content_type
11624
+
11625
+ # form parameters
11626
+ form_params = opts[:form_params] || {}
11627
+
11628
+ # http body (model)
11629
+ post_body = opts[:body]
11630
+
11631
+ # return_type
11632
+ return_type = opts[:return_type] || 'File'
11633
+
11634
+ # auth_names
11635
+ auth_names = opts[:auth_names] || ['OAuth2']
11636
+
11637
+ new_options = opts.merge(
11638
+ :header_params => header_params,
11639
+ :query_params => query_params,
11640
+ :form_params => form_params,
11641
+ :body => post_body,
11642
+ :auth_names => auth_names,
11643
+ :return_type => return_type
11644
+ )
11645
+
11646
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11647
+ if @api_client.config.debugging
11648
+ @api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11649
+ end
11650
+ return data, status_code, headers
11651
+ end
11652
+
11653
+ # Allows you to retrieve specific Attachment on purchase order
11654
+ # @param xero_tenant_id [String] Xero identifier for Tenant
11655
+ # @param purchase_order_id [String] Unique identifier for Purchase Order object
11656
+ # @param attachment_id [String] Unique identifier for Attachment object
11657
+ # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
11658
+ # @param [Hash] opts the optional parameters
11659
+ # @return [File]
11660
+ def get_purchase_order_attachment_by_id(xero_tenant_id, purchase_order_id, attachment_id, content_type, opts = {})
11661
+ data, _status_code, _headers = get_purchase_order_attachment_by_id_with_http_info(xero_tenant_id, purchase_order_id, attachment_id, content_type, opts)
11662
+ data
11663
+ end
11664
+
11665
+ # Allows you to retrieve specific Attachment on purchase order
11666
+ # @param xero_tenant_id [String] Xero identifier for Tenant
11667
+ # @param purchase_order_id [String] Unique identifier for Purchase Order object
11668
+ # @param attachment_id [String] Unique identifier for Attachment object
11669
+ # @param content_type [String] The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
11670
+ # @param [Hash] opts the optional parameters
11671
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
11672
+ def get_purchase_order_attachment_by_id_with_http_info(xero_tenant_id, purchase_order_id, attachment_id, content_type, opts = {})
11673
+ if @api_client.config.debugging
11674
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachment_by_id ...'
11675
+ end
11676
+ # verify the required parameter 'xero_tenant_id' is set
11677
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
11678
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_purchase_order_attachment_by_id"
11679
+ end
11680
+ # verify the required parameter 'purchase_order_id' is set
11681
+ if @api_client.config.client_side_validation && purchase_order_id.nil?
11682
+ fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_attachment_by_id"
11683
+ end
11684
+ # verify the required parameter 'attachment_id' is set
11685
+ if @api_client.config.client_side_validation && attachment_id.nil?
11686
+ fail ArgumentError, "Missing the required parameter 'attachment_id' when calling AccountingApi.get_purchase_order_attachment_by_id"
11687
+ end
11688
+ # verify the required parameter 'content_type' is set
11689
+ if @api_client.config.client_side_validation && content_type.nil?
11690
+ fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_purchase_order_attachment_by_id"
11691
+ end
11692
+ # resource path
11693
+ local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments/{AttachmentID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s)
11694
+
11695
+ # camelize keys of incoming `where` opts
11696
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11697
+
11698
+ # query parameters
11699
+ query_params = opts[:query_params] || {}
11700
+
11701
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11702
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11703
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11704
+
11705
+ # header parameters
11706
+ header_params = opts[:header_params] || {}
11707
+ # HTTP header 'Accept' (if needed)
11708
+ header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
11709
+ header_params[:'xero-tenant-id'] = xero_tenant_id
11710
+ header_params[:'contentType'] = content_type
11711
+
11712
+ # form parameters
11713
+ form_params = opts[:form_params] || {}
11714
+
11715
+ # http body (model)
11716
+ post_body = opts[:body]
11717
+
11718
+ # return_type
11719
+ return_type = opts[:return_type] || 'File'
11720
+
11721
+ # auth_names
11722
+ auth_names = opts[:auth_names] || ['OAuth2']
11723
+
11724
+ new_options = opts.merge(
11725
+ :header_params => header_params,
11726
+ :query_params => query_params,
11727
+ :form_params => form_params,
11728
+ :body => post_body,
11729
+ :auth_names => auth_names,
11730
+ :return_type => return_type
11731
+ )
11732
+
11733
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11734
+ if @api_client.config.debugging
11735
+ @api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11736
+ end
11737
+ return data, status_code, headers
11738
+ end
11739
+
11740
+ # Allows you to retrieve attachments for purchase orders
11741
+ # @param xero_tenant_id [String] Xero identifier for Tenant
11742
+ # @param purchase_order_id [String] Unique identifier for Purchase Orders object
11743
+ # @param [Hash] opts the optional parameters
11744
+ # @return [Attachments]
11745
+ def get_purchase_order_attachments(xero_tenant_id, purchase_order_id, opts = {})
11746
+ data, _status_code, _headers = get_purchase_order_attachments_with_http_info(xero_tenant_id, purchase_order_id, opts)
11747
+ data
11748
+ end
11749
+
11750
+ # Allows you to retrieve attachments for purchase orders
11751
+ # @param xero_tenant_id [String] Xero identifier for Tenant
11752
+ # @param purchase_order_id [String] Unique identifier for Purchase Orders object
11753
+ # @param [Hash] opts the optional parameters
11754
+ # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
11755
+ def get_purchase_order_attachments_with_http_info(xero_tenant_id, purchase_order_id, opts = {})
11756
+ if @api_client.config.debugging
11757
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_attachments ...'
11758
+ end
11759
+ # verify the required parameter 'xero_tenant_id' is set
11760
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
11761
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_purchase_order_attachments"
11762
+ end
11763
+ # verify the required parameter 'purchase_order_id' is set
11764
+ if @api_client.config.client_side_validation && purchase_order_id.nil?
11765
+ fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_attachments"
11766
+ end
11767
+ # resource path
11768
+ local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s)
11769
+
11770
+ # camelize keys of incoming `where` opts
11771
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
11772
+
11773
+ # query parameters
11774
+ query_params = opts[:query_params] || {}
11775
+
11776
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
11777
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
11778
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
11779
+
11780
+ # header parameters
11781
+ header_params = opts[:header_params] || {}
11782
+ # HTTP header 'Accept' (if needed)
11783
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
11784
+ header_params[:'xero-tenant-id'] = xero_tenant_id
11785
+
11786
+ # form parameters
11787
+ form_params = opts[:form_params] || {}
11788
+
11789
+ # http body (model)
11790
+ post_body = opts[:body]
11791
+
11792
+ # return_type
11793
+ return_type = opts[:return_type] || 'Attachments'
11794
+
11795
+ # auth_names
11796
+ auth_names = opts[:auth_names] || ['OAuth2']
11797
+
11798
+ new_options = opts.merge(
11799
+ :header_params => header_params,
11800
+ :query_params => query_params,
11801
+ :form_params => form_params,
11802
+ :body => post_body,
11803
+ :auth_names => auth_names,
11804
+ :return_type => return_type
11805
+ )
11806
+
11807
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11808
+ if @api_client.config.debugging
11809
+ @api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11810
+ end
11811
+ return data, status_code, headers
11812
+ end
11813
+
11256
11814
  # Allows you to retrieve a specified purchase orders
11257
11815
  # @param xero_tenant_id [String] Xero identifier for Tenant
11258
11816
  # @param purchase_order_number [String] Unique identifier for a PurchaseOrder
@@ -11320,7 +11878,7 @@ module XeroRuby
11320
11878
  :return_type => return_type
11321
11879
  )
11322
11880
 
11323
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11881
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11324
11882
  if @api_client.config.debugging
11325
11883
  @api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_by_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11326
11884
  end
@@ -11394,7 +11952,7 @@ module XeroRuby
11394
11952
  :return_type => return_type
11395
11953
  )
11396
11954
 
11397
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
11955
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11398
11956
  if @api_client.config.debugging
11399
11957
  @api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11400
11958
  end
@@ -11484,7 +12042,7 @@ module XeroRuby
11484
12042
  :return_type => return_type
11485
12043
  )
11486
12044
 
11487
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12045
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11488
12046
  if @api_client.config.debugging
11489
12047
  @api_client.config.logger.debug "API called: AccountingApi#get_purchase_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11490
12048
  end
@@ -11558,7 +12116,7 @@ module XeroRuby
11558
12116
  :return_type => return_type
11559
12117
  )
11560
12118
 
11561
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12119
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11562
12120
  if @api_client.config.debugging
11563
12121
  @api_client.config.logger.debug "API called: AccountingApi#get_quote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11564
12122
  end
@@ -11632,7 +12190,7 @@ module XeroRuby
11632
12190
  :return_type => return_type
11633
12191
  )
11634
12192
 
11635
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12193
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11636
12194
  if @api_client.config.debugging
11637
12195
  @api_client.config.logger.debug "API called: AccountingApi#get_quote_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11638
12196
  end
@@ -11719,7 +12277,7 @@ module XeroRuby
11719
12277
  :return_type => return_type
11720
12278
  )
11721
12279
 
11722
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12280
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11723
12281
  if @api_client.config.debugging
11724
12282
  @api_client.config.logger.debug "API called: AccountingApi#get_quote_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11725
12283
  end
@@ -11806,7 +12364,7 @@ module XeroRuby
11806
12364
  :return_type => return_type
11807
12365
  )
11808
12366
 
11809
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12367
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11810
12368
  if @api_client.config.debugging
11811
12369
  @api_client.config.logger.debug "API called: AccountingApi#get_quote_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11812
12370
  end
@@ -11880,7 +12438,7 @@ module XeroRuby
11880
12438
  :return_type => return_type
11881
12439
  )
11882
12440
 
11883
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12441
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11884
12442
  if @api_client.config.debugging
11885
12443
  @api_client.config.logger.debug "API called: AccountingApi#get_quote_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11886
12444
  end
@@ -11954,7 +12512,7 @@ module XeroRuby
11954
12512
  :return_type => return_type
11955
12513
  )
11956
12514
 
11957
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12515
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
11958
12516
  if @api_client.config.debugging
11959
12517
  @api_client.config.logger.debug "API called: AccountingApi#get_quote_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
11960
12518
  end
@@ -12052,7 +12610,7 @@ module XeroRuby
12052
12610
  :return_type => return_type
12053
12611
  )
12054
12612
 
12055
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12613
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12056
12614
  if @api_client.config.debugging
12057
12615
  @api_client.config.logger.debug "API called: AccountingApi#get_quotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12058
12616
  end
@@ -12129,7 +12687,7 @@ module XeroRuby
12129
12687
  :return_type => return_type
12130
12688
  )
12131
12689
 
12132
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12690
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12133
12691
  if @api_client.config.debugging
12134
12692
  @api_client.config.logger.debug "API called: AccountingApi#get_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12135
12693
  end
@@ -12216,7 +12774,7 @@ module XeroRuby
12216
12774
  :return_type => return_type
12217
12775
  )
12218
12776
 
12219
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12777
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12220
12778
  if @api_client.config.debugging
12221
12779
  @api_client.config.logger.debug "API called: AccountingApi#get_receipt_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12222
12780
  end
@@ -12303,7 +12861,7 @@ module XeroRuby
12303
12861
  :return_type => return_type
12304
12862
  )
12305
12863
 
12306
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12864
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12307
12865
  if @api_client.config.debugging
12308
12866
  @api_client.config.logger.debug "API called: AccountingApi#get_receipt_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12309
12867
  end
@@ -12377,7 +12935,7 @@ module XeroRuby
12377
12935
  :return_type => return_type
12378
12936
  )
12379
12937
 
12380
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
12938
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12381
12939
  if @api_client.config.debugging
12382
12940
  @api_client.config.logger.debug "API called: AccountingApi#get_receipt_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12383
12941
  end
@@ -12451,7 +13009,7 @@ module XeroRuby
12451
13009
  :return_type => return_type
12452
13010
  )
12453
13011
 
12454
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13012
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12455
13013
  if @api_client.config.debugging
12456
13014
  @api_client.config.logger.debug "API called: AccountingApi#get_receipt_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12457
13015
  end
@@ -12531,7 +13089,7 @@ module XeroRuby
12531
13089
  :return_type => return_type
12532
13090
  )
12533
13091
 
12534
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13092
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12535
13093
  if @api_client.config.debugging
12536
13094
  @api_client.config.logger.debug "API called: AccountingApi#get_receipts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12537
13095
  end
@@ -12605,7 +13163,7 @@ module XeroRuby
12605
13163
  :return_type => return_type
12606
13164
  )
12607
13165
 
12608
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13166
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12609
13167
  if @api_client.config.debugging
12610
13168
  @api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12611
13169
  end
@@ -12692,7 +13250,7 @@ module XeroRuby
12692
13250
  :return_type => return_type
12693
13251
  )
12694
13252
 
12695
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13253
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12696
13254
  if @api_client.config.debugging
12697
13255
  @api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12698
13256
  end
@@ -12779,7 +13337,7 @@ module XeroRuby
12779
13337
  :return_type => return_type
12780
13338
  )
12781
13339
 
12782
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13340
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12783
13341
  if @api_client.config.debugging
12784
13342
  @api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice_attachment_by_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12785
13343
  end
@@ -12853,7 +13411,7 @@ module XeroRuby
12853
13411
  :return_type => return_type
12854
13412
  )
12855
13413
 
12856
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13414
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12857
13415
  if @api_client.config.debugging
12858
13416
  @api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice_attachments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12859
13417
  end
@@ -12927,7 +13485,7 @@ module XeroRuby
12927
13485
  :return_type => return_type
12928
13486
  )
12929
13487
 
12930
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13488
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
12931
13489
  if @api_client.config.debugging
12932
13490
  @api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoice_history\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
12933
13491
  end
@@ -13001,7 +13559,7 @@ module XeroRuby
13001
13559
  :return_type => return_type
13002
13560
  )
13003
13561
 
13004
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13562
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13005
13563
  if @api_client.config.debugging
13006
13564
  @api_client.config.logger.debug "API called: AccountingApi#get_repeating_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13007
13565
  end
@@ -13085,7 +13643,7 @@ module XeroRuby
13085
13643
  :return_type => return_type
13086
13644
  )
13087
13645
 
13088
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13646
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13089
13647
  if @api_client.config.debugging
13090
13648
  @api_client.config.logger.debug "API called: AccountingApi#get_report_aged_payables_by_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13091
13649
  end
@@ -13169,7 +13727,7 @@ module XeroRuby
13169
13727
  :return_type => return_type
13170
13728
  )
13171
13729
 
13172
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13730
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13173
13731
  if @api_client.config.debugging
13174
13732
  @api_client.config.logger.debug "API called: AccountingApi#get_report_aged_receivables_by_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13175
13733
  end
@@ -13243,7 +13801,7 @@ module XeroRuby
13243
13801
  :return_type => return_type
13244
13802
  )
13245
13803
 
13246
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13804
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13247
13805
  if @api_client.config.debugging
13248
13806
  @api_client.config.logger.debug "API called: AccountingApi#get_report_ba_sor_gst\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13249
13807
  end
@@ -13311,7 +13869,7 @@ module XeroRuby
13311
13869
  :return_type => return_type
13312
13870
  )
13313
13871
 
13314
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13872
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13315
13873
  if @api_client.config.debugging
13316
13874
  @api_client.config.logger.debug "API called: AccountingApi#get_report_ba_sor_gst_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13317
13875
  end
@@ -13321,7 +13879,7 @@ module XeroRuby
13321
13879
  # Allows you to retrieve report for BalanceSheet
13322
13880
  # @param xero_tenant_id [String] Xero identifier for Tenant
13323
13881
  # @param [Hash] opts the optional parameters
13324
- # @option opts [String] :date The date of the Balance Sheet report
13882
+ # @option opts [Date] :date The date of the Balance Sheet report
13325
13883
  # @option opts [Integer] :periods The number of periods for the Balance Sheet report
13326
13884
  # @option opts [String] :timeframe The period size to compare to (MONTH, QUARTER, YEAR)
13327
13885
  # @option opts [String] :tracking_option_id1 The tracking option 1 for the Balance Sheet report
@@ -13337,7 +13895,7 @@ module XeroRuby
13337
13895
  # Allows you to retrieve report for BalanceSheet
13338
13896
  # @param xero_tenant_id [String] Xero identifier for Tenant
13339
13897
  # @param [Hash] opts the optional parameters
13340
- # @option opts [String] :date The date of the Balance Sheet report
13898
+ # @option opts [Date] :date The date of the Balance Sheet report
13341
13899
  # @option opts [Integer] :periods The number of periods for the Balance Sheet report
13342
13900
  # @option opts [String] :timeframe The period size to compare to (MONTH, QUARTER, YEAR)
13343
13901
  # @option opts [String] :tracking_option_id1 The tracking option 1 for the Balance Sheet report
@@ -13404,7 +13962,7 @@ module XeroRuby
13404
13962
  :return_type => return_type
13405
13963
  )
13406
13964
 
13407
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
13965
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13408
13966
  if @api_client.config.debugging
13409
13967
  @api_client.config.logger.debug "API called: AccountingApi#get_report_balance_sheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13410
13968
  end
@@ -13478,7 +14036,7 @@ module XeroRuby
13478
14036
  :return_type => return_type
13479
14037
  )
13480
14038
 
13481
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14039
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13482
14040
  if @api_client.config.debugging
13483
14041
  @api_client.config.logger.debug "API called: AccountingApi#get_report_bank_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13484
14042
  end
@@ -13555,7 +14113,7 @@ module XeroRuby
13555
14113
  :return_type => return_type
13556
14114
  )
13557
14115
 
13558
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14116
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13559
14117
  if @api_client.config.debugging
13560
14118
  @api_client.config.logger.debug "API called: AccountingApi#get_report_budget_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13561
14119
  end
@@ -13626,7 +14184,7 @@ module XeroRuby
13626
14184
  :return_type => return_type
13627
14185
  )
13628
14186
 
13629
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14187
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13630
14188
  if @api_client.config.debugging
13631
14189
  @api_client.config.logger.debug "API called: AccountingApi#get_report_executive_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13632
14190
  end
@@ -13728,7 +14286,7 @@ module XeroRuby
13728
14286
  :return_type => return_type
13729
14287
  )
13730
14288
 
13731
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14289
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13732
14290
  if @api_client.config.debugging
13733
14291
  @api_client.config.logger.debug "API called: AccountingApi#get_report_profit_and_loss\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13734
14292
  end
@@ -13799,7 +14357,7 @@ module XeroRuby
13799
14357
  :return_type => return_type
13800
14358
  )
13801
14359
 
13802
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14360
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13803
14361
  if @api_client.config.debugging
13804
14362
  @api_client.config.logger.debug "API called: AccountingApi#get_report_ten_ninety_nine\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13805
14363
  end
@@ -13873,7 +14431,7 @@ module XeroRuby
13873
14431
  :return_type => return_type
13874
14432
  )
13875
14433
 
13876
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14434
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13877
14435
  if @api_client.config.debugging
13878
14436
  @api_client.config.logger.debug "API called: AccountingApi#get_report_trial_balance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13879
14437
  end
@@ -13950,7 +14508,7 @@ module XeroRuby
13950
14508
  :return_type => return_type
13951
14509
  )
13952
14510
 
13953
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14511
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
13954
14512
  if @api_client.config.debugging
13955
14513
  @api_client.config.logger.debug "API called: AccountingApi#get_tax_rates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
13956
14514
  end
@@ -14027,7 +14585,7 @@ module XeroRuby
14027
14585
  :return_type => return_type
14028
14586
  )
14029
14587
 
14030
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14588
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
14031
14589
  if @api_client.config.debugging
14032
14590
  @api_client.config.logger.debug "API called: AccountingApi#get_tracking_categories\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14033
14591
  end
@@ -14101,7 +14659,7 @@ module XeroRuby
14101
14659
  :return_type => return_type
14102
14660
  )
14103
14661
 
14104
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14662
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
14105
14663
  if @api_client.config.debugging
14106
14664
  @api_client.config.logger.debug "API called: AccountingApi#get_tracking_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14107
14665
  end
@@ -14175,7 +14733,7 @@ module XeroRuby
14175
14733
  :return_type => return_type
14176
14734
  )
14177
14735
 
14178
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14736
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
14179
14737
  if @api_client.config.debugging
14180
14738
  @api_client.config.logger.debug "API called: AccountingApi#get_user\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14181
14739
  end
@@ -14252,13 +14810,89 @@ module XeroRuby
14252
14810
  :return_type => return_type
14253
14811
  )
14254
14812
 
14255
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
14813
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, "AccountingApi", new_options)
14256
14814
  if @api_client.config.debugging
14257
14815
  @api_client.config.logger.debug "API called: AccountingApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14258
14816
  end
14259
14817
  return data, status_code, headers
14260
14818
  end
14261
14819
 
14820
+ # Allows you to set the chart of accounts, the conversion date and conversion balances
14821
+ # @param xero_tenant_id [String] Xero identifier for Tenant
14822
+ # @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
14823
+ # @param [Hash] opts the optional parameters
14824
+ # @return [ImportSummaryObject]
14825
+ def post_setup(xero_tenant_id, setup, opts = {})
14826
+ data, _status_code, _headers = post_setup_with_http_info(xero_tenant_id, setup, opts)
14827
+ data
14828
+ end
14829
+
14830
+ # Allows you to set the chart of accounts, the conversion date and conversion balances
14831
+ # @param xero_tenant_id [String] Xero identifier for Tenant
14832
+ # @param setup [Setup] Object including an accounts array, a conversion balances array and a conversion date object in body of request
14833
+ # @param [Hash] opts the optional parameters
14834
+ # @return [Array<(ImportSummaryObject, Integer, Hash)>] ImportSummaryObject data, response status code and response headers
14835
+ def post_setup_with_http_info(xero_tenant_id, setup, opts = {})
14836
+ if @api_client.config.debugging
14837
+ @api_client.config.logger.debug 'Calling API: AccountingApi.post_setup ...'
14838
+ end
14839
+ # verify the required parameter 'xero_tenant_id' is set
14840
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
14841
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.post_setup"
14842
+ end
14843
+ # verify the required parameter 'setup' is set
14844
+ if @api_client.config.client_side_validation && setup.nil?
14845
+ fail ArgumentError, "Missing the required parameter 'setup' when calling AccountingApi.post_setup"
14846
+ end
14847
+ # resource path
14848
+ local_var_path = '/Setup'
14849
+
14850
+ # camelize keys of incoming `where` opts
14851
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
14852
+
14853
+ # query parameters
14854
+ query_params = opts[:query_params] || {}
14855
+
14856
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
14857
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
14858
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
14859
+
14860
+ # header parameters
14861
+ header_params = opts[:header_params] || {}
14862
+ # HTTP header 'Accept' (if needed)
14863
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14864
+ # HTTP header 'Content-Type'
14865
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
14866
+ header_params[:'xero-tenant-id'] = xero_tenant_id
14867
+
14868
+ # form parameters
14869
+ form_params = opts[:form_params] || {}
14870
+
14871
+ # http body (model)
14872
+ post_body = opts[:body] || @api_client.object_to_http_body(setup)
14873
+
14874
+ # return_type
14875
+ return_type = opts[:return_type] || 'ImportSummaryObject'
14876
+
14877
+ # auth_names
14878
+ auth_names = opts[:auth_names] || ['OAuth2']
14879
+
14880
+ new_options = opts.merge(
14881
+ :header_params => header_params,
14882
+ :query_params => query_params,
14883
+ :form_params => form_params,
14884
+ :body => post_body,
14885
+ :auth_names => auth_names,
14886
+ :return_type => return_type
14887
+ )
14888
+
14889
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14890
+ if @api_client.config.debugging
14891
+ @api_client.config.logger.debug "API called: AccountingApi#post_setup\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14892
+ end
14893
+ return data, status_code, headers
14894
+ end
14895
+
14262
14896
  # Allows you to update a chart of accounts
14263
14897
  # @param xero_tenant_id [String] Xero identifier for Tenant
14264
14898
  # @param account_id [String] Unique identifier for retrieving single object
@@ -14334,7 +14968,7 @@ module XeroRuby
14334
14968
  :return_type => return_type
14335
14969
  )
14336
14970
 
14337
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
14971
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14338
14972
  if @api_client.config.debugging
14339
14973
  @api_client.config.logger.debug "API called: AccountingApi#update_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14340
14974
  end
@@ -14422,7 +15056,7 @@ module XeroRuby
14422
15056
  :return_type => return_type
14423
15057
  )
14424
15058
 
14425
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15059
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14426
15060
  if @api_client.config.debugging
14427
15061
  @api_client.config.logger.debug "API called: AccountingApi#update_account_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14428
15062
  end
@@ -14507,7 +15141,7 @@ module XeroRuby
14507
15141
  :return_type => return_type
14508
15142
  )
14509
15143
 
14510
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15144
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14511
15145
  if @api_client.config.debugging
14512
15146
  @api_client.config.logger.debug "API called: AccountingApi#update_bank_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14513
15147
  end
@@ -14595,7 +15229,7 @@ module XeroRuby
14595
15229
  :return_type => return_type
14596
15230
  )
14597
15231
 
14598
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15232
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14599
15233
  if @api_client.config.debugging
14600
15234
  @api_client.config.logger.debug "API called: AccountingApi#update_bank_transaction_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14601
15235
  end
@@ -14681,7 +15315,7 @@ module XeroRuby
14681
15315
  :return_type => return_type
14682
15316
  )
14683
15317
 
14684
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15318
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14685
15319
  if @api_client.config.debugging
14686
15320
  @api_client.config.logger.debug "API called: AccountingApi#update_bank_transfer_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14687
15321
  end
@@ -14761,7 +15395,7 @@ module XeroRuby
14761
15395
  :return_type => return_type
14762
15396
  )
14763
15397
 
14764
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15398
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14765
15399
  if @api_client.config.debugging
14766
15400
  @api_client.config.logger.debug "API called: AccountingApi#update_contact\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14767
15401
  end
@@ -14847,7 +15481,7 @@ module XeroRuby
14847
15481
  :return_type => return_type
14848
15482
  )
14849
15483
 
14850
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15484
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14851
15485
  if @api_client.config.debugging
14852
15486
  @api_client.config.logger.debug "API called: AccountingApi#update_contact_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14853
15487
  end
@@ -14929,7 +15563,7 @@ module XeroRuby
14929
15563
  :return_type => return_type
14930
15564
  )
14931
15565
 
14932
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15566
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
14933
15567
  if @api_client.config.debugging
14934
15568
  @api_client.config.logger.debug "API called: AccountingApi#update_contact_group\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
14935
15569
  end
@@ -15014,7 +15648,7 @@ module XeroRuby
15014
15648
  :return_type => return_type
15015
15649
  )
15016
15650
 
15017
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15651
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15018
15652
  if @api_client.config.debugging
15019
15653
  @api_client.config.logger.debug "API called: AccountingApi#update_credit_note\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15020
15654
  end
@@ -15102,7 +15736,7 @@ module XeroRuby
15102
15736
  :return_type => return_type
15103
15737
  )
15104
15738
 
15105
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15739
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15106
15740
  if @api_client.config.debugging
15107
15741
  @api_client.config.logger.debug "API called: AccountingApi#update_credit_note_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15108
15742
  end
@@ -15184,7 +15818,7 @@ module XeroRuby
15184
15818
  :return_type => return_type
15185
15819
  )
15186
15820
 
15187
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15821
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15188
15822
  if @api_client.config.debugging
15189
15823
  @api_client.config.logger.debug "API called: AccountingApi#update_expense_claim\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15190
15824
  end
@@ -15269,7 +15903,7 @@ module XeroRuby
15269
15903
  :return_type => return_type
15270
15904
  )
15271
15905
 
15272
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15906
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15273
15907
  if @api_client.config.debugging
15274
15908
  @api_client.config.logger.debug "API called: AccountingApi#update_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15275
15909
  end
@@ -15357,7 +15991,7 @@ module XeroRuby
15357
15991
  :return_type => return_type
15358
15992
  )
15359
15993
 
15360
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
15994
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15361
15995
  if @api_client.config.debugging
15362
15996
  @api_client.config.logger.debug "API called: AccountingApi#update_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15363
15997
  end
@@ -15442,7 +16076,7 @@ module XeroRuby
15442
16076
  :return_type => return_type
15443
16077
  )
15444
16078
 
15445
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16079
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15446
16080
  if @api_client.config.debugging
15447
16081
  @api_client.config.logger.debug "API called: AccountingApi#update_item\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15448
16082
  end
@@ -15524,7 +16158,7 @@ module XeroRuby
15524
16158
  :return_type => return_type
15525
16159
  )
15526
16160
 
15527
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16161
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15528
16162
  if @api_client.config.debugging
15529
16163
  @api_client.config.logger.debug "API called: AccountingApi#update_linked_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15530
16164
  end
@@ -15606,7 +16240,7 @@ module XeroRuby
15606
16240
  :return_type => return_type
15607
16241
  )
15608
16242
 
15609
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16243
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15610
16244
  if @api_client.config.debugging
15611
16245
  @api_client.config.logger.debug "API called: AccountingApi#update_manual_journal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15612
16246
  end
@@ -15694,7 +16328,7 @@ module XeroRuby
15694
16328
  :return_type => return_type
15695
16329
  )
15696
16330
 
15697
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16331
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15698
16332
  if @api_client.config.debugging
15699
16333
  @api_client.config.logger.debug "API called: AccountingApi#update_manual_journal_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15700
16334
  end
@@ -15705,7 +16339,7 @@ module XeroRuby
15705
16339
  # @param xero_tenant_id [String] Xero identifier for Tenant
15706
16340
  # @param bank_transactions [BankTransactions]
15707
16341
  # @param [Hash] opts the optional parameters
15708
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16342
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
15709
16343
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
15710
16344
  # @return [BankTransactions]
15711
16345
  def update_or_create_bank_transactions(xero_tenant_id, bank_transactions, opts = {})
@@ -15717,7 +16351,7 @@ module XeroRuby
15717
16351
  # @param xero_tenant_id [String] Xero identifier for Tenant
15718
16352
  # @param bank_transactions [BankTransactions]
15719
16353
  # @param [Hash] opts the optional parameters
15720
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16354
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
15721
16355
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
15722
16356
  # @return [Array<(BankTransactions, Integer, Hash)>] BankTransactions data, response status code and response headers
15723
16357
  def update_or_create_bank_transactions_with_http_info(xero_tenant_id, bank_transactions, opts = {})
@@ -15776,7 +16410,7 @@ module XeroRuby
15776
16410
  :return_type => return_type
15777
16411
  )
15778
16412
 
15779
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16413
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15780
16414
  if @api_client.config.debugging
15781
16415
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_bank_transactions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15782
16416
  end
@@ -15787,7 +16421,7 @@ module XeroRuby
15787
16421
  # @param xero_tenant_id [String] Xero identifier for Tenant
15788
16422
  # @param contacts [Contacts]
15789
16423
  # @param [Hash] opts the optional parameters
15790
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16424
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
15791
16425
  # @return [Contacts]
15792
16426
  def update_or_create_contacts(xero_tenant_id, contacts, opts = {})
15793
16427
  data, _status_code, _headers = update_or_create_contacts_with_http_info(xero_tenant_id, contacts, opts)
@@ -15798,7 +16432,7 @@ module XeroRuby
15798
16432
  # @param xero_tenant_id [String] Xero identifier for Tenant
15799
16433
  # @param contacts [Contacts]
15800
16434
  # @param [Hash] opts the optional parameters
15801
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16435
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
15802
16436
  # @return [Array<(Contacts, Integer, Hash)>] Contacts data, response status code and response headers
15803
16437
  def update_or_create_contacts_with_http_info(xero_tenant_id, contacts, opts = {})
15804
16438
  if @api_client.config.debugging
@@ -15855,7 +16489,7 @@ module XeroRuby
15855
16489
  :return_type => return_type
15856
16490
  )
15857
16491
 
15858
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16492
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15859
16493
  if @api_client.config.debugging
15860
16494
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_contacts\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15861
16495
  end
@@ -15866,7 +16500,7 @@ module XeroRuby
15866
16500
  # @param xero_tenant_id [String] Xero identifier for Tenant
15867
16501
  # @param credit_notes [CreditNotes] an array of Credit Notes with a single CreditNote object.
15868
16502
  # @param [Hash] opts the optional parameters
15869
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16503
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
15870
16504
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
15871
16505
  # @return [CreditNotes]
15872
16506
  def update_or_create_credit_notes(xero_tenant_id, credit_notes, opts = {})
@@ -15878,7 +16512,7 @@ module XeroRuby
15878
16512
  # @param xero_tenant_id [String] Xero identifier for Tenant
15879
16513
  # @param credit_notes [CreditNotes] an array of Credit Notes with a single CreditNote object.
15880
16514
  # @param [Hash] opts the optional parameters
15881
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16515
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
15882
16516
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
15883
16517
  # @return [Array<(CreditNotes, Integer, Hash)>] CreditNotes data, response status code and response headers
15884
16518
  def update_or_create_credit_notes_with_http_info(xero_tenant_id, credit_notes, opts = {})
@@ -15937,7 +16571,7 @@ module XeroRuby
15937
16571
  :return_type => return_type
15938
16572
  )
15939
16573
 
15940
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16574
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
15941
16575
  if @api_client.config.debugging
15942
16576
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_credit_notes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
15943
16577
  end
@@ -15948,7 +16582,7 @@ module XeroRuby
15948
16582
  # @param xero_tenant_id [String] Xero identifier for Tenant
15949
16583
  # @param employees [Employees] Employees with array of Employee object in body of request
15950
16584
  # @param [Hash] opts the optional parameters
15951
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16585
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
15952
16586
  # @return [Employees]
15953
16587
  def update_or_create_employees(xero_tenant_id, employees, opts = {})
15954
16588
  data, _status_code, _headers = update_or_create_employees_with_http_info(xero_tenant_id, employees, opts)
@@ -15959,7 +16593,7 @@ module XeroRuby
15959
16593
  # @param xero_tenant_id [String] Xero identifier for Tenant
15960
16594
  # @param employees [Employees] Employees with array of Employee object in body of request
15961
16595
  # @param [Hash] opts the optional parameters
15962
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16596
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
15963
16597
  # @return [Array<(Employees, Integer, Hash)>] Employees data, response status code and response headers
15964
16598
  def update_or_create_employees_with_http_info(xero_tenant_id, employees, opts = {})
15965
16599
  if @api_client.config.debugging
@@ -16016,7 +16650,7 @@ module XeroRuby
16016
16650
  :return_type => return_type
16017
16651
  )
16018
16652
 
16019
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16653
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16020
16654
  if @api_client.config.debugging
16021
16655
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_employees\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16022
16656
  end
@@ -16027,7 +16661,7 @@ module XeroRuby
16027
16661
  # @param xero_tenant_id [String] Xero identifier for Tenant
16028
16662
  # @param invoices [Invoices]
16029
16663
  # @param [Hash] opts the optional parameters
16030
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16664
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
16031
16665
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16032
16666
  # @return [Invoices]
16033
16667
  def update_or_create_invoices(xero_tenant_id, invoices, opts = {})
@@ -16039,7 +16673,7 @@ module XeroRuby
16039
16673
  # @param xero_tenant_id [String] Xero identifier for Tenant
16040
16674
  # @param invoices [Invoices]
16041
16675
  # @param [Hash] opts the optional parameters
16042
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16676
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16043
16677
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16044
16678
  # @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
16045
16679
  def update_or_create_invoices_with_http_info(xero_tenant_id, invoices, opts = {})
@@ -16098,7 +16732,7 @@ module XeroRuby
16098
16732
  :return_type => return_type
16099
16733
  )
16100
16734
 
16101
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16735
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16102
16736
  if @api_client.config.debugging
16103
16737
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16104
16738
  end
@@ -16109,7 +16743,7 @@ module XeroRuby
16109
16743
  # @param xero_tenant_id [String] Xero identifier for Tenant
16110
16744
  # @param items [Items]
16111
16745
  # @param [Hash] opts the optional parameters
16112
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16746
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
16113
16747
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16114
16748
  # @return [Items]
16115
16749
  def update_or_create_items(xero_tenant_id, items, opts = {})
@@ -16121,7 +16755,7 @@ module XeroRuby
16121
16755
  # @param xero_tenant_id [String] Xero identifier for Tenant
16122
16756
  # @param items [Items]
16123
16757
  # @param [Hash] opts the optional parameters
16124
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16758
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16125
16759
  # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
16126
16760
  # @return [Array<(Items, Integer, Hash)>] Items data, response status code and response headers
16127
16761
  def update_or_create_items_with_http_info(xero_tenant_id, items, opts = {})
@@ -16180,7 +16814,7 @@ module XeroRuby
16180
16814
  :return_type => return_type
16181
16815
  )
16182
16816
 
16183
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16817
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16184
16818
  if @api_client.config.debugging
16185
16819
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_items\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16186
16820
  end
@@ -16191,7 +16825,7 @@ module XeroRuby
16191
16825
  # @param xero_tenant_id [String] Xero identifier for Tenant
16192
16826
  # @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
16193
16827
  # @param [Hash] opts the optional parameters
16194
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16828
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
16195
16829
  # @return [ManualJournals]
16196
16830
  def update_or_create_manual_journals(xero_tenant_id, manual_journals, opts = {})
16197
16831
  data, _status_code, _headers = update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts)
@@ -16202,7 +16836,7 @@ module XeroRuby
16202
16836
  # @param xero_tenant_id [String] Xero identifier for Tenant
16203
16837
  # @param manual_journals [ManualJournals] ManualJournals array with ManualJournal object in body of request
16204
16838
  # @param [Hash] opts the optional parameters
16205
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16839
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16206
16840
  # @return [Array<(ManualJournals, Integer, Hash)>] ManualJournals data, response status code and response headers
16207
16841
  def update_or_create_manual_journals_with_http_info(xero_tenant_id, manual_journals, opts = {})
16208
16842
  if @api_client.config.debugging
@@ -16259,7 +16893,7 @@ module XeroRuby
16259
16893
  :return_type => return_type
16260
16894
  )
16261
16895
 
16262
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16896
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16263
16897
  if @api_client.config.debugging
16264
16898
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_manual_journals\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16265
16899
  end
@@ -16270,7 +16904,7 @@ module XeroRuby
16270
16904
  # @param xero_tenant_id [String] Xero identifier for Tenant
16271
16905
  # @param purchase_orders [PurchaseOrders]
16272
16906
  # @param [Hash] opts the optional parameters
16273
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16907
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
16274
16908
  # @return [PurchaseOrders]
16275
16909
  def update_or_create_purchase_orders(xero_tenant_id, purchase_orders, opts = {})
16276
16910
  data, _status_code, _headers = update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts)
@@ -16281,7 +16915,7 @@ module XeroRuby
16281
16915
  # @param xero_tenant_id [String] Xero identifier for Tenant
16282
16916
  # @param purchase_orders [PurchaseOrders]
16283
16917
  # @param [Hash] opts the optional parameters
16284
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16918
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16285
16919
  # @return [Array<(PurchaseOrders, Integer, Hash)>] PurchaseOrders data, response status code and response headers
16286
16920
  def update_or_create_purchase_orders_with_http_info(xero_tenant_id, purchase_orders, opts = {})
16287
16921
  if @api_client.config.debugging
@@ -16338,7 +16972,7 @@ module XeroRuby
16338
16972
  :return_type => return_type
16339
16973
  )
16340
16974
 
16341
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
16975
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16342
16976
  if @api_client.config.debugging
16343
16977
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_purchase_orders\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16344
16978
  end
@@ -16349,7 +16983,7 @@ module XeroRuby
16349
16983
  # @param xero_tenant_id [String] Xero identifier for Tenant
16350
16984
  # @param quotes [Quotes]
16351
16985
  # @param [Hash] opts the optional parameters
16352
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
16986
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors (default to false)
16353
16987
  # @return [Quotes]
16354
16988
  def update_or_create_quotes(xero_tenant_id, quotes, opts = {})
16355
16989
  data, _status_code, _headers = update_or_create_quotes_with_http_info(xero_tenant_id, quotes, opts)
@@ -16360,7 +16994,7 @@ module XeroRuby
16360
16994
  # @param xero_tenant_id [String] Xero identifier for Tenant
16361
16995
  # @param quotes [Quotes]
16362
16996
  # @param [Hash] opts the optional parameters
16363
- # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
16997
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created objects and any with validation errors
16364
16998
  # @return [Array<(Quotes, Integer, Hash)>] Quotes data, response status code and response headers
16365
16999
  def update_or_create_quotes_with_http_info(xero_tenant_id, quotes, opts = {})
16366
17000
  if @api_client.config.debugging
@@ -16417,7 +17051,7 @@ module XeroRuby
16417
17051
  :return_type => return_type
16418
17052
  )
16419
17053
 
16420
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17054
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16421
17055
  if @api_client.config.debugging
16422
17056
  @api_client.config.logger.debug "API called: AccountingApi#update_or_create_quotes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16423
17057
  end
@@ -16499,13 +17133,101 @@ module XeroRuby
16499
17133
  :return_type => return_type
16500
17134
  )
16501
17135
 
16502
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17136
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16503
17137
  if @api_client.config.debugging
16504
17138
  @api_client.config.logger.debug "API called: AccountingApi#update_purchase_order\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16505
17139
  end
16506
17140
  return data, status_code, headers
16507
17141
  end
16508
17142
 
17143
+ # Allows you to update Attachment on Purchase Order by Filename
17144
+ # @param xero_tenant_id [String] Xero identifier for Tenant
17145
+ # @param purchase_order_id [String] Unique identifier for Purchase Order object
17146
+ # @param file_name [String] Name of the attachment
17147
+ # @param body [String] Byte array of file in body of request
17148
+ # @param [Hash] opts the optional parameters
17149
+ # @return [Attachments]
17150
+ def update_purchase_order_attachment_by_file_name(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
17151
+ data, _status_code, _headers = update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts)
17152
+ data
17153
+ end
17154
+
17155
+ # Allows you to update Attachment on Purchase Order by Filename
17156
+ # @param xero_tenant_id [String] Xero identifier for Tenant
17157
+ # @param purchase_order_id [String] Unique identifier for Purchase Order object
17158
+ # @param file_name [String] Name of the attachment
17159
+ # @param body [String] Byte array of file in body of request
17160
+ # @param [Hash] opts the optional parameters
17161
+ # @return [Array<(Attachments, Integer, Hash)>] Attachments data, response status code and response headers
17162
+ def update_purchase_order_attachment_by_file_name_with_http_info(xero_tenant_id, purchase_order_id, file_name, body, opts = {})
17163
+ if @api_client.config.debugging
17164
+ @api_client.config.logger.debug 'Calling API: AccountingApi.update_purchase_order_attachment_by_file_name ...'
17165
+ end
17166
+ # verify the required parameter 'xero_tenant_id' is set
17167
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
17168
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.update_purchase_order_attachment_by_file_name"
17169
+ end
17170
+ # verify the required parameter 'purchase_order_id' is set
17171
+ if @api_client.config.client_side_validation && purchase_order_id.nil?
17172
+ fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.update_purchase_order_attachment_by_file_name"
17173
+ end
17174
+ # verify the required parameter 'file_name' is set
17175
+ if @api_client.config.client_side_validation && file_name.nil?
17176
+ fail ArgumentError, "Missing the required parameter 'file_name' when calling AccountingApi.update_purchase_order_attachment_by_file_name"
17177
+ end
17178
+ # verify the required parameter 'body' is set
17179
+ if @api_client.config.client_side_validation && body.nil?
17180
+ fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_purchase_order_attachment_by_file_name"
17181
+ end
17182
+ # resource path
17183
+ local_var_path = '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s)
17184
+
17185
+ # camelize keys of incoming `where` opts
17186
+ opts[:'where'] = @api_client.parameterize_where(opts[:'where']) if !opts[:'where'].nil?
17187
+
17188
+ # query parameters
17189
+ query_params = opts[:query_params] || {}
17190
+
17191
+ # XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
17192
+ query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
17193
+ query_params[:'ContactIDs'] = @api_client.build_collection_param(opts[:'contact_ids'], :csv) if !opts[:'contact_ids'].nil?
17194
+
17195
+ # header parameters
17196
+ header_params = opts[:header_params] || {}
17197
+ # HTTP header 'Accept' (if needed)
17198
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
17199
+ # HTTP header 'Content-Type'
17200
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/octet-stream'])
17201
+ header_params[:'xero-tenant-id'] = xero_tenant_id
17202
+
17203
+ # form parameters
17204
+ form_params = opts[:form_params] || {}
17205
+
17206
+ # http body (model)
17207
+ post_body = opts[:body] || @api_client.object_to_http_body(body)
17208
+
17209
+ # return_type
17210
+ return_type = opts[:return_type] || 'Attachments'
17211
+
17212
+ # auth_names
17213
+ auth_names = opts[:auth_names] || ['OAuth2']
17214
+
17215
+ new_options = opts.merge(
17216
+ :header_params => header_params,
17217
+ :query_params => query_params,
17218
+ :form_params => form_params,
17219
+ :body => post_body,
17220
+ :auth_names => auth_names,
17221
+ :return_type => return_type
17222
+ )
17223
+
17224
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
17225
+ if @api_client.config.debugging
17226
+ @api_client.config.logger.debug "API called: AccountingApi#update_purchase_order_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
17227
+ end
17228
+ return data, status_code, headers
17229
+ end
17230
+
16509
17231
  # Allows you to update a specified quote
16510
17232
  # @param xero_tenant_id [String] Xero identifier for Tenant
16511
17233
  # @param quote_id [String] Unique identifier for an Quote
@@ -16581,7 +17303,7 @@ module XeroRuby
16581
17303
  :return_type => return_type
16582
17304
  )
16583
17305
 
16584
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17306
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16585
17307
  if @api_client.config.debugging
16586
17308
  @api_client.config.logger.debug "API called: AccountingApi#update_quote\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16587
17309
  end
@@ -16669,7 +17391,7 @@ module XeroRuby
16669
17391
  :return_type => return_type
16670
17392
  )
16671
17393
 
16672
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17394
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16673
17395
  if @api_client.config.debugging
16674
17396
  @api_client.config.logger.debug "API called: AccountingApi#update_quote_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16675
17397
  end
@@ -16754,7 +17476,7 @@ module XeroRuby
16754
17476
  :return_type => return_type
16755
17477
  )
16756
17478
 
16757
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17479
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16758
17480
  if @api_client.config.debugging
16759
17481
  @api_client.config.logger.debug "API called: AccountingApi#update_receipt\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16760
17482
  end
@@ -16842,7 +17564,7 @@ module XeroRuby
16842
17564
  :return_type => return_type
16843
17565
  )
16844
17566
 
16845
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17567
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16846
17568
  if @api_client.config.debugging
16847
17569
  @api_client.config.logger.debug "API called: AccountingApi#update_receipt_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16848
17570
  end
@@ -16930,7 +17652,7 @@ module XeroRuby
16930
17652
  :return_type => return_type
16931
17653
  )
16932
17654
 
16933
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17655
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
16934
17656
  if @api_client.config.debugging
16935
17657
  @api_client.config.logger.debug "API called: AccountingApi#update_repeating_invoice_attachment_by_file_name\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
16936
17658
  end
@@ -17006,7 +17728,7 @@ module XeroRuby
17006
17728
  :return_type => return_type
17007
17729
  )
17008
17730
 
17009
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17731
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
17010
17732
  if @api_client.config.debugging
17011
17733
  @api_client.config.logger.debug "API called: AccountingApi#update_tax_rate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
17012
17734
  end
@@ -17088,7 +17810,7 @@ module XeroRuby
17088
17810
  :return_type => return_type
17089
17811
  )
17090
17812
 
17091
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17813
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
17092
17814
  if @api_client.config.debugging
17093
17815
  @api_client.config.logger.debug "API called: AccountingApi#update_tracking_category\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
17094
17816
  end
@@ -17176,7 +17898,7 @@ module XeroRuby
17176
17898
  :return_type => return_type
17177
17899
  )
17178
17900
 
17179
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
17901
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, "AccountingApi", new_options)
17180
17902
  if @api_client.config.debugging
17181
17903
  @api_client.config.logger.debug "API called: AccountingApi#update_tracking_options\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
17182
17904
  end