xero-ruby 0.1.2 → 0.2.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 (269) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +44 -35
  3. data/docs/Account.md +3 -1
  4. data/docs/AccountingApi.md +2667 -2323
  5. data/docs/Attachment.md +2 -2
  6. data/docs/BankTransaction.md +3 -3
  7. data/docs/BrandingTheme.md +4 -0
  8. data/docs/Contact.md +3 -1
  9. data/docs/CreditNote.md +2 -0
  10. data/docs/Element.md +15 -1
  11. data/docs/Employee.md +5 -1
  12. data/docs/Invoice.md +6 -4
  13. data/docs/Item.md +3 -1
  14. data/docs/LineItem.md +4 -4
  15. data/docs/LineItemTracking.md +3 -1
  16. data/docs/LinkedTransaction.md +2 -2
  17. data/docs/ManualJournal.md +3 -1
  18. data/docs/Prepayment.md +2 -0
  19. data/docs/PurchaseOrder.md +3 -3
  20. data/docs/Quote.md +59 -0
  21. data/docs/QuoteLineAmountTypes.md +16 -0
  22. data/docs/QuoteStatusCodes.md +16 -0
  23. data/docs/Quotes.md +17 -0
  24. data/docs/Receipt.md +6 -4
  25. data/docs/ReportWithRow.md +2 -2
  26. data/docs/TaxRate.md +1 -1
  27. data/git_push.sh +1 -1
  28. data/lib/.DS_Store +0 -0
  29. data/lib/xero-ruby/api/accounting_api.rb +1741 -1334
  30. data/lib/xero-ruby/api_client.rb +2 -2
  31. data/lib/xero-ruby/api_error.rb +2 -2
  32. data/lib/xero-ruby/configuration.rb +3 -7
  33. data/lib/xero-ruby/models/account.rb +15 -5
  34. data/lib/xero-ruby/models/account_type.rb +2 -2
  35. data/lib/xero-ruby/models/accounts.rb +2 -2
  36. data/lib/xero-ruby/models/accounts_payable.rb +2 -2
  37. data/lib/xero-ruby/models/accounts_receivable.rb +2 -2
  38. data/lib/xero-ruby/models/address.rb +2 -2
  39. data/lib/xero-ruby/models/allocation.rb +2 -2
  40. data/lib/xero-ruby/models/allocations.rb +2 -2
  41. data/lib/xero-ruby/models/attachment.rb +2 -2
  42. data/lib/xero-ruby/models/attachments.rb +2 -2
  43. data/lib/xero-ruby/models/balances.rb +2 -2
  44. data/lib/xero-ruby/models/bank_transaction.rb +2 -2
  45. data/lib/xero-ruby/models/bank_transactions.rb +2 -2
  46. data/lib/xero-ruby/models/bank_transfer.rb +2 -2
  47. data/lib/xero-ruby/models/bank_transfers.rb +2 -2
  48. data/lib/xero-ruby/models/batch_payment.rb +48 -2
  49. data/lib/xero-ruby/models/batch_payment_details.rb +2 -2
  50. data/lib/xero-ruby/models/batch_payments.rb +2 -2
  51. data/lib/xero-ruby/models/bill.rb +2 -2
  52. data/lib/xero-ruby/models/branding_theme.rb +57 -3
  53. data/lib/xero-ruby/models/branding_themes.rb +2 -2
  54. data/lib/xero-ruby/models/cis_org_setting.rb +2 -2
  55. data/lib/xero-ruby/models/cis_setting.rb +2 -2
  56. data/lib/xero-ruby/models/cis_settings.rb +2 -2
  57. data/lib/xero-ruby/models/contact.rb +16 -6
  58. data/lib/xero-ruby/models/contact_group.rb +2 -2
  59. data/lib/xero-ruby/models/contact_groups.rb +2 -2
  60. data/lib/xero-ruby/models/contact_person.rb +2 -2
  61. data/lib/xero-ruby/models/contacts.rb +2 -2
  62. data/lib/xero-ruby/models/country_code.rb +2 -2
  63. data/lib/xero-ruby/models/credit_note.rb +13 -3
  64. data/lib/xero-ruby/models/credit_notes.rb +2 -2
  65. data/lib/xero-ruby/models/currencies.rb +2 -2
  66. data/lib/xero-ruby/models/currency.rb +2 -2
  67. data/lib/xero-ruby/models/currency_code.rb +2 -2
  68. data/lib/xero-ruby/models/element.rb +70 -6
  69. data/lib/xero-ruby/models/employee.rb +28 -6
  70. data/lib/xero-ruby/models/employees.rb +2 -2
  71. data/lib/xero-ruby/models/error.rb +2 -2
  72. data/lib/xero-ruby/models/expense_claim.rb +4 -4
  73. data/lib/xero-ruby/models/expense_claims.rb +2 -2
  74. data/lib/xero-ruby/models/external_link.rb +2 -2
  75. data/lib/xero-ruby/models/history_record.rb +2 -2
  76. data/lib/xero-ruby/models/history_records.rb +2 -2
  77. data/lib/xero-ruby/models/invoice.rb +20 -23
  78. data/lib/xero-ruby/models/invoice_reminder.rb +2 -2
  79. data/lib/xero-ruby/models/invoice_reminders.rb +2 -2
  80. data/lib/xero-ruby/models/invoices.rb +2 -2
  81. data/lib/xero-ruby/models/item.rb +13 -8
  82. data/lib/xero-ruby/models/items.rb +2 -2
  83. data/lib/xero-ruby/models/journal.rb +2 -2
  84. data/lib/xero-ruby/models/journal_line.rb +2 -2
  85. data/lib/xero-ruby/models/journals.rb +2 -2
  86. data/lib/xero-ruby/models/line_amount_types.rb +2 -2
  87. data/lib/xero-ruby/models/line_item.rb +4 -4
  88. data/lib/xero-ruby/models/line_item_tracking.rb +13 -3
  89. data/lib/xero-ruby/models/linked_transaction.rb +3 -8
  90. data/lib/xero-ruby/models/linked_transactions.rb +2 -2
  91. data/lib/xero-ruby/models/manual_journal.rb +15 -10
  92. data/lib/xero-ruby/models/manual_journal_line.rb +2 -2
  93. data/lib/xero-ruby/models/manual_journals.rb +2 -2
  94. data/lib/xero-ruby/models/online_invoice.rb +2 -2
  95. data/lib/xero-ruby/models/online_invoices.rb +2 -2
  96. data/lib/xero-ruby/models/organisation.rb +8 -8
  97. data/lib/xero-ruby/models/organisations.rb +2 -2
  98. data/lib/xero-ruby/models/overpayment.rb +2 -2
  99. data/lib/xero-ruby/models/overpayments.rb +2 -2
  100. data/lib/xero-ruby/models/payment.rb +2 -2
  101. data/lib/xero-ruby/models/payment_service.rb +2 -2
  102. data/lib/xero-ruby/models/payment_services.rb +2 -2
  103. data/lib/xero-ruby/models/payment_term.rb +2 -2
  104. data/lib/xero-ruby/models/payment_term_type.rb +2 -2
  105. data/lib/xero-ruby/models/payments.rb +2 -2
  106. data/lib/xero-ruby/models/phone.rb +2 -2
  107. data/lib/xero-ruby/models/prepayment.rb +13 -3
  108. data/lib/xero-ruby/models/prepayments.rb +2 -2
  109. data/lib/xero-ruby/models/purchase.rb +2 -2
  110. data/lib/xero-ruby/models/purchase_order.rb +3 -13
  111. data/lib/xero-ruby/models/purchase_orders.rb +2 -2
  112. data/lib/xero-ruby/models/quote.rb +487 -0
  113. data/lib/xero-ruby/models/quote_line_amount_types.rb +38 -0
  114. data/lib/xero-ruby/models/quote_status_codes.rb +40 -0
  115. data/lib/xero-ruby/models/quotes.rb +205 -0
  116. data/lib/xero-ruby/models/receipt.rb +17 -25
  117. data/lib/xero-ruby/models/receipts.rb +2 -2
  118. data/lib/xero-ruby/models/repeating_invoice.rb +4 -4
  119. data/lib/xero-ruby/models/repeating_invoices.rb +2 -2
  120. data/lib/xero-ruby/models/report.rb +2 -2
  121. data/lib/xero-ruby/models/report_attribute.rb +2 -2
  122. data/lib/xero-ruby/models/report_cell.rb +2 -2
  123. data/lib/xero-ruby/models/report_fields.rb +2 -2
  124. data/lib/xero-ruby/models/report_row.rb +2 -2
  125. data/lib/xero-ruby/models/report_rows.rb +2 -2
  126. data/lib/xero-ruby/models/report_with_row.rb +12 -12
  127. data/lib/xero-ruby/models/report_with_rows.rb +2 -2
  128. data/lib/xero-ruby/models/reports.rb +2 -2
  129. data/lib/xero-ruby/models/request_empty.rb +2 -2
  130. data/lib/xero-ruby/models/row_type.rb +2 -2
  131. data/lib/xero-ruby/models/sales_tracking_category.rb +2 -2
  132. data/lib/xero-ruby/models/schedule.rb +2 -2
  133. data/lib/xero-ruby/models/tax_component.rb +2 -2
  134. data/lib/xero-ruby/models/tax_rate.rb +6 -11
  135. data/lib/xero-ruby/models/tax_rates.rb +2 -2
  136. data/lib/xero-ruby/models/tax_type.rb +5 -2
  137. data/lib/xero-ruby/models/ten_nintey_nine_contact.rb +2 -2
  138. data/lib/xero-ruby/models/time_zone.rb +2 -2
  139. data/lib/xero-ruby/models/tracking_categories.rb +2 -2
  140. data/lib/xero-ruby/models/tracking_category.rb +2 -2
  141. data/lib/xero-ruby/models/tracking_option.rb +2 -2
  142. data/lib/xero-ruby/models/tracking_options.rb +2 -2
  143. data/lib/xero-ruby/models/user.rb +2 -2
  144. data/lib/xero-ruby/models/users.rb +2 -2
  145. data/lib/xero-ruby/models/validation_error.rb +2 -2
  146. data/lib/xero-ruby/version.rb +3 -3
  147. data/lib/xero-ruby.rb +6 -2
  148. data/pkg/xero-ruby-0.2.0.gem +0 -0
  149. data/spec/api/accounting_api_spec.rb +304 -209
  150. data/spec/api_client_spec.rb +2 -2
  151. data/spec/configuration_spec.rb +2 -2
  152. data/spec/models/account_spec.rb +9 -3
  153. data/spec/models/account_type_spec.rb +2 -2
  154. data/spec/models/accounts_payable_spec.rb +2 -2
  155. data/spec/models/accounts_receivable_spec.rb +2 -2
  156. data/spec/models/accounts_spec.rb +2 -2
  157. data/spec/models/address_spec.rb +2 -2
  158. data/spec/models/allocation_spec.rb +2 -2
  159. data/spec/models/allocations_spec.rb +2 -2
  160. data/spec/models/attachment_spec.rb +2 -2
  161. data/spec/models/attachments_spec.rb +2 -2
  162. data/spec/models/balances_spec.rb +2 -2
  163. data/spec/models/bank_transaction_spec.rb +2 -2
  164. data/spec/models/bank_transactions_spec.rb +2 -2
  165. data/spec/models/bank_transfer_spec.rb +2 -2
  166. data/spec/models/bank_transfers_spec.rb +2 -2
  167. data/spec/models/batch_payment_details_spec.rb +2 -2
  168. data/spec/models/batch_payment_spec.rb +10 -2
  169. data/spec/models/batch_payments_spec.rb +2 -2
  170. data/spec/models/bill_spec.rb +2 -2
  171. data/spec/models/branding_theme_spec.rb +18 -2
  172. data/spec/models/branding_themes_spec.rb +2 -2
  173. data/spec/models/cis_org_setting_spec.rb +2 -2
  174. data/spec/models/cis_setting_spec.rb +2 -2
  175. data/spec/models/cis_settings_spec.rb +2 -2
  176. data/spec/models/contact_group_spec.rb +2 -2
  177. data/spec/models/contact_groups_spec.rb +2 -2
  178. data/spec/models/contact_person_spec.rb +2 -2
  179. data/spec/models/contact_spec.rb +8 -2
  180. data/spec/models/contacts_spec.rb +2 -2
  181. data/spec/models/country_code_spec.rb +2 -2
  182. data/spec/models/credit_note_spec.rb +8 -2
  183. data/spec/models/credit_notes_spec.rb +2 -2
  184. data/spec/models/currencies_spec.rb +2 -2
  185. data/spec/models/currency_code_spec.rb +2 -2
  186. data/spec/models/currency_spec.rb +2 -2
  187. data/spec/models/element_spec.rb +44 -2
  188. data/spec/models/employee_spec.rb +14 -2
  189. data/spec/models/employees_spec.rb +2 -2
  190. data/spec/models/error_spec.rb +2 -2
  191. data/spec/models/expense_claim_spec.rb +3 -3
  192. data/spec/models/expense_claims_spec.rb +2 -2
  193. data/spec/models/external_link_spec.rb +2 -2
  194. data/spec/models/history_record_spec.rb +2 -2
  195. data/spec/models/history_records_spec.rb +2 -2
  196. data/spec/models/invoice_reminder_spec.rb +2 -2
  197. data/spec/models/invoice_reminders_spec.rb +2 -2
  198. data/spec/models/invoice_spec.rb +9 -3
  199. data/spec/models/invoices_spec.rb +2 -2
  200. data/spec/models/item_spec.rb +8 -2
  201. data/spec/models/items_spec.rb +2 -2
  202. data/spec/models/journal_line_spec.rb +2 -2
  203. data/spec/models/journal_spec.rb +2 -2
  204. data/spec/models/journals_spec.rb +2 -2
  205. data/spec/models/line_amount_types_spec.rb +2 -2
  206. data/spec/models/line_item_spec.rb +2 -2
  207. data/spec/models/line_item_tracking_spec.rb +8 -2
  208. data/spec/models/linked_transaction_spec.rb +2 -2
  209. data/spec/models/linked_transactions_spec.rb +2 -2
  210. data/spec/models/manual_journal_line_spec.rb +2 -2
  211. data/spec/models/manual_journal_spec.rb +9 -3
  212. data/spec/models/manual_journals_spec.rb +2 -2
  213. data/spec/models/online_invoice_spec.rb +2 -2
  214. data/spec/models/online_invoices_spec.rb +2 -2
  215. data/spec/models/organisation_spec.rb +5 -5
  216. data/spec/models/organisations_spec.rb +2 -2
  217. data/spec/models/overpayment_spec.rb +2 -2
  218. data/spec/models/overpayments_spec.rb +2 -2
  219. data/spec/models/payment_service_spec.rb +2 -2
  220. data/spec/models/payment_services_spec.rb +2 -2
  221. data/spec/models/payment_spec.rb +2 -2
  222. data/spec/models/payment_term_spec.rb +2 -2
  223. data/spec/models/payment_term_type_spec.rb +2 -2
  224. data/spec/models/payments_spec.rb +2 -2
  225. data/spec/models/phone_spec.rb +2 -2
  226. data/spec/models/prepayment_spec.rb +8 -2
  227. data/spec/models/prepayments_spec.rb +2 -2
  228. data/spec/models/purchase_order_spec.rb +2 -2
  229. data/spec/models/purchase_orders_spec.rb +2 -2
  230. data/spec/models/purchase_spec.rb +2 -2
  231. data/spec/models/quote_line_amount_types_spec.rb +35 -0
  232. data/spec/models/quote_spec.rb +167 -0
  233. data/spec/models/quote_status_codes_spec.rb +35 -0
  234. data/spec/models/quotes_spec.rb +41 -0
  235. data/spec/models/receipt_spec.rb +9 -3
  236. data/spec/models/receipts_spec.rb +2 -2
  237. data/spec/models/repeating_invoice_spec.rb +3 -3
  238. data/spec/models/repeating_invoices_spec.rb +2 -2
  239. data/spec/models/report_attribute_spec.rb +2 -2
  240. data/spec/models/report_cell_spec.rb +2 -2
  241. data/spec/models/report_fields_spec.rb +2 -2
  242. data/spec/models/report_row_spec.rb +2 -2
  243. data/spec/models/report_rows_spec.rb +2 -2
  244. data/spec/models/report_spec.rb +2 -2
  245. data/spec/models/report_with_row_spec.rb +4 -4
  246. data/spec/models/report_with_rows_spec.rb +2 -2
  247. data/spec/models/reports_spec.rb +2 -2
  248. data/spec/models/request_empty_spec.rb +2 -2
  249. data/spec/models/row_type_spec.rb +2 -2
  250. data/spec/models/sales_tracking_category_spec.rb +2 -2
  251. data/spec/models/schedule_spec.rb +2 -2
  252. data/spec/models/tax_component_spec.rb +2 -2
  253. data/spec/models/tax_rate_spec.rb +4 -4
  254. data/spec/models/tax_rates_spec.rb +2 -2
  255. data/spec/models/tax_type_spec.rb +2 -2
  256. data/spec/models/ten_nintey_nine_contact_spec.rb +2 -2
  257. data/spec/models/time_zone_spec.rb +2 -2
  258. data/spec/models/tracking_categories_spec.rb +2 -2
  259. data/spec/models/tracking_category_spec.rb +2 -2
  260. data/spec/models/tracking_option_spec.rb +2 -2
  261. data/spec/models/tracking_options_spec.rb +2 -2
  262. data/spec/models/user_spec.rb +2 -2
  263. data/spec/models/users_spec.rb +2 -2
  264. data/spec/models/validation_error_spec.rb +2 -2
  265. data/spec/spec_helper.rb +2 -2
  266. data/xero-ruby.gemspec +3 -3
  267. metadata +21 -5
  268. data/Gemfile.lock +0 -79
  269. data/pkg/xero-ruby-0.1.2.gem +0 -0
