xero-ruby 1.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (271) hide show
  1. checksums.yaml +4 -4
  2. data/docs/accounting/AccountingApi.md +76 -8
  3. data/docs/accounting/Journal.md +1 -1
  4. data/docs/accounting/Payment.md +2 -0
  5. data/lib/xero-ruby.rb +1 -1
  6. data/lib/xero-ruby/api/accounting_api.rb +75 -5
  7. data/lib/xero-ruby/api/asset_api.rb +1 -1
  8. data/lib/xero-ruby/api_client.rb +1 -1
  9. data/lib/xero-ruby/api_error.rb +1 -1
  10. data/lib/xero-ruby/configuration.rb +1 -1
  11. data/lib/xero-ruby/models/accounting/account.rb +1 -1
  12. data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
  13. data/lib/xero-ruby/models/accounting/accounts.rb +1 -1
  14. data/lib/xero-ruby/models/accounting/accounts_payable.rb +1 -1
  15. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +1 -1
  16. data/lib/xero-ruby/models/accounting/address.rb +1 -1
  17. data/lib/xero-ruby/models/accounting/allocation.rb +1 -1
  18. data/lib/xero-ruby/models/accounting/allocations.rb +1 -1
  19. data/lib/xero-ruby/models/accounting/attachment.rb +1 -1
  20. data/lib/xero-ruby/models/accounting/attachments.rb +1 -1
  21. data/lib/xero-ruby/models/accounting/balances.rb +1 -1
  22. data/lib/xero-ruby/models/accounting/bank_transaction.rb +1 -1
  23. data/lib/xero-ruby/models/accounting/bank_transactions.rb +1 -1
  24. data/lib/xero-ruby/models/accounting/bank_transfer.rb +1 -1
  25. data/lib/xero-ruby/models/accounting/bank_transfers.rb +1 -1
  26. data/lib/xero-ruby/models/accounting/batch_payment.rb +1 -1
  27. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +1 -1
  28. data/lib/xero-ruby/models/accounting/batch_payments.rb +1 -1
  29. data/lib/xero-ruby/models/accounting/bill.rb +1 -1
  30. data/lib/xero-ruby/models/accounting/branding_theme.rb +1 -1
  31. data/lib/xero-ruby/models/accounting/branding_themes.rb +1 -1
  32. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +1 -1
  33. data/lib/xero-ruby/models/accounting/cis_setting.rb +1 -1
  34. data/lib/xero-ruby/models/accounting/cis_settings.rb +1 -1
  35. data/lib/xero-ruby/models/accounting/contact.rb +1 -1
  36. data/lib/xero-ruby/models/accounting/contact_group.rb +1 -1
  37. data/lib/xero-ruby/models/accounting/contact_groups.rb +1 -1
  38. data/lib/xero-ruby/models/accounting/contact_person.rb +1 -1
  39. data/lib/xero-ruby/models/accounting/contacts.rb +1 -1
  40. data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
  41. data/lib/xero-ruby/models/accounting/credit_note.rb +1 -1
  42. data/lib/xero-ruby/models/accounting/credit_notes.rb +1 -1
  43. data/lib/xero-ruby/models/accounting/currencies.rb +1 -1
  44. data/lib/xero-ruby/models/accounting/currency.rb +1 -1
  45. data/lib/xero-ruby/models/accounting/currency_code.rb +3 -3
  46. data/lib/xero-ruby/models/accounting/element.rb +1 -1
  47. data/lib/xero-ruby/models/accounting/employee.rb +1 -1
  48. data/lib/xero-ruby/models/accounting/employees.rb +1 -1
  49. data/lib/xero-ruby/models/accounting/error.rb +1 -1
  50. data/lib/xero-ruby/models/accounting/expense_claim.rb +1 -1
  51. data/lib/xero-ruby/models/accounting/expense_claims.rb +1 -1
  52. data/lib/xero-ruby/models/accounting/external_link.rb +1 -1
  53. data/lib/xero-ruby/models/accounting/history_record.rb +1 -1
  54. data/lib/xero-ruby/models/accounting/history_records.rb +1 -1
  55. data/lib/xero-ruby/models/accounting/invoice.rb +1 -1
  56. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +1 -1
  57. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +1 -1
  58. data/lib/xero-ruby/models/accounting/invoices.rb +1 -1
  59. data/lib/xero-ruby/models/accounting/item.rb +1 -1
  60. data/lib/xero-ruby/models/accounting/items.rb +1 -1
  61. data/lib/xero-ruby/models/accounting/journal.rb +2 -2
  62. data/lib/xero-ruby/models/accounting/journal_line.rb +1 -1
  63. data/lib/xero-ruby/models/accounting/journals.rb +1 -1
  64. data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
  65. data/lib/xero-ruby/models/accounting/line_item.rb +1 -1
  66. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +1 -1
  67. data/lib/xero-ruby/models/accounting/linked_transaction.rb +1 -1
  68. data/lib/xero-ruby/models/accounting/linked_transactions.rb +1 -1
  69. data/lib/xero-ruby/models/accounting/manual_journal.rb +1 -1
  70. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +1 -1
  71. data/lib/xero-ruby/models/accounting/manual_journals.rb +1 -1
  72. data/lib/xero-ruby/models/accounting/online_invoice.rb +1 -1
  73. data/lib/xero-ruby/models/accounting/online_invoices.rb +1 -1
  74. data/lib/xero-ruby/models/accounting/organisation.rb +1 -1
  75. data/lib/xero-ruby/models/accounting/organisations.rb +1 -1
  76. data/lib/xero-ruby/models/accounting/overpayment.rb +1 -1
  77. data/lib/xero-ruby/models/accounting/overpayments.rb +1 -1
  78. data/lib/xero-ruby/models/accounting/payment.rb +12 -2
  79. data/lib/xero-ruby/models/accounting/payment_delete.rb +1 -1
  80. data/lib/xero-ruby/models/accounting/payment_service.rb +1 -1
  81. data/lib/xero-ruby/models/accounting/payment_services.rb +1 -1
  82. data/lib/xero-ruby/models/accounting/payment_term.rb +1 -1
  83. data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
  84. data/lib/xero-ruby/models/accounting/payments.rb +1 -1
  85. data/lib/xero-ruby/models/accounting/phone.rb +1 -1
  86. data/lib/xero-ruby/models/accounting/prepayment.rb +1 -1
  87. data/lib/xero-ruby/models/accounting/prepayments.rb +1 -1
  88. data/lib/xero-ruby/models/accounting/purchase.rb +1 -1
  89. data/lib/xero-ruby/models/accounting/purchase_order.rb +1 -1
  90. data/lib/xero-ruby/models/accounting/purchase_orders.rb +1 -1
  91. data/lib/xero-ruby/models/accounting/quote.rb +1 -1
  92. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
  93. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
  94. data/lib/xero-ruby/models/accounting/quotes.rb +1 -1
  95. data/lib/xero-ruby/models/accounting/receipt.rb +1 -1
  96. data/lib/xero-ruby/models/accounting/receipts.rb +1 -1
  97. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +1 -1
  98. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +1 -1
  99. data/lib/xero-ruby/models/accounting/report.rb +1 -1
  100. data/lib/xero-ruby/models/accounting/report_attribute.rb +1 -1
  101. data/lib/xero-ruby/models/accounting/report_cell.rb +1 -1
  102. data/lib/xero-ruby/models/accounting/report_fields.rb +1 -1
  103. data/lib/xero-ruby/models/accounting/report_row.rb +1 -1
  104. data/lib/xero-ruby/models/accounting/report_rows.rb +1 -1
  105. data/lib/xero-ruby/models/accounting/report_with_row.rb +1 -1
  106. data/lib/xero-ruby/models/accounting/report_with_rows.rb +1 -1
  107. data/lib/xero-ruby/models/accounting/reports.rb +1 -1
  108. data/lib/xero-ruby/models/accounting/request_empty.rb +1 -1
  109. data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
  110. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +1 -1
  111. data/lib/xero-ruby/models/accounting/schedule.rb +1 -1
  112. data/lib/xero-ruby/models/accounting/tax_component.rb +1 -1
  113. data/lib/xero-ruby/models/accounting/tax_rate.rb +3 -3
  114. data/lib/xero-ruby/models/accounting/tax_rates.rb +1 -1
  115. data/lib/xero-ruby/models/accounting/tax_type.rb +5 -1
  116. data/lib/xero-ruby/models/accounting/ten_nintey_nine_contact.rb +1 -1
  117. data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
  118. data/lib/xero-ruby/models/accounting/tracking_categories.rb +1 -1
  119. data/lib/xero-ruby/models/accounting/tracking_category.rb +1 -1
  120. data/lib/xero-ruby/models/accounting/tracking_option.rb +1 -1
  121. data/lib/xero-ruby/models/accounting/tracking_options.rb +1 -1
  122. data/lib/xero-ruby/models/accounting/user.rb +1 -1
  123. data/lib/xero-ruby/models/accounting/users.rb +1 -1
  124. data/lib/xero-ruby/models/accounting/validation_error.rb +1 -1
  125. data/lib/xero-ruby/models/assets/asset.rb +1 -1
  126. data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
  127. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
  128. data/lib/xero-ruby/models/assets/asset_type.rb +1 -1
  129. data/lib/xero-ruby/models/assets/assets.rb +1 -1
  130. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +1 -1
  131. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +1 -1
  132. data/lib/xero-ruby/models/assets/error.rb +1 -1
  133. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +1 -1
  134. data/lib/xero-ruby/models/assets/pagination.rb +1 -1
  135. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +1 -1
  136. data/lib/xero-ruby/models/assets/setting.rb +1 -1
  137. data/lib/xero-ruby/version.rb +2 -2
  138. data/spec/accounting/api/accounting_api_spec.rb +16 -3
  139. data/spec/accounting/models/account_spec.rb +1 -1
  140. data/spec/accounting/models/account_type_spec.rb +1 -1
  141. data/spec/accounting/models/accounts_payable_spec.rb +1 -1
  142. data/spec/accounting/models/accounts_receivable_spec.rb +1 -1
  143. data/spec/accounting/models/accounts_spec.rb +1 -1
  144. data/spec/accounting/models/address_spec.rb +1 -1
  145. data/spec/accounting/models/allocation_spec.rb +1 -1
  146. data/spec/accounting/models/allocations_spec.rb +1 -1
  147. data/spec/accounting/models/attachment_spec.rb +1 -1
  148. data/spec/accounting/models/attachments_spec.rb +1 -1
  149. data/spec/accounting/models/balances_spec.rb +1 -1
  150. data/spec/accounting/models/bank_transaction_spec.rb +1 -1
  151. data/spec/accounting/models/bank_transactions_spec.rb +1 -1
  152. data/spec/accounting/models/bank_transfer_spec.rb +1 -1
  153. data/spec/accounting/models/bank_transfers_spec.rb +1 -1
  154. data/spec/accounting/models/batch_payment_details_spec.rb +1 -1
  155. data/spec/accounting/models/batch_payment_spec.rb +1 -1
  156. data/spec/accounting/models/batch_payments_spec.rb +1 -1
  157. data/spec/accounting/models/bill_spec.rb +1 -1
  158. data/spec/accounting/models/branding_theme_spec.rb +1 -1
  159. data/spec/accounting/models/branding_themes_spec.rb +1 -1
  160. data/spec/accounting/models/cis_org_setting_spec.rb +1 -1
  161. data/spec/accounting/models/cis_setting_spec.rb +1 -1
  162. data/spec/accounting/models/cis_settings_spec.rb +1 -1
  163. data/spec/accounting/models/contact_group_spec.rb +1 -1
  164. data/spec/accounting/models/contact_groups_spec.rb +1 -1
  165. data/spec/accounting/models/contact_person_spec.rb +1 -1
  166. data/spec/accounting/models/contact_spec.rb +1 -1
  167. data/spec/accounting/models/contacts_spec.rb +1 -1
  168. data/spec/accounting/models/country_code_spec.rb +1 -1
  169. data/spec/accounting/models/credit_note_spec.rb +1 -1
  170. data/spec/accounting/models/credit_notes_spec.rb +1 -1
  171. data/spec/accounting/models/currencies_spec.rb +1 -1
  172. data/spec/accounting/models/currency_code_spec.rb +1 -1
  173. data/spec/accounting/models/currency_spec.rb +1 -1
  174. data/spec/accounting/models/element_spec.rb +1 -1
  175. data/spec/accounting/models/employee_spec.rb +1 -1
  176. data/spec/accounting/models/employees_spec.rb +1 -1
  177. data/spec/accounting/models/error_spec.rb +1 -1
  178. data/spec/accounting/models/expense_claim_spec.rb +1 -1
  179. data/spec/accounting/models/expense_claims_spec.rb +1 -1
  180. data/spec/accounting/models/external_link_spec.rb +1 -1
  181. data/spec/accounting/models/history_record_spec.rb +1 -1
  182. data/spec/accounting/models/history_records_spec.rb +1 -1
  183. data/spec/accounting/models/invoice_reminder_spec.rb +1 -1
  184. data/spec/accounting/models/invoice_reminders_spec.rb +1 -1
  185. data/spec/accounting/models/invoice_spec.rb +1 -1
  186. data/spec/accounting/models/invoices_spec.rb +1 -1
  187. data/spec/accounting/models/item_spec.rb +1 -1
  188. data/spec/accounting/models/items_spec.rb +1 -1
  189. data/spec/accounting/models/journal_line_spec.rb +1 -1
  190. data/spec/accounting/models/journal_spec.rb +1 -1
  191. data/spec/accounting/models/journals_spec.rb +1 -1
  192. data/spec/accounting/models/line_amount_types_spec.rb +1 -1
  193. data/spec/accounting/models/line_item_spec.rb +1 -1
  194. data/spec/accounting/models/line_item_tracking_spec.rb +1 -1
  195. data/spec/accounting/models/linked_transaction_spec.rb +1 -1
  196. data/spec/accounting/models/linked_transactions_spec.rb +1 -1
  197. data/spec/accounting/models/manual_journal_line_spec.rb +1 -1
  198. data/spec/accounting/models/manual_journal_spec.rb +1 -1
  199. data/spec/accounting/models/manual_journals_spec.rb +1 -1
  200. data/spec/accounting/models/online_invoice_spec.rb +1 -1
  201. data/spec/accounting/models/online_invoices_spec.rb +1 -1
  202. data/spec/accounting/models/organisation_spec.rb +1 -1
  203. data/spec/accounting/models/organisations_spec.rb +1 -1
  204. data/spec/accounting/models/overpayment_spec.rb +1 -1
  205. data/spec/accounting/models/overpayments_spec.rb +1 -1
  206. data/spec/accounting/models/payment_delete_spec.rb +1 -1
  207. data/spec/accounting/models/payment_service_spec.rb +1 -1
  208. data/spec/accounting/models/payment_services_spec.rb +1 -1
  209. data/spec/accounting/models/payment_spec.rb +7 -1
  210. data/spec/accounting/models/payment_term_spec.rb +1 -1
  211. data/spec/accounting/models/payment_term_type_spec.rb +1 -1
  212. data/spec/accounting/models/payments_spec.rb +1 -1
  213. data/spec/accounting/models/phone_spec.rb +1 -1
  214. data/spec/accounting/models/prepayment_spec.rb +1 -1
  215. data/spec/accounting/models/prepayments_spec.rb +1 -1
  216. data/spec/accounting/models/purchase_order_spec.rb +1 -1
  217. data/spec/accounting/models/purchase_orders_spec.rb +1 -1
  218. data/spec/accounting/models/purchase_spec.rb +1 -1
  219. data/spec/accounting/models/quote_line_amount_types_spec.rb +1 -1
  220. data/spec/accounting/models/quote_spec.rb +1 -1
  221. data/spec/accounting/models/quote_status_codes_spec.rb +1 -1
  222. data/spec/accounting/models/quotes_spec.rb +1 -1
  223. data/spec/accounting/models/receipt_spec.rb +1 -1
  224. data/spec/accounting/models/receipts_spec.rb +1 -1
  225. data/spec/accounting/models/repeating_invoice_spec.rb +1 -1
  226. data/spec/accounting/models/repeating_invoices_spec.rb +1 -1
  227. data/spec/accounting/models/report_attribute_spec.rb +1 -1
  228. data/spec/accounting/models/report_cell_spec.rb +1 -1
  229. data/spec/accounting/models/report_fields_spec.rb +1 -1
  230. data/spec/accounting/models/report_row_spec.rb +1 -1
  231. data/spec/accounting/models/report_rows_spec.rb +1 -1
  232. data/spec/accounting/models/report_spec.rb +1 -1
  233. data/spec/accounting/models/report_with_row_spec.rb +1 -1
  234. data/spec/accounting/models/report_with_rows_spec.rb +1 -1
  235. data/spec/accounting/models/reports_spec.rb +1 -1
  236. data/spec/accounting/models/request_empty_spec.rb +1 -1
  237. data/spec/accounting/models/row_type_spec.rb +1 -1
  238. data/spec/accounting/models/sales_tracking_category_spec.rb +1 -1
  239. data/spec/accounting/models/schedule_spec.rb +1 -1
  240. data/spec/accounting/models/tax_component_spec.rb +1 -1
  241. data/spec/accounting/models/tax_rate_spec.rb +2 -2
  242. data/spec/accounting/models/tax_rates_spec.rb +1 -1
  243. data/spec/accounting/models/tax_type_spec.rb +1 -1
  244. data/spec/accounting/models/ten_nintey_nine_contact_spec.rb +1 -1
  245. data/spec/accounting/models/time_zone_spec.rb +1 -1
  246. data/spec/accounting/models/tracking_categories_spec.rb +1 -1
  247. data/spec/accounting/models/tracking_category_spec.rb +1 -1
  248. data/spec/accounting/models/tracking_option_spec.rb +1 -1
  249. data/spec/accounting/models/tracking_options_spec.rb +1 -1
  250. data/spec/accounting/models/user_spec.rb +1 -1
  251. data/spec/accounting/models/users_spec.rb +1 -1
  252. data/spec/accounting/models/validation_error_spec.rb +1 -1
  253. data/spec/api_client_spec.rb +1 -1
  254. data/spec/assets/api/asset_api_spec.rb +1 -1
  255. data/spec/assets/models/asset_spec.rb +1 -1
  256. data/spec/assets/models/asset_status_query_param_spec.rb +1 -1
  257. data/spec/assets/models/asset_status_spec.rb +1 -1
  258. data/spec/assets/models/asset_type_spec.rb +1 -1
  259. data/spec/assets/models/assets_spec.rb +1 -1
  260. data/spec/assets/models/book_depreciation_detail_spec.rb +1 -1
  261. data/spec/assets/models/book_depreciation_setting_spec.rb +1 -1
  262. data/spec/assets/models/error_spec.rb +1 -1
  263. data/spec/assets/models/field_validation_errors_element_spec.rb +1 -1
  264. data/spec/assets/models/pagination_spec.rb +1 -1
  265. data/spec/assets/models/resource_validation_errors_element_spec.rb +1 -1
  266. data/spec/assets/models/setting_spec.rb +1 -1
  267. data/spec/configuration_spec.rb +1 -1
  268. data/spec/spec_helper.rb +1 -1
  269. data/xero-ruby-1.0.gem +0 -0
  270. data/xero-ruby.gemspec +1 -1
  271. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a033e0dc82c3b83a0662fe4fe36f66bf63db4ce7fc852c64391cdc27bc2bb2d7
