xero-ruby 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. checksums.yaml +4 -4
  2. data/build_notes.md +14 -5
  3. data/docs/accounting/Account.md +1 -1
  4. data/docs/accounting/AccountsPayable.md +2 -2
  5. data/docs/accounting/AccountsReceivable.md +2 -2
  6. data/docs/accounting/Allocation.md +1 -1
  7. data/docs/accounting/BankTransaction.md +6 -6
  8. data/docs/accounting/BankTransfer.md +3 -3
  9. data/docs/accounting/BatchPayment.md +2 -2
  10. data/docs/accounting/BrandingTheme.md +1 -1
  11. data/docs/accounting/Contact.md +2 -2
  12. data/docs/accounting/CreditNote.md +6 -6
  13. data/docs/accounting/Employee.md +1 -1
  14. data/docs/accounting/ExpenseClaim.md +4 -4
  15. data/docs/accounting/HistoryRecord.md +1 -1
  16. data/docs/accounting/Invoice.md +10 -10
  17. data/docs/accounting/Item.md +3 -3
  18. data/docs/accounting/Journal.md +1 -1
  19. data/docs/accounting/JournalLine.md +3 -3
  20. data/docs/accounting/LineItem.md +6 -6
  21. data/docs/accounting/LinkedTransaction.md +1 -1
  22. data/docs/accounting/ManualJournal.md +1 -1
  23. data/docs/accounting/ManualJournalLine.md +2 -2
  24. data/docs/accounting/Organisation.md +1 -1
  25. data/docs/accounting/Overpayment.md +6 -6
  26. data/docs/accounting/Payment.md +3 -3
  27. data/docs/accounting/Prepayment.md +6 -6
  28. data/docs/accounting/Purchase.md +1 -1
  29. data/docs/accounting/PurchaseOrder.md +6 -6
  30. data/docs/accounting/Quote.md +5 -5
  31. data/docs/accounting/Receipt.md +4 -4
  32. data/docs/accounting/RepeatingInvoice.md +3 -3
  33. data/docs/accounting/Report.md +1 -1
  34. data/docs/accounting/ReportWithRow.md +1 -1
  35. data/docs/accounting/TaxComponent.md +1 -1
  36. data/docs/accounting/TaxRate.md +2 -2
  37. data/docs/accounting/TenNinetyNineContact.md +13 -13
  38. data/docs/accounting/User.md +1 -1
  39. data/docs/assets/Asset.md +3 -3
  40. data/docs/assets/BookDepreciationDetail.md +6 -6
  41. data/docs/assets/BookDepreciationSetting.md +1 -1
  42. data/docs/projects/Amount.md +1 -1
  43. data/docs/projects/ProjectCreateOrUpdate.md +1 -1
  44. data/lib/xero-ruby.rb +1 -1
  45. data/lib/xero-ruby/api/accounting_api.rb +1 -1
  46. data/lib/xero-ruby/api/asset_api.rb +1 -1
  47. data/lib/xero-ruby/api/project_api.rb +1 -1
  48. data/lib/xero-ruby/api_client.rb +1 -1
  49. data/lib/xero-ruby/api_error.rb +1 -1
  50. data/lib/xero-ruby/configuration.rb +2 -2
  51. data/lib/xero-ruby/models/accounting/account.rb +1 -1
  52. data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
  53. data/lib/xero-ruby/models/accounting/accounts.rb +1 -1
  54. data/lib/xero-ruby/models/accounting/accounts_payable.rb +1 -1
  55. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +1 -1
  56. data/lib/xero-ruby/models/accounting/address.rb +1 -1
  57. data/lib/xero-ruby/models/accounting/allocation.rb +1 -1
  58. data/lib/xero-ruby/models/accounting/allocations.rb +1 -1
  59. data/lib/xero-ruby/models/accounting/attachment.rb +1 -1
  60. data/lib/xero-ruby/models/accounting/attachments.rb +1 -1
  61. data/lib/xero-ruby/models/accounting/balances.rb +1 -1
  62. data/lib/xero-ruby/models/accounting/bank_transaction.rb +1 -6
  63. data/lib/xero-ruby/models/accounting/bank_transactions.rb +1 -1
  64. data/lib/xero-ruby/models/accounting/bank_transfer.rb +1 -1
  65. data/lib/xero-ruby/models/accounting/bank_transfers.rb +1 -1
  66. data/lib/xero-ruby/models/accounting/batch_payment.rb +1 -1
  67. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +1 -1
  68. data/lib/xero-ruby/models/accounting/batch_payments.rb +1 -1
  69. data/lib/xero-ruby/models/accounting/bill.rb +1 -1
  70. data/lib/xero-ruby/models/accounting/branding_theme.rb +1 -1
  71. data/lib/xero-ruby/models/accounting/branding_themes.rb +1 -1
  72. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +1 -1
  73. data/lib/xero-ruby/models/accounting/cis_setting.rb +1 -1
  74. data/lib/xero-ruby/models/accounting/cis_settings.rb +1 -1
  75. data/lib/xero-ruby/models/accounting/contact.rb +1 -1
  76. data/lib/xero-ruby/models/accounting/contact_group.rb +1 -1
  77. data/lib/xero-ruby/models/accounting/contact_groups.rb +1 -1
  78. data/lib/xero-ruby/models/accounting/contact_person.rb +1 -1
  79. data/lib/xero-ruby/models/accounting/contacts.rb +1 -1
  80. data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
  81. data/lib/xero-ruby/models/accounting/credit_note.rb +1 -1
  82. data/lib/xero-ruby/models/accounting/credit_notes.rb +1 -1
  83. data/lib/xero-ruby/models/accounting/currencies.rb +1 -1
  84. data/lib/xero-ruby/models/accounting/currency.rb +1 -1
  85. data/lib/xero-ruby/models/accounting/currency_code.rb +1 -1
  86. data/lib/xero-ruby/models/accounting/element.rb +1 -1
  87. data/lib/xero-ruby/models/accounting/employee.rb +4 -3
  88. data/lib/xero-ruby/models/accounting/employees.rb +1 -1
  89. data/lib/xero-ruby/models/accounting/error.rb +1 -1
  90. data/lib/xero-ruby/models/accounting/expense_claim.rb +1 -1
  91. data/lib/xero-ruby/models/accounting/expense_claims.rb +1 -1
  92. data/lib/xero-ruby/models/accounting/external_link.rb +1 -1
  93. data/lib/xero-ruby/models/accounting/history_record.rb +1 -1
  94. data/lib/xero-ruby/models/accounting/history_records.rb +1 -1
  95. data/lib/xero-ruby/models/accounting/invoice.rb +1 -1
  96. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +1 -1
  97. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +1 -1
  98. data/lib/xero-ruby/models/accounting/invoices.rb +1 -1
  99. data/lib/xero-ruby/models/accounting/item.rb +1 -1
  100. data/lib/xero-ruby/models/accounting/items.rb +1 -1
  101. data/lib/xero-ruby/models/accounting/journal.rb +1 -1
  102. data/lib/xero-ruby/models/accounting/journal_line.rb +1 -1
  103. data/lib/xero-ruby/models/accounting/journals.rb +1 -1
  104. data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
  105. data/lib/xero-ruby/models/accounting/line_item.rb +1 -1
  106. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +1 -1
  107. data/lib/xero-ruby/models/accounting/linked_transaction.rb +1 -1
  108. data/lib/xero-ruby/models/accounting/linked_transactions.rb +1 -1
  109. data/lib/xero-ruby/models/accounting/manual_journal.rb +1 -1
  110. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +1 -1
  111. data/lib/xero-ruby/models/accounting/manual_journals.rb +1 -1
  112. data/lib/xero-ruby/models/accounting/online_invoice.rb +1 -1
  113. data/lib/xero-ruby/models/accounting/online_invoices.rb +1 -1
  114. data/lib/xero-ruby/models/accounting/organisation.rb +1 -1
  115. data/lib/xero-ruby/models/accounting/organisations.rb +1 -1
  116. data/lib/xero-ruby/models/accounting/overpayment.rb +1 -1
  117. data/lib/xero-ruby/models/accounting/overpayments.rb +1 -1
  118. data/lib/xero-ruby/models/accounting/payment.rb +1 -1
  119. data/lib/xero-ruby/models/accounting/payment_delete.rb +1 -1
  120. data/lib/xero-ruby/models/accounting/payment_service.rb +1 -1
  121. data/lib/xero-ruby/models/accounting/payment_services.rb +1 -1
  122. data/lib/xero-ruby/models/accounting/payment_term.rb +1 -1
  123. data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
  124. data/lib/xero-ruby/models/accounting/payments.rb +1 -1
  125. data/lib/xero-ruby/models/accounting/phone.rb +1 -1
  126. data/lib/xero-ruby/models/accounting/prepayment.rb +1 -1
  127. data/lib/xero-ruby/models/accounting/prepayments.rb +1 -1
  128. data/lib/xero-ruby/models/accounting/purchase.rb +1 -1
  129. data/lib/xero-ruby/models/accounting/purchase_order.rb +1 -1
  130. data/lib/xero-ruby/models/accounting/purchase_orders.rb +1 -1
  131. data/lib/xero-ruby/models/accounting/quote.rb +1 -1
  132. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
  133. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +1 -1
  134. data/lib/xero-ruby/models/accounting/quotes.rb +1 -1
  135. data/lib/xero-ruby/models/accounting/receipt.rb +1 -1
  136. data/lib/xero-ruby/models/accounting/receipts.rb +1 -1
  137. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +1 -1
  138. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +1 -1
  139. data/lib/xero-ruby/models/accounting/report.rb +1 -1
  140. data/lib/xero-ruby/models/accounting/report_attribute.rb +1 -1
  141. data/lib/xero-ruby/models/accounting/report_cell.rb +1 -1
  142. data/lib/xero-ruby/models/accounting/report_fields.rb +1 -1
  143. data/lib/xero-ruby/models/accounting/report_row.rb +1 -1
  144. data/lib/xero-ruby/models/accounting/report_rows.rb +1 -1
  145. data/lib/xero-ruby/models/accounting/report_with_row.rb +1 -1
  146. data/lib/xero-ruby/models/accounting/report_with_rows.rb +1 -1
  147. data/lib/xero-ruby/models/accounting/reports.rb +1 -1
  148. data/lib/xero-ruby/models/accounting/request_empty.rb +1 -1
  149. data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
  150. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +1 -1
  151. data/lib/xero-ruby/models/accounting/schedule.rb +1 -1
  152. data/lib/xero-ruby/models/accounting/tax_component.rb +1 -1
  153. data/lib/xero-ruby/models/accounting/tax_rate.rb +1 -1
  154. data/lib/xero-ruby/models/accounting/tax_rates.rb +1 -1
  155. data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
  156. data/lib/xero-ruby/models/accounting/ten_ninety_nine_contact.rb +1 -1
  157. data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
  158. data/lib/xero-ruby/models/accounting/tracking_categories.rb +1 -1
  159. data/lib/xero-ruby/models/accounting/tracking_category.rb +1 -1
  160. data/lib/xero-ruby/models/accounting/tracking_option.rb +1 -1
  161. data/lib/xero-ruby/models/accounting/tracking_options.rb +1 -1
  162. data/lib/xero-ruby/models/accounting/user.rb +1 -1
  163. data/lib/xero-ruby/models/accounting/users.rb +1 -1
  164. data/lib/xero-ruby/models/accounting/validation_error.rb +1 -1
  165. data/lib/xero-ruby/models/assets/asset.rb +1 -1
  166. data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
  167. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
  168. data/lib/xero-ruby/models/assets/asset_type.rb +1 -1
  169. data/lib/xero-ruby/models/assets/assets.rb +1 -1
  170. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +1 -1
  171. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +1 -1
  172. data/lib/xero-ruby/models/assets/error.rb +1 -1
  173. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +1 -1
  174. data/lib/xero-ruby/models/assets/pagination.rb +1 -1
  175. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +1 -1
  176. data/lib/xero-ruby/models/assets/setting.rb +1 -1
  177. data/lib/xero-ruby/models/projects/amount.rb +1 -1
  178. data/lib/xero-ruby/models/projects/charge_type.rb +1 -1
  179. data/lib/xero-ruby/models/projects/currency_code.rb +1 -1
  180. data/lib/xero-ruby/models/projects/error.rb +1 -1
  181. data/lib/xero-ruby/models/projects/pagination.rb +1 -1
  182. data/lib/xero-ruby/models/projects/project.rb +1 -1
  183. data/lib/xero-ruby/models/projects/project_create_or_update.rb +1 -1
  184. data/lib/xero-ruby/models/projects/project_patch.rb +1 -1
  185. data/lib/xero-ruby/models/projects/project_status.rb +1 -1
  186. data/lib/xero-ruby/models/projects/project_user.rb +1 -1
  187. data/lib/xero-ruby/models/projects/project_users.rb +1 -1
  188. data/lib/xero-ruby/models/projects/projects.rb +1 -1
  189. data/lib/xero-ruby/models/projects/task.rb +1 -1
  190. data/lib/xero-ruby/models/projects/task_create_or_update.rb +1 -1
  191. data/lib/xero-ruby/models/projects/tasks.rb +1 -1
  192. data/lib/xero-ruby/models/projects/time_entries.rb +1 -1
  193. data/lib/xero-ruby/models/projects/time_entry.rb +1 -1
  194. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +1 -1
  195. data/lib/xero-ruby/version.rb +2 -2
  196. data/xero-ruby.gemspec +1 -1
  197. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8244488d366fdc9beada136fcf353c2893abaa53e140c232bf60f4e3a68731ce