@@ -3,10 +3,10 @@
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.0.0
6
+ The version of the OpenAPI document: 2.0.1
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.3
9
+ OpenAPI Generator version: 4.2.0
10
10
 
11
11
  =end
12
12
 
@@ -35,7 +35,7 @@ describe 'AccountingApi' do
35
35
  # unit tests for create_account
36
36
  # Allows you to create a new chart of accounts
37
37
  # @param xero_tenant_id Xero identifier for Tenant
38
- # @param account Request of type Account
38
+ # @param account Account object in body of request
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [Accounts]
41
41
  describe 'create_account test' do
@@ -58,18 +58,6 @@ describe 'AccountingApi' do
58
58
  end
59
59
  end
60
60
 
61
- # unit tests for create_bank_transaction
62
- # Allows you to create a spend or receive money transaction
63
- # @param xero_tenant_id Xero identifier for Tenant
64
- # @param bank_transaction
65
- # @param [Hash] opts the optional parameters
66
- # @return [BankTransactions]
67
- describe 'create_bank_transaction test' do
68
- it 'should work' do
69
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
- end
71
- end
72
-
73
61
  # unit tests for create_bank_transaction_attachment_by_file_name
74
62
  # Allows you to createa an Attachment on BankTransaction by Filename
75
63
  # @param xero_tenant_id Xero identifier for Tenant