4
- data.tar.gz: cea9c4e74270eb1cbb7d569ce27f6d228e2cb57ffeba9d6338ff3aaa173a6fb3
3
+ metadata.gz: 65af5017576aaf31ef6a26339ad1cbfba7a791eefc8c783ceeb7612557c75fbe
4
+ data.tar.gz: 241b41ed8c63069d40d5353fb8dbe08f28ad55460cac749011c1a5806f76db01
5
5
  SHA512:
6
- metadata.gz: 152f472bda343f20ed114f3f2401ae73f47871b170c4be15590c8c89769a8b0e4553bf5e6a0b2bde95de7e6f452881305c1ec00a6926a332cc4a5dc2a08ebd39
7
- data.tar.gz: 54c72cc4ed946102514399163be735c24644d89ca2fe2101884fd8f0f4ee5d832aa52219942a56d5daa60074d317b9cfa5cf9b9a1569de6741fad45043bfb987
6
+ metadata.gz: 827f168c87bc22a291c61b69d314ed2f770140ca2092c23110b48e86087f3fdb25ac924caa97b8735e2bc2ef02e7fa12cf8deaf091c824004fc8a3932f6e8f27
7
+ data.tar.gz: 9a2478528144ec670dbea5a2a635a33fce483437abed5575c6b4226f2c198ac0a314ca48e2503096aba760d4509422b4fb5987e5608a14635e0993f32b0b3f0d
@@ -88,7 +88,7 @@ Method | HTTP request | Description
88
88
  [**get_branding_theme**](AccountingApi.md#get_branding_theme) | **GET** /BrandingThemes/{BrandingThemeID} | Allows you to retrieve a specific BrandingThemes
89
89
  [**get_branding_theme_payment_services**](AccountingApi.md#get_branding_theme_payment_services) | **GET** /BrandingThemes/{BrandingThemeID}/PaymentServices | Allows you to retrieve the Payment services for a Branding Theme
90
90
  [**get_branding_themes**](AccountingApi.md#get_branding_themes) | **GET** /BrandingThemes | Allows you to retrieve all the BrandingThemes
91
- [**get_contact**](AccountingApi.md#get_contact) | **GET** /Contacts/{ContactID} | Allows you to retrieve, add and update contacts in a Xero organisation
91
+ [**get_contact**](AccountingApi.md#get_contact) | **GET** /Contacts/{ContactID} | Allows you to retrieve a single contacts in a Xero organisation
92
92
  [**get_contact_attachment_by_file_name**](AccountingApi.md#get_contact_attachment_by_file_name) | **GET** /Contacts/{ContactID}/Attachments/{FileName} | Allows you to retrieve Attachments on Contacts by file name
93
93
  [**get_contact_attachment_by_id**](AccountingApi.md#get_contact_attachment_by_id) | **GET** /Contacts/{ContactID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on Contacts
94
94
  [**get_contact_attachments**](AccountingApi.md#get_contact_attachments) | **GET** /Contacts/{ContactID}/Attachments | Allows you to retrieve, add and update contacts in a Xero organisation
@@ -96,7 +96,7 @@ Method | HTTP request | Description
96
96
  [**get_contact_group**](AccountingApi.md#get_contact_group) | **GET** /ContactGroups/{ContactGroupID} | Allows you to retrieve a unique Contact Group by ID
97
97
  [**get_contact_groups**](AccountingApi.md#get_contact_groups) | **GET** /ContactGroups | Allows you to retrieve the ContactID and Name of all the contacts in a contact group
98
98
  [**get_contact_history**](AccountingApi.md#get_contact_history) | **GET** /Contacts/{ContactID}/History | Allows you to retrieve a history records of an Contact
99
- [**get_contacts**](AccountingApi.md#get_contacts) | **GET** /Contacts | Allows you to retrieve, add and update contacts in a Xero organisation
99
+ [**get_contacts**](AccountingApi.md#get_contacts) | **GET** /Contacts | Allows you to retrieve all contacts in a Xero organisation
100
100
  [**get_credit_note**](AccountingApi.md#get_credit_note) | **GET** /CreditNotes/{CreditNoteID} | Allows you to retrieve a specific credit note
101
101
  [**get_credit_note_as_pdf**](AccountingApi.md#get_credit_note_as_pdf) | **GET** /CreditNotes/{CreditNoteID}/pdf | Allows you to retrieve Credit Note as PDF files
102
102
  [**get_credit_note_attachment_by_file_name**](AccountingApi.md#get_credit_note_attachment_by_file_name) | **GET** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to retrieve Attachments on CreditNote by file name
@@ -141,6 +141,7 @@ Method | HTTP request | Description
141
141
  [**get_payment_services**](AccountingApi.md#get_payment_services) | **GET** /PaymentServices | Allows you to retrieve payment services
142
142
  [**get_payments**](AccountingApi.md#get_payments) | **GET** /Payments | Allows you to retrieve payments for invoices and credit notes
143
143
  [**get_prepayment**](AccountingApi.md#get_prepayment) | **GET** /Prepayments/{PrepaymentID} | Allows you to retrieve a specified prepayments
144
+ [**get_prepayment_as_pdf**](AccountingApi.md#get_prepayment_as_pdf) | **GET** /Prepayments/{PrepaymentID}/pdf | Allows you to retrieve prepayments as PDF files
144
145
  [**get_prepayment_history**](AccountingApi.md#get_prepayment_history) | **GET** /Prepayments/{PrepaymentID}/History | Allows you to retrieve a history records of an Prepayment
145
146
  [**get_prepayments**](AccountingApi.md#get_prepayments) | **GET** /Prepayments | Allows you to retrieve prepayments
146
147
  [**get_purchase_order**](AccountingApi.md#get_purchase_order) | **GET** /PurchaseOrders/{PurchaseOrderID} | Allows you to retrieve a specified purchase orders
@@ -2658,7 +2659,7 @@ Name | Type | Description | Notes
2658
2659
 
2659
2660
  ## create_payments
2660
2661
 
2661
- > Payments create_payments(xero_tenant_id, payments)
2662
+ > Payments create_payments(xero_tenant_id, payments, opts)
2662
2663
 
2663
2664
  Allows you to create multiple payments for invoices or credit notes
2664
2665
 
@@ -2687,10 +2688,13 @@ api_instance = xero_client.asset_api
2687
2688
 
2688
2689
  xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
2689
2690
  payments = { payments:[ { invoice:{ invoiceID:"00000000-0000-0000-000-000000000000", lineItems:[], contact: {}, type: Invoice.TypeEnum.ACCPAY }, account:{ code:"970" }, date:"2019-03-12", amount:1.0 } ] } # Payments | Payments array with Payment object in body of request
2691
+ opts = {
2692
+ summarize_errors: false # Boolean | If false return 200 OK and mix of successfully created obejcts and any with validation errors
2693
+ }
2690
2694
 
2691
2695
  begin
2692
2696
  #Allows you to create multiple payments for invoices or credit notes
2693
- result = api_instance.create_payments(xero_tenant_id, payments)
2697
+ result = api_instance.create_payments(xero_tenant_id, payments, opts)
2694
2698
  p result
2695
2699
  rescue XeroRuby::Accounting::ApiError => e
2696
2700
  puts "Exception when calling AccountingApi->create_payments: #{e}"
@@ -2704,6 +2708,7 @@ Name | Type | Description | Notes
2704
2708
  ------------- | ------------- | ------------- | -------------
2705
2709
  **xero_tenant_id** | **String**| Xero identifier for Tenant |
2706
2710
  **payments** | [**Payments**](Payments.md)| Payments array with Payment object in body of request |
2711
+ **summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created obejcts and any with validation errors | [optional] [default to false]
2707
2712
 
2708
2713
  ### Return type
2709
2714
 
@@ -5720,7 +5725,7 @@ Name | Type | Description | Notes
5720
5725
 
5721
5726
  > Contacts get_contact(xero_tenant_id, contact_id)
5722
5727
 
5723
- Allows you to retrieve, add and update contacts in a Xero organisation
5728
+ Allows you to retrieve a single contacts in a Xero organisation
5724
5729
 
5725
5730
  ### Example
5726
5731
 
@@ -5749,7 +5754,7 @@ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
5749
5754
  contact_id = '00000000-0000-0000-000-000000000000' # String | Unique identifier for a Contact
5750
5755
 
5751
5756
  begin
5752
- #Allows you to retrieve, add and update contacts in a Xero organisation
5757
+ #Allows you to retrieve a single contacts in a Xero organisation
5753
5758
  result = api_instance.get_contact(xero_tenant_id, contact_id)
5754
5759
  p result
5755
5760
  rescue XeroRuby::Accounting::ApiError => e
@@ -6236,7 +6241,7 @@ Name | Type | Description | Notes
6236
6241
 
6237
6242
  > Contacts get_contacts(xero_tenant_id, opts)
6238
6243
 
6239
- Allows you to retrieve, add and update contacts in a Xero organisation
6244
+ Allows you to retrieve all contacts in a Xero organisation
6240
6245
 
6241
6246
  ### Example
6242
6247
 
@@ -6272,7 +6277,7 @@ opts = {
6272
6277
  }
6273
6278
 
6274
6279
  begin
6275
- #Allows you to retrieve, add and update contacts in a Xero organisation
6280
+ #Allows you to retrieve all contacts in a Xero organisation
6276
6281
  result = api_instance.get_contacts(xero_tenant_id, opts)
6277
6282
  p result
6278
6283
  rescue XeroRuby::Accounting::ApiError => e
@@ -9207,6 +9212,69 @@ Name | Type | Description | Notes
9207
9212
  - **Accept**: application/json
9208
9213
 
9209
9214
 
9215
+ ## get_prepayment_as_pdf
9216
+
9217
+ > File get_prepayment_as_pdf(xero_tenant_id, prepayment_id)
9218
+
9219
+ Allows you to retrieve prepayments as PDF files
9220
+
9221
+ ### Example
9222
+
9223
+ ```ruby
9224
+ # load the gem
9225
+ require 'xero-ruby'
9226
+
9227
+ creds = {
9228
+ client_id: ENV['CLIENT_ID'],
9229
+ client_secret: ENV['CLIENT_SECRET'],
9230
+ redirect_uri: ENV['REDIRECT_URI'],
9231
+ scopes: ENV['SCOPES']
9232
+ }
9233
+ xero_client = XeroRuby::ApiClient.new(credentials: creds)
9234
+
9235
+ token_set = fetch_valid_token_set(user) # example
9236
+
9237
+ xero_client.refresh_token_set(token_set)
9238
+
9239
+ # If using the Accounting API
9240
+ api_instance = xero_client.accounting_api
9241
+ # Or for methods in the Assets API
9242
+ api_instance = xero_client.asset_api
9243
+
9244
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
9245
+ prepayment_id = '00000000-0000-0000-000-000000000000' # String | Unique identifier for a PrePayment
9246
+
9247
+ begin
9248
+ #Allows you to retrieve prepayments as PDF files
9249
+ result = api_instance.get_prepayment_as_pdf(xero_tenant_id, prepayment_id)
9250
+ p result
9251
+ rescue XeroRuby::Accounting::ApiError => e
9252
+ puts "Exception when calling AccountingApi->get_prepayment_as_pdf: #{e}"
9253
+ end
9254
+ ```
9255
+
9256
+ ### Parameters
9257
+
9258
+
9259
+ Name | Type | Description | Notes
9260
+ ------------- | ------------- | ------------- | -------------
9261
+ **xero_tenant_id** | **String**| Xero identifier for Tenant |
9262
+ **prepayment_id** | [**String**](.md)| Unique identifier for a PrePayment |
9263
+
9264
+ ### Return type
9265
+
9266
+ **File**
9267
+
9268
+ ### Authorization
9269
+
9270
+ [OAuth2](../README.md#OAuth2)
9271
+
9272
+ ### HTTP request headers
9273
+
9274
+ - **Content-Type**: Not defined
9275
+ - **Accept**: application/pdf
9276
+
9277
+
9210
9278
  ## get_prepayment_history
9211
9279
 
9212
9280
  > HistoryRecords get_prepayment_history(xero_tenant_id, prepayment_id)
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **journal_id** | **String** | Xero identifier | [optional]
8
8
  **journal_date** | **Date** | Date the journal was posted | [optional]
9
- **journal_number** | **String** | Xero generated journal number | [optional]
9
+ **journal_number** | **Integer** | Xero generated journal number | [optional]
10
10
  **created_date_utc** | **DateTime** | Created date UTC format | [optional]
11
11
  **reference** | **String** | reference field for additional indetifying information | [optional]
12
12
  **source_id** | **String** | The identifier for the source transaction (e.g. InvoiceID) | [optional]
@@ -26,6 +26,7 @@ Name | Type | Description | Notes
26
26
  **details** | **String** | The information to appear on the supplier's bank account | [optional]
27
27
  **has_account** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional]
28
28
  **has_validation_errors** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional]
29
+ **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
29
30
  **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
30
31
 
31
32
  ## Code Sample
@@ -55,6 +56,7 @@ instance = XeroRuby::Accounting::Payment.new(invoice: null,
55
56
  details: null,
56
57
  has_account: null,
57
58
  has_validation_errors: null,
59
+ status_attribute_string: null,
58
60
  validation_errors: null)
59
61
  ```
60
62
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -2781,6 +2781,7 @@ module XeroRuby
2781
2781
  # @param xero_tenant_id [String] Xero identifier for Tenant
2782
2782
  # @param payments [Payments] Payments array with Payment object in body of request
2783
2783
  # @param [Hash] opts the optional parameters
2784
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false)
2784
2785
  # @return [Payments]
2785
2786
  def create_payments(xero_tenant_id, payments, opts = {})
2786
2787
  data, _status_code, _headers = create_payments_with_http_info(xero_tenant_id, payments, opts)
@@ -2791,6 +2792,7 @@ module XeroRuby
2791
2792
  # @param xero_tenant_id [String] Xero identifier for Tenant
2792
2793
  # @param payments [Payments] Payments array with Payment object in body of request
2793
2794
  # @param [Hash] opts the optional parameters
2795
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2794
2796
  # @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers
2795
2797
  def create_payments_with_http_info(xero_tenant_id, payments, opts = {})
2796
2798
  if @api_client.config.debugging
@@ -2809,6 +2811,7 @@ module XeroRuby
2809
2811
 
2810
2812
  # query parameters
2811
2813
  query_params = opts[:query_params] || {}
2814
+ query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil?
2812
2815
 
2813
2816
  # header parameters
2814
2817
  header_params = opts[:header_params] || {}
@@ -6167,7 +6170,7 @@ module XeroRuby
6167
6170
  return data, status_code, headers
6168
6171
  end
6169
6172
 
6170
- # Allows you to retrieve, add and update contacts in a Xero organisation
6173
+ # Allows you to retrieve a single contacts in a Xero organisation
6171
6174
  # @param xero_tenant_id [String] Xero identifier for Tenant
6172
6175
  # @param contact_id [String] Unique identifier for a Contact
6173
6176
  # @param [Hash] opts the optional parameters
@@ -6177,7 +6180,7 @@ module XeroRuby
6177
6180
  data
6178
6181
  end
6179
6182
 
6180
- # Allows you to retrieve, add and update contacts in a Xero organisation
6183
+ # Allows you to retrieve a single contacts in a Xero organisation
6181
6184
  # @param xero_tenant_id [String] Xero identifier for Tenant
6182
6185
  # @param contact_id [String] Unique identifier for a Contact
6183
6186
  # @param [Hash] opts the optional parameters
@@ -6729,7 +6732,7 @@ module XeroRuby
6729
6732
  return data, status_code, headers
6730
6733
  end
6731
6734
 
6732
- # Allows you to retrieve, add and update contacts in a Xero organisation
6735
+ # Allows you to retrieve all contacts in a Xero organisation
6733
6736
  # @param xero_tenant_id [String] Xero identifier for Tenant
6734
6737
  # @param [Hash] opts the optional parameters
6735
6738
  # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
@@ -6744,7 +6747,7 @@ module XeroRuby
6744
6747
  data
6745
6748
  end
6746
6749
 
6747
- # Allows you to retrieve, add and update contacts in a Xero organisation
6750
+ # Allows you to retrieve all contacts in a Xero organisation
6748
6751
  # @param xero_tenant_id [String] Xero identifier for Tenant
6749
6752
  # @param [Hash] opts the optional parameters
6750
6753
  # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
@@ -9906,6 +9909,73 @@ module XeroRuby
9906
9909
  return data, status_code, headers
9907
9910
  end
9908
9911
 
9912
+ # Allows you to retrieve prepayments as PDF files
9913
+ # @param xero_tenant_id [String] Xero identifier for Tenant
9914
+ # @param prepayment_id [String] Unique identifier for a PrePayment
9915
+ # @param [Hash] opts the optional parameters
9916
+ # @return [File]
9917
+ def get_prepayment_as_pdf(xero_tenant_id, prepayment_id, opts = {})
9918
+ data, _status_code, _headers = get_prepayment_as_pdf_with_http_info(xero_tenant_id, prepayment_id, opts)
9919
+ data
9920
+ end
9921
+
9922
+ # Allows you to retrieve prepayments as PDF files
9923
+ # @param xero_tenant_id [String] Xero identifier for Tenant
9924
+ # @param prepayment_id [String] Unique identifier for a PrePayment
9925
+ # @param [Hash] opts the optional parameters
9926
+ # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers
9927
+ def get_prepayment_as_pdf_with_http_info(xero_tenant_id, prepayment_id, opts = {})
9928
+ if @api_client.config.debugging
9929
+ @api_client.config.logger.debug 'Calling API: AccountingApi.get_prepayment_as_pdf ...'
9930
+ end
9931
+ # verify the required parameter 'xero_tenant_id' is set
9932
+ if @api_client.config.client_side_validation && xero_tenant_id.nil?
9933
+ fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_prepayment_as_pdf"
9934
+ end
9935
+ # verify the required parameter 'prepayment_id' is set
9936
+ if @api_client.config.client_side_validation && prepayment_id.nil?
9937
+ fail ArgumentError, "Missing the required parameter 'prepayment_id' when calling AccountingApi.get_prepayment_as_pdf"
9938
+ end
9939
+ # resource path
9940
+ local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s)
9941
+
9942
+ # query parameters
9943
+ query_params = opts[:query_params] || {}
9944
+
9945
+ # header parameters
9946
+ header_params = opts[:header_params] || {}
9947
+ # HTTP header 'Accept' (if needed)
9948
+ header_params['Accept'] = @api_client.select_header_accept(['application/pdf'])
9949
+ header_params[:'xero-tenant-id'] = xero_tenant_id
9950
+
9951
+ # form parameters
9952
+ form_params = opts[:form_params] || {}
9953
+
9954
+ # http body (model)
9955
+ post_body = opts[:body]
9956
+
9957
+ # return_type
9958
+ return_type = opts[:return_type] || 'File'
9959
+
9960
+ # auth_names
9961
+ auth_names = opts[:auth_names] || ['OAuth2']
9962
+
9963
+ new_options = opts.merge(
9964
+ :header_params => header_params,
9965
+ :query_params => query_params,
9966
+ :form_params => form_params,
9967
+ :body => post_body,
9968
+ :auth_names => auth_names,
9969
+ :return_type => return_type
9970
+ )
9971
+
9972
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
9973
+ if @api_client.config.debugging
9974
+ @api_client.config.logger.debug "API called: AccountingApi#get_prepayment_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
9975
+ end
9976
+ return data, status_code, headers
9977
+ end
9978
+
9909
9979
  # Allows you to retrieve a history records of an Prepayment
9910
9980
  # @param xero_tenant_id [String] Xero identifier for Tenant
9911
9981
  # @param prepayment_id [String] Unique identifier for a PrePayment
@@ -3,7 +3,7 @@
3
3
 
4
4
  #This is the Xero Assets API
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0
@@ -3,7 +3,7 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.0
6
+ The version of the OpenAPI document: 2.1.3
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.3.0