xero-ruby 0.1.2 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f58f548b53291f956b6af006cfeec7fb24e6e9d66627938980e3c0f7049d3e8
4
- data.tar.gz: 79e9e11f8eae330000739104de7666eb017b519876008586281e6e192043e2a8
3
+ metadata.gz: '0690938c815e6037f0e6307a5b85a7b081a9fdb1d277a37f106d3d6fbcae7488'
4
+ data.tar.gz: c2787624314dc766e1c31527ced0e658b1eef995ce5af5f2dfd801d018244d29
5
5
  SHA512:
6
- metadata.gz: 0730427ed2ebb7e4906e7847393176ab9d9c8885c373f7b27b56d3e416728ec0cd8703dad5bfe68ab89d1e8afd30be3a088cd5fbf0c1ff52355c0b178a68fc11
7
- data.tar.gz: 8fb598c69dcfc001351c87cc023bf52f8a61606c6c68a24803d65d6db5a0ec49fcbbd098f2ddb316f27b209b2a8bc4c0495daccf295cec4925e5e7825d63550f
6
+ metadata.gz: 7d1489944c743b6dcb8b576581d9d6080b1af7a9bc24333df213b889ea60d2ae175e70da63acfef995248c22c14123414f441ad59ad7c26d490467ba9e5df289
7
+ data.tar.gz: ff2dbd51b20fa0ad511cac7c4632d86c456bb622fdc1cae011574da5a4f07d772e4ea1f49b93bbbdb25ea6799847979fc4e820bb01c5c88ba1429e20db403767
data/README.md CHANGED
@@ -6,8 +6,8 @@ No description provided (generated by Openapi Generator https://github.com/opena
6
6
 
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
- - API version: 2.0.0
10
- - Package version: 0.1.2
9
+ - API version: 2.0.1
10
+ - Package version: 0.2.0
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://developer.xero.com](https://developer.xero.com)
13
13
 
@@ -24,22 +24,22 @@ gem build xero-ruby.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./xero-ruby-0.1.2.gem
27
+ gem install ./xero-ruby-0.2.0.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./xero-ruby-0.1.2.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./xero-ruby-0.2.0.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'xero-ruby', '~> 0.1.2'
36
+ gem 'xero-ruby', '~> 0.2.0'
37
37
 
38
38
  ### Install from Git
39
39
 
40
- If the Ruby gem is hosted at a git repository: https://github.com/Xero API/xero-ruby, then add the following in the Gemfile:
40
+ If the Ruby gem is hosted at a git repository: https://github.com/XeroAPI/xero-ruby, then add the following in the Gemfile:
41
41
 
42
- gem 'xero-ruby', :git => 'https://github.com/Xero API/xero-ruby.git'
42
+ gem 'xero-ruby', :git => 'https://github.com/XeroAPI/xero-ruby.git'
43
43
 
44
44
  ### Include the Ruby code directly
45
45
 
@@ -64,8 +64,8 @@ XeroRuby.configure do |config|
64
64
  end
65
65
 
66
66
  api_instance = XeroRuby::AccountingApi.new
67
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
68
- account = { "Code":"123456", "Name":"Foobar", "Type":"EXPENSE", "Description":"Hello World" } # Account | Request of type Account
67
+ xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
68
+ account = { code: "123456", name: "Foobar", type: AccountType.EXPENSE, description: "Hello World" } # Account | Account object in body of request
69
69
 
70
70
  begin
71
71
  #Allows you to create a new chart of accounts
@@ -85,63 +85,54 @@ Class | Method | HTTP request | Description
85
85
  ------------ | ------------- | ------------- | -------------
86
86
  *XeroRuby::AccountingApi* | [**create_account**](docs/AccountingApi.md#create_account) | **PUT** /Accounts | Allows you to create a new chart of accounts
87
87
  *XeroRuby::AccountingApi* | [**create_account_attachment_by_file_name**](docs/AccountingApi.md#create_account_attachment_by_file_name) | **PUT** /Accounts/{AccountID}/Attachments/{FileName} | Allows you to create Attachment on Account
88
- *XeroRuby::AccountingApi* | [**create_bank_transaction**](docs/AccountingApi.md#create_bank_transaction) | **PUT** /BankTransactions | Allows you to create a spend or receive money transaction
89
88
  *XeroRuby::AccountingApi* | [**create_bank_transaction_attachment_by_file_name**](docs/AccountingApi.md#create_bank_transaction_attachment_by_file_name) | **PUT** /BankTransactions/{BankTransactionID}/Attachments/{FileName} | Allows you to createa an Attachment on BankTransaction by Filename
90
89
  *XeroRuby::AccountingApi* | [**create_bank_transaction_history_record**](docs/AccountingApi.md#create_bank_transaction_history_record) | **PUT** /BankTransactions/{BankTransactionID}/History | Allows you to create history record for a bank transactions
91
- *XeroRuby::AccountingApi* | [**create_bank_transactions**](docs/AccountingApi.md#create_bank_transactions) | **PUT** /BankTransactions#bulk | Allows you to create a spend or receive money transaction
90
+ *XeroRuby::AccountingApi* | [**create_bank_transactions**](docs/AccountingApi.md#create_bank_transactions) | **PUT** /BankTransactions | Allows you to create one or more spend or receive money transaction
92
91
  *XeroRuby::AccountingApi* | [**create_bank_transfer**](docs/AccountingApi.md#create_bank_transfer) | **PUT** /BankTransfers | Allows you to create a bank transfers
93
92
  *XeroRuby::AccountingApi* | [**create_bank_transfer_attachment_by_file_name**](docs/AccountingApi.md#create_bank_transfer_attachment_by_file_name) | **PUT** /BankTransfers/{BankTransferID}/Attachments/{FileName} |
94
93
  *XeroRuby::AccountingApi* | [**create_bank_transfer_history_record**](docs/AccountingApi.md#create_bank_transfer_history_record) | **PUT** /BankTransfers/{BankTransferID}/History |
95
94
  *XeroRuby::AccountingApi* | [**create_batch_payment**](docs/AccountingApi.md#create_batch_payment) | **PUT** /BatchPayments | Create one or many BatchPayments for invoices
96
95
  *XeroRuby::AccountingApi* | [**create_batch_payment_history_record**](docs/AccountingApi.md#create_batch_payment_history_record) | **PUT** /BatchPayments/{BatchPaymentID}/History | Allows you to create a history record for a Batch Payment
97
96
  *XeroRuby::AccountingApi* | [**create_branding_theme_payment_services**](docs/AccountingApi.md#create_branding_theme_payment_services) | **POST** /BrandingThemes/{BrandingThemeID}/PaymentServices | Allow for the creation of new custom payment service for specified Branding Theme
98
- *XeroRuby::AccountingApi* | [**create_contact**](docs/AccountingApi.md#create_contact) | **PUT** /Contacts |
99
97
  *XeroRuby::AccountingApi* | [**create_contact_attachment_by_file_name**](docs/AccountingApi.md#create_contact_attachment_by_file_name) | **PUT** /Contacts/{ContactID}/Attachments/{FileName} |
100
98
  *XeroRuby::AccountingApi* | [**create_contact_group**](docs/AccountingApi.md#create_contact_group) | **PUT** /ContactGroups | Allows you to create a contact group
101
99
  *XeroRuby::AccountingApi* | [**create_contact_group_contacts**](docs/AccountingApi.md#create_contact_group_contacts) | **PUT** /ContactGroups/{ContactGroupID}/Contacts | Allows you to add Contacts to a Contract Group
102
100
  *XeroRuby::AccountingApi* | [**create_contact_history**](docs/AccountingApi.md#create_contact_history) | **PUT** /Contacts/{ContactID}/History | Allows you to retrieve a history records of an Contact
103
- *XeroRuby::AccountingApi* | [**create_contacts**](docs/AccountingApi.md#create_contacts) | **PUT** /Contacts#bulk |
104
- *XeroRuby::AccountingApi* | [**create_credit_note**](docs/AccountingApi.md#create_credit_note) | **PUT** /CreditNotes | Allows you to create a credit note
101
+ *XeroRuby::AccountingApi* | [**create_contacts**](docs/AccountingApi.md#create_contacts) | **PUT** /Contacts | Allows you to create a multiple contacts (bulk) in a Xero organisation
105
102
  *XeroRuby::AccountingApi* | [**create_credit_note_allocation**](docs/AccountingApi.md#create_credit_note_allocation) | **PUT** /CreditNotes/{CreditNoteID}/Allocations | Allows you to create Allocation on CreditNote
106
103
  *XeroRuby::AccountingApi* | [**create_credit_note_attachment_by_file_name**](docs/AccountingApi.md#create_credit_note_attachment_by_file_name) | **PUT** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to create Attachments on CreditNote by file name
107
104
  *XeroRuby::AccountingApi* | [**create_credit_note_history**](docs/AccountingApi.md#create_credit_note_history) | **PUT** /CreditNotes/{CreditNoteID}/History | Allows you to retrieve a history records of an CreditNote
108
- *XeroRuby::AccountingApi* | [**create_credit_notes**](docs/AccountingApi.md#create_credit_notes) | **PUT** /CreditNotes#bulk | Allows you to create a credit note
105
+ *XeroRuby::AccountingApi* | [**create_credit_notes**](docs/AccountingApi.md#create_credit_notes) | **PUT** /CreditNotes | Allows you to create a credit note
109
106
  *XeroRuby::AccountingApi* | [**create_currency**](docs/AccountingApi.md#create_currency) | **PUT** /Currencies |
110
- *XeroRuby::AccountingApi* | [**create_employee**](docs/AccountingApi.md#create_employee) | **PUT** /Employees | Allows you to create new employees used in Xero payrun
111
- *XeroRuby::AccountingApi* | [**create_employees**](docs/AccountingApi.md#create_employees) | **PUT** /Employees#bulk | Allows you to create new employees used in Xero payrun
107
+ *XeroRuby::AccountingApi* | [**create_employees**](docs/AccountingApi.md#create_employees) | **PUT** /Employees | Allows you to create new employees used in Xero payrun
112
108
  *XeroRuby::AccountingApi* | [**create_expense_claim_history**](docs/AccountingApi.md#create_expense_claim_history) | **PUT** /ExpenseClaims/{ExpenseClaimID}/History | Allows you to create a history records of an ExpenseClaim
113
109
  *XeroRuby::AccountingApi* | [**create_expense_claims**](docs/AccountingApi.md#create_expense_claims) | **PUT** /ExpenseClaims | Allows you to retrieve expense claims
114
- *XeroRuby::AccountingApi* | [**create_invoice**](docs/AccountingApi.md#create_invoice) | **PUT** /Invoices | Allows you to create any sales invoices or purchase bills
115
110
  *XeroRuby::AccountingApi* | [**create_invoice_attachment_by_file_name**](docs/AccountingApi.md#create_invoice_attachment_by_file_name) | **PUT** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to create an Attachment on invoices or purchase bills by it's filename
116
111
  *XeroRuby::AccountingApi* | [**create_invoice_history**](docs/AccountingApi.md#create_invoice_history) | **PUT** /Invoices/{InvoiceID}/History | Allows you to retrieve a history records of an invoice
117
- *XeroRuby::AccountingApi* | [**create_invoices**](docs/AccountingApi.md#create_invoices) | **PUT** /Invoices#bulk | Allows you to create any sales invoices or purchase bills
118
- *XeroRuby::AccountingApi* | [**create_item**](docs/AccountingApi.md#create_item) | **PUT** /Items | Allows you to create an item
112
+ *XeroRuby::AccountingApi* | [**create_invoices**](docs/AccountingApi.md#create_invoices) | **PUT** /Invoices | Allows you to create one or more sales invoices or purchase bills
119
113
  *XeroRuby::AccountingApi* | [**create_item_history**](docs/AccountingApi.md#create_item_history) | **PUT** /Items/{ItemID}/History | Allows you to create a history record for items
120
- *XeroRuby::AccountingApi* | [**create_items**](docs/AccountingApi.md#create_items) | **PUT** /Items#bulk | Allows you to create an item
114
+ *XeroRuby::AccountingApi* | [**create_items**](docs/AccountingApi.md#create_items) | **PUT** /Items | Allows you to create one or more items
121
115
  *XeroRuby::AccountingApi* | [**create_linked_transaction**](docs/AccountingApi.md#create_linked_transaction) | **PUT** /LinkedTransactions | Allows you to create linked transactions (billable expenses)
122
- *XeroRuby::AccountingApi* | [**create_linked_transactions**](docs/AccountingApi.md#create_linked_transactions) | **PUT** /LinkedTransactions#bulk | Allows you to create linked transactions (billable expenses)
123
- *XeroRuby::AccountingApi* | [**create_manual_journal**](docs/AccountingApi.md#create_manual_journal) | **PUT** /ManualJournals | Allows you to create a manual journal
124
116
  *XeroRuby::AccountingApi* | [**create_manual_journal_attachment_by_file_name**](docs/AccountingApi.md#create_manual_journal_attachment_by_file_name) | **PUT** /ManualJournals/{ManualJournalID}/Attachments/{FileName} | Allows you to create a specified Attachment on ManualJournal by file name
125
- *XeroRuby::AccountingApi* | [**create_manual_journals**](docs/AccountingApi.md#create_manual_journals) | **PUT** /ManualJournals#bulk | Allows you to create a manual journal
126
- *XeroRuby::AccountingApi* | [**create_overpayment_allocation**](docs/AccountingApi.md#create_overpayment_allocation) | **PUT** /Overpayments/{OverpaymentID}/Allocations | Allows you to retrieve Allocations for overpayments
127
- *XeroRuby::AccountingApi* | [**create_overpayment_allocations**](docs/AccountingApi.md#create_overpayment_allocations) | **PUT** /Overpayments/{OverpaymentID}/Allocations#bulk | Allows you to retrieve Allocations for overpayments
117
+ *XeroRuby::AccountingApi* | [**create_manual_journals**](docs/AccountingApi.md#create_manual_journals) | **PUT** /ManualJournals | Allows you to create one or more manual journals
118
+ *XeroRuby::AccountingApi* | [**create_overpayment_allocations**](docs/AccountingApi.md#create_overpayment_allocations) | **PUT** /Overpayments/{OverpaymentID}/Allocations | Allows you to create a single allocation for an overpayment
128
119
  *XeroRuby::AccountingApi* | [**create_overpayment_history**](docs/AccountingApi.md#create_overpayment_history) | **PUT** /Overpayments/{OverpaymentID}/History | Allows you to create history records of an Overpayment
129
- *XeroRuby::AccountingApi* | [**create_payment**](docs/AccountingApi.md#create_payment) | **PUT** /Payments | Allows you to create payments for invoices and credit notes
120
+ *XeroRuby::AccountingApi* | [**create_payment**](docs/AccountingApi.md#create_payment) | **POST** /Payments | Allows you to create a single payment for invoices or credit notes
130
121
  *XeroRuby::AccountingApi* | [**create_payment_history**](docs/AccountingApi.md#create_payment_history) | **PUT** /Payments/{PaymentID}/History | Allows you to create a history record for a payment
131
122
  *XeroRuby::AccountingApi* | [**create_payment_service**](docs/AccountingApi.md#create_payment_service) | **PUT** /PaymentServices | Allows you to create payment services
132
- *XeroRuby::AccountingApi* | [**create_payments**](docs/AccountingApi.md#create_payments) | **PUT** /Payments#bulk | Allows you to create payments for invoices and credit notes
133
- *XeroRuby::AccountingApi* | [**create_prepayment_allocation**](docs/AccountingApi.md#create_prepayment_allocation) | **PUT** /Prepayments/{PrepaymentID}/Allocations | Allows you to create an Allocation for prepayments
123
+ *XeroRuby::AccountingApi* | [**create_payments**](docs/AccountingApi.md#create_payments) | **PUT** /Payments | Allows you to create multiple payments for invoices or credit notes
124
+ *XeroRuby::AccountingApi* | [**create_prepayment_allocations**](docs/AccountingApi.md#create_prepayment_allocations) | **PUT** /Prepayments/{PrepaymentID}/Allocations | Allows you to create an Allocation for prepayments
134
125
  *XeroRuby::AccountingApi* | [**create_prepayment_history**](docs/AccountingApi.md#create_prepayment_history) | **PUT** /Prepayments/{PrepaymentID}/History | Allows you to create a history record for an Prepayment
135
- *XeroRuby::AccountingApi* | [**create_purchase_order**](docs/AccountingApi.md#create_purchase_order) | **PUT** /PurchaseOrders | Allows you to create purchase orders
136
126
  *XeroRuby::AccountingApi* | [**create_purchase_order_history**](docs/AccountingApi.md#create_purchase_order_history) | **PUT** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to create HistoryRecord for purchase orders
137
- *XeroRuby::AccountingApi* | [**create_purchase_orders**](docs/AccountingApi.md#create_purchase_orders) | **PUT** /PurchaseOrders#bulk | Allows you to create purchase orders
127
+ *XeroRuby::AccountingApi* | [**create_purchase_orders**](docs/AccountingApi.md#create_purchase_orders) | **PUT** /PurchaseOrders | Allows you to create one or more purchase orders
128
+ *XeroRuby::AccountingApi* | [**create_quote_history**](docs/AccountingApi.md#create_quote_history) | **PUT** /Quotes/{QuoteID}/History | Allows you to retrieve a history records of an quote
129
+ *XeroRuby::AccountingApi* | [**create_quotes**](docs/AccountingApi.md#create_quotes) | **PUT** /Quotes | Allows you to create one or more quotes
138
130
  *XeroRuby::AccountingApi* | [**create_receipt**](docs/AccountingApi.md#create_receipt) | **PUT** /Receipts | Allows you to create draft expense claim receipts for any user
139
131
  *XeroRuby::AccountingApi* | [**create_receipt_attachment_by_file_name**](docs/AccountingApi.md#create_receipt_attachment_by_file_name) | **PUT** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to create Attachment on expense claim receipts by file name
140
132
  *XeroRuby::AccountingApi* | [**create_receipt_history**](docs/AccountingApi.md#create_receipt_history) | **PUT** /Receipts/{ReceiptID}/History | Allows you to retrieve a history records of an Receipt
141
133
  *XeroRuby::AccountingApi* | [**create_repeating_invoice_attachment_by_file_name**](docs/AccountingApi.md#create_repeating_invoice_attachment_by_file_name) | **PUT** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} | Allows you to create attachment on repeating invoices by file name
142
134
  *XeroRuby::AccountingApi* | [**create_repeating_invoice_history**](docs/AccountingApi.md#create_repeating_invoice_history) | **PUT** /RepeatingInvoices/{RepeatingInvoiceID}/History | Allows you to create history for a repeating invoice
143
- *XeroRuby::AccountingApi* | [**create_tax_rate**](docs/AccountingApi.md#create_tax_rate) | **PUT** /TaxRates | Allows you to create Tax Rates
144
- *XeroRuby::AccountingApi* | [**create_tax_rates**](docs/AccountingApi.md#create_tax_rates) | **PUT** /TaxRates#bulk | Allows you to create Tax Rates
135
+ *XeroRuby::AccountingApi* | [**create_tax_rates**](docs/AccountingApi.md#create_tax_rates) | **PUT** /TaxRates | Allows you to create one or more Tax Rates
145
136
  *XeroRuby::AccountingApi* | [**create_tracking_category**](docs/AccountingApi.md#create_tracking_category) | **PUT** /TrackingCategories | Allows you to create tracking categories
146
137
  *XeroRuby::AccountingApi* | [**create_tracking_options**](docs/AccountingApi.md#create_tracking_options) | **PUT** /TrackingCategories/{TrackingCategoryID}/Options | Allows you to create options for a specified tracking category
147
138
  *XeroRuby::AccountingApi* | [**delete_account**](docs/AccountingApi.md#delete_account) | **DELETE** /Accounts/{AccountID} | Allows you to delete a chart of accounts
@@ -233,6 +224,9 @@ Class | Method | HTTP request | Description
233
224
  *XeroRuby::AccountingApi* | [**get_purchase_order**](docs/AccountingApi.md#get_purchase_order) | **GET** /PurchaseOrders/{PurchaseOrderID} | Allows you to retrieve a specified purchase orders
234
225
  *XeroRuby::AccountingApi* | [**get_purchase_order_history**](docs/AccountingApi.md#get_purchase_order_history) | **GET** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to retrieve history for PurchaseOrder
235
226
  *XeroRuby::AccountingApi* | [**get_purchase_orders**](docs/AccountingApi.md#get_purchase_orders) | **GET** /PurchaseOrders | Allows you to retrieve purchase orders
227
+ *XeroRuby::AccountingApi* | [**get_quote**](docs/AccountingApi.md#get_quote) | **GET** /Quotes/{QuoteID} | Allows you to retrieve a specified quote
228
+ *XeroRuby::AccountingApi* | [**get_quote_history**](docs/AccountingApi.md#get_quote_history) | **GET** /Quotes/{QuoteID}/History | Allows you to retrieve a history records of an quote
229
+ *XeroRuby::AccountingApi* | [**get_quotes**](docs/AccountingApi.md#get_quotes) | **GET** /Quotes | Allows you to retrieve any sales quotes
236
230
  *XeroRuby::AccountingApi* | [**get_receipt**](docs/AccountingApi.md#get_receipt) | **GET** /Receipts/{ReceiptID} | Allows you to retrieve a specified draft expense claim receipts
237
231
  *XeroRuby::AccountingApi* | [**get_receipt_attachment_by_file_name**](docs/AccountingApi.md#get_receipt_attachment_by_file_name) | **GET** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to retrieve Attachments on expense claim receipts by file name
238
232
  *XeroRuby::AccountingApi* | [**get_receipt_attachment_by_id**](docs/AccountingApi.md#get_receipt_attachment_by_id) | **GET** /Receipts/{ReceiptID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on expense claim receipts by ID
@@ -275,11 +269,21 @@ Class | Method | HTTP request | Description
275
269
  *XeroRuby::AccountingApi* | [**update_expense_claim**](docs/AccountingApi.md#update_expense_claim) | **POST** /ExpenseClaims/{ExpenseClaimID} | Allows you to update specified expense claims
276
270
  *XeroRuby::AccountingApi* | [**update_invoice**](docs/AccountingApi.md#update_invoice) | **POST** /Invoices/{InvoiceID} | Allows you to update a specified sales invoices or purchase bills
277
271
  *XeroRuby::AccountingApi* | [**update_invoice_attachment_by_file_name**](docs/AccountingApi.md#update_invoice_attachment_by_file_name) | **POST** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to update Attachment on invoices or purchase bills by it's filename
278
- *XeroRuby::AccountingApi* | [**update_item**](docs/AccountingApi.md#update_item) | **POST** /Items/{ItemID} | Allows you to udpate a specified item
272
+ *XeroRuby::AccountingApi* | [**update_item**](docs/AccountingApi.md#update_item) | **POST** /Items/{ItemID} | Allows you to update a specified item
279
273
  *XeroRuby::AccountingApi* | [**update_linked_transaction**](docs/AccountingApi.md#update_linked_transaction) | **POST** /LinkedTransactions/{LinkedTransactionID} | Allows you to update a specified linked transactions (billable expenses)
280
274
  *XeroRuby::AccountingApi* | [**update_manual_journal**](docs/AccountingApi.md#update_manual_journal) | **POST** /ManualJournals/{ManualJournalID} | Allows you to update a specified manual journal
281
275
  *XeroRuby::AccountingApi* | [**update_manual_journal_attachment_by_file_name**](docs/AccountingApi.md#update_manual_journal_attachment_by_file_name) | **POST** /ManualJournals/{ManualJournalID}/Attachments/{FileName} | Allows you to update a specified Attachment on ManualJournal by file name
276
+ *XeroRuby::AccountingApi* | [**update_or_create_bank_transactions**](docs/AccountingApi.md#update_or_create_bank_transactions) | **POST** /BankTransactions | Allows you to update or create one or more spend or receive money transaction
277
+ *XeroRuby::AccountingApi* | [**update_or_create_contacts**](docs/AccountingApi.md#update_or_create_contacts) | **POST** /Contacts | Allows you to update OR create one or more contacts in a Xero organisation
278
+ *XeroRuby::AccountingApi* | [**update_or_create_credit_notes**](docs/AccountingApi.md#update_or_create_credit_notes) | **POST** /CreditNotes | Allows you to update OR create one or more credit notes
279
+ *XeroRuby::AccountingApi* | [**update_or_create_employees**](docs/AccountingApi.md#update_or_create_employees) | **POST** /Employees | Allows you to create a single new employees used in Xero payrun
280
+ *XeroRuby::AccountingApi* | [**update_or_create_invoices**](docs/AccountingApi.md#update_or_create_invoices) | **POST** /Invoices | Allows you to update OR create one or more sales invoices or purchase bills
281
+ *XeroRuby::AccountingApi* | [**update_or_create_items**](docs/AccountingApi.md#update_or_create_items) | **POST** /Items | Allows you to update or create one or more items
282
+ *XeroRuby::AccountingApi* | [**update_or_create_manual_journals**](docs/AccountingApi.md#update_or_create_manual_journals) | **POST** /ManualJournals | Allows you to create a single manual journal
283
+ *XeroRuby::AccountingApi* | [**update_or_create_purchase_orders**](docs/AccountingApi.md#update_or_create_purchase_orders) | **POST** /PurchaseOrders | Allows you to update or create one or more purchase orders
284
+ *XeroRuby::AccountingApi* | [**update_or_create_quotes**](docs/AccountingApi.md#update_or_create_quotes) | **POST** /Quotes | Allows you to update OR create one or more quotes
282
285
  *XeroRuby::AccountingApi* | [**update_purchase_order**](docs/AccountingApi.md#update_purchase_order) | **POST** /PurchaseOrders/{PurchaseOrderID} | Allows you to update a specified purchase order
286
+ *XeroRuby::AccountingApi* | [**update_quote**](docs/AccountingApi.md#update_quote) | **POST** /Quotes/{QuoteID} | Allows you to update a specified quote
283
287
  *XeroRuby::AccountingApi* | [**update_receipt**](docs/AccountingApi.md#update_receipt) | **POST** /Receipts/{ReceiptID} | Allows you to retrieve a specified draft expense claim receipts
284
288
  *XeroRuby::AccountingApi* | [**update_receipt_attachment_by_file_name**](docs/AccountingApi.md#update_receipt_attachment_by_file_name) | **POST** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to update Attachment on expense claim receipts by file name
285
289
  *XeroRuby::AccountingApi* | [**update_repeating_invoice_attachment_by_file_name**](docs/AccountingApi.md#update_repeating_invoice_attachment_by_file_name) | **POST** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} | Allows you to update specified attachment on repeating invoices by file name
@@ -369,6 +373,10 @@ Class | Method | HTTP request | Description
369
373
  - [XeroRuby::Purchase](docs/Purchase.md)
370
374
  - [XeroRuby::PurchaseOrder](docs/PurchaseOrder.md)
371
375
  - [XeroRuby::PurchaseOrders](docs/PurchaseOrders.md)
376
+ - [XeroRuby::Quote](docs/Quote.md)
377
+ - [XeroRuby::QuoteLineAmountTypes](docs/QuoteLineAmountTypes.md)
378
+ - [XeroRuby::QuoteStatusCodes](docs/QuoteStatusCodes.md)
379
+ - [XeroRuby::Quotes](docs/Quotes.md)
372
380
  - [XeroRuby::Receipt](docs/Receipt.md)
373
381
  - [XeroRuby::Receipts](docs/Receipts.md)
374
382
  - [XeroRuby::RepeatingInvoice](docs/RepeatingInvoice.md)
@@ -424,7 +432,8 @@ Class | Method | HTTP request | Description
424
432
  - accounting.contacts.read: Grant read-only access to contacts and contact groups
425
433
  - accounting.attachments: Grant read-write access to attachments
426
434
  - accounting.attachments.read: Grant read-only access to attachments
427
- - assets assets.read: Grant read-only access to fixed assets
435
+ - assets: Grant read-write access to assets
436
+ - assets.read: Grant read-only access to fixed assets
428
437
  - bankfeeds: Grant read-write access to bankfeeds
429
438
  - files: Grant read-write access to files and folders
430
439
  - files.read: Grant read-only access to files and folders
data/docs/Account.md CHANGED
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
22
22
  **reporting_code_name** | **String** | Shown if set | [optional]
23
23
  **has_attachments** | **Boolean** | boolean to indicate if an account has an attachment (read only) | [optional]
24
24
  **updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
25
+ **add_to_watchlist** | **Boolean** | Boolean – describes whether the account is shown in the watchlist widget on the dashboard | [optional]
25
26
  **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
26
27
 
27
28
  ## Code Sample
@@ -31,7 +32,7 @@ require 'XeroRuby'
31
32
 
32
33
  instance = XeroRuby::Account.new(code: 4400,
33
34
  name: Food Sales,
34
- account_id: null,
35
+ account_id: 00000000-0000-0000-0000-000000000000,
35
36
  type: null,
36
37
  bank_account_number: null,
37
38
  status: null,
@@ -47,6 +48,7 @@ instance = XeroRuby::Account.new(code: 4400,
47
48
  reporting_code_name: null,
48
49
  has_attachments: null,
49
50
  updated_date_utc: null,
51
+ add_to_watchlist: null,
50
52
  validation_errors: null)
51
53
  ```
52
54