@@ -88,7 +76,7 @@ describe 'AccountingApi' do
88
76
  # Allows you to create history record for a bank transactions
89
77
  # @param xero_tenant_id Xero identifier for Tenant
90
78
  # @param bank_transaction_id Xero generated unique identifier for a bank transaction
91
- # @param history_records
79
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
92
80
  # @param [Hash] opts the optional parameters
93
81
  # @return [HistoryRecords]
94
82
  describe 'create_bank_transaction_history_record test' do
@@ -98,11 +86,12 @@ describe 'AccountingApi' do
98
86
  end
99
87
 
100
88
  # unit tests for create_bank_transactions
101
- # Allows you to create a spend or receive money transaction
89
+ # Allows you to create one or more spend or receive money transaction
102
90
  # @param xero_tenant_id Xero identifier for Tenant
103
- # @param bank_transactions
91
+ # @param bank_transactions BankTransactions with an array of BankTransaction objects in body of request
104
92
  # @param [Hash] opts the optional parameters
105
- # @option opts [Boolean] :summarize_errors response format that shows validation errors for each bank transaction
93
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
94
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
106
95
  # @return [BankTransactions]
107
96
  describe 'create_bank_transactions test' do
108
97
  it 'should work' do
@@ -113,7 +102,7 @@ describe 'AccountingApi' do
113
102
  # unit tests for create_bank_transfer
114
103
  # Allows you to create a bank transfers
115
104
  # @param xero_tenant_id Xero identifier for Tenant
116
- # @param bank_transfers
105
+ # @param bank_transfers BankTransfers with array of BankTransfer objects in request body
117
106
  # @param [Hash] opts the optional parameters
118
107
  # @return [BankTransfers]
119
108
  describe 'create_bank_transfer test' do
@@ -138,7 +127,7 @@ describe 'AccountingApi' do
138
127
  # unit tests for create_bank_transfer_history_record
139
128
  # @param xero_tenant_id Xero identifier for Tenant
140
129
  # @param bank_transfer_id Xero generated unique identifier for a bank transfer
141
- # @param history_records
130
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
142
131
  # @param [Hash] opts the optional parameters
143
132
  # @return [HistoryRecords]
144
133
  describe 'create_bank_transfer_history_record test' do
@@ -150,8 +139,9 @@ describe 'AccountingApi' do
150
139
  # unit tests for create_batch_payment
151
140
  # Create one or many BatchPayments for invoices
152
141
  # @param xero_tenant_id Xero identifier for Tenant
153
- # @param batch_payments Request of type BatchPayments containing a Payments array with one or more Payment objects
142
+ # @param batch_payments BatchPayments with an array of Payments in body of request
154
143
  # @param [Hash] opts the optional parameters
144
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
155
145
  # @return [BatchPayments]
156
146
  describe 'create_batch_payment test' do
157
147
  it 'should work' do
@@ -163,7 +153,7 @@ describe 'AccountingApi' do
163
153
  # Allows you to create a history record for a Batch Payment
164
154
  # @param xero_tenant_id Xero identifier for Tenant
165
155
  # @param batch_payment_id Unique identifier for BatchPayment
166
- # @param history_records
156
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
167
157
  # @param [Hash] opts the optional parameters
168
158
  # @return [HistoryRecords]
169
159
  describe 'create_batch_payment_history_record test' do
@@ -176,7 +166,7 @@ describe 'AccountingApi' do
176
166
  # Allow for the creation of new custom payment service for specified Branding Theme
177
167
  # @param xero_tenant_id Xero identifier for Tenant
178
168
  # @param branding_theme_id Unique identifier for a Branding Theme
179
- # @param payment_service
169
+ # @param payment_service PaymentService object in body of request
180
170
  # @param [Hash] opts the optional parameters
181
171
  # @return [PaymentServices]
182
172
  describe 'create_branding_theme_payment_services test' do
@@ -185,17 +175,6 @@ describe 'AccountingApi' do
185
175
  end
186
176
  end
187
177
 
188
- # unit tests for create_contact
189
- # @param xero_tenant_id Xero identifier for Tenant
190
- # @param contact
191
- # @param [Hash] opts the optional parameters
192
- # @return [Contacts]
193
- describe 'create_contact test' do
194
- it 'should work' do
195
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
196
- end
197
- end
198
-
199
178
  # unit tests for create_contact_attachment_by_file_name
200
179
  # @param xero_tenant_id Xero identifier for Tenant
201
180
  # @param contact_id Unique identifier for a Contact
@@ -212,7 +191,7 @@ describe 'AccountingApi' do
212
191
  # unit tests for create_contact_group
213
192
  # Allows you to create a contact group
214
193
  # @param xero_tenant_id Xero identifier for Tenant
215
- # @param contact_groups an array of contact groups with names specified
194
+ # @param contact_groups ContactGroups with an array of names in request body
216
195
  # @param [Hash] opts the optional parameters
217
196
  # @return [ContactGroups]
218
197
  describe 'create_contact_group test' do
@@ -225,7 +204,7 @@ describe 'AccountingApi' do
225
204
  # Allows you to add Contacts to a Contract Group
226
205
  # @param xero_tenant_id Xero identifier for Tenant
227
206
  # @param contact_group_id Unique identifier for a Contact Group
228
- # @param contacts an array of contacts with ContactID to be added to ContactGroup
207
+ # @param contacts Contacts with array of contacts specifiying the ContactID to be added to ContactGroup in body of request
229
208
  # @param [Hash] opts the optional parameters
230
209
  # @return [Contacts]
231
210
  describe 'create_contact_group_contacts test' do
@@ -238,7 +217,7 @@ describe 'AccountingApi' do
238
217
  # Allows you to retrieve a history records of an Contact
239
218
  # @param xero_tenant_id Xero identifier for Tenant
240
219
  # @param contact_id Unique identifier for a Contact
241
- # @param history_records
220
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
242
221
  # @param [Hash] opts the optional parameters