4
- data.tar.gz: 965edbb90c9d92035ba04556bc65a3e9c9f84e30882fa88eb7db19a14c6be07e
3
+ metadata.gz: 50e381e3e8975dd61f56fa2607644c0cdcdb5f726e6f87a72d0a7226a68ac366
4
+ data.tar.gz: c93ed7a03a843e4afd2edf231c06b65acfe8d0fe9d0fafeaafd7f4bfbff5c4f9
5
5
  SHA512:
6
- metadata.gz: dc77b22a01e2ee32e04b8b3f2ab7616b6a1d036e12f2288d6cac57cc369d82f6e17af119b91dd17d1475d1cb3bcd56100dfc216e24b7a9a33cb7b7716be88b0e
7
- data.tar.gz: f4aed1a1eb7aba97adc6e579c4b165a3cc4d388b8e2bdea7e9a175ae5b91c0705510b2ab4329e6388f660d16f16fa15644ea2b2cdcd8d4e504c4bf310ccbf908
6
+ metadata.gz: b8293bbec6977ebf1f596e6c79b951b3d8751755fee5fb694e292580640f76d590e5a51b632a151657dc0534ee05bba85b4c37576be1ed91fb1195cf95b568ef
7
+ data.tar.gz: 1066cb551c1431139e3d2efd3a63235c527198e6fe3f07819cad9f77234f7644e1a3387c2af187f0182baa4f1da7205fbb69e8181643275d3087e2b771b903bc
@@ -1,4 +1,4 @@
1
- Developing gem locally
1
+ # Developing gem locally
2
2
 
