xero-ruby 0.2.4 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (463) hide show
  1. checksums.yaml +4 -4
  2. data/CODE_OF_CONDUCT.md +76 -0
  3. data/CONTRIBUTING.md +82 -0
  4. data/Gemfile.lock +68 -0
  5. data/LICENSE +21 -0
  6. data/README.md +155 -436
  7. data/build_notes.md +17 -0
  8. data/docs/{Account.md → accounting/Account.md} +3 -3
  9. data/docs/accounting/AccountType.md +16 -0
  10. data/docs/{AccountingApi.md → accounting/AccountingApi.md} +4990 -1787
  11. data/docs/{Accounts.md → accounting/Accounts.md} +3 -3
  12. data/docs/{AccountsPayable.md → accounting/AccountsPayable.md} +3 -3
  13. data/docs/{AccountsReceivable.md → accounting/AccountsReceivable.md} +3 -3
  14. data/docs/{Address.md → accounting/Address.md} +3 -3
  15. data/docs/accounting/Allocation.md +31 -0
  16. data/docs/{Allocations.md → accounting/Allocations.md} +3 -3
  17. data/docs/{Attachment.md → accounting/Attachment.md} +3 -3
  18. data/docs/{Attachments.md → accounting/Attachments.md} +3 -3
  19. data/docs/{Balances.md → accounting/Balances.md} +3 -3
  20. data/docs/{BankTransaction.md → accounting/BankTransaction.md} +3 -3
  21. data/docs/{BankTransactions.md → accounting/BankTransactions.md} +3 -3
  22. data/docs/{BankTransfer.md → accounting/BankTransfer.md} +4 -4
  23. data/docs/{BankTransfers.md → accounting/BankTransfers.md} +3 -3
  24. data/docs/{BatchPayment.md → accounting/BatchPayment.md} +4 -4
  25. data/docs/{BatchPaymentDetails.md → accounting/BatchPaymentDetails.md} +3 -3
  26. data/docs/{BatchPayments.md → accounting/BatchPayments.md} +3 -3
  27. data/docs/{Bill.md → accounting/Bill.md} +3 -3
  28. data/docs/{BrandingTheme.md → accounting/BrandingTheme.md} +3 -3
  29. data/docs/{BrandingThemes.md → accounting/BrandingThemes.md} +3 -3
  30. data/docs/{CISOrgSetting.md → accounting/CISOrgSetting.md} +3 -3
  31. data/docs/{CISSetting.md → accounting/CISSetting.md} +3 -3
  32. data/docs/{CISSettings.md → accounting/CISSettings.md} +3 -3
  33. data/docs/{Contact.md → accounting/Contact.md} +5 -5
  34. data/docs/{ContactGroup.md → accounting/ContactGroup.md} +3 -3
  35. data/docs/{ContactGroups.md → accounting/ContactGroups.md} +3 -3
  36. data/docs/{ContactPerson.md → accounting/ContactPerson.md} +3 -3
  37. data/docs/{Contacts.md → accounting/Contacts.md} +3 -3
  38. data/docs/accounting/CountryCode.md +16 -0
  39. data/docs/{CreditNote.md → accounting/CreditNote.md} +5 -5
  40. data/docs/{CreditNotes.md → accounting/CreditNotes.md} +3 -3
  41. data/docs/{Currencies.md → accounting/Currencies.md} +3 -3
  42. data/docs/{Currency.md → accounting/Currency.md} +3 -3
  43. data/docs/accounting/CurrencyCode.md +16 -0
  44. data/docs/{Element.md → accounting/Element.md} +3 -3
  45. data/docs/{Employee.md → accounting/Employee.md} +3 -3
  46. data/docs/{Employees.md → accounting/Employees.md} +3 -3
  47. data/docs/{Error.md → accounting/Error.md} +3 -3
  48. data/docs/{ExpenseClaim.md → accounting/ExpenseClaim.md} +3 -3
  49. data/docs/{ExpenseClaims.md → accounting/ExpenseClaims.md} +3 -3
  50. data/docs/{ExternalLink.md → accounting/ExternalLink.md} +3 -3
  51. data/docs/{HistoryRecord.md → accounting/HistoryRecord.md} +3 -3
  52. data/docs/{HistoryRecords.md → accounting/HistoryRecords.md} +3 -3
  53. data/docs/{Invoice.md → accounting/Invoice.md} +5 -5
  54. data/docs/{InvoiceReminder.md → accounting/InvoiceReminder.md} +3 -3
  55. data/docs/{InvoiceReminders.md → accounting/InvoiceReminders.md} +3 -3
  56. data/docs/{Invoices.md → accounting/Invoices.md} +3 -3
  57. data/docs/{Item.md → accounting/Item.md} +3 -3
  58. data/docs/{Items.md → accounting/Items.md} +3 -3
  59. data/docs/{Journal.md → accounting/Journal.md} +4 -4
  60. data/docs/{JournalLine.md → accounting/JournalLine.md} +3 -3
  61. data/docs/{Journals.md → accounting/Journals.md} +3 -3
  62. data/docs/accounting/LineAmountTypes.md +16 -0
  63. data/docs/{LineItem.md → accounting/LineItem.md} +3 -3
  64. data/docs/{LineItemTracking.md → accounting/LineItemTracking.md} +3 -3
  65. data/docs/{LinkedTransaction.md → accounting/LinkedTransaction.md} +3 -3
  66. data/docs/{LinkedTransactions.md → accounting/LinkedTransactions.md} +3 -3
  67. data/docs/{ManualJournal.md → accounting/ManualJournal.md} +3 -3
  68. data/docs/{ManualJournalLine.md → accounting/ManualJournalLine.md} +5 -3
  69. data/docs/{ManualJournals.md → accounting/ManualJournals.md} +3 -3
  70. data/docs/{OnlineInvoice.md → accounting/OnlineInvoice.md} +3 -3
  71. data/docs/{OnlineInvoices.md → accounting/OnlineInvoices.md} +3 -3
  72. data/docs/{Organisation.md → accounting/Organisation.md} +6 -4
  73. data/docs/{Organisations.md → accounting/Organisations.md} +3 -3
  74. data/docs/{Overpayment.md → accounting/Overpayment.md} +3 -3
  75. data/docs/{Overpayments.md → accounting/Overpayments.md} +3 -3
  76. data/docs/{Payment.md → accounting/Payment.md} +9 -7
  77. data/docs/{PaymentDelete.md → accounting/PaymentDelete.md} +3 -3
  78. data/docs/{PaymentService.md → accounting/PaymentService.md} +3 -3
  79. data/docs/{PaymentServices.md → accounting/PaymentServices.md} +3 -3
  80. data/docs/{PaymentTerm.md → accounting/PaymentTerm.md} +3 -3
  81. data/docs/{PaymentTermType.md → accounting/PaymentTermType.md} +3 -3
  82. data/docs/{Payments.md → accounting/Payments.md} +3 -3
  83. data/docs/{Phone.md → accounting/Phone.md} +3 -3
  84. data/docs/{Prepayment.md → accounting/Prepayment.md} +3 -3
  85. data/docs/{Prepayments.md → accounting/Prepayments.md} +3 -3
  86. data/docs/{Purchase.md → accounting/Purchase.md} +3 -3
  87. data/docs/{PurchaseOrder.md → accounting/PurchaseOrder.md} +3 -3
  88. data/docs/{PurchaseOrders.md → accounting/PurchaseOrders.md} +3 -3
  89. data/docs/{Quote.md → accounting/Quote.md} +10 -6
  90. data/docs/{QuoteLineAmountTypes.md → accounting/QuoteLineAmountTypes.md} +3 -3
  91. data/docs/{QuoteStatusCodes.md → accounting/QuoteStatusCodes.md} +3 -3
  92. data/docs/{Quotes.md → accounting/Quotes.md} +3 -3
  93. data/docs/{Receipt.md → accounting/Receipt.md} +3 -3
  94. data/docs/{Receipts.md → accounting/Receipts.md} +3 -3
  95. data/docs/{RepeatingInvoice.md → accounting/RepeatingInvoice.md} +3 -3
  96. data/docs/{RepeatingInvoices.md → accounting/RepeatingInvoices.md} +3 -3
  97. data/docs/{Report.md → accounting/Report.md} +4 -4
  98. data/docs/{ReportAttribute.md → accounting/ReportAttribute.md} +3 -3
  99. data/docs/{ReportCell.md → accounting/ReportCell.md} +3 -3
  100. data/docs/{ReportFields.md → accounting/ReportFields.md} +3 -3
  101. data/docs/{ReportRow.md → accounting/ReportRow.md} +3 -3
  102. data/docs/{ReportRows.md → accounting/ReportRows.md} +3 -3
  103. data/docs/{ReportWithRow.md → accounting/ReportWithRow.md} +3 -3
  104. data/docs/{ReportWithRows.md → accounting/ReportWithRows.md} +3 -3
  105. data/docs/{Reports.md → accounting/Reports.md} +3 -3
  106. data/docs/{RequestEmpty.md → accounting/RequestEmpty.md} +3 -3
  107. data/docs/{RowType.md → accounting/RowType.md} +3 -3
  108. data/docs/{SalesTrackingCategory.md → accounting/SalesTrackingCategory.md} +3 -3
  109. data/docs/{Schedule.md → accounting/Schedule.md} +3 -3
  110. data/docs/{TaxComponent.md → accounting/TaxComponent.md} +3 -3
  111. data/docs/{TaxRate.md → accounting/TaxRate.md} +3 -3
  112. data/docs/{TaxRates.md → accounting/TaxRates.md} +3 -3
  113. data/docs/{TaxType.md → accounting/TaxType.md} +3 -3
  114. data/docs/{TenNinteyNineContact.md → accounting/TenNinetyNineContact.md} +3 -3
  115. data/docs/{TimeZone.md → accounting/TimeZone.md} +3 -3
  116. data/docs/{TrackingCategories.md → accounting/TrackingCategories.md} +3 -3
  117. data/docs/{TrackingCategory.md → accounting/TrackingCategory.md} +3 -3
  118. data/docs/{TrackingOption.md → accounting/TrackingOption.md} +3 -3
  119. data/docs/{TrackingOptions.md → accounting/TrackingOptions.md} +3 -3
  120. data/docs/{User.md → accounting/User.md} +3 -3
  121. data/docs/{Users.md → accounting/Users.md} +3 -3
  122. data/docs/{ValidationError.md → accounting/ValidationError.md} +3 -3
  123. data/docs/assets/Asset.md +45 -0
  124. data/docs/assets/AssetApi.md +438 -0
  125. data/docs/{CurrencyCode.md → assets/AssetStatus.md} +3 -3
  126. data/docs/assets/AssetStatusQueryParam.md +16 -0
  127. data/docs/assets/AssetType.md +29 -0
  128. data/docs/assets/Assets.md +19 -0
  129. data/docs/assets/BookDepreciationDetail.md +29 -0
  130. data/docs/assets/BookDepreciationSetting.md +31 -0
  131. data/docs/assets/Error.md +25 -0
  132. data/docs/assets/FieldValidationErrorsElement.md +27 -0
  133. data/docs/assets/Pagination.md +23 -0
  134. data/docs/assets/ResourceValidationErrorsElement.md +25 -0
  135. data/docs/assets/Setting.md +31 -0
  136. data/docs/projects/Amount.md +19 -0
  137. data/docs/{AccountType.md → projects/ChargeType.md} +3 -3
  138. data/docs/{CountryCode.md → projects/CurrencyCode.md} +3 -3
  139. data/docs/projects/Error.md +19 -0
  140. data/docs/projects/Pagination.md +23 -0
  141. data/docs/projects/Project.md +59 -0
  142. data/docs/projects/ProjectApi.md +979 -0
  143. data/docs/projects/ProjectCreateOrUpdate.md +23 -0
  144. data/docs/projects/ProjectPatch.md +17 -0
  145. data/docs/{LineAmountTypes.md → projects/ProjectStatus.md} +3 -3
  146. data/docs/projects/ProjectUser.md +21 -0
  147. data/docs/projects/ProjectUsers.md +19 -0
  148. data/docs/projects/Projects.md +19 -0
  149. data/docs/projects/Task.md +45 -0
  150. data/docs/projects/TaskCreateOrUpdate.md +23 -0
  151. data/docs/projects/Tasks.md +19 -0
  152. data/docs/projects/TimeEntries.md +19 -0
  153. data/docs/projects/TimeEntry.md +33 -0
  154. data/docs/projects/TimeEntryCreateOrUpdate.md +25 -0
  155. data/lib/xero-ruby.rb +148 -122
  156. data/lib/xero-ruby/api/accounting_api.rb +166 -29
  157. data/lib/xero-ruby/api/asset_api.rb +452 -0
  158. data/lib/xero-ruby/api/project_api.rb +1035 -0
  159. data/lib/xero-ruby/api_client.rb +237 -74
  160. data/lib/xero-ruby/api_error.rb +2 -2
  161. data/lib/xero-ruby/configuration.rb +35 -25
  162. data/lib/xero-ruby/models/{account.rb → accounting/account.rb} +65 -24
  163. data/lib/xero-ruby/models/{account_type.rb → accounting/account_type.rb} +3 -3
  164. data/lib/xero-ruby/models/{accounts.rb → accounting/accounts.rb} +12 -7
  165. data/lib/xero-ruby/models/{accounts_payable.rb → accounting/accounts_payable.rb} +15 -9
  166. data/lib/xero-ruby/models/{accounts_receivable.rb → accounting/accounts_receivable.rb} +15 -9
  167. data/lib/xero-ruby/models/{address.rb → accounting/address.rb} +23 -16
  168. data/lib/xero-ruby/models/accounting/allocation.rb +295 -0
  169. data/lib/xero-ruby/models/{allocations.rb → accounting/allocations.rb} +12 -7
  170. data/lib/xero-ruby/models/{attachment.rb → accounting/attachment.rb} +16 -12
  171. data/lib/xero-ruby/models/{attachments.rb → accounting/attachments.rb} +12 -7
  172. data/lib/xero-ruby/models/{balances.rb → accounting/balances.rb} +13 -7
  173. data/lib/xero-ruby/models/{bank_transaction.rb → accounting/bank_transaction.rb} +47 -28
  174. data/lib/xero-ruby/models/{bank_transactions.rb → accounting/bank_transactions.rb} +12 -7
  175. data/lib/xero-ruby/models/{bank_transfer.rb → accounting/bank_transfer.rb} +24 -18
  176. data/lib/xero-ruby/models/{bank_transfers.rb → accounting/bank_transfers.rb} +12 -7
  177. data/lib/xero-ruby/models/{batch_payment.rb → accounting/batch_payment.rb} +33 -23
  178. data/lib/xero-ruby/models/{batch_payment_details.rb → accounting/batch_payment_details.rb} +15 -11
  179. data/lib/xero-ruby/models/{batch_payments.rb → accounting/batch_payments.rb} +12 -7
  180. data/lib/xero-ruby/models/{bill.rb → accounting/bill.rb} +12 -7
  181. data/lib/xero-ruby/models/{branding_theme.rb → accounting/branding_theme.rb} +17 -12
  182. data/lib/xero-ruby/models/{branding_themes.rb → accounting/branding_themes.rb} +12 -7
  183. data/lib/xero-ruby/models/{cis_org_setting.rb → accounting/cis_org_setting.rb} +13 -9
  184. data/lib/xero-ruby/models/{cis_setting.rb → accounting/cis_setting.rb} +12 -8
  185. data/lib/xero-ruby/models/{cis_settings.rb → accounting/cis_settings.rb} +12 -7
  186. data/lib/xero-ruby/models/{contact.rb → accounting/contact.rb} +55 -41
  187. data/lib/xero-ruby/models/{contact_group.rb → accounting/contact_group.rb} +16 -10
  188. data/lib/xero-ruby/models/{contact_groups.rb → accounting/contact_groups.rb} +12 -7
  189. data/lib/xero-ruby/models/{contact_person.rb → accounting/contact_person.rb} +14 -10
  190. data/lib/xero-ruby/models/{contacts.rb → accounting/contacts.rb} +12 -7
  191. data/lib/xero-ruby/models/{country_code.rb → accounting/country_code.rb} +3 -3
  192. data/lib/xero-ruby/models/{credit_note.rb → accounting/credit_note.rb} +51 -34
  193. data/lib/xero-ruby/models/{credit_notes.rb → accounting/credit_notes.rb} +12 -7
  194. data/lib/xero-ruby/models/{currencies.rb → accounting/currencies.rb} +12 -7
  195. data/lib/xero-ruby/models/{currency.rb → accounting/currency.rb} +13 -8
  196. data/lib/xero-ruby/models/{currency_code.rb → accounting/currency_code.rb} +5 -5
  197. data/lib/xero-ruby/models/{element.rb → accounting/element.rb} +18 -8
  198. data/lib/xero-ruby/models/{employee.rb → accounting/employee.rb} +21 -12
  199. data/lib/xero-ruby/models/{employees.rb → accounting/employees.rb} +12 -7
  200. data/lib/xero-ruby/models/{error.rb → accounting/error.rb} +14 -10
  201. data/lib/xero-ruby/models/{expense_claim.rb → accounting/expense_claim.rb} +30 -19
  202. data/lib/xero-ruby/models/{expense_claims.rb → accounting/expense_claims.rb} +12 -7
  203. data/lib/xero-ruby/models/{external_link.rb → accounting/external_link.rb} +18 -8
  204. data/lib/xero-ruby/models/{history_record.rb → accounting/history_record.rb} +14 -10
  205. data/lib/xero-ruby/models/{history_records.rb → accounting/history_records.rb} +12 -7
  206. data/lib/xero-ruby/models/{invoice.rb → accounting/invoice.rb} +73 -50
  207. data/lib/xero-ruby/models/{invoice_reminder.rb → accounting/invoice_reminder.rb} +11 -7
  208. data/lib/xero-ruby/models/{invoice_reminders.rb → accounting/invoice_reminders.rb} +12 -7
  209. data/lib/xero-ruby/models/{invoices.rb → accounting/invoices.rb} +12 -7
  210. data/lib/xero-ruby/models/{item.rb → accounting/item.rb} +28 -22
  211. data/lib/xero-ruby/models/{items.rb → accounting/items.rb} +12 -7
  212. data/lib/xero-ruby/models/{journal.rb → accounting/journal.rb} +44 -15
  213. data/lib/xero-ruby/models/{journal_line.rb → accounting/journal_line.rb} +25 -20
  214. data/lib/xero-ruby/models/{journals.rb → accounting/journals.rb} +12 -7
  215. data/lib/xero-ruby/models/{line_amount_types.rb → accounting/line_amount_types.rb} +3 -3
  216. data/lib/xero-ruby/models/{line_item.rb → accounting/line_item.rb} +29 -25
  217. data/lib/xero-ruby/models/{line_item_tracking.rb → accounting/line_item_tracking.rb} +14 -10
  218. data/lib/xero-ruby/models/{linked_transaction.rb → accounting/linked_transaction.rb} +29 -17
  219. data/lib/xero-ruby/models/{linked_transactions.rb → accounting/linked_transactions.rb} +12 -7
  220. data/lib/xero-ruby/models/{manual_journal.rb → accounting/manual_journal.rb} +29 -19
  221. data/lib/xero-ruby/models/{manual_journal_line.rb → accounting/manual_journal_line.rb} +30 -16
  222. data/lib/xero-ruby/models/{manual_journals.rb → accounting/manual_journals.rb} +12 -7
  223. data/lib/xero-ruby/models/{online_invoice.rb → accounting/online_invoice.rb} +11 -7
  224. data/lib/xero-ruby/models/{online_invoices.rb → accounting/online_invoices.rb} +12 -7
  225. data/lib/xero-ruby/models/{organisation.rb → accounting/organisation.rb} +126 -36
  226. data/lib/xero-ruby/models/{organisations.rb → accounting/organisations.rb} +12 -7
  227. data/lib/xero-ruby/models/{overpayment.rb → accounting/overpayment.rb} +40 -27
  228. data/lib/xero-ruby/models/{overpayments.rb → accounting/overpayments.rb} +12 -7
  229. data/lib/xero-ruby/models/{payment.rb → accounting/payment.rb} +61 -28
  230. data/lib/xero-ruby/models/{payment_delete.rb → accounting/payment_delete.rb} +11 -7
  231. data/lib/xero-ruby/models/{payment_service.rb → accounting/payment_service.rb} +16 -12
  232. data/lib/xero-ruby/models/{payment_services.rb → accounting/payment_services.rb} +12 -7
  233. data/lib/xero-ruby/models/{payment_term.rb → accounting/payment_term.rb} +13 -7
  234. data/lib/xero-ruby/models/{payment_term_type.rb → accounting/payment_term_type.rb} +3 -3
  235. data/lib/xero-ruby/models/{payments.rb → accounting/payments.rb} +12 -7
  236. data/lib/xero-ruby/models/{phone.rb → accounting/phone.rb} +20 -10
  237. data/lib/xero-ruby/models/{prepayment.rb → accounting/prepayment.rb} +41 -27
  238. data/lib/xero-ruby/models/{prepayments.rb → accounting/prepayments.rb} +12 -7
  239. data/lib/xero-ruby/models/{purchase.rb → accounting/purchase.rb} +15 -11
  240. data/lib/xero-ruby/models/{purchase_order.rb → accounting/purchase_order.rb} +49 -37
  241. data/lib/xero-ruby/models/{purchase_orders.rb → accounting/purchase_orders.rb} +12 -7
  242. data/lib/xero-ruby/models/{quote.rb → accounting/quote.rb} +63 -33
  243. data/lib/xero-ruby/models/{quote_line_amount_types.rb → accounting/quote_line_amount_types.rb} +3 -3
  244. data/lib/xero-ruby/models/{quote_status_codes.rb → accounting/quote_status_codes.rb} +4 -3
  245. data/lib/xero-ruby/models/{quotes.rb → accounting/quotes.rb} +12 -7
  246. data/lib/xero-ruby/models/{receipt.rb → accounting/receipt.rb} +36 -23
  247. data/lib/xero-ruby/models/{receipts.rb → accounting/receipts.rb} +12 -7
  248. data/lib/xero-ruby/models/{repeating_invoice.rb → accounting/repeating_invoice.rb} +34 -21
  249. data/lib/xero-ruby/models/{repeating_invoices.rb → accounting/repeating_invoices.rb} +12 -7
  250. data/lib/xero-ruby/models/{report.rb → accounting/report.rb} +19 -13
  251. data/lib/xero-ruby/models/{report_attribute.rb → accounting/report_attribute.rb} +13 -7
  252. data/lib/xero-ruby/models/{report_cell.rb → accounting/report_cell.rb} +13 -7
  253. data/lib/xero-ruby/models/{report_fields.rb → accounting/report_fields.rb} +14 -7
  254. data/lib/xero-ruby/models/{report_row.rb → accounting/report_row.rb} +14 -7
  255. data/lib/xero-ruby/models/{report_rows.rb → accounting/report_rows.rb} +15 -7
  256. data/lib/xero-ruby/models/{report_with_row.rb → accounting/report_with_row.rb} +19 -13
  257. data/lib/xero-ruby/models/{report_with_rows.rb → accounting/report_with_rows.rb} +12 -7
  258. data/lib/xero-ruby/models/{reports.rb → accounting/reports.rb} +12 -7
  259. data/lib/xero-ruby/models/{request_empty.rb → accounting/request_empty.rb} +11 -7
  260. data/lib/xero-ruby/models/{row_type.rb → accounting/row_type.rb} +3 -3
  261. data/lib/xero-ruby/models/{sales_tracking_category.rb → accounting/sales_tracking_category.rb} +12 -8
  262. data/lib/xero-ruby/models/{schedule.rb → accounting/schedule.rb} +27 -15
  263. data/lib/xero-ruby/models/{tax_component.rb → accounting/tax_component.rb} +15 -11
  264. data/lib/xero-ruby/models/{tax_rate.rb → accounting/tax_rate.rb} +104 -22
  265. data/lib/xero-ruby/models/{tax_rates.rb → accounting/tax_rates.rb} +12 -7
  266. data/lib/xero-ruby/models/{tax_type.rb → accounting/tax_type.rb} +7 -3
  267. data/lib/xero-ruby/models/{ten_nintey_nine_contact.rb → accounting/ten_ninety_nine_contact.rb} +46 -42
  268. data/lib/xero-ruby/models/{time_zone.rb → accounting/time_zone.rb} +3 -3
  269. data/lib/xero-ruby/models/{tracking_categories.rb → accounting/tracking_categories.rb} +12 -7
  270. data/lib/xero-ruby/models/{tracking_category.rb → accounting/tracking_category.rb} +19 -12
  271. data/lib/xero-ruby/models/{tracking_option.rb → accounting/tracking_option.rb} +17 -10
  272. data/lib/xero-ruby/models/{tracking_options.rb → accounting/tracking_options.rb} +12 -7
  273. data/lib/xero-ruby/models/{user.rb → accounting/user.rb} +24 -13
  274. data/lib/xero-ruby/models/{users.rb → accounting/users.rb} +12 -7
  275. data/lib/xero-ruby/models/{validation_error.rb → accounting/validation_error.rb} +11 -7
  276. data/lib/xero-ruby/models/assets/asset.rb +353 -0
  277. data/lib/xero-ruby/models/assets/asset_status.rb +38 -0
  278. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +38 -0
  279. data/lib/xero-ruby/models/assets/asset_type.rb +278 -0
  280. data/lib/xero-ruby/models/assets/assets.rb +220 -0
  281. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +268 -0
  282. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +347 -0
  283. data/lib/xero-ruby/models/assets/error.rb +252 -0
  284. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +258 -0
  285. data/lib/xero-ruby/models/assets/pagination.rb +238 -0
  286. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +248 -0
  287. data/lib/xero-ruby/models/assets/setting.rb +278 -0
  288. data/lib/xero-ruby/models/projects/amount.rb +218 -0
  289. data/lib/xero-ruby/models/projects/charge_type.rb +38 -0
  290. data/lib/xero-ruby/models/projects/currency_code.rb +199 -0
  291. data/lib/xero-ruby/models/projects/error.rb +218 -0
  292. data/lib/xero-ruby/models/{allocation.rb → projects/pagination.rb} +48 -48
  293. data/lib/xero-ruby/models/projects/project.rb +423 -0
  294. data/lib/xero-ruby/models/projects/project_create_or_update.rb +243 -0
  295. data/lib/xero-ruby/models/projects/project_patch.rb +213 -0
  296. data/lib/xero-ruby/models/projects/project_status.rb +37 -0
  297. data/lib/xero-ruby/models/projects/project_user.rb +228 -0
  298. data/lib/xero-ruby/models/projects/project_users.rb +220 -0
  299. data/lib/xero-ruby/models/projects/projects.rb +220 -0
  300. data/lib/xero-ruby/models/projects/task.rb +385 -0
  301. data/lib/xero-ruby/models/projects/task_create_or_update.rb +253 -0
  302. data/lib/xero-ruby/models/projects/tasks.rb +220 -0
  303. data/lib/xero-ruby/models/projects/time_entries.rb +220 -0
  304. data/lib/xero-ruby/models/projects/time_entry.rb +324 -0
  305. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +268 -0
  306. data/lib/xero-ruby/version.rb +3 -3
  307. data/spec/{api → accounting/api}/accounting_api_spec.rb +31 -6
  308. data/spec/{models → accounting/models}/account_spec.rb +5 -5
  309. data/spec/{models → accounting/models}/account_type_spec.rb +5 -5
  310. data/spec/{models → accounting/models}/accounts_payable_spec.rb +5 -5
  311. data/spec/{models → accounting/models}/accounts_receivable_spec.rb +5 -5
  312. data/spec/{models → accounting/models}/accounts_spec.rb +5 -5
  313. data/spec/{models → accounting/models}/address_spec.rb +5 -5
  314. data/spec/{models → accounting/models}/allocation_spec.rb +5 -5
  315. data/spec/{models → accounting/models}/allocations_spec.rb +5 -5
  316. data/spec/{models → accounting/models}/attachment_spec.rb +5 -5
  317. data/spec/{models → accounting/models}/attachments_spec.rb +5 -5
  318. data/spec/{models → accounting/models}/balances_spec.rb +5 -5
  319. data/spec/{models → accounting/models}/bank_transaction_spec.rb +5 -5
  320. data/spec/{models → accounting/models}/bank_transactions_spec.rb +5 -5
  321. data/spec/{models → accounting/models}/bank_transfer_spec.rb +5 -5
  322. data/spec/{models → accounting/models}/bank_transfers_spec.rb +5 -5
  323. data/spec/{models → accounting/models}/batch_payment_details_spec.rb +5 -5
  324. data/spec/{models → accounting/models}/batch_payment_spec.rb +5 -5
  325. data/spec/{models → accounting/models}/batch_payments_spec.rb +5 -5
  326. data/spec/{models → accounting/models}/bill_spec.rb +5 -5
  327. data/spec/{models → accounting/models}/branding_theme_spec.rb +5 -5
  328. data/spec/{models → accounting/models}/branding_themes_spec.rb +5 -5
  329. data/spec/{models → accounting/models}/cis_org_setting_spec.rb +5 -5
  330. data/spec/{models → accounting/models}/cis_setting_spec.rb +5 -5
  331. data/spec/{models → accounting/models}/cis_settings_spec.rb +5 -5
  332. data/spec/{models → accounting/models}/contact_group_spec.rb +5 -5
  333. data/spec/{models → accounting/models}/contact_groups_spec.rb +5 -5
  334. data/spec/{models → accounting/models}/contact_person_spec.rb +5 -5
  335. data/spec/{models → accounting/models}/contact_spec.rb +5 -5
  336. data/spec/{models → accounting/models}/contacts_spec.rb +5 -5
  337. data/spec/{models → accounting/models}/country_code_spec.rb +5 -5
  338. data/spec/{models → accounting/models}/credit_note_spec.rb +5 -5
  339. data/spec/{models → accounting/models}/credit_notes_spec.rb +5 -5
  340. data/spec/{models → accounting/models}/currencies_spec.rb +5 -5
  341. data/spec/{models → accounting/models}/currency_code_spec.rb +5 -5
  342. data/spec/{models → accounting/models}/currency_spec.rb +5 -5
  343. data/spec/{models → accounting/models}/element_spec.rb +5 -5
  344. data/spec/{models → accounting/models}/employee_spec.rb +5 -5
  345. data/spec/{models → accounting/models}/employees_spec.rb +5 -5
  346. data/spec/{models → accounting/models}/error_spec.rb +5 -5
  347. data/spec/{models → accounting/models}/expense_claim_spec.rb +5 -5
  348. data/spec/{models → accounting/models}/expense_claims_spec.rb +5 -5
  349. data/spec/{models → accounting/models}/external_link_spec.rb +5 -5
  350. data/spec/{models → accounting/models}/history_record_spec.rb +5 -5
  351. data/spec/{models → accounting/models}/history_records_spec.rb +5 -5
  352. data/spec/{models → accounting/models}/invoice_reminder_spec.rb +5 -5
  353. data/spec/{models → accounting/models}/invoice_reminders_spec.rb +5 -5
  354. data/spec/{models → accounting/models}/invoice_spec.rb +5 -5
  355. data/spec/{models → accounting/models}/invoices_spec.rb +5 -5
  356. data/spec/{models → accounting/models}/item_spec.rb +5 -5
  357. data/spec/{models → accounting/models}/items_spec.rb +5 -5
  358. data/spec/{models → accounting/models}/journal_line_spec.rb +5 -5
  359. data/spec/{models → accounting/models}/journal_spec.rb +5 -5
  360. data/spec/{models → accounting/models}/journals_spec.rb +5 -5
  361. data/spec/{models → accounting/models}/line_amount_types_spec.rb +5 -5
  362. data/spec/{models → accounting/models}/line_item_spec.rb +5 -5
  363. data/spec/{models → accounting/models}/line_item_tracking_spec.rb +5 -5
  364. data/spec/{models → accounting/models}/linked_transaction_spec.rb +5 -5
  365. data/spec/{models → accounting/models}/linked_transactions_spec.rb +5 -5
  366. data/spec/{models → accounting/models}/manual_journal_line_spec.rb +5 -5
  367. data/spec/{models → accounting/models}/manual_journal_spec.rb +5 -5
  368. data/spec/{models → accounting/models}/manual_journals_spec.rb +5 -5
  369. data/spec/{models → accounting/models}/online_invoice_spec.rb +5 -5
  370. data/spec/{models → accounting/models}/online_invoices_spec.rb +5 -5
  371. data/spec/{models → accounting/models}/organisation_spec.rb +5 -5
  372. data/spec/{models → accounting/models}/organisations_spec.rb +5 -5
  373. data/spec/{models → accounting/models}/overpayment_spec.rb +5 -5
  374. data/spec/{models → accounting/models}/overpayments_spec.rb +5 -5
  375. data/spec/{models → accounting/models}/payment_delete_spec.rb +5 -5
  376. data/spec/{models → accounting/models}/payment_service_spec.rb +5 -5
  377. data/spec/{models → accounting/models}/payment_services_spec.rb +5 -5
  378. data/spec/{models → accounting/models}/payment_spec.rb +11 -5
  379. data/spec/{models → accounting/models}/payment_term_spec.rb +5 -5
  380. data/spec/{models → accounting/models}/payment_term_type_spec.rb +5 -5
  381. data/spec/{models → accounting/models}/payments_spec.rb +5 -5
  382. data/spec/{models → accounting/models}/phone_spec.rb +5 -5
  383. data/spec/{models → accounting/models}/prepayment_spec.rb +5 -5
  384. data/spec/{models → accounting/models}/prepayments_spec.rb +5 -5
  385. data/spec/{models → accounting/models}/purchase_order_spec.rb +5 -5
  386. data/spec/{models → accounting/models}/purchase_orders_spec.rb +5 -5
  387. data/spec/{models → accounting/models}/purchase_spec.rb +5 -5
  388. data/spec/{models → accounting/models}/quote_line_amount_types_spec.rb +5 -5
  389. data/spec/{models → accounting/models}/quote_spec.rb +5 -5
  390. data/spec/{models → accounting/models}/quote_status_codes_spec.rb +5 -5
  391. data/spec/{models → accounting/models}/quotes_spec.rb +5 -5
  392. data/spec/{models → accounting/models}/receipt_spec.rb +5 -5
  393. data/spec/{models → accounting/models}/receipts_spec.rb +5 -5
  394. data/spec/{models → accounting/models}/repeating_invoice_spec.rb +5 -5
  395. data/spec/{models → accounting/models}/repeating_invoices_spec.rb +5 -5
  396. data/spec/{models → accounting/models}/report_attribute_spec.rb +5 -5
  397. data/spec/{models → accounting/models}/report_cell_spec.rb +5 -5
  398. data/spec/{models → accounting/models}/report_fields_spec.rb +5 -5
  399. data/spec/{models → accounting/models}/report_row_spec.rb +5 -5
  400. data/spec/{models → accounting/models}/report_rows_spec.rb +5 -5
  401. data/spec/{models → accounting/models}/report_spec.rb +5 -5
  402. data/spec/{models → accounting/models}/report_with_row_spec.rb +5 -5
  403. data/spec/{models → accounting/models}/report_with_rows_spec.rb +5 -5
  404. data/spec/{models → accounting/models}/reports_spec.rb +5 -5
  405. data/spec/{models → accounting/models}/request_empty_spec.rb +5 -5
  406. data/spec/{models → accounting/models}/row_type_spec.rb +5 -5
  407. data/spec/{models → accounting/models}/sales_tracking_category_spec.rb +5 -5
  408. data/spec/{models → accounting/models}/schedule_spec.rb +5 -5
  409. data/spec/{models → accounting/models}/tax_component_spec.rb +5 -5
  410. data/spec/{models → accounting/models}/tax_rate_spec.rb +6 -6
  411. data/spec/{models → accounting/models}/tax_rates_spec.rb +5 -5
  412. data/spec/{models → accounting/models}/tax_type_spec.rb +5 -5
  413. data/spec/{models → accounting/models}/ten_nintey_nine_contact_spec.rb +8 -8
  414. data/spec/{models → accounting/models}/time_zone_spec.rb +5 -5
  415. data/spec/{models → accounting/models}/tracking_categories_spec.rb +5 -5
  416. data/spec/{models → accounting/models}/tracking_category_spec.rb +5 -5
  417. data/spec/{models → accounting/models}/tracking_option_spec.rb +5 -5
  418. data/spec/{models → accounting/models}/tracking_options_spec.rb +5 -5
  419. data/spec/{models → accounting/models}/user_spec.rb +5 -5
  420. data/spec/{models → accounting/models}/users_spec.rb +5 -5
  421. data/spec/{models → accounting/models}/validation_error_spec.rb +5 -5
  422. data/spec/api_client_spec.rb +12 -52
  423. data/spec/assets/api/asset_api_spec.rb +116 -0
  424. data/spec/assets/models/asset_spec.rb +125 -0
  425. data/spec/assets/models/asset_status_query_param_spec.rb +35 -0
  426. data/spec/assets/models/asset_status_spec.rb +35 -0
  427. data/spec/assets/models/asset_type_spec.rb +77 -0
  428. data/spec/assets/models/assets_spec.rb +47 -0
  429. data/spec/assets/models/book_depreciation_detail_spec.rb +77 -0
  430. data/spec/assets/models/book_depreciation_setting_spec.rb +95 -0
  431. data/spec/assets/models/error_spec.rb +65 -0
  432. data/spec/assets/models/field_validation_errors_element_spec.rb +71 -0
  433. data/spec/assets/models/pagination_spec.rb +59 -0
  434. data/spec/assets/models/resource_validation_errors_element_spec.rb +65 -0
  435. data/spec/assets/models/setting_spec.rb +83 -0
  436. data/spec/configuration_spec.rb +7 -23
  437. data/spec/projects/api/project_api_spec.rb +229 -0
  438. data/spec/projects/models/amount_spec.rb +47 -0
  439. data/spec/projects/models/charge_type_spec.rb +35 -0
  440. data/spec/projects/models/currency_code_spec.rb +35 -0
  441. data/spec/projects/models/error_spec.rb +47 -0
  442. data/spec/projects/models/pagination_spec.rb +59 -0
  443. data/spec/projects/models/project_create_or_update_spec.rb +59 -0
  444. data/spec/projects/models/project_patch_spec.rb +41 -0
  445. data/spec/projects/models/project_spec.rb +167 -0
  446. data/spec/projects/models/project_status_spec.rb +35 -0
  447. data/spec/projects/models/project_user_spec.rb +53 -0
  448. data/spec/projects/models/project_users_spec.rb +47 -0
  449. data/spec/projects/models/projects_spec.rb +47 -0
  450. data/spec/projects/models/task_create_or_update_spec.rb +59 -0
  451. data/spec/projects/models/task_spec.rb +129 -0
  452. data/spec/projects/models/tasks_spec.rb +47 -0
  453. data/spec/projects/models/time_entries_spec.rb +47 -0
  454. data/spec/projects/models/time_entry_create_or_update_spec.rb +65 -0
  455. data/spec/projects/models/time_entry_spec.rb +93 -0
  456. data/spec/spec_helper.rb +2 -2
  457. data/xero-ruby.gemspec +4 -5
  458. metadata +611 -482
  459. data/docs/Allocation.md +0 -21
  460. data/lib/.DS_Store +0 -0
  461. data/pkg/xero-ruby-0.1.3.gem +0 -0
  462. data/pkg/xero-ruby-0.2.2.gem +0 -0
  463. data/pkg/xero-ruby-0.2.3.gem +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ffe680c04cda95a33d7b3aff3dd51b93812203c7527d2658c5b9138b29b17422