243
222
  # @return [HistoryRecords]
244
223
  describe 'create_contact_history test' do
@@ -248,9 +227,11 @@ describe 'AccountingApi' do
248
227
  end
249
228
 
250
229
  # unit tests for create_contacts
230
+ # Allows you to create a multiple contacts (bulk) in a Xero organisation
251
231
  # @param xero_tenant_id Xero identifier for Tenant
252
- # @param contacts
232
+ # @param contacts Contacts with an array of Contact objects to create in body of request
253
233
  # @param [Hash] opts the optional parameters
234
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
254
235
  # @return [Contacts]
255
236
  describe 'create_contacts test' do
256
237
  it 'should work' do
@@ -258,23 +239,11 @@ describe 'AccountingApi' do
258
239
  end
259
240
  end
260
241
 
261
- # unit tests for create_credit_note
262
- # Allows you to create a credit note
263
- # @param xero_tenant_id Xero identifier for Tenant
264
- # @param credit_note an array of Credit Notes with a single CreditNote object.
265
- # @param [Hash] opts the optional parameters
266
- # @return [CreditNotes]
267
- describe 'create_credit_note test' do
268
- it 'should work' do
269
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
270
- end
271
- end
272
-
273
242
  # unit tests for create_credit_note_allocation
274
243
  # Allows you to create Allocation on CreditNote
275
244
  # @param xero_tenant_id Xero identifier for Tenant
276
245
  # @param credit_note_id Unique identifier for a Credit Note
277
- # @param allocations an array of Allocations with single Allocation object defined.
246
+ # @param allocations Allocations with array of Allocation object in body of request.
278
247
  # @param [Hash] opts the optional parameters
279
248
  # @return [Allocations]
280
249
  describe 'create_credit_note_allocation test' do
@@ -288,6 +257,7 @@ describe 'AccountingApi' do
288
257
  # @param xero_tenant_id Xero identifier for Tenant
289
258
  # @param credit_note_id Unique identifier for a Credit Note
290
259
  # @param file_name Name of the file you are attaching to Credit Note
260
+ # @param include_online Set an attachment to be included with the invoice when viewed online (through Xero)
291
261
  # @param body Byte array of file in body of request
292
262
  # @param [Hash] opts the optional parameters
293
263
  # @return [Attachments]
@@ -301,7 +271,7 @@ describe 'AccountingApi' do
301
271
  # Allows you to retrieve a history records of an CreditNote
302
272
  # @param xero_tenant_id Xero identifier for Tenant
303
273
  # @param credit_note_id Unique identifier for a Credit Note
304
- # @param history_records
274
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
305
275
  # @param [Hash] opts the optional parameters
306
276
  # @return [HistoryRecords]
307
277
  describe 'create_credit_note_history test' do
@@ -313,9 +283,10 @@ describe 'AccountingApi' do
313
283
  # unit tests for create_credit_notes
314
284
  # Allows you to create a credit note
315
285
  # @param xero_tenant_id Xero identifier for Tenant
316
- # @param credit_notes an array of Credit Notes with a single CreditNote object.
286
+ # @param credit_notes Credit Notes with array of CreditNote object in body of request
317
287
  # @param [Hash] opts the optional parameters
318
- # @option opts [Boolean] :summarize_errors shows validation errors for each credit note
288
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
289
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
319
290
  # @return [CreditNotes]
320
291
  describe 'create_credit_notes test' do
321
292
  it 'should work' do
@@ -325,7 +296,7 @@ describe 'AccountingApi' do
325
296
 
326
297
  # unit tests for create_currency
327
298
  # @param xero_tenant_id Xero identifier for Tenant
328
- # @param currency
299
+ # @param currency Currency obejct in the body of request
329
300
  # @param [Hash] opts the optional parameters
330
301
  # @return [Currencies]
331
302
  describe 'create_currency test' do
@@ -334,23 +305,12 @@ describe 'AccountingApi' do
334
305
  end
335
306
  end
336
307
 
337
- # unit tests for create_employee
338
- # Allows you to create new employees used in Xero payrun
339
- # @param xero_tenant_id Xero identifier for Tenant
340
- # @param employee
341
- # @param [Hash] opts the optional parameters
342
- # @return [Employees]
343
- describe 'create_employee test' do
344
- it 'should work' do
345
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
346
- end
347
- end
348
-
349
308
  # unit tests for create_employees
350
309
  # Allows you to create new employees used in Xero payrun
351
310
  # @param xero_tenant_id Xero identifier for Tenant
352
- # @param employees
311
+ # @param employees Employees with array of Employee object in body of request
353
312
  # @param [Hash] opts the optional parameters
313
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
354
314
  # @return [Employees]
355
315
  describe 'create_employees test' do
356
316
  it 'should work' do
@@ -362,7 +322,7 @@ describe 'AccountingApi' do
362
322
  # Allows you to create a history records of an ExpenseClaim
363
323
  # @param xero_tenant_id Xero identifier for Tenant
364
324
  # @param expense_claim_id Unique identifier for a ExpenseClaim
365
- # @param history_records
325
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
366
326
  # @param [Hash] opts the optional parameters
367
327
  # @return [HistoryRecords]
368
328
  describe 'create_expense_claim_history test' do
@@ -374,7 +334,7 @@ describe 'AccountingApi' do
374
334
  # unit tests for create_expense_claims
375
335
  # Allows you to retrieve expense claims
376
336
  # @param xero_tenant_id Xero identifier for Tenant
377
- # @param expense_claims
337
+ # @param expense_claims ExpenseClaims with array of ExpenseClaim object in body of request
378
338
  # @param [Hash] opts the optional parameters
379
339
  # @return [ExpenseClaims]
380
340
  describe 'create_expense_claims test' do
@@ -383,23 +343,12 @@ describe 'AccountingApi' do
383
343
  end
384
344
  end
385
345
 
386
- # unit tests for create_invoice
387
- # Allows you to create any sales invoices or purchase bills
388
- # @param xero_tenant_id Xero identifier for Tenant
389
- # @param invoice
390
- # @param [Hash] opts the optional parameters
391
- # @return [Invoices]
392
- describe 'create_invoice test' do
393
- it 'should work' do
394
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
395
- end
396
- end
397
-
398
346
  # unit tests for create_invoice_attachment_by_file_name
399
347
  # Allows you to create an Attachment on invoices or purchase bills by it's filename
400
348
  # @param xero_tenant_id Xero identifier for Tenant
401
349
  # @param invoice_id Unique identifier for an Invoice
402
350
  # @param file_name Name of the file you are attaching
351
+ # @param include_online Set an attachment to be included with the invoice when viewed online (through Xero)
403
352
  # @param body Byte array of file in body of request
404
353
  # @param [Hash] opts the optional parameters
405
354
  # @return [Attachments]
@@ -413,7 +362,7 @@ describe 'AccountingApi' do
413
362
  # Allows you to retrieve a history records of an invoice
414
363
  # @param xero_tenant_id Xero identifier for Tenant
415
364
  # @param invoice_id Unique identifier for an Invoice
416
- # @param history_records
365
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
417
366
  # @param [Hash] opts the optional parameters
418
367
  # @return [HistoryRecords]
419
368
  describe 'create_invoice_history test' do
@@ -423,11 +372,12 @@ describe 'AccountingApi' do
423
372
  end
424
373
 
425
374
  # unit tests for create_invoices
426
- # Allows you to create any sales invoices or purchase bills
375
+ # Allows you to create one or more sales invoices or purchase bills
427
376
  # @param xero_tenant_id Xero identifier for Tenant
428
- # @param invoices
377
+ # @param invoices Invoices with an array of invoice objects in body of request
429
378
  # @param [Hash] opts the optional parameters
430
- # @option opts [Boolean] :summarize_errors shows validation errors for each invoice
379
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
380
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
431
381
  # @return [Invoices]
432
382
  describe 'create_invoices test' do
433
383
  it 'should work' do
@@ -435,23 +385,11 @@ describe 'AccountingApi' do
435
385
  end
436
386
  end
437
387
 
438
- # unit tests for create_item
439
- # Allows you to create an item
440
- # @param xero_tenant_id Xero identifier for Tenant
441
- # @param item
442
- # @param [Hash] opts the optional parameters
443
- # @return [Items]
444
- describe 'create_item test' do
445
- it 'should work' do
446
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
447
- end
448
- end
449
-
450
388
  # unit tests for create_item_history
451
389
  # Allows you to create a history record for items
