xero-ruby 2.2.2 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1028) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +93 -49
  3. data/docs/accounting/AccountingApi.md +1752 -1590
  4. data/docs/accounting/Action.md +19 -0
  5. data/docs/accounting/Actions.md +17 -0
  6. data/docs/accounting/BalanceDetails.md +21 -0
  7. data/docs/accounting/ConversionBalances.md +21 -0
  8. data/docs/accounting/ConversionDate.md +19 -0
  9. data/docs/accounting/CreditNote.md +2 -0
  10. data/docs/accounting/ExpenseClaim.md +1 -1
  11. data/docs/accounting/ImportSummary.md +19 -0
  12. data/docs/accounting/ImportSummaryAccounts.md +33 -0
  13. data/docs/accounting/ImportSummaryObject.md +17 -0
  14. data/docs/accounting/ImportSummaryOrganisation.md +17 -0
  15. data/docs/accounting/Invoice.md +2 -0
  16. data/docs/accounting/Setup.md +21 -0
  17. data/docs/accounting/TrackingOption.md +3 -3
  18. data/docs/assets/Asset.md +2 -0
  19. data/docs/assets/AssetApi.md +30 -42
  20. data/docs/files/Association.md +23 -0
  21. data/docs/files/FileObject.md +31 -0
  22. data/docs/files/FileResponse204.md +17 -0
  23. data/docs/files/Files.md +23 -0
  24. data/docs/files/FilesApi.md +1116 -0
  25. data/docs/files/Folder.md +25 -0
  26. data/docs/files/Folders.md +17 -0
  27. data/docs/files/InlineObject.md +23 -0
  28. data/docs/files/ObjectGroup.md +16 -0
  29. data/docs/files/ObjectType.md +16 -0
  30. data/docs/files/User.md +25 -0
  31. data/docs/payroll_au/APIException.md +21 -0
  32. data/docs/payroll_au/Account.md +23 -0
  33. data/docs/payroll_au/AccountType.md +16 -0
  34. data/docs/payroll_au/AllowanceType.md +16 -0
  35. data/docs/payroll_au/BankAccount.md +27 -0
  36. data/docs/payroll_au/CalendarType.md +16 -0
  37. data/docs/payroll_au/DeductionLine.md +25 -0
  38. data/docs/payroll_au/DeductionType.md +33 -0
  39. data/docs/payroll_au/DeductionTypeCalculationType.md +16 -0
  40. data/docs/payroll_au/EarningsLine.md +33 -0
  41. data/docs/payroll_au/EarningsRate.md +49 -0
  42. data/docs/payroll_au/EarningsRateCalculationType.md +16 -0
  43. data/docs/payroll_au/EarningsType.md +16 -0
  44. data/docs/payroll_au/Employee.md +77 -0
  45. data/docs/payroll_au/EmployeeStatus.md +16 -0
  46. data/docs/payroll_au/Employees.md +17 -0
  47. data/docs/payroll_au/EmploymentBasis.md +16 -0
  48. data/docs/payroll_au/EmploymentTerminationPaymentType.md +16 -0
  49. data/docs/payroll_au/EntitlementFinalPayPayoutType.md +16 -0
  50. data/docs/payroll_au/HomeAddress.md +27 -0
  51. data/docs/payroll_au/LeaveAccrualLine.md +21 -0
  52. data/docs/payroll_au/LeaveApplication.md +35 -0
  53. data/docs/payroll_au/LeaveApplications.md +17 -0
  54. data/docs/payroll_au/LeaveBalance.md +23 -0
  55. data/docs/payroll_au/LeaveEarningsLine.md +21 -0
  56. data/docs/payroll_au/LeaveLine.md +31 -0
  57. data/docs/payroll_au/LeaveLineCalculationType.md +16 -0
  58. data/docs/payroll_au/LeaveLines.md +17 -0
  59. data/docs/payroll_au/LeavePeriod.md +23 -0
  60. data/docs/payroll_au/LeavePeriodStatus.md +16 -0
  61. data/docs/payroll_au/LeaveType.md +33 -0
  62. data/docs/payroll_au/LeaveTypeContributionType.md +16 -0
  63. data/docs/payroll_au/ManualTaxType.md +16 -0
  64. data/docs/payroll_au/OpeningBalances.md +29 -0
  65. data/docs/payroll_au/PayItem.md +23 -0
  66. data/docs/payroll_au/PayItems.md +17 -0
  67. data/docs/payroll_au/PayRun.md +47 -0
  68. data/docs/payroll_au/PayRunStatus.md +16 -0
  69. data/docs/payroll_au/PayRuns.md +17 -0
  70. data/docs/payroll_au/PayTemplate.md +25 -0
  71. data/docs/payroll_au/PaymentFrequencyType.md +16 -0
  72. data/docs/payroll_au/PayrollAuApi.md +2018 -0
  73. data/docs/payroll_au/PayrollCalendar.md +29 -0
  74. data/docs/payroll_au/PayrollCalendars.md +17 -0
  75. data/docs/payroll_au/Payslip.md +53 -0
  76. data/docs/payroll_au/PayslipLines.md +31 -0
  77. data/docs/payroll_au/PayslipObject.md +17 -0
  78. data/docs/payroll_au/PayslipSummary.md +39 -0
  79. data/docs/payroll_au/Payslips.md +17 -0
  80. data/docs/payroll_au/RateType.md +16 -0
  81. data/docs/payroll_au/ReimbursementLine.md +23 -0
  82. data/docs/payroll_au/ReimbursementLines.md +17 -0
  83. data/docs/payroll_au/ReimbursementType.md +25 -0
  84. data/docs/payroll_au/ResidencyStatus.md +16 -0
  85. data/docs/payroll_au/Settings.md +21 -0
  86. data/docs/payroll_au/SettingsObject.md +17 -0
  87. data/docs/payroll_au/SettingsTrackingCategories.md +19 -0
  88. data/docs/payroll_au/SettingsTrackingCategoriesEmployeeGroups.md +19 -0
  89. data/docs/payroll_au/SettingsTrackingCategoriesTimesheetCategories.md +19 -0
  90. data/docs/payroll_au/State.md +16 -0
  91. data/docs/payroll_au/SuperFund.md +41 -0
  92. data/docs/payroll_au/SuperFundProduct.md +23 -0
  93. data/docs/payroll_au/SuperFundProducts.md +17 -0
  94. data/docs/payroll_au/SuperFundType.md +16 -0
  95. data/docs/payroll_au/SuperFunds.md +17 -0
  96. data/docs/payroll_au/SuperLine.md +31 -0
  97. data/docs/payroll_au/SuperMembership.md +21 -0
  98. data/docs/payroll_au/SuperannuationCalculationType.md +16 -0
  99. data/docs/payroll_au/SuperannuationContributionType.md +16 -0
  100. data/docs/payroll_au/SuperannuationLine.md +33 -0
  101. data/docs/payroll_au/TFNExemptionType.md +16 -0
  102. data/docs/payroll_au/TaxDeclaration.md +47 -0
  103. data/docs/payroll_au/TaxLine.md +27 -0
  104. data/docs/payroll_au/Timesheet.md +33 -0
  105. data/docs/payroll_au/TimesheetLine.md +23 -0
  106. data/docs/payroll_au/TimesheetObject.md +17 -0
  107. data/docs/payroll_au/TimesheetStatus.md +16 -0
  108. data/docs/payroll_au/Timesheets.md +17 -0
  109. data/docs/payroll_au/ValidationError.md +17 -0
  110. data/docs/payroll_nz/Account.md +23 -0
  111. data/docs/payroll_nz/Accounts.md +17 -0
  112. data/docs/payroll_nz/Address.md +27 -0
  113. data/docs/payroll_nz/BankAccount.md +31 -0
  114. data/docs/payroll_nz/Benefit.md +35 -0
  115. data/docs/payroll_nz/CalendarType.md +16 -0
  116. data/docs/payroll_nz/Deduction.md +27 -0
  117. data/docs/payroll_nz/DeductionLine.md +25 -0
  118. data/docs/payroll_nz/DeductionObject.md +21 -0
  119. data/docs/payroll_nz/Deductions.md +21 -0
  120. data/docs/payroll_nz/EarningsLine.md +35 -0
  121. data/docs/payroll_nz/EarningsOrder.md +25 -0
  122. data/docs/payroll_nz/EarningsOrderObject.md +21 -0
  123. data/docs/payroll_nz/EarningsOrders.md +21 -0
  124. data/docs/payroll_nz/EarningsRate.md +35 -0
  125. data/docs/payroll_nz/EarningsRateObject.md +21 -0
  126. data/docs/payroll_nz/EarningsRates.md +21 -0
  127. data/docs/payroll_nz/EarningsTemplate.md +27 -0
  128. data/docs/payroll_nz/EarningsTemplateObject.md +21 -0
  129. data/docs/payroll_nz/Employee.md +43 -0
  130. data/docs/payroll_nz/EmployeeEarningsTemplates.md +21 -0
  131. data/docs/payroll_nz/EmployeeLeave.md +29 -0
  132. data/docs/payroll_nz/EmployeeLeaveBalance.md +23 -0
  133. data/docs/payroll_nz/EmployeeLeaveBalances.md +21 -0
  134. data/docs/payroll_nz/EmployeeLeaveObject.md +21 -0
  135. data/docs/payroll_nz/EmployeeLeaveSetup.md +29 -0
  136. data/docs/payroll_nz/EmployeeLeaveSetupObject.md +21 -0
  137. data/docs/payroll_nz/EmployeeLeaveType.md +35 -0
  138. data/docs/payroll_nz/EmployeeLeaveTypeObject.md +21 -0
  139. data/docs/payroll_nz/EmployeeLeaveTypes.md +21 -0
  140. data/docs/payroll_nz/EmployeeLeaves.md +21 -0
  141. data/docs/payroll_nz/EmployeeObject.md +21 -0
  142. data/docs/payroll_nz/EmployeeOpeningBalance.md +23 -0
  143. data/docs/payroll_nz/EmployeeOpeningBalancesObject.md +21 -0
  144. data/docs/payroll_nz/EmployeePayTemplate.md +19 -0
  145. data/docs/payroll_nz/EmployeePayTemplateObject.md +21 -0
  146. data/docs/payroll_nz/EmployeePayTemplates.md +21 -0
  147. data/docs/payroll_nz/EmployeeStatutoryLeaveBalance.md +21 -0
  148. data/docs/payroll_nz/EmployeeStatutoryLeaveBalanceObject.md +21 -0
  149. data/docs/payroll_nz/EmployeeStatutoryLeaveSummary.md +29 -0
  150. data/docs/payroll_nz/EmployeeStatutoryLeavesSummaries.md +21 -0
  151. data/docs/payroll_nz/EmployeeStatutorySickLeave.md +47 -0
  152. data/docs/payroll_nz/EmployeeStatutorySickLeaveObject.md +21 -0
  153. data/docs/payroll_nz/EmployeeStatutorySickLeaves.md +21 -0
  154. data/docs/payroll_nz/EmployeeTax.md +47 -0
  155. data/docs/payroll_nz/EmployeeTaxObject.md +21 -0
  156. data/docs/payroll_nz/Employees.md +21 -0
  157. data/docs/payroll_nz/Employment.md +21 -0
  158. data/docs/payroll_nz/EmploymentObject.md +21 -0
  159. data/docs/payroll_nz/GrossEarningsHistory.md +19 -0
  160. data/docs/payroll_nz/InvalidField.md +19 -0
  161. data/docs/payroll_nz/LeaveAccrualLine.md +19 -0
  162. data/docs/payroll_nz/LeaveEarningsLine.md +35 -0
  163. data/docs/payroll_nz/LeavePeriod.md +23 -0
  164. data/docs/payroll_nz/LeavePeriods.md +21 -0
  165. data/docs/payroll_nz/LeaveType.md +27 -0
  166. data/docs/payroll_nz/LeaveTypeObject.md +21 -0
  167. data/docs/payroll_nz/LeaveTypes.md +21 -0
  168. data/docs/payroll_nz/Pagination.md +23 -0
  169. data/docs/payroll_nz/PayRun.md +39 -0
  170. data/docs/payroll_nz/PayRunCalendar.md +29 -0
  171. data/docs/payroll_nz/PayRunCalendarObject.md +21 -0
  172. data/docs/payroll_nz/PayRunCalendars.md +21 -0
  173. data/docs/payroll_nz/PayRunObject.md +21 -0
  174. data/docs/payroll_nz/PayRuns.md +21 -0
  175. data/docs/payroll_nz/PaySlip.md +75 -0
  176. data/docs/payroll_nz/PaySlipObject.md +21 -0
  177. data/docs/payroll_nz/PaySlips.md +21 -0
  178. data/docs/payroll_nz/PaymentLine.md +25 -0
  179. data/docs/payroll_nz/PaymentMethod.md +19 -0
  180. data/docs/payroll_nz/PaymentMethodObject.md +21 -0
  181. data/docs/payroll_nz/PayrollNzApi.md +4544 -0
  182. data/docs/payroll_nz/Problem.md +27 -0
  183. data/docs/payroll_nz/Reimbursement.md +33 -0
  184. data/docs/payroll_nz/ReimbursementLine.md +25 -0
  185. data/docs/payroll_nz/ReimbursementObject.md +21 -0
  186. data/docs/payroll_nz/Reimbursements.md +21 -0
  187. data/docs/payroll_nz/SalaryAndWage.md +35 -0
  188. data/docs/payroll_nz/SalaryAndWageObject.md +21 -0
  189. data/docs/payroll_nz/SalaryAndWages.md +21 -0
  190. data/docs/payroll_nz/Settings.md +21 -0
  191. data/docs/payroll_nz/StatutoryDeduction.md +25 -0
  192. data/docs/payroll_nz/StatutoryDeductionCategory.md +16 -0
  193. data/docs/payroll_nz/StatutoryDeductionLine.md +23 -0
  194. data/docs/payroll_nz/StatutoryDeductionObject.md +21 -0
  195. data/docs/payroll_nz/StatutoryDeductions.md +21 -0
  196. data/docs/payroll_nz/SuperannuationLine.md +27 -0
  197. data/docs/payroll_nz/SuperannuationObject.md +21 -0
  198. data/docs/payroll_nz/Superannuations.md +21 -0
  199. data/docs/payroll_nz/TaxCode.md +16 -0
  200. data/docs/payroll_nz/TaxLine.md +25 -0
  201. data/docs/payroll_nz/TaxSettings.md +27 -0
  202. data/docs/payroll_nz/Timesheet.md +33 -0
  203. data/docs/payroll_nz/TimesheetEarningsLine.md +35 -0
  204. data/docs/payroll_nz/TimesheetLine.md +25 -0
  205. data/docs/payroll_nz/TimesheetLineObject.md +21 -0
  206. data/docs/payroll_nz/TimesheetObject.md +21 -0
  207. data/docs/payroll_nz/Timesheets.md +21 -0
  208. data/docs/payroll_nz/TrackingCategories.md +21 -0
  209. data/docs/payroll_nz/TrackingCategory.md +19 -0
  210. data/docs/payroll_uk/Account.md +23 -0
  211. data/docs/payroll_uk/Accounts.md +17 -0
  212. data/docs/payroll_uk/Address.md +25 -0
  213. data/docs/payroll_uk/BankAccount.md +21 -0
  214. data/docs/payroll_uk/Benefit.md +43 -0
  215. data/docs/payroll_uk/BenefitLine.md +25 -0
  216. data/docs/payroll_uk/BenefitObject.md +21 -0
  217. data/docs/payroll_uk/Benefits.md +21 -0
  218. data/docs/payroll_uk/CourtOrderLine.md +19 -0
  219. data/docs/payroll_uk/Deduction.md +47 -0
  220. data/docs/payroll_uk/DeductionLine.md +23 -0
  221. data/docs/payroll_uk/DeductionObject.md +21 -0
  222. data/docs/payroll_uk/Deductions.md +21 -0
  223. data/docs/payroll_uk/EarningsLine.md +33 -0
  224. data/docs/payroll_uk/EarningsOrder.md +25 -0
  225. data/docs/payroll_uk/EarningsOrderObject.md +21 -0
  226. data/docs/payroll_uk/EarningsOrders.md +21 -0
  227. data/docs/payroll_uk/EarningsRate.md +35 -0
  228. data/docs/payroll_uk/EarningsRateObject.md +21 -0
  229. data/docs/payroll_uk/EarningsRates.md +21 -0
  230. data/docs/payroll_uk/EarningsTemplate.md +27 -0
  231. data/docs/payroll_uk/EarningsTemplateObject.md +21 -0
  232. data/docs/payroll_uk/Employee.md +45 -0
  233. data/docs/payroll_uk/EmployeeLeave.md +29 -0
  234. data/docs/payroll_uk/EmployeeLeaveBalance.md +23 -0
  235. data/docs/payroll_uk/EmployeeLeaveBalances.md +21 -0
  236. data/docs/payroll_uk/EmployeeLeaveObject.md +21 -0
  237. data/docs/payroll_uk/EmployeeLeaveType.md +27 -0
  238. data/docs/payroll_uk/EmployeeLeaveTypeObject.md +21 -0
  239. data/docs/payroll_uk/EmployeeLeaveTypes.md +21 -0
  240. data/docs/payroll_uk/EmployeeLeaves.md +21 -0
  241. data/docs/payroll_uk/EmployeeObject.md +21 -0
  242. data/docs/payroll_uk/EmployeeOpeningBalances.md +27 -0
  243. data/docs/payroll_uk/EmployeeOpeningBalancesObject.md +21 -0
  244. data/docs/payroll_uk/EmployeePayTemplate.md +19 -0
  245. data/docs/payroll_uk/EmployeePayTemplateObject.md +21 -0
  246. data/docs/payroll_uk/EmployeePayTemplates.md +21 -0
  247. data/docs/payroll_uk/EmployeeStatutoryLeaveBalance.md +21 -0
  248. data/docs/payroll_uk/EmployeeStatutoryLeaveBalanceObject.md +21 -0
  249. data/docs/payroll_uk/EmployeeStatutoryLeaveSummary.md +29 -0
  250. data/docs/payroll_uk/EmployeeStatutoryLeavesSummaries.md +21 -0
  251. data/docs/payroll_uk/EmployeeStatutorySickLeave.md +47 -0
  252. data/docs/payroll_uk/EmployeeStatutorySickLeaveObject.md +21 -0
  253. data/docs/payroll_uk/EmployeeStatutorySickLeaves.md +21 -0
  254. data/docs/payroll_uk/EmployeeTax.md +37 -0
  255. data/docs/payroll_uk/EmployeeTaxObject.md +21 -0
  256. data/docs/payroll_uk/Employees.md +21 -0
  257. data/docs/payroll_uk/Employment.md +23 -0
  258. data/docs/payroll_uk/EmploymentObject.md +21 -0
  259. data/docs/payroll_uk/InvalidField.md +19 -0
  260. data/docs/payroll_uk/LeaveAccrualLine.md +19 -0
  261. data/docs/payroll_uk/LeaveEarningsLine.md +27 -0
  262. data/docs/payroll_uk/LeavePeriod.md +23 -0
  263. data/docs/payroll_uk/LeavePeriods.md +21 -0
  264. data/docs/payroll_uk/LeaveType.md +31 -0
  265. data/docs/payroll_uk/LeaveTypeObject.md +21 -0
  266. data/docs/payroll_uk/LeaveTypes.md +21 -0
  267. data/docs/payroll_uk/Pagination.md +23 -0
  268. data/docs/payroll_uk/PayRun.md +39 -0
  269. data/docs/payroll_uk/PayRunCalendar.md +29 -0
  270. data/docs/payroll_uk/PayRunCalendarObject.md +21 -0
  271. data/docs/payroll_uk/PayRunCalendars.md +21 -0
  272. data/docs/payroll_uk/PayRunObject.md +21 -0
  273. data/docs/payroll_uk/PayRuns.md +21 -0
  274. data/docs/payroll_uk/PaymentLine.md +25 -0
  275. data/docs/payroll_uk/PaymentMethod.md +19 -0
  276. data/docs/payroll_uk/PaymentMethodObject.md +21 -0
  277. data/docs/payroll_uk/PayrollUkApi.md +4683 -0
  278. data/docs/payroll_uk/Payslip.md +71 -0
  279. data/docs/payroll_uk/PayslipObject.md +21 -0
  280. data/docs/payroll_uk/Payslips.md +21 -0
  281. data/docs/payroll_uk/Problem.md +27 -0
  282. data/docs/payroll_uk/Reimbursement.md +23 -0
  283. data/docs/payroll_uk/ReimbursementLine.md +21 -0
  284. data/docs/payroll_uk/ReimbursementObject.md +21 -0
  285. data/docs/payroll_uk/Reimbursements.md +21 -0
  286. data/docs/payroll_uk/SalaryAndWage.md +33 -0
  287. data/docs/payroll_uk/SalaryAndWageObject.md +21 -0
  288. data/docs/payroll_uk/SalaryAndWages.md +21 -0
  289. data/docs/payroll_uk/Settings.md +21 -0
  290. data/docs/payroll_uk/StatutoryDeduction.md +25 -0
  291. data/docs/payroll_uk/StatutoryDeductionCategory.md +16 -0
  292. data/docs/payroll_uk/TaxLine.md +27 -0
  293. data/docs/payroll_uk/Timesheet.md +33 -0
  294. data/docs/payroll_uk/TimesheetEarningsLine.md +27 -0
  295. data/docs/payroll_uk/TimesheetLine.md +25 -0
  296. data/docs/payroll_uk/TimesheetLineObject.md +21 -0
  297. data/docs/payroll_uk/TimesheetObject.md +21 -0
  298. data/docs/payroll_uk/Timesheets.md +21 -0
  299. data/docs/payroll_uk/TrackingCategories.md +21 -0
  300. data/docs/payroll_uk/TrackingCategory.md +19 -0
  301. data/docs/projects/ProjectApi.md +69 -92
  302. data/lib/xero-ruby.rb +292 -1
  303. data/lib/xero-ruby/api/accounting_api.rb +1061 -336
  304. data/lib/xero-ruby/api/asset_api.rb +7 -9
  305. data/lib/xero-ruby/api/files_api.rb +1271 -0
  306. data/lib/xero-ruby/api/payroll_au_api.rb +2254 -0
  307. data/lib/xero-ruby/api/payroll_nz_api.rb +5261 -0
  308. data/lib/xero-ruby/api/payroll_uk_api.rb +5404 -0
  309. data/lib/xero-ruby/api/project_api.rb +17 -16
  310. data/lib/xero-ruby/api_client.rb +41 -31
  311. data/lib/xero-ruby/api_error.rb +1 -1
  312. data/lib/xero-ruby/configuration.rb +9 -1
  313. data/lib/xero-ruby/models/accounting/account.rb +3 -2
  314. data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
  315. data/lib/xero-ruby/models/accounting/accounts.rb +2 -2
  316. data/lib/xero-ruby/models/accounting/accounts_payable.rb +2 -2
  317. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +2 -2
  318. data/lib/xero-ruby/models/accounting/action.rb +254 -0
  319. data/lib/xero-ruby/models/accounting/actions.rb +210 -0
  320. data/lib/xero-ruby/models/accounting/address.rb +2 -2
  321. data/lib/xero-ruby/models/accounting/allocation.rb +2 -2
  322. data/lib/xero-ruby/models/accounting/allocations.rb +2 -2
  323. data/lib/xero-ruby/models/accounting/attachment.rb +2 -2
  324. data/lib/xero-ruby/models/accounting/attachments.rb +2 -2
  325. data/lib/xero-ruby/models/accounting/balance_details.rb +229 -0
  326. data/lib/xero-ruby/models/accounting/balances.rb +2 -2
  327. data/lib/xero-ruby/models/accounting/bank_transaction.rb +2 -2
  328. data/lib/xero-ruby/models/accounting/bank_transactions.rb +2 -2
  329. data/lib/xero-ruby/models/accounting/bank_transfer.rb +2 -2
  330. data/lib/xero-ruby/models/accounting/bank_transfers.rb +2 -2
  331. data/lib/xero-ruby/models/accounting/batch_payment.rb +7 -7
  332. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +2 -17
  333. data/lib/xero-ruby/models/accounting/batch_payments.rb +2 -2
  334. data/lib/xero-ruby/models/accounting/bill.rb +2 -2
  335. data/lib/xero-ruby/models/accounting/branding_theme.rb +2 -2
  336. data/lib/xero-ruby/models/accounting/branding_themes.rb +2 -2
  337. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +2 -2
  338. data/lib/xero-ruby/models/accounting/cis_setting.rb +2 -2
  339. data/lib/xero-ruby/models/accounting/cis_settings.rb +2 -2
  340. data/lib/xero-ruby/models/accounting/contact.rb +2 -2
  341. data/lib/xero-ruby/models/accounting/contact_group.rb +2 -2
  342. data/lib/xero-ruby/models/accounting/contact_groups.rb +2 -2
  343. data/lib/xero-ruby/models/accounting/contact_person.rb +2 -2
  344. data/lib/xero-ruby/models/accounting/contacts.rb +2 -2
  345. data/lib/xero-ruby/models/accounting/conversion_balances.rb +231 -0
  346. data/lib/xero-ruby/models/accounting/conversion_date.rb +219 -0
  347. data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
  348. data/lib/xero-ruby/models/accounting/credit_note.rb +13 -3
  349. data/lib/xero-ruby/models/accounting/credit_notes.rb +2 -2
  350. data/lib/xero-ruby/models/accounting/currencies.rb +2 -2
  351. data/lib/xero-ruby/models/accounting/currency.rb +2 -2
  352. data/lib/xero-ruby/models/accounting/currency_code.rb +5 -3
  353. data/lib/xero-ruby/models/accounting/element.rb +2 -2
  354. data/lib/xero-ruby/models/accounting/employee.rb +2 -2
  355. data/lib/xero-ruby/models/accounting/employees.rb +2 -2
  356. data/lib/xero-ruby/models/accounting/error.rb +2 -2
  357. data/lib/xero-ruby/models/accounting/expense_claim.rb +3 -3
  358. data/lib/xero-ruby/models/accounting/expense_claims.rb +2 -2
  359. data/lib/xero-ruby/models/accounting/external_link.rb +2 -2
  360. data/lib/xero-ruby/models/accounting/history_record.rb +2 -2
  361. data/lib/xero-ruby/models/accounting/history_records.rb +2 -2
  362. data/lib/xero-ruby/models/accounting/import_summary.rb +219 -0
  363. data/lib/xero-ruby/models/accounting/import_summary_accounts.rb +289 -0
  364. data/lib/xero-ruby/models/accounting/import_summary_object.rb +208 -0
  365. data/lib/xero-ruby/models/accounting/import_summary_organisation.rb +208 -0
  366. data/lib/xero-ruby/models/accounting/invoice.rb +13 -3
  367. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +2 -2
  368. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +2 -2
  369. data/lib/xero-ruby/models/accounting/invoices.rb +2 -2
  370. data/lib/xero-ruby/models/accounting/item.rb +2 -2
  371. data/lib/xero-ruby/models/accounting/items.rb +2 -2
  372. data/lib/xero-ruby/models/accounting/journal.rb +2 -2
  373. data/lib/xero-ruby/models/accounting/journal_line.rb +2 -2
  374. data/lib/xero-ruby/models/accounting/journals.rb +2 -2
  375. data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
  376. data/lib/xero-ruby/models/accounting/line_item.rb +2 -2
  377. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +2 -2
  378. data/lib/xero-ruby/models/accounting/linked_transaction.rb +2 -2
  379. data/lib/xero-ruby/models/accounting/linked_transactions.rb +2 -2
  380. data/lib/xero-ruby/models/accounting/manual_journal.rb +2 -2
  381. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +2 -2
  382. data/lib/xero-ruby/models/accounting/manual_journals.rb +2 -2
  383. data/lib/xero-ruby/models/accounting/online_invoice.rb +2 -2
  384. data/lib/xero-ruby/models/accounting/online_invoices.rb +2 -2
  385. data/lib/xero-ruby/models/accounting/organisation.rb +4 -2
  386. data/lib/xero-ruby/models/accounting/organisations.rb +2 -2
  387. data/lib/xero-ruby/models/accounting/overpayment.rb +2 -2
  388. data/lib/xero-ruby/models/accounting/overpayments.rb +2 -2
  389. data/lib/xero-ruby/models/accounting/payment.rb +2 -2
  390. data/lib/xero-ruby/models/accounting/payment_delete.rb +2 -2
  391. data/lib/xero-ruby/models/accounting/payment_service.rb +2 -2
  392. data/lib/xero-ruby/models/accounting/payment_services.rb +2 -2
  393. data/lib/xero-ruby/models/accounting/payment_term.rb +2 -2
  394. data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
  395. data/lib/xero-ruby/models/accounting/payments.rb +2 -2
  396. data/lib/xero-ruby/models/accounting/phone.rb +2 -2
  397. data/lib/xero-ruby/models/accounting/prepayment.rb +2 -2
  398. data/lib/xero-ruby/models/accounting/prepayments.rb +2 -2
  399. data/lib/xero-ruby/models/accounting/purchase.rb +2 -2
  400. data/lib/xero-ruby/models/accounting/purchase_order.rb +2 -2
  401. data/lib/xero-ruby/models/accounting/purchase_orders.rb +2 -2
  402. data/lib/xero-ruby/models/accounting/quote.rb +2 -2
  403. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
  404. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
  405. data/lib/xero-ruby/models/accounting/quotes.rb +2 -2
  406. data/lib/xero-ruby/models/accounting/receipt.rb +2 -2
  407. data/lib/xero-ruby/models/accounting/receipts.rb +2 -2
  408. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +2 -2
  409. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +2 -2
  410. data/lib/xero-ruby/models/accounting/report.rb +2 -2
  411. data/lib/xero-ruby/models/accounting/report_attribute.rb +2 -2
  412. data/lib/xero-ruby/models/accounting/report_cell.rb +2 -2
  413. data/lib/xero-ruby/models/accounting/report_fields.rb +2 -2
  414. data/lib/xero-ruby/models/accounting/report_row.rb +2 -2
  415. data/lib/xero-ruby/models/accounting/report_rows.rb +2 -2
  416. data/lib/xero-ruby/models/accounting/report_with_row.rb +2 -2
  417. data/lib/xero-ruby/models/accounting/report_with_rows.rb +2 -2
  418. data/lib/xero-ruby/models/accounting/reports.rb +2 -2
  419. data/lib/xero-ruby/models/accounting/request_empty.rb +2 -2
  420. data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
  421. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +2 -2
  422. data/lib/xero-ruby/models/accounting/schedule.rb +2 -2
  423. data/lib/xero-ruby/models/accounting/setup.rb +232 -0
  424. data/lib/xero-ruby/models/accounting/tax_component.rb +2 -2
  425. data/lib/xero-ruby/models/accounting/tax_rate.rb +2 -2
  426. data/lib/xero-ruby/models/accounting/tax_rates.rb +2 -2
  427. data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
  428. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +2 -2
  429. data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
  430. data/lib/xero-ruby/models/accounting/tracking_categories.rb +2 -2
  431. data/lib/xero-ruby/models/accounting/tracking_category.rb +2 -2
  432. data/lib/xero-ruby/models/accounting/tracking_option.rb +10 -10
  433. data/lib/xero-ruby/models/accounting/tracking_options.rb +2 -2
  434. data/lib/xero-ruby/models/accounting/user.rb +2 -2
  435. data/lib/xero-ruby/models/accounting/users.rb +2 -2
  436. data/lib/xero-ruby/models/accounting/validation_error.rb +2 -2
  437. data/lib/xero-ruby/models/assets/asset.rb +13 -3
  438. data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
  439. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
  440. data/lib/xero-ruby/models/assets/asset_type.rb +2 -2
  441. data/lib/xero-ruby/models/assets/assets.rb +2 -2
  442. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +2 -2
  443. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +2 -2
  444. data/lib/xero-ruby/models/assets/error.rb +2 -2
  445. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +2 -2
  446. data/lib/xero-ruby/models/assets/pagination.rb +2 -2
  447. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +2 -2
  448. data/lib/xero-ruby/models/assets/setting.rb +2 -2
  449. data/lib/xero-ruby/models/files/association.rb +238 -0
  450. data/lib/xero-ruby/models/files/file_object.rb +278 -0
  451. data/lib/xero-ruby/models/files/file_response204.rb +208 -0
  452. data/lib/xero-ruby/models/files/files.rb +240 -0
  453. data/lib/xero-ruby/models/files/folder.rb +248 -0
  454. data/lib/xero-ruby/models/files/folders.rb +210 -0
  455. data/lib/xero-ruby/models/files/inline_object.rb +238 -0
  456. data/lib/xero-ruby/models/files/object_group.rb +46 -0
  457. data/lib/xero-ruby/models/files/object_type.rb +90 -0
  458. data/lib/xero-ruby/models/files/user.rb +253 -0
  459. data/lib/xero-ruby/models/payroll_au/account.rb +238 -0
  460. data/lib/xero-ruby/models/payroll_au/account_type.rb +58 -0
  461. data/lib/xero-ruby/models/payroll_au/allowance_type.rb +42 -0
  462. data/lib/xero-ruby/models/payroll_au/api_exception.rb +229 -0
  463. data/lib/xero-ruby/models/payroll_au/bank_account.rb +258 -0
  464. data/lib/xero-ruby/models/payroll_au/calendar_type.rb +41 -0
  465. data/lib/xero-ruby/models/payroll_au/deduction_line.rb +258 -0
  466. data/lib/xero-ruby/models/payroll_au/deduction_type.rb +340 -0
  467. data/lib/xero-ruby/models/payroll_au/deduction_type_calculation_type.rb +38 -0
  468. data/lib/xero-ruby/models/payroll_au/earnings_line.rb +293 -0
  469. data/lib/xero-ruby/models/payroll_au/earnings_rate.rb +398 -0
  470. data/lib/xero-ruby/models/payroll_au/earnings_rate_calculation_type.rb +38 -0
  471. data/lib/xero-ruby/models/payroll_au/earnings_type.rb +44 -0
  472. data/lib/xero-ruby/models/payroll_au/employee.rb +571 -0
  473. data/lib/xero-ruby/models/payroll_au/employee_status.rb +37 -0
  474. data/lib/xero-ruby/models/payroll_au/employees.rb +210 -0
  475. data/lib/xero-ruby/models/payroll_au/employment_basis.rb +40 -0
  476. data/lib/xero-ruby/models/payroll_au/employment_termination_payment_type.rb +37 -0
  477. data/lib/xero-ruby/models/payroll_au/entitlement_final_pay_payout_type.rb +37 -0
  478. data/lib/xero-ruby/models/payroll_au/home_address.rb +263 -0
  479. data/lib/xero-ruby/models/payroll_au/leave_accrual_line.rb +228 -0
  480. data/lib/xero-ruby/models/payroll_au/leave_application.rb +302 -0
  481. data/lib/xero-ruby/models/payroll_au/leave_applications.rb +210 -0
  482. data/lib/xero-ruby/models/payroll_au/leave_balance.rb +238 -0
  483. data/lib/xero-ruby/models/payroll_au/leave_earnings_line.rb +228 -0
  484. data/lib/xero-ruby/models/payroll_au/leave_line.rb +278 -0
  485. data/lib/xero-ruby/models/payroll_au/leave_line_calculation_type.rb +40 -0
  486. data/lib/xero-ruby/models/payroll_au/leave_lines.rb +211 -0
  487. data/lib/xero-ruby/models/payroll_au/leave_period.rb +238 -0
  488. data/lib/xero-ruby/models/payroll_au/leave_period_status.rb +37 -0
  489. data/lib/xero-ruby/models/payroll_au/leave_type.rb +303 -0
  490. data/lib/xero-ruby/models/payroll_au/leave_type_contribution_type.rb +39 -0
  491. data/lib/xero-ruby/models/payroll_au/manual_tax_type.rb +40 -0
  492. data/lib/xero-ruby/models/payroll_au/opening_balances.rb +278 -0
  493. data/lib/xero-ruby/models/payroll_au/pay_item.rb +246 -0
  494. data/lib/xero-ruby/models/payroll_au/pay_items.rb +208 -0
  495. data/lib/xero-ruby/models/payroll_au/pay_run.rb +367 -0
  496. data/lib/xero-ruby/models/payroll_au/pay_run_status.rb +37 -0
  497. data/lib/xero-ruby/models/payroll_au/pay_runs.rb +210 -0
  498. data/lib/xero-ruby/models/payroll_au/pay_template.rb +258 -0
  499. data/lib/xero-ruby/models/payroll_au/payment_frequency_type.rb +42 -0
  500. data/lib/xero-ruby/models/payroll_au/payroll_calendar.rb +270 -0
  501. data/lib/xero-ruby/models/payroll_au/payroll_calendars.rb +210 -0
  502. data/lib/xero-ruby/models/payroll_au/payslip.rb +404 -0
  503. data/lib/xero-ruby/models/payroll_au/payslip_lines.rb +294 -0
  504. data/lib/xero-ruby/models/payroll_au/payslip_object.rb +208 -0
  505. data/lib/xero-ruby/models/payroll_au/payslip_summary.rb +318 -0
  506. data/lib/xero-ruby/models/payroll_au/payslips.rb +210 -0
  507. data/lib/xero-ruby/models/payroll_au/rate_type.rb +38 -0
  508. data/lib/xero-ruby/models/payroll_au/reimbursement_line.rb +253 -0
  509. data/lib/xero-ruby/models/payroll_au/reimbursement_lines.rb +211 -0
  510. data/lib/xero-ruby/models/payroll_au/reimbursement_type.rb +263 -0
  511. data/lib/xero-ruby/models/payroll_au/residency_status.rb +38 -0
  512. data/lib/xero-ruby/models/payroll_au/settings.rb +230 -0
  513. data/lib/xero-ruby/models/payroll_au/settings_object.rb +208 -0
  514. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories.rb +219 -0
  515. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_employee_groups.rb +219 -0
  516. data/lib/xero-ruby/models/payroll_au/settings_tracking_categories_timesheet_categories.rb +219 -0
  517. data/lib/xero-ruby/models/payroll_au/state.rb +43 -0
  518. data/lib/xero-ruby/models/payroll_au/super_fund.rb +335 -0
  519. data/lib/xero-ruby/models/payroll_au/super_fund_product.rb +238 -0
  520. data/lib/xero-ruby/models/payroll_au/super_fund_products.rb +210 -0
  521. data/lib/xero-ruby/models/payroll_au/super_fund_type.rb +37 -0
  522. data/lib/xero-ruby/models/payroll_au/super_funds.rb +210 -0
  523. data/lib/xero-ruby/models/payroll_au/super_line.rb +278 -0
  524. data/lib/xero-ruby/models/payroll_au/super_membership.rb +238 -0
  525. data/lib/xero-ruby/models/payroll_au/superannuation_calculation_type.rb +38 -0
  526. data/lib/xero-ruby/models/payroll_au/superannuation_contribution_type.rb +39 -0
  527. data/lib/xero-ruby/models/payroll_au/superannuation_line.rb +288 -0
  528. data/lib/xero-ruby/models/payroll_au/tax_declaration.rb +358 -0
  529. data/lib/xero-ruby/models/payroll_au/tax_line.rb +258 -0
  530. data/lib/xero-ruby/models/payroll_au/tfn_exemption_type.rb +39 -0
  531. data/lib/xero-ruby/models/payroll_au/timesheet.rb +307 -0
  532. data/lib/xero-ruby/models/payroll_au/timesheet_line.rb +240 -0
  533. data/lib/xero-ruby/models/payroll_au/timesheet_object.rb +208 -0
  534. data/lib/xero-ruby/models/payroll_au/timesheet_status.rb +40 -0
  535. data/lib/xero-ruby/models/payroll_au/timesheets.rb +210 -0
  536. data/lib/xero-ruby/models/payroll_au/validation_error.rb +208 -0
  537. data/lib/xero-ruby/models/payroll_nz/account.rb +276 -0
  538. data/lib/xero-ruby/models/payroll_nz/accounts.rb +210 -0
  539. data/lib/xero-ruby/models/payroll_nz/address.rb +273 -0
  540. data/lib/xero-ruby/models/payroll_nz/bank_account.rb +329 -0
  541. data/lib/xero-ruby/models/payroll_nz/benefit.rb +369 -0
  542. data/lib/xero-ruby/models/payroll_nz/calendar_type.rb +42 -0
  543. data/lib/xero-ruby/models/payroll_nz/deduction.rb +311 -0
  544. data/lib/xero-ruby/models/payroll_nz/deduction_line.rb +248 -0
  545. data/lib/xero-ruby/models/payroll_nz/deduction_object.rb +228 -0
  546. data/lib/xero-ruby/models/payroll_nz/deductions.rb +230 -0
  547. data/lib/xero-ruby/models/payroll_nz/earnings_line.rb +298 -0
  548. data/lib/xero-ruby/models/payroll_nz/earnings_order.rb +255 -0
  549. data/lib/xero-ruby/models/payroll_nz/earnings_order_object.rb +228 -0
  550. data/lib/xero-ruby/models/payroll_nz/earnings_orders.rb +230 -0
  551. data/lib/xero-ruby/models/payroll_nz/earnings_rate.rb +387 -0
  552. data/lib/xero-ruby/models/payroll_nz/earnings_rate_object.rb +228 -0
  553. data/lib/xero-ruby/models/payroll_nz/earnings_rates.rb +230 -0
  554. data/lib/xero-ruby/models/payroll_nz/earnings_template.rb +258 -0
  555. data/lib/xero-ruby/models/payroll_nz/earnings_template_object.rb +228 -0
  556. data/lib/xero-ruby/models/payroll_nz/employee.rb +374 -0
  557. data/lib/xero-ruby/models/payroll_nz/employee_earnings_templates.rb +230 -0
  558. data/lib/xero-ruby/models/payroll_nz/employee_leave.rb +290 -0
  559. data/lib/xero-ruby/models/payroll_nz/employee_leave_balance.rb +238 -0
  560. data/lib/xero-ruby/models/payroll_nz/employee_leave_balances.rb +230 -0
  561. data/lib/xero-ruby/models/payroll_nz/employee_leave_object.rb +228 -0
  562. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup.rb +268 -0
  563. data/lib/xero-ruby/models/payroll_nz/employee_leave_setup_object.rb +228 -0
  564. data/lib/xero-ruby/models/payroll_nz/employee_leave_type.rb +336 -0
  565. data/lib/xero-ruby/models/payroll_nz/employee_leave_type_object.rb +228 -0
  566. data/lib/xero-ruby/models/payroll_nz/employee_leave_types.rb +230 -0
  567. data/lib/xero-ruby/models/payroll_nz/employee_leaves.rb +230 -0
  568. data/lib/xero-ruby/models/payroll_nz/employee_object.rb +228 -0
  569. data/lib/xero-ruby/models/payroll_nz/employee_opening_balance.rb +238 -0
  570. data/lib/xero-ruby/models/payroll_nz/employee_opening_balances_object.rb +230 -0
  571. data/lib/xero-ruby/models/payroll_nz/employee_pay_template.rb +220 -0
  572. data/lib/xero-ruby/models/payroll_nz/employee_pay_template_object.rb +228 -0
  573. data/lib/xero-ruby/models/payroll_nz/employee_pay_templates.rb +228 -0
  574. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance.rb +280 -0
  575. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_balance_object.rb +228 -0
  576. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leave_summary.rb +322 -0
  577. data/lib/xero-ruby/models/payroll_nz/employee_statutory_leaves_summaries.rb +230 -0
  578. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave.rb +419 -0
  579. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leave_object.rb +228 -0
  580. data/lib/xero-ruby/models/payroll_nz/employee_statutory_sick_leaves.rb +230 -0
  581. data/lib/xero-ruby/models/payroll_nz/employee_tax.rb +397 -0
  582. data/lib/xero-ruby/models/payroll_nz/employee_tax_object.rb +228 -0
  583. data/lib/xero-ruby/models/payroll_nz/employees.rb +230 -0
  584. data/lib/xero-ruby/models/payroll_nz/employment.rb +228 -0
  585. data/lib/xero-ruby/models/payroll_nz/employment_object.rb +228 -0
  586. data/lib/xero-ruby/models/payroll_nz/gross_earnings_history.rb +218 -0
  587. data/lib/xero-ruby/models/payroll_nz/invalid_field.rb +218 -0
  588. data/lib/xero-ruby/models/payroll_nz/leave_accrual_line.rb +218 -0
  589. data/lib/xero-ruby/models/payroll_nz/leave_earnings_line.rb +298 -0
  590. data/lib/xero-ruby/models/payroll_nz/leave_period.rb +274 -0
  591. data/lib/xero-ruby/models/payroll_nz/leave_periods.rb +230 -0
  592. data/lib/xero-ruby/models/payroll_nz/leave_type.rb +273 -0
  593. data/lib/xero-ruby/models/payroll_nz/leave_type_object.rb +228 -0
  594. data/lib/xero-ruby/models/payroll_nz/leave_types.rb +230 -0
  595. data/lib/xero-ruby/models/payroll_nz/pagination.rb +238 -0
  596. data/lib/xero-ruby/models/payroll_nz/pay_run.rb +371 -0
  597. data/lib/xero-ruby/models/payroll_nz/pay_run_calendar.rb +288 -0
  598. data/lib/xero-ruby/models/payroll_nz/pay_run_calendar_object.rb +228 -0
  599. data/lib/xero-ruby/models/payroll_nz/pay_run_calendars.rb +230 -0
  600. data/lib/xero-ruby/models/payroll_nz/pay_run_object.rb +228 -0
  601. data/lib/xero-ruby/models/payroll_nz/pay_runs.rb +230 -0
  602. data/lib/xero-ruby/models/payroll_nz/pay_slip.rb +557 -0
  603. data/lib/xero-ruby/models/payroll_nz/pay_slip_object.rb +228 -0
  604. data/lib/xero-ruby/models/payroll_nz/pay_slips.rb +230 -0
  605. data/lib/xero-ruby/models/payroll_nz/payment_line.rb +248 -0
  606. data/lib/xero-ruby/models/payroll_nz/payment_method.rb +257 -0
  607. data/lib/xero-ruby/models/payroll_nz/payment_method_object.rb +228 -0
  608. data/lib/xero-ruby/models/payroll_nz/problem.rb +261 -0
  609. data/lib/xero-ruby/models/payroll_nz/reimbursement.rb +364 -0
  610. data/lib/xero-ruby/models/payroll_nz/reimbursement_line.rb +248 -0
  611. data/lib/xero-ruby/models/payroll_nz/reimbursement_object.rb +228 -0
  612. data/lib/xero-ruby/models/payroll_nz/reimbursements.rb +230 -0
  613. data/lib/xero-ruby/models/payroll_nz/salary_and_wage.rb +383 -0
  614. data/lib/xero-ruby/models/payroll_nz/salary_and_wage_object.rb +228 -0
  615. data/lib/xero-ruby/models/payroll_nz/salary_and_wages.rb +230 -0
  616. data/lib/xero-ruby/models/payroll_nz/settings.rb +228 -0
  617. data/lib/xero-ruby/models/payroll_nz/statutory_deduction.rb +248 -0
  618. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_category.rb +46 -0
  619. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_line.rb +238 -0
  620. data/lib/xero-ruby/models/payroll_nz/statutory_deduction_object.rb +228 -0
  621. data/lib/xero-ruby/models/payroll_nz/statutory_deductions.rb +230 -0
  622. data/lib/xero-ruby/models/payroll_nz/superannuation_line.rb +258 -0
  623. data/lib/xero-ruby/models/payroll_nz/superannuation_object.rb +228 -0
  624. data/lib/xero-ruby/models/payroll_nz/superannuations.rb +230 -0
  625. data/lib/xero-ruby/models/payroll_nz/tax_code.rb +54 -0
  626. data/lib/xero-ruby/models/payroll_nz/tax_line.rb +248 -0
  627. data/lib/xero-ruby/models/payroll_nz/tax_settings.rb +294 -0
  628. data/lib/xero-ruby/models/payroll_nz/timesheet.rb +347 -0
  629. data/lib/xero-ruby/models/payroll_nz/timesheet_earnings_line.rb +298 -0
  630. data/lib/xero-ruby/models/payroll_nz/timesheet_line.rb +263 -0
  631. data/lib/xero-ruby/models/payroll_nz/timesheet_line_object.rb +228 -0
  632. data/lib/xero-ruby/models/payroll_nz/timesheet_object.rb +228 -0
  633. data/lib/xero-ruby/models/payroll_nz/timesheets.rb +230 -0
  634. data/lib/xero-ruby/models/payroll_nz/tracking_categories.rb +228 -0
  635. data/lib/xero-ruby/models/payroll_nz/tracking_category.rb +218 -0
  636. data/lib/xero-ruby/models/payroll_uk/account.rb +279 -0
  637. data/lib/xero-ruby/models/payroll_uk/accounts.rb +210 -0
  638. data/lib/xero-ruby/models/payroll_uk/address.rb +263 -0
  639. data/lib/xero-ruby/models/payroll_uk/bank_account.rb +243 -0
  640. data/lib/xero-ruby/models/payroll_uk/benefit.rb +418 -0
  641. data/lib/xero-ruby/models/payroll_uk/benefit_line.rb +248 -0
  642. data/lib/xero-ruby/models/payroll_uk/benefit_object.rb +228 -0
  643. data/lib/xero-ruby/models/payroll_uk/benefits.rb +230 -0
  644. data/lib/xero-ruby/models/payroll_uk/court_order_line.rb +218 -0
  645. data/lib/xero-ruby/models/payroll_uk/deduction.rb +426 -0
  646. data/lib/xero-ruby/models/payroll_uk/deduction_line.rb +238 -0
  647. data/lib/xero-ruby/models/payroll_uk/deduction_object.rb +228 -0
  648. data/lib/xero-ruby/models/payroll_uk/deductions.rb +230 -0
  649. data/lib/xero-ruby/models/payroll_uk/earnings_line.rb +288 -0
  650. data/lib/xero-ruby/models/payroll_uk/earnings_order.rb +255 -0
  651. data/lib/xero-ruby/models/payroll_uk/earnings_order_object.rb +228 -0
  652. data/lib/xero-ruby/models/payroll_uk/earnings_orders.rb +230 -0
  653. data/lib/xero-ruby/models/payroll_uk/earnings_rate.rb +387 -0
  654. data/lib/xero-ruby/models/payroll_uk/earnings_rate_object.rb +228 -0
  655. data/lib/xero-ruby/models/payroll_uk/earnings_rates.rb +230 -0
  656. data/lib/xero-ruby/models/payroll_uk/earnings_template.rb +258 -0
  657. data/lib/xero-ruby/models/payroll_uk/earnings_template_object.rb +228 -0
  658. data/lib/xero-ruby/models/payroll_uk/employee.rb +384 -0
  659. data/lib/xero-ruby/models/payroll_uk/employee_leave.rb +290 -0
  660. data/lib/xero-ruby/models/payroll_uk/employee_leave_balance.rb +238 -0
  661. data/lib/xero-ruby/models/payroll_uk/employee_leave_balances.rb +230 -0
  662. data/lib/xero-ruby/models/payroll_uk/employee_leave_object.rb +228 -0
  663. data/lib/xero-ruby/models/payroll_uk/employee_leave_type.rb +306 -0
  664. data/lib/xero-ruby/models/payroll_uk/employee_leave_type_object.rb +228 -0
  665. data/lib/xero-ruby/models/payroll_uk/employee_leave_types.rb +230 -0
  666. data/lib/xero-ruby/models/payroll_uk/employee_leaves.rb +230 -0
  667. data/lib/xero-ruby/models/payroll_uk/employee_object.rb +228 -0
  668. data/lib/xero-ruby/models/payroll_uk/employee_opening_balances.rb +258 -0
  669. data/lib/xero-ruby/models/payroll_uk/employee_opening_balances_object.rb +228 -0
  670. data/lib/xero-ruby/models/payroll_uk/employee_pay_template.rb +220 -0
  671. data/lib/xero-ruby/models/payroll_uk/employee_pay_template_object.rb +228 -0
  672. data/lib/xero-ruby/models/payroll_uk/employee_pay_templates.rb +230 -0
  673. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance.rb +280 -0
  674. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_balance_object.rb +228 -0
  675. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leave_summary.rb +322 -0
  676. data/lib/xero-ruby/models/payroll_uk/employee_statutory_leaves_summaries.rb +230 -0
  677. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave.rb +419 -0
  678. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leave_object.rb +228 -0
  679. data/lib/xero-ruby/models/payroll_uk/employee_statutory_sick_leaves.rb +230 -0
  680. data/lib/xero-ruby/models/payroll_uk/employee_tax.rb +308 -0
  681. data/lib/xero-ruby/models/payroll_uk/employee_tax_object.rb +228 -0
  682. data/lib/xero-ruby/models/payroll_uk/employees.rb +230 -0
  683. data/lib/xero-ruby/models/payroll_uk/employment.rb +280 -0
  684. data/lib/xero-ruby/models/payroll_uk/employment_object.rb +228 -0
  685. data/lib/xero-ruby/models/payroll_uk/invalid_field.rb +218 -0
  686. data/lib/xero-ruby/models/payroll_uk/leave_accrual_line.rb +218 -0
  687. data/lib/xero-ruby/models/payroll_uk/leave_earnings_line.rb +258 -0
  688. data/lib/xero-ruby/models/payroll_uk/leave_period.rb +274 -0
  689. data/lib/xero-ruby/models/payroll_uk/leave_periods.rb +230 -0
  690. data/lib/xero-ruby/models/payroll_uk/leave_type.rb +293 -0
  691. data/lib/xero-ruby/models/payroll_uk/leave_type_object.rb +228 -0
  692. data/lib/xero-ruby/models/payroll_uk/leave_types.rb +230 -0
  693. data/lib/xero-ruby/models/payroll_uk/pagination.rb +238 -0
  694. data/lib/xero-ruby/models/payroll_uk/pay_run.rb +389 -0
  695. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar.rb +328 -0
  696. data/lib/xero-ruby/models/payroll_uk/pay_run_calendar_object.rb +228 -0
  697. data/lib/xero-ruby/models/payroll_uk/pay_run_calendars.rb +230 -0
  698. data/lib/xero-ruby/models/payroll_uk/pay_run_object.rb +228 -0
  699. data/lib/xero-ruby/models/payroll_uk/pay_runs.rb +230 -0
  700. data/lib/xero-ruby/models/payroll_uk/payment_line.rb +248 -0
  701. data/lib/xero-ruby/models/payroll_uk/payment_method.rb +262 -0
  702. data/lib/xero-ruby/models/payroll_uk/payment_method_object.rb +228 -0
  703. data/lib/xero-ruby/models/payroll_uk/payslip.rb +537 -0
  704. data/lib/xero-ruby/models/payroll_uk/payslip_object.rb +228 -0
  705. data/lib/xero-ruby/models/payroll_uk/payslips.rb +230 -0
  706. data/lib/xero-ruby/models/payroll_uk/problem.rb +261 -0
  707. data/lib/xero-ruby/models/payroll_uk/reimbursement.rb +248 -0
  708. data/lib/xero-ruby/models/payroll_uk/reimbursement_line.rb +228 -0
  709. data/lib/xero-ruby/models/payroll_uk/reimbursement_object.rb +228 -0
  710. data/lib/xero-ruby/models/payroll_uk/reimbursements.rb +230 -0
  711. data/lib/xero-ruby/models/payroll_uk/salary_and_wage.rb +368 -0
  712. data/lib/xero-ruby/models/payroll_uk/salary_and_wage_object.rb +228 -0
  713. data/lib/xero-ruby/models/payroll_uk/salary_and_wages.rb +230 -0
  714. data/lib/xero-ruby/models/payroll_uk/settings.rb +228 -0
  715. data/lib/xero-ruby/models/payroll_uk/statutory_deduction.rb +248 -0
  716. data/lib/xero-ruby/models/payroll_uk/statutory_deduction_category.rb +49 -0
  717. data/lib/xero-ruby/models/payroll_uk/tax_line.rb +258 -0
  718. data/lib/xero-ruby/models/payroll_uk/timesheet.rb +347 -0
  719. data/lib/xero-ruby/models/payroll_uk/timesheet_earnings_line.rb +258 -0
  720. data/lib/xero-ruby/models/payroll_uk/timesheet_line.rb +263 -0
  721. data/lib/xero-ruby/models/payroll_uk/timesheet_line_object.rb +228 -0
  722. data/lib/xero-ruby/models/payroll_uk/timesheet_object.rb +228 -0
  723. data/lib/xero-ruby/models/payroll_uk/timesheets.rb +230 -0
  724. data/lib/xero-ruby/models/payroll_uk/tracking_categories.rb +228 -0
  725. data/lib/xero-ruby/models/payroll_uk/tracking_category.rb +218 -0
  726. data/lib/xero-ruby/models/projects/amount.rb +2 -2
  727. data/lib/xero-ruby/models/projects/charge_type.rb +1 -1
  728. data/lib/xero-ruby/models/projects/currency_code.rb +1 -1
  729. data/lib/xero-ruby/models/projects/error.rb +2 -2
  730. data/lib/xero-ruby/models/projects/pagination.rb +2 -2
  731. data/lib/xero-ruby/models/projects/project.rb +2 -2
  732. data/lib/xero-ruby/models/projects/project_create_or_update.rb +2 -2
  733. data/lib/xero-ruby/models/projects/project_patch.rb +2 -2
  734. data/lib/xero-ruby/models/projects/project_status.rb +1 -1
  735. data/lib/xero-ruby/models/projects/project_user.rb +2 -2
  736. data/lib/xero-ruby/models/projects/project_users.rb +2 -2
  737. data/lib/xero-ruby/models/projects/projects.rb +2 -2
  738. data/lib/xero-ruby/models/projects/task.rb +2 -2
  739. data/lib/xero-ruby/models/projects/task_create_or_update.rb +2 -2
  740. data/lib/xero-ruby/models/projects/tasks.rb +2 -2
  741. data/lib/xero-ruby/models/projects/time_entries.rb +2 -2
  742. data/lib/xero-ruby/models/projects/time_entry.rb +2 -2
  743. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +2 -2
  744. data/lib/xero-ruby/version.rb +2 -2
  745. data/spec/api_client_spec.rb +3 -3
  746. data/spec/files/api/files_api_spec.rb +249 -0
  747. data/spec/files/models/association_spec.rb +59 -0
  748. data/spec/files/models/file_object_spec.rb +83 -0
  749. data/spec/files/models/file_response204_spec.rb +41 -0
  750. data/spec/files/models/files_spec.rb +59 -0
  751. data/spec/files/models/folder_spec.rb +65 -0
  752. data/spec/files/models/folders_spec.rb +41 -0
  753. data/spec/files/models/inline_object_spec.rb +59 -0
  754. data/spec/files/models/object_group_spec.rb +35 -0
  755. data/spec/files/models/object_type_spec.rb +35 -0
  756. data/spec/files/models/user_spec.rb +81 -0
  757. data/spec/payroll_au/api/payroll_au_api_spec.rb +415 -0
  758. data/spec/payroll_au/models/account_spec.rb +59 -0
  759. data/spec/payroll_au/models/account_type_spec.rb +35 -0
  760. data/spec/payroll_au/models/allowance_type_spec.rb +35 -0
  761. data/spec/payroll_au/models/api_exception_spec.rb +53 -0
  762. data/spec/payroll_au/models/bank_account_spec.rb +71 -0
  763. data/spec/payroll_au/models/calendar_type_spec.rb +35 -0
  764. data/spec/payroll_au/models/deduction_line_spec.rb +65 -0
  765. data/spec/payroll_au/models/deduction_type_calculation_type_spec.rb +35 -0
  766. data/spec/payroll_au/models/deduction_type_spec.rb +93 -0
  767. data/spec/payroll_au/models/earnings_line_spec.rb +89 -0
  768. data/spec/payroll_au/models/earnings_rate_calculation_type_spec.rb +35 -0
  769. data/spec/payroll_au/models/earnings_rate_spec.rb +137 -0
  770. data/spec/payroll_au/models/earnings_type_spec.rb +35 -0
  771. data/spec/payroll_au/models/employee_spec.rb +225 -0
  772. data/spec/payroll_au/models/employee_status_spec.rb +35 -0
  773. data/spec/payroll_au/models/employees_spec.rb +41 -0
  774. data/spec/payroll_au/models/employment_basis_spec.rb +35 -0
  775. data/spec/payroll_au/models/employment_termination_payment_type_spec.rb +35 -0
  776. data/spec/payroll_au/models/entitlement_final_pay_payout_type_spec.rb +35 -0
  777. data/spec/payroll_au/models/home_address_spec.rb +71 -0
  778. data/spec/payroll_au/models/leave_accrual_line_spec.rb +53 -0
  779. data/spec/payroll_au/models/leave_application_spec.rb +95 -0
  780. data/spec/payroll_au/models/leave_applications_spec.rb +41 -0
  781. data/spec/payroll_au/models/leave_balance_spec.rb +59 -0
  782. data/spec/payroll_au/models/leave_earnings_line_spec.rb +53 -0
  783. data/spec/payroll_au/models/leave_line_calculation_type_spec.rb +35 -0
  784. data/spec/payroll_au/models/leave_line_spec.rb +83 -0
  785. data/spec/payroll_au/models/leave_lines_spec.rb +41 -0
  786. data/spec/payroll_au/models/leave_period_spec.rb +59 -0
  787. data/spec/payroll_au/models/leave_period_status_spec.rb +35 -0
  788. data/spec/payroll_au/models/leave_type_contribution_type_spec.rb +35 -0
  789. data/spec/payroll_au/models/leave_type_spec.rb +89 -0
  790. data/spec/payroll_au/models/manual_tax_type_spec.rb +35 -0
  791. data/spec/payroll_au/models/opening_balances_spec.rb +77 -0
  792. data/spec/payroll_au/models/pay_item_spec.rb +59 -0
  793. data/spec/payroll_au/models/pay_items_spec.rb +41 -0
  794. data/spec/payroll_au/models/pay_run_spec.rb +131 -0
  795. data/spec/payroll_au/models/pay_run_status_spec.rb +35 -0
  796. data/spec/payroll_au/models/pay_runs_spec.rb +41 -0
  797. data/spec/payroll_au/models/pay_template_spec.rb +65 -0
  798. data/spec/payroll_au/models/payment_frequency_type_spec.rb +35 -0
  799. data/spec/payroll_au/models/payroll_calendar_spec.rb +77 -0
  800. data/spec/payroll_au/models/payroll_calendars_spec.rb +41 -0
  801. data/spec/payroll_au/models/payslip_lines_spec.rb +83 -0
  802. data/spec/payroll_au/models/payslip_object_spec.rb +41 -0
  803. data/spec/payroll_au/models/payslip_spec.rb +149 -0
  804. data/spec/payroll_au/models/payslip_summary_spec.rb +107 -0
  805. data/spec/payroll_au/models/payslips_spec.rb +41 -0
  806. data/spec/payroll_au/models/rate_type_spec.rb +35 -0
  807. data/spec/payroll_au/models/reimbursement_line_spec.rb +59 -0
  808. data/spec/payroll_au/models/reimbursement_lines_spec.rb +41 -0
  809. data/spec/payroll_au/models/reimbursement_type_spec.rb +65 -0
  810. data/spec/payroll_au/models/residency_status_spec.rb +35 -0
  811. data/spec/payroll_au/models/settings_object_spec.rb +41 -0
  812. data/spec/payroll_au/models/settings_spec.rb +53 -0
  813. data/spec/payroll_au/models/settings_tracking_categories_employee_groups_spec.rb +47 -0
  814. data/spec/payroll_au/models/settings_tracking_categories_spec.rb +47 -0
  815. data/spec/payroll_au/models/settings_tracking_categories_timesheet_categories_spec.rb +47 -0
  816. data/spec/payroll_au/models/state_spec.rb +35 -0
  817. data/spec/payroll_au/models/super_fund_product_spec.rb +59 -0
  818. data/spec/payroll_au/models/super_fund_products_spec.rb +41 -0
  819. data/spec/payroll_au/models/super_fund_spec.rb +113 -0
  820. data/spec/payroll_au/models/super_fund_type_spec.rb +35 -0
  821. data/spec/payroll_au/models/super_funds_spec.rb +41 -0
  822. data/spec/payroll_au/models/super_line_spec.rb +83 -0
  823. data/spec/payroll_au/models/super_membership_spec.rb +53 -0
  824. data/spec/payroll_au/models/superannuation_calculation_type_spec.rb +35 -0
  825. data/spec/payroll_au/models/superannuation_contribution_type_spec.rb +35 -0
  826. data/spec/payroll_au/models/superannuation_line_spec.rb +89 -0
  827. data/spec/payroll_au/models/tax_declaration_spec.rb +131 -0
  828. data/spec/payroll_au/models/tax_line_spec.rb +71 -0
  829. data/spec/payroll_au/models/tfn_exemption_type_spec.rb +35 -0
  830. data/spec/payroll_au/models/timesheet_line_spec.rb +59 -0
  831. data/spec/payroll_au/models/timesheet_object_spec.rb +41 -0
  832. data/spec/payroll_au/models/timesheet_spec.rb +89 -0
  833. data/spec/payroll_au/models/timesheet_status_spec.rb +35 -0
  834. data/spec/payroll_au/models/timesheets_spec.rb +41 -0
  835. data/spec/payroll_au/models/validation_error_spec.rb +41 -0
  836. data/spec/payroll_nz/api/payroll_nz_api_spec.rb +886 -0
  837. data/spec/payroll_nz/models/account_spec.rb +63 -0
  838. data/spec/payroll_nz/models/accounts_spec.rb +41 -0
  839. data/spec/payroll_nz/models/address_spec.rb +71 -0
  840. data/spec/payroll_nz/models/bank_account_spec.rb +87 -0
  841. data/spec/payroll_nz/models/benefit_spec.rb +103 -0
  842. data/spec/payroll_nz/models/deduction_line_spec.rb +65 -0
  843. data/spec/payroll_nz/models/deduction_object_spec.rb +53 -0
  844. data/spec/payroll_nz/models/deduction_spec.rb +75 -0
  845. data/spec/payroll_nz/models/deductions_spec.rb +53 -0
  846. data/spec/payroll_nz/models/earnings_line_spec.rb +95 -0
  847. data/spec/payroll_nz/models/earnings_order_object_spec.rb +53 -0
  848. data/spec/payroll_nz/models/earnings_order_spec.rb +65 -0
  849. data/spec/payroll_nz/models/earnings_orders_spec.rb +53 -0
  850. data/spec/payroll_nz/models/earnings_rate_object_spec.rb +53 -0
  851. data/spec/payroll_nz/models/earnings_rate_spec.rb +103 -0
  852. data/spec/payroll_nz/models/earnings_rates_spec.rb +53 -0
  853. data/spec/payroll_nz/models/earnings_template_object_spec.rb +53 -0
  854. data/spec/payroll_nz/models/earnings_template_spec.rb +71 -0
  855. data/spec/payroll_nz/models/employee_earnings_templates_spec.rb +53 -0
  856. data/spec/payroll_nz/models/employee_leave_balance_spec.rb +59 -0
  857. data/spec/payroll_nz/models/employee_leave_balances_spec.rb +53 -0
  858. data/spec/payroll_nz/models/employee_leave_object_spec.rb +53 -0
  859. data/spec/payroll_nz/models/employee_leave_setup_object_spec.rb +53 -0
  860. data/spec/payroll_nz/models/employee_leave_setup_spec.rb +77 -0
  861. data/spec/payroll_nz/models/employee_leave_spec.rb +77 -0
  862. data/spec/payroll_nz/models/employee_leave_type_object_spec.rb +53 -0
  863. data/spec/payroll_nz/models/employee_leave_type_spec.rb +99 -0
  864. data/spec/payroll_nz/models/employee_leave_types_spec.rb +53 -0
  865. data/spec/payroll_nz/models/employee_leaves_spec.rb +53 -0
  866. data/spec/payroll_nz/models/employee_object_spec.rb +53 -0
  867. data/spec/payroll_nz/models/employee_opening_balance_spec.rb +59 -0
  868. data/spec/payroll_nz/models/employee_opening_balances_object_spec.rb +53 -0
  869. data/spec/payroll_nz/models/employee_pay_template_object_spec.rb +53 -0
  870. data/spec/payroll_nz/models/employee_pay_template_spec.rb +47 -0
  871. data/spec/payroll_nz/models/employee_pay_templates_spec.rb +53 -0
  872. data/spec/payroll_nz/models/employee_spec.rb +123 -0
  873. data/spec/payroll_nz/models/employee_statutory_leave_balance_object_spec.rb +53 -0
  874. data/spec/payroll_nz/models/employee_statutory_leave_balance_spec.rb +61 -0
  875. data/spec/payroll_nz/models/employee_statutory_leave_summary_spec.rb +85 -0
  876. data/spec/payroll_nz/models/employee_statutory_leaves_summaries_spec.rb +53 -0
  877. data/spec/payroll_nz/models/employee_statutory_sick_leave_object_spec.rb +53 -0
  878. data/spec/payroll_nz/models/employee_statutory_sick_leave_spec.rb +135 -0
  879. data/spec/payroll_nz/models/employee_statutory_sick_leaves_spec.rb +53 -0
  880. data/spec/payroll_nz/models/employee_tax_object_spec.rb +53 -0
  881. data/spec/payroll_nz/models/employee_tax_spec.rb +135 -0
  882. data/spec/payroll_nz/models/employees_spec.rb +53 -0
  883. data/spec/payroll_nz/models/employment_object_spec.rb +53 -0
  884. data/spec/payroll_nz/models/employment_spec.rb +53 -0
  885. data/spec/payroll_nz/models/gross_earnings_history_spec.rb +47 -0
  886. data/spec/payroll_nz/models/invalid_field_spec.rb +47 -0
  887. data/spec/payroll_nz/models/leave_accrual_line_spec.rb +47 -0
  888. data/spec/payroll_nz/models/leave_earnings_line_spec.rb +95 -0
  889. data/spec/payroll_nz/models/leave_period_spec.rb +63 -0
  890. data/spec/payroll_nz/models/leave_periods_spec.rb +53 -0
  891. data/spec/payroll_nz/models/leave_type_object_spec.rb +53 -0
  892. data/spec/payroll_nz/models/leave_type_spec.rb +71 -0
  893. data/spec/payroll_nz/models/leave_types_spec.rb +53 -0
  894. data/spec/payroll_nz/models/pagination_spec.rb +59 -0
  895. data/spec/payroll_nz/models/pay_run_calendar_object_spec.rb +53 -0
  896. data/spec/payroll_nz/models/pay_run_calendar_spec.rb +81 -0
  897. data/spec/payroll_nz/models/pay_run_calendars_spec.rb +53 -0
  898. data/spec/payroll_nz/models/pay_run_object_spec.rb +53 -0
  899. data/spec/payroll_nz/models/pay_run_spec.rb +119 -0
  900. data/spec/payroll_nz/models/pay_runs_spec.rb +53 -0
  901. data/spec/payroll_nz/models/pay_slip_object_spec.rb +53 -0
  902. data/spec/payroll_nz/models/pay_slip_spec.rb +219 -0
  903. data/spec/payroll_nz/models/pay_slips_spec.rb +53 -0
  904. data/spec/payroll_nz/models/payment_line_spec.rb +65 -0
  905. data/spec/payroll_nz/models/payment_method_object_spec.rb +53 -0
  906. data/spec/payroll_nz/models/payment_method_spec.rb +51 -0
  907. data/spec/payroll_nz/models/problem_spec.rb +71 -0
  908. data/spec/payroll_nz/models/reimbursement_line_spec.rb +65 -0
  909. data/spec/payroll_nz/models/reimbursement_object_spec.rb +53 -0
  910. data/spec/payroll_nz/models/reimbursement_spec.rb +101 -0
  911. data/spec/payroll_nz/models/reimbursements_spec.rb +53 -0
  912. data/spec/payroll_nz/models/salary_and_wage_object_spec.rb +53 -0
  913. data/spec/payroll_nz/models/salary_and_wage_spec.rb +103 -0
  914. data/spec/payroll_nz/models/salary_and_wages_spec.rb +53 -0
  915. data/spec/payroll_nz/models/settings_spec.rb +53 -0
  916. data/spec/payroll_nz/models/statutory_deduction_category_spec.rb +35 -0
  917. data/spec/payroll_nz/models/statutory_deduction_line_spec.rb +59 -0
  918. data/spec/payroll_nz/models/statutory_deduction_object_spec.rb +53 -0
  919. data/spec/payroll_nz/models/statutory_deduction_spec.rb +65 -0
  920. data/spec/payroll_nz/models/statutory_deductions_spec.rb +53 -0
  921. data/spec/payroll_nz/models/superannuation_line_spec.rb +71 -0
  922. data/spec/payroll_nz/models/superannuation_object_spec.rb +53 -0
  923. data/spec/payroll_nz/models/superannuations_spec.rb +53 -0
  924. data/spec/payroll_nz/models/tax_code_spec.rb +35 -0
  925. data/spec/payroll_nz/models/tax_line_spec.rb +65 -0
  926. data/spec/payroll_nz/models/tax_settings_spec.rb +75 -0
  927. data/spec/payroll_nz/models/timesheet_earnings_line_spec.rb +95 -0
  928. data/spec/payroll_nz/models/timesheet_line_object_spec.rb +53 -0
  929. data/spec/payroll_nz/models/timesheet_line_spec.rb +65 -0
  930. data/spec/payroll_nz/models/timesheet_object_spec.rb +53 -0
  931. data/spec/payroll_nz/models/timesheet_spec.rb +93 -0
  932. data/spec/payroll_nz/models/timesheets_spec.rb +53 -0
  933. data/spec/payroll_nz/models/tracking_categories_spec.rb +53 -0
  934. data/spec/payroll_nz/models/tracking_category_spec.rb +47 -0
  935. data/spec/payroll_uk/api/payroll_uk_api_spec.rb +912 -0
  936. data/spec/payroll_uk/models/account_spec.rb +63 -0
  937. data/spec/payroll_uk/models/accounts_spec.rb +41 -0
  938. data/spec/payroll_uk/models/address_spec.rb +65 -0
  939. data/spec/payroll_uk/models/bank_account_spec.rb +53 -0
  940. data/spec/payroll_uk/models/benefit_line_spec.rb +65 -0
  941. data/spec/payroll_uk/models/benefit_object_spec.rb +53 -0
  942. data/spec/payroll_uk/models/benefit_spec.rb +127 -0
  943. data/spec/payroll_uk/models/benefits_spec.rb +53 -0
  944. data/spec/payroll_uk/models/court_order_line_spec.rb +47 -0
  945. data/spec/payroll_uk/models/deduction_line_spec.rb +59 -0
  946. data/spec/payroll_uk/models/deduction_object_spec.rb +53 -0
  947. data/spec/payroll_uk/models/deduction_spec.rb +139 -0
  948. data/spec/payroll_uk/models/deductions_spec.rb +53 -0
  949. data/spec/payroll_uk/models/earnings_line_spec.rb +89 -0
  950. data/spec/payroll_uk/models/earnings_order_object_spec.rb +53 -0
  951. data/spec/payroll_uk/models/earnings_order_spec.rb +65 -0
  952. data/spec/payroll_uk/models/earnings_orders_spec.rb +53 -0
  953. data/spec/payroll_uk/models/earnings_rate_object_spec.rb +53 -0
  954. data/spec/payroll_uk/models/earnings_rate_spec.rb +103 -0
  955. data/spec/payroll_uk/models/earnings_rates_spec.rb +53 -0
  956. data/spec/payroll_uk/models/earnings_template_object_spec.rb +53 -0
  957. data/spec/payroll_uk/models/earnings_template_spec.rb +71 -0
  958. data/spec/payroll_uk/models/employee_leave_balance_spec.rb +59 -0
  959. data/spec/payroll_uk/models/employee_leave_balances_spec.rb +53 -0
  960. data/spec/payroll_uk/models/employee_leave_object_spec.rb +53 -0
  961. data/spec/payroll_uk/models/employee_leave_spec.rb +77 -0
  962. data/spec/payroll_uk/models/employee_leave_type_object_spec.rb +53 -0
  963. data/spec/payroll_uk/models/employee_leave_type_spec.rb +75 -0
  964. data/spec/payroll_uk/models/employee_leave_types_spec.rb +53 -0
  965. data/spec/payroll_uk/models/employee_leaves_spec.rb +53 -0
  966. data/spec/payroll_uk/models/employee_object_spec.rb +53 -0
  967. data/spec/payroll_uk/models/employee_opening_balances_object_spec.rb +53 -0
  968. data/spec/payroll_uk/models/employee_opening_balances_spec.rb +71 -0
  969. data/spec/payroll_uk/models/employee_pay_template_object_spec.rb +53 -0
  970. data/spec/payroll_uk/models/employee_pay_template_spec.rb +47 -0
  971. data/spec/payroll_uk/models/employee_pay_templates_spec.rb +53 -0
  972. data/spec/payroll_uk/models/employee_spec.rb +129 -0
  973. data/spec/payroll_uk/models/employee_statutory_leave_balance_object_spec.rb +53 -0
  974. data/spec/payroll_uk/models/employee_statutory_leave_balance_spec.rb +61 -0
  975. data/spec/payroll_uk/models/employee_statutory_leave_summary_spec.rb +85 -0
  976. data/spec/payroll_uk/models/employee_statutory_leaves_summaries_spec.rb +53 -0
  977. data/spec/payroll_uk/models/employee_statutory_sick_leave_object_spec.rb +53 -0
  978. data/spec/payroll_uk/models/employee_statutory_sick_leave_spec.rb +135 -0
  979. data/spec/payroll_uk/models/employee_statutory_sick_leaves_spec.rb +53 -0
  980. data/spec/payroll_uk/models/employee_tax_object_spec.rb +53 -0
  981. data/spec/payroll_uk/models/employee_tax_spec.rb +101 -0
  982. data/spec/payroll_uk/models/employees_spec.rb +53 -0
  983. data/spec/payroll_uk/models/employment_object_spec.rb +53 -0
  984. data/spec/payroll_uk/models/employment_spec.rb +63 -0
  985. data/spec/payroll_uk/models/invalid_field_spec.rb +47 -0
  986. data/spec/payroll_uk/models/leave_accrual_line_spec.rb +47 -0
  987. data/spec/payroll_uk/models/leave_earnings_line_spec.rb +71 -0
  988. data/spec/payroll_uk/models/leave_period_spec.rb +63 -0
  989. data/spec/payroll_uk/models/leave_periods_spec.rb +53 -0
  990. data/spec/payroll_uk/models/leave_type_object_spec.rb +53 -0
  991. data/spec/payroll_uk/models/leave_type_spec.rb +83 -0
  992. data/spec/payroll_uk/models/leave_types_spec.rb +53 -0
  993. data/spec/payroll_uk/models/pagination_spec.rb +59 -0
  994. data/spec/payroll_uk/models/pay_run_calendar_object_spec.rb +53 -0
  995. data/spec/payroll_uk/models/pay_run_calendar_spec.rb +81 -0
  996. data/spec/payroll_uk/models/pay_run_calendars_spec.rb +53 -0
  997. data/spec/payroll_uk/models/pay_run_object_spec.rb +53 -0
  998. data/spec/payroll_uk/models/pay_run_spec.rb +119 -0
  999. data/spec/payroll_uk/models/pay_runs_spec.rb +53 -0
  1000. data/spec/payroll_uk/models/payment_line_spec.rb +65 -0
  1001. data/spec/payroll_uk/models/payment_method_object_spec.rb +53 -0
  1002. data/spec/payroll_uk/models/payment_method_spec.rb +51 -0
  1003. data/spec/payroll_uk/models/payslip_object_spec.rb +53 -0
  1004. data/spec/payroll_uk/models/payslip_spec.rb +201 -0
  1005. data/spec/payroll_uk/models/payslips_spec.rb +53 -0
  1006. data/spec/payroll_uk/models/problem_spec.rb +71 -0
  1007. data/spec/payroll_uk/models/reimbursement_line_spec.rb +53 -0
  1008. data/spec/payroll_uk/models/reimbursement_object_spec.rb +53 -0
  1009. data/spec/payroll_uk/models/reimbursement_spec.rb +59 -0
  1010. data/spec/payroll_uk/models/reimbursements_spec.rb +53 -0
  1011. data/spec/payroll_uk/models/salary_and_wage_object_spec.rb +53 -0
  1012. data/spec/payroll_uk/models/salary_and_wage_spec.rb +97 -0
  1013. data/spec/payroll_uk/models/salary_and_wages_spec.rb +53 -0
  1014. data/spec/payroll_uk/models/settings_spec.rb +53 -0
  1015. data/spec/payroll_uk/models/statutory_deduction_category_spec.rb +35 -0
  1016. data/spec/payroll_uk/models/statutory_deduction_spec.rb +65 -0
  1017. data/spec/payroll_uk/models/tax_line_spec.rb +71 -0
  1018. data/spec/payroll_uk/models/timesheet_earnings_line_spec.rb +71 -0
  1019. data/spec/payroll_uk/models/timesheet_line_object_spec.rb +53 -0
  1020. data/spec/payroll_uk/models/timesheet_line_spec.rb +65 -0
  1021. data/spec/payroll_uk/models/timesheet_object_spec.rb +53 -0
  1022. data/spec/payroll_uk/models/timesheet_spec.rb +93 -0
  1023. data/spec/payroll_uk/models/timesheets_spec.rb +53 -0
  1024. data/spec/payroll_uk/models/tracking_categories_spec.rb +53 -0
  1025. data/spec/payroll_uk/models/tracking_category_spec.rb +47 -0
  1026. data/xero-ruby.gem +0 -0
  1027. data/xero-ruby.gemspec +1 -1
  1028. metadata +1144 -2
