xero-ruby 2.1.0 → 2.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +22 -9
  3. data/build_notes.md +25 -6
  4. data/docs/accounting/Account.md +1 -1
  5. data/docs/accounting/AccountingApi.md +4 -1
  6. data/docs/accounting/AccountsPayable.md +2 -2
  7. data/docs/accounting/AccountsReceivable.md +2 -2
  8. data/docs/accounting/Allocation.md +1 -1
  9. data/docs/accounting/BankTransaction.md +6 -6
  10. data/docs/accounting/BankTransfer.md +3 -3
  11. data/docs/accounting/BatchPayment.md +2 -2
  12. data/docs/accounting/BrandingTheme.md +1 -1
  13. data/docs/accounting/Contact.md +2 -2
  14. data/docs/accounting/CreditNote.md +6 -6
  15. data/docs/accounting/Employee.md +1 -1
  16. data/docs/accounting/ExpenseClaim.md +4 -4
  17. data/docs/accounting/HistoryRecord.md +1 -1
  18. data/docs/accounting/Invoice.md +12 -10
  19. data/docs/accounting/Item.md +3 -3
  20. data/docs/accounting/Journal.md +1 -1
  21. data/docs/accounting/JournalLine.md +3 -3
  22. data/docs/accounting/LineItem.md +6 -6
  23. data/docs/accounting/LinkedTransaction.md +1 -1
  24. data/docs/accounting/ManualJournal.md +1 -1
  25. data/docs/accounting/ManualJournalLine.md +2 -2
  26. data/docs/accounting/Organisation.md +1 -1
  27. data/docs/accounting/Overpayment.md +6 -6
  28. data/docs/accounting/Payment.md +3 -3
  29. data/docs/accounting/Prepayment.md +6 -6
  30. data/docs/accounting/Purchase.md +1 -1
  31. data/docs/accounting/PurchaseOrder.md +6 -6
  32. data/docs/accounting/Quote.md +5 -5
  33. data/docs/accounting/Receipt.md +4 -4
  34. data/docs/accounting/RepeatingInvoice.md +3 -3
  35. data/docs/accounting/Report.md +1 -1
  36. data/docs/accounting/ReportWithRow.md +1 -1
  37. data/docs/accounting/TaxComponent.md +1 -1
  38. data/docs/accounting/TaxRate.md +2 -2
  39. data/docs/accounting/TenNinetyNineContact.md +13 -13
  40. data/docs/accounting/TrackingOption.md +3 -3
  41. data/docs/accounting/User.md +1 -1
  42. data/docs/assets/Asset.md +3 -3
  43. data/docs/assets/AssetApi.md +6 -6
  44. data/docs/assets/BookDepreciationDetail.md +6 -6
  45. data/docs/assets/BookDepreciationSetting.md +1 -1
  46. data/docs/projects/Amount.md +1 -1
  47. data/docs/projects/ProjectCreateOrUpdate.md +1 -1
  48. data/lib/xero-ruby.rb +1 -1
  49. data/lib/xero-ruby/api/accounting_api.rb +434 -216
  50. data/lib/xero-ruby/api/asset_api.rb +19 -13
  51. data/lib/xero-ruby/api/project_api.rb +27 -14
  52. data/lib/xero-ruby/api_client.rb +34 -1
  53. data/lib/xero-ruby/api_error.rb +1 -1
  54. data/lib/xero-ruby/configuration.rb +2 -2
  55. data/lib/xero-ruby/models/accounting/account.rb +2 -18
  56. data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
  57. data/lib/xero-ruby/models/accounting/accounts.rb +2 -2
  58. data/lib/xero-ruby/models/accounting/accounts_payable.rb +2 -2
  59. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +2 -2
  60. data/lib/xero-ruby/models/accounting/address.rb +2 -2
  61. data/lib/xero-ruby/models/accounting/allocation.rb +2 -2
  62. data/lib/xero-ruby/models/accounting/allocations.rb +2 -2
  63. data/lib/xero-ruby/models/accounting/attachment.rb +2 -2
  64. data/lib/xero-ruby/models/accounting/attachments.rb +2 -2
  65. data/lib/xero-ruby/models/accounting/balances.rb +2 -2
  66. data/lib/xero-ruby/models/accounting/bank_transaction.rb +2 -7
  67. data/lib/xero-ruby/models/accounting/bank_transactions.rb +2 -2
  68. data/lib/xero-ruby/models/accounting/bank_transfer.rb +2 -2
  69. data/lib/xero-ruby/models/accounting/bank_transfers.rb +2 -2
  70. data/lib/xero-ruby/models/accounting/batch_payment.rb +2 -17
  71. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +2 -2
  72. data/lib/xero-ruby/models/accounting/batch_payments.rb +2 -2
  73. data/lib/xero-ruby/models/accounting/bill.rb +2 -2
  74. data/lib/xero-ruby/models/accounting/branding_theme.rb +2 -2
  75. data/lib/xero-ruby/models/accounting/branding_themes.rb +2 -2
  76. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +2 -2
  77. data/lib/xero-ruby/models/accounting/cis_setting.rb +2 -2
  78. data/lib/xero-ruby/models/accounting/cis_settings.rb +2 -2
  79. data/lib/xero-ruby/models/accounting/contact.rb +2 -2
  80. data/lib/xero-ruby/models/accounting/contact_group.rb +2 -2
  81. data/lib/xero-ruby/models/accounting/contact_groups.rb +2 -2
  82. data/lib/xero-ruby/models/accounting/contact_person.rb +2 -2
  83. data/lib/xero-ruby/models/accounting/contacts.rb +2 -2
  84. data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
  85. data/lib/xero-ruby/models/accounting/credit_note.rb +2 -2
  86. data/lib/xero-ruby/models/accounting/credit_notes.rb +2 -2
  87. data/lib/xero-ruby/models/accounting/currencies.rb +2 -2
  88. data/lib/xero-ruby/models/accounting/currency.rb +2 -2
  89. data/lib/xero-ruby/models/accounting/currency_code.rb +5 -3
  90. data/lib/xero-ruby/models/accounting/element.rb +2 -2
  91. data/lib/xero-ruby/models/accounting/employee.rb +5 -4
  92. data/lib/xero-ruby/models/accounting/employees.rb +2 -2
  93. data/lib/xero-ruby/models/accounting/error.rb +2 -2
  94. data/lib/xero-ruby/models/accounting/expense_claim.rb +2 -2
  95. data/lib/xero-ruby/models/accounting/expense_claims.rb +2 -2
  96. data/lib/xero-ruby/models/accounting/external_link.rb +2 -2
  97. data/lib/xero-ruby/models/accounting/history_record.rb +2 -2
  98. data/lib/xero-ruby/models/accounting/history_records.rb +2 -2
  99. data/lib/xero-ruby/models/accounting/invoice.rb +13 -3
  100. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +2 -2
  101. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +2 -2
  102. data/lib/xero-ruby/models/accounting/invoices.rb +2 -2
  103. data/lib/xero-ruby/models/accounting/item.rb +2 -2
  104. data/lib/xero-ruby/models/accounting/items.rb +2 -2
  105. data/lib/xero-ruby/models/accounting/journal.rb +2 -2
  106. data/lib/xero-ruby/models/accounting/journal_line.rb +2 -2
  107. data/lib/xero-ruby/models/accounting/journals.rb +2 -2
  108. data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
  109. data/lib/xero-ruby/models/accounting/line_item.rb +2 -2
  110. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +2 -2
  111. data/lib/xero-ruby/models/accounting/linked_transaction.rb +2 -2
  112. data/lib/xero-ruby/models/accounting/linked_transactions.rb +2 -2
  113. data/lib/xero-ruby/models/accounting/manual_journal.rb +2 -2
  114. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +2 -2
  115. data/lib/xero-ruby/models/accounting/manual_journals.rb +2 -2
  116. data/lib/xero-ruby/models/accounting/online_invoice.rb +2 -2
  117. data/lib/xero-ruby/models/accounting/online_invoices.rb +2 -2
  118. data/lib/xero-ruby/models/accounting/organisation.rb +2 -4
  119. data/lib/xero-ruby/models/accounting/organisations.rb +2 -2
  120. data/lib/xero-ruby/models/accounting/overpayment.rb +2 -2
  121. data/lib/xero-ruby/models/accounting/overpayments.rb +2 -2
  122. data/lib/xero-ruby/models/accounting/payment.rb +2 -2
  123. data/lib/xero-ruby/models/accounting/payment_delete.rb +2 -2
  124. data/lib/xero-ruby/models/accounting/payment_service.rb +2 -2
  125. data/lib/xero-ruby/models/accounting/payment_services.rb +2 -2
  126. data/lib/xero-ruby/models/accounting/payment_term.rb +2 -2
  127. data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
  128. data/lib/xero-ruby/models/accounting/payments.rb +2 -2
  129. data/lib/xero-ruby/models/accounting/phone.rb +2 -2
  130. data/lib/xero-ruby/models/accounting/prepayment.rb +2 -2
  131. data/lib/xero-ruby/models/accounting/prepayments.rb +2 -2
  132. data/lib/xero-ruby/models/accounting/purchase.rb +2 -2
  133. data/lib/xero-ruby/models/accounting/purchase_order.rb +2 -2
  134. data/lib/xero-ruby/models/accounting/purchase_orders.rb +2 -2
  135. data/lib/xero-ruby/models/accounting/quote.rb +2 -2
  136. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
  137. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
  138. data/lib/xero-ruby/models/accounting/quotes.rb +2 -2
  139. data/lib/xero-ruby/models/accounting/receipt.rb +2 -2
  140. data/lib/xero-ruby/models/accounting/receipts.rb +2 -2
  141. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +2 -2
  142. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +2 -2
  143. data/lib/xero-ruby/models/accounting/report.rb +2 -2
  144. data/lib/xero-ruby/models/accounting/report_attribute.rb +2 -2
  145. data/lib/xero-ruby/models/accounting/report_cell.rb +2 -2
  146. data/lib/xero-ruby/models/accounting/report_fields.rb +2 -2
  147. data/lib/xero-ruby/models/accounting/report_row.rb +2 -2
  148. data/lib/xero-ruby/models/accounting/report_rows.rb +2 -2
  149. data/lib/xero-ruby/models/accounting/report_with_row.rb +2 -2
  150. data/lib/xero-ruby/models/accounting/report_with_rows.rb +2 -2
  151. data/lib/xero-ruby/models/accounting/reports.rb +2 -2
  152. data/lib/xero-ruby/models/accounting/request_empty.rb +2 -2
  153. data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
  154. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +2 -2
  155. data/lib/xero-ruby/models/accounting/schedule.rb +2 -2
  156. data/lib/xero-ruby/models/accounting/tax_component.rb +2 -2
  157. data/lib/xero-ruby/models/accounting/tax_rate.rb +2 -2
  158. data/lib/xero-ruby/models/accounting/tax_rates.rb +2 -2
  159. data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
  160. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +2 -2
  161. data/lib/xero-ruby/models/accounting/time_zone.rb +2 -1
  162. data/lib/xero-ruby/models/accounting/tracking_categories.rb +2 -2
  163. data/lib/xero-ruby/models/accounting/tracking_category.rb +2 -2
  164. data/lib/xero-ruby/models/accounting/tracking_option.rb +10 -10
  165. data/lib/xero-ruby/models/accounting/tracking_options.rb +2 -2
  166. data/lib/xero-ruby/models/accounting/user.rb +2 -2
  167. data/lib/xero-ruby/models/accounting/users.rb +2 -2
  168. data/lib/xero-ruby/models/accounting/validation_error.rb +2 -2
  169. data/lib/xero-ruby/models/assets/asset.rb +2 -2
  170. data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
  171. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
  172. data/lib/xero-ruby/models/assets/asset_type.rb +2 -2
  173. data/lib/xero-ruby/models/assets/assets.rb +2 -2
  174. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +2 -2
  175. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +2 -2
  176. data/lib/xero-ruby/models/assets/error.rb +2 -2
  177. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +2 -2
  178. data/lib/xero-ruby/models/assets/pagination.rb +2 -2
  179. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +2 -2
  180. data/lib/xero-ruby/models/assets/setting.rb +2 -2
  181. data/lib/xero-ruby/models/projects/amount.rb +2 -2
  182. data/lib/xero-ruby/models/projects/charge_type.rb +1 -1
  183. data/lib/xero-ruby/models/projects/currency_code.rb +1 -1
  184. data/lib/xero-ruby/models/projects/error.rb +2 -2
  185. data/lib/xero-ruby/models/projects/pagination.rb +2 -2
  186. data/lib/xero-ruby/models/projects/project.rb +2 -2
  187. data/lib/xero-ruby/models/projects/project_create_or_update.rb +2 -2
  188. data/lib/xero-ruby/models/projects/project_patch.rb +2 -2
  189. data/lib/xero-ruby/models/projects/project_status.rb +1 -1
  190. data/lib/xero-ruby/models/projects/project_user.rb +2 -2
  191. data/lib/xero-ruby/models/projects/project_users.rb +2 -2
  192. data/lib/xero-ruby/models/projects/projects.rb +2 -2
  193. data/lib/xero-ruby/models/projects/task.rb +2 -2
  194. data/lib/xero-ruby/models/projects/task_create_or_update.rb +2 -2
  195. data/lib/xero-ruby/models/projects/tasks.rb +2 -2
  196. data/lib/xero-ruby/models/projects/time_entries.rb +2 -2
  197. data/lib/xero-ruby/models/projects/time_entry.rb +2 -2
  198. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +2 -2
  199. data/lib/xero-ruby/version.rb +2 -2
  200. data/xero-ruby-2.2.3.gem +0 -0
  201. data/xero-ruby.gem +0 -0
  202. data/xero-ruby.gemspec +2 -2
  203. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8244488d366fdc9beada136fcf353c2893abaa53e140c232bf60f4e3a68731ce