452
390
  # @param xero_tenant_id Xero identifier for Tenant
453
391
  # @param item_id Unique identifier for an Item
454
- # @param history_records
392
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
455
393
  # @param [Hash] opts the optional parameters
456
394
  # @return [HistoryRecords]
457
395
  describe 'create_item_history test' do
@@ -461,10 +399,12 @@ describe 'AccountingApi' do
461
399
  end
462
400
 
463
401
  # unit tests for create_items
464
- # Allows you to create an item
402
+ # Allows you to create one or more items
465
403
  # @param xero_tenant_id Xero identifier for Tenant
466
- # @param items
404
+ # @param items Items with an array of Item objects in body of request
467
405
  # @param [Hash] opts the optional parameters
406
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
407
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
468
408
  # @return [Items]
469
409
  describe 'create_items test' do
470
410
  it 'should work' do
@@ -475,7 +415,7 @@ describe 'AccountingApi' do
475
415
  # unit tests for create_linked_transaction
476
416
  # Allows you to create linked transactions (billable expenses)
477
417
  # @param xero_tenant_id Xero identifier for Tenant
478
- # @param linked_transaction
418
+ # @param linked_transaction LinkedTransaction object in body of request
479
419
  # @param [Hash] opts the optional parameters
480
420
  # @return [LinkedTransactions]
481
421
  describe 'create_linked_transaction test' do
@@ -484,30 +424,6 @@ describe 'AccountingApi' do
484
424
  end
485
425
  end
486
426
 
487
- # unit tests for create_linked_transactions
488
- # Allows you to create linked transactions (billable expenses)
489
- # @param xero_tenant_id Xero identifier for Tenant
490
- # @param linked_transactions
491
- # @param [Hash] opts the optional parameters
492
- # @return [LinkedTransactions]
493
- describe 'create_linked_transactions test' do
494
- it 'should work' do
495
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
496
- end
497
- end
498
-
499
- # unit tests for create_manual_journal
500
- # Allows you to create a manual journal
501
- # @param xero_tenant_id Xero identifier for Tenant
502
- # @param manual_journal
503
- # @param [Hash] opts the optional parameters
504
- # @return [ManualJournals]
505
- describe 'create_manual_journal test' do
506
- it 'should work' do
507
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
508
- end
509
- end
510
-
511
427
  # unit tests for create_manual_journal_attachment_by_file_name
512
428
  # Allows you to create a specified Attachment on ManualJournal by file name
513
429
  # @param xero_tenant_id Xero identifier for Tenant
@@ -523,10 +439,11 @@ describe 'AccountingApi' do
523
439
  end
524
440
 
525
441
  # unit tests for create_manual_journals
526
- # Allows you to create a manual journal
442
+ # Allows you to create one or more manual journals
527
443
  # @param xero_tenant_id Xero identifier for Tenant
528
- # @param manual_journals
444
+ # @param manual_journals ManualJournals array with ManualJournal object in body of request
529
445
  # @param [Hash] opts the optional parameters
446
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
530
447
  # @return [ManualJournals]
531
448
  describe 'create_manual_journals test' do
532
449
  it 'should work' do
@@ -534,25 +451,13 @@ describe 'AccountingApi' do
534
451
  end
535
452
  end
536
453
 
537
- # unit tests for create_overpayment_allocation
538
- # Allows you to retrieve Allocations for overpayments
539
- # @param xero_tenant_id Xero identifier for Tenant
540
- # @param overpayment_id Unique identifier for a Overpayment
541
- # @param allocation
542
- # @param [Hash] opts the optional parameters
543
- # @return [Allocations]
544
- describe 'create_overpayment_allocation test' do
545
- it 'should work' do
546
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
547
- end
548
- end
549
-
550
454
  # unit tests for create_overpayment_allocations
551
- # Allows you to retrieve Allocations for overpayments
455
+ # Allows you to create a single allocation for an overpayment
552
456
  # @param xero_tenant_id Xero identifier for Tenant
553
457
  # @param overpayment_id Unique identifier for a Overpayment
554
- # @param allocations
458
+ # @param allocations Allocations array with Allocation object in body of request
555
459
  # @param [Hash] opts the optional parameters
460
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
556
461
  # @return [Allocations]
557
462
  describe 'create_overpayment_allocations test' do
558
463
  it 'should work' do
@@ -564,7 +469,7 @@ describe 'AccountingApi' do
564
469
  # Allows you to create history records of an Overpayment
565
470
  # @param xero_tenant_id Xero identifier for Tenant
566
471
  # @param overpayment_id Unique identifier for a Overpayment
567
- # @param history_records
472
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
568
473
  # @param [Hash] opts the optional parameters
569
474
  # @return [HistoryRecords]
570
475
  describe 'create_overpayment_history test' do
@@ -574,9 +479,9 @@ describe 'AccountingApi' do
574
479
  end
575
480
 
576
481
  # unit tests for create_payment
577
- # Allows you to create payments for invoices and credit notes
482
+ # Allows you to create a single payment for invoices or credit notes
578
483
  # @param xero_tenant_id Xero identifier for Tenant
579
- # @param payment
484
+ # @param payment Request body with a single Payment object
580
485
  # @param [Hash] opts the optional parameters
581
486
  # @return [Payments]
582
487
  describe 'create_payment test' do
@@ -589,7 +494,7 @@ describe 'AccountingApi' do
589
494
  # Allows you to create a history record for a payment
590
495
  # @param xero_tenant_id Xero identifier for Tenant
591
496
  # @param payment_id Unique identifier for a Payment
592
- # @param history_records
497
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
593
498
  # @param [Hash] opts the optional parameters
594
499
  # @return [HistoryRecords]
595
500
  describe 'create_payment_history test' do
@@ -601,7 +506,7 @@ describe 'AccountingApi' do
601
506
  # unit tests for create_payment_service
602
507
  # Allows you to create payment services
603
508
  # @param xero_tenant_id Xero identifier for Tenant
604
- # @param payment_services
509
+ # @param payment_services PaymentServices array with PaymentService object in body of request
605
510
  # @param [Hash] opts the optional parameters
606
511
  # @return [PaymentServices]
607
512
  describe 'create_payment_service test' do
@@ -611,9 +516,9 @@ describe 'AccountingApi' do
611
516
  end
612
517
 
613
518
  # unit tests for create_payments
614
- # Allows you to create payments for invoices and credit notes
519
+ # Allows you to create multiple payments for invoices or credit notes
615
520
  # @param xero_tenant_id Xero identifier for Tenant
616
- # @param payments
521
+ # @param payments Payments array with Payment object in body of request
617
522
  # @param [Hash] opts the optional parameters
618
523
  # @return [Payments]
619
524
  describe 'create_payments test' do
@@ -622,14 +527,15 @@ describe 'AccountingApi' do
622
527
  end
623
528
  end
624
529
 
625
- # unit tests for create_prepayment_allocation
530
+ # unit tests for create_prepayment_allocations
626
531
  # Allows you to create an Allocation for prepayments
627
532
  # @param xero_tenant_id Xero identifier for Tenant
628
- # @param prepayment_id
629
- # @param allocations
533
+ # @param prepayment_id Unique identifier for Prepayment
534
+ # @param allocations Allocations with an array of Allocation object in body of request
630
535
  # @param [Hash] opts the optional parameters
536
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
631
537
  # @return [Allocations]
632
- describe 'create_prepayment_allocation test' do
538
+ describe 'create_prepayment_allocations test' do
633
539
  it 'should work' do
634
540
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
635
541
  end
@@ -639,7 +545,7 @@ describe 'AccountingApi' do
639
545
  # Allows you to create a history record for an Prepayment
640
546
  # @param xero_tenant_id Xero identifier for Tenant
641
547
  # @param prepayment_id Unique identifier for a PrePayment
642
- # @param history_records
548
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
643
549
  # @param [Hash] opts the optional parameters
644
550
  # @return [HistoryRecords]
645
551
  describe 'create_prepayment_history test' do
@@ -648,39 +554,53 @@ describe 'AccountingApi' do
648
554
  end
649
555
  end
650
556
 