@@ -0,0 +1,21 @@
1
+ # XeroRuby::PayrollUk::PayRunCalendarObject
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **problem** | [**Problem**](Problem.md) | | [optional]
9
+ **pay_run_calendar** | [**PayRunCalendar**](PayRunCalendar.md) | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'XeroRuby::PayrollUk'
15
+
16
+ instance = XeroRuby::PayrollUk::PayRunCalendarObject.new(pagination: null,
17
+ problem: null,
18
+ pay_run_calendar: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,21 @@
1
+ # XeroRuby::PayrollUk::PayRunCalendars
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **problem** | [**Problem**](Problem.md) | | [optional]
9
+ **pay_run_calendars** | [**Array<PayRunCalendar>**](PayRunCalendar.md) | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'XeroRuby::PayrollUk'
15
+
16
+ instance = XeroRuby::PayrollUk::PayRunCalendars.new(pagination: null,
17
+ problem: null,
18
+ pay_run_calendars: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,21 @@
1
+ # XeroRuby::PayrollUk::PayRunObject
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **problem** | [**Problem**](Problem.md) | | [optional]
9
+ **pay_run** | [**PayRun**](PayRun.md) | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'XeroRuby::PayrollUk'
15
+
16
+ instance = XeroRuby::PayrollUk::PayRunObject.new(pagination: null,
17
+ problem: null,
18
+ pay_run: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,21 @@
1
+ # XeroRuby::PayrollUk::PayRuns
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **problem** | [**Problem**](Problem.md) | | [optional]
9
+ **pay_runs** | [**Array<PayRun>**](PayRun.md) | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'XeroRuby::PayrollUk'
15
+
16
+ instance = XeroRuby::PayrollUk::PayRuns.new(pagination: null,
17
+ problem: null,
18
+ pay_runs: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,25 @@
1
+ # XeroRuby::PayrollUk::PaymentLine
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payment_line_id** | **String** | Xero identifier for payroll payment line | [optional]
8
+ **amount** | **Float** | The amount of the payment line | [optional]
9
+ **account_number** | **String** | The account number | [optional]
10
+ **sort_code** | **String** | The account sort code | [optional]
11
+ **account_name** | **String** | The account name | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'XeroRuby::PayrollUk'
17
+
18
+ instance = XeroRuby::PayrollUk::PaymentLine.new(payment_line_id: null,
19
+ amount: null,
20
+ account_number: null,
21
+ sort_code: null,
22
+ account_name: null)
23
+ ```
24
+
25
+
@@ -0,0 +1,19 @@
1
+ # XeroRuby::PayrollUk::PaymentMethod
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **payment_method** | **String** | The payment method code |
8
+ **bank_accounts** | [**Array<BankAccount>**](BankAccount.md) | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'XeroRuby::PayrollUk'
14
+
15
+ instance = XeroRuby::PayrollUk::PaymentMethod.new(payment_method: null,
16
+ bank_accounts: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,21 @@
1
+ # XeroRuby::PayrollUk::PaymentMethodObject
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pagination** | [**Pagination**](Pagination.md) | | [optional]
8
+ **problem** | [**Problem**](Problem.md) | | [optional]
9
+ **payment_method** | [**PaymentMethod**](PaymentMethod.md) | | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'XeroRuby::PayrollUk'
15
+
16
+ instance = XeroRuby::PayrollUk::PaymentMethodObject.new(pagination: null,
17
+ problem: null,
18
+ payment_method: null)
19
+ ```
20
+
21
+
@@ -0,0 +1,4683 @@
1
+ # XeroRuby::PayrollUk::PayrollUkApi
2
+
3
+ All URIs are relative to *https://api.xero.com/payroll.xro/2.0*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**approve_timesheet**](PayrollUkApi.md#approve_timesheet) | **POST** /Timesheets/{TimesheetID}/Approve | approve a timesheet
8
+ [**create_benefit**](PayrollUkApi.md#create_benefit) | **POST** /Benefits | create a new benefit
9
+ [**create_deduction**](PayrollUkApi.md#create_deduction) | **POST** /Deductions | create a new deduction
10
+ [**create_earnings_rate**](PayrollUkApi.md#create_earnings_rate) | **POST** /EarningsRates | create a new earnings rate
11
+ [**create_employee**](PayrollUkApi.md#create_employee) | **POST** /Employees | creates employees
12
+ [**create_employee_earnings_template**](PayrollUkApi.md#create_employee_earnings_template) | **POST** /Employees/{EmployeeId}/PayTemplates/earnings | creates employee earnings template records
13
+ [**create_employee_leave**](PayrollUkApi.md#create_employee_leave) | **POST** /Employees/{EmployeeId}/Leave | creates employee leave records
14
+ [**create_employee_leave_type**](PayrollUkApi.md#create_employee_leave_type) | **POST** /Employees/{EmployeeId}/LeaveTypes | creates employee leave type records
15
+ [**create_employee_opening_balances**](PayrollUkApi.md#create_employee_opening_balances) | **POST** /Employees/{EmployeeId}/ukopeningbalances | creates employee opening balances
16
+ [**create_employee_payment_method**](PayrollUkApi.md#create_employee_payment_method) | **POST** /Employees/{EmployeeId}/PaymentMethods | creates employee payment method
17
+ [**create_employee_salary_and_wage**](PayrollUkApi.md#create_employee_salary_and_wage) | **POST** /Employees/{EmployeeId}/SalaryAndWages | creates employee salary and wage record
18
+ [**create_employee_statutory_sick_leave**](PayrollUkApi.md#create_employee_statutory_sick_leave) | **POST** /StatutoryLeaves/Sick | creates employee statutory sick leave records
19
+ [**create_employment**](PayrollUkApi.md#create_employment) | **POST** /Employees/{EmployeeId}/Employment | creates employment
20
+ [**create_leave_type**](PayrollUkApi.md#create_leave_type) | **POST** /LeaveTypes | create a new leave type
21
+ [**create_multiple_employee_earnings_template**](PayrollUkApi.md#create_multiple_employee_earnings_template) | **POST** /Employees/{EmployeeId}/paytemplateearnings | creates multiple employee earnings template records
22
+ [**create_pay_run_calendar**](PayrollUkApi.md#create_pay_run_calendar) | **POST** /PayRunCalendars | create a new payrun calendar
23
+ [**create_reimbursement**](PayrollUkApi.md#create_reimbursement) | **POST** /Reimbursements | create a new reimbursement
24
+ [**create_timesheet**](PayrollUkApi.md#create_timesheet) | **POST** /Timesheets | create a new timesheet
25
+ [**create_timesheet_line**](PayrollUkApi.md#create_timesheet_line) | **POST** /Timesheets/{TimesheetID}/Lines | create a new timesheet line
26
+ [**delete_employee_earnings_template**](PayrollUkApi.md#delete_employee_earnings_template) | **DELETE** /Employees/{EmployeeId}/PayTemplates/earnings/{PayTemplateEarningID} | deletes an employee earnings template record
27
+ [**delete_employee_leave**](PayrollUkApi.md#delete_employee_leave) | **DELETE** /Employees/{EmployeeId}/Leave/{LeaveID} | deletes an employee leave record
28
+ [**delete_employee_salary_and_wage**](PayrollUkApi.md#delete_employee_salary_and_wage) | **DELETE** /Employees/{EmployeeId}/SalaryAndWages/{SalaryAndWagesID} | deletes an employee salary and wages record
29
+ [**delete_timesheet**](PayrollUkApi.md#delete_timesheet) | **DELETE** /Timesheets/{TimesheetID} | delete a timesheet
30
+ [**delete_timesheet_line**](PayrollUkApi.md#delete_timesheet_line) | **DELETE** /Timesheets/{TimesheetID}/Lines/{TimesheetLineID} | delete a timesheet line
31
+ [**get_benefit**](PayrollUkApi.md#get_benefit) | **GET** /Benefits/{id} | retrieve a single benefit by id
32
+ [**get_benefits**](PayrollUkApi.md#get_benefits) | **GET** /Benefits | searches benefits
33
+ [**get_deduction**](PayrollUkApi.md#get_deduction) | **GET** /Deductions/{deductionId} | retrieve a single deduction by id
34
+ [**get_deductions**](PayrollUkApi.md#get_deductions) | **GET** /Deductions | searches deductions
35
+ [**get_earnings_order**](PayrollUkApi.md#get_earnings_order) | **GET** /EarningsOrders/{id} | retrieve a single deduction by id
36
+ [**get_earnings_orders**](PayrollUkApi.md#get_earnings_orders) | **GET** /EarningsOrders | searches earnings orders
37
+ [**get_earnings_rate**](PayrollUkApi.md#get_earnings_rate) | **GET** /EarningsRates/{EarningsRateID} | retrieve a single earnings rates by id
38
+ [**get_earnings_rates**](PayrollUkApi.md#get_earnings_rates) | **GET** /EarningsRates | searches earnings rates
39
+ [**get_employee**](PayrollUkApi.md#get_employee) | **GET** /Employees/{EmployeeId} | searches employees
40
+ [**get_employee_leave**](PayrollUkApi.md#get_employee_leave) | **GET** /Employees/{EmployeeId}/Leave/{LeaveID} | retrieve a single employee leave record
41
+ [**get_employee_leave_balances**](PayrollUkApi.md#get_employee_leave_balances) | **GET** /Employees/{EmployeeId}/LeaveBalances | search employee leave balances
42
+ [**get_employee_leave_periods**](PayrollUkApi.md#get_employee_leave_periods) | **GET** /Employees/{EmployeeId}/LeavePeriods | searches employee leave periods
43
+ [**get_employee_leave_types**](PayrollUkApi.md#get_employee_leave_types) | **GET** /Employees/{EmployeeId}/LeaveTypes | searches employee leave types
44
+ [**get_employee_leaves**](PayrollUkApi.md#get_employee_leaves) | **GET** /Employees/{EmployeeId}/Leave | search employee leave records
45
+ [**get_employee_opening_balances**](PayrollUkApi.md#get_employee_opening_balances) | **GET** /Employees/{EmployeeId}/ukopeningbalances | retrieve employee openingbalances
46
+ [**get_employee_pay_template**](PayrollUkApi.md#get_employee_pay_template) | **GET** /Employees/{EmployeeId}/PayTemplates | searches employee pay templates
47
+ [**get_employee_payment_method**](PayrollUkApi.md#get_employee_payment_method) | **GET** /Employees/{EmployeeId}/PaymentMethods | retrieves an employee's payment method
48
+ [**get_employee_salary_and_wage**](PayrollUkApi.md#get_employee_salary_and_wage) | **GET** /Employees/{EmployeeId}/SalaryAndWages/{SalaryAndWagesID} | get employee salary and wages record by id
49
+ [**get_employee_salary_and_wages**](PayrollUkApi.md#get_employee_salary_and_wages) | **GET** /Employees/{EmployeeId}/SalaryAndWages | retrieves an employee's salary and wages
50
+ [**get_employee_statutory_leave_balances**](PayrollUkApi.md#get_employee_statutory_leave_balances) | **GET** /Employees/{EmployeeId}/StatutoryLeaveBalance | search employee leave balances
51
+ [**get_employee_statutory_sick_leave**](PayrollUkApi.md#get_employee_statutory_sick_leave) | **GET** /StatutoryLeaves/Sick/{StatutorySickLeaveID} | retrieve a statutory sick leave for an employee
52
+ [**get_employee_tax**](PayrollUkApi.md#get_employee_tax) | **GET** /Employees/{EmployeeId}/Tax | searches tax records for an employee
53
+ [**get_employees**](PayrollUkApi.md#get_employees) | **GET** /Employees | searches employees
54
+ [**get_leave_type**](PayrollUkApi.md#get_leave_type) | **GET** /LeaveTypes/{LeaveTypeID} | retrieve a single leave type by id
55
+ [**get_leave_types**](PayrollUkApi.md#get_leave_types) | **GET** /LeaveTypes | searches leave types
56
+ [**get_pay_run**](PayrollUkApi.md#get_pay_run) | **GET** /PayRuns/{PayRunID} | retrieve a single pay run by id
57
+ [**get_pay_run_calendar**](PayrollUkApi.md#get_pay_run_calendar) | **GET** /PayRunCalendars/{PayRunCalendarID} | retrieve a single payrun calendar by id
58
+ [**get_pay_run_calendars**](PayrollUkApi.md#get_pay_run_calendars) | **GET** /PayRunCalendars | searches payrun calendars
59
+ [**get_pay_runs**](PayrollUkApi.md#get_pay_runs) | **GET** /PayRuns | searches pay runs
60
+ [**get_pay_slip**](PayrollUkApi.md#get_pay_slip) | **GET** /Payslips/{PayslipID} | retrieve a single payslip by id
61
+ [**get_pay_slips**](PayrollUkApi.md#get_pay_slips) | **GET** /Payslips | searches payslips
62
+ [**get_reimbursement**](PayrollUkApi.md#get_reimbursement) | **GET** /Reimbursements/{ReimbursementID} | retrieve a single reimbursement by id
63
+ [**get_reimbursements**](PayrollUkApi.md#get_reimbursements) | **GET** /Reimbursements | searches reimbursements
64
+ [**get_settings**](PayrollUkApi.md#get_settings) | **GET** /Settings | searches settings
65
+ [**get_statutory_leave_summary**](PayrollUkApi.md#get_statutory_leave_summary) | **GET** /statutoryleaves/summary/{EmployeeId} | retrieve a summary of statutory leaves for an employee
66
+ [**get_timesheet**](PayrollUkApi.md#get_timesheet) | **GET** /Timesheets/{TimesheetID} | retrieve a single timesheet by id
67
+ [**get_timesheets**](PayrollUkApi.md#get_timesheets) | **GET** /Timesheets | searches timesheets
68
+ [**get_tracking_categories**](PayrollUkApi.md#get_tracking_categories) | **GET** /settings/trackingCategories | searches tracking categories
69
+ [**revert_timesheet**](PayrollUkApi.md#revert_timesheet) | **POST** /Timesheets/{TimesheetID}/RevertToDraft | revert a timesheet to draft
70
+ [**update_employee**](PayrollUkApi.md#update_employee) | **PUT** /Employees/{EmployeeId} | updates employee
71
+ [**update_employee_earnings_template**](PayrollUkApi.md#update_employee_earnings_template) | **PUT** /Employees/{EmployeeId}/PayTemplates/earnings/{PayTemplateEarningID} | updates employee earnings template records
72
+ [**update_employee_leave**](PayrollUkApi.md#update_employee_leave) | **PUT** /Employees/{EmployeeId}/Leave/{LeaveID} | updates employee leave records
73
+ [**update_employee_opening_balances**](PayrollUkApi.md#update_employee_opening_balances) | **PUT** /Employees/{EmployeeId}/ukopeningbalances | updates employee opening balances
74
+ [**update_employee_salary_and_wage**](PayrollUkApi.md#update_employee_salary_and_wage) | **PUT** /Employees/{EmployeeId}/SalaryAndWages/{SalaryAndWagesID} | updates employee salary and wages record
75
+ [**update_pay_run**](PayrollUkApi.md#update_pay_run) | **PUT** /PayRuns/{PayRunID} | update a pay run
76
+ [**update_timesheet_line**](PayrollUkApi.md#update_timesheet_line) | **PUT** /Timesheets/{TimesheetID}/Lines/{TimesheetLineID} | update a timesheet line
77
+
78
+
79
+
80
+ ## approve_timesheet
81
+
82
+ > TimesheetObject approve_timesheet(xero_tenant_id, timesheet_id)
83
+
84
+ approve a timesheet
85
+
86
+ ### Example
87
+
88
+ ```ruby
89
+ # load the gem
90
+ require 'xero-ruby'
91
+
92
+ creds = {
93
+ client_id: ENV['CLIENT_ID'],
94
+ client_secret: ENV['CLIENT_SECRET'],
95
+ redirect_uri: ENV['REDIRECT_URI'],
96
+ scopes: ENV['SCOPES']
97
+ }
98
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
99
+
100
+ token_set = fetch_valid_token_set(user) # example
101
+
102
+ xero_client.refresh_token_set(token_set)
103
+
104
+ # You need to namespace your api method call to one of the following api sets
105
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
106
+
107
+ api_instance = xero_client.<api_set>
108
+
109
+
110
+
111
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
112
+ timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
113
+ begin
114
+ #approve a timesheet
115
+ result = api_instance.approve_timesheet(xero_tenant_id, timesheet_id)
116
+ p result
117
+ rescue XeroRuby::PayrollUk::ApiError => e
118
+ puts "Exception when calling PayrollUkApi->approve_timesheet: #{e}"
119
+ end
120
+ ```
121
+
122
+ ### Parameters
123
+
124
+
125
+ Name | Type | Description | Notes
126
+ ------------- | ------------- | ------------- | -------------
127
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
128
+ **timesheet_id** | [**String**](.md)| Identifier for the timesheet |
129
+
130
+ ### Return type
131
+
132
+ [**TimesheetObject**](TimesheetObject.md)
133
+
134
+ ### Authorization
135
+
136
+ [OAuth2](../README.md#OAuth2)
137
+
138
+ ### HTTP request headers
139
+
140
+ - **Content-Type**: Not defined
141
+ - **Accept**: application/json
142
+
143
+
144
+ ## create_benefit
145
+
146
+ > BenefitObject create_benefit(xero_tenant_id, benefit)
147
+
148
+ create a new benefit
149
+
150
+ ### Example
151
+
152
+ ```ruby
153
+ # load the gem
154
+ require 'xero-ruby'
155
+
156
+ creds = {
157
+ client_id: ENV['CLIENT_ID'],
158
+ client_secret: ENV['CLIENT_SECRET'],
159
+ redirect_uri: ENV['REDIRECT_URI'],
160
+ scopes: ENV['SCOPES']
161
+ }
162
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
163
+
164
+ token_set = fetch_valid_token_set(user) # example
165
+
166
+ xero_client.refresh_token_set(token_set)
167
+
168
+ # You need to namespace your api method call to one of the following api sets
169
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
170
+
171
+ api_instance = xero_client.<api_set>
172
+
173
+
174
+
175
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
176
+ benefit = { "name": "My Big Bennie", "category": "StakeholderPension", "liabilityAccountId": "e0faa299-ca0d-4b0a-9e32-0dfabdf9179a", "expenseAccountId": "4b03500d-32fd-4616-8d70-e1e56e0519c6", "standardAmount": 50, "percentage": 25, "calculationType": "PercentageOfGross" } # Benefit |
177
+ begin
178
+ #create a new benefit
179
+ result = api_instance.create_benefit(xero_tenant_id, benefit)
180
+ p result
181
+ rescue XeroRuby::PayrollUk::ApiError => e
182
+ puts "Exception when calling PayrollUkApi->create_benefit: #{e}"
183
+ end
184
+ ```
185
+
186
+ ### Parameters
187
+
188
+
189
+ Name | Type | Description | Notes
190
+ ------------- | ------------- | ------------- | -------------
191
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
192
+ **benefit** | [**Benefit**](Benefit.md)| |
193
+
194
+ ### Return type
195
+
196
+ [**BenefitObject**](BenefitObject.md)
197
+
198
+ ### Authorization
199
+
200
+ [OAuth2](../README.md#OAuth2)
201
+
202
+ ### HTTP request headers
203
+
204
+ - **Content-Type**: application/json
205
+ - **Accept**: application/json
206
+
207
+
208
+ ## create_deduction
209
+
210
+ > DeductionObject create_deduction(xero_tenant_id, deduction)
211
+
212
+ create a new deduction
213
+
214
+ ### Example
215
+
216
+ ```ruby
217
+ # load the gem
218
+ require 'xero-ruby'
219
+
220
+ creds = {
221
+ client_id: ENV['CLIENT_ID'],
222
+ client_secret: ENV['CLIENT_SECRET'],
223
+ redirect_uri: ENV['REDIRECT_URI'],
224
+ scopes: ENV['SCOPES']
225
+ }
226
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
227
+
228
+ token_set = fetch_valid_token_set(user) # example
229
+
230
+ xero_client.refresh_token_set(token_set)
231
+
232
+ # You need to namespace your api method call to one of the following api sets
233
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
234
+
235
+ api_instance = xero_client.<api_set>
236
+
237
+
238
+
239
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
240
+ deduction = { "deductionName": "My new deducation", "deductionCategory": "SalarySacrifice", "liabilityAccountId": "e0faa299-ca0d-4b0a-9e32-0dfabdf9179a", "calculationType": "FixedAmount" } # Deduction |
241
+ begin
242
+ #create a new deduction
243
+ result = api_instance.create_deduction(xero_tenant_id, deduction)
244
+ p result
245
+ rescue XeroRuby::PayrollUk::ApiError => e
246
+ puts "Exception when calling PayrollUkApi->create_deduction: #{e}"
247
+ end
248
+ ```
249
+
250
+ ### Parameters
251
+
252
+
253
+ Name | Type | Description | Notes
254
+ ------------- | ------------- | ------------- | -------------
255
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
256
+ **deduction** | [**Deduction**](Deduction.md)| |
257
+
258
+ ### Return type
259
+
260
+ [**DeductionObject**](DeductionObject.md)
261
+
262
+ ### Authorization
263
+
264
+ [OAuth2](../README.md#OAuth2)
265
+
266
+ ### HTTP request headers
267
+
268
+ - **Content-Type**: application/json
269
+ - **Accept**: application/json
270
+
271
+
272
+ ## create_earnings_rate
273
+
274
+ > EarningsRateObject create_earnings_rate(xero_tenant_id, earnings_rate)
275
+
276
+ create a new earnings rate
277
+
278
+ ### Example
279
+
280
+ ```ruby
281
+ # load the gem
282
+ require 'xero-ruby'
283
+
284
+ creds = {
285
+ client_id: ENV['CLIENT_ID'],
286
+ client_secret: ENV['CLIENT_SECRET'],
287
+ redirect_uri: ENV['REDIRECT_URI'],
288
+ scopes: ENV['SCOPES']
289
+ }
290
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
291
+
292
+ token_set = fetch_valid_token_set(user) # example
293
+
294
+ xero_client.refresh_token_set(token_set)
295
+
296
+ # You need to namespace your api method call to one of the following api sets
297
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
298
+
299
+ api_instance = xero_client.<api_set>
300
+
301
+
302
+
303
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
304
+ earnings_rate = { "name": "My Earnings Rate", "earningsType": "RegularEarnings", "rateType": "RatePerUnit", "typeOfUnits": "hours", "expenseAccountID": "4b03500d-32fd-4616-8d70-e1e56e0519c6" } # EarningsRate |
305
+ begin
306
+ #create a new earnings rate
307
+ result = api_instance.create_earnings_rate(xero_tenant_id, earnings_rate)
308
+ p result
309
+ rescue XeroRuby::PayrollUk::ApiError => e
310
+ puts "Exception when calling PayrollUkApi->create_earnings_rate: #{e}"
311
+ end
312
+ ```
313
+
314
+ ### Parameters
315
+
316
+
317
+ Name | Type | Description | Notes
318
+ ------------- | ------------- | ------------- | -------------
319
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
320
+ **earnings_rate** | [**EarningsRate**](EarningsRate.md)| |
321
+
322
+ ### Return type
323
+
324
+ [**EarningsRateObject**](EarningsRateObject.md)
325
+
326
+ ### Authorization
327
+
328
+ [OAuth2](../README.md#OAuth2)
329
+
330
+ ### HTTP request headers
331
+
332
+ - **Content-Type**: application/json
333
+ - **Accept**: application/json
334
+
335
+
336
+ ## create_employee
337
+
338
+ > EmployeeObject create_employee(xero_tenant_id, employee)
339
+
340
+ creates employees
341
+
342
+ ### Example
343
+
344
+ ```ruby
345
+ # load the gem
346
+ require 'xero-ruby'
347
+
348
+ creds = {
349
+ client_id: ENV['CLIENT_ID'],
350
+ client_secret: ENV['CLIENT_SECRET'],
351
+ redirect_uri: ENV['REDIRECT_URI'],
352
+ scopes: ENV['SCOPES']
353
+ }
354
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
355
+
356
+ token_set = fetch_valid_token_set(user) # example
357
+
358
+ xero_client.refresh_token_set(token_set)
359
+
360
+ # You need to namespace your api method call to one of the following api sets
361
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
362
+
363
+ api_instance = xero_client.<api_set>
364
+
365
+
366
+
367
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
368
+ employee = { "title":"Mr", "firstName":"Mike", "lastName":"Fancy", "dateOfBirth":"1999-01-01", "address":{ "addressLine1":"101 Green St", "city":"San Francisco", "postCode":"6TGR4F", "country":"UK" }, "email":"mike@starkindustries.com", "gender":"M" } # Employee |
369
+ begin
370
+ #creates employees
371
+ result = api_instance.create_employee(xero_tenant_id, employee)
372
+ p result
373
+ rescue XeroRuby::PayrollUk::ApiError => e
374
+ puts "Exception when calling PayrollUkApi->create_employee: #{e}"
375
+ end
376
+ ```
377
+
378
+ ### Parameters
379
+
380
+
381
+ Name | Type | Description | Notes
382
+ ------------- | ------------- | ------------- | -------------
383
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
384
+ **employee** | [**Employee**](Employee.md)| |
385
+
386
+ ### Return type
387
+
388
+ [**EmployeeObject**](EmployeeObject.md)
389
+
390
+ ### Authorization
391
+
392
+ [OAuth2](../README.md#OAuth2)
393
+
394
+ ### HTTP request headers
395
+
396
+ - **Content-Type**: application/json
397
+ - **Accept**: application/json
398
+
399
+
400
+ ## create_employee_earnings_template
401
+
402
+ > EarningsTemplateObject create_employee_earnings_template(xero_tenant_id, employee_id, earnings_template)
403
+
404
+ creates employee earnings template records
405
+
406
+ ### Example
407
+
408
+ ```ruby
409
+ # load the gem
410
+ require 'xero-ruby'
411
+
412
+ creds = {
413
+ client_id: ENV['CLIENT_ID'],
414
+ client_secret: ENV['CLIENT_SECRET'],
415
+ redirect_uri: ENV['REDIRECT_URI'],
416
+ scopes: ENV['SCOPES']
417
+ }
418
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
419
+
420
+ token_set = fetch_valid_token_set(user) # example
421
+
422
+ xero_client.refresh_token_set(token_set)
423
+
424
+ # You need to namespace your api method call to one of the following api sets
425
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
426
+
427
+ api_instance = xero_client.<api_set>
428
+
429
+
430
+
431
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
432
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
433
+ earnings_template = XeroRuby::PayrollUk::EarningsTemplate.new # EarningsTemplate |
434
+ begin
435
+ #creates employee earnings template records
436
+ result = api_instance.create_employee_earnings_template(xero_tenant_id, employee_id, earnings_template)
437
+ p result
438
+ rescue XeroRuby::PayrollUk::ApiError => e
439
+ puts "Exception when calling PayrollUkApi->create_employee_earnings_template: #{e}"
440
+ end
441
+ ```
442
+
443
+ ### Parameters
444
+
445
+
446
+ Name | Type | Description | Notes
447
+ ------------- | ------------- | ------------- | -------------
448
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
449
+ **employee_id** | [**String**](.md)| Employee id for single object |
450
+ **earnings_template** | [**EarningsTemplate**](EarningsTemplate.md)| |
451
+
452
+ ### Return type
453
+
454
+ [**EarningsTemplateObject**](EarningsTemplateObject.md)
455
+
456
+ ### Authorization
457
+
458
+ [OAuth2](../README.md#OAuth2)
459
+
460
+ ### HTTP request headers
461
+
462
+ - **Content-Type**: application/json
463
+ - **Accept**: application/json
464
+
465
+
466
+ ## create_employee_leave
467
+
468
+ > EmployeeLeaveObject create_employee_leave(xero_tenant_id, employee_id, employee_leave)
469
+
470
+ creates employee leave records
471
+
472
+ ### Example
473
+
474
+ ```ruby
475
+ # load the gem
476
+ require 'xero-ruby'
477
+
478
+ creds = {
479
+ client_id: ENV['CLIENT_ID'],
480
+ client_secret: ENV['CLIENT_SECRET'],
481
+ redirect_uri: ENV['REDIRECT_URI'],
482
+ scopes: ENV['SCOPES']
483
+ }
484
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
485
+
486
+ token_set = fetch_valid_token_set(user) # example
487
+
488
+ xero_client.refresh_token_set(token_set)
489
+
490
+ # You need to namespace your api method call to one of the following api sets
491
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
492
+
493
+ api_instance = xero_client.<api_set>
494
+
495
+
496
+
497
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
498
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
499
+ employee_leave = { "leaveTypeID": "1d2778ee-86ea-45c0-bbf8-1045485f6b3f", "description": "Creating a Desription", "startDate": "2020-03-24", "endDate": "2020-03-26" } # EmployeeLeave |
500
+ begin
501
+ #creates employee leave records
502
+ result = api_instance.create_employee_leave(xero_tenant_id, employee_id, employee_leave)
503
+ p result
504
+ rescue XeroRuby::PayrollUk::ApiError => e
505
+ puts "Exception when calling PayrollUkApi->create_employee_leave: #{e}"
506
+ end
507
+ ```
508
+
509
+ ### Parameters
510
+
511
+
512
+ Name | Type | Description | Notes
513
+ ------------- | ------------- | ------------- | -------------
514
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
515
+ **employee_id** | [**String**](.md)| Employee id for single object |
516
+ **employee_leave** | [**EmployeeLeave**](EmployeeLeave.md)| |
517
+
518
+ ### Return type
519
+
520
+ [**EmployeeLeaveObject**](EmployeeLeaveObject.md)
521
+
522
+ ### Authorization
523
+
524
+ [OAuth2](../README.md#OAuth2)
525
+
526
+ ### HTTP request headers
527
+
528
+ - **Content-Type**: application/json
529
+ - **Accept**: application/json
530
+
531
+
532
+ ## create_employee_leave_type
533
+
534
+ > EmployeeLeaveTypeObject create_employee_leave_type(xero_tenant_id, employee_id, employee_leave_type)
535
+
536
+ creates employee leave type records
537
+
538
+ ### Example
539
+
540
+ ```ruby
541
+ # load the gem
542
+ require 'xero-ruby'
543
+
544
+ creds = {
545
+ client_id: ENV['CLIENT_ID'],
546
+ client_secret: ENV['CLIENT_SECRET'],
547
+ redirect_uri: ENV['REDIRECT_URI'],
548
+ scopes: ENV['SCOPES']
549
+ }
550
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
551
+
552
+ token_set = fetch_valid_token_set(user) # example
553
+
554
+ xero_client.refresh_token_set(token_set)
555
+
556
+ # You need to namespace your api method call to one of the following api sets
557
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
558
+
559
+ api_instance = xero_client.<api_set>
560
+
561
+
562
+
563
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
564
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
565
+ employee_leave_type = { "leaveTypeID": "4918f233-bd31-43f9-9633-bcc6de1178f2", "scheduleOfAccrual": "BeginningOfCalendarYear", "hoursAccruedAnnually": 10 } # EmployeeLeaveType |
566
+ begin
567
+ #creates employee leave type records
568
+ result = api_instance.create_employee_leave_type(xero_tenant_id, employee_id, employee_leave_type)
569
+ p result
570
+ rescue XeroRuby::PayrollUk::ApiError => e
571
+ puts "Exception when calling PayrollUkApi->create_employee_leave_type: #{e}"
572
+ end
573
+ ```
574
+
575
+ ### Parameters
576
+
577
+
578
+ Name | Type | Description | Notes
579
+ ------------- | ------------- | ------------- | -------------
580
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
581
+ **employee_id** | [**String**](.md)| Employee id for single object |
582
+ **employee_leave_type** | [**EmployeeLeaveType**](EmployeeLeaveType.md)| |
583
+
584
+ ### Return type
585
+
586
+ [**EmployeeLeaveTypeObject**](EmployeeLeaveTypeObject.md)
587
+
588
+ ### Authorization
589
+
590
+ [OAuth2](../README.md#OAuth2)
591
+
592
+ ### HTTP request headers
593
+
594
+ - **Content-Type**: application/json
595
+ - **Accept**: application/json
596
+
597
+
598
+ ## create_employee_opening_balances
599
+
600
+ > EmployeeOpeningBalancesObject create_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balances)
601
+
602
+ creates employee opening balances
603
+
604
+ ### Example
605
+
606
+ ```ruby
607
+ # load the gem
608
+ require 'xero-ruby'
609
+
610
+ creds = {
611
+ client_id: ENV['CLIENT_ID'],
612
+ client_secret: ENV['CLIENT_SECRET'],
613
+ redirect_uri: ENV['REDIRECT_URI'],
614
+ scopes: ENV['SCOPES']
615
+ }
616
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
617
+
618
+ token_set = fetch_valid_token_set(user) # example
619
+
620
+ xero_client.refresh_token_set(token_set)
621
+
622
+ # You need to namespace your api method call to one of the following api sets
623
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
624
+
625
+ api_instance = xero_client.<api_set>
626
+
627
+
628
+
629
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
630
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
631
+ employee_opening_balances = { "statutoryAdoptionPay": 10, "statutoryMaternityPay": 10, "statutoryPaternityPay": 10, "statutorySharedParentalPay": 10, "statutorySickPay": 10, "priorEmployeeNumber": 10 } # EmployeeOpeningBalances |
632
+ begin
633
+ #creates employee opening balances
634
+ result = api_instance.create_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balances)
635
+ p result
636
+ rescue XeroRuby::PayrollUk::ApiError => e
637
+ puts "Exception when calling PayrollUkApi->create_employee_opening_balances: #{e}"
638
+ end
639
+ ```
640
+
641
+ ### Parameters
642
+
643
+
644
+ Name | Type | Description | Notes
645
+ ------------- | ------------- | ------------- | -------------
646
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
647
+ **employee_id** | [**String**](.md)| Employee id for single object |
648
+ **employee_opening_balances** | [**EmployeeOpeningBalances**](EmployeeOpeningBalances.md)| |
649
+
650
+ ### Return type
651
+
652
+ [**EmployeeOpeningBalancesObject**](EmployeeOpeningBalancesObject.md)
653
+
654
+ ### Authorization
655
+
656
+ [OAuth2](../README.md#OAuth2)
657
+
658
+ ### HTTP request headers
659
+
660
+ - **Content-Type**: application/json
661
+ - **Accept**: application/json
662
+
663
+
664
+ ## create_employee_payment_method
665
+
666
+ > PaymentMethodObject create_employee_payment_method(xero_tenant_id, employee_id, payment_method)
667
+
668
+ creates employee payment method
669
+
670
+ ### Example
671
+
672
+ ```ruby
673
+ # load the gem
674
+ require 'xero-ruby'
675
+
676
+ creds = {
677
+ client_id: ENV['CLIENT_ID'],
678
+ client_secret: ENV['CLIENT_SECRET'],
679
+ redirect_uri: ENV['REDIRECT_URI'],
680
+ scopes: ENV['SCOPES']
681
+ }
682
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
683
+
684
+ token_set = fetch_valid_token_set(user) # example
685
+
686
+ xero_client.refresh_token_set(token_set)
687
+
688
+ # You need to namespace your api method call to one of the following api sets
689
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
690
+
691
+ api_instance = xero_client.<api_set>
692
+
693
+
694
+
695
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
696
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
697
+ payment_method = { "paymentMethod": "Electronically", "bankAccounts": [ { "accountName": "Sid BofA", "accountNumber": "24987654", "sortCode": "287654" } ] } # PaymentMethod |
698
+ begin
699
+ #creates employee payment method
700
+ result = api_instance.create_employee_payment_method(xero_tenant_id, employee_id, payment_method)
701
+ p result
702
+ rescue XeroRuby::PayrollUk::ApiError => e
703
+ puts "Exception when calling PayrollUkApi->create_employee_payment_method: #{e}"
704
+ end
705
+ ```
706
+
707
+ ### Parameters
708
+
709
+
710
+ Name | Type | Description | Notes
711
+ ------------- | ------------- | ------------- | -------------
712
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
713
+ **employee_id** | [**String**](.md)| Employee id for single object |
714
+ **payment_method** | [**PaymentMethod**](PaymentMethod.md)| |
715
+
716
+ ### Return type
717
+
718
+ [**PaymentMethodObject**](PaymentMethodObject.md)
719
+
720
+ ### Authorization
721
+
722
+ [OAuth2](../README.md#OAuth2)
723
+
724
+ ### HTTP request headers
725
+
726
+ - **Content-Type**: application/json
727
+ - **Accept**: application/json
728
+
729
+
730
+ ## create_employee_salary_and_wage
731
+
732
+ > SalaryAndWageObject create_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wage)
733
+
734
+ creates employee salary and wage record
735
+
736
+ ### Example
737
+
738
+ ```ruby
739
+ # load the gem
740
+ require 'xero-ruby'
741
+
742
+ creds = {
743
+ client_id: ENV['CLIENT_ID'],
744
+ client_secret: ENV['CLIENT_SECRET'],
745
+ redirect_uri: ENV['REDIRECT_URI'],
746
+ scopes: ENV['SCOPES']
747
+ }
748
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
749
+
750
+ token_set = fetch_valid_token_set(user) # example
751
+
752
+ xero_client.refresh_token_set(token_set)
753
+
754
+ # You need to namespace your api method call to one of the following api sets
755
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
756
+
757
+ api_instance = xero_client.<api_set>
758
+
759
+
760
+
761
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
762
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
763
+ salary_and_wage = { "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnitsPerWeek": 2, "ratePerUnit": 10, "numberOfUnitsPerDay": 2, "effectiveFrom": "2020-05-01", "annualSalary": 100, "status": "ACTIVE", "paymentType": "Salary" } # SalaryAndWage |
764
+ begin
765
+ #creates employee salary and wage record
766
+ result = api_instance.create_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wage)
767
+ p result
768
+ rescue XeroRuby::PayrollUk::ApiError => e
769
+ puts "Exception when calling PayrollUkApi->create_employee_salary_and_wage: #{e}"
770
+ end
771
+ ```
772
+
773
+ ### Parameters
774
+
775
+
776
+ Name | Type | Description | Notes
777
+ ------------- | ------------- | ------------- | -------------
778
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
779
+ **employee_id** | [**String**](.md)| Employee id for single object |
780
+ **salary_and_wage** | [**SalaryAndWage**](SalaryAndWage.md)| |
781
+
782
+ ### Return type
783
+
784
+ [**SalaryAndWageObject**](SalaryAndWageObject.md)
785
+
786
+ ### Authorization
787
+
788
+ [OAuth2](../README.md#OAuth2)
789
+
790
+ ### HTTP request headers
791
+
792
+ - **Content-Type**: application/json
793
+ - **Accept**: application/json
794
+
795
+
796
+ ## create_employee_statutory_sick_leave
797
+
798
+ > EmployeeStatutorySickLeaveObject create_employee_statutory_sick_leave(xero_tenant_id, employee_statutory_sick_leave)
799
+
800
+ creates employee statutory sick leave records
801
+
802
+ ### Example
803
+
804
+ ```ruby
805
+ # load the gem
806
+ require 'xero-ruby'
807
+
808
+ creds = {
809
+ client_id: ENV['CLIENT_ID'],
810
+ client_secret: ENV['CLIENT_SECRET'],
811
+ redirect_uri: ENV['REDIRECT_URI'],
812
+ scopes: ENV['SCOPES']
813
+ }
814
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
815
+
816
+ token_set = fetch_valid_token_set(user) # example
817
+
818
+ xero_client.refresh_token_set(token_set)
819
+
820
+ # You need to namespace your api method call to one of the following api sets
821
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
822
+
823
+ api_instance = xero_client.<api_set>
824
+
825
+
826
+
827
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
828
+ employee_statutory_sick_leave = { "employeeID": "aad6b292-7b94-408b-93f6-e489867e3fb0", "leaveTypeID": "aab78802-e9d3-4bbd-bc87-df858054988f", "startDate": "2020-04-21", "endDate": "2020-04-24", "workPattern": [ "Monday", "Tuesday", "Wednesday", "Thursday", "Friday" ], "isPregnancyRelated": false, "sufficientNotice": true } # EmployeeStatutorySickLeave |
829
+ begin
830
+ #creates employee statutory sick leave records
831
+ result = api_instance.create_employee_statutory_sick_leave(xero_tenant_id, employee_statutory_sick_leave)
832
+ p result
833
+ rescue XeroRuby::PayrollUk::ApiError => e
834
+ puts "Exception when calling PayrollUkApi->create_employee_statutory_sick_leave: #{e}"
835
+ end
836
+ ```
837
+
838
+ ### Parameters
839
+
840
+
841
+ Name | Type | Description | Notes
842
+ ------------- | ------------- | ------------- | -------------
843
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
844
+ **employee_statutory_sick_leave** | [**EmployeeStatutorySickLeave**](EmployeeStatutorySickLeave.md)| |
845
+
846
+ ### Return type
847
+
848
+ [**EmployeeStatutorySickLeaveObject**](EmployeeStatutorySickLeaveObject.md)
849
+
850
+ ### Authorization
851
+
852
+ [OAuth2](../README.md#OAuth2)
853
+
854
+ ### HTTP request headers
855
+
856
+ - **Content-Type**: application/json
857
+ - **Accept**: application/json
858
+
859
+
860
+ ## create_employment
861
+
862
+ > EmploymentObject create_employment(xero_tenant_id, employee_id, employment)
863
+
864
+ creates employment
865
+
866
+ ### Example
867
+
868
+ ```ruby
869
+ # load the gem
870
+ require 'xero-ruby'
871
+
872
+ creds = {
873
+ client_id: ENV['CLIENT_ID'],
874
+ client_secret: ENV['CLIENT_SECRET'],
875
+ redirect_uri: ENV['REDIRECT_URI'],
876
+ scopes: ENV['SCOPES']
877
+ }
878
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
879
+
880
+ token_set = fetch_valid_token_set(user) # example
881
+
882
+ xero_client.refresh_token_set(token_set)
883
+
884
+ # You need to namespace your api method call to one of the following api sets
885
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
886
+
887
+ api_instance = xero_client.<api_set>
888
+
889
+
890
+
891
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
892
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
893
+ employment = { "PayrollCalendarID": "216d80e6-af55-47b1-b718-9457c3f5d2fe", "StartDate": "2020-04-01", "EmployeeNumber": "123ABC", "NICategory": "A" } # Employment |
894
+ begin
895
+ #creates employment
896
+ result = api_instance.create_employment(xero_tenant_id, employee_id, employment)
897
+ p result
898
+ rescue XeroRuby::PayrollUk::ApiError => e
899
+ puts "Exception when calling PayrollUkApi->create_employment: #{e}"
900
+ end
901
+ ```
902
+
903
+ ### Parameters
904
+
905
+
906
+ Name | Type | Description | Notes
907
+ ------------- | ------------- | ------------- | -------------
908
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
909
+ **employee_id** | [**String**](.md)| Employee id for single object |
910
+ **employment** | [**Employment**](Employment.md)| |
911
+
912
+ ### Return type
913
+
914
+ [**EmploymentObject**](EmploymentObject.md)
915
+
916
+ ### Authorization
917
+
918
+ [OAuth2](../README.md#OAuth2)
919
+
920
+ ### HTTP request headers
921
+
922
+ - **Content-Type**: application/json
923
+ - **Accept**: application/json
924
+
925
+
926
+ ## create_leave_type
927
+
928
+ > LeaveTypeObject create_leave_type(xero_tenant_id, leave_type)
929
+
930
+ create a new leave type
931
+
932
+ ### Example
933
+
934
+ ```ruby
935
+ # load the gem
936
+ require 'xero-ruby'
937
+
938
+ creds = {
939
+ client_id: ENV['CLIENT_ID'],
940
+ client_secret: ENV['CLIENT_SECRET'],
941
+ redirect_uri: ENV['REDIRECT_URI'],
942
+ scopes: ENV['SCOPES']
943
+ }
944
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
945
+
946
+ token_set = fetch_valid_token_set(user) # example
947
+
948
+ xero_client.refresh_token_set(token_set)
949
+
950
+ # You need to namespace your api method call to one of the following api sets
951
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
952
+
953
+ api_instance = xero_client.<api_set>
954
+
955
+
956
+
957
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
958
+ leave_type = { "name": "My opebvwbfxf Leave", "isPaidLeave": false, "showOnPayslip": true } # LeaveType |
959
+ begin
960
+ #create a new leave type
961
+ result = api_instance.create_leave_type(xero_tenant_id, leave_type)
962
+ p result
963
+ rescue XeroRuby::PayrollUk::ApiError => e
964
+ puts "Exception when calling PayrollUkApi->create_leave_type: #{e}"
965
+ end
966
+ ```
967
+
968
+ ### Parameters
969
+
970
+
971
+ Name | Type | Description | Notes
972
+ ------------- | ------------- | ------------- | -------------
973
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
974
+ **leave_type** | [**LeaveType**](LeaveType.md)| |
975
+
976
+ ### Return type
977
+
978
+ [**LeaveTypeObject**](LeaveTypeObject.md)
979
+
980
+ ### Authorization
981
+
982
+ [OAuth2](../README.md#OAuth2)
983
+
984
+ ### HTTP request headers
985
+
986
+ - **Content-Type**: application/json
987
+ - **Accept**: application/json
988
+
989
+
990
+ ## create_multiple_employee_earnings_template
991
+
992
+ > EmployeePayTemplates create_multiple_employee_earnings_template(xero_tenant_id, employee_id, earnings_template)
993
+
994
+ creates multiple employee earnings template records
995
+
996
+ ### Example
997
+
998
+ ```ruby
999
+ # load the gem
1000
+ require 'xero-ruby'
1001
+
1002
+ creds = {
1003
+ client_id: ENV['CLIENT_ID'],
1004
+ client_secret: ENV['CLIENT_SECRET'],
1005
+ redirect_uri: ENV['REDIRECT_URI'],
1006
+ scopes: ENV['SCOPES']
1007
+ }
1008
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1009
+
1010
+ token_set = fetch_valid_token_set(user) # example
1011
+
1012
+ xero_client.refresh_token_set(token_set)
1013
+
1014
+ # You need to namespace your api method call to one of the following api sets
1015
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1016
+
1017
+ api_instance = xero_client.<api_set>
1018
+
1019
+
1020
+
1021
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1022
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
1023
+ earnings_template = [ { "ratePerUnit":20.0, "numberOfUnits":8.0, "earningsRateID":"87f5b43a-cf51-4b74-92de-94c819e82d27" }, { "ratePerUnit":20.0, "numberOfUnits":8.0, "earningsRateID":"973365f3-66b2-4c33-8ae6-14b75f78f68b" } ] # Array<EarningsTemplate> |
1024
+ begin
1025
+ #creates multiple employee earnings template records
1026
+ result = api_instance.create_multiple_employee_earnings_template(xero_tenant_id, employee_id, earnings_template)
1027
+ p result
1028
+ rescue XeroRuby::PayrollUk::ApiError => e
1029
+ puts "Exception when calling PayrollUkApi->create_multiple_employee_earnings_template: #{e}"
1030
+ end
1031
+ ```
1032
+
1033
+ ### Parameters
1034
+
1035
+
1036
+ Name | Type | Description | Notes
1037
+ ------------- | ------------- | ------------- | -------------
1038
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1039
+ **employee_id** | [**String**](.md)| Employee id for single object |
1040
+ **earnings_template** | [**Array&lt;EarningsTemplate&gt;**](EarningsTemplate.md)| |
1041
+
1042
+ ### Return type
1043
+
1044
+ [**EmployeePayTemplates**](EmployeePayTemplates.md)
1045
+
1046
+ ### Authorization
1047
+
1048
+ [OAuth2](../README.md#OAuth2)
1049
+
1050
+ ### HTTP request headers
1051
+
1052
+ - **Content-Type**: application/json
1053
+ - **Accept**: application/json
1054
+
1055
+
1056
+ ## create_pay_run_calendar
1057
+
1058
+ > PayRunCalendarObject create_pay_run_calendar(xero_tenant_id, pay_run_calendar)
1059
+
1060
+ create a new payrun calendar
1061
+
1062
+ ### Example
1063
+
1064
+ ```ruby
1065
+ # load the gem
1066
+ require 'xero-ruby'
1067
+
1068
+ creds = {
1069
+ client_id: ENV['CLIENT_ID'],
1070
+ client_secret: ENV['CLIENT_SECRET'],
1071
+ redirect_uri: ENV['REDIRECT_URI'],
1072
+ scopes: ENV['SCOPES']
1073
+ }
1074
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1075
+
1076
+ token_set = fetch_valid_token_set(user) # example
1077
+
1078
+ xero_client.refresh_token_set(token_set)
1079
+
1080
+ # You need to namespace your api method call to one of the following api sets
1081
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1082
+
1083
+ api_instance = xero_client.<api_set>
1084
+
1085
+
1086
+
1087
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1088
+ pay_run_calendar = { "name": "My Weekly Cal", "calendarType": "Weekly", "periodStartDate": "2020-05-01", "paymentDate": "2020-05-15" } # PayRunCalendar |
1089
+ begin
1090
+ #create a new payrun calendar
1091
+ result = api_instance.create_pay_run_calendar(xero_tenant_id, pay_run_calendar)
1092
+ p result
1093
+ rescue XeroRuby::PayrollUk::ApiError => e
1094
+ puts "Exception when calling PayrollUkApi->create_pay_run_calendar: #{e}"
1095
+ end
1096
+ ```
1097
+
1098
+ ### Parameters
1099
+
1100
+
1101
+ Name | Type | Description | Notes
1102
+ ------------- | ------------- | ------------- | -------------
1103
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1104
+ **pay_run_calendar** | [**PayRunCalendar**](PayRunCalendar.md)| |
1105
+
1106
+ ### Return type
1107
+
1108
+ [**PayRunCalendarObject**](PayRunCalendarObject.md)
1109
+
1110
+ ### Authorization
1111
+
1112
+ [OAuth2](../README.md#OAuth2)
1113
+
1114
+ ### HTTP request headers
1115
+
1116
+ - **Content-Type**: application/json
1117
+ - **Accept**: application/json
1118
+
1119
+
1120
+ ## create_reimbursement
1121
+
1122
+ > ReimbursementObject create_reimbursement(xero_tenant_id, reimbursement)
1123
+
1124
+ create a new reimbursement
1125
+
1126
+ ### Example
1127
+
1128
+ ```ruby
1129
+ # load the gem
1130
+ require 'xero-ruby'
1131
+
1132
+ creds = {
1133
+ client_id: ENV['CLIENT_ID'],
1134
+ client_secret: ENV['CLIENT_SECRET'],
1135
+ redirect_uri: ENV['REDIRECT_URI'],
1136
+ scopes: ENV['SCOPES']
1137
+ }
1138
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1139
+
1140
+ token_set = fetch_valid_token_set(user) # example
1141
+
1142
+ xero_client.refresh_token_set(token_set)
1143
+
1144
+ # You need to namespace your api method call to one of the following api sets
1145
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1146
+
1147
+ api_instance = xero_client.<api_set>
1148
+
1149
+
1150
+
1151
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1152
+ reimbursement = { "name": "My new Reimburse", "accountID": "9ee28149-32a9-4661-8eab-a28738696983" } # Reimbursement |
1153
+ begin
1154
+ #create a new reimbursement
1155
+ result = api_instance.create_reimbursement(xero_tenant_id, reimbursement)
1156
+ p result
1157
+ rescue XeroRuby::PayrollUk::ApiError => e
1158
+ puts "Exception when calling PayrollUkApi->create_reimbursement: #{e}"
1159
+ end
1160
+ ```
1161
+
1162
+ ### Parameters
1163
+
1164
+
1165
+ Name | Type | Description | Notes
1166
+ ------------- | ------------- | ------------- | -------------
1167
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1168
+ **reimbursement** | [**Reimbursement**](Reimbursement.md)| |
1169
+
1170
+ ### Return type
1171
+
1172
+ [**ReimbursementObject**](ReimbursementObject.md)
1173
+
1174
+ ### Authorization
1175
+
1176
+ [OAuth2](../README.md#OAuth2)
1177
+
1178
+ ### HTTP request headers
1179
+
1180
+ - **Content-Type**: application/json
1181
+ - **Accept**: application/json
1182
+
1183
+
1184
+ ## create_timesheet
1185
+
1186
+ > TimesheetObject create_timesheet(xero_tenant_id, timesheet)
1187
+
1188
+ create a new timesheet
1189
+
1190
+ ### Example
1191
+
1192
+ ```ruby
1193
+ # load the gem
1194
+ require 'xero-ruby'
1195
+
1196
+ creds = {
1197
+ client_id: ENV['CLIENT_ID'],
1198
+ client_secret: ENV['CLIENT_SECRET'],
1199
+ redirect_uri: ENV['REDIRECT_URI'],
1200
+ scopes: ENV['SCOPES']
1201
+ }
1202
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1203
+
1204
+ token_set = fetch_valid_token_set(user) # example
1205
+
1206
+ xero_client.refresh_token_set(token_set)
1207
+
1208
+ # You need to namespace your api method call to one of the following api sets
1209
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1210
+
1211
+ api_instance = xero_client.<api_set>
1212
+
1213
+
1214
+
1215
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1216
+ timesheet = { "payrollCalendarID": "216d80e6-af55-47b1-b718-9457c3f5d2fe", "employeeID": "aad6b292-7b94-408b-93f6-e489867e3fb0", "startDate": "2020-04-13", "endDate": "2020-04-19", "timesheetLines": [ { "date": "2020-04-13", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 8 }, { "date": "2020-04-15", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 6 } ] } # Timesheet |
1217
+ begin
1218
+ #create a new timesheet
1219
+ result = api_instance.create_timesheet(xero_tenant_id, timesheet)
1220
+ p result
1221
+ rescue XeroRuby::PayrollUk::ApiError => e
1222
+ puts "Exception when calling PayrollUkApi->create_timesheet: #{e}"
1223
+ end
1224
+ ```
1225
+
1226
+ ### Parameters
1227
+
1228
+
1229
+ Name | Type | Description | Notes
1230
+ ------------- | ------------- | ------------- | -------------
1231
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1232
+ **timesheet** | [**Timesheet**](Timesheet.md)| |
1233
+
1234
+ ### Return type
1235
+
1236
+ [**TimesheetObject**](TimesheetObject.md)
1237
+
1238
+ ### Authorization
1239
+
1240
+ [OAuth2](../README.md#OAuth2)
1241
+
1242
+ ### HTTP request headers
1243
+
1244
+ - **Content-Type**: application/json
1245
+ - **Accept**: application/json
1246
+
1247
+
1248
+ ## create_timesheet_line
1249
+
1250
+ > TimesheetLineObject create_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line)
1251
+
1252
+ create a new timesheet line
1253
+
1254
+ ### Example
1255
+
1256
+ ```ruby
1257
+ # load the gem
1258
+ require 'xero-ruby'
1259
+
1260
+ creds = {
1261
+ client_id: ENV['CLIENT_ID'],
1262
+ client_secret: ENV['CLIENT_SECRET'],
1263
+ redirect_uri: ENV['REDIRECT_URI'],
1264
+ scopes: ENV['SCOPES']
1265
+ }
1266
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1267
+
1268
+ token_set = fetch_valid_token_set(user) # example
1269
+
1270
+ xero_client.refresh_token_set(token_set)
1271
+
1272
+ # You need to namespace your api method call to one of the following api sets
1273
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1274
+
1275
+ api_instance = xero_client.<api_set>
1276
+
1277
+
1278
+
1279
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1280
+ timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
1281
+ timesheet_line = { "date": "2020-04-14", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 1 } # TimesheetLine |
1282
+ begin
1283
+ #create a new timesheet line
1284
+ result = api_instance.create_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line)
1285
+ p result
1286
+ rescue XeroRuby::PayrollUk::ApiError => e
1287
+ puts "Exception when calling PayrollUkApi->create_timesheet_line: #{e}"
1288
+ end
1289
+ ```
1290
+
1291
+ ### Parameters
1292
+
1293
+
1294
+ Name | Type | Description | Notes
1295
+ ------------- | ------------- | ------------- | -------------
1296
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1297
+ **timesheet_id** | [**String**](.md)| Identifier for the timesheet |
1298
+ **timesheet_line** | [**TimesheetLine**](TimesheetLine.md)| |
1299
+
1300
+ ### Return type
1301
+
1302
+ [**TimesheetLineObject**](TimesheetLineObject.md)
1303
+
1304
+ ### Authorization
1305
+
1306
+ [OAuth2](../README.md#OAuth2)
1307
+
1308
+ ### HTTP request headers
1309
+
1310
+ - **Content-Type**: application/json
1311
+ - **Accept**: application/json
1312
+
1313
+
1314
+ ## delete_employee_earnings_template
1315
+
1316
+ > delete_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id)
1317
+
1318
+ deletes an employee earnings template record
1319
+
1320
+ ### Example
1321
+
1322
+ ```ruby
1323
+ # load the gem
1324
+ require 'xero-ruby'
1325
+
1326
+ creds = {
1327
+ client_id: ENV['CLIENT_ID'],
1328
+ client_secret: ENV['CLIENT_SECRET'],
1329
+ redirect_uri: ENV['REDIRECT_URI'],
1330
+ scopes: ENV['SCOPES']
1331
+ }
1332
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1333
+
1334
+ token_set = fetch_valid_token_set(user) # example
1335
+
1336
+ xero_client.refresh_token_set(token_set)
1337
+
1338
+ # You need to namespace your api method call to one of the following api sets
1339
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1340
+
1341
+ api_instance = xero_client.<api_set>
1342
+
1343
+
1344
+
1345
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1346
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
1347
+ pay_template_earning_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single pay template earnings object
1348
+ begin
1349
+ #deletes an employee earnings template record
1350
+ api_instance.delete_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id)
1351
+ rescue XeroRuby::PayrollUk::ApiError => e
1352
+ puts "Exception when calling PayrollUkApi->delete_employee_earnings_template: #{e}"
1353
+ end
1354
+ ```
1355
+
1356
+ ### Parameters
1357
+
1358
+
1359
+ Name | Type | Description | Notes
1360
+ ------------- | ------------- | ------------- | -------------
1361
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1362
+ **employee_id** | [**String**](.md)| Employee id for single object |
1363
+ **pay_template_earning_id** | [**String**](.md)| Id for single pay template earnings object |
1364
+
1365
+ ### Return type
1366
+
1367
+ nil (empty response body)
1368
+
1369
+ ### Authorization
1370
+
1371
+ [OAuth2](../README.md#OAuth2)
1372
+
1373
+ ### HTTP request headers
1374
+
1375
+ - **Content-Type**: Not defined
1376
+ - **Accept**: Not defined
1377
+
1378
+
1379
+ ## delete_employee_leave
1380
+
1381
+ > EmployeeLeaveObject delete_employee_leave(xero_tenant_id, employee_id, leave_id)
1382
+
1383
+ deletes an employee leave record
1384
+
1385
+ ### Example
1386
+
1387
+ ```ruby
1388
+ # load the gem
1389
+ require 'xero-ruby'
1390
+
1391
+ creds = {
1392
+ client_id: ENV['CLIENT_ID'],
1393
+ client_secret: ENV['CLIENT_SECRET'],
1394
+ redirect_uri: ENV['REDIRECT_URI'],
1395
+ scopes: ENV['SCOPES']
1396
+ }
1397
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1398
+
1399
+ token_set = fetch_valid_token_set(user) # example
1400
+
1401
+ xero_client.refresh_token_set(token_set)
1402
+
1403
+ # You need to namespace your api method call to one of the following api sets
1404
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1405
+
1406
+ api_instance = xero_client.<api_set>
1407
+
1408
+
1409
+
1410
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1411
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
1412
+ leave_id = 'c4be24e5-e840-4c92-9eaa-2d86cd596314' # String | Leave id for single object
1413
+ begin
1414
+ #deletes an employee leave record
1415
+ result = api_instance.delete_employee_leave(xero_tenant_id, employee_id, leave_id)
1416
+ p result
1417
+ rescue XeroRuby::PayrollUk::ApiError => e
1418
+ puts "Exception when calling PayrollUkApi->delete_employee_leave: #{e}"
1419
+ end
1420
+ ```
1421
+
1422
+ ### Parameters
1423
+
1424
+
1425
+ Name | Type | Description | Notes
1426
+ ------------- | ------------- | ------------- | -------------
1427
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1428
+ **employee_id** | [**String**](.md)| Employee id for single object |
1429
+ **leave_id** | [**String**](.md)| Leave id for single object |
1430
+
1431
+ ### Return type
1432
+
1433
+ [**EmployeeLeaveObject**](EmployeeLeaveObject.md)
1434
+
1435
+ ### Authorization
1436
+
1437
+ [OAuth2](../README.md#OAuth2)
1438
+
1439
+ ### HTTP request headers
1440
+
1441
+ - **Content-Type**: Not defined
1442
+ - **Accept**: application/json
1443
+
1444
+
1445
+ ## delete_employee_salary_and_wage
1446
+
1447
+ > delete_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id)
1448
+
1449
+ deletes an employee salary and wages record
1450
+
1451
+ ### Example
1452
+
1453
+ ```ruby
1454
+ # load the gem
1455
+ require 'xero-ruby'
1456
+
1457
+ creds = {
1458
+ client_id: ENV['CLIENT_ID'],
1459
+ client_secret: ENV['CLIENT_SECRET'],
1460
+ redirect_uri: ENV['REDIRECT_URI'],
1461
+ scopes: ENV['SCOPES']
1462
+ }
1463
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1464
+
1465
+ token_set = fetch_valid_token_set(user) # example
1466
+
1467
+ xero_client.refresh_token_set(token_set)
1468
+
1469
+ # You need to namespace your api method call to one of the following api sets
1470
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1471
+
1472
+ api_instance = xero_client.<api_set>
1473
+
1474
+
1475
+
1476
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1477
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
1478
+ salary_and_wages_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single salary and wages object
1479
+ begin
1480
+ #deletes an employee salary and wages record
1481
+ api_instance.delete_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id)
1482
+ rescue XeroRuby::PayrollUk::ApiError => e
1483
+ puts "Exception when calling PayrollUkApi->delete_employee_salary_and_wage: #{e}"
1484
+ end
1485
+ ```
1486
+
1487
+ ### Parameters
1488
+
1489
+
1490
+ Name | Type | Description | Notes
1491
+ ------------- | ------------- | ------------- | -------------
1492
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1493
+ **employee_id** | [**String**](.md)| Employee id for single object |
1494
+ **salary_and_wages_id** | [**String**](.md)| Id for single salary and wages object |
1495
+
1496
+ ### Return type
1497
+
1498
+ nil (empty response body)
1499
+
1500
+ ### Authorization
1501
+
1502
+ [OAuth2](../README.md#OAuth2)
1503
+
1504
+ ### HTTP request headers
1505
+
1506
+ - **Content-Type**: Not defined
1507
+ - **Accept**: Not defined
1508
+
1509
+
1510
+ ## delete_timesheet
1511
+
1512
+ > TimesheetLine delete_timesheet(xero_tenant_id, timesheet_id)
1513
+
1514
+ delete a timesheet
1515
+
1516
+ ### Example
1517
+
1518
+ ```ruby
1519
+ # load the gem
1520
+ require 'xero-ruby'
1521
+
1522
+ creds = {
1523
+ client_id: ENV['CLIENT_ID'],
1524
+ client_secret: ENV['CLIENT_SECRET'],
1525
+ redirect_uri: ENV['REDIRECT_URI'],
1526
+ scopes: ENV['SCOPES']
1527
+ }
1528
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1529
+
1530
+ token_set = fetch_valid_token_set(user) # example
1531
+
1532
+ xero_client.refresh_token_set(token_set)
1533
+
1534
+ # You need to namespace your api method call to one of the following api sets
1535
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1536
+
1537
+ api_instance = xero_client.<api_set>
1538
+
1539
+
1540
+
1541
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1542
+ timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
1543
+ begin
1544
+ #delete a timesheet
1545
+ result = api_instance.delete_timesheet(xero_tenant_id, timesheet_id)
1546
+ p result
1547
+ rescue XeroRuby::PayrollUk::ApiError => e
1548
+ puts "Exception when calling PayrollUkApi->delete_timesheet: #{e}"
1549
+ end
1550
+ ```
1551
+
1552
+ ### Parameters
1553
+
1554
+
1555
+ Name | Type | Description | Notes
1556
+ ------------- | ------------- | ------------- | -------------
1557
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1558
+ **timesheet_id** | [**String**](.md)| Identifier for the timesheet |
1559
+
1560
+ ### Return type
1561
+
1562
+ [**TimesheetLine**](TimesheetLine.md)
1563
+
1564
+ ### Authorization
1565
+
1566
+ [OAuth2](../README.md#OAuth2)
1567
+
1568
+ ### HTTP request headers
1569
+
1570
+ - **Content-Type**: Not defined
1571
+ - **Accept**: application/json
1572
+
1573
+
1574
+ ## delete_timesheet_line
1575
+
1576
+ > TimesheetLine delete_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id)
1577
+
1578
+ delete a timesheet line
1579
+
1580
+ ### Example
1581
+
1582
+ ```ruby
1583
+ # load the gem
1584
+ require 'xero-ruby'
1585
+
1586
+ creds = {
1587
+ client_id: ENV['CLIENT_ID'],
1588
+ client_secret: ENV['CLIENT_SECRET'],
1589
+ redirect_uri: ENV['REDIRECT_URI'],
1590
+ scopes: ENV['SCOPES']
1591
+ }
1592
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1593
+
1594
+ token_set = fetch_valid_token_set(user) # example
1595
+
1596
+ xero_client.refresh_token_set(token_set)
1597
+
1598
+ # You need to namespace your api method call to one of the following api sets
1599
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1600
+
1601
+ api_instance = xero_client.<api_set>
1602
+
1603
+
1604
+
1605
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1606
+ timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
1607
+ timesheet_line_id = 'timesheet_line_id_example' # String | Identifier for the timesheet line
1608
+ begin
1609
+ #delete a timesheet line
1610
+ result = api_instance.delete_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id)
1611
+ p result
1612
+ rescue XeroRuby::PayrollUk::ApiError => e
1613
+ puts "Exception when calling PayrollUkApi->delete_timesheet_line: #{e}"
1614
+ end
1615
+ ```
1616
+
1617
+ ### Parameters
1618
+
1619
+
1620
+ Name | Type | Description | Notes
1621
+ ------------- | ------------- | ------------- | -------------
1622
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1623
+ **timesheet_id** | [**String**](.md)| Identifier for the timesheet |
1624
+ **timesheet_line_id** | [**String**](.md)| Identifier for the timesheet line |
1625
+
1626
+ ### Return type
1627
+
1628
+ [**TimesheetLine**](TimesheetLine.md)
1629
+
1630
+ ### Authorization
1631
+
1632
+ [OAuth2](../README.md#OAuth2)
1633
+
1634
+ ### HTTP request headers
1635
+
1636
+ - **Content-Type**: Not defined
1637
+ - **Accept**: application/json
1638
+
1639
+
1640
+ ## get_benefit
1641
+
1642
+ > BenefitObject get_benefit(xero_tenant_id, id)
1643
+
1644
+ retrieve a single benefit by id
1645
+
1646
+ ### Example
1647
+
1648
+ ```ruby
1649
+ # load the gem
1650
+ require 'xero-ruby'
1651
+
1652
+ creds = {
1653
+ client_id: ENV['CLIENT_ID'],
1654
+ client_secret: ENV['CLIENT_SECRET'],
1655
+ redirect_uri: ENV['REDIRECT_URI'],
1656
+ scopes: ENV['SCOPES']
1657
+ }
1658
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1659
+
1660
+ token_set = fetch_valid_token_set(user) # example
1661
+
1662
+ xero_client.refresh_token_set(token_set)
1663
+
1664
+ # You need to namespace your api method call to one of the following api sets
1665
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1666
+
1667
+ api_instance = xero_client.<api_set>
1668
+
1669
+
1670
+
1671
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1672
+ id = 'id_example' # String | Identifier for the benefit
1673
+ begin
1674
+ #retrieve a single benefit by id
1675
+ result = api_instance.get_benefit(xero_tenant_id, id)
1676
+ p result
1677
+ rescue XeroRuby::PayrollUk::ApiError => e
1678
+ puts "Exception when calling PayrollUkApi->get_benefit: #{e}"
1679
+ end
1680
+ ```
1681
+
1682
+ ### Parameters
1683
+
1684
+
1685
+ Name | Type | Description | Notes
1686
+ ------------- | ------------- | ------------- | -------------
1687
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1688
+ **id** | [**String**](.md)| Identifier for the benefit |
1689
+
1690
+ ### Return type
1691
+
1692
+ [**BenefitObject**](BenefitObject.md)
1693
+
1694
+ ### Authorization
1695
+
1696
+ [OAuth2](../README.md#OAuth2)
1697
+
1698
+ ### HTTP request headers
1699
+
1700
+ - **Content-Type**: Not defined
1701
+ - **Accept**: application/json
1702
+
1703
+
1704
+ ## get_benefits
1705
+
1706
+ > Benefits get_benefits(xero_tenant_id, opts)
1707
+
1708
+ searches benefits
1709
+
1710
+ ### Example
1711
+
1712
+ ```ruby
1713
+ # load the gem
1714
+ require 'xero-ruby'
1715
+
1716
+ creds = {
1717
+ client_id: ENV['CLIENT_ID'],
1718
+ client_secret: ENV['CLIENT_SECRET'],
1719
+ redirect_uri: ENV['REDIRECT_URI'],
1720
+ scopes: ENV['SCOPES']
1721
+ }
1722
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1723
+
1724
+ token_set = fetch_valid_token_set(user) # example
1725
+
1726
+ xero_client.refresh_token_set(token_set)
1727
+
1728
+ # You need to namespace your api method call to one of the following api sets
1729
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1730
+
1731
+ api_instance = xero_client.<api_set>
1732
+
1733
+
1734
+
1735
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1736
+ opts = {
1737
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
1738
+ }
1739
+
1740
+ begin
1741
+ #searches benefits
1742
+ result = api_instance.get_benefits(xero_tenant_id, opts)
1743
+ p result
1744
+ rescue XeroRuby::PayrollUk::ApiError => e
1745
+ puts "Exception when calling PayrollUkApi->get_benefits: #{e}"
1746
+ end
1747
+ ```
1748
+
1749
+ ### Parameters
1750
+
1751
+
1752
+ Name | Type | Description | Notes
1753
+ ------------- | ------------- | ------------- | -------------
1754
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1755
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
1756
+
1757
+ ### Return type
1758
+
1759
+ [**Benefits**](Benefits.md)
1760
+
1761
+ ### Authorization
1762
+
1763
+ [OAuth2](../README.md#OAuth2)
1764
+
1765
+ ### HTTP request headers
1766
+
1767
+ - **Content-Type**: Not defined
1768
+ - **Accept**: application/json
1769
+
1770
+
1771
+ ## get_deduction
1772
+
1773
+ > DeductionObject get_deduction(xero_tenant_id, deduction_id)
1774
+
1775
+ retrieve a single deduction by id
1776
+
1777
+ ### Example
1778
+
1779
+ ```ruby
1780
+ # load the gem
1781
+ require 'xero-ruby'
1782
+
1783
+ creds = {
1784
+ client_id: ENV['CLIENT_ID'],
1785
+ client_secret: ENV['CLIENT_SECRET'],
1786
+ redirect_uri: ENV['REDIRECT_URI'],
1787
+ scopes: ENV['SCOPES']
1788
+ }
1789
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1790
+
1791
+ token_set = fetch_valid_token_set(user) # example
1792
+
1793
+ xero_client.refresh_token_set(token_set)
1794
+
1795
+ # You need to namespace your api method call to one of the following api sets
1796
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1797
+
1798
+ api_instance = xero_client.<api_set>
1799
+
1800
+
1801
+
1802
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1803
+ deduction_id = 'deduction_id_example' # String | Identifier for the deduction
1804
+ begin
1805
+ #retrieve a single deduction by id
1806
+ result = api_instance.get_deduction(xero_tenant_id, deduction_id)
1807
+ p result
1808
+ rescue XeroRuby::PayrollUk::ApiError => e
1809
+ puts "Exception when calling PayrollUkApi->get_deduction: #{e}"
1810
+ end
1811
+ ```
1812
+
1813
+ ### Parameters
1814
+
1815
+
1816
+ Name | Type | Description | Notes
1817
+ ------------- | ------------- | ------------- | -------------
1818
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1819
+ **deduction_id** | [**String**](.md)| Identifier for the deduction |
1820
+
1821
+ ### Return type
1822
+
1823
+ [**DeductionObject**](DeductionObject.md)
1824
+
1825
+ ### Authorization
1826
+
1827
+ [OAuth2](../README.md#OAuth2)
1828
+
1829
+ ### HTTP request headers
1830
+
1831
+ - **Content-Type**: Not defined
1832
+ - **Accept**: application/json
1833
+
1834
+
1835
+ ## get_deductions
1836
+
1837
+ > Deductions get_deductions(xero_tenant_id, opts)
1838
+
1839
+ searches deductions
1840
+
1841
+ ### Example
1842
+
1843
+ ```ruby
1844
+ # load the gem
1845
+ require 'xero-ruby'
1846
+
1847
+ creds = {
1848
+ client_id: ENV['CLIENT_ID'],
1849
+ client_secret: ENV['CLIENT_SECRET'],
1850
+ redirect_uri: ENV['REDIRECT_URI'],
1851
+ scopes: ENV['SCOPES']
1852
+ }
1853
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1854
+
1855
+ token_set = fetch_valid_token_set(user) # example
1856
+
1857
+ xero_client.refresh_token_set(token_set)
1858
+
1859
+ # You need to namespace your api method call to one of the following api sets
1860
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1861
+
1862
+ api_instance = xero_client.<api_set>
1863
+
1864
+
1865
+
1866
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1867
+ opts = {
1868
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
1869
+ }
1870
+
1871
+ begin
1872
+ #searches deductions
1873
+ result = api_instance.get_deductions(xero_tenant_id, opts)
1874
+ p result
1875
+ rescue XeroRuby::PayrollUk::ApiError => e
1876
+ puts "Exception when calling PayrollUkApi->get_deductions: #{e}"
1877
+ end
1878
+ ```
1879
+
1880
+ ### Parameters
1881
+
1882
+
1883
+ Name | Type | Description | Notes
1884
+ ------------- | ------------- | ------------- | -------------
1885
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1886
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
1887
+
1888
+ ### Return type
1889
+
1890
+ [**Deductions**](Deductions.md)
1891
+
1892
+ ### Authorization
1893
+
1894
+ [OAuth2](../README.md#OAuth2)
1895
+
1896
+ ### HTTP request headers
1897
+
1898
+ - **Content-Type**: Not defined
1899
+ - **Accept**: application/json
1900
+
1901
+
1902
+ ## get_earnings_order
1903
+
1904
+ > EarningsOrderObject get_earnings_order(xero_tenant_id, id)
1905
+
1906
+ retrieve a single deduction by id
1907
+
1908
+ ### Example
1909
+
1910
+ ```ruby
1911
+ # load the gem
1912
+ require 'xero-ruby'
1913
+
1914
+ creds = {
1915
+ client_id: ENV['CLIENT_ID'],
1916
+ client_secret: ENV['CLIENT_SECRET'],
1917
+ redirect_uri: ENV['REDIRECT_URI'],
1918
+ scopes: ENV['SCOPES']
1919
+ }
1920
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1921
+
1922
+ token_set = fetch_valid_token_set(user) # example
1923
+
1924
+ xero_client.refresh_token_set(token_set)
1925
+
1926
+ # You need to namespace your api method call to one of the following api sets
1927
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1928
+
1929
+ api_instance = xero_client.<api_set>
1930
+
1931
+
1932
+
1933
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1934
+ id = 'id_example' # String | Identifier for the deduction
1935
+ begin
1936
+ #retrieve a single deduction by id
1937
+ result = api_instance.get_earnings_order(xero_tenant_id, id)
1938
+ p result
1939
+ rescue XeroRuby::PayrollUk::ApiError => e
1940
+ puts "Exception when calling PayrollUkApi->get_earnings_order: #{e}"
1941
+ end
1942
+ ```
1943
+
1944
+ ### Parameters
1945
+
1946
+
1947
+ Name | Type | Description | Notes
1948
+ ------------- | ------------- | ------------- | -------------
1949
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
1950
+ **id** | [**String**](.md)| Identifier for the deduction |
1951
+
1952
+ ### Return type
1953
+
1954
+ [**EarningsOrderObject**](EarningsOrderObject.md)
1955
+
1956
+ ### Authorization
1957
+
1958
+ [OAuth2](../README.md#OAuth2)
1959
+
1960
+ ### HTTP request headers
1961
+
1962
+ - **Content-Type**: Not defined
1963
+ - **Accept**: application/json
1964
+
1965
+
1966
+ ## get_earnings_orders
1967
+
1968
+ > EarningsOrders get_earnings_orders(xero_tenant_id, opts)
1969
+
1970
+ searches earnings orders
1971
+
1972
+ ### Example
1973
+
1974
+ ```ruby
1975
+ # load the gem
1976
+ require 'xero-ruby'
1977
+
1978
+ creds = {
1979
+ client_id: ENV['CLIENT_ID'],
1980
+ client_secret: ENV['CLIENT_SECRET'],
1981
+ redirect_uri: ENV['REDIRECT_URI'],
1982
+ scopes: ENV['SCOPES']
1983
+ }
1984
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
1985
+
1986
+ token_set = fetch_valid_token_set(user) # example
1987
+
1988
+ xero_client.refresh_token_set(token_set)
1989
+
1990
+ # You need to namespace your api method call to one of the following api sets
1991
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
1992
+
1993
+ api_instance = xero_client.<api_set>
1994
+
1995
+
1996
+
1997
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
1998
+ opts = {
1999
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
2000
+ }
2001
+
2002
+ begin
2003
+ #searches earnings orders
2004
+ result = api_instance.get_earnings_orders(xero_tenant_id, opts)
2005
+ p result
2006
+ rescue XeroRuby::PayrollUk::ApiError => e
2007
+ puts "Exception when calling PayrollUkApi->get_earnings_orders: #{e}"
2008
+ end
2009
+ ```
2010
+
2011
+ ### Parameters
2012
+
2013
+
2014
+ Name | Type | Description | Notes
2015
+ ------------- | ------------- | ------------- | -------------
2016
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2017
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
2018
+
2019
+ ### Return type
2020
+
2021
+ [**EarningsOrders**](EarningsOrders.md)
2022
+
2023
+ ### Authorization
2024
+
2025
+ [OAuth2](../README.md#OAuth2)
2026
+
2027
+ ### HTTP request headers
2028
+
2029
+ - **Content-Type**: Not defined
2030
+ - **Accept**: application/json
2031
+
2032
+
2033
+ ## get_earnings_rate
2034
+
2035
+ > EarningsRateObject get_earnings_rate(xero_tenant_id, earnings_rate_id)
2036
+
2037
+ retrieve a single earnings rates by id
2038
+
2039
+ ### Example
2040
+
2041
+ ```ruby
2042
+ # load the gem
2043
+ require 'xero-ruby'
2044
+
2045
+ creds = {
2046
+ client_id: ENV['CLIENT_ID'],
2047
+ client_secret: ENV['CLIENT_SECRET'],
2048
+ redirect_uri: ENV['REDIRECT_URI'],
2049
+ scopes: ENV['SCOPES']
2050
+ }
2051
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2052
+
2053
+ token_set = fetch_valid_token_set(user) # example
2054
+
2055
+ xero_client.refresh_token_set(token_set)
2056
+
2057
+ # You need to namespace your api method call to one of the following api sets
2058
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2059
+
2060
+ api_instance = xero_client.<api_set>
2061
+
2062
+
2063
+
2064
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2065
+ earnings_rate_id = 'earnings_rate_id_example' # String | Identifier for the earnings rate
2066
+ begin
2067
+ #retrieve a single earnings rates by id
2068
+ result = api_instance.get_earnings_rate(xero_tenant_id, earnings_rate_id)
2069
+ p result
2070
+ rescue XeroRuby::PayrollUk::ApiError => e
2071
+ puts "Exception when calling PayrollUkApi->get_earnings_rate: #{e}"
2072
+ end
2073
+ ```
2074
+
2075
+ ### Parameters
2076
+
2077
+
2078
+ Name | Type | Description | Notes
2079
+ ------------- | ------------- | ------------- | -------------
2080
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2081
+ **earnings_rate_id** | [**String**](.md)| Identifier for the earnings rate |
2082
+
2083
+ ### Return type
2084
+
2085
+ [**EarningsRateObject**](EarningsRateObject.md)
2086
+
2087
+ ### Authorization
2088
+
2089
+ [OAuth2](../README.md#OAuth2)
2090
+
2091
+ ### HTTP request headers
2092
+
2093
+ - **Content-Type**: Not defined
2094
+ - **Accept**: application/json
2095
+
2096
+
2097
+ ## get_earnings_rates
2098
+
2099
+ > EarningsRates get_earnings_rates(xero_tenant_id, opts)
2100
+
2101
+ searches earnings rates
2102
+
2103
+ ### Example
2104
+
2105
+ ```ruby
2106
+ # load the gem
2107
+ require 'xero-ruby'
2108
+
2109
+ creds = {
2110
+ client_id: ENV['CLIENT_ID'],
2111
+ client_secret: ENV['CLIENT_SECRET'],
2112
+ redirect_uri: ENV['REDIRECT_URI'],
2113
+ scopes: ENV['SCOPES']
2114
+ }
2115
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2116
+
2117
+ token_set = fetch_valid_token_set(user) # example
2118
+
2119
+ xero_client.refresh_token_set(token_set)
2120
+
2121
+ # You need to namespace your api method call to one of the following api sets
2122
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2123
+
2124
+ api_instance = xero_client.<api_set>
2125
+
2126
+
2127
+
2128
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2129
+ opts = {
2130
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
2131
+ }
2132
+
2133
+ begin
2134
+ #searches earnings rates
2135
+ result = api_instance.get_earnings_rates(xero_tenant_id, opts)
2136
+ p result
2137
+ rescue XeroRuby::PayrollUk::ApiError => e
2138
+ puts "Exception when calling PayrollUkApi->get_earnings_rates: #{e}"
2139
+ end
2140
+ ```
2141
+
2142
+ ### Parameters
2143
+
2144
+
2145
+ Name | Type | Description | Notes
2146
+ ------------- | ------------- | ------------- | -------------
2147
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2148
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
2149
+
2150
+ ### Return type
2151
+
2152
+ [**EarningsRates**](EarningsRates.md)
2153
+
2154
+ ### Authorization
2155
+
2156
+ [OAuth2](../README.md#OAuth2)
2157
+
2158
+ ### HTTP request headers
2159
+
2160
+ - **Content-Type**: Not defined
2161
+ - **Accept**: application/json
2162
+
2163
+
2164
+ ## get_employee
2165
+
2166
+ > EmployeeObject get_employee(xero_tenant_id, employee_id)
2167
+
2168
+ searches employees
2169
+
2170
+ ### Example
2171
+
2172
+ ```ruby
2173
+ # load the gem
2174
+ require 'xero-ruby'
2175
+
2176
+ creds = {
2177
+ client_id: ENV['CLIENT_ID'],
2178
+ client_secret: ENV['CLIENT_SECRET'],
2179
+ redirect_uri: ENV['REDIRECT_URI'],
2180
+ scopes: ENV['SCOPES']
2181
+ }
2182
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2183
+
2184
+ token_set = fetch_valid_token_set(user) # example
2185
+
2186
+ xero_client.refresh_token_set(token_set)
2187
+
2188
+ # You need to namespace your api method call to one of the following api sets
2189
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2190
+
2191
+ api_instance = xero_client.<api_set>
2192
+
2193
+
2194
+
2195
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2196
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2197
+ begin
2198
+ #searches employees
2199
+ result = api_instance.get_employee(xero_tenant_id, employee_id)
2200
+ p result
2201
+ rescue XeroRuby::PayrollUk::ApiError => e
2202
+ puts "Exception when calling PayrollUkApi->get_employee: #{e}"
2203
+ end
2204
+ ```
2205
+
2206
+ ### Parameters
2207
+
2208
+
2209
+ Name | Type | Description | Notes
2210
+ ------------- | ------------- | ------------- | -------------
2211
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2212
+ **employee_id** | [**String**](.md)| Employee id for single object |
2213
+
2214
+ ### Return type
2215
+
2216
+ [**EmployeeObject**](EmployeeObject.md)
2217
+
2218
+ ### Authorization
2219
+
2220
+ [OAuth2](../README.md#OAuth2)
2221
+
2222
+ ### HTTP request headers
2223
+
2224
+ - **Content-Type**: Not defined
2225
+ - **Accept**: application/json
2226
+
2227
+
2228
+ ## get_employee_leave
2229
+
2230
+ > EmployeeLeaveObject get_employee_leave(xero_tenant_id, employee_id, leave_id)
2231
+
2232
+ retrieve a single employee leave record
2233
+
2234
+ ### Example
2235
+
2236
+ ```ruby
2237
+ # load the gem
2238
+ require 'xero-ruby'
2239
+
2240
+ creds = {
2241
+ client_id: ENV['CLIENT_ID'],
2242
+ client_secret: ENV['CLIENT_SECRET'],
2243
+ redirect_uri: ENV['REDIRECT_URI'],
2244
+ scopes: ENV['SCOPES']
2245
+ }
2246
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2247
+
2248
+ token_set = fetch_valid_token_set(user) # example
2249
+
2250
+ xero_client.refresh_token_set(token_set)
2251
+
2252
+ # You need to namespace your api method call to one of the following api sets
2253
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2254
+
2255
+ api_instance = xero_client.<api_set>
2256
+
2257
+
2258
+
2259
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2260
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2261
+ leave_id = 'c4be24e5-e840-4c92-9eaa-2d86cd596314' # String | Leave id for single object
2262
+ begin
2263
+ #retrieve a single employee leave record
2264
+ result = api_instance.get_employee_leave(xero_tenant_id, employee_id, leave_id)
2265
+ p result
2266
+ rescue XeroRuby::PayrollUk::ApiError => e
2267
+ puts "Exception when calling PayrollUkApi->get_employee_leave: #{e}"
2268
+ end
2269
+ ```
2270
+
2271
+ ### Parameters
2272
+
2273
+
2274
+ Name | Type | Description | Notes
2275
+ ------------- | ------------- | ------------- | -------------
2276
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2277
+ **employee_id** | [**String**](.md)| Employee id for single object |
2278
+ **leave_id** | [**String**](.md)| Leave id for single object |
2279
+
2280
+ ### Return type
2281
+
2282
+ [**EmployeeLeaveObject**](EmployeeLeaveObject.md)
2283
+
2284
+ ### Authorization
2285
+
2286
+ [OAuth2](../README.md#OAuth2)
2287
+
2288
+ ### HTTP request headers
2289
+
2290
+ - **Content-Type**: Not defined
2291
+ - **Accept**: application/json
2292
+
2293
+
2294
+ ## get_employee_leave_balances
2295
+
2296
+ > EmployeeLeaveBalances get_employee_leave_balances(xero_tenant_id, employee_id)
2297
+
2298
+ search employee leave balances
2299
+
2300
+ ### Example
2301
+
2302
+ ```ruby
2303
+ # load the gem
2304
+ require 'xero-ruby'
2305
+
2306
+ creds = {
2307
+ client_id: ENV['CLIENT_ID'],
2308
+ client_secret: ENV['CLIENT_SECRET'],
2309
+ redirect_uri: ENV['REDIRECT_URI'],
2310
+ scopes: ENV['SCOPES']
2311
+ }
2312
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2313
+
2314
+ token_set = fetch_valid_token_set(user) # example
2315
+
2316
+ xero_client.refresh_token_set(token_set)
2317
+
2318
+ # You need to namespace your api method call to one of the following api sets
2319
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2320
+
2321
+ api_instance = xero_client.<api_set>
2322
+
2323
+
2324
+
2325
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2326
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2327
+ begin
2328
+ #search employee leave balances
2329
+ result = api_instance.get_employee_leave_balances(xero_tenant_id, employee_id)
2330
+ p result
2331
+ rescue XeroRuby::PayrollUk::ApiError => e
2332
+ puts "Exception when calling PayrollUkApi->get_employee_leave_balances: #{e}"
2333
+ end
2334
+ ```
2335
+
2336
+ ### Parameters
2337
+
2338
+
2339
+ Name | Type | Description | Notes
2340
+ ------------- | ------------- | ------------- | -------------
2341
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2342
+ **employee_id** | [**String**](.md)| Employee id for single object |
2343
+
2344
+ ### Return type
2345
+
2346
+ [**EmployeeLeaveBalances**](EmployeeLeaveBalances.md)
2347
+
2348
+ ### Authorization
2349
+
2350
+ [OAuth2](../README.md#OAuth2)
2351
+
2352
+ ### HTTP request headers
2353
+
2354
+ - **Content-Type**: Not defined
2355
+ - **Accept**: application/json
2356
+
2357
+
2358
+ ## get_employee_leave_periods
2359
+
2360
+ > LeavePeriods get_employee_leave_periods(xero_tenant_id, employee_id, opts)
2361
+
2362
+ searches employee leave periods
2363
+
2364
+ ### Example
2365
+
2366
+ ```ruby
2367
+ # load the gem
2368
+ require 'xero-ruby'
2369
+
2370
+ creds = {
2371
+ client_id: ENV['CLIENT_ID'],
2372
+ client_secret: ENV['CLIENT_SECRET'],
2373
+ redirect_uri: ENV['REDIRECT_URI'],
2374
+ scopes: ENV['SCOPES']
2375
+ }
2376
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2377
+
2378
+ token_set = fetch_valid_token_set(user) # example
2379
+
2380
+ xero_client.refresh_token_set(token_set)
2381
+
2382
+ # You need to namespace your api method call to one of the following api sets
2383
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2384
+
2385
+ api_instance = xero_client.<api_set>
2386
+
2387
+
2388
+
2389
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2390
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2391
+ opts = {
2392
+ start_date: Date.parse('2013-10-20'), # Date | Filter by start date
2393
+
2394
+ end_date: Date.parse('Johnson') # Date | Filter by end date
2395
+ }
2396
+
2397
+ begin
2398
+ #searches employee leave periods
2399
+ result = api_instance.get_employee_leave_periods(xero_tenant_id, employee_id, opts)
2400
+ p result
2401
+ rescue XeroRuby::PayrollUk::ApiError => e
2402
+ puts "Exception when calling PayrollUkApi->get_employee_leave_periods: #{e}"
2403
+ end
2404
+ ```
2405
+
2406
+ ### Parameters
2407
+
2408
+
2409
+ Name | Type | Description | Notes
2410
+ ------------- | ------------- | ------------- | -------------
2411
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2412
+ **employee_id** | [**String**](.md)| Employee id for single object |
2413
+ **start_date** | **Date**| Filter by start date | [optional]
2414
+ **end_date** | **Date**| Filter by end date | [optional]
2415
+
2416
+ ### Return type
2417
+
2418
+ [**LeavePeriods**](LeavePeriods.md)
2419
+
2420
+ ### Authorization
2421
+
2422
+ [OAuth2](../README.md#OAuth2)
2423
+
2424
+ ### HTTP request headers
2425
+
2426
+ - **Content-Type**: Not defined
2427
+ - **Accept**: application/json
2428
+
2429
+
2430
+ ## get_employee_leave_types
2431
+
2432
+ > EmployeeLeaveTypes get_employee_leave_types(xero_tenant_id, employee_id)
2433
+
2434
+ searches employee leave types
2435
+
2436
+ ### Example
2437
+
2438
+ ```ruby
2439
+ # load the gem
2440
+ require 'xero-ruby'
2441
+
2442
+ creds = {
2443
+ client_id: ENV['CLIENT_ID'],
2444
+ client_secret: ENV['CLIENT_SECRET'],
2445
+ redirect_uri: ENV['REDIRECT_URI'],
2446
+ scopes: ENV['SCOPES']
2447
+ }
2448
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2449
+
2450
+ token_set = fetch_valid_token_set(user) # example
2451
+
2452
+ xero_client.refresh_token_set(token_set)
2453
+
2454
+ # You need to namespace your api method call to one of the following api sets
2455
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2456
+
2457
+ api_instance = xero_client.<api_set>
2458
+
2459
+
2460
+
2461
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2462
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2463
+ begin
2464
+ #searches employee leave types
2465
+ result = api_instance.get_employee_leave_types(xero_tenant_id, employee_id)
2466
+ p result
2467
+ rescue XeroRuby::PayrollUk::ApiError => e
2468
+ puts "Exception when calling PayrollUkApi->get_employee_leave_types: #{e}"
2469
+ end
2470
+ ```
2471
+
2472
+ ### Parameters
2473
+
2474
+
2475
+ Name | Type | Description | Notes
2476
+ ------------- | ------------- | ------------- | -------------
2477
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2478
+ **employee_id** | [**String**](.md)| Employee id for single object |
2479
+
2480
+ ### Return type
2481
+
2482
+ [**EmployeeLeaveTypes**](EmployeeLeaveTypes.md)
2483
+
2484
+ ### Authorization
2485
+
2486
+ [OAuth2](../README.md#OAuth2)
2487
+
2488
+ ### HTTP request headers
2489
+
2490
+ - **Content-Type**: Not defined
2491
+ - **Accept**: application/json
2492
+
2493
+
2494
+ ## get_employee_leaves
2495
+
2496
+ > EmployeeLeaves get_employee_leaves(xero_tenant_id, employee_id)
2497
+
2498
+ search employee leave records
2499
+
2500
+ ### Example
2501
+
2502
+ ```ruby
2503
+ # load the gem
2504
+ require 'xero-ruby'
2505
+
2506
+ creds = {
2507
+ client_id: ENV['CLIENT_ID'],
2508
+ client_secret: ENV['CLIENT_SECRET'],
2509
+ redirect_uri: ENV['REDIRECT_URI'],
2510
+ scopes: ENV['SCOPES']
2511
+ }
2512
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2513
+
2514
+ token_set = fetch_valid_token_set(user) # example
2515
+
2516
+ xero_client.refresh_token_set(token_set)
2517
+
2518
+ # You need to namespace your api method call to one of the following api sets
2519
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2520
+
2521
+ api_instance = xero_client.<api_set>
2522
+
2523
+
2524
+
2525
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2526
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2527
+ begin
2528
+ #search employee leave records
2529
+ result = api_instance.get_employee_leaves(xero_tenant_id, employee_id)
2530
+ p result
2531
+ rescue XeroRuby::PayrollUk::ApiError => e
2532
+ puts "Exception when calling PayrollUkApi->get_employee_leaves: #{e}"
2533
+ end
2534
+ ```
2535
+
2536
+ ### Parameters
2537
+
2538
+
2539
+ Name | Type | Description | Notes
2540
+ ------------- | ------------- | ------------- | -------------
2541
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2542
+ **employee_id** | [**String**](.md)| Employee id for single object |
2543
+
2544
+ ### Return type
2545
+
2546
+ [**EmployeeLeaves**](EmployeeLeaves.md)
2547
+
2548
+ ### Authorization
2549
+
2550
+ [OAuth2](../README.md#OAuth2)
2551
+
2552
+ ### HTTP request headers
2553
+
2554
+ - **Content-Type**: Not defined
2555
+ - **Accept**: application/json
2556
+
2557
+
2558
+ ## get_employee_opening_balances
2559
+
2560
+ > EmployeeOpeningBalancesObject get_employee_opening_balances(xero_tenant_id, employee_id)
2561
+
2562
+ retrieve employee openingbalances
2563
+
2564
+ ### Example
2565
+
2566
+ ```ruby
2567
+ # load the gem
2568
+ require 'xero-ruby'
2569
+
2570
+ creds = {
2571
+ client_id: ENV['CLIENT_ID'],
2572
+ client_secret: ENV['CLIENT_SECRET'],
2573
+ redirect_uri: ENV['REDIRECT_URI'],
2574
+ scopes: ENV['SCOPES']
2575
+ }
2576
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2577
+
2578
+ token_set = fetch_valid_token_set(user) # example
2579
+
2580
+ xero_client.refresh_token_set(token_set)
2581
+
2582
+ # You need to namespace your api method call to one of the following api sets
2583
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2584
+
2585
+ api_instance = xero_client.<api_set>
2586
+
2587
+
2588
+
2589
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2590
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2591
+ begin
2592
+ #retrieve employee openingbalances
2593
+ result = api_instance.get_employee_opening_balances(xero_tenant_id, employee_id)
2594
+ p result
2595
+ rescue XeroRuby::PayrollUk::ApiError => e
2596
+ puts "Exception when calling PayrollUkApi->get_employee_opening_balances: #{e}"
2597
+ end
2598
+ ```
2599
+
2600
+ ### Parameters
2601
+
2602
+
2603
+ Name | Type | Description | Notes
2604
+ ------------- | ------------- | ------------- | -------------
2605
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2606
+ **employee_id** | [**String**](.md)| Employee id for single object |
2607
+
2608
+ ### Return type
2609
+
2610
+ [**EmployeeOpeningBalancesObject**](EmployeeOpeningBalancesObject.md)
2611
+
2612
+ ### Authorization
2613
+
2614
+ [OAuth2](../README.md#OAuth2)
2615
+
2616
+ ### HTTP request headers
2617
+
2618
+ - **Content-Type**: Not defined
2619
+ - **Accept**: application/json
2620
+
2621
+
2622
+ ## get_employee_pay_template
2623
+
2624
+ > EmployeePayTemplateObject get_employee_pay_template(xero_tenant_id, employee_id)
2625
+
2626
+ searches employee pay templates
2627
+
2628
+ ### Example
2629
+
2630
+ ```ruby
2631
+ # load the gem
2632
+ require 'xero-ruby'
2633
+
2634
+ creds = {
2635
+ client_id: ENV['CLIENT_ID'],
2636
+ client_secret: ENV['CLIENT_SECRET'],
2637
+ redirect_uri: ENV['REDIRECT_URI'],
2638
+ scopes: ENV['SCOPES']
2639
+ }
2640
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2641
+
2642
+ token_set = fetch_valid_token_set(user) # example
2643
+
2644
+ xero_client.refresh_token_set(token_set)
2645
+
2646
+ # You need to namespace your api method call to one of the following api sets
2647
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2648
+
2649
+ api_instance = xero_client.<api_set>
2650
+
2651
+
2652
+
2653
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2654
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2655
+ begin
2656
+ #searches employee pay templates
2657
+ result = api_instance.get_employee_pay_template(xero_tenant_id, employee_id)
2658
+ p result
2659
+ rescue XeroRuby::PayrollUk::ApiError => e
2660
+ puts "Exception when calling PayrollUkApi->get_employee_pay_template: #{e}"
2661
+ end
2662
+ ```
2663
+
2664
+ ### Parameters
2665
+
2666
+
2667
+ Name | Type | Description | Notes
2668
+ ------------- | ------------- | ------------- | -------------
2669
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2670
+ **employee_id** | [**String**](.md)| Employee id for single object |
2671
+
2672
+ ### Return type
2673
+
2674
+ [**EmployeePayTemplateObject**](EmployeePayTemplateObject.md)
2675
+
2676
+ ### Authorization
2677
+
2678
+ [OAuth2](../README.md#OAuth2)
2679
+
2680
+ ### HTTP request headers
2681
+
2682
+ - **Content-Type**: Not defined
2683
+ - **Accept**: application/json
2684
+
2685
+
2686
+ ## get_employee_payment_method
2687
+
2688
+ > PaymentMethodObject get_employee_payment_method(xero_tenant_id, employee_id)
2689
+
2690
+ retrieves an employee's payment method
2691
+
2692
+ ### Example
2693
+
2694
+ ```ruby
2695
+ # load the gem
2696
+ require 'xero-ruby'
2697
+
2698
+ creds = {
2699
+ client_id: ENV['CLIENT_ID'],
2700
+ client_secret: ENV['CLIENT_SECRET'],
2701
+ redirect_uri: ENV['REDIRECT_URI'],
2702
+ scopes: ENV['SCOPES']
2703
+ }
2704
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2705
+
2706
+ token_set = fetch_valid_token_set(user) # example
2707
+
2708
+ xero_client.refresh_token_set(token_set)
2709
+
2710
+ # You need to namespace your api method call to one of the following api sets
2711
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2712
+
2713
+ api_instance = xero_client.<api_set>
2714
+
2715
+
2716
+
2717
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2718
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2719
+ begin
2720
+ #retrieves an employee's payment method
2721
+ result = api_instance.get_employee_payment_method(xero_tenant_id, employee_id)
2722
+ p result
2723
+ rescue XeroRuby::PayrollUk::ApiError => e
2724
+ puts "Exception when calling PayrollUkApi->get_employee_payment_method: #{e}"
2725
+ end
2726
+ ```
2727
+
2728
+ ### Parameters
2729
+
2730
+
2731
+ Name | Type | Description | Notes
2732
+ ------------- | ------------- | ------------- | -------------
2733
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2734
+ **employee_id** | [**String**](.md)| Employee id for single object |
2735
+
2736
+ ### Return type
2737
+
2738
+ [**PaymentMethodObject**](PaymentMethodObject.md)
2739
+
2740
+ ### Authorization
2741
+
2742
+ [OAuth2](../README.md#OAuth2)
2743
+
2744
+ ### HTTP request headers
2745
+
2746
+ - **Content-Type**: Not defined
2747
+ - **Accept**: application/json
2748
+
2749
+
2750
+ ## get_employee_salary_and_wage
2751
+
2752
+ > SalaryAndWages get_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id)
2753
+
2754
+ get employee salary and wages record by id
2755
+
2756
+ ### Example
2757
+
2758
+ ```ruby
2759
+ # load the gem
2760
+ require 'xero-ruby'
2761
+
2762
+ creds = {
2763
+ client_id: ENV['CLIENT_ID'],
2764
+ client_secret: ENV['CLIENT_SECRET'],
2765
+ redirect_uri: ENV['REDIRECT_URI'],
2766
+ scopes: ENV['SCOPES']
2767
+ }
2768
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2769
+
2770
+ token_set = fetch_valid_token_set(user) # example
2771
+
2772
+ xero_client.refresh_token_set(token_set)
2773
+
2774
+ # You need to namespace your api method call to one of the following api sets
2775
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2776
+
2777
+ api_instance = xero_client.<api_set>
2778
+
2779
+
2780
+
2781
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2782
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2783
+ salary_and_wages_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single pay template earnings object
2784
+ begin
2785
+ #get employee salary and wages record by id
2786
+ result = api_instance.get_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id)
2787
+ p result
2788
+ rescue XeroRuby::PayrollUk::ApiError => e
2789
+ puts "Exception when calling PayrollUkApi->get_employee_salary_and_wage: #{e}"
2790
+ end
2791
+ ```
2792
+
2793
+ ### Parameters
2794
+
2795
+
2796
+ Name | Type | Description | Notes
2797
+ ------------- | ------------- | ------------- | -------------
2798
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2799
+ **employee_id** | [**String**](.md)| Employee id for single object |
2800
+ **salary_and_wages_id** | [**String**](.md)| Id for single pay template earnings object |
2801
+
2802
+ ### Return type
2803
+
2804
+ [**SalaryAndWages**](SalaryAndWages.md)
2805
+
2806
+ ### Authorization
2807
+
2808
+ [OAuth2](../README.md#OAuth2)
2809
+
2810
+ ### HTTP request headers
2811
+
2812
+ - **Content-Type**: Not defined
2813
+ - **Accept**: application/json
2814
+
2815
+
2816
+ ## get_employee_salary_and_wages
2817
+
2818
+ > SalaryAndWages get_employee_salary_and_wages(xero_tenant_id, employee_id, opts)
2819
+
2820
+ retrieves an employee's salary and wages
2821
+
2822
+ ### Example
2823
+
2824
+ ```ruby
2825
+ # load the gem
2826
+ require 'xero-ruby'
2827
+
2828
+ creds = {
2829
+ client_id: ENV['CLIENT_ID'],
2830
+ client_secret: ENV['CLIENT_SECRET'],
2831
+ redirect_uri: ENV['REDIRECT_URI'],
2832
+ scopes: ENV['SCOPES']
2833
+ }
2834
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2835
+
2836
+ token_set = fetch_valid_token_set(user) # example
2837
+
2838
+ xero_client.refresh_token_set(token_set)
2839
+
2840
+ # You need to namespace your api method call to one of the following api sets
2841
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2842
+
2843
+ api_instance = xero_client.<api_set>
2844
+
2845
+
2846
+
2847
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2848
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2849
+ opts = {
2850
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
2851
+ }
2852
+
2853
+ begin
2854
+ #retrieves an employee's salary and wages
2855
+ result = api_instance.get_employee_salary_and_wages(xero_tenant_id, employee_id, opts)
2856
+ p result
2857
+ rescue XeroRuby::PayrollUk::ApiError => e
2858
+ puts "Exception when calling PayrollUkApi->get_employee_salary_and_wages: #{e}"
2859
+ end
2860
+ ```
2861
+
2862
+ ### Parameters
2863
+
2864
+
2865
+ Name | Type | Description | Notes
2866
+ ------------- | ------------- | ------------- | -------------
2867
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2868
+ **employee_id** | [**String**](.md)| Employee id for single object |
2869
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
2870
+
2871
+ ### Return type
2872
+
2873
+ [**SalaryAndWages**](SalaryAndWages.md)
2874
+
2875
+ ### Authorization
2876
+
2877
+ [OAuth2](../README.md#OAuth2)
2878
+
2879
+ ### HTTP request headers
2880
+
2881
+ - **Content-Type**: Not defined
2882
+ - **Accept**: application/json
2883
+
2884
+
2885
+ ## get_employee_statutory_leave_balances
2886
+
2887
+ > EmployeeStatutoryLeaveBalanceObject get_employee_statutory_leave_balances(xero_tenant_id, employee_id, opts)
2888
+
2889
+ search employee leave balances
2890
+
2891
+ ### Example
2892
+
2893
+ ```ruby
2894
+ # load the gem
2895
+ require 'xero-ruby'
2896
+
2897
+ creds = {
2898
+ client_id: ENV['CLIENT_ID'],
2899
+ client_secret: ENV['CLIENT_SECRET'],
2900
+ redirect_uri: ENV['REDIRECT_URI'],
2901
+ scopes: ENV['SCOPES']
2902
+ }
2903
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2904
+
2905
+ token_set = fetch_valid_token_set(user) # example
2906
+
2907
+ xero_client.refresh_token_set(token_set)
2908
+
2909
+ # You need to namespace your api method call to one of the following api sets
2910
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2911
+
2912
+ api_instance = xero_client.<api_set>
2913
+
2914
+
2915
+
2916
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2917
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
2918
+ opts = {
2919
+ leave_type: 'sick', # String | Filter by the type of statutory leave
2920
+
2921
+ as_of_date: Date.parse('2013-10-20') # Date | The date from which to calculate balance remaining. If not specified, current date UTC is used.
2922
+ }
2923
+
2924
+ begin
2925
+ #search employee leave balances
2926
+ result = api_instance.get_employee_statutory_leave_balances(xero_tenant_id, employee_id, opts)
2927
+ p result
2928
+ rescue XeroRuby::PayrollUk::ApiError => e
2929
+ puts "Exception when calling PayrollUkApi->get_employee_statutory_leave_balances: #{e}"
2930
+ end
2931
+ ```
2932
+
2933
+ ### Parameters
2934
+
2935
+
2936
+ Name | Type | Description | Notes
2937
+ ------------- | ------------- | ------------- | -------------
2938
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
2939
+ **employee_id** | [**String**](.md)| Employee id for single object |
2940
+ **leave_type** | **String**| Filter by the type of statutory leave | [optional]
2941
+ **as_of_date** | **Date**| The date from which to calculate balance remaining. If not specified, current date UTC is used. | [optional]
2942
+
2943
+ ### Return type
2944
+
2945
+ [**EmployeeStatutoryLeaveBalanceObject**](EmployeeStatutoryLeaveBalanceObject.md)
2946
+
2947
+ ### Authorization
2948
+
2949
+ [OAuth2](../README.md#OAuth2)
2950
+
2951
+ ### HTTP request headers
2952
+
2953
+ - **Content-Type**: Not defined
2954
+ - **Accept**: application/json
2955
+
2956
+
2957
+ ## get_employee_statutory_sick_leave
2958
+
2959
+ > EmployeeStatutorySickLeaveObject get_employee_statutory_sick_leave(xero_tenant_id, statutory_sick_leave_id)
2960
+
2961
+ retrieve a statutory sick leave for an employee
2962
+
2963
+ ### Example
2964
+
2965
+ ```ruby
2966
+ # load the gem
2967
+ require 'xero-ruby'
2968
+
2969
+ creds = {
2970
+ client_id: ENV['CLIENT_ID'],
2971
+ client_secret: ENV['CLIENT_SECRET'],
2972
+ redirect_uri: ENV['REDIRECT_URI'],
2973
+ scopes: ENV['SCOPES']
2974
+ }
2975
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
2976
+
2977
+ token_set = fetch_valid_token_set(user) # example
2978
+
2979
+ xero_client.refresh_token_set(token_set)
2980
+
2981
+ # You need to namespace your api method call to one of the following api sets
2982
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
2983
+
2984
+ api_instance = xero_client.<api_set>
2985
+
2986
+
2987
+
2988
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
2989
+ statutory_sick_leave_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Statutory sick leave id for single object
2990
+ begin
2991
+ #retrieve a statutory sick leave for an employee
2992
+ result = api_instance.get_employee_statutory_sick_leave(xero_tenant_id, statutory_sick_leave_id)
2993
+ p result
2994
+ rescue XeroRuby::PayrollUk::ApiError => e
2995
+ puts "Exception when calling PayrollUkApi->get_employee_statutory_sick_leave: #{e}"
2996
+ end
2997
+ ```
2998
+
2999
+ ### Parameters
3000
+
3001
+
3002
+ Name | Type | Description | Notes
3003
+ ------------- | ------------- | ------------- | -------------
3004
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3005
+ **statutory_sick_leave_id** | [**String**](.md)| Statutory sick leave id for single object |
3006
+
3007
+ ### Return type
3008
+
3009
+ [**EmployeeStatutorySickLeaveObject**](EmployeeStatutorySickLeaveObject.md)
3010
+
3011
+ ### Authorization
3012
+
3013
+ [OAuth2](../README.md#OAuth2)
3014
+
3015
+ ### HTTP request headers
3016
+
3017
+ - **Content-Type**: Not defined
3018
+ - **Accept**: application/json
3019
+
3020
+
3021
+ ## get_employee_tax
3022
+
3023
+ > EmployeeTaxObject get_employee_tax(xero_tenant_id, employee_id)
3024
+
3025
+ searches tax records for an employee
3026
+
3027
+ ### Example
3028
+
3029
+ ```ruby
3030
+ # load the gem
3031
+ require 'xero-ruby'
3032
+
3033
+ creds = {
3034
+ client_id: ENV['CLIENT_ID'],
3035
+ client_secret: ENV['CLIENT_SECRET'],
3036
+ redirect_uri: ENV['REDIRECT_URI'],
3037
+ scopes: ENV['SCOPES']
3038
+ }
3039
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3040
+
3041
+ token_set = fetch_valid_token_set(user) # example
3042
+
3043
+ xero_client.refresh_token_set(token_set)
3044
+
3045
+ # You need to namespace your api method call to one of the following api sets
3046
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3047
+
3048
+ api_instance = xero_client.<api_set>
3049
+
3050
+
3051
+
3052
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3053
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
3054
+ begin
3055
+ #searches tax records for an employee
3056
+ result = api_instance.get_employee_tax(xero_tenant_id, employee_id)
3057
+ p result
3058
+ rescue XeroRuby::PayrollUk::ApiError => e
3059
+ puts "Exception when calling PayrollUkApi->get_employee_tax: #{e}"
3060
+ end
3061
+ ```
3062
+
3063
+ ### Parameters
3064
+
3065
+
3066
+ Name | Type | Description | Notes
3067
+ ------------- | ------------- | ------------- | -------------
3068
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3069
+ **employee_id** | [**String**](.md)| Employee id for single object |
3070
+
3071
+ ### Return type
3072
+
3073
+ [**EmployeeTaxObject**](EmployeeTaxObject.md)
3074
+
3075
+ ### Authorization
3076
+
3077
+ [OAuth2](../README.md#OAuth2)
3078
+
3079
+ ### HTTP request headers
3080
+
3081
+ - **Content-Type**: Not defined
3082
+ - **Accept**: application/json
3083
+
3084
+
3085
+ ## get_employees
3086
+
3087
+ > Employees get_employees(xero_tenant_id, opts)
3088
+
3089
+ searches employees
3090
+
3091
+ ### Example
3092
+
3093
+ ```ruby
3094
+ # load the gem
3095
+ require 'xero-ruby'
3096
+
3097
+ creds = {
3098
+ client_id: ENV['CLIENT_ID'],
3099
+ client_secret: ENV['CLIENT_SECRET'],
3100
+ redirect_uri: ENV['REDIRECT_URI'],
3101
+ scopes: ENV['SCOPES']
3102
+ }
3103
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3104
+
3105
+ token_set = fetch_valid_token_set(user) # example
3106
+
3107
+ xero_client.refresh_token_set(token_set)
3108
+
3109
+ # You need to namespace your api method call to one of the following api sets
3110
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3111
+
3112
+ api_instance = xero_client.<api_set>
3113
+
3114
+
3115
+
3116
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3117
+ opts = {
3118
+ first_name: 'John', # String | Filter by first name
3119
+
3120
+ last_name: 'Johnson', # String | Filter by last name
3121
+
3122
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3123
+ }
3124
+
3125
+ begin
3126
+ #searches employees
3127
+ result = api_instance.get_employees(xero_tenant_id, opts)
3128
+ p result
3129
+ rescue XeroRuby::PayrollUk::ApiError => e
3130
+ puts "Exception when calling PayrollUkApi->get_employees: #{e}"
3131
+ end
3132
+ ```
3133
+
3134
+ ### Parameters
3135
+
3136
+
3137
+ Name | Type | Description | Notes
3138
+ ------------- | ------------- | ------------- | -------------
3139
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3140
+ **first_name** | **String**| Filter by first name | [optional]
3141
+ **last_name** | **String**| Filter by last name | [optional]
3142
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
3143
+
3144
+ ### Return type
3145
+
3146
+ [**Employees**](Employees.md)
3147
+
3148
+ ### Authorization
3149
+
3150
+ [OAuth2](../README.md#OAuth2)
3151
+
3152
+ ### HTTP request headers
3153
+
3154
+ - **Content-Type**: Not defined
3155
+ - **Accept**: application/json
3156
+
3157
+
3158
+ ## get_leave_type
3159
+
3160
+ > LeaveTypeObject get_leave_type(xero_tenant_id, leave_type_id)
3161
+
3162
+ retrieve a single leave type by id
3163
+
3164
+ ### Example
3165
+
3166
+ ```ruby
3167
+ # load the gem
3168
+ require 'xero-ruby'
3169
+
3170
+ creds = {
3171
+ client_id: ENV['CLIENT_ID'],
3172
+ client_secret: ENV['CLIENT_SECRET'],
3173
+ redirect_uri: ENV['REDIRECT_URI'],
3174
+ scopes: ENV['SCOPES']
3175
+ }
3176
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3177
+
3178
+ token_set = fetch_valid_token_set(user) # example
3179
+
3180
+ xero_client.refresh_token_set(token_set)
3181
+
3182
+ # You need to namespace your api method call to one of the following api sets
3183
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3184
+
3185
+ api_instance = xero_client.<api_set>
3186
+
3187
+
3188
+
3189
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3190
+ leave_type_id = 'leave_type_id_example' # String | Identifier for the leave type
3191
+ begin
3192
+ #retrieve a single leave type by id
3193
+ result = api_instance.get_leave_type(xero_tenant_id, leave_type_id)
3194
+ p result
3195
+ rescue XeroRuby::PayrollUk::ApiError => e
3196
+ puts "Exception when calling PayrollUkApi->get_leave_type: #{e}"
3197
+ end
3198
+ ```
3199
+
3200
+ ### Parameters
3201
+
3202
+
3203
+ Name | Type | Description | Notes
3204
+ ------------- | ------------- | ------------- | -------------
3205
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3206
+ **leave_type_id** | [**String**](.md)| Identifier for the leave type |
3207
+
3208
+ ### Return type
3209
+
3210
+ [**LeaveTypeObject**](LeaveTypeObject.md)
3211
+
3212
+ ### Authorization
3213
+
3214
+ [OAuth2](../README.md#OAuth2)
3215
+
3216
+ ### HTTP request headers
3217
+
3218
+ - **Content-Type**: Not defined
3219
+ - **Accept**: application/json
3220
+
3221
+
3222
+ ## get_leave_types
3223
+
3224
+ > LeaveTypes get_leave_types(xero_tenant_id, opts)
3225
+
3226
+ searches leave types
3227
+
3228
+ ### Example
3229
+
3230
+ ```ruby
3231
+ # load the gem
3232
+ require 'xero-ruby'
3233
+
3234
+ creds = {
3235
+ client_id: ENV['CLIENT_ID'],
3236
+ client_secret: ENV['CLIENT_SECRET'],
3237
+ redirect_uri: ENV['REDIRECT_URI'],
3238
+ scopes: ENV['SCOPES']
3239
+ }
3240
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3241
+
3242
+ token_set = fetch_valid_token_set(user) # example
3243
+
3244
+ xero_client.refresh_token_set(token_set)
3245
+
3246
+ # You need to namespace your api method call to one of the following api sets
3247
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3248
+
3249
+ api_instance = xero_client.<api_set>
3250
+
3251
+
3252
+
3253
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3254
+ opts = {
3255
+ page: 56, # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3256
+
3257
+ active_only: true # Boolean | Filters leave types by active status. By default the API returns all leave types.
3258
+ }
3259
+
3260
+ begin
3261
+ #searches leave types
3262
+ result = api_instance.get_leave_types(xero_tenant_id, opts)
3263
+ p result
3264
+ rescue XeroRuby::PayrollUk::ApiError => e
3265
+ puts "Exception when calling PayrollUkApi->get_leave_types: #{e}"
3266
+ end
3267
+ ```
3268
+
3269
+ ### Parameters
3270
+
3271
+
3272
+ Name | Type | Description | Notes
3273
+ ------------- | ------------- | ------------- | -------------
3274
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3275
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
3276
+ **active_only** | **Boolean**| Filters leave types by active status. By default the API returns all leave types. | [optional]
3277
+
3278
+ ### Return type
3279
+
3280
+ [**LeaveTypes**](LeaveTypes.md)
3281
+
3282
+ ### Authorization
3283
+
3284
+ [OAuth2](../README.md#OAuth2)
3285
+
3286
+ ### HTTP request headers
3287
+
3288
+ - **Content-Type**: Not defined
3289
+ - **Accept**: application/json
3290
+
3291
+
3292
+ ## get_pay_run
3293
+
3294
+ > PayRunObject get_pay_run(xero_tenant_id, pay_run_id)
3295
+
3296
+ retrieve a single pay run by id
3297
+
3298
+ ### Example
3299
+
3300
+ ```ruby
3301
+ # load the gem
3302
+ require 'xero-ruby'
3303
+
3304
+ creds = {
3305
+ client_id: ENV['CLIENT_ID'],
3306
+ client_secret: ENV['CLIENT_SECRET'],
3307
+ redirect_uri: ENV['REDIRECT_URI'],
3308
+ scopes: ENV['SCOPES']
3309
+ }
3310
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3311
+
3312
+ token_set = fetch_valid_token_set(user) # example
3313
+
3314
+ xero_client.refresh_token_set(token_set)
3315
+
3316
+ # You need to namespace your api method call to one of the following api sets
3317
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3318
+
3319
+ api_instance = xero_client.<api_set>
3320
+
3321
+
3322
+
3323
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3324
+ pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run
3325
+ begin
3326
+ #retrieve a single pay run by id
3327
+ result = api_instance.get_pay_run(xero_tenant_id, pay_run_id)
3328
+ p result
3329
+ rescue XeroRuby::PayrollUk::ApiError => e
3330
+ puts "Exception when calling PayrollUkApi->get_pay_run: #{e}"
3331
+ end
3332
+ ```
3333
+
3334
+ ### Parameters
3335
+
3336
+
3337
+ Name | Type | Description | Notes
3338
+ ------------- | ------------- | ------------- | -------------
3339
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3340
+ **pay_run_id** | [**String**](.md)| Identifier for the pay run |
3341
+
3342
+ ### Return type
3343
+
3344
+ [**PayRunObject**](PayRunObject.md)
3345
+
3346
+ ### Authorization
3347
+
3348
+ [OAuth2](../README.md#OAuth2)
3349
+
3350
+ ### HTTP request headers
3351
+
3352
+ - **Content-Type**: Not defined
3353
+ - **Accept**: application/json
3354
+
3355
+
3356
+ ## get_pay_run_calendar
3357
+
3358
+ > PayRunCalendarObject get_pay_run_calendar(xero_tenant_id, pay_run_calendar_id)
3359
+
3360
+ retrieve a single payrun calendar by id
3361
+
3362
+ ### Example
3363
+
3364
+ ```ruby
3365
+ # load the gem
3366
+ require 'xero-ruby'
3367
+
3368
+ creds = {
3369
+ client_id: ENV['CLIENT_ID'],
3370
+ client_secret: ENV['CLIENT_SECRET'],
3371
+ redirect_uri: ENV['REDIRECT_URI'],
3372
+ scopes: ENV['SCOPES']
3373
+ }
3374
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3375
+
3376
+ token_set = fetch_valid_token_set(user) # example
3377
+
3378
+ xero_client.refresh_token_set(token_set)
3379
+
3380
+ # You need to namespace your api method call to one of the following api sets
3381
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3382
+
3383
+ api_instance = xero_client.<api_set>
3384
+
3385
+
3386
+
3387
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3388
+ pay_run_calendar_id = 'pay_run_calendar_id_example' # String | Identifier for the payrun calendars
3389
+ begin
3390
+ #retrieve a single payrun calendar by id
3391
+ result = api_instance.get_pay_run_calendar(xero_tenant_id, pay_run_calendar_id)
3392
+ p result
3393
+ rescue XeroRuby::PayrollUk::ApiError => e
3394
+ puts "Exception when calling PayrollUkApi->get_pay_run_calendar: #{e}"
3395
+ end
3396
+ ```
3397
+
3398
+ ### Parameters
3399
+
3400
+
3401
+ Name | Type | Description | Notes
3402
+ ------------- | ------------- | ------------- | -------------
3403
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3404
+ **pay_run_calendar_id** | [**String**](.md)| Identifier for the payrun calendars |
3405
+
3406
+ ### Return type
3407
+
3408
+ [**PayRunCalendarObject**](PayRunCalendarObject.md)
3409
+
3410
+ ### Authorization
3411
+
3412
+ [OAuth2](../README.md#OAuth2)
3413
+
3414
+ ### HTTP request headers
3415
+
3416
+ - **Content-Type**: Not defined
3417
+ - **Accept**: application/json
3418
+
3419
+
3420
+ ## get_pay_run_calendars
3421
+
3422
+ > PayRunCalendars get_pay_run_calendars(xero_tenant_id, opts)
3423
+
3424
+ searches payrun calendars
3425
+
3426
+ ### Example
3427
+
3428
+ ```ruby
3429
+ # load the gem
3430
+ require 'xero-ruby'
3431
+
3432
+ creds = {
3433
+ client_id: ENV['CLIENT_ID'],
3434
+ client_secret: ENV['CLIENT_SECRET'],
3435
+ redirect_uri: ENV['REDIRECT_URI'],
3436
+ scopes: ENV['SCOPES']
3437
+ }
3438
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3439
+
3440
+ token_set = fetch_valid_token_set(user) # example
3441
+
3442
+ xero_client.refresh_token_set(token_set)
3443
+
3444
+ # You need to namespace your api method call to one of the following api sets
3445
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3446
+
3447
+ api_instance = xero_client.<api_set>
3448
+
3449
+
3450
+
3451
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3452
+ opts = {
3453
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3454
+ }
3455
+
3456
+ begin
3457
+ #searches payrun calendars
3458
+ result = api_instance.get_pay_run_calendars(xero_tenant_id, opts)
3459
+ p result
3460
+ rescue XeroRuby::PayrollUk::ApiError => e
3461
+ puts "Exception when calling PayrollUkApi->get_pay_run_calendars: #{e}"
3462
+ end
3463
+ ```
3464
+
3465
+ ### Parameters
3466
+
3467
+
3468
+ Name | Type | Description | Notes
3469
+ ------------- | ------------- | ------------- | -------------
3470
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3471
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
3472
+
3473
+ ### Return type
3474
+
3475
+ [**PayRunCalendars**](PayRunCalendars.md)
3476
+
3477
+ ### Authorization
3478
+
3479
+ [OAuth2](../README.md#OAuth2)
3480
+
3481
+ ### HTTP request headers
3482
+
3483
+ - **Content-Type**: Not defined
3484
+ - **Accept**: application/json
3485
+
3486
+
3487
+ ## get_pay_runs
3488
+
3489
+ > PayRuns get_pay_runs(xero_tenant_id, opts)
3490
+
3491
+ searches pay runs
3492
+
3493
+ ### Example
3494
+
3495
+ ```ruby
3496
+ # load the gem
3497
+ require 'xero-ruby'
3498
+
3499
+ creds = {
3500
+ client_id: ENV['CLIENT_ID'],
3501
+ client_secret: ENV['CLIENT_SECRET'],
3502
+ redirect_uri: ENV['REDIRECT_URI'],
3503
+ scopes: ENV['SCOPES']
3504
+ }
3505
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3506
+
3507
+ token_set = fetch_valid_token_set(user) # example
3508
+
3509
+ xero_client.refresh_token_set(token_set)
3510
+
3511
+ # You need to namespace your api method call to one of the following api sets
3512
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3513
+
3514
+ api_instance = xero_client.<api_set>
3515
+
3516
+
3517
+
3518
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3519
+ opts = {
3520
+ page: 56, # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3521
+
3522
+ status: 'status_example' # String | By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu={PayRunStatus} to filter the payruns by status.
3523
+ }
3524
+
3525
+ begin
3526
+ #searches pay runs
3527
+ result = api_instance.get_pay_runs(xero_tenant_id, opts)
3528
+ p result
3529
+ rescue XeroRuby::PayrollUk::ApiError => e
3530
+ puts "Exception when calling PayrollUkApi->get_pay_runs: #{e}"
3531
+ end
3532
+ ```
3533
+
3534
+ ### Parameters
3535
+
3536
+
3537
+ Name | Type | Description | Notes
3538
+ ------------- | ------------- | ------------- | -------------
3539
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3540
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
3541
+ **status** | **String**| By default get payruns will return all the payruns for an organization. You can add GET https://api.xero.com/payroll.xro/2.0/payRuns?statu&#x3D;{PayRunStatus} to filter the payruns by status. | [optional]
3542
+
3543
+ ### Return type
3544
+
3545
+ [**PayRuns**](PayRuns.md)
3546
+
3547
+ ### Authorization
3548
+
3549
+ [OAuth2](../README.md#OAuth2)
3550
+
3551
+ ### HTTP request headers
3552
+
3553
+ - **Content-Type**: Not defined
3554
+ - **Accept**: application/json
3555
+
3556
+
3557
+ ## get_pay_slip
3558
+
3559
+ > PayslipObject get_pay_slip(xero_tenant_id, payslip_id)
3560
+
3561
+ retrieve a single payslip by id
3562
+
3563
+ ### Example
3564
+
3565
+ ```ruby
3566
+ # load the gem
3567
+ require 'xero-ruby'
3568
+
3569
+ creds = {
3570
+ client_id: ENV['CLIENT_ID'],
3571
+ client_secret: ENV['CLIENT_SECRET'],
3572
+ redirect_uri: ENV['REDIRECT_URI'],
3573
+ scopes: ENV['SCOPES']
3574
+ }
3575
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3576
+
3577
+ token_set = fetch_valid_token_set(user) # example
3578
+
3579
+ xero_client.refresh_token_set(token_set)
3580
+
3581
+ # You need to namespace your api method call to one of the following api sets
3582
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3583
+
3584
+ api_instance = xero_client.<api_set>
3585
+
3586
+
3587
+
3588
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3589
+ payslip_id = 'payslip_id_example' # String | Identifier for the payslip
3590
+ begin
3591
+ #retrieve a single payslip by id
3592
+ result = api_instance.get_pay_slip(xero_tenant_id, payslip_id)
3593
+ p result
3594
+ rescue XeroRuby::PayrollUk::ApiError => e
3595
+ puts "Exception when calling PayrollUkApi->get_pay_slip: #{e}"
3596
+ end
3597
+ ```
3598
+
3599
+ ### Parameters
3600
+
3601
+
3602
+ Name | Type | Description | Notes
3603
+ ------------- | ------------- | ------------- | -------------
3604
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3605
+ **payslip_id** | [**String**](.md)| Identifier for the payslip |
3606
+
3607
+ ### Return type
3608
+
3609
+ [**PayslipObject**](PayslipObject.md)
3610
+
3611
+ ### Authorization
3612
+
3613
+ [OAuth2](../README.md#OAuth2)
3614
+
3615
+ ### HTTP request headers
3616
+
3617
+ - **Content-Type**: Not defined
3618
+ - **Accept**: application/json
3619
+
3620
+
3621
+ ## get_pay_slips
3622
+
3623
+ > Payslips get_pay_slips(xero_tenant_id, pay_run_id, opts)
3624
+
3625
+ searches payslips
3626
+
3627
+ ### Example
3628
+
3629
+ ```ruby
3630
+ # load the gem
3631
+ require 'xero-ruby'
3632
+
3633
+ creds = {
3634
+ client_id: ENV['CLIENT_ID'],
3635
+ client_secret: ENV['CLIENT_SECRET'],
3636
+ redirect_uri: ENV['REDIRECT_URI'],
3637
+ scopes: ENV['SCOPES']
3638
+ }
3639
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3640
+
3641
+ token_set = fetch_valid_token_set(user) # example
3642
+
3643
+ xero_client.refresh_token_set(token_set)
3644
+
3645
+ # You need to namespace your api method call to one of the following api sets
3646
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3647
+
3648
+ api_instance = xero_client.<api_set>
3649
+
3650
+
3651
+
3652
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3653
+ pay_run_id = 'pay_run_id_example' # String | PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun.
3654
+ opts = {
3655
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3656
+ }
3657
+
3658
+ begin
3659
+ #searches payslips
3660
+ result = api_instance.get_pay_slips(xero_tenant_id, pay_run_id, opts)
3661
+ p result
3662
+ rescue XeroRuby::PayrollUk::ApiError => e
3663
+ puts "Exception when calling PayrollUkApi->get_pay_slips: #{e}"
3664
+ end
3665
+ ```
3666
+
3667
+ ### Parameters
3668
+
3669
+
3670
+ Name | Type | Description | Notes
3671
+ ------------- | ------------- | ------------- | -------------
3672
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3673
+ **pay_run_id** | [**String**](.md)| PayrunID which specifies the containing payrun of payslips to retrieve. By default, the API does not group payslips by payrun. |
3674
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
3675
+
3676
+ ### Return type
3677
+
3678
+ [**Payslips**](Payslips.md)
3679
+
3680
+ ### Authorization
3681
+
3682
+ [OAuth2](../README.md#OAuth2)
3683
+
3684
+ ### HTTP request headers
3685
+
3686
+ - **Content-Type**: Not defined
3687
+ - **Accept**: application/json
3688
+
3689
+
3690
+ ## get_reimbursement
3691
+
3692
+ > ReimbursementObject get_reimbursement(xero_tenant_id, reimbursement_id)
3693
+
3694
+ retrieve a single reimbursement by id
3695
+
3696
+ ### Example
3697
+
3698
+ ```ruby
3699
+ # load the gem
3700
+ require 'xero-ruby'
3701
+
3702
+ creds = {
3703
+ client_id: ENV['CLIENT_ID'],
3704
+ client_secret: ENV['CLIENT_SECRET'],
3705
+ redirect_uri: ENV['REDIRECT_URI'],
3706
+ scopes: ENV['SCOPES']
3707
+ }
3708
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3709
+
3710
+ token_set = fetch_valid_token_set(user) # example
3711
+
3712
+ xero_client.refresh_token_set(token_set)
3713
+
3714
+ # You need to namespace your api method call to one of the following api sets
3715
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3716
+
3717
+ api_instance = xero_client.<api_set>
3718
+
3719
+
3720
+
3721
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3722
+ reimbursement_id = 'reimbursement_id_example' # String | Identifier for the reimbursement
3723
+ begin
3724
+ #retrieve a single reimbursement by id
3725
+ result = api_instance.get_reimbursement(xero_tenant_id, reimbursement_id)
3726
+ p result
3727
+ rescue XeroRuby::PayrollUk::ApiError => e
3728
+ puts "Exception when calling PayrollUkApi->get_reimbursement: #{e}"
3729
+ end
3730
+ ```
3731
+
3732
+ ### Parameters
3733
+
3734
+
3735
+ Name | Type | Description | Notes
3736
+ ------------- | ------------- | ------------- | -------------
3737
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3738
+ **reimbursement_id** | [**String**](.md)| Identifier for the reimbursement |
3739
+
3740
+ ### Return type
3741
+
3742
+ [**ReimbursementObject**](ReimbursementObject.md)
3743
+
3744
+ ### Authorization
3745
+
3746
+ [OAuth2](../README.md#OAuth2)
3747
+
3748
+ ### HTTP request headers
3749
+
3750
+ - **Content-Type**: Not defined
3751
+ - **Accept**: application/json
3752
+
3753
+
3754
+ ## get_reimbursements
3755
+
3756
+ > Reimbursements get_reimbursements(xero_tenant_id, opts)
3757
+
3758
+ searches reimbursements
3759
+
3760
+ ### Example
3761
+
3762
+ ```ruby
3763
+ # load the gem
3764
+ require 'xero-ruby'
3765
+
3766
+ creds = {
3767
+ client_id: ENV['CLIENT_ID'],
3768
+ client_secret: ENV['CLIENT_SECRET'],
3769
+ redirect_uri: ENV['REDIRECT_URI'],
3770
+ scopes: ENV['SCOPES']
3771
+ }
3772
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3773
+
3774
+ token_set = fetch_valid_token_set(user) # example
3775
+
3776
+ xero_client.refresh_token_set(token_set)
3777
+
3778
+ # You need to namespace your api method call to one of the following api sets
3779
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3780
+
3781
+ api_instance = xero_client.<api_set>
3782
+
3783
+
3784
+
3785
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3786
+ opts = {
3787
+ page: 56 # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
3788
+ }
3789
+
3790
+ begin
3791
+ #searches reimbursements
3792
+ result = api_instance.get_reimbursements(xero_tenant_id, opts)
3793
+ p result
3794
+ rescue XeroRuby::PayrollUk::ApiError => e
3795
+ puts "Exception when calling PayrollUkApi->get_reimbursements: #{e}"
3796
+ end
3797
+ ```
3798
+
3799
+ ### Parameters
3800
+
3801
+
3802
+ Name | Type | Description | Notes
3803
+ ------------- | ------------- | ------------- | -------------
3804
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3805
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
3806
+
3807
+ ### Return type
3808
+
3809
+ [**Reimbursements**](Reimbursements.md)
3810
+
3811
+ ### Authorization
3812
+
3813
+ [OAuth2](../README.md#OAuth2)
3814
+
3815
+ ### HTTP request headers
3816
+
3817
+ - **Content-Type**: Not defined
3818
+ - **Accept**: application/json
3819
+
3820
+
3821
+ ## get_settings
3822
+
3823
+ > Settings get_settings(xero_tenant_id)
3824
+
3825
+ searches settings
3826
+
3827
+ ### Example
3828
+
3829
+ ```ruby
3830
+ # load the gem
3831
+ require 'xero-ruby'
3832
+
3833
+ creds = {
3834
+ client_id: ENV['CLIENT_ID'],
3835
+ client_secret: ENV['CLIENT_SECRET'],
3836
+ redirect_uri: ENV['REDIRECT_URI'],
3837
+ scopes: ENV['SCOPES']
3838
+ }
3839
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3840
+
3841
+ token_set = fetch_valid_token_set(user) # example
3842
+
3843
+ xero_client.refresh_token_set(token_set)
3844
+
3845
+ # You need to namespace your api method call to one of the following api sets
3846
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3847
+
3848
+ api_instance = xero_client.<api_set>
3849
+
3850
+
3851
+
3852
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3853
+ begin
3854
+ #searches settings
3855
+ result = api_instance.get_settings(xero_tenant_id)
3856
+ p result
3857
+ rescue XeroRuby::PayrollUk::ApiError => e
3858
+ puts "Exception when calling PayrollUkApi->get_settings: #{e}"
3859
+ end
3860
+ ```
3861
+
3862
+ ### Parameters
3863
+
3864
+
3865
+ Name | Type | Description | Notes
3866
+ ------------- | ------------- | ------------- | -------------
3867
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3868
+
3869
+ ### Return type
3870
+
3871
+ [**Settings**](Settings.md)
3872
+
3873
+ ### Authorization
3874
+
3875
+ [OAuth2](../README.md#OAuth2)
3876
+
3877
+ ### HTTP request headers
3878
+
3879
+ - **Content-Type**: Not defined
3880
+ - **Accept**: application/json
3881
+
3882
+
3883
+ ## get_statutory_leave_summary
3884
+
3885
+ > EmployeeStatutoryLeavesSummaries get_statutory_leave_summary(xero_tenant_id, employee_id, opts)
3886
+
3887
+ retrieve a summary of statutory leaves for an employee
3888
+
3889
+ ### Example
3890
+
3891
+ ```ruby
3892
+ # load the gem
3893
+ require 'xero-ruby'
3894
+
3895
+ creds = {
3896
+ client_id: ENV['CLIENT_ID'],
3897
+ client_secret: ENV['CLIENT_SECRET'],
3898
+ redirect_uri: ENV['REDIRECT_URI'],
3899
+ scopes: ENV['SCOPES']
3900
+ }
3901
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3902
+
3903
+ token_set = fetch_valid_token_set(user) # example
3904
+
3905
+ xero_client.refresh_token_set(token_set)
3906
+
3907
+ # You need to namespace your api method call to one of the following api sets
3908
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3909
+
3910
+ api_instance = xero_client.<api_set>
3911
+
3912
+
3913
+
3914
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3915
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
3916
+ opts = {
3917
+ active_only: true # Boolean | Filter response with leaves that are currently active or yet to be taken. If not specified, all leaves (past, current, and future scheduled) are returned
3918
+ }
3919
+
3920
+ begin
3921
+ #retrieve a summary of statutory leaves for an employee
3922
+ result = api_instance.get_statutory_leave_summary(xero_tenant_id, employee_id, opts)
3923
+ p result
3924
+ rescue XeroRuby::PayrollUk::ApiError => e
3925
+ puts "Exception when calling PayrollUkApi->get_statutory_leave_summary: #{e}"
3926
+ end
3927
+ ```
3928
+
3929
+ ### Parameters
3930
+
3931
+
3932
+ Name | Type | Description | Notes
3933
+ ------------- | ------------- | ------------- | -------------
3934
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
3935
+ **employee_id** | [**String**](.md)| Employee id for single object |
3936
+ **active_only** | **Boolean**| Filter response with leaves that are currently active or yet to be taken. If not specified, all leaves (past, current, and future scheduled) are returned | [optional]
3937
+
3938
+ ### Return type
3939
+
3940
+ [**EmployeeStatutoryLeavesSummaries**](EmployeeStatutoryLeavesSummaries.md)
3941
+
3942
+ ### Authorization
3943
+
3944
+ [OAuth2](../README.md#OAuth2)
3945
+
3946
+ ### HTTP request headers
3947
+
3948
+ - **Content-Type**: Not defined
3949
+ - **Accept**: application/json
3950
+
3951
+
3952
+ ## get_timesheet
3953
+
3954
+ > TimesheetObject get_timesheet(xero_tenant_id, timesheet_id)
3955
+
3956
+ retrieve a single timesheet by id
3957
+
3958
+ ### Example
3959
+
3960
+ ```ruby
3961
+ # load the gem
3962
+ require 'xero-ruby'
3963
+
3964
+ creds = {
3965
+ client_id: ENV['CLIENT_ID'],
3966
+ client_secret: ENV['CLIENT_SECRET'],
3967
+ redirect_uri: ENV['REDIRECT_URI'],
3968
+ scopes: ENV['SCOPES']
3969
+ }
3970
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
3971
+
3972
+ token_set = fetch_valid_token_set(user) # example
3973
+
3974
+ xero_client.refresh_token_set(token_set)
3975
+
3976
+ # You need to namespace your api method call to one of the following api sets
3977
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
3978
+
3979
+ api_instance = xero_client.<api_set>
3980
+
3981
+
3982
+
3983
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
3984
+ timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
3985
+ begin
3986
+ #retrieve a single timesheet by id
3987
+ result = api_instance.get_timesheet(xero_tenant_id, timesheet_id)
3988
+ p result
3989
+ rescue XeroRuby::PayrollUk::ApiError => e
3990
+ puts "Exception when calling PayrollUkApi->get_timesheet: #{e}"
3991
+ end
3992
+ ```
3993
+
3994
+ ### Parameters
3995
+
3996
+
3997
+ Name | Type | Description | Notes
3998
+ ------------- | ------------- | ------------- | -------------
3999
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4000
+ **timesheet_id** | [**String**](.md)| Identifier for the timesheet |
4001
+
4002
+ ### Return type
4003
+
4004
+ [**TimesheetObject**](TimesheetObject.md)
4005
+
4006
+ ### Authorization
4007
+
4008
+ [OAuth2](../README.md#OAuth2)
4009
+
4010
+ ### HTTP request headers
4011
+
4012
+ - **Content-Type**: Not defined
4013
+ - **Accept**: application/json
4014
+
4015
+
4016
+ ## get_timesheets
4017
+
4018
+ > Timesheets get_timesheets(xero_tenant_id, opts)
4019
+
4020
+ searches timesheets
4021
+
4022
+ ### Example
4023
+
4024
+ ```ruby
4025
+ # load the gem
4026
+ require 'xero-ruby'
4027
+
4028
+ creds = {
4029
+ client_id: ENV['CLIENT_ID'],
4030
+ client_secret: ENV['CLIENT_SECRET'],
4031
+ redirect_uri: ENV['REDIRECT_URI'],
4032
+ scopes: ENV['SCOPES']
4033
+ }
4034
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4035
+
4036
+ token_set = fetch_valid_token_set(user) # example
4037
+
4038
+ xero_client.refresh_token_set(token_set)
4039
+
4040
+ # You need to namespace your api method call to one of the following api sets
4041
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4042
+
4043
+ api_instance = xero_client.<api_set>
4044
+
4045
+
4046
+
4047
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4048
+ opts = {
4049
+ page: 56, # Integer | Page number which specifies the set of records to retrieve. By default the number of the records per set is 100.
4050
+
4051
+ employee_id: 'employee_id_example', # String | By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter=employeeId=={EmployeeId} to get only the timesheets of a particular employee.
4052
+
4053
+ payroll_calendar_id: 'payroll_calendar_id_example' # String | By default get Timesheets will return all the timesheets for an organization. You can add GET https://…/timesheets?filter=payrollCalendarId=={PayrollCalendarID} to filter the timesheets by payroll calendar id
4054
+ }
4055
+
4056
+ begin
4057
+ #searches timesheets
4058
+ result = api_instance.get_timesheets(xero_tenant_id, opts)
4059
+ p result
4060
+ rescue XeroRuby::PayrollUk::ApiError => e
4061
+ puts "Exception when calling PayrollUkApi->get_timesheets: #{e}"
4062
+ end
4063
+ ```
4064
+
4065
+ ### Parameters
4066
+
4067
+
4068
+ Name | Type | Description | Notes
4069
+ ------------- | ------------- | ------------- | -------------
4070
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4071
+ **page** | **Integer**| Page number which specifies the set of records to retrieve. By default the number of the records per set is 100. | [optional]
4072
+ **employee_id** | [**String**](.md)| By default get Timesheets will return the timesheets for all employees in an organization. You can add GET https://…/timesheets?filter&#x3D;employeeId&#x3D;&#x3D;{EmployeeId} to get only the timesheets of a particular employee. | [optional]
4073
+ **payroll_calendar_id** | [**String**](.md)| By default get Timesheets will return all the timesheets for an organization. You can add GET https://…/timesheets?filter&#x3D;payrollCalendarId&#x3D;&#x3D;{PayrollCalendarID} to filter the timesheets by payroll calendar id | [optional]
4074
+
4075
+ ### Return type
4076
+
4077
+ [**Timesheets**](Timesheets.md)
4078
+
4079
+ ### Authorization
4080
+
4081
+ [OAuth2](../README.md#OAuth2)
4082
+
4083
+ ### HTTP request headers
4084
+
4085
+ - **Content-Type**: Not defined
4086
+ - **Accept**: application/json
4087
+
4088
+
4089
+ ## get_tracking_categories
4090
+
4091
+ > TrackingCategories get_tracking_categories(xero_tenant_id)
4092
+
4093
+ searches tracking categories
4094
+
4095
+ ### Example
4096
+
4097
+ ```ruby
4098
+ # load the gem
4099
+ require 'xero-ruby'
4100
+
4101
+ creds = {
4102
+ client_id: ENV['CLIENT_ID'],
4103
+ client_secret: ENV['CLIENT_SECRET'],
4104
+ redirect_uri: ENV['REDIRECT_URI'],
4105
+ scopes: ENV['SCOPES']
4106
+ }
4107
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4108
+
4109
+ token_set = fetch_valid_token_set(user) # example
4110
+
4111
+ xero_client.refresh_token_set(token_set)
4112
+
4113
+ # You need to namespace your api method call to one of the following api sets
4114
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4115
+
4116
+ api_instance = xero_client.<api_set>
4117
+
4118
+
4119
+
4120
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4121
+ begin
4122
+ #searches tracking categories
4123
+ result = api_instance.get_tracking_categories(xero_tenant_id)
4124
+ p result
4125
+ rescue XeroRuby::PayrollUk::ApiError => e
4126
+ puts "Exception when calling PayrollUkApi->get_tracking_categories: #{e}"
4127
+ end
4128
+ ```
4129
+
4130
+ ### Parameters
4131
+
4132
+
4133
+ Name | Type | Description | Notes
4134
+ ------------- | ------------- | ------------- | -------------
4135
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4136
+
4137
+ ### Return type
4138
+
4139
+ [**TrackingCategories**](TrackingCategories.md)
4140
+
4141
+ ### Authorization
4142
+
4143
+ [OAuth2](../README.md#OAuth2)
4144
+
4145
+ ### HTTP request headers
4146
+
4147
+ - **Content-Type**: Not defined
4148
+ - **Accept**: application/json
4149
+
4150
+
4151
+ ## revert_timesheet
4152
+
4153
+ > TimesheetObject revert_timesheet(xero_tenant_id, timesheet_id)
4154
+
4155
+ revert a timesheet to draft
4156
+
4157
+ ### Example
4158
+
4159
+ ```ruby
4160
+ # load the gem
4161
+ require 'xero-ruby'
4162
+
4163
+ creds = {
4164
+ client_id: ENV['CLIENT_ID'],
4165
+ client_secret: ENV['CLIENT_SECRET'],
4166
+ redirect_uri: ENV['REDIRECT_URI'],
4167
+ scopes: ENV['SCOPES']
4168
+ }
4169
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4170
+
4171
+ token_set = fetch_valid_token_set(user) # example
4172
+
4173
+ xero_client.refresh_token_set(token_set)
4174
+
4175
+ # You need to namespace your api method call to one of the following api sets
4176
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4177
+
4178
+ api_instance = xero_client.<api_set>
4179
+
4180
+
4181
+
4182
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4183
+ timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
4184
+ begin
4185
+ #revert a timesheet to draft
4186
+ result = api_instance.revert_timesheet(xero_tenant_id, timesheet_id)
4187
+ p result
4188
+ rescue XeroRuby::PayrollUk::ApiError => e
4189
+ puts "Exception when calling PayrollUkApi->revert_timesheet: #{e}"
4190
+ end
4191
+ ```
4192
+
4193
+ ### Parameters
4194
+
4195
+
4196
+ Name | Type | Description | Notes
4197
+ ------------- | ------------- | ------------- | -------------
4198
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4199
+ **timesheet_id** | [**String**](.md)| Identifier for the timesheet |
4200
+
4201
+ ### Return type
4202
+
4203
+ [**TimesheetObject**](TimesheetObject.md)
4204
+
4205
+ ### Authorization
4206
+
4207
+ [OAuth2](../README.md#OAuth2)
4208
+
4209
+ ### HTTP request headers
4210
+
4211
+ - **Content-Type**: Not defined
4212
+ - **Accept**: application/json
4213
+
4214
+
4215
+ ## update_employee
4216
+
4217
+ > EmployeeObject update_employee(xero_tenant_id, employee_id, employee)
4218
+
4219
+ updates employee
4220
+
4221
+ ### Example
4222
+
4223
+ ```ruby
4224
+ # load the gem
4225
+ require 'xero-ruby'
4226
+
4227
+ creds = {
4228
+ client_id: ENV['CLIENT_ID'],
4229
+ client_secret: ENV['CLIENT_SECRET'],
4230
+ redirect_uri: ENV['REDIRECT_URI'],
4231
+ scopes: ENV['SCOPES']
4232
+ }
4233
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4234
+
4235
+ token_set = fetch_valid_token_set(user) # example
4236
+
4237
+ xero_client.refresh_token_set(token_set)
4238
+
4239
+ # You need to namespace your api method call to one of the following api sets
4240
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4241
+
4242
+ api_instance = xero_client.<api_set>
4243
+
4244
+
4245
+
4246
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4247
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
4248
+ employee = { "title":"Mr", "firstName":"Mike", "lastName":"Johnllsbkrhwopson", "dateOfBirth":"1999-01-01", "address":{ "addressLine1":"101 Green St", "city":"San Francisco", "postCode":"6TGR4F", "country":"UK" }, "email":"84044@starkindustries.com", "gender":"M" } # Employee |
4249
+ begin
4250
+ #updates employee
4251
+ result = api_instance.update_employee(xero_tenant_id, employee_id, employee)
4252
+ p result
4253
+ rescue XeroRuby::PayrollUk::ApiError => e
4254
+ puts "Exception when calling PayrollUkApi->update_employee: #{e}"
4255
+ end
4256
+ ```
4257
+
4258
+ ### Parameters
4259
+
4260
+
4261
+ Name | Type | Description | Notes
4262
+ ------------- | ------------- | ------------- | -------------
4263
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4264
+ **employee_id** | [**String**](.md)| Employee id for single object |
4265
+ **employee** | [**Employee**](Employee.md)| |
4266
+
4267
+ ### Return type
4268
+
4269
+ [**EmployeeObject**](EmployeeObject.md)
4270
+
4271
+ ### Authorization
4272
+
4273
+ [OAuth2](../README.md#OAuth2)
4274
+
4275
+ ### HTTP request headers
4276
+
4277
+ - **Content-Type**: application/json
4278
+ - **Accept**: application/json
4279
+
4280
+
4281
+ ## update_employee_earnings_template
4282
+
4283
+ > EarningsTemplateObject update_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id, earnings_template)
4284
+
4285
+ updates employee earnings template records
4286
+
4287
+ ### Example
4288
+
4289
+ ```ruby
4290
+ # load the gem
4291
+ require 'xero-ruby'
4292
+
4293
+ creds = {
4294
+ client_id: ENV['CLIENT_ID'],
4295
+ client_secret: ENV['CLIENT_SECRET'],
4296
+ redirect_uri: ENV['REDIRECT_URI'],
4297
+ scopes: ENV['SCOPES']
4298
+ }
4299
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4300
+
4301
+ token_set = fetch_valid_token_set(user) # example
4302
+
4303
+ xero_client.refresh_token_set(token_set)
4304
+
4305
+ # You need to namespace your api method call to one of the following api sets
4306
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4307
+
4308
+ api_instance = xero_client.<api_set>
4309
+
4310
+
4311
+
4312
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4313
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
4314
+ pay_template_earning_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single pay template earnings object
4315
+ earnings_template = { "ratePerUnit": 30, "numberOfUnits": 4, "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27" } # EarningsTemplate |
4316
+ begin
4317
+ #updates employee earnings template records
4318
+ result = api_instance.update_employee_earnings_template(xero_tenant_id, employee_id, pay_template_earning_id, earnings_template)
4319
+ p result
4320
+ rescue XeroRuby::PayrollUk::ApiError => e
4321
+ puts "Exception when calling PayrollUkApi->update_employee_earnings_template: #{e}"
4322
+ end
4323
+ ```
4324
+
4325
+ ### Parameters
4326
+
4327
+
4328
+ Name | Type | Description | Notes
4329
+ ------------- | ------------- | ------------- | -------------
4330
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4331
+ **employee_id** | [**String**](.md)| Employee id for single object |
4332
+ **pay_template_earning_id** | [**String**](.md)| Id for single pay template earnings object |
4333
+ **earnings_template** | [**EarningsTemplate**](EarningsTemplate.md)| |
4334
+
4335
+ ### Return type
4336
+
4337
+ [**EarningsTemplateObject**](EarningsTemplateObject.md)
4338
+
4339
+ ### Authorization
4340
+
4341
+ [OAuth2](../README.md#OAuth2)
4342
+
4343
+ ### HTTP request headers
4344
+
4345
+ - **Content-Type**: application/json
4346
+ - **Accept**: application/json
4347
+
4348
+
4349
+ ## update_employee_leave
4350
+
4351
+ > EmployeeLeaveObject update_employee_leave(xero_tenant_id, employee_id, leave_id, employee_leave)
4352
+
4353
+ updates employee leave records
4354
+
4355
+ ### Example
4356
+
4357
+ ```ruby
4358
+ # load the gem
4359
+ require 'xero-ruby'
4360
+
4361
+ creds = {
4362
+ client_id: ENV['CLIENT_ID'],
4363
+ client_secret: ENV['CLIENT_SECRET'],
4364
+ redirect_uri: ENV['REDIRECT_URI'],
4365
+ scopes: ENV['SCOPES']
4366
+ }
4367
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4368
+
4369
+ token_set = fetch_valid_token_set(user) # example
4370
+
4371
+ xero_client.refresh_token_set(token_set)
4372
+
4373
+ # You need to namespace your api method call to one of the following api sets
4374
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4375
+
4376
+ api_instance = xero_client.<api_set>
4377
+
4378
+
4379
+
4380
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4381
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
4382
+ leave_id = 'c4be24e5-e840-4c92-9eaa-2d86cd596314' # String | Leave id for single object
4383
+ employee_leave = { "leaveTypeID": "ed08dffe-788e-4b24-9630-f0fa2f4d164c", "description": "Creating a Description", "startDate": "2020-04-24", "endDate": "2020-04-26", "periods": [ { "periodStartDate": "2020-04-20", "periodEndDate": "2020-04-26", "numberOfUnits": 1, "periodStatus": "Approved" } ] } # EmployeeLeave |
4384
+ begin
4385
+ #updates employee leave records
4386
+ result = api_instance.update_employee_leave(xero_tenant_id, employee_id, leave_id, employee_leave)
4387
+ p result
4388
+ rescue XeroRuby::PayrollUk::ApiError => e
4389
+ puts "Exception when calling PayrollUkApi->update_employee_leave: #{e}"
4390
+ end
4391
+ ```
4392
+
4393
+ ### Parameters
4394
+
4395
+
4396
+ Name | Type | Description | Notes
4397
+ ------------- | ------------- | ------------- | -------------
4398
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4399
+ **employee_id** | [**String**](.md)| Employee id for single object |
4400
+ **leave_id** | [**String**](.md)| Leave id for single object |
4401
+ **employee_leave** | [**EmployeeLeave**](EmployeeLeave.md)| |
4402
+
4403
+ ### Return type
4404
+
4405
+ [**EmployeeLeaveObject**](EmployeeLeaveObject.md)
4406
+
4407
+ ### Authorization
4408
+
4409
+ [OAuth2](../README.md#OAuth2)
4410
+
4411
+ ### HTTP request headers
4412
+
4413
+ - **Content-Type**: application/json
4414
+ - **Accept**: application/json
4415
+
4416
+
4417
+ ## update_employee_opening_balances
4418
+
4419
+ > EmployeeOpeningBalancesObject update_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balances)
4420
+
4421
+ updates employee opening balances
4422
+
4423
+ ### Example
4424
+
4425
+ ```ruby
4426
+ # load the gem
4427
+ require 'xero-ruby'
4428
+
4429
+ creds = {
4430
+ client_id: ENV['CLIENT_ID'],
4431
+ client_secret: ENV['CLIENT_SECRET'],
4432
+ redirect_uri: ENV['REDIRECT_URI'],
4433
+ scopes: ENV['SCOPES']
4434
+ }
4435
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4436
+
4437
+ token_set = fetch_valid_token_set(user) # example
4438
+
4439
+ xero_client.refresh_token_set(token_set)
4440
+
4441
+ # You need to namespace your api method call to one of the following api sets
4442
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4443
+
4444
+ api_instance = xero_client.<api_set>
4445
+
4446
+
4447
+
4448
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4449
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
4450
+ employee_opening_balances = { "statutoryAdoptionPay": 20, "statutoryMaternityPay": 20, "statutoryPaternityPay": 20, "statutorySharedParentalPay": 20, "statutorySickPay": 20, "priorEmployeeNumber": 20 } # EmployeeOpeningBalances |
4451
+ begin
4452
+ #updates employee opening balances
4453
+ result = api_instance.update_employee_opening_balances(xero_tenant_id, employee_id, employee_opening_balances)
4454
+ p result
4455
+ rescue XeroRuby::PayrollUk::ApiError => e
4456
+ puts "Exception when calling PayrollUkApi->update_employee_opening_balances: #{e}"
4457
+ end
4458
+ ```
4459
+
4460
+ ### Parameters
4461
+
4462
+
4463
+ Name | Type | Description | Notes
4464
+ ------------- | ------------- | ------------- | -------------
4465
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4466
+ **employee_id** | [**String**](.md)| Employee id for single object |
4467
+ **employee_opening_balances** | [**EmployeeOpeningBalances**](EmployeeOpeningBalances.md)| |
4468
+
4469
+ ### Return type
4470
+
4471
+ [**EmployeeOpeningBalancesObject**](EmployeeOpeningBalancesObject.md)
4472
+
4473
+ ### Authorization
4474
+
4475
+ [OAuth2](../README.md#OAuth2)
4476
+
4477
+ ### HTTP request headers
4478
+
4479
+ - **Content-Type**: application/json
4480
+ - **Accept**: application/json
4481
+
4482
+
4483
+ ## update_employee_salary_and_wage
4484
+
4485
+ > SalaryAndWageObject update_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id, salary_and_wage)
4486
+
4487
+ updates employee salary and wages record
4488
+
4489
+ ### Example
4490
+
4491
+ ```ruby
4492
+ # load the gem
4493
+ require 'xero-ruby'
4494
+
4495
+ creds = {
4496
+ client_id: ENV['CLIENT_ID'],
4497
+ client_secret: ENV['CLIENT_SECRET'],
4498
+ redirect_uri: ENV['REDIRECT_URI'],
4499
+ scopes: ENV['SCOPES']
4500
+ }
4501
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4502
+
4503
+ token_set = fetch_valid_token_set(user) # example
4504
+
4505
+ xero_client.refresh_token_set(token_set)
4506
+
4507
+ # You need to namespace your api method call to one of the following api sets
4508
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4509
+
4510
+ api_instance = xero_client.<api_set>
4511
+
4512
+
4513
+
4514
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4515
+ employee_id = '4ff1e5cc-9835-40d5-bb18-09fdb118db9c' # String | Employee id for single object
4516
+ salary_and_wages_id = '3fa85f64-5717-4562-b3fc-2c963f66afa6' # String | Id for single pay template earnings object
4517
+ salary_and_wage = { "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnitsPerWeek": 3, "ratePerUnit": 11, "effectiveFrom": "2020-05-15", "annualSalary": 101, "status": "ACTIVE", "paymentType": "Salary" } # SalaryAndWage |
4518
+ begin
4519
+ #updates employee salary and wages record
4520
+ result = api_instance.update_employee_salary_and_wage(xero_tenant_id, employee_id, salary_and_wages_id, salary_and_wage)
4521
+ p result
4522
+ rescue XeroRuby::PayrollUk::ApiError => e
4523
+ puts "Exception when calling PayrollUkApi->update_employee_salary_and_wage: #{e}"
4524
+ end
4525
+ ```
4526
+
4527
+ ### Parameters
4528
+
4529
+
4530
+ Name | Type | Description | Notes
4531
+ ------------- | ------------- | ------------- | -------------
4532
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4533
+ **employee_id** | [**String**](.md)| Employee id for single object |
4534
+ **salary_and_wages_id** | [**String**](.md)| Id for single pay template earnings object |
4535
+ **salary_and_wage** | [**SalaryAndWage**](SalaryAndWage.md)| |
4536
+
4537
+ ### Return type
4538
+
4539
+ [**SalaryAndWageObject**](SalaryAndWageObject.md)
4540
+
4541
+ ### Authorization
4542
+
4543
+ [OAuth2](../README.md#OAuth2)
4544
+
4545
+ ### HTTP request headers
4546
+
4547
+ - **Content-Type**: application/json
4548
+ - **Accept**: application/json
4549
+
4550
+
4551
+ ## update_pay_run
4552
+
4553
+ > PayRunObject update_pay_run(xero_tenant_id, pay_run_id, pay_run)
4554
+
4555
+ update a pay run
4556
+
4557
+ ### Example
4558
+
4559
+ ```ruby
4560
+ # load the gem
4561
+ require 'xero-ruby'
4562
+
4563
+ creds = {
4564
+ client_id: ENV['CLIENT_ID'],
4565
+ client_secret: ENV['CLIENT_SECRET'],
4566
+ redirect_uri: ENV['REDIRECT_URI'],
4567
+ scopes: ENV['SCOPES']
4568
+ }
4569
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4570
+
4571
+ token_set = fetch_valid_token_set(user) # example
4572
+
4573
+ xero_client.refresh_token_set(token_set)
4574
+
4575
+ # You need to namespace your api method call to one of the following api sets
4576
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4577
+
4578
+ api_instance = xero_client.<api_set>
4579
+
4580
+
4581
+
4582
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4583
+ pay_run_id = 'pay_run_id_example' # String | Identifier for the pay run
4584
+ pay_run = { "paymentDate": "2020-05-01" } # PayRun |
4585
+ begin
4586
+ #update a pay run
4587
+ result = api_instance.update_pay_run(xero_tenant_id, pay_run_id, pay_run)
4588
+ p result
4589
+ rescue XeroRuby::PayrollUk::ApiError => e
4590
+ puts "Exception when calling PayrollUkApi->update_pay_run: #{e}"
4591
+ end
4592
+ ```
4593
+
4594
+ ### Parameters
4595
+
4596
+
4597
+ Name | Type | Description | Notes
4598
+ ------------- | ------------- | ------------- | -------------
4599
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4600
+ **pay_run_id** | [**String**](.md)| Identifier for the pay run |
4601
+ **pay_run** | [**PayRun**](PayRun.md)| |
4602
+
4603
+ ### Return type
4604
+
4605
+ [**PayRunObject**](PayRunObject.md)
4606
+
4607
+ ### Authorization
4608
+
4609
+ [OAuth2](../README.md#OAuth2)
4610
+
4611
+ ### HTTP request headers
4612
+
4613
+ - **Content-Type**: application/json
4614
+ - **Accept**: application/json
4615
+
4616
+
4617
+ ## update_timesheet_line
4618
+
4619
+ > TimesheetLineObject update_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id, timesheet_line)
4620
+
4621
+ update a timesheet line
4622
+
4623
+ ### Example
4624
+
4625
+ ```ruby
4626
+ # load the gem
4627
+ require 'xero-ruby'
4628
+
4629
+ creds = {
4630
+ client_id: ENV['CLIENT_ID'],
4631
+ client_secret: ENV['CLIENT_SECRET'],
4632
+ redirect_uri: ENV['REDIRECT_URI'],
4633
+ scopes: ENV['SCOPES']
4634
+ }
4635
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
4636
+
4637
+ token_set = fetch_valid_token_set(user) # example
4638
+
4639
+ xero_client.refresh_token_set(token_set)
4640
+
4641
+ # You need to namespace your api method call to one of the following api sets
4642
+ # [:accounting_api, :assets_api, :projects_api, :files_api, :payroll_au_api, :payroll_nz_api, :payroll_uk_api]
4643
+
4644
+ api_instance = xero_client.<api_set>
4645
+
4646
+
4647
+
4648
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
4649
+ timesheet_id = 'timesheet_id_example' # String | Identifier for the timesheet
4650
+ timesheet_line_id = 'timesheet_line_id_example' # String | Identifier for the timesheet line
4651
+ timesheet_line = { "date": "2020-04-14", "earningsRateID": "87f5b43a-cf51-4b74-92de-94c819e82d27", "numberOfUnits": 2 } # TimesheetLine |
4652
+ begin
4653
+ #update a timesheet line
4654
+ result = api_instance.update_timesheet_line(xero_tenant_id, timesheet_id, timesheet_line_id, timesheet_line)
4655
+ p result
4656
+ rescue XeroRuby::PayrollUk::ApiError => e
4657
+ puts "Exception when calling PayrollUkApi->update_timesheet_line: #{e}"
4658
+ end
4659
+ ```
4660
+
4661
+ ### Parameters
4662
+
4663
+
4664
+ Name | Type | Description | Notes
4665
+ ------------- | ------------- | ------------- | -------------
4666
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
4667
+ **timesheet_id** | [**String**](.md)| Identifier for the timesheet |
4668
+ **timesheet_line_id** | [**String**](.md)| Identifier for the timesheet line |
4669
+ **timesheet_line** | [**TimesheetLine**](TimesheetLine.md)| |
4670
+
4671
+ ### Return type
4672
+
4673
+ [**TimesheetLineObject**](TimesheetLineObject.md)
4674
+
4675
+ ### Authorization
4676
+
4677
+ [OAuth2](../README.md#OAuth2)
4678
+
4679
+ ### HTTP request headers
4680
+
4681
+ - **Content-Type**: application/json
4682
+ - **Accept**: application/json
4683
+