4
- data.tar.gz: 965edbb90c9d92035ba04556bc65a3e9c9f84e30882fa88eb7db19a14c6be07e
3
+ metadata.gz: b6ae2e8772203dceda94efdeb03ef38bbab00e54f53aa7e68204b87a03480ee8
4
+ data.tar.gz: 519604b3420b92549fe982cc743f0754c1e95ca47e486e726da2c76d58d5d230
5
5
  SHA512:
6
- metadata.gz: dc77b22a01e2ee32e04b8b3f2ab7616b6a1d036e12f2288d6cac57cc369d82f6e17af119b91dd17d1475d1cb3bcd56100dfc216e24b7a9a33cb7b7716be88b0e
7
- data.tar.gz: f4aed1a1eb7aba97adc6e579c4b165a3cc4d388b8e2bdea7e9a175ae5b91c0705510b2ab4329e6388f660d16f16fa15644ea2b2cdcd8d4e504c4bf310ccbf908
6
+ metadata.gz: f618c256091aabab5396b445a7d0a8330eb54e02c6bf87e3ba6efc87542eaf0dff40e4071014f0412200012dc2887ee813dc8de2e27bfe19763b2f282da6500c
7
+ data.tar.gz: 4d18adaf3139ae834d9997a8150d6942d4047c2ea2b6967eb0d21ffba0af74db7aeb61e3e2809f71c9be7cd0f459c732cc68c2f5c36bd3cf25b734b57df4cbdc
data/README.md CHANGED
@@ -219,23 +219,35 @@ All monetary and fields and a couple quantity fields utilize BigDecimal
219
219
  ```
220
220
 
221
221
  ## Querying & Filtering
222
- Examples for the `opts` (_options_) parameters most endpoints support.
222
+ Examples for the `opts` (_options_) parameters most endpoints support. This is an area of focus and improvement. If you have a complex filering/sorting/where usage that is not supported please [open an issue](https://github.com/XeroAPI/xero-ruby/issues).
223
223
  ```ruby