651
- # unit tests for create_purchase_order
652
- # Allows you to create purchase orders
557
+ # unit tests for create_purchase_order_history
558
+ # Allows you to create HistoryRecord for purchase orders
559
+ # @param xero_tenant_id Xero identifier for Tenant
560
+ # @param purchase_order_id Unique identifier for a PurchaseOrder
561
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
562
+ # @param [Hash] opts the optional parameters
563
+ # @return [HistoryRecords]
564
+ describe 'create_purchase_order_history test' do
565
+ it 'should work' do
566
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
567
+ end
568
+ end
569
+
570
+ # unit tests for create_purchase_orders
571
+ # Allows you to create one or more purchase orders
653
572
  # @param xero_tenant_id Xero identifier for Tenant
654
- # @param purchase_order
573
+ # @param purchase_orders PurchaseOrders with an array of PurchaseOrder object in body of request
655
574
  # @param [Hash] opts the optional parameters
575
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
656
576
  # @return [PurchaseOrders]
657
- describe 'create_purchase_order test' do
577
+ describe 'create_purchase_orders test' do
658
578
  it 'should work' do
659
579
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
660
580
  end
661
581
  end
662
582
 
663
- # unit tests for create_purchase_order_history
664
- # Allows you to create HistoryRecord for purchase orders
583
+ # unit tests for create_quote_history
584
+ # Allows you to retrieve a history records of an quote
665
585
  # @param xero_tenant_id Xero identifier for Tenant
666
- # @param purchase_order_id Unique identifier for a PurchaseOrder
667
- # @param history_records
586
+ # @param quote_id Unique identifier for an Quote
587
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
668
588
  # @param [Hash] opts the optional parameters
669
589
  # @return [HistoryRecords]
670
- describe 'create_purchase_order_history test' do
590
+ describe 'create_quote_history test' do
671
591
  it 'should work' do
672
592
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
673
593
  end
674
594
  end
675
595
 
676
- # unit tests for create_purchase_orders
677
- # Allows you to create purchase orders
596
+ # unit tests for create_quotes
597
+ # Allows you to create one or more quotes
678
598
  # @param xero_tenant_id Xero identifier for Tenant
679
- # @param purchase_orders
599
+ # @param quotes Quotes with an array of Quote object in body of request
680
600
  # @param [Hash] opts the optional parameters
681
- # @option opts [Boolean] :summarize_errors shows validation errors for each purchase order.
682
- # @return [PurchaseOrders]
683
- describe 'create_purchase_orders test' do
601
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
602
+ # @return [Quotes]
603
+ describe 'create_quotes test' do
684
604
  it 'should work' do
685
605
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
686
606
  end
@@ -689,8 +609,9 @@ describe 'AccountingApi' do
689
609
  # unit tests for create_receipt
690
610
  # Allows you to create draft expense claim receipts for any user
691
611
  # @param xero_tenant_id Xero identifier for Tenant
692
- # @param receipts
612
+ # @param receipts Receipts with an array of Receipt object in body of request
693
613
  # @param [Hash] opts the optional parameters
614
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
694
615
  # @return [Receipts]
695
616
  describe 'create_receipt test' do
696
617
  it 'should work' do
@@ -716,7 +637,7 @@ describe 'AccountingApi' do
716
637
  # Allows you to retrieve a history records of an Receipt
717
638
  # @param xero_tenant_id Xero identifier for Tenant
718
639
  # @param receipt_id Unique identifier for a Receipt
719
- # @param history_records
640
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
720
641
  # @param [Hash] opts the optional parameters
721
642
  # @return [HistoryRecords]
722
643
  describe 'create_receipt_history test' do
@@ -743,7 +664,7 @@ describe 'AccountingApi' do
743
664
  # Allows you to create history for a repeating invoice
744
665
  # @param xero_tenant_id Xero identifier for Tenant
745
666
  # @param repeating_invoice_id Unique identifier for a Repeating Invoice
746
- # @param history_records
667
+ # @param history_records HistoryRecords containing an array of HistoryRecord objects in body of request
747
668
  # @param [Hash] opts the optional parameters
748
669
  # @return [HistoryRecords]
749
670
  describe 'create_repeating_invoice_history test' do
@@ -752,22 +673,10 @@ describe 'AccountingApi' do
752
673
  end
753
674
  end
754
675
 
755
- # unit tests for create_tax_rate
756
- # Allows you to create Tax Rates
757
- # @param xero_tenant_id Xero identifier for Tenant
758
- # @param tax_rate
759
- # @param [Hash] opts the optional parameters
760
- # @return [TaxRates]
761
- describe 'create_tax_rate test' do
762
- it 'should work' do
763
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
764
- end
765
- end
766
-
767
676
  # unit tests for create_tax_rates
768
- # Allows you to create Tax Rates
677
+ # Allows you to create one or more Tax Rates
769
678
  # @param xero_tenant_id Xero identifier for Tenant
770
- # @param tax_rates
679
+ # @param tax_rates TaxRates array with TaxRate object in body of request
771
680
  # @param [Hash] opts the optional parameters
772
681
  # @return [TaxRates]
773
682
  describe 'create_tax_rates test' do
@@ -779,7 +688,7 @@ describe 'AccountingApi' do
779
688
  # unit tests for create_tracking_category
780
689
  # Allows you to create tracking categories
781
690
  # @param xero_tenant_id Xero identifier for Tenant
782
- # @param tracking_category
691
+ # @param tracking_category TrackingCategory object in body of request
783
692
  # @param [Hash] opts the optional parameters
784
693
  # @return [TrackingCategories]
785
694
  describe 'create_tracking_category test' do
@@ -792,7 +701,7 @@ describe 'AccountingApi' do
792
701
  # Allows you to create options for a specified tracking category
793
702
  # @param xero_tenant_id Xero identifier for Tenant
794
703
  # @param tracking_category_id Unique identifier for a TrackingCategory
795
- # @param tracking_option
704
+ # @param tracking_option TrackingOption object in body of request
796
705
  # @param [Hash] opts the optional parameters
797
706
  # @return [TrackingOptions]
798
707
  describe 'create_tracking_options test' do
@@ -984,6 +893,7 @@ describe 'AccountingApi' do
984
893
  # @param xero_tenant_id Xero identifier for Tenant
985
894
  # @param bank_transaction_id Xero generated unique identifier for a bank transaction
986
895
  # @param [Hash] opts the optional parameters
896
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
987
897
  # @return [BankTransactions]
988
898
  describe 'get_bank_transaction test' do
989
899
  it 'should work' do
@@ -1038,8 +948,8 @@ describe 'AccountingApi' do
1038
948
  # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
1039
949
  # @option opts [String] :where Filter by an any element
1040
950
  # @option opts [String] :order Order by an any element
1041
- # @option opts [Integer] :page e.g. page=1 – Up to 100 bank transactions will be returned in a single API call with line items shown for each bank transaction
1042
- # @option opts [Integer] :unitdp e.g. unitdp=4 – You can opt in to use four decimal places for unit amounts
951
+ # @option opts [Integer] :page Up to 100 bank transactions will be returned in a single API call with line items details
952
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1043
953
  # @return [BankTransactions]
1044
954
  describe 'get_bank_transactions test' do
1045
955
  it 'should work' do
@@ -1321,6 +1231,7 @@ describe 'AccountingApi' do
1321
1231
  # @param xero_tenant_id Xero identifier for Tenant
1322
1232
  # @param credit_note_id Unique identifier for a Credit Note
1323
1233
  # @param [Hash] opts the optional parameters
1234
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1324
1235
  # @return [CreditNotes]
1325
1236
  describe 'get_credit_note test' do
1326
1237
  it 'should work' do
@@ -1332,7 +1243,6 @@ describe 'AccountingApi' do
1332
1243
  # Allows you to retrieve Credit Note as PDF files
1333
1244
  # @param xero_tenant_id Xero identifier for Tenant
1334
1245
  # @param credit_note_id Unique identifier for a Credit Note
1335
- # @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
1336
1246
  # @param [Hash] opts the optional parameters
1337
1247
  # @return [File]
1338
1248
  describe 'get_credit_note_as_pdf test' do
@@ -1401,6 +1311,7 @@ describe 'AccountingApi' do
1401
1311
  # @option opts [String] :where Filter by an any element
1402
1312
  # @option opts [String] :order Order by an any element
1403
1313
  # @option opts [Integer] :page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
1314
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1404
1315
  # @return [CreditNotes]
1405
1316
  describe 'get_credit_notes test' do
1406
1317
  it 'should work' do
@@ -1490,6 +1401,7 @@ describe 'AccountingApi' do
1490
1401
  # @param xero_tenant_id Xero identifier for Tenant
1491
1402
  # @param invoice_id Unique identifier for an Invoice
1492
1403
  # @param [Hash] opts the optional parameters