4
- data.tar.gz: e0e6af866b753c6fdb3a17a53e61915cac9d545c25548e2bc5cefeeaaa59ad56
3
+ metadata.gz: c469455936635d16067b4269ad96bda3ae65b7d8f9a34399532b380a7f34d72b
4
+ data.tar.gz: '039093400b943441b6f987a279cc981c23052e6575047f301ba9527192b26d34'
5
5
  SHA512:
6
- metadata.gz: 8ca5fd95b9f049d685556a10198affe124206d5434b8cd56b8f51710f7e57bab3863144561defbe5e8a5805ee1161bab559c70f056df61577cab291efe872a44
7
- data.tar.gz: ee6af30caadca29dc9ace5d8e02d9c964fc52456e78769e1a2047703bee66cfbb02e310cd7f51949a6eed0d27d013eb9863aef3aa0e31e17b79b51bc7f3b2d0b
6
+ metadata.gz: bcc87f93d7203239d688b12e4d0f7496953fb1563cd4d3865384f3d9a51342d18b44029c8c2af4670d55e71c27e0561df1c4e24d05bea7afd64da1ac679d0610
7
+ data.tar.gz: 9362cfe1d6822dc0caedad0213ec31c35172503bf8da0af3c145e80c5794dbed5122fc739d02ed7ce4234db8d9e159d7458cea082efe42152a31be4106a7b377
@@ -0,0 +1,76 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, sex characteristics, gender identity and expression,
9
+ level of experience, education, socio-economic status, nationality, personal
10
+ appearance, race, religion, or sexual identity and orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at api@xero.com. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72
+
73
+ [homepage]: https://www.contributor-covenant.org
74
+
75
+ For answers to common questions about this code of conduct, see
76
+ https://www.contributor-covenant.org/faq
@@ -0,0 +1,82 @@
1
+ # Contributing to xero-ruby
2
+ We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
3
+ :+1::tada: First off, thanks for taking the time to contribute! :tada::+1:
4
+
5
+ We want to make contributing to this project as easy and transparent as possible, whether it's:
6
+
7
+ The following is a set of guidelines for contributing to Xero and its projects, which are hosted in the [XeroAPI Organization](https://github.com/XeroAPI) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
8
+
9
+ ### Table Of Contents
10
+ [Code of Conduct](#code-of-conduct)
11
+
12
+ [I don't want to read this whole thing, I just have a question!!!](#i-dont-want-to-read-this-whole-thing-i-just-have-a-question)
13
+
14
+ [How Can I Contribute?](#how-can-i-contribute)
15
+ * [Which version of SDK are you using?](#Which-version-of-the-SDK-are-you-using)
16
+ * [Reporting Bugs](#reporting-bugs)
17
+ * [Suggesting Enhancements](#suggesting-enhancements)
18
+ * [Pull Requests](#pull-requests)
19
+
20
+
21
+ ## Code of Conduct
22
+ Please note that this project is released with a [Contributor Code of Conduct](https://github.com/XeroAPI/xero-ruby/CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms.
23
+
24
+ ## I don't want to read this whole thing I just have a question!!!
25
+
26
+ > **Note:** Please don't file an issue to ask a question. You'll get faster results by using the resources below.
27
+ We have an official [message board](https://community.xero.com/developer) where Xero API support and the community chimes in with helpful advice if you have questions.
28
+
29
+ * [API Documentation](https://developer.xero.com/documentation/)
30
+ * [Xero FAQ](https://developer.xero.com/faq)
31
+ * [Community, the official Xero message board](https://community.xero.com/developer)
32
+ * [Stackoverflow - Xero related](https://stackoverflow.com/questions/tagged/xero-api?sort=Newest)
33
+ * [Submit requests for support](https://developer.xero.com/contact-xero-developer-platform-support/) to our API Support team.
34
+
35
+ # How Can I Contribute?
36
+
37
+ You can contribute by reporting bugs, suggesting enhancements, improving documentation i.e. [README](https://github.com/XeroAPI/xero-ruby/README.md) or submitting a pull request.
38
+
39
+ ## Reporting Bugs
40
+
41
+ Bugs are tracked as issues in this repository.
42
+
43
+ Before opening a new issue:
44
+ * **check [the README](https://github.com/XeroAPI/xero-ruby/README.md)** to see if the behavior you observed might be expected and if configuration options are available to provide you with the desired behavior.
45
+
46
+ * **perform a cursory search** to see if there's [an existing issue](https://github.com/XeroAPI/xero-ruby/issues) covering your feedback. If there is one and the issue is still open, **add a :+1: reaction** on the issue to express interest in the issue being resolved. That will help the team gauge interest without the noise of comments which trigger notifications to all watchers. Comments should be used only if you have new and useful information to share.
47
+
48
+ ### Write bug reports with detail, background, and sample code
49
+
50
+ - Which version of the SDK are you using?
51
+ - A quick summary and/or background
52
+ - Steps to reproduce
53
+ - Be specific!
54
+ - Give sample code if you can.
55
+ - What you expected would happen
56
+ - What actually happens
57
+ - Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
58
+
59
+ ## Suggesting Enhancements
60
+
61
+ When opening an issue for a feature request:
62
+ * **use a clear and descriptive title** for the issue to identify the problem.
63
+ * **include as many details as possible in the body**. Explain your use-case, the problems you're hitting and the solutions you'd like to see to address those problems.
64
+
65
+ ## Pull requests
66
+
67
+ We welcome your feedback and pull requests. Be aware some code is generated and pull requests may not be the best solution - see below.
68
+
69
+ ### We Use OpenAPI Generator
70
+ The best way to propose changes to the codebase is to open an [issue](https://github.com/XeroAPI/xero-ruby/issues) and discuss with our team.
71
+
72
+ We are using [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) and [our OpenAPI specs](https://github.com/XeroAPI/Xero-OpenAPI), to create and update our models and client classes. Improvements may require updates to our OAS or our customized mustache templates instead of modifying via pull request.
73
+
74
+ ### Submit a pull request
75
+
76
+ Xero's supported SDK's are mostly auto-generated based on an [OpenAPISpec](https://github.com/XeroAPI/Xero-OpenAPI) that utilizes [openapi-generator](https://github.com/OpenAPITools/openapi-generator).
77
+ > You can read more about our process here: https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6
78
+ ### Style Guide
79
+ * 2 spaces for indentation rather than tabs
80
+
81
+ ## License
82
+ By contributing, you agree that your contributions will be licensed under its MIT License.
@@ -0,0 +1,68 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ xero-ruby (0.4.1)
5
+ faraday (~> 0.14, >= 0.14.0)
6
+ json (~> 2.1, >= 2.1.0)
7
+
8
+ GEM
9
+ remote: https://rubygems.org/
10
+ specs:
11
+ ast (2.4.1)
12
+ byebug (11.1.3)
13
+ coderay (1.1.3)
14
+ diff-lcs (1.3)
15
+ faraday (0.17.3)
16
+ multipart-post (>= 1.2, < 3)
17
+ jaro_winkler (1.5.4)
18
+ json (2.3.0)
19
+ method_source (1.0.0)
20
+ multipart-post (2.1.1)
21
+ parallel (1.19.1)
22
+ parser (2.7.1.3)
23
+ ast (~> 2.4.0)
24
+ pry (0.13.1)
25
+ coderay (~> 1.1)
26
+ method_source (~> 1.0)
27
+ pry-byebug (3.9.0)
28
+ byebug (~> 11.0)
29
+ pry (~> 0.13.0)
30
+ psych (3.1.0)
31
+ rainbow (3.0.0)
32
+ rake (12.3.3)
33
+ rspec (3.9.0)
34
+ rspec-core (~> 3.9.0)
35
+ rspec-expectations (~> 3.9.0)
36
+ rspec-mocks (~> 3.9.0)
37
+ rspec-core (3.9.2)
38
+ rspec-support (~> 3.9.3)
39
+ rspec-expectations (3.9.2)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.9.0)
42
+ rspec-mocks (3.9.1)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.9.0)
45
+ rspec-support (3.9.3)
46
+ rubocop (0.66.0)
47
+ jaro_winkler (~> 1.5.1)
48
+ parallel (~> 1.10)
49
+ parser (>= 2.5, != 2.5.1.1)
50
+ psych (>= 3.1.0)
51
+ rainbow (>= 2.2.2, < 4.0)
52
+ ruby-progressbar (~> 1.7)
53
+ unicode-display_width (>= 1.4.0, < 1.6)
54
+ ruby-progressbar (1.10.1)
55
+ unicode-display_width (1.5.0)
56
+
57
+ PLATFORMS
58
+ ruby
59
+
60
+ DEPENDENCIES
61
+ pry-byebug
62
+ rake (~> 12.3.3)
63
+ rspec
64
+ rubocop (~> 0.66.0)
65
+ xero-ruby!
66
+
67
+ BUNDLED WITH
68
+ 2.1.2
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2019 Xero Developer API
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md CHANGED
@@ -1,470 +1,189 @@
1
1
  # xero-ruby
2
+ Xero Ruby SDK for OAuth 2.0 generated from [Xero API OpenAPI Spec](https://github.com/XeroAPI/Xero-OpenAPI)
2
3
 
3
- XeroRuby - the Ruby gem for the Accounting API
4
+ [![RubyGem](https://img.shields.io/badge/xero--ruby%20gem-v0.2.4-brightgreen)](https://rubygems.org/gems/xero-ruby)
4
5
 
5
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
+ ## Current release of SDK with OAuth 2.0 support
7
+ Xero Ruby SDK supports Xero's OAuth2.0 authentication (token generation & refresh) and supports the following Xero API sets.
8
+ * [accounting](https://developer.xero.com/documentation/api/api-overview)
9
+ * [assets](https://developer.xero.com/documentation/assets-api/overview)
10
+ * [projects](https://developer.xero.com/documentation/projects/overview-projects)
6
11
 
7
- This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
12
+ Coming soon
13
+ * bank feeds
14
+ * payroll (AU))
15
+ * payroll (NZ/UK)
16
+ * files
17
+ * xero hq
8
18
 
9
- - API version: 2.0.7
10
- - Package version: 0.2.4
11
- - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
- For more information, please visit [https://developer.xero.com](https://developer.xero.com)
19
+ ## Looking for OAuth 1.0a support?
20
+ Check out the [Xeroizer](https://github.com/waynerobinson/xeroizer) gem (maintained by community)
13
21
 
22
+ ---
14
23
  ## Installation
24
+ This SDK is published as a gem on RubyGems as [xero-ruby](https://rubygems.org/gems/xero-ruby) To install this gem to your current gemset, run:
15
25
 
16
- ### Build a gem
26
+ ```
27
+ gem install 'xero-ruby'
28
+ ```
29
+ Or, add this to your gemfile:
30
+ ```
31
+ gem 'xero-ruby'
32
+ ```
17
33
 
18
- To build the Ruby code into a gem:
34
+ ## Getting Started
35
+ * Create a [free Xero user account](https://www.xero.com/us/signup/api/)
36
+ * Login to your Xero developer [/myapps](https://developer.xero.com/myapps) dashboard & create an API application and note your API app's credentials.
19
37
 
20
- ```shell
21
- gem build xero-ruby.gemspec
38
+ ### Creating a Client
39
+ Require the gem:
22
40
  ```
41
+ require 'xero-ruby'
42
+ ```
43
+ Then create a client by passing in a named hash object `credentials:`.
23
44
 
24
- Then either install the gem locally:
45
+ > *client_id*, *client_secret*, *redirect_uri*: Get this from your API application in /myapps dashboard.
46
+ *scopes*: Include scopes as comma seperated list, https://developer.xero.com/documentation/oauth2/scopes
47
+ **ex:** 'openid profile email accounting.transactions'
25
48
 
26
- ```shell
27
- gem install ./xero-ruby-0.2.4.gem
49
+ ```ruby
50
+ creds = {
51
+ client_id: ENV['CLIENT_ID'],
52
+ client_secret: ENV['CLIENT_SECRET'],
53
+ redirect_uri: ENV['REDIRECT_URI'],
54
+ scopes: ENV['SCOPES']
55
+ }
56
+ xero_client ||= XeroRuby::ApiClient.new(credentials: creds)
28
57
  ```
29
58
 
30
- (for development, run `gem install --dev ./xero-ruby-0.2.4.gem` to install the development dependencies)
31
-
32
- or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
59
+ ## Authorization & Callback
60
+ All API requests require a valid access token to be set on the client. If this is the first time you are calling the Xero API on a users behalf you will need to generate an authorized token set, which will look something like this:
61
+ ```json
62
+ {
63
+ "id_token": "xxx.yyy.zz",
64
+ "access_token": "xxx.yyy.zzz",
65
+ "expires_in": 1800,
66
+ "token_type": "Bearer",
67
+ "refresh_token": "xxxxxx",
68
+ "scope": "email profile openid accounting.transactions offline_access"
69
+ }
70
+ ```
33
71
 
34
- Finally add this to the Gemfile:
72
+ To generate a valid token_set with this SDK from Xero, have your user follow the authorization url:
73
+ ```ruby
74
+ @authorization_url = xero_client.authorization_url
75
+ # https://login.xero.com/identity/connect/authorize?response_type=code&client_id=<xxx>&redirect_uri=<redirect_uri>&scope=<scopes>
76
+ ```
35
77
 
36
- gem 'xero-ruby', '~> 0.2.4'
78
+ > The `get_token_set_from_callback` method will set the `token_set` on the client, however you can also initialize a client and set the `token_set` explicitely using `set_token_set` or `refresh_token_set`.
37
79
 
38
- ### Install from Git
80
+ ```ruby
81
+ # /my-redirect-uri
82
+ token_set = xero_client.get_token_set_from_callback(params)
39
83
 
40
- If the Ruby gem is hosted at a git repository: https://github.com/XeroAPI/xero-ruby, then add the following in the Gemfile:
84
+ # this is where you will want to save the token set for future API usage..
85
+ # ex: user.update!(xero_token_set: token_set)
41
86
 
42
- gem 'xero-ruby', :git => 'https://github.com/XeroAPI/xero-ruby.git'
87
+ # if you already saved a token_set you don't need the user to authenticate via UI
88
+ # and can just set the token on the client by refreshing it.
89
+ xero_client.refresh_token_set(user.token_set)
90
+ ```
43
91
 
44
- ### Include the Ruby code directly
92
+ ## Token & SDK Helpers
45
93
 
46
- Include the Ruby code directly using `-I` as follows:
94
+ Token Sets contain information about your API connection, but most important are the access_token, refresh_token, and the expiry:
95
+ * An `access_token` is valid 30 minutes and a `refresh_token` is valid for 60 days
47
96
 
48
- ```shell
49
- ruby -Ilib script.rb
97
+ ```ruby
98
+ @token_set = xero_client.refresh_token_set(user.token_set)
99
+
100
+ # TIP: the `updatedDateUtc` will show you the most recently authorized Tenant (AKA Organisation)
101
+ connections = xero_client.connections
102
+ [{
103
+ "id" => "xxx-yyy-zzz",
104
+ "tenantId" => "xxx-yyy-zzz",
105
+ "tenantType" => "ORGANISATION",
106
+ "tenantName" => "Demo Company (US)",
107
+ "createdDateUtc" => "2019-11-01T20:08:03.0766400",
108
+ "updatedDateUtc" => "2020-04-15T22:37:10.4943410"
109
+ }]
110
+
111
+ # disconnect an org from a user's connections. Pass the connection ['id'] not ['tenantId'].
112
+ remaining_connections = xero_client.disconnect(connections[0]['id'])
113
+
114
+ # set token_set
115
+ token_set = xero_client.set_token_set(user.token_set)
116
+
117
+ # access token_set
118
+ token_set = xero_client.token_set
50
119
  ```
51
120
 
52
- ## Getting Started
121
+ ## API Usage
122
+ > Comprehensive xero-ruby API usage is showcased here: https://github.com/XeroAPI/xero-ruby-oauth2-app
53
123
 
54
- Please follow the [installation](#installation) procedure and then run the following code:
124
+ Here is the basic workflow of using SDK once you have a valid `access_token` (and `token_set`) stored on an instance of the `xero_client`
55
125
 
56
126
  ```ruby
57
- # Load the gem
58
- require 'xero-ruby'
127
+ require 'xero-ruby'
128
+
129
+ # reference `Authorization & Callback` to first store a valid token_set on the `xero_client`
130
+ xero_client.refresh_token_set(user.token_set)
131
+
132
+ # Accounting API set (https://github.com/XeroAPI/xero-ruby/blob/master/accounting/lib/xero-ruby/api/accounting_api.rb)
133
+
134
+ # Examples
135
+ invoices = xero_client.accounting_api.get_invoices(user.active_tenant_id).invoices
136
+ accounts = xero_client.accounting_api.get_accounts(user.active_tenant_id).accounts
137
+ contacts = xero_client.accounting_api.get_contacts(user.active_tenant_id).contacts
138
+
139
+ contacts = xero_client.accounting_api.get_contacts(current_user.active_tenant_id).contacts
140
+ invoices = { invoices: [{ type: XeroRuby::Accounting::Invoice::ACCREC, contact: { contact_id: contacts[0].contact_id }, line_items: [{ description: "Acme Tires", quantity: BigDecimal("2.0"), unit_amount: BigDecimal("20.99"), account_code: "600", tax_type: XeroRuby::Accounting::TaxType::NONE }], date: "2019-03-11", due_date: "2018-12-10", reference: "Website Design", status: XeroRuby::Accounting::Invoice::DRAFT }]}
141
+ invoice = xero_client.accounting_api.create_invoices(current_user.active_tenant_id, invoices).invoices.first
142
+
143
+ payment = xero_client.accounting_api.get_payments(current_user.active_tenant_id).payments.first
144
+ history_records = { history_records:[ { details: "This payment now has some History #{rand(10000)}" } ]}
145
+ payment_history = xero_client.accounting_api.create_payment_history(user.active_tenant_id, payment.payment_id, history_records)
146
+
147
+ account = xero_client.accounting_api.get_accounts(current_user.active_tenant_id).accounts.first
148
+ file_name = "an-account-filename.png"
149
+ opts = {
150
+ include_online: true # Boolean | Allows an attachment to be seen by the end customer within their online invoice
151
+ }
152
+ file = File.read(Rails.root.join('app/assets/images/xero-api.png'))
153
+ attachment = xero_client.accounting_api.create_account_attachment_by_file_name(current_user.active_tenant_id, @account.account_id, file_name, file, opts)
154
+
155
+ # Asset API set (https://github.com/XeroAPI/xero-ruby/blob/master/accounting/lib/xero-ruby/api/asset_api.rb)
156
+ asset = {
157
+ "assetName": "AssetName: #{rand(10000)}",
158
+ "assetNumber": "Asset: #{rand(10000)}",
159
+ "assetStatus": "DRAFT"
160
+ }
161
+ asset = xero_client.asset_api.create_asset(current_user.active_tenant_id, asset)
162
+
163
+ # Project API set (https://github.com/XeroAPI/xero-ruby/blob/master/docs/projects/ProjectApi.md)
164
+ projects = xero_client.project_api.get_projects(current_user.active_tenant_id).items
165
+ ```
59
166
 
60
- # Setup authorization
61
- XeroRuby.configure do |config|
62
- # Configure OAuth2 access token for authorization: OAuth2
63
- config.access_token = 'YOUR ACCESS TOKEN'
64
- end
167
+ If you have use cases outside of these examples or this readmy, please let us know!
65
168
 
66
- api_instance = XeroRuby::AccountingApi.new
67
- xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
68
- account = { code: "123456", name: "Foobar", type: AccountType.EXPENSE, description: "Hello World" } # Account | Account object in body of request
169
+ ## Sample App
170
+ The best resource to understanding how to best leverage this SDK is to clone down our Sample Rails application which showcases all the features of this project. The sample app can help you quickly understand how to:
171
+ > https://github.com/XeroAPI/xero-ruby-oauth2-app
69
172
 
70
- begin
71
- #Allows you to create a new chart of accounts
72
- result = api_instance.create_account(xero_tenant_id, account)
73
- p result
74
- rescue XeroRuby::ApiError => e
75
- puts "Exception when calling AccountingApi->create_account: #{e}"
76
- end
173
+ * Complete the OAuth2.0 Authorization flow
174
+ * Store token_sets against a user object in a DB
175
+ * Storing info about active connections
176
+ * Change the active tenant & make api calls to multiple orgs
177
+ * Refreshing your token sets
178
+ * Decoding your token_set items and strategy around how/when to refresh
179
+ * Disconnecting a connection for a user
77
180
 
78
- ```
181
+ ## Additional Documentation for API Endpoints
79
182
 
80
- ## Documentation for API Endpoints
81
-
82
- All URIs are relative to *https://api.xero.com/api.xro/2.0*
83
-
84
- Class | Method | HTTP request | Description
85
- ------------ | ------------- | ------------- | -------------
86
- *XeroRuby::AccountingApi* | [**create_account**](docs/AccountingApi.md#create_account) | **PUT** /Accounts | Allows you to create a new chart of accounts
87
- *XeroRuby::AccountingApi* | [**create_account_attachment_by_file_name**](docs/AccountingApi.md#create_account_attachment_by_file_name) | **PUT** /Accounts/{AccountID}/Attachments/{FileName} | Allows you to create Attachment on Account
88
- *XeroRuby::AccountingApi* | [**create_bank_transaction_attachment_by_file_name**](docs/AccountingApi.md#create_bank_transaction_attachment_by_file_name) | **PUT** /BankTransactions/{BankTransactionID}/Attachments/{FileName} | Allows you to createa an Attachment on BankTransaction by Filename
89
- *XeroRuby::AccountingApi* | [**create_bank_transaction_history_record**](docs/AccountingApi.md#create_bank_transaction_history_record) | **PUT** /BankTransactions/{BankTransactionID}/History | Allows you to create history record for a bank transactions
90
- *XeroRuby::AccountingApi* | [**create_bank_transactions**](docs/AccountingApi.md#create_bank_transactions) | **PUT** /BankTransactions | Allows you to create one or more spend or receive money transaction
91
- *XeroRuby::AccountingApi* | [**create_bank_transfer**](docs/AccountingApi.md#create_bank_transfer) | **PUT** /BankTransfers | Allows you to create a bank transfers
92
- *XeroRuby::AccountingApi* | [**create_bank_transfer_attachment_by_file_name**](docs/AccountingApi.md#create_bank_transfer_attachment_by_file_name) | **PUT** /BankTransfers/{BankTransferID}/Attachments/{FileName} |
93
- *XeroRuby::AccountingApi* | [**create_bank_transfer_history_record**](docs/AccountingApi.md#create_bank_transfer_history_record) | **PUT** /BankTransfers/{BankTransferID}/History |
94
- *XeroRuby::AccountingApi* | [**create_batch_payment**](docs/AccountingApi.md#create_batch_payment) | **PUT** /BatchPayments | Create one or many BatchPayments for invoices
95
- *XeroRuby::AccountingApi* | [**create_batch_payment_history_record**](docs/AccountingApi.md#create_batch_payment_history_record) | **PUT** /BatchPayments/{BatchPaymentID}/History | Allows you to create a history record for a Batch Payment
96
- *XeroRuby::AccountingApi* | [**create_branding_theme_payment_services**](docs/AccountingApi.md#create_branding_theme_payment_services) | **POST** /BrandingThemes/{BrandingThemeID}/PaymentServices | Allow for the creation of new custom payment service for specified Branding Theme
97
- *XeroRuby::AccountingApi* | [**create_contact_attachment_by_file_name**](docs/AccountingApi.md#create_contact_attachment_by_file_name) | **PUT** /Contacts/{ContactID}/Attachments/{FileName} |
98
- *XeroRuby::AccountingApi* | [**create_contact_group**](docs/AccountingApi.md#create_contact_group) | **PUT** /ContactGroups | Allows you to create a contact group
99
- *XeroRuby::AccountingApi* | [**create_contact_group_contacts**](docs/AccountingApi.md#create_contact_group_contacts) | **PUT** /ContactGroups/{ContactGroupID}/Contacts | Allows you to add Contacts to a Contact Group
100
- *XeroRuby::AccountingApi* | [**create_contact_history**](docs/AccountingApi.md#create_contact_history) | **PUT** /Contacts/{ContactID}/History | Allows you to retrieve a history records of an Contact
101
- *XeroRuby::AccountingApi* | [**create_contacts**](docs/AccountingApi.md#create_contacts) | **PUT** /Contacts | Allows you to create a multiple contacts (bulk) in a Xero organisation
102
- *XeroRuby::AccountingApi* | [**create_credit_note_allocation**](docs/AccountingApi.md#create_credit_note_allocation) | **PUT** /CreditNotes/{CreditNoteID}/Allocations | Allows you to create Allocation on CreditNote
103
- *XeroRuby::AccountingApi* | [**create_credit_note_attachment_by_file_name**](docs/AccountingApi.md#create_credit_note_attachment_by_file_name) | **PUT** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to create Attachments on CreditNote by file name
104
- *XeroRuby::AccountingApi* | [**create_credit_note_history**](docs/AccountingApi.md#create_credit_note_history) | **PUT** /CreditNotes/{CreditNoteID}/History | Allows you to retrieve a history records of an CreditNote
105
- *XeroRuby::AccountingApi* | [**create_credit_notes**](docs/AccountingApi.md#create_credit_notes) | **PUT** /CreditNotes | Allows you to create a credit note
106
- *XeroRuby::AccountingApi* | [**create_currency**](docs/AccountingApi.md#create_currency) | **PUT** /Currencies |
107
- *XeroRuby::AccountingApi* | [**create_employees**](docs/AccountingApi.md#create_employees) | **PUT** /Employees | Allows you to create new employees used in Xero payrun
108
- *XeroRuby::AccountingApi* | [**create_expense_claim_history**](docs/AccountingApi.md#create_expense_claim_history) | **PUT** /ExpenseClaims/{ExpenseClaimID}/History | Allows you to create a history records of an ExpenseClaim
109
- *XeroRuby::AccountingApi* | [**create_expense_claims**](docs/AccountingApi.md#create_expense_claims) | **PUT** /ExpenseClaims | Allows you to retrieve expense claims
110
- *XeroRuby::AccountingApi* | [**create_invoice_attachment_by_file_name**](docs/AccountingApi.md#create_invoice_attachment_by_file_name) | **PUT** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to create an Attachment on invoices or purchase bills by it's filename
111
- *XeroRuby::AccountingApi* | [**create_invoice_history**](docs/AccountingApi.md#create_invoice_history) | **PUT** /Invoices/{InvoiceID}/History | Allows you to retrieve a history records of an invoice
112
- *XeroRuby::AccountingApi* | [**create_invoices**](docs/AccountingApi.md#create_invoices) | **PUT** /Invoices | Allows you to create one or more sales invoices or purchase bills
113
- *XeroRuby::AccountingApi* | [**create_item_history**](docs/AccountingApi.md#create_item_history) | **PUT** /Items/{ItemID}/History | Allows you to create a history record for items
114
- *XeroRuby::AccountingApi* | [**create_items**](docs/AccountingApi.md#create_items) | **PUT** /Items | Allows you to create one or more items
115
- *XeroRuby::AccountingApi* | [**create_linked_transaction**](docs/AccountingApi.md#create_linked_transaction) | **PUT** /LinkedTransactions | Allows you to create linked transactions (billable expenses)
116
- *XeroRuby::AccountingApi* | [**create_manual_journal_attachment_by_file_name**](docs/AccountingApi.md#create_manual_journal_attachment_by_file_name) | **PUT** /ManualJournals/{ManualJournalID}/Attachments/{FileName} | Allows you to create a specified Attachment on ManualJournal by file name
117
- *XeroRuby::AccountingApi* | [**create_manual_journals**](docs/AccountingApi.md#create_manual_journals) | **PUT** /ManualJournals | Allows you to create one or more manual journals
118
- *XeroRuby::AccountingApi* | [**create_overpayment_allocations**](docs/AccountingApi.md#create_overpayment_allocations) | **PUT** /Overpayments/{OverpaymentID}/Allocations | Allows you to create a single allocation for an overpayment
119
- *XeroRuby::AccountingApi* | [**create_overpayment_history**](docs/AccountingApi.md#create_overpayment_history) | **PUT** /Overpayments/{OverpaymentID}/History | Allows you to create history records of an Overpayment
120
- *XeroRuby::AccountingApi* | [**create_payment**](docs/AccountingApi.md#create_payment) | **POST** /Payments | Allows you to create a single payment for invoices or credit notes
121
- *XeroRuby::AccountingApi* | [**create_payment_history**](docs/AccountingApi.md#create_payment_history) | **PUT** /Payments/{PaymentID}/History | Allows you to create a history record for a payment
122
- *XeroRuby::AccountingApi* | [**create_payment_service**](docs/AccountingApi.md#create_payment_service) | **PUT** /PaymentServices | Allows you to create payment services
123
- *XeroRuby::AccountingApi* | [**create_payments**](docs/AccountingApi.md#create_payments) | **PUT** /Payments | Allows you to create multiple payments for invoices or credit notes
124
- *XeroRuby::AccountingApi* | [**create_prepayment_allocations**](docs/AccountingApi.md#create_prepayment_allocations) | **PUT** /Prepayments/{PrepaymentID}/Allocations | Allows you to create an Allocation for prepayments
125
- *XeroRuby::AccountingApi* | [**create_prepayment_history**](docs/AccountingApi.md#create_prepayment_history) | **PUT** /Prepayments/{PrepaymentID}/History | Allows you to create a history record for an Prepayment
126
- *XeroRuby::AccountingApi* | [**create_purchase_order_history**](docs/AccountingApi.md#create_purchase_order_history) | **PUT** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to create HistoryRecord for purchase orders
127
- *XeroRuby::AccountingApi* | [**create_purchase_orders**](docs/AccountingApi.md#create_purchase_orders) | **PUT** /PurchaseOrders | Allows you to create one or more purchase orders
128
- *XeroRuby::AccountingApi* | [**create_quote_attachment_by_file_name**](docs/AccountingApi.md#create_quote_attachment_by_file_name) | **PUT** /Quotes/{QuoteID}/Attachments/{FileName} | Allows you to create Attachment on Quote
129
- *XeroRuby::AccountingApi* | [**create_quote_history**](docs/AccountingApi.md#create_quote_history) | **PUT** /Quotes/{QuoteID}/History | Allows you to retrieve a history records of an quote
130
- *XeroRuby::AccountingApi* | [**create_quotes**](docs/AccountingApi.md#create_quotes) | **PUT** /Quotes | Allows you to create one or more quotes
131
- *XeroRuby::AccountingApi* | [**create_receipt**](docs/AccountingApi.md#create_receipt) | **PUT** /Receipts | Allows you to create draft expense claim receipts for any user
132
- *XeroRuby::AccountingApi* | [**create_receipt_attachment_by_file_name**](docs/AccountingApi.md#create_receipt_attachment_by_file_name) | **PUT** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to create Attachment on expense claim receipts by file name
133
- *XeroRuby::AccountingApi* | [**create_receipt_history**](docs/AccountingApi.md#create_receipt_history) | **PUT** /Receipts/{ReceiptID}/History | Allows you to retrieve a history records of an Receipt
134
- *XeroRuby::AccountingApi* | [**create_repeating_invoice_attachment_by_file_name**](docs/AccountingApi.md#create_repeating_invoice_attachment_by_file_name) | **PUT** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} | Allows you to create attachment on repeating invoices by file name
135
- *XeroRuby::AccountingApi* | [**create_repeating_invoice_history**](docs/AccountingApi.md#create_repeating_invoice_history) | **PUT** /RepeatingInvoices/{RepeatingInvoiceID}/History | Allows you to create history for a repeating invoice
136
- *XeroRuby::AccountingApi* | [**create_tax_rates**](docs/AccountingApi.md#create_tax_rates) | **PUT** /TaxRates | Allows you to create one or more Tax Rates
137
- *XeroRuby::AccountingApi* | [**create_tracking_category**](docs/AccountingApi.md#create_tracking_category) | **PUT** /TrackingCategories | Allows you to create tracking categories
138
- *XeroRuby::AccountingApi* | [**create_tracking_options**](docs/AccountingApi.md#create_tracking_options) | **PUT** /TrackingCategories/{TrackingCategoryID}/Options | Allows you to create options for a specified tracking category
139
- *XeroRuby::AccountingApi* | [**delete_account**](docs/AccountingApi.md#delete_account) | **DELETE** /Accounts/{AccountID} | Allows you to delete a chart of accounts
140
- *XeroRuby::AccountingApi* | [**delete_contact_group_contact**](docs/AccountingApi.md#delete_contact_group_contact) | **DELETE** /ContactGroups/{ContactGroupID}/Contacts/{ContactID} | Allows you to delete a specific Contact from a Contact Group
141
- *XeroRuby::AccountingApi* | [**delete_contact_group_contacts**](docs/AccountingApi.md#delete_contact_group_contacts) | **DELETE** /ContactGroups/{ContactGroupID}/Contacts | Allows you to delete all Contacts from a Contact Group
142
- *XeroRuby::AccountingApi* | [**delete_item**](docs/AccountingApi.md#delete_item) | **DELETE** /Items/{ItemID} | Allows you to delete a specified item
143
- *XeroRuby::AccountingApi* | [**delete_linked_transaction**](docs/AccountingApi.md#delete_linked_transaction) | **DELETE** /LinkedTransactions/{LinkedTransactionID} | Allows you to delete a specified linked transactions (billable expenses)
144
- *XeroRuby::AccountingApi* | [**delete_payment**](docs/AccountingApi.md#delete_payment) | **POST** /Payments/{PaymentID} | Allows you to update a specified payment for invoices and credit notes
145
- *XeroRuby::AccountingApi* | [**delete_tracking_category**](docs/AccountingApi.md#delete_tracking_category) | **DELETE** /TrackingCategories/{TrackingCategoryID} | Allows you to delete tracking categories
146
- *XeroRuby::AccountingApi* | [**delete_tracking_options**](docs/AccountingApi.md#delete_tracking_options) | **DELETE** /TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID} | Allows you to delete a specified option for a specified tracking category
147
- *XeroRuby::AccountingApi* | [**email_invoice**](docs/AccountingApi.md#email_invoice) | **POST** /Invoices/{InvoiceID}/Email | Allows you to email a copy of invoice to related Contact
148
- *XeroRuby::AccountingApi* | [**get_account**](docs/AccountingApi.md#get_account) | **GET** /Accounts/{AccountID} | Allows you to retrieve a single chart of accounts
149
- *XeroRuby::AccountingApi* | [**get_account_attachment_by_file_name**](docs/AccountingApi.md#get_account_attachment_by_file_name) | **GET** /Accounts/{AccountID}/Attachments/{FileName} | Allows you to retrieve Attachment on Account by Filename
150
- *XeroRuby::AccountingApi* | [**get_account_attachment_by_id**](docs/AccountingApi.md#get_account_attachment_by_id) | **GET** /Accounts/{AccountID}/Attachments/{AttachmentID} | Allows you to retrieve specific Attachment on Account
151
- *XeroRuby::AccountingApi* | [**get_account_attachments**](docs/AccountingApi.md#get_account_attachments) | **GET** /Accounts/{AccountID}/Attachments | Allows you to retrieve Attachments for accounts
152
- *XeroRuby::AccountingApi* | [**get_accounts**](docs/AccountingApi.md#get_accounts) | **GET** /Accounts | Allows you to retrieve the full chart of accounts
153
- *XeroRuby::AccountingApi* | [**get_bank_transaction**](docs/AccountingApi.md#get_bank_transaction) | **GET** /BankTransactions/{BankTransactionID} | Allows you to retrieve a single spend or receive money transaction
154
- *XeroRuby::AccountingApi* | [**get_bank_transaction_attachment_by_file_name**](docs/AccountingApi.md#get_bank_transaction_attachment_by_file_name) | **GET** /BankTransactions/{BankTransactionID}/Attachments/{FileName} | Allows you to retrieve Attachments on BankTransaction by Filename
155
- *XeroRuby::AccountingApi* | [**get_bank_transaction_attachment_by_id**](docs/AccountingApi.md#get_bank_transaction_attachment_by_id) | **GET** /BankTransactions/{BankTransactionID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on a specific BankTransaction
156
- *XeroRuby::AccountingApi* | [**get_bank_transaction_attachments**](docs/AccountingApi.md#get_bank_transaction_attachments) | **GET** /BankTransactions/{BankTransactionID}/Attachments | Allows you to retrieve any attachments to bank transactions
157
- *XeroRuby::AccountingApi* | [**get_bank_transactions**](docs/AccountingApi.md#get_bank_transactions) | **GET** /BankTransactions | Allows you to retrieve any spend or receive money transactions
158
- *XeroRuby::AccountingApi* | [**get_bank_transactions_history**](docs/AccountingApi.md#get_bank_transactions_history) | **GET** /BankTransactions/{BankTransactionID}/History | Allows you to retrieve history from a bank transactions
159
- *XeroRuby::AccountingApi* | [**get_bank_transfer**](docs/AccountingApi.md#get_bank_transfer) | **GET** /BankTransfers/{BankTransferID} | Allows you to retrieve any bank transfers
160
- *XeroRuby::AccountingApi* | [**get_bank_transfer_attachment_by_file_name**](docs/AccountingApi.md#get_bank_transfer_attachment_by_file_name) | **GET** /BankTransfers/{BankTransferID}/Attachments/{FileName} | Allows you to retrieve Attachments on BankTransfer by file name
161
- *XeroRuby::AccountingApi* | [**get_bank_transfer_attachment_by_id**](docs/AccountingApi.md#get_bank_transfer_attachment_by_id) | **GET** /BankTransfers/{BankTransferID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on BankTransfer
162
- *XeroRuby::AccountingApi* | [**get_bank_transfer_attachments**](docs/AccountingApi.md#get_bank_transfer_attachments) | **GET** /BankTransfers/{BankTransferID}/Attachments | Allows you to retrieve Attachments from bank transfers
163
- *XeroRuby::AccountingApi* | [**get_bank_transfer_history**](docs/AccountingApi.md#get_bank_transfer_history) | **GET** /BankTransfers/{BankTransferID}/History | Allows you to retrieve history from a bank transfers
164
- *XeroRuby::AccountingApi* | [**get_bank_transfers**](docs/AccountingApi.md#get_bank_transfers) | **GET** /BankTransfers | Allows you to retrieve all bank transfers
165
- *XeroRuby::AccountingApi* | [**get_batch_payment_history**](docs/AccountingApi.md#get_batch_payment_history) | **GET** /BatchPayments/{BatchPaymentID}/History | Allows you to retrieve history from a Batch Payment
166
- *XeroRuby::AccountingApi* | [**get_batch_payments**](docs/AccountingApi.md#get_batch_payments) | **GET** /BatchPayments | Retrieve either one or many BatchPayments for invoices
167
- *XeroRuby::AccountingApi* | [**get_branding_theme**](docs/AccountingApi.md#get_branding_theme) | **GET** /BrandingThemes/{BrandingThemeID} | Allows you to retrieve a specific BrandingThemes
168
- *XeroRuby::AccountingApi* | [**get_branding_theme_payment_services**](docs/AccountingApi.md#get_branding_theme_payment_services) | **GET** /BrandingThemes/{BrandingThemeID}/PaymentServices | Allows you to retrieve the Payment services for a Branding Theme
169
- *XeroRuby::AccountingApi* | [**get_branding_themes**](docs/AccountingApi.md#get_branding_themes) | **GET** /BrandingThemes | Allows you to retrieve all the BrandingThemes
170
- *XeroRuby::AccountingApi* | [**get_contact**](docs/AccountingApi.md#get_contact) | **GET** /Contacts/{ContactID} | Allows you to retrieve, add and update contacts in a Xero organisation
171
- *XeroRuby::AccountingApi* | [**get_contact_attachment_by_file_name**](docs/AccountingApi.md#get_contact_attachment_by_file_name) | **GET** /Contacts/{ContactID}/Attachments/{FileName} | Allows you to retrieve Attachments on Contacts by file name
172
- *XeroRuby::AccountingApi* | [**get_contact_attachment_by_id**](docs/AccountingApi.md#get_contact_attachment_by_id) | **GET** /Contacts/{ContactID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on Contacts
173
- *XeroRuby::AccountingApi* | [**get_contact_attachments**](docs/AccountingApi.md#get_contact_attachments) | **GET** /Contacts/{ContactID}/Attachments | Allows you to retrieve, add and update contacts in a Xero organisation
174
- *XeroRuby::AccountingApi* | [**get_contact_cis_settings**](docs/AccountingApi.md#get_contact_cis_settings) | **GET** /Contacts/{ContactID}/CISSettings | Allows you to retrieve CISSettings for a contact in a Xero organisation
175
- *XeroRuby::AccountingApi* | [**get_contact_group**](docs/AccountingApi.md#get_contact_group) | **GET** /ContactGroups/{ContactGroupID} | Allows you to retrieve a unique Contact Group by ID
176
- *XeroRuby::AccountingApi* | [**get_contact_groups**](docs/AccountingApi.md#get_contact_groups) | **GET** /ContactGroups | Allows you to retrieve the ContactID and Name of all the contacts in a contact group
177
- *XeroRuby::AccountingApi* | [**get_contact_history**](docs/AccountingApi.md#get_contact_history) | **GET** /Contacts/{ContactID}/History | Allows you to retrieve a history records of an Contact
178
- *XeroRuby::AccountingApi* | [**get_contacts**](docs/AccountingApi.md#get_contacts) | **GET** /Contacts | Allows you to retrieve, add and update contacts in a Xero organisation
179
- *XeroRuby::AccountingApi* | [**get_credit_note**](docs/AccountingApi.md#get_credit_note) | **GET** /CreditNotes/{CreditNoteID} | Allows you to retrieve a specific credit note
180
- *XeroRuby::AccountingApi* | [**get_credit_note_as_pdf**](docs/AccountingApi.md#get_credit_note_as_pdf) | **GET** /CreditNotes/{CreditNoteID}/pdf | Allows you to retrieve Credit Note as PDF files
181
- *XeroRuby::AccountingApi* | [**get_credit_note_attachment_by_file_name**](docs/AccountingApi.md#get_credit_note_attachment_by_file_name) | **GET** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to retrieve Attachments on CreditNote by file name
182
- *XeroRuby::AccountingApi* | [**get_credit_note_attachment_by_id**](docs/AccountingApi.md#get_credit_note_attachment_by_id) | **GET** /CreditNotes/{CreditNoteID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on CreditNote
183
- *XeroRuby::AccountingApi* | [**get_credit_note_attachments**](docs/AccountingApi.md#get_credit_note_attachments) | **GET** /CreditNotes/{CreditNoteID}/Attachments | Allows you to retrieve Attachments for credit notes
184
- *XeroRuby::AccountingApi* | [**get_credit_note_history**](docs/AccountingApi.md#get_credit_note_history) | **GET** /CreditNotes/{CreditNoteID}/History | Allows you to retrieve a history records of an CreditNote
185
- *XeroRuby::AccountingApi* | [**get_credit_notes**](docs/AccountingApi.md#get_credit_notes) | **GET** /CreditNotes | Allows you to retrieve any credit notes
186
- *XeroRuby::AccountingApi* | [**get_currencies**](docs/AccountingApi.md#get_currencies) | **GET** /Currencies | Allows you to retrieve currencies for your organisation
187
- *XeroRuby::AccountingApi* | [**get_employee**](docs/AccountingApi.md#get_employee) | **GET** /Employees/{EmployeeID} | Allows you to retrieve a specific employee used in Xero payrun
188
- *XeroRuby::AccountingApi* | [**get_employees**](docs/AccountingApi.md#get_employees) | **GET** /Employees | Allows you to retrieve employees used in Xero payrun
189
- *XeroRuby::AccountingApi* | [**get_expense_claim**](docs/AccountingApi.md#get_expense_claim) | **GET** /ExpenseClaims/{ExpenseClaimID} | Allows you to retrieve a specified expense claim
190
- *XeroRuby::AccountingApi* | [**get_expense_claim_history**](docs/AccountingApi.md#get_expense_claim_history) | **GET** /ExpenseClaims/{ExpenseClaimID}/History | Allows you to retrieve a history records of an ExpenseClaim
191
- *XeroRuby::AccountingApi* | [**get_expense_claims**](docs/AccountingApi.md#get_expense_claims) | **GET** /ExpenseClaims | Allows you to retrieve expense claims
192
- *XeroRuby::AccountingApi* | [**get_invoice**](docs/AccountingApi.md#get_invoice) | **GET** /Invoices/{InvoiceID} | Allows you to retrieve a specified sales invoice or purchase bill
193
- *XeroRuby::AccountingApi* | [**get_invoice_as_pdf**](docs/AccountingApi.md#get_invoice_as_pdf) | **GET** /Invoices/{InvoiceID}/pdf | Allows you to retrieve invoices or purchase bills as PDF files
194
- *XeroRuby::AccountingApi* | [**get_invoice_attachment_by_file_name**](docs/AccountingApi.md#get_invoice_attachment_by_file_name) | **GET** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to retrieve Attachment on invoices or purchase bills by it's filename
195
- *XeroRuby::AccountingApi* | [**get_invoice_attachment_by_id**](docs/AccountingApi.md#get_invoice_attachment_by_id) | **GET** /Invoices/{InvoiceID}/Attachments/{AttachmentID} | Allows you to retrieve a specified Attachment on invoices or purchase bills by it's ID
196
- *XeroRuby::AccountingApi* | [**get_invoice_attachments**](docs/AccountingApi.md#get_invoice_attachments) | **GET** /Invoices/{InvoiceID}/Attachments | Allows you to retrieve Attachments on invoices or purchase bills
197
- *XeroRuby::AccountingApi* | [**get_invoice_history**](docs/AccountingApi.md#get_invoice_history) | **GET** /Invoices/{InvoiceID}/History | Allows you to retrieve a history records of an invoice
198
- *XeroRuby::AccountingApi* | [**get_invoice_reminders**](docs/AccountingApi.md#get_invoice_reminders) | **GET** /InvoiceReminders/Settings | Allows you to retrieve invoice reminder settings
199
- *XeroRuby::AccountingApi* | [**get_invoices**](docs/AccountingApi.md#get_invoices) | **GET** /Invoices | Allows you to retrieve any sales invoices or purchase bills
200
- *XeroRuby::AccountingApi* | [**get_item**](docs/AccountingApi.md#get_item) | **GET** /Items/{ItemID} | Allows you to retrieve a specified item
201
- *XeroRuby::AccountingApi* | [**get_item_history**](docs/AccountingApi.md#get_item_history) | **GET** /Items/{ItemID}/History | Allows you to retrieve history for items
202
- *XeroRuby::AccountingApi* | [**get_items**](docs/AccountingApi.md#get_items) | **GET** /Items | Allows you to retrieve any items
203
- *XeroRuby::AccountingApi* | [**get_journal**](docs/AccountingApi.md#get_journal) | **GET** /Journals/{JournalID} | Allows you to retrieve a specified journals.
204
- *XeroRuby::AccountingApi* | [**get_journals**](docs/AccountingApi.md#get_journals) | **GET** /Journals | Allows you to retrieve any journals.
205
- *XeroRuby::AccountingApi* | [**get_linked_transaction**](docs/AccountingApi.md#get_linked_transaction) | **GET** /LinkedTransactions/{LinkedTransactionID} | Allows you to retrieve a specified linked transactions (billable expenses)
206
- *XeroRuby::AccountingApi* | [**get_linked_transactions**](docs/AccountingApi.md#get_linked_transactions) | **GET** /LinkedTransactions | Retrieve linked transactions (billable expenses)
207
- *XeroRuby::AccountingApi* | [**get_manual_journal**](docs/AccountingApi.md#get_manual_journal) | **GET** /ManualJournals/{ManualJournalID} | Allows you to retrieve a specified manual journals
208
- *XeroRuby::AccountingApi* | [**get_manual_journal_attachment_by_file_name**](docs/AccountingApi.md#get_manual_journal_attachment_by_file_name) | **GET** /ManualJournals/{ManualJournalID}/Attachments/{FileName} | Allows you to retrieve specified Attachment on ManualJournal by file name
209
- *XeroRuby::AccountingApi* | [**get_manual_journal_attachment_by_id**](docs/AccountingApi.md#get_manual_journal_attachment_by_id) | **GET** /ManualJournals/{ManualJournalID}/Attachments/{AttachmentID} | Allows you to retrieve specified Attachment on ManualJournals
210
- *XeroRuby::AccountingApi* | [**get_manual_journal_attachments**](docs/AccountingApi.md#get_manual_journal_attachments) | **GET** /ManualJournals/{ManualJournalID}/Attachments | Allows you to retrieve Attachment for manual journals
211
- *XeroRuby::AccountingApi* | [**get_manual_journals**](docs/AccountingApi.md#get_manual_journals) | **GET** /ManualJournals | Allows you to retrieve any manual journals
212
- *XeroRuby::AccountingApi* | [**get_online_invoice**](docs/AccountingApi.md#get_online_invoice) | **GET** /Invoices/{InvoiceID}/OnlineInvoice | Allows you to retrieve a URL to an online invoice
213
- *XeroRuby::AccountingApi* | [**get_organisation_cis_settings**](docs/AccountingApi.md#get_organisation_cis_settings) | **GET** /Organisation/{OrganisationID}/CISSettings | Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
214
- *XeroRuby::AccountingApi* | [**get_organisations**](docs/AccountingApi.md#get_organisations) | **GET** /Organisation | Allows you to retrieve Organisation details
215
- *XeroRuby::AccountingApi* | [**get_overpayment**](docs/AccountingApi.md#get_overpayment) | **GET** /Overpayments/{OverpaymentID} | Allows you to retrieve a specified overpayments
216
- *XeroRuby::AccountingApi* | [**get_overpayment_history**](docs/AccountingApi.md#get_overpayment_history) | **GET** /Overpayments/{OverpaymentID}/History | Allows you to retrieve a history records of an Overpayment
217
- *XeroRuby::AccountingApi* | [**get_overpayments**](docs/AccountingApi.md#get_overpayments) | **GET** /Overpayments | Allows you to retrieve overpayments
218
- *XeroRuby::AccountingApi* | [**get_payment**](docs/AccountingApi.md#get_payment) | **GET** /Payments/{PaymentID} | Allows you to retrieve a specified payment for invoices and credit notes
219
- *XeroRuby::AccountingApi* | [**get_payment_history**](docs/AccountingApi.md#get_payment_history) | **GET** /Payments/{PaymentID}/History | Allows you to retrieve history records of a payment
220
- *XeroRuby::AccountingApi* | [**get_payment_services**](docs/AccountingApi.md#get_payment_services) | **GET** /PaymentServices | Allows you to retrieve payment services
221
- *XeroRuby::AccountingApi* | [**get_payments**](docs/AccountingApi.md#get_payments) | **GET** /Payments | Allows you to retrieve payments for invoices and credit notes
222
- *XeroRuby::AccountingApi* | [**get_prepayment**](docs/AccountingApi.md#get_prepayment) | **GET** /Prepayments/{PrepaymentID} | Allows you to retrieve a specified prepayments
223
- *XeroRuby::AccountingApi* | [**get_prepayment_history**](docs/AccountingApi.md#get_prepayment_history) | **GET** /Prepayments/{PrepaymentID}/History | Allows you to retrieve a history records of an Prepayment
224
- *XeroRuby::AccountingApi* | [**get_prepayments**](docs/AccountingApi.md#get_prepayments) | **GET** /Prepayments | Allows you to retrieve prepayments
225
- *XeroRuby::AccountingApi* | [**get_purchase_order**](docs/AccountingApi.md#get_purchase_order) | **GET** /PurchaseOrders/{PurchaseOrderID} | Allows you to retrieve a specified purchase orders
226
- *XeroRuby::AccountingApi* | [**get_purchase_order_by_number**](docs/AccountingApi.md#get_purchase_order_by_number) | **GET** /PurchaseOrders/{PurchaseOrderNumber} | Allows you to retrieve a specified purchase orders
227
- *XeroRuby::AccountingApi* | [**get_purchase_order_history**](docs/AccountingApi.md#get_purchase_order_history) | **GET** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to retrieve history for PurchaseOrder
228
- *XeroRuby::AccountingApi* | [**get_purchase_orders**](docs/AccountingApi.md#get_purchase_orders) | **GET** /PurchaseOrders | Allows you to retrieve purchase orders
229
- *XeroRuby::AccountingApi* | [**get_quote**](docs/AccountingApi.md#get_quote) | **GET** /Quotes/{QuoteID} | Allows you to retrieve a specified quote
230
- *XeroRuby::AccountingApi* | [**get_quote_as_pdf**](docs/AccountingApi.md#get_quote_as_pdf) | **GET** /Quotes/{QuotesID}/pdf | Allows you to retrieve quotes as PDF files
231
- *XeroRuby::AccountingApi* | [**get_quote_attachment_by_file_name**](docs/AccountingApi.md#get_quote_attachment_by_file_name) | **GET** /Quotes/{QuoteID}/Attachments/{FileName} | Allows you to retrieve Attachment on Quote by Filename
232
- *XeroRuby::AccountingApi* | [**get_quote_attachment_by_id**](docs/AccountingApi.md#get_quote_attachment_by_id) | **GET** /Quotes/{QuoteID}/Attachments/{AttachmentID} | Allows you to retrieve specific Attachment on Quote
233
- *XeroRuby::AccountingApi* | [**get_quote_attachments**](docs/AccountingApi.md#get_quote_attachments) | **GET** /Quotes/{QuoteID}/Attachments | Allows you to retrieve Attachments for Quotes
234
- *XeroRuby::AccountingApi* | [**get_quote_history**](docs/AccountingApi.md#get_quote_history) | **GET** /Quotes/{QuoteID}/History | Allows you to retrieve a history records of an quote
235
- *XeroRuby::AccountingApi* | [**get_quotes**](docs/AccountingApi.md#get_quotes) | **GET** /Quotes | Allows you to retrieve any sales quotes
236
- *XeroRuby::AccountingApi* | [**get_receipt**](docs/AccountingApi.md#get_receipt) | **GET** /Receipts/{ReceiptID} | Allows you to retrieve a specified draft expense claim receipts
237
- *XeroRuby::AccountingApi* | [**get_receipt_attachment_by_file_name**](docs/AccountingApi.md#get_receipt_attachment_by_file_name) | **GET** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to retrieve Attachments on expense claim receipts by file name
238
- *XeroRuby::AccountingApi* | [**get_receipt_attachment_by_id**](docs/AccountingApi.md#get_receipt_attachment_by_id) | **GET** /Receipts/{ReceiptID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on expense claim receipts by ID
239
- *XeroRuby::AccountingApi* | [**get_receipt_attachments**](docs/AccountingApi.md#get_receipt_attachments) | **GET** /Receipts/{ReceiptID}/Attachments | Allows you to retrieve Attachments for expense claim receipts
240
- *XeroRuby::AccountingApi* | [**get_receipt_history**](docs/AccountingApi.md#get_receipt_history) | **GET** /Receipts/{ReceiptID}/History | Allows you to retrieve a history records of an Receipt
241
- *XeroRuby::AccountingApi* | [**get_receipts**](docs/AccountingApi.md#get_receipts) | **GET** /Receipts | Allows you to retrieve draft expense claim receipts for any user
242
- *XeroRuby::AccountingApi* | [**get_repeating_invoice**](docs/AccountingApi.md#get_repeating_invoice) | **GET** /RepeatingInvoices/{RepeatingInvoiceID} | Allows you to retrieve a specified repeating invoice
243
- *XeroRuby::AccountingApi* | [**get_repeating_invoice_attachment_by_file_name**](docs/AccountingApi.md#get_repeating_invoice_attachment_by_file_name) | **GET** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} | Allows you to retrieve specified attachment on repeating invoices by file name
244
- *XeroRuby::AccountingApi* | [**get_repeating_invoice_attachment_by_id**](docs/AccountingApi.md#get_repeating_invoice_attachment_by_id) | **GET** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID} | Allows you to retrieve a specified Attachments on repeating invoices
245
- *XeroRuby::AccountingApi* | [**get_repeating_invoice_attachments**](docs/AccountingApi.md#get_repeating_invoice_attachments) | **GET** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments | Allows you to retrieve Attachments on repeating invoice
246
- *XeroRuby::AccountingApi* | [**get_repeating_invoice_history**](docs/AccountingApi.md#get_repeating_invoice_history) | **GET** /RepeatingInvoices/{RepeatingInvoiceID}/History | Allows you to retrieve history for a repeating invoice
247
- *XeroRuby::AccountingApi* | [**get_repeating_invoices**](docs/AccountingApi.md#get_repeating_invoices) | **GET** /RepeatingInvoices | Allows you to retrieve any repeating invoices
248
- *XeroRuby::AccountingApi* | [**get_report_aged_payables_by_contact**](docs/AccountingApi.md#get_report_aged_payables_by_contact) | **GET** /Reports/AgedPayablesByContact | Allows you to retrieve report for AgedPayablesByContact
249
- *XeroRuby::AccountingApi* | [**get_report_aged_receivables_by_contact**](docs/AccountingApi.md#get_report_aged_receivables_by_contact) | **GET** /Reports/AgedReceivablesByContact | Allows you to retrieve report for AgedReceivablesByContact
250
- *XeroRuby::AccountingApi* | [**get_report_ba_sor_gst**](docs/AccountingApi.md#get_report_ba_sor_gst) | **GET** /Reports/{ReportID} | Allows you to retrieve report for BAS only valid for AU orgs
251
- *XeroRuby::AccountingApi* | [**get_report_ba_sor_gst_list**](docs/AccountingApi.md#get_report_ba_sor_gst_list) | **GET** /Reports | Allows you to retrieve report for BAS only valid for AU orgs
252
- *XeroRuby::AccountingApi* | [**get_report_balance_sheet**](docs/AccountingApi.md#get_report_balance_sheet) | **GET** /Reports/BalanceSheet | Allows you to retrieve report for BalanceSheet
253
- *XeroRuby::AccountingApi* | [**get_report_bank_summary**](docs/AccountingApi.md#get_report_bank_summary) | **GET** /Reports/BankSummary | Allows you to retrieve report for BankSummary
254
- *XeroRuby::AccountingApi* | [**get_report_budget_summary**](docs/AccountingApi.md#get_report_budget_summary) | **GET** /Reports/BudgetSummary | Allows you to retrieve report for Budget Summary
255
- *XeroRuby::AccountingApi* | [**get_report_executive_summary**](docs/AccountingApi.md#get_report_executive_summary) | **GET** /Reports/ExecutiveSummary | Allows you to retrieve report for ExecutiveSummary
256
- *XeroRuby::AccountingApi* | [**get_report_profit_and_loss**](docs/AccountingApi.md#get_report_profit_and_loss) | **GET** /Reports/ProfitAndLoss | Allows you to retrieve report for ProfitAndLoss
257
- *XeroRuby::AccountingApi* | [**get_report_ten_ninety_nine**](docs/AccountingApi.md#get_report_ten_ninety_nine) | **GET** /Reports/TenNinetyNine | Allows you to retrieve report for TenNinetyNine
258
- *XeroRuby::AccountingApi* | [**get_report_trial_balance**](docs/AccountingApi.md#get_report_trial_balance) | **GET** /Reports/TrialBalance | Allows you to retrieve report for TrialBalance
259
- *XeroRuby::AccountingApi* | [**get_tax_rates**](docs/AccountingApi.md#get_tax_rates) | **GET** /TaxRates | Allows you to retrieve Tax Rates
260
- *XeroRuby::AccountingApi* | [**get_tracking_categories**](docs/AccountingApi.md#get_tracking_categories) | **GET** /TrackingCategories | Allows you to retrieve tracking categories and options
261
- *XeroRuby::AccountingApi* | [**get_tracking_category**](docs/AccountingApi.md#get_tracking_category) | **GET** /TrackingCategories/{TrackingCategoryID} | Allows you to retrieve tracking categories and options for specified category
262
- *XeroRuby::AccountingApi* | [**get_user**](docs/AccountingApi.md#get_user) | **GET** /Users/{UserID} | Allows you to retrieve a specified user
263
- *XeroRuby::AccountingApi* | [**get_users**](docs/AccountingApi.md#get_users) | **GET** /Users | Allows you to retrieve users
264
- *XeroRuby::AccountingApi* | [**update_account**](docs/AccountingApi.md#update_account) | **POST** /Accounts/{AccountID} | Allows you to update a chart of accounts
265
- *XeroRuby::AccountingApi* | [**update_account_attachment_by_file_name**](docs/AccountingApi.md#update_account_attachment_by_file_name) | **POST** /Accounts/{AccountID}/Attachments/{FileName} | Allows you to update Attachment on Account by Filename
266
- *XeroRuby::AccountingApi* | [**update_bank_transaction**](docs/AccountingApi.md#update_bank_transaction) | **POST** /BankTransactions/{BankTransactionID} | Allows you to update a single spend or receive money transaction
267
- *XeroRuby::AccountingApi* | [**update_bank_transaction_attachment_by_file_name**](docs/AccountingApi.md#update_bank_transaction_attachment_by_file_name) | **POST** /BankTransactions/{BankTransactionID}/Attachments/{FileName} | Allows you to update an Attachment on BankTransaction by Filename
268
- *XeroRuby::AccountingApi* | [**update_bank_transfer_attachment_by_file_name**](docs/AccountingApi.md#update_bank_transfer_attachment_by_file_name) | **POST** /BankTransfers/{BankTransferID}/Attachments/{FileName} |
269
- *XeroRuby::AccountingApi* | [**update_contact**](docs/AccountingApi.md#update_contact) | **POST** /Contacts/{ContactID} |
270
- *XeroRuby::AccountingApi* | [**update_contact_attachment_by_file_name**](docs/AccountingApi.md#update_contact_attachment_by_file_name) | **POST** /Contacts/{ContactID}/Attachments/{FileName} |
271
- *XeroRuby::AccountingApi* | [**update_contact_group**](docs/AccountingApi.md#update_contact_group) | **POST** /ContactGroups/{ContactGroupID} | Allows you to update a Contact Group
272
- *XeroRuby::AccountingApi* | [**update_credit_note**](docs/AccountingApi.md#update_credit_note) | **POST** /CreditNotes/{CreditNoteID} | Allows you to update a specific credit note
273
- *XeroRuby::AccountingApi* | [**update_credit_note_attachment_by_file_name**](docs/AccountingApi.md#update_credit_note_attachment_by_file_name) | **POST** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to update Attachments on CreditNote by file name
274
- *XeroRuby::AccountingApi* | [**update_expense_claim**](docs/AccountingApi.md#update_expense_claim) | **POST** /ExpenseClaims/{ExpenseClaimID} | Allows you to update specified expense claims
275
- *XeroRuby::AccountingApi* | [**update_invoice**](docs/AccountingApi.md#update_invoice) | **POST** /Invoices/{InvoiceID} | Allows you to update a specified sales invoices or purchase bills
276
- *XeroRuby::AccountingApi* | [**update_invoice_attachment_by_file_name**](docs/AccountingApi.md#update_invoice_attachment_by_file_name) | **POST** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to update Attachment on invoices or purchase bills by it's filename
277
- *XeroRuby::AccountingApi* | [**update_item**](docs/AccountingApi.md#update_item) | **POST** /Items/{ItemID} | Allows you to update a specified item
278
- *XeroRuby::AccountingApi* | [**update_linked_transaction**](docs/AccountingApi.md#update_linked_transaction) | **POST** /LinkedTransactions/{LinkedTransactionID} | Allows you to update a specified linked transactions (billable expenses)
279
- *XeroRuby::AccountingApi* | [**update_manual_journal**](docs/AccountingApi.md#update_manual_journal) | **POST** /ManualJournals/{ManualJournalID} | Allows you to update a specified manual journal
280
- *XeroRuby::AccountingApi* | [**update_manual_journal_attachment_by_file_name**](docs/AccountingApi.md#update_manual_journal_attachment_by_file_name) | **POST** /ManualJournals/{ManualJournalID}/Attachments/{FileName} | Allows you to update a specified Attachment on ManualJournal by file name
281
- *XeroRuby::AccountingApi* | [**update_or_create_bank_transactions**](docs/AccountingApi.md#update_or_create_bank_transactions) | **POST** /BankTransactions | Allows you to update or create one or more spend or receive money transaction
282
- *XeroRuby::AccountingApi* | [**update_or_create_contacts**](docs/AccountingApi.md#update_or_create_contacts) | **POST** /Contacts | Allows you to update OR create one or more contacts in a Xero organisation
283
- *XeroRuby::AccountingApi* | [**update_or_create_credit_notes**](docs/AccountingApi.md#update_or_create_credit_notes) | **POST** /CreditNotes | Allows you to update OR create one or more credit notes
284
- *XeroRuby::AccountingApi* | [**update_or_create_employees**](docs/AccountingApi.md#update_or_create_employees) | **POST** /Employees | Allows you to create a single new employees used in Xero payrun
285
- *XeroRuby::AccountingApi* | [**update_or_create_invoices**](docs/AccountingApi.md#update_or_create_invoices) | **POST** /Invoices | Allows you to update OR create one or more sales invoices or purchase bills
286
- *XeroRuby::AccountingApi* | [**update_or_create_items**](docs/AccountingApi.md#update_or_create_items) | **POST** /Items | Allows you to update or create one or more items
287
- *XeroRuby::AccountingApi* | [**update_or_create_manual_journals**](docs/AccountingApi.md#update_or_create_manual_journals) | **POST** /ManualJournals | Allows you to create a single manual journal
288
- *XeroRuby::AccountingApi* | [**update_or_create_purchase_orders**](docs/AccountingApi.md#update_or_create_purchase_orders) | **POST** /PurchaseOrders | Allows you to update or create one or more purchase orders
289
- *XeroRuby::AccountingApi* | [**update_or_create_quotes**](docs/AccountingApi.md#update_or_create_quotes) | **POST** /Quotes | Allows you to update OR create one or more quotes
290
- *XeroRuby::AccountingApi* | [**update_purchase_order**](docs/AccountingApi.md#update_purchase_order) | **POST** /PurchaseOrders/{PurchaseOrderID} | Allows you to update a specified purchase order
291
- *XeroRuby::AccountingApi* | [**update_quote**](docs/AccountingApi.md#update_quote) | **POST** /Quotes/{QuoteID} | Allows you to update a specified quote
292
- *XeroRuby::AccountingApi* | [**update_quote_attachment_by_file_name**](docs/AccountingApi.md#update_quote_attachment_by_file_name) | **POST** /Quotes/{QuoteID}/Attachments/{FileName} | Allows you to update Attachment on Quote by Filename
293
- *XeroRuby::AccountingApi* | [**update_receipt**](docs/AccountingApi.md#update_receipt) | **POST** /Receipts/{ReceiptID} | Allows you to retrieve a specified draft expense claim receipts
294
- *XeroRuby::AccountingApi* | [**update_receipt_attachment_by_file_name**](docs/AccountingApi.md#update_receipt_attachment_by_file_name) | **POST** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to update Attachment on expense claim receipts by file name
295
- *XeroRuby::AccountingApi* | [**update_repeating_invoice_attachment_by_file_name**](docs/AccountingApi.md#update_repeating_invoice_attachment_by_file_name) | **POST** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} | Allows you to update specified attachment on repeating invoices by file name
296
- *XeroRuby::AccountingApi* | [**update_tax_rate**](docs/AccountingApi.md#update_tax_rate) | **POST** /TaxRates | Allows you to update Tax Rates
297
- *XeroRuby::AccountingApi* | [**update_tracking_category**](docs/AccountingApi.md#update_tracking_category) | **POST** /TrackingCategories/{TrackingCategoryID} | Allows you to update tracking categories
298
- *XeroRuby::AccountingApi* | [**update_tracking_options**](docs/AccountingApi.md#update_tracking_options) | **POST** /TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID} | Allows you to update options for a specified tracking category
299
-
300
-
301
- ## Documentation for Models
302
-
303
- - [XeroRuby::Account](docs/Account.md)
304
- - [XeroRuby::AccountType](docs/AccountType.md)
305
- - [XeroRuby::Accounts](docs/Accounts.md)
306
- - [XeroRuby::AccountsPayable](docs/AccountsPayable.md)
307
- - [XeroRuby::AccountsReceivable](docs/AccountsReceivable.md)
308
- - [XeroRuby::Address](docs/Address.md)
309
- - [XeroRuby::Allocation](docs/Allocation.md)
310
- - [XeroRuby::Allocations](docs/Allocations.md)
311
- - [XeroRuby::Attachment](docs/Attachment.md)
312
- - [XeroRuby::Attachments](docs/Attachments.md)
313
- - [XeroRuby::Balances](docs/Balances.md)
314
- - [XeroRuby::BankTransaction](docs/BankTransaction.md)
315
- - [XeroRuby::BankTransactions](docs/BankTransactions.md)
316
- - [XeroRuby::BankTransfer](docs/BankTransfer.md)
317
- - [XeroRuby::BankTransfers](docs/BankTransfers.md)
318
- - [XeroRuby::BatchPayment](docs/BatchPayment.md)
319
- - [XeroRuby::BatchPaymentDetails](docs/BatchPaymentDetails.md)
320
- - [XeroRuby::BatchPayments](docs/BatchPayments.md)
321
- - [XeroRuby::Bill](docs/Bill.md)
322
- - [XeroRuby::BrandingTheme](docs/BrandingTheme.md)
323
- - [XeroRuby::BrandingThemes](docs/BrandingThemes.md)
324
- - [XeroRuby::CISOrgSetting](docs/CISOrgSetting.md)
325
- - [XeroRuby::CISSetting](docs/CISSetting.md)
326
- - [XeroRuby::CISSettings](docs/CISSettings.md)
327
- - [XeroRuby::Contact](docs/Contact.md)
328
- - [XeroRuby::ContactGroup](docs/ContactGroup.md)
329
- - [XeroRuby::ContactGroups](docs/ContactGroups.md)
330
- - [XeroRuby::ContactPerson](docs/ContactPerson.md)
331
- - [XeroRuby::Contacts](docs/Contacts.md)
332
- - [XeroRuby::CountryCode](docs/CountryCode.md)
333
- - [XeroRuby::CreditNote](docs/CreditNote.md)
334
- - [XeroRuby::CreditNotes](docs/CreditNotes.md)
335
- - [XeroRuby::Currencies](docs/Currencies.md)
336
- - [XeroRuby::Currency](docs/Currency.md)
337
- - [XeroRuby::CurrencyCode](docs/CurrencyCode.md)
338
- - [XeroRuby::Element](docs/Element.md)
339
- - [XeroRuby::Employee](docs/Employee.md)
340
- - [XeroRuby::Employees](docs/Employees.md)
341
- - [XeroRuby::Error](docs/Error.md)
342
- - [XeroRuby::ExpenseClaim](docs/ExpenseClaim.md)
343
- - [XeroRuby::ExpenseClaims](docs/ExpenseClaims.md)
344
- - [XeroRuby::ExternalLink](docs/ExternalLink.md)
345
- - [XeroRuby::HistoryRecord](docs/HistoryRecord.md)
346
- - [XeroRuby::HistoryRecords](docs/HistoryRecords.md)
347
- - [XeroRuby::Invoice](docs/Invoice.md)
348
- - [XeroRuby::InvoiceReminder](docs/InvoiceReminder.md)
349
- - [XeroRuby::InvoiceReminders](docs/InvoiceReminders.md)
350
- - [XeroRuby::Invoices](docs/Invoices.md)
351
- - [XeroRuby::Item](docs/Item.md)
352
- - [XeroRuby::Items](docs/Items.md)
353
- - [XeroRuby::Journal](docs/Journal.md)
354
- - [XeroRuby::JournalLine](docs/JournalLine.md)
355
- - [XeroRuby::Journals](docs/Journals.md)
356
- - [XeroRuby::LineAmountTypes](docs/LineAmountTypes.md)
357
- - [XeroRuby::LineItem](docs/LineItem.md)
358
- - [XeroRuby::LineItemTracking](docs/LineItemTracking.md)
359
- - [XeroRuby::LinkedTransaction](docs/LinkedTransaction.md)
360
- - [XeroRuby::LinkedTransactions](docs/LinkedTransactions.md)
361
- - [XeroRuby::ManualJournal](docs/ManualJournal.md)
362
- - [XeroRuby::ManualJournalLine](docs/ManualJournalLine.md)
363
- - [XeroRuby::ManualJournals](docs/ManualJournals.md)
364
- - [XeroRuby::OnlineInvoice](docs/OnlineInvoice.md)
365
- - [XeroRuby::OnlineInvoices](docs/OnlineInvoices.md)
366
- - [XeroRuby::Organisation](docs/Organisation.md)
367
- - [XeroRuby::Organisations](docs/Organisations.md)
368
- - [XeroRuby::Overpayment](docs/Overpayment.md)
369
- - [XeroRuby::Overpayments](docs/Overpayments.md)
370
- - [XeroRuby::Payment](docs/Payment.md)
371
- - [XeroRuby::PaymentDelete](docs/PaymentDelete.md)
372
- - [XeroRuby::PaymentService](docs/PaymentService.md)
373
- - [XeroRuby::PaymentServices](docs/PaymentServices.md)
374
- - [XeroRuby::PaymentTerm](docs/PaymentTerm.md)
375
- - [XeroRuby::PaymentTermType](docs/PaymentTermType.md)
376
- - [XeroRuby::Payments](docs/Payments.md)
377
- - [XeroRuby::Phone](docs/Phone.md)
378
- - [XeroRuby::Prepayment](docs/Prepayment.md)
379
- - [XeroRuby::Prepayments](docs/Prepayments.md)
380
- - [XeroRuby::Purchase](docs/Purchase.md)
381
- - [XeroRuby::PurchaseOrder](docs/PurchaseOrder.md)
382
- - [XeroRuby::PurchaseOrders](docs/PurchaseOrders.md)
383
- - [XeroRuby::Quote](docs/Quote.md)
384
- - [XeroRuby::QuoteLineAmountTypes](docs/QuoteLineAmountTypes.md)
385
- - [XeroRuby::QuoteStatusCodes](docs/QuoteStatusCodes.md)
386
- - [XeroRuby::Quotes](docs/Quotes.md)
387
- - [XeroRuby::Receipt](docs/Receipt.md)
388
- - [XeroRuby::Receipts](docs/Receipts.md)
389
- - [XeroRuby::RepeatingInvoice](docs/RepeatingInvoice.md)
390
- - [XeroRuby::RepeatingInvoices](docs/RepeatingInvoices.md)
391
- - [XeroRuby::Report](docs/Report.md)
392
- - [XeroRuby::ReportAttribute](docs/ReportAttribute.md)
393
- - [XeroRuby::ReportCell](docs/ReportCell.md)
394
- - [XeroRuby::ReportFields](docs/ReportFields.md)
395
- - [XeroRuby::ReportRow](docs/ReportRow.md)
396
- - [XeroRuby::ReportRows](docs/ReportRows.md)
397
- - [XeroRuby::ReportWithRow](docs/ReportWithRow.md)
398
- - [XeroRuby::ReportWithRows](docs/ReportWithRows.md)
399
- - [XeroRuby::Reports](docs/Reports.md)
400
- - [XeroRuby::RequestEmpty](docs/RequestEmpty.md)
401
- - [XeroRuby::RowType](docs/RowType.md)
402
- - [XeroRuby::SalesTrackingCategory](docs/SalesTrackingCategory.md)
403
- - [XeroRuby::Schedule](docs/Schedule.md)
404
- - [XeroRuby::TaxComponent](docs/TaxComponent.md)
405
- - [XeroRuby::TaxRate](docs/TaxRate.md)
406
- - [XeroRuby::TaxRates](docs/TaxRates.md)
407
- - [XeroRuby::TaxType](docs/TaxType.md)
408
- - [XeroRuby::TenNinteyNineContact](docs/TenNinteyNineContact.md)
409
- - [XeroRuby::TimeZone](docs/TimeZone.md)
410
- - [XeroRuby::TrackingCategories](docs/TrackingCategories.md)
411
- - [XeroRuby::TrackingCategory](docs/TrackingCategory.md)
412
- - [XeroRuby::TrackingOption](docs/TrackingOption.md)
413
- - [XeroRuby::TrackingOptions](docs/TrackingOptions.md)
414
- - [XeroRuby::User](docs/User.md)
415
- - [XeroRuby::Users](docs/Users.md)
416
- - [XeroRuby::ValidationError](docs/ValidationError.md)
417
-
418
-
419
- ## Documentation for Authorization
420
-
421
-
422
- ### OAuth2
423
-
424
-
425
- - **Type**: OAuth
426
- - **Flow**: accessCode
427
- - **Authorization URL**: https://login.xero.com/identity/connect/authorize
428
- - **Scopes**:
429
- - email: Grant read-only access to your email
430
- - openid: Grant read-only access to your open id
431
- - profile: your profile information
432
- - accounting.transactions: Grant read-write access to bank transactions, credit notes, invoices, repeating invoices
433
- - accounting.transactions.read: Grant read-only access to invoices
434
- - accounting.reports.read: Grant read-only access to accounting reports
435
- - accounting.journals.read: Grant read-only access to journals
436
- - accounting.settings: Grant read-write access to organisation and account settings
437
- - accounting.settings.read: Grant read-only access to organisation and account settings
438
- - accounting.contacts: Grant read-write access to contacts and contact groups
439
- - accounting.contacts.read: Grant read-only access to contacts and contact groups
440
- - accounting.attachments: Grant read-write access to attachments
441
- - accounting.attachments.read: Grant read-only access to attachments
442
- - assets: Grant read-write access to assets
443
- - assets.read: Grant read-only access to fixed assets
444
- - bankfeeds: Grant read-write access to bankfeeds
445
- - files: Grant read-write access to files and folders
446
- - files.read: Grant read-only access to files and folders
447
- - payroll: Grant read-write access to payroll
448
- - payroll.read: Grant read-only access to payroll
449
- - payroll.employees: Grant read-write access to payroll employees
450
- - payroll.employees.read: Grant read-only access to payroll employees
451
- - payroll.leaveapplications: Grant read-write access to payroll leaveapplications
452
- - payroll.leaveapplications.read: Grant read-only access to payroll leaveapplications
453
- - payroll.payitems: Grant read-write access to payroll payitems
454
- - payroll.payitems.read: Grant read-only access to payroll payitems
455
- - payroll.payrollcalendars: Grant read-write access to payroll calendars
456
- - payroll.payrollcalendars.read: Grant read-only access to payroll calendars
457
- - payroll.payruns: Grant read-write access to payroll payruns
458
- - payroll.payruns.read: Grant read-only access to payroll payruns
459
- - payroll.payslip: Grant read-write access to payroll payslips
460
- - payroll.payslip.read: Grant read-only access to payroll payslips
461
- - payroll.settings.read: Grant read-only access to payroll settings
462
- - payroll.superfunds: Grant read-write access to payroll superfunds
463
- - payroll.superfunds.read: Grant read-only access to payroll superfunds
464
- - payroll.superfundproducts.read: Grant read-only access to payroll superfundproducts
465
- - payroll.timesheets: Grant read-write access to payroll timesheets
466
- - payroll.timesheets.read: Grant read-only access to payroll timesheets
467
- - paymentservices: Grant read-write access to payment services
468
- - projects: Grant read-write access to projects
469
- - projects.read: Grant read-only access to projects
183
+ ### APIS
184
+ * [Accounting Api Docs](/docs/accounting/AccountingApi.md)
185
+ * [Asset Api Docs](/docs/assets/AssetApi.md)
470
186
 
187
+ ## Models
188
+ * [Accounting Models Docs](/docs/accounting/)
189
+ * [Asset Models Docs](/docs/assets/)