224
224
  # Invoices
225
- opts = {
226
- statuses: [XeroRuby::Accounting::Invoice::PAID],
227
- where: { amount_due: '=0' },
228
- if_modified_since: (DateTime.now - 1.hour).to_s
225
+ opts = {
226
+ page: 1,
227
+ where: {
228
+ type: ['=', XeroRuby::Accounting::Invoice::ACCREC],
229
+ fully_paid_on_date: (DateTime.now - 6.month)..DateTime.now,
230
+ amount_due: ['>=', 0],
231
+ reference: ['=', "Website Design"],
232
+ invoice_number: ['=', "INV-0001"],
233
+ contact_id: ['=', 'contact-uuid-xxxx-xxx-xxxxxxx'],
234
+ contact_number: ['=', "the-contact-number"],
235
+ # date: (DateTime.now - 2.year)..DateTime.now
236
+ # ▲ you can pass a range ▼ or a date & operator
237
+ date: ['>=', DateTime.now - 2.year],
238
+ status: ['=', XeroRuby::Accounting::Invoice::PAID]
239
+ }
229
240
  }
230
241
  xero_client.accounting_api.get_invoices(tenant_id, opts).invoices
231
242
 
232
243
  # Contacts
233
244
  opts = {
234
245
  if_modified_since: (DateTime.now - 1.weeks).to_s,
246
+ # ▼ ordering by strings needs PascalCase convention
235
247
  order: 'UpdatedDateUtc DESC',
236
248
  where: {
237
- is_customer: '==true',
238
- is_supplier: '==true',
249
+ is_customer: ['==', true],
250
+ is_supplier: ['==', true]
239
251
  }
240
252
  }
241
253
  xero_client.accounting_api.get_contacts(tenant_id, opts).contacts
@@ -243,7 +255,7 @@ xero_client.accounting_api.get_contacts(tenant_id, opts).contacts
243
255
  # Bank Transactions
244
256
  opts = {
245
257
  if_modified_since: (DateTime.now - 1.year).to_s,
246
- where: { type: %{=="#{XeroRuby::Accounting::BankTransaction::SPEND}"}},
258
+ where: { type: ['==', XeroRuby::Accounting::BankTransaction::SPEND] },
247
259
  order: 'UpdatedDateUtc DESC',
248
260
  page: 2,
249
261
  unitdp: 4 # (Unit Decimal Places)
@@ -252,8 +264,9 @@ xero_client.accounting_api.get_bank_transactions(tenant_id, opts).bank_transacti
252
264
 
253
265
  # Bank Transfers
254
266
  opts = {
267
+ if_modified_since: (DateTime.now - 1.month).to_s,
255
268
  where: {
256
- amount: "> 999.99"
269
+ amount: [">=" , 999.99]
257
270
  },
258
271
  order: 'Amount ASC'
259
272
  }
@@ -1,4 +1,4 @@
1
- Developing gem locally
1
+ # Developing gem locally
2
2
 
3
3
  > xero-ruby
4
4
  ```bash
@@ -13,17 +13,32 @@ gem 'xero-ruby', path: '/Users/chris.knight/code/sdks/xero-ruby/'
13
13
  bundle install
14
14
  ```
15
15
 
16
- Deploying to Rubygems
16
+ # Deploying to Rubygems
17
17
 
18
18
  ```bash
19
19
  gem build
20
- gem push xero-ruby-<vsn>.gem
20
+ gem push xero-ruby-<vsn>.gem
21
21
  ```
22
22
 
23
+ # manual updates
24
+ currency_code.rb
25
+ ```ruby
26
+ TRY = "TRY".freeze
27
+ # ...
28
+ EMPTY = "".freeze
29
+ ...
30
+ BYR = "BYR".freeze
31
+ LTL = "LTL".freeze
32
+ ```
23
33
 
24
- !manual updates!
25
- organisation.rb
34
+ account.rb
35
+ ```ruby
36
+ # duplicate definitions generated: https://github.com/XeroAPI/xero-ruby/issues/53#issuecomment-668893305
37
+ # EMPTY = "".freeze
26
38
  ```
39
+
40
+ organisation.rb
41
+ ```ruby
27
42
  # duplicate definitions generated: https://github.com/XeroAPI/xero-ruby/issues/53#issuecomment-668893305
28
43
  # NONE = "NONE".freeze
29
44
 
@@ -40,4 +55,8 @@ organisation.rb
40
55
  # SOLE_TRADER = "SOLE_TRADER".freeze
41
56
  # SUPERANNUATION_FUND = "SUPERANNUATION_FUND".freeze
42
57
  # TRUST = "TRUST".freeze
43
- ```
58
+ ```
59
+
60
+ # Debugging in mustache templates + open api generator
61
+ {{{this}}}
62
+ {{{.}}}
@@ -47,7 +47,7 @@ instance = XeroRuby::Accounting::Account.new(code: 4400,
47
47
  reporting_code: null,
48
48
  reporting_code_name: null,
49
49
  has_attachments: false,
50
- updated_date_utc: null,
50
+ updated_date_utc: /Date(1573755038314)/,
51
51
  add_to_watchlist: null,
52
52
  validation_errors: null)
53
53
  ```
@@ -10685,7 +10685,9 @@ opts = {
10685
10685
 
10686
10686
  page: 1, # Integer | e.g. page=1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote
10687
10687
 
10688
- order: 'ASC' # String | Order by an any element
10688
+ order: 'ASC', # String | Order by an any element
10689
+
10690
+ quote_number: 'quote_number_example' # String | Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)
10689
10691
  }
10690
10692
 
10691
10693
  begin
@@ -10712,6 +10714,7 @@ Name | Type | Description | Notes
10712
10714
  **status** | **String**| Filter for quotes of a particular Status | [optional]
10713
10715
  **page** | **Integer**| e.g. page&#x3D;1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote | [optional]
10714
10716
  **order** | **String**| Order by an any element | [optional]
10717
+ **quote_number** | **String**| Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber&#x3D;QU-0001) | [optional]
10715
10718
 
10716
10719
  ### Return type
10717
10720
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **outstanding** | **Float** | | [optional]
8
- **overdue** | **Float** | | [optional]
7
+ **outstanding** | **BigDecimal** | | [optional]
8
+ **overdue** | **BigDecimal** | | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -4,8 +4,8 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **outstanding** | **Float** | | [optional]
8
- **overdue** | **Float** | | [optional]
7
+ **outstanding** | **BigDecimal** | | [optional]
8
+ **overdue** | **BigDecimal** | | [optional]
9
9
 
10
10
  ## Code Sample
11
11
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **overpayment** | [**Overpayment**](Overpayment.md) | | [optional]
9
9
  **prepayment** | [**Prepayment**](Prepayment.md) | | [optional]
10
10
  **credit_note** | [**CreditNote**](CreditNote.md) | | [optional]
11
- **amount** | **Float** | the amount being applied to the invoice |
11
+ **amount** | **BigDecimal** | the amount being applied to the invoice |
12
12
  **date** | **Date** | the date the allocation is applied YYYY-MM-DD. |
13
13
  **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
14
14
  **validation_errors** | [**Array&lt;ValidationError&gt;**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
@@ -5,20 +5,20 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **type** | **String** | See Bank Transaction Types |
8
- **contact** | [**Contact**](Contact.md) | |
8
+ **contact** | [**Contact**](Contact.md) | | [optional]
9
9
  **line_items** | [**Array&lt;LineItem&gt;**](LineItem.md) | See LineItems |
10
10
  **bank_account** | [**Account**](Account.md) | |
11
11
  **is_reconciled** | **Boolean** | Boolean to show if transaction is reconciled | [optional]
12
12
  **date** | **Date** | Date of transaction – YYYY-MM-DD | [optional]
13
13
  **reference** | **String** | Reference for the transaction. Only supported for SPEND and RECEIVE transactions. | [optional]
14
14
  **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
15
- **currency_rate** | **Float** | Exchange rate to base currency when money is spent or received. e.g.0.7500 Only used for bank transactions in non base currency. If this isn’t specified for non base currency accounts then either the user-defined rate (preference) or the XE.com day rate will be used. Setting currency is only supported on overpayments. | [optional]
15
+ **currency_rate** | **BigDecimal** | Exchange rate to base currency when money is spent or received. e.g.0.7500 Only used for bank transactions in non base currency. If this isn’t specified for non base currency accounts then either the user-defined rate (preference) or the XE.com day rate will be used. Setting currency is only supported on overpayments. | [optional]
16
16
  **url** | **String** | URL link to a source document – shown as “Go to App Name” | [optional]
17
17
  **status** | **String** | See Bank Transaction Status Codes | [optional]
18
18
  **line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
19
- **sub_total** | **Float** | Total of bank transaction excluding taxes | [optional]
20
- **total_tax** | **Float** | Total tax on bank transaction | [optional]
21
- **total** | **Float** | Total of bank transaction tax inclusive | [optional]
19
+ **sub_total** | **BigDecimal** | Total of bank transaction excluding taxes | [optional]
20
+ **total_tax** | **BigDecimal** | Total tax on bank transaction | [optional]
21
+ **total** | **BigDecimal** | Total of bank transaction tax inclusive | [optional]
22
22
  **bank_transaction_id** | **String** | Xero generated unique identifier for bank transaction | [optional]
23
23
  **prepayment_id** | **String** | Xero generated unique identifier for a Prepayment. This will be returned on BankTransactions with a Type of SPEND-PREPAYMENT or RECEIVE-PREPAYMENT | [optional]
24
24
  **overpayment_id** | **String** | Xero generated unique identifier for an Overpayment. This will be returned on BankTransactions with a Type of SPEND-OVERPAYMENT or RECEIVE-OVERPAYMENT | [optional]
@@ -50,7 +50,7 @@ instance = XeroRuby::Accounting::BankTransaction.new(type: null,
50
50
  bank_transaction_id: 00000000-0000-0000-0000-000000000000,
51
51
  prepayment_id: 00000000-0000-0000-0000-000000000000,
52
52
  overpayment_id: 00000000-0000-0000-0000-000000000000,
53
- updated_date_utc: null,
53
+ updated_date_utc: /Date(1573755038314)/,
54
54
  has_attachments: false,
55
55
  status_attribute_string: null,
56
56
  validation_errors: null)
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **from_bank_account** | [**Account**](Account.md) | |
8
8
  **to_bank_account** | [**Account**](Account.md) | |
9
- **amount** | **Float** | amount of the transaction |
9
+ **amount** | **BigDecimal** | amount of the transaction |
10
10
  **date** | **Date** | The date of the Transfer YYYY-MM-DD | [optional]
11
11
  **bank_transfer_id** | **String** | The identifier of the Bank Transfer | [optional]
12
- **currency_rate** | **Float** | The currency rate | [optional]
12
+ **currency_rate** | **BigDecimal** | The currency rate | [optional]
13
13
  **from_bank_transaction_id** | **String** | The Bank Transaction ID for the source account | [optional]
14
14
  **to_bank_transaction_id** | **String** | The Bank Transaction ID for the destination account | [optional]
15
15
  **has_attachments** | **Boolean** | Boolean to indicate if a Bank Transfer has an attachment | [optional] [default to false]
@@ -30,7 +30,7 @@ instance = XeroRuby::Accounting::BankTransfer.new(from_bank_account: null,
30
30
  from_bank_transaction_id: null,
31
31
  to_bank_transaction_id: null,
32
32
  has_attachments: false,
33
- created_date_utc: null,
33
+ created_date_utc: /Date(1573755038314)/,
34
34
  validation_errors: null)
35
35
  ```
36
36
 
@@ -13,7 +13,7 @@ Name | Type | Description | Notes
13
13
  **batch_payment_id** | **String** | The Xero generated unique identifier for the bank transaction (read-only) | [optional]
14
14
  **date_string** | **String** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional]
15
15
  **date** | **Date** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional]
16
- **amount** | **Float** | The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00 | [optional]
16
+ **amount** | **BigDecimal** | The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00 | [optional]
17
17
  **payments** | [**Array&lt;Payment&gt;**](Payment.md) | An array of payments | [optional]
18
18
  **type** | **String** | PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) | [optional]
19
19
  **status** | **String** | AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API. | [optional]
@@ -40,7 +40,7 @@ instance = XeroRuby::Accounting::BatchPayment.new(account: null,
40
40
  type: null,
41
41
  status: null,
42
42
  total_amount: null,
43
- updated_date_utc: null,
43
+ updated_date_utc: /Date(1573755038314)/,
44
44
  is_reconciled: null)
45
45
  ```
46
46
 
@@ -21,7 +21,7 @@ instance = XeroRuby::Accounting::BrandingTheme.new(branding_theme_id: null,
21
21
  logo_url: null,
22
22
  type: null,
23
23
  sort_order: null,
24
- created_date_utc: null)
24
+ created_date_utc: /Date(1573755038314)/)
25
25
  ```
26
26
 
27
27
 
@@ -36,7 +36,7 @@ Name | Type | Description | Notes
36
36
  **website** | **String** | Website address for contact (read only) | [optional]
37
37
  **branding_theme** | [**BrandingTheme**](BrandingTheme.md) | | [optional]
38
38
  **batch_payments** | [**BatchPaymentDetails**](BatchPaymentDetails.md) | | [optional]
39
- **discount** | **Float** | The default discount rate for the contact (read only) | [optional]
39
+ **discount** | **BigDecimal** | The default discount rate for the contact (read only) | [optional]
40
40
  **balances** | [**Balances**](Balances.md) | | [optional]
41
41
  **attachments** | [**Array&lt;Attachment&gt;**](Attachment.md) | Displays array of attachments from the API | [optional]
42
42
  **has_attachments** | **Boolean** | A boolean to indicate if a contact has an attachment | [optional] [default to false]
@@ -76,7 +76,7 @@ instance = XeroRuby::Accounting::Contact.new(contact_id: null,
76
76
  tracking_category_name: null,
77
77
  tracking_category_option: null,
78
78
  payment_terms: null,
79
- updated_date_utc: null,
79
+ updated_date_utc: /Date(1573755038314)/,
80
80
  contact_groups: null,
81
81
  website: null,
82
82
  branding_theme: null,
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
10
10
  **status** | **String** | See Credit Note Status Codes | [optional]
11
11
  **line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
12
12
  **line_items** | [**Array&lt;LineItem&gt;**](LineItem.md) | See Invoice Line Items | [optional]
13
- **sub_total** | **Float** | The subtotal of the credit note excluding taxes | [optional]
14
- **total_tax** | **Float** | The total tax on the credit note | [optional]
15
- **total** | **Float** | The total of the Credit Note(subtotal + total tax) | [optional]
13
+ **sub_total** | **BigDecimal** | The subtotal of the credit note excluding taxes | [optional]
14
+ **total_tax** | **BigDecimal** | The total tax on the credit note | [optional]
15
+ **total** | **BigDecimal** | The total of the Credit Note(subtotal + total tax) | [optional]
16
16
  **updated_date_utc** | **DateTime** | UTC timestamp of last update to the credit note | [optional]
17
17
  **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
18
18
  **fully_paid_on_date** | **Date** | Date when credit note was fully paid(UTC format) | [optional]
@@ -20,8 +20,8 @@ Name | Type | Description | Notes
20
20
  **credit_note_number** | **String** | ACCRECCREDIT – Unique alpha numeric code identifying credit note (when missing will auto-generate from your Organisation Invoice Settings) | [optional]
21
21
  **reference** | **String** | ACCRECCREDIT only – additional reference number | [optional]
22
22
  **sent_to_contact** | **Boolean** | boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only) | [optional]
23
- **currency_rate** | **Float** | The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used | [optional]
24
- **remaining_credit** | **Float** | The remaining credit balance on the Credit Note | [optional]
23
+ **currency_rate** | **BigDecimal** | The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used | [optional]
24
+ **remaining_credit** | **BigDecimal** | The remaining credit balance on the Credit Note | [optional]
25
25
  **allocations** | [**Array&lt;Allocation&gt;**](Allocation.md) | See Allocations | [optional]
26
26
  **applied_amount** | **Float** | The amount of applied to an invoice | [optional]
27
27
  **payments** | [**Array&lt;Payment&gt;**](Payment.md) | See Payments | [optional]
@@ -45,7 +45,7 @@ instance = XeroRuby::Accounting::CreditNote.new(type: null,
45
45
  sub_total: null,
46
46
  total_tax: null,
47
47
  total: null,
48
- updated_date_utc: null,
48
+ updated_date_utc: /Date(1573755038314)/,
49
49
  currency_code: null,
50
50
  fully_paid_on_date: null,
51
51
  credit_note_id: null,
@@ -23,7 +23,7 @@ instance = XeroRuby::Accounting::Employee.new(employee_id: null,
23
23
  first_name: null,
24
24
  last_name: null,
25
25
  external_link: null,
26
- updated_date_utc: null,
26
+ updated_date_utc: /Date(1573755038314)/,
27
27
  status_attribute_string: ERROR,
28
28
  validation_errors: null)
29
29
  ```
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
10
10
  **user** | [**User**](User.md) | | [optional]
11
11
  **receipts** | [**Array&lt;Receipt&gt;**](Receipt.md) | | [optional]
12
12
  **updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
13
- **total** | **Float** | The total of an expense claim being paid | [optional]
14
- **amount_due** | **Float** | The amount due to be paid for an expense claim | [optional]
15
- **amount_paid** | **Float** | The amount still to pay for an expense claim | [optional]
13
+ **total** | **BigDecimal** | The total of an expense claim being paid | [optional]
14
+ **amount_due** | **BigDecimal** | The amount due to be paid for an expense claim | [optional]
15
+ **amount_paid** | **BigDecimal** | The amount still to pay for an expense claim | [optional]
16
16
  **payment_due_date** | **Date** | The date when the expense claim is due to be paid YYYY-MM-DD | [optional]
17
17
  **reporting_date** | **Date** | The date the expense claim will be reported in Xero YYYY-MM-DD | [optional]
18
18
  **receipt_id** | **String** | The Xero identifier for the Receipt e.g. e59a2c7f-1306-4078-a0f3-73537afcbba9 | [optional]
@@ -27,7 +27,7 @@ instance = XeroRuby::Accounting::ExpenseClaim.new(expense_claim_id: null,
27
27
  payments: null,
28
28
  user: null,
29
29
  receipts: null,
30
- updated_date_utc: null,
30
+ updated_date_utc: /Date(1573755038314)/,
31
31
  total: null,
32
32
  amount_due: null,
33
33
  amount_paid: null,
@@ -17,7 +17,7 @@ require 'XeroRuby::Accounting'
17
17
  instance = XeroRuby::Accounting::HistoryRecord.new(details: null,
18
18
  changes: null,
19
19
  user: null,
20
- date_utc: null)
20
+ date_utc: /Date(1573755038314)/)
21
21
  ```
22
22
 
23
23
 
@@ -15,26 +15,27 @@ Name | Type | Description | Notes
15
15
  **branding_theme_id** | **String** | See BrandingThemes | [optional]
16
16
  **url** | **String** | URL link to a source document – shown as “Go to [appName]” in the Xero app | [optional]
17
17
  **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
18
- **currency_rate** | **Float** | The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used. (max length &#x3D; [18].[6]) | [optional]
18
+ **currency_rate** | **BigDecimal** | The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used. (max length &#x3D; [18].[6]) | [optional]
19
19
  **status** | **String** | See Invoice Status Codes | [optional]
20
20
  **sent_to_contact** | **Boolean** | Boolean to set whether the invoice in the Xero app should be marked as “sent”. This can be set only on invoices that have been approved | [optional]
21
21
  **expected_payment_date** | **Date** | Shown on sales invoices (Accounts Receivable) when this has been set | [optional]
22
22
  **planned_payment_date** | **Date** | Shown on bills (Accounts Payable) when this has been set | [optional]
23
- **cis_deduction** | **Float** | CIS deduction for UK contractors | [optional]
24
- **sub_total** | **Float** | Total of invoice excluding taxes | [optional]
25
- **total_tax** | **Float** | Total tax on invoice | [optional]
26
- **total** | **Float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional]
27
- **total_discount** | **Float** | Total of discounts applied on the invoice line items | [optional]
23
+ **cis_deduction** | **BigDecimal** | CIS deduction for UK contractors | [optional]
24
+ **sub_total** | **BigDecimal** | Total of invoice excluding taxes | [optional]
25
+ **total_tax** | **BigDecimal** | Total tax on invoice | [optional]
26
+ **total** | **BigDecimal** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional]
27
+ **total_discount** | **BigDecimal** | Total of discounts applied on the invoice line items | [optional]
28
28
  **invoice_id** | **String** | Xero generated unique identifier for invoice | [optional]
29
+ **repeating_invoice_id** | **String** | Xero generated unique identifier for repeating invoices | [optional]
29
30
  **has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] [default to false]
30
31
  **is_discounted** | **Boolean** | boolean to indicate if an invoice has a discount | [optional]
31
32
  **payments** | [**Array&lt;Payment&gt;**](Payment.md) | See Payments | [optional]
32
33
  **prepayments** | [**Array&lt;Prepayment&gt;**](Prepayment.md) | See Prepayments | [optional]
33
34
  **overpayments** | [**Array&lt;Overpayment&gt;**](Overpayment.md) | See Overpayments | [optional]
34
- **amount_due** | **Float** | Amount remaining to be paid on invoice | [optional]
35
- **amount_paid** | **Float** | Sum of payments received for invoice | [optional]
35
+ **amount_due** | **BigDecimal** | Amount remaining to be paid on invoice | [optional]
36
+ **amount_paid** | **BigDecimal** | Sum of payments received for invoice | [optional]
36
37
  **fully_paid_on_date** | **Date** | The date the invoice was fully paid. Only returned on fully paid invoices | [optional]
37
- **amount_credited** | **Float** | Sum of all credit notes, over-payments and pre-payments applied to invoice | [optional]
38
+ **amount_credited** | **BigDecimal** | Sum of all credit notes, over-payments and pre-payments applied to invoice | [optional]
38
39
  **updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
39
40
  **credit_notes** | [**Array&lt;CreditNote&gt;**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional]
40
41
  **attachments** | [**Array&lt;Attachment&gt;**](Attachment.md) | Displays array of attachments from the API | [optional]
@@ -70,6 +71,7 @@ instance = XeroRuby::Accounting::Invoice.new(type: null,
70
71
  total: null,
71
72
  total_discount: null,
72
73
  invoice_id: null,
74
+ repeating_invoice_id: null,
73
75
  has_attachments: false,
74
76
  is_discounted: null,
75
77
  payments: null,
@@ -79,7 +81,7 @@ instance = XeroRuby::Accounting::Invoice.new(type: null,
79
81
  amount_paid: null,
80
82
  fully_paid_on_date: null,
81
83
  amount_credited: null,
82
- updated_date_utc: null,
84
+ updated_date_utc: /Date(1573755038314)/,
83
85
  credit_notes: null,
84
86
  attachments: null,
85
87
  has_errors: false,
@@ -14,8 +14,8 @@ Name | Type | Description | Notes
14
14
  **purchase_details** | [**Purchase**](Purchase.md) | | [optional]
15
15
  **sales_details** | [**Purchase**](Purchase.md) | | [optional]
16
16
  **is_tracked_as_inventory** | **Boolean** | True for items that are tracked as inventory. An item will be tracked as inventory if the InventoryAssetAccountCode and COGSAccountCode are set. | [optional]
17
- **total_cost_pool** | **Float** | The value of the item on hand. Calculated using average cost accounting. | [optional]
18
- **quantity_on_hand** | **Float** | The quantity of the item on hand | [optional]
17
+ **total_cost_pool** | **BigDecimal** | The value of the item on hand. Calculated using average cost accounting. | [optional]
18
+ **quantity_on_hand** | **BigDecimal** | The quantity of the item on hand | [optional]
19
19
  **updated_date_utc** | **DateTime** | Last modified date in UTC format | [optional]
20
20
  **item_id** | **String** | The Xero identifier for an Item | [optional]
21
21
  **status_attribute_string** | **String** | Status of object | [optional]
@@ -38,7 +38,7 @@ instance = XeroRuby::Accounting::Item.new(code: null,
38
38
  is_tracked_as_inventory: null,
39
39
  total_cost_pool: null,
40
40
  quantity_on_hand: null,
41
- updated_date_utc: null,
41
+ updated_date_utc: /Date(1573755038314)/,
42
42
  item_id: null,
43
43
  status_attribute_string: null,
44
44
  validation_errors: null)
@@ -21,7 +21,7 @@ require 'XeroRuby::Accounting'
21
21
  instance = XeroRuby::Accounting::Journal.new(journal_id: null,
22
22
  journal_date: null,
23
23
  journal_number: null,
24
- created_date_utc: null,
24
+ created_date_utc: /Date(1573755038314)/,
25
25
  reference: null,
26
26
  source_id: null,
27
27
  source_type: null,