1404
+ # @option opts [Integer] :unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1493
1405
  # @return [Invoices]
1494
1406
  describe 'get_invoice test' do
1495
1407
  it 'should work' do
@@ -1501,7 +1413,6 @@ describe 'AccountingApi' do
1501
1413
  # Allows you to retrieve invoices or purchase bills as PDF files
1502
1414
  # @param xero_tenant_id Xero identifier for Tenant
1503
1415
  # @param invoice_id Unique identifier for an Invoice
1504
- # @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
1505
1416
  # @param [Hash] opts the optional parameters
1506
1417
  # @return [File]
1507
1418
  describe 'get_invoice_as_pdf test' do
@@ -1580,14 +1491,14 @@ describe 'AccountingApi' do
1580
1491
  # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
1581
1492
  # @option opts [String] :where Filter by an any element
1582
1493
  # @option opts [String] :order Order by an any element
1583
- # @option opts [Array<String>] :i_ds Filter by a comma-separated list of InvoicesIDs. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
1584
- # @option opts [Array<String>] :invoice_numbers Filter by a comma-separated list of InvoiceNumbers. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
1585
- # @option opts [Array<String>] :contact_i_ds Filter by a comma-separated list of ContactIDs. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
1494
+ # @option opts [Array<String>] :i_ds Filter by a comma-separated list of InvoicesIDs.
1495
+ # @option opts [Array<String>] :invoice_numbers Filter by a comma-separated list of InvoiceNumbers.
1496
+ # @option opts [Array<String>] :contact_i_ds Filter by a comma-separated list of ContactIDs.
1586
1497
  # @option opts [Array<String>] :statuses Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
1587
1498
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
1588
1499
  # @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Contacts with a status of ARCHIVED will be included in the response
1589
1500
  # @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
1590
- # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – You can opt in to use four decimal places for unit amounts
1501
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1591
1502
  # @return [Invoices]
1592
1503
  describe 'get_invoices test' do
1593
1504
  it 'should work' do
@@ -1600,6 +1511,7 @@ describe 'AccountingApi' do
1600
1511
  # @param xero_tenant_id Xero identifier for Tenant
1601
1512
  # @param item_id Unique identifier for an Item
1602
1513
  # @param [Hash] opts the optional parameters
1514
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1603
1515
  # @return [Items]
1604
1516
  describe 'get_item test' do
1605
1517
  it 'should work' do
@@ -1626,7 +1538,7 @@ describe 'AccountingApi' do
1626
1538
  # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
1627
1539
  # @option opts [String] :where Filter by an any element
1628
1540
  # @option opts [String] :order Order by an any element
1629
- # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – You can opt in to use four decimal places for unit amounts
1541
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1630
1542
  # @return [Items]
1631
1543
  describe 'get_items test' do
1632
1544
  it 'should work' do
@@ -1678,9 +1590,9 @@ describe 'AccountingApi' do
1678
1590
  # @param [Hash] opts the optional parameters
1679
1591
  # @option opts [Integer] :page Up to 100 linked transactions will be returned in a single API call. Use the page parameter to specify the page to be returned e.g. page&#x3D;1.
1680
1592
  # @option opts [String] :linked_transaction_id The Xero identifier for an Linked Transaction
1681
- # @option opts [String] :source_transaction_id Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice
1593
+ # @option opts [String] :source_transaction_id Filter by the SourceTransactionID. Get the linked transactions created from a particular ACCPAY invoice
1682
1594
  # @option opts [String] :contact_id Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer.
1683
- # @option opts [String] :status Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID&#x3D;4bb34b03-3378-4bb2-a0ed-6345abf3224e&amp;Status&#x3D;APPROVED.
1595
+ # @option opts [String] :status Filter by the combination of ContactID and Status. Get the linked transactions associaed to a customer and with a status
1684
1596
  # @option opts [String] :target_transaction_id Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice
1685
1597
  # @return [LinkedTransactions]
1686
1598
  describe 'get_linked_transactions test' do
@@ -1771,7 +1683,7 @@ describe 'AccountingApi' do
1771
1683
  # unit tests for get_organisation_cis_settings
1772
1684
  # Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
1773
1685
  # @param xero_tenant_id Xero identifier for Tenant
1774
- # @param organisation_id
1686
+ # @param organisation_id The unique Xero identifier for an organisation
1775
1687
  # @param [Hash] opts the optional parameters
1776
1688
  # @return [CISOrgSetting]
1777
1689
  describe 'get_organisation_cis_settings test' do
@@ -1823,7 +1735,7 @@ describe 'AccountingApi' do
1823
1735
  # @option opts [String] :where Filter by an any element
1824
1736
  # @option opts [String] :order Order by an any element
1825
1737
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
1826
- # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – You can opt in to use four decimal places for unit amounts
1738
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1827
1739
  # @return [Overpayments]
1828
1740
  describe 'get_overpayments test' do
1829
1741
  it 'should work' do
@@ -1912,7 +1824,7 @@ describe 'AccountingApi' do
1912
1824
  # @option opts [String] :where Filter by an any element
1913
1825
  # @option opts [String] :order Order by an any element
1914
1826
  # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
1915
- # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – You can opt in to use four decimal places for unit amounts
1827
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1916
1828
  # @return [Prepayments]
1917
1829
  describe 'get_prepayments test' do
1918
1830
  it 'should work' do
@@ -1961,11 +1873,56 @@ describe 'AccountingApi' do
1961
1873
  end
1962
1874
  end
1963
1875
 
1876
+ # unit tests for get_quote
1877
+ # Allows you to retrieve a specified quote
1878
+ # @param xero_tenant_id Xero identifier for Tenant
1879
+ # @param quote_id Unique identifier for an Quote
1880
+ # @param [Hash] opts the optional parameters
1881
+ # @return [Quotes]
1882
+ describe 'get_quote test' do
1883
+ it 'should work' do
1884
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1885
+ end
1886
+ end
1887
+
1888
+ # unit tests for get_quote_history
1889
+ # Allows you to retrieve a history records of an quote
1890
+ # @param xero_tenant_id Xero identifier for Tenant
1891
+ # @param quote_id Unique identifier for an Quote
1892
+ # @param [Hash] opts the optional parameters
1893
+ # @return [HistoryRecords]
1894
+ describe 'get_quote_history test' do
1895
+ it 'should work' do
1896
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1897
+ end
1898
+ end
1899
+
1900
+ # unit tests for get_quotes
1901
+ # Allows you to retrieve any sales quotes
1902
+ # @param xero_tenant_id Xero identifier for Tenant
1903
+ # @param [Hash] opts the optional parameters
1904
+ # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
1905
+ # @option opts [Date] :date_from Filter for quotes after a particular date
1906
+ # @option opts [Date] :date_to Filter for quotes before a particular date
1907
+ # @option opts [Date] :expiry_date_from Filter for quotes expiring after a particular date
1908
+ # @option opts [Date] :expiry_date_to Filter for quotes before a particular date
1909
+ # @option opts [String] :contact_id Filter for quotes belonging to a particular contact
1910
+ # @option opts [String] :status Filter for quotes of a particular Status
1911
+ # @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 Quotes will be returned in a single API call with line items shown for each quote
1912
+ # @option opts [String] :order Order by an any element
1913
+ # @return [Quotes]
1914
+ describe 'get_quotes test' do
1915
+ it 'should work' do
1916
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1917
+ end
1918
+ end
1919
+
1964
1920
  # unit tests for get_receipt
1965
1921
  # Allows you to retrieve a specified draft expense claim receipts
1966
1922
  # @param xero_tenant_id Xero identifier for Tenant
1967
1923
  # @param receipt_id Unique identifier for a Receipt
1968
1924
  # @param [Hash] opts the optional parameters
1925
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1969
1926
  # @return [Receipts]
1970
1927
  describe 'get_receipt test' do
1971
1928
  it 'should work' do
@@ -2032,7 +1989,7 @@ describe 'AccountingApi' do
2032
1989
  # @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
2033
1990
  # @option opts [String] :where Filter by an any element
2034
1991
  # @option opts [String] :order Order by an any element
2035
- # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – You can opt in to use four decimal places for unit amounts
1992
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2036
1993
  # @return [Receipts]
2037
1994
  describe 'get_receipts test' do
2038
1995
  it 'should work' do
@@ -2192,9 +2149,8 @@ describe 'AccountingApi' do
2192
2149
  # Allows you to retrieve report for BankSummary