3
3
  > xero-ruby
4
4
  ```bash
@@ -13,17 +13,22 @@ 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
20
  gem push xero-ruby-<vsn>.gem
21
21
  ```
22
22
 
23
+ # manual updates
24
+ account.rb
25
+ ```ruby
26
+ # duplicate definitions generated: https://github.com/XeroAPI/xero-ruby/issues/53#issuecomment-668893305
27
+ # EMPTY = "".freeze
28
+ ```
23
29
 
24
- !manual updates!
25
30
  organisation.rb
26
- ```
31
+ ```ruby
27
32
  # duplicate definitions generated: https://github.com/XeroAPI/xero-ruby/issues/53#issuecomment-668893305
28
33
  # NONE = "NONE".freeze
29
34
 
@@ -40,4 +45,8 @@ organisation.rb
40
45
  # SOLE_TRADER = "SOLE_TRADER".freeze
41
46
  # SUPERANNUATION_FUND = "SUPERANNUATION_FUND".freeze
42
47
  # TRUST = "TRUST".freeze
43
- ```
48
+ ```
49
+
50
+ # Debugging in mustache templates + open api generator
51
+ {{{this}}}
52
+ {{{.}}}
@@ -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
  ```
@@ -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,26 @@ 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
29
  **has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] [default to false]
30
30
  **is_discounted** | **Boolean** | boolean to indicate if an invoice has a discount | [optional]
31
31
  **payments** | [**Array&lt;Payment&gt;**](Payment.md) | See Payments | [optional]
32
32
  **prepayments** | [**Array&lt;Prepayment&gt;**](Prepayment.md) | See Prepayments | [optional]
33
33
  **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]
34
+ **amount_due** | **BigDecimal** | Amount remaining to be paid on invoice | [optional]
35
+ **amount_paid** | **BigDecimal** | Sum of payments received for invoice | [optional]
36
36
  **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]
37
+ **amount_credited** | **BigDecimal** | Sum of all credit notes, over-payments and pre-payments applied to invoice | [optional]
38
38
  **updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
39
39
  **credit_notes** | [**Array&lt;CreditNote&gt;**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional]
40
40
  **attachments** | [**Array&lt;Attachment&gt;**](Attachment.md) | Displays array of attachments from the API | [optional]
@@ -79,7 +79,7 @@ instance = XeroRuby::Accounting::Invoice.new(type: null,
79
79
  amount_paid: null,
80
80
  fully_paid_on_date: null,
81
81
  amount_credited: null,
82
- updated_date_utc: null,
82
+ updated_date_utc: /Date(1573755038314)/,
83
83
  credit_notes: null,
84
84
  attachments: null,
85
85
  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,
@@ -10,9 +10,9 @@ Name | Type | Description | Notes
10
10
  **account_type** | [**AccountType**](AccountType.md) | | [optional]
11
11
  **account_name** | **String** | See AccountCodes | [optional]
12
12
  **description** | **String** | The description from the source transaction line item. Only returned if populated. | [optional]
13
- **net_amount** | **Float** | Net amount of journal line. This will be a positive value for a debit and negative for a credit | [optional]
14
- **gross_amount** | **Float** | Gross amount of journal line (NetAmount + TaxAmount). | [optional]
15
- **tax_amount** | **Float** | Total tax on a journal line | [optional]
13
+ **net_amount** | **BigDecimal** | Net amount of journal line. This will be a positive value for a debit and negative for a credit | [optional]
14
+ **gross_amount** | **BigDecimal** | Gross amount of journal line (NetAmount + TaxAmount). | [optional]
15
+ **tax_amount** | **BigDecimal** | Total tax on a journal line | [optional]
16
16
  **tax_type** | **String** | The tax type from TaxRates | [optional]
17
17
  **tax_name** | **String** | see TaxRates | [optional]
18
18
  **tracking_categories** | [**Array&lt;TrackingCategory&gt;**](TrackingCategory.md) | Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 &lt;TrackingCategory&gt; elements. | [optional]
@@ -6,16 +6,16 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **line_item_id** | **String** | LineItem unique ID | [optional]
8
8
  **description** | **String** | Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a &lt;Description&gt; element that contains at least 1 character | [optional]
9
- **quantity** | **Float** | LineItem Quantity | [optional]
10
- **unit_amount** | **Float** | LineItem Unit Amount | [optional]
9
+ **quantity** | **BigDecimal** | LineItem Quantity | [optional]
10
+ **unit_amount** | **BigDecimal** | LineItem Unit Amount | [optional]
11
11
  **item_code** | **String** | See Items | [optional]
12
12
  **account_code** | **String** | See Accounts | [optional]
13
13
  **tax_type** | **String** | The tax type from TaxRates | [optional]
14
- **tax_amount** | **Float** | The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated &lt;TaxAmount&gt; is not correct. | [optional]
15
- **line_amount** | **Float** | If you wish to omit either of the &lt;Quantity&gt; or &lt;UnitAmount&gt; you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if a DiscountRate has been used . i.e LineAmount &#x3D; Quantity * Unit Amount * ((100 – DiscountRate)/100) | [optional]
14
+ **tax_amount** | **BigDecimal** | The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated &lt;TaxAmount&gt; is not correct. | [optional]
15
+ **line_amount** | **BigDecimal** | If you wish to omit either of the &lt;Quantity&gt; or &lt;UnitAmount&gt; you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if a DiscountRate has been used . i.e LineAmount &#x3D; Quantity * Unit Amount * ((100 – DiscountRate)/100) | [optional]
16
16
  **tracking** | [**Array&lt;LineItemTracking&gt;**](LineItemTracking.md) | Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 &lt;TrackingCategory&gt; elements. | [optional]
17
- **discount_rate** | **Float** | Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts | [optional]
18
- **discount_amount** | **Float** | Discount amount being applied to a line item. Only supported on ACCREC invoices - ACCPAY invoices and credit notes in Xero do not support discounts. | [optional]
17
+ **discount_rate** | **BigDecimal** | Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts | [optional]
18
+ **discount_amount** | **BigDecimal** | Discount amount being applied to a line item. Only supported on ACCREC invoices - ACCPAY invoices and credit notes in Xero do not support discounts. | [optional]
19
19
  **repeating_invoice_id** | **String** | The Xero identifier for a Repeating Invoice | [optional]
20
20
 
21
21
  ## Code Sample
@@ -29,7 +29,7 @@ instance = XeroRuby::Accounting::LinkedTransaction.new(source_transaction_id: nu
29
29
  linked_transaction_id: null,
30
30
  status: null,
31
31
  type: null,
32
- updated_date_utc: null,
32
+ updated_date_utc: /Date(1573755038314)/,
33
33
  source_transaction_type_code: null,
34
34
  validation_errors: null)
35
35
  ```