2193
2150
  # @param xero_tenant_id Xero identifier for Tenant
2194
2151
  # @param [Hash] opts the optional parameters
2195
- # @option opts [Date] :date The date for the Bank Summary report e.g. 2018-03-31
2196
- # @option opts [Integer] :period The number of periods to compare (integer between 1 and 12)
2197
- # @option opts [Integer] :timeframe The period size to compare to (1&#x3D;month, 3&#x3D;quarter, 12&#x3D;year)
2152
+ # @option opts [Date] :from_date The from date for the Bank Summary report e.g. 2018-03-31
2153
+ # @option opts [Date] :to_date The to date for the Bank Summary report e.g. 2018-03-31
2198
2154
  # @return [ReportWithRows]
2199
2155
  describe 'get_report_bank_summary test' do
2200
2156
  it 'should work' do
@@ -2373,6 +2329,7 @@ describe 'AccountingApi' do
2373
2329
  # @param bank_transaction_id Xero generated unique identifier for a bank transaction
2374
2330
  # @param bank_transactions
2375
2331
  # @param [Hash] opts the optional parameters
2332
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2376
2333
  # @return [BankTransactions]
2377
2334
  describe 'update_bank_transaction test' do
2378
2335
  it 'should work' do
@@ -2451,6 +2408,7 @@ describe 'AccountingApi' do
2451
2408
  # @param credit_note_id Unique identifier for a Credit Note
2452
2409
  # @param credit_notes an array of Credit Notes containing credit note details to update
2453
2410
  # @param [Hash] opts the optional parameters
2411
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2454
2412
  # @return [CreditNotes]
2455
2413
  describe 'update_credit_note test' do
2456
2414
  it 'should work' do
@@ -2504,6 +2462,7 @@ describe 'AccountingApi' do
2504
2462
  # @param invoice_id Unique identifier for an Invoice
2505
2463
  # @param invoices
2506
2464
  # @param [Hash] opts the optional parameters
2465
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2507
2466
  # @return [Invoices]
2508
2467
  describe 'update_invoice test' do
2509
2468
  it 'should work' do
@@ -2526,11 +2485,12 @@ describe 'AccountingApi' do
2526
2485
  end
2527
2486
 
2528
2487
  # unit tests for update_item
2529
- # Allows you to udpate a specified item
2488
+ # Allows you to update a specified item
2530
2489
  # @param xero_tenant_id Xero identifier for Tenant
2531
2490
  # @param item_id Unique identifier for an Item
2532
2491
  # @param items
2533
2492
  # @param [Hash] opts the optional parameters
2493
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2534
2494
  # @return [Items]
2535
2495
  describe 'update_item test' do
2536
2496
  it 'should work' do
@@ -2578,6 +2538,127 @@ describe 'AccountingApi' do
2578
2538
  end
2579
2539
  end
2580
2540
 
2541
+ # unit tests for update_or_create_bank_transactions
2542
+ # Allows you to update or create one or more spend or receive money transaction
2543
+ # @param xero_tenant_id Xero identifier for Tenant
2544
+ # @param bank_transactions
2545
+ # @param [Hash] opts the optional parameters
2546
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2547
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2548
+ # @return [BankTransactions]
2549
+ describe 'update_or_create_bank_transactions test' do
2550
+ it 'should work' do
2551
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2552
+ end
2553
+ end
2554
+
2555
+ # unit tests for update_or_create_contacts
2556
+ # Allows you to update OR create one or more contacts in a Xero organisation
2557
+ # @param xero_tenant_id Xero identifier for Tenant
2558
+ # @param contacts
2559
+ # @param [Hash] opts the optional parameters
2560
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2561
+ # @return [Contacts]
2562
+ describe 'update_or_create_contacts test' do
2563
+ it 'should work' do
2564
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2565
+ end
2566
+ end
2567
+
2568
+ # unit tests for update_or_create_credit_notes
2569
+ # Allows you to update OR create one or more credit notes
2570
+ # @param xero_tenant_id Xero identifier for Tenant
2571
+ # @param credit_notes an array of Credit Notes with a single CreditNote object.
2572
+ # @param [Hash] opts the optional parameters
2573
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2574
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2575
+ # @return [CreditNotes]
2576
+ describe 'update_or_create_credit_notes test' do
2577
+ it 'should work' do
2578
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2579
+ end
2580
+ end
2581
+
2582
+ # unit tests for update_or_create_employees
2583
+ # Allows you to create a single new employees used in Xero payrun
2584
+ # @param xero_tenant_id Xero identifier for Tenant
2585
+ # @param employees Employees with array of Employee object in body of request
2586
+ # @param [Hash] opts the optional parameters
2587
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2588
+ # @return [Employees]
2589
+ describe 'update_or_create_employees test' do
2590
+ it 'should work' do
2591
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2592
+ end
2593
+ end
2594
+
2595
+ # unit tests for update_or_create_invoices
2596
+ # Allows you to update OR create one or more sales invoices or purchase bills
2597
+ # @param xero_tenant_id Xero identifier for Tenant
2598
+ # @param invoices
2599
+ # @param [Hash] opts the optional parameters
2600
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2601
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2602
+ # @return [Invoices]
2603
+ describe 'update_or_create_invoices test' do
2604
+ it 'should work' do
2605
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2606
+ end
2607
+ end
2608
+
2609
+ # unit tests for update_or_create_items
2610
+ # Allows you to update or create one or more items
2611
+ # @param xero_tenant_id Xero identifier for Tenant
2612
+ # @param items
2613
+ # @param [Hash] opts the optional parameters
2614
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2615
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2616
+ # @return [Items]
2617
+ describe 'update_or_create_items test' do
2618
+ it 'should work' do
2619
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2620
+ end
2621
+ end
2622
+
2623
+ # unit tests for update_or_create_manual_journals
2624
+ # Allows you to create a single manual journal
2625
+ # @param xero_tenant_id Xero identifier for Tenant
2626
+ # @param manual_journals ManualJournals array with ManualJournal object in body of request
2627
+ # @param [Hash] opts the optional parameters
2628
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2629
+ # @return [ManualJournals]
2630
+ describe 'update_or_create_manual_journals test' do
2631
+ it 'should work' do
2632
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2633
+ end
2634
+ end
2635
+
2636
+ # unit tests for update_or_create_purchase_orders
2637
+ # Allows you to update or create one or more purchase orders
2638
+ # @param xero_tenant_id Xero identifier for Tenant
2639
+ # @param purchase_orders
2640
+ # @param [Hash] opts the optional parameters
2641
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2642
+ # @return [PurchaseOrders]
2643
+ describe 'update_or_create_purchase_orders test' do
2644
+ it 'should work' do
2645
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2646
+ end
2647
+ end
2648
+
2649
+ # unit tests for update_or_create_quotes
2650
+ # Allows you to update OR create one or more quotes
2651
+ # @param xero_tenant_id Xero identifier for Tenant
2652
+ # @param quotes
2653
+ # @param [Hash] opts the optional parameters
2654
+ # @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors
2655
+ # @return [Quotes]
2656
+ describe 'update_or_create_quotes test' do
2657
+ it 'should work' do
2658
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2659
+ end
2660
+ end
2661
+
2581
2662
  # unit tests for update_purchase_order
2582
2663
  # Allows you to update a specified purchase order
2583
2664
  # @param xero_tenant_id Xero identifier for Tenant
@@ -2591,12 +2672,26 @@ describe 'AccountingApi' do
2591
2672
  end
2592
2673
  end
2593
2674
 
2675
+ # unit tests for update_quote
2676
+ # Allows you to update a specified quote
2677
+ # @param xero_tenant_id Xero identifier for Tenant
2678
+ # @param quote_id Unique identifier for an Quote
2679
+ # @param quotes
2680
+ # @param [Hash] opts the optional parameters
2681
+ # @return [Quotes]
2682
+ describe 'update_quote test' do
2683
+ it 'should work' do
2684
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
2685
+ end
2686
+ end
2687
+
2594
2688
  # unit tests for update_receipt
2595
2689
  # Allows you to retrieve a specified draft expense claim receipts
2596
2690
  # @param xero_tenant_id Xero identifier for Tenant
2597
2691
  # @param receipt_id Unique identifier for a Receipt
2598
2692
  # @param receipts
2599
2693
  # @param [Hash] opts the optional parameters
2694
+ # @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
2600
2695
  # @return [Receipts]
2601
2696
  describe 'update_receipt test' do
2602
2697
  it 'should work' do