@@ -32,7 +32,7 @@ instance = XeroRuby::Accounting::ManualJournal.new(narration: null,
32
32
  url: null,
33
33
  show_on_cash_basis_reports: null,
34
34
  has_attachments: false,
35
- updated_date_utc: null,
35
+ updated_date_utc: /Date(1573755038314)/,
36
36
  manual_journal_id: null,
37
37
  status_attribute_string: ERROR,
38
38
  warnings: null,
@@ -4,13 +4,13 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **line_amount** | **Float** | total for line. Debits are positive, credits are negative value | [optional]
7
+ **line_amount** | **BigDecimal** | total for line. Debits are positive, credits are negative value | [optional]
8
8
  **account_code** | **String** | See Accounts | [optional]
9
9
  **account_id** | **String** | See Accounts | [optional]
10
10
  **description** | **String** | Description for journal line | [optional]
11
11
  **tax_type** | **String** | The tax type from TaxRates | [optional]
12
12
  **tracking** | [**Array&lt;TrackingCategory&gt;**](TrackingCategory.md) | Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 &lt;TrackingCategory&gt; elements. | [optional]
13
- **tax_amount** | **Float** | The calculated tax amount based on the TaxType and LineAmount | [optional]
13
+ **tax_amount** | **BigDecimal** | The calculated tax amount based on the TaxType and LineAmount | [optional]
14
14
  **is_blank** | **Boolean** | is the line blank | [optional]
15
15
 
16
16
  ## Code Sample
@@ -65,7 +65,7 @@ instance = XeroRuby::Accounting::Organisation.new(organisation_id: 8be9db36-3598
65
65
  default_purchases_tax: null,
66
66
  period_lock_date: null,
67
67
  end_of_year_lock_date: null,
68
- created_date_utc: null,
68
+ created_date_utc: /Date(1573755038314)/,
69
69
  timezone: null,
70
70
  organisation_entity_type: null,
71
71
  short_code: null,
@@ -10,14 +10,14 @@ Name | Type | Description | Notes
10
10
  **status** | **String** | See Overpayment Status Codes | [optional]
11
11
  **line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
12
12
  **line_items** | [**Array&lt;LineItem&gt;**](LineItem.md) | See Overpayment Line Items | [optional]
13
- **sub_total** | **Float** | The subtotal of the overpayment excluding taxes | [optional]
14
- **total_tax** | **Float** | The total tax on the overpayment | [optional]
15
- **total** | **Float** | The total of the overpayment (subtotal + total tax) | [optional]
13
+ **sub_total** | **BigDecimal** | The subtotal of the overpayment excluding taxes | [optional]
14
+ **total_tax** | **BigDecimal** | The total tax on the overpayment | [optional]
15
+ **total** | **BigDecimal** | The total of the overpayment (subtotal + total tax) | [optional]
16
16
  **updated_date_utc** | **DateTime** | UTC timestamp of last update to the overpayment | [optional]
17
17
  **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
18
18
  **overpayment_id** | **String** | Xero generated unique identifier | [optional]
19
- **currency_rate** | **Float** | The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used | [optional]
20
- **remaining_credit** | **Float** | The remaining credit balance on the overpayment | [optional]
19
+ **currency_rate** | **BigDecimal** | The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used | [optional]
20
+ **remaining_credit** | **BigDecimal** | The remaining credit balance on the overpayment | [optional]
21
21
  **allocations** | [**Array&lt;Allocation&gt;**](Allocation.md) | See Allocations | [optional]
22
22
  **applied_amount** | **Float** | The amount of applied to an invoice | [optional]
23
23
  **payments** | [**Array&lt;Payment&gt;**](Payment.md) | See Payments | [optional]
@@ -38,7 +38,7 @@ instance = XeroRuby::Accounting::Overpayment.new(type: null,
38
38
  sub_total: null,
39
39
  total_tax: null,
40
40
  total: null,
41
- updated_date_utc: null,
41
+ updated_date_utc: /Date(1573755038314)/,
42
42
  currency_code: null,
43
43
  overpayment_id: null,
44
44
  currency_rate: null,