xero-ruby 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (349) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +79 -0
  4. data/README.md +454 -0
  5. data/Rakefile +10 -0
  6. data/docs/Account.md +53 -0
  7. data/docs/AccountType.md +16 -0
  8. data/docs/AccountingApi.md +11269 -0
  9. data/docs/Accounts.md +17 -0
  10. data/docs/AccountsPayable.md +19 -0
  11. data/docs/AccountsReceivable.md +19 -0
  12. data/docs/Address.md +35 -0
  13. data/docs/Allocation.md +21 -0
  14. data/docs/Allocations.md +17 -0
  15. data/docs/Attachment.md +27 -0
  16. data/docs/Attachments.md +17 -0
  17. data/docs/Balances.md +19 -0
  18. data/docs/BankTransaction.md +59 -0
  19. data/docs/BankTransactions.md +17 -0
  20. data/docs/BankTransfer.md +37 -0
  21. data/docs/BankTransfers.md +17 -0
  22. data/docs/BatchPayment.md +47 -0
  23. data/docs/BatchPaymentDetails.md +25 -0
  24. data/docs/BatchPayments.md +17 -0
  25. data/docs/Bill.md +19 -0
  26. data/docs/BrandingTheme.md +23 -0
  27. data/docs/BrandingThemes.md +17 -0
  28. data/docs/CISOrgSetting.md +21 -0
  29. data/docs/CISSetting.md +19 -0
  30. data/docs/CISSettings.md +17 -0
  31. data/docs/Contact.md +91 -0
  32. data/docs/ContactGroup.md +23 -0
  33. data/docs/ContactGroups.md +17 -0
  34. data/docs/ContactPerson.md +23 -0
  35. data/docs/Contacts.md +17 -0
  36. data/docs/CountryCode.md +16 -0
  37. data/docs/CreditNote.md +61 -0
  38. data/docs/CreditNotes.md +17 -0
  39. data/docs/Currencies.md +17 -0
  40. data/docs/Currency.md +19 -0
  41. data/docs/CurrencyCode.md +16 -0
  42. data/docs/Element.md +17 -0
  43. data/docs/Employee.md +27 -0
  44. data/docs/Employees.md +17 -0
  45. data/docs/Error.md +23 -0
  46. data/docs/ExpenseClaim.md +39 -0
  47. data/docs/ExpenseClaims.md +17 -0
  48. data/docs/ExternalLink.md +21 -0
  49. data/docs/HistoryRecord.md +23 -0
  50. data/docs/HistoryRecords.md +17 -0
  51. data/docs/Invoice.md +89 -0
  52. data/docs/InvoiceReminder.md +17 -0
  53. data/docs/InvoiceReminders.md +17 -0
  54. data/docs/Invoices.md +17 -0
  55. data/docs/Item.md +45 -0
  56. data/docs/Items.md +17 -0
  57. data/docs/Journal.md +31 -0
  58. data/docs/JournalLine.md +39 -0
  59. data/docs/Journals.md +17 -0
  60. data/docs/LineAmountTypes.md +16 -0
  61. data/docs/LineItem.md +41 -0
  62. data/docs/LineItemTracking.md +21 -0
  63. data/docs/LinkedTransaction.md +37 -0
  64. data/docs/LinkedTransactions.md +17 -0
  65. data/docs/ManualJournal.md +41 -0
  66. data/docs/ManualJournalLine.md +29 -0
  67. data/docs/ManualJournals.md +17 -0
  68. data/docs/OnlineInvoice.md +17 -0
  69. data/docs/OnlineInvoices.md +17 -0
  70. data/docs/Organisation.md +79 -0
  71. data/docs/Organisations.md +17 -0
  72. data/docs/Overpayment.md +51 -0
  73. data/docs/Overpayments.md +17 -0
  74. data/docs/Payment.md +61 -0
  75. data/docs/PaymentService.md +27 -0
  76. data/docs/PaymentServices.md +17 -0
  77. data/docs/PaymentTerm.md +19 -0
  78. data/docs/PaymentTermType.md +16 -0
  79. data/docs/Payments.md +17 -0
  80. data/docs/Phone.md +23 -0
  81. data/docs/Prepayment.md +49 -0
  82. data/docs/Prepayments.md +17 -0
  83. data/docs/Purchase.md +23 -0
  84. data/docs/PurchaseOrder.md +71 -0
  85. data/docs/PurchaseOrders.md +17 -0
  86. data/docs/Receipt.md +49 -0
  87. data/docs/Receipts.md +17 -0
  88. data/docs/RepeatingInvoice.md +47 -0
  89. data/docs/RepeatingInvoices.md +17 -0
  90. data/docs/Report.md +29 -0
  91. data/docs/ReportAttribute.md +19 -0
  92. data/docs/ReportCell.md +19 -0
  93. data/docs/ReportFields.md +21 -0
  94. data/docs/ReportRow.md +21 -0
  95. data/docs/ReportRows.md +23 -0
  96. data/docs/ReportWithRow.md +33 -0
  97. data/docs/ReportWithRows.md +17 -0
  98. data/docs/Reports.md +17 -0
  99. data/docs/RequestEmpty.md +17 -0
  100. data/docs/RowType.md +16 -0
  101. data/docs/SalesTrackingCategory.md +19 -0
  102. data/docs/Schedule.md +29 -0
  103. data/docs/TaxComponent.md +23 -0
  104. data/docs/TaxRate.md +39 -0
  105. data/docs/TaxRates.md +17 -0
  106. data/docs/TaxType.md +16 -0
  107. data/docs/TenNinteyNineContact.md +59 -0
  108. data/docs/TimeZone.md +16 -0
  109. data/docs/TrackingCategories.md +17 -0
  110. data/docs/TrackingCategory.md +27 -0
  111. data/docs/TrackingOption.md +23 -0
  112. data/docs/TrackingOptions.md +17 -0
  113. data/docs/User.md +29 -0
  114. data/docs/Users.md +17 -0
  115. data/docs/ValidationError.md +17 -0
  116. data/git_push.sh +55 -0
  117. data/lib/.DS_Store +0 -0
  118. data/lib/xero-ruby.rb +149 -0
  119. data/lib/xero-ruby/api/accounting_api.rb +14686 -0
  120. data/lib/xero-ruby/api_client.rb +386 -0
  121. data/lib/xero-ruby/api_error.rb +57 -0
  122. data/lib/xero-ruby/configuration.rb +252 -0
  123. data/lib/xero-ruby/models/account.rb +484 -0
  124. data/lib/xero-ruby/models/account_type.rb +57 -0
  125. data/lib/xero-ruby/models/accounts.rb +205 -0
  126. data/lib/xero-ruby/models/accounts_payable.rb +212 -0
  127. data/lib/xero-ruby/models/accounts_receivable.rb +212 -0
  128. data/lib/xero-ruby/models/address.rb +463 -0
  129. data/lib/xero-ruby/models/allocation.rb +238 -0
  130. data/lib/xero-ruby/models/allocations.rb +205 -0
  131. data/lib/xero-ruby/models/attachment.rb +254 -0
  132. data/lib/xero-ruby/models/attachments.rb +205 -0
  133. data/lib/xero-ruby/models/balances.rb +213 -0
  134. data/lib/xero-ruby/models/bank_transaction.rb +480 -0
  135. data/lib/xero-ruby/models/bank_transactions.rb +205 -0
  136. data/lib/xero-ruby/models/bank_transfer.rb +319 -0
  137. data/lib/xero-ruby/models/bank_transfers.rb +205 -0
  138. data/lib/xero-ruby/models/batch_payment.rb +429 -0
  139. data/lib/xero-ruby/models/batch_payment_details.rb +290 -0
  140. data/lib/xero-ruby/models/batch_payments.rb +205 -0
  141. data/lib/xero-ruby/models/bill.rb +213 -0
  142. data/lib/xero-ruby/models/branding_theme.rb +234 -0
  143. data/lib/xero-ruby/models/branding_themes.rb +205 -0
  144. data/lib/xero-ruby/models/cis_org_setting.rb +224 -0
  145. data/lib/xero-ruby/models/cis_setting.rb +214 -0
  146. data/lib/xero-ruby/models/cis_settings.rb +205 -0
  147. data/lib/xero-ruby/models/contact.rb +724 -0
  148. data/lib/xero-ruby/models/contact_group.rb +270 -0
  149. data/lib/xero-ruby/models/contact_groups.rb +205 -0
  150. data/lib/xero-ruby/models/contact_person.rb +234 -0
  151. data/lib/xero-ruby/models/contacts.rb +205 -0
  152. data/lib/xero-ruby/models/country_code.rb +275 -0
  153. data/lib/xero-ruby/models/credit_note.rb +475 -0
  154. data/lib/xero-ruby/models/credit_notes.rb +205 -0
  155. data/lib/xero-ruby/models/currencies.rb +205 -0
  156. data/lib/xero-ruby/models/currency.rb +213 -0
  157. data/lib/xero-ruby/models/currency_code.rb +197 -0
  158. data/lib/xero-ruby/models/element.rb +206 -0
  159. data/lib/xero-ruby/models/employee.rb +316 -0
  160. data/lib/xero-ruby/models/employees.rb +205 -0
  161. data/lib/xero-ruby/models/error.rb +236 -0
  162. data/lib/xero-ruby/models/expense_claim.rb +350 -0
  163. data/lib/xero-ruby/models/expense_claims.rb +205 -0
  164. data/lib/xero-ruby/models/external_link.rb +257 -0
  165. data/lib/xero-ruby/models/history_record.rb +234 -0
  166. data/lib/xero-ruby/models/history_records.rb +205 -0
  167. data/lib/xero-ruby/models/invoice.rb +666 -0
  168. data/lib/xero-ruby/models/invoice_reminder.rb +204 -0
  169. data/lib/xero-ruby/models/invoice_reminders.rb +205 -0
  170. data/lib/xero-ruby/models/invoices.rb +205 -0
  171. data/lib/xero-ruby/models/item.rb +418 -0
  172. data/lib/xero-ruby/models/items.rb +205 -0
  173. data/lib/xero-ruby/models/journal.rb +310 -0
  174. data/lib/xero-ruby/models/journal_line.rb +315 -0
  175. data/lib/xero-ruby/models/journals.rb +205 -0
  176. data/lib/xero-ruby/models/line_amount_types.rb +38 -0
  177. data/lib/xero-ruby/models/line_item.rb +326 -0
  178. data/lib/xero-ruby/models/line_item_tracking.rb +239 -0
  179. data/lib/xero-ruby/models/linked_transaction.rb +369 -0
  180. data/lib/xero-ruby/models/linked_transactions.rb +205 -0
  181. data/lib/xero-ruby/models/manual_journal.rb +375 -0
  182. data/lib/xero-ruby/models/manual_journal_line.rb +266 -0
  183. data/lib/xero-ruby/models/manual_journals.rb +205 -0
  184. data/lib/xero-ruby/models/online_invoice.rb +204 -0
  185. data/lib/xero-ruby/models/online_invoices.rb +205 -0
  186. data/lib/xero-ruby/models/organisation.rb +622 -0
  187. data/lib/xero-ruby/models/organisations.rb +205 -0
  188. data/lib/xero-ruby/models/overpayment.rb +425 -0
  189. data/lib/xero-ruby/models/overpayments.rb +205 -0
  190. data/lib/xero-ruby/models/payment.rb +467 -0
  191. data/lib/xero-ruby/models/payment_service.rb +256 -0
  192. data/lib/xero-ruby/models/payment_services.rb +205 -0
  193. data/lib/xero-ruby/models/payment_term.rb +212 -0
  194. data/lib/xero-ruby/models/payment_term_type.rb +39 -0
  195. data/lib/xero-ruby/models/payments.rb +205 -0
  196. data/lib/xero-ruby/models/phone.rb +312 -0
  197. data/lib/xero-ruby/models/prepayment.rb +413 -0
  198. data/lib/xero-ruby/models/prepayments.rb +205 -0
  199. data/lib/xero-ruby/models/purchase.rb +234 -0
  200. data/lib/xero-ruby/models/purchase_order.rb +523 -0
  201. data/lib/xero-ruby/models/purchase_orders.rb +205 -0
  202. data/lib/xero-ruby/models/receipt.rb +420 -0
  203. data/lib/xero-ruby/models/receipts.rb +205 -0
  204. data/lib/xero-ruby/models/repeating_invoice.rb +400 -0
  205. data/lib/xero-ruby/models/repeating_invoices.rb +205 -0
  206. data/lib/xero-ruby/models/report.rb +299 -0
  207. data/lib/xero-ruby/models/report_attribute.rb +212 -0
  208. data/lib/xero-ruby/models/report_cell.rb +214 -0
  209. data/lib/xero-ruby/models/report_fields.rb +221 -0
  210. data/lib/xero-ruby/models/report_row.rb +223 -0
  211. data/lib/xero-ruby/models/report_rows.rb +234 -0
  212. data/lib/xero-ruby/models/report_with_row.rb +288 -0
  213. data/lib/xero-ruby/models/report_with_rows.rb +205 -0
  214. data/lib/xero-ruby/models/reports.rb +205 -0
  215. data/lib/xero-ruby/models/request_empty.rb +204 -0
  216. data/lib/xero-ruby/models/row_type.rb +39 -0
  217. data/lib/xero-ruby/models/sales_tracking_category.rb +214 -0
  218. data/lib/xero-ruby/models/schedule.rb +310 -0
  219. data/lib/xero-ruby/models/tax_component.rb +234 -0
  220. data/lib/xero-ruby/models/tax_rate.rb +367 -0
  221. data/lib/xero-ruby/models/tax_rates.rb +205 -0
  222. data/lib/xero-ruby/models/tax_type.rb +87 -0
  223. data/lib/xero-ruby/models/ten_nintey_nine_contact.rb +414 -0
  224. data/lib/xero-ruby/models/time_zone.rb +142 -0
  225. data/lib/xero-ruby/models/tracking_categories.rb +205 -0
  226. data/lib/xero-ruby/models/tracking_category.rb +320 -0
  227. data/lib/xero-ruby/models/tracking_option.rb +283 -0
  228. data/lib/xero-ruby/models/tracking_options.rb +205 -0
  229. data/lib/xero-ruby/models/user.rb +298 -0
  230. data/lib/xero-ruby/models/users.rb +205 -0
  231. data/lib/xero-ruby/models/validation_error.rb +204 -0
  232. data/lib/xero-ruby/version.rb +15 -0
  233. data/pkg/xero-ruby-0.1.0.gem +0 -0
  234. data/pkg/xero-ruby-1.0.0.gem +0 -0
  235. data/spec/api/accounting_api_spec.rb +2322 -0
  236. data/spec/api_client_spec.rb +226 -0
  237. data/spec/configuration_spec.rb +42 -0
  238. data/spec/models/account_spec.rb +165 -0
  239. data/spec/models/account_type_spec.rb +35 -0
  240. data/spec/models/accounts_payable_spec.rb +47 -0
  241. data/spec/models/accounts_receivable_spec.rb +47 -0
  242. data/spec/models/accounts_spec.rb +41 -0
  243. data/spec/models/address_spec.rb +99 -0
  244. data/spec/models/allocation_spec.rb +53 -0
  245. data/spec/models/allocations_spec.rb +41 -0
  246. data/spec/models/attachment_spec.rb +71 -0
  247. data/spec/models/attachments_spec.rb +41 -0
  248. data/spec/models/balances_spec.rb +47 -0
  249. data/spec/models/bank_transaction_spec.rb +175 -0
  250. data/spec/models/bank_transactions_spec.rb +41 -0
  251. data/spec/models/bank_transfer_spec.rb +101 -0
  252. data/spec/models/bank_transfers_spec.rb +41 -0
  253. data/spec/models/batch_payment_details_spec.rb +65 -0
  254. data/spec/models/batch_payment_spec.rb +131 -0
  255. data/spec/models/batch_payments_spec.rb +41 -0
  256. data/spec/models/bill_spec.rb +47 -0
  257. data/spec/models/branding_theme_spec.rb +59 -0
  258. data/spec/models/branding_themes_spec.rb +41 -0
  259. data/spec/models/cis_org_setting_spec.rb +53 -0
  260. data/spec/models/cis_setting_spec.rb +47 -0
  261. data/spec/models/cis_settings_spec.rb +41 -0
  262. data/spec/models/contact_group_spec.rb +63 -0
  263. data/spec/models/contact_groups_spec.rb +41 -0
  264. data/spec/models/contact_person_spec.rb +59 -0
  265. data/spec/models/contact_spec.rb +267 -0
  266. data/spec/models/contacts_spec.rb +41 -0
  267. data/spec/models/country_code_spec.rb +35 -0
  268. data/spec/models/credit_note_spec.rb +181 -0
  269. data/spec/models/credit_notes_spec.rb +41 -0
  270. data/spec/models/currencies_spec.rb +41 -0
  271. data/spec/models/currency_code_spec.rb +35 -0
  272. data/spec/models/currency_spec.rb +47 -0
  273. data/spec/models/element_spec.rb +41 -0
  274. data/spec/models/employee_spec.rb +75 -0
  275. data/spec/models/employees_spec.rb +41 -0
  276. data/spec/models/error_spec.rb +59 -0
  277. data/spec/models/expense_claim_spec.rb +111 -0
  278. data/spec/models/expense_claims_spec.rb +41 -0
  279. data/spec/models/external_link_spec.rb +57 -0
  280. data/spec/models/history_record_spec.rb +59 -0
  281. data/spec/models/history_records_spec.rb +41 -0
  282. data/spec/models/invoice_reminder_spec.rb +41 -0
  283. data/spec/models/invoice_reminders_spec.rb +41 -0
  284. data/spec/models/invoice_spec.rb +259 -0
  285. data/spec/models/invoices_spec.rb +41 -0
  286. data/spec/models/item_spec.rb +125 -0
  287. data/spec/models/items_spec.rb +41 -0
  288. data/spec/models/journal_line_spec.rb +107 -0
  289. data/spec/models/journal_spec.rb +87 -0
  290. data/spec/models/journals_spec.rb +41 -0
  291. data/spec/models/line_amount_types_spec.rb +35 -0
  292. data/spec/models/line_item_spec.rb +107 -0
  293. data/spec/models/line_item_tracking_spec.rb +53 -0
  294. data/spec/models/linked_transaction_spec.rb +113 -0
  295. data/spec/models/linked_transactions_spec.rb +41 -0
  296. data/spec/models/manual_journal_line_spec.rb +77 -0
  297. data/spec/models/manual_journal_spec.rb +117 -0
  298. data/spec/models/manual_journals_spec.rb +41 -0
  299. data/spec/models/online_invoice_spec.rb +41 -0
  300. data/spec/models/online_invoices_spec.rb +41 -0
  301. data/spec/models/organisation_spec.rb +255 -0
  302. data/spec/models/organisations_spec.rb +41 -0
  303. data/spec/models/overpayment_spec.rb +151 -0
  304. data/spec/models/overpayments_spec.rb +41 -0
  305. data/spec/models/payment_service_spec.rb +71 -0
  306. data/spec/models/payment_services_spec.rb +41 -0
  307. data/spec/models/payment_spec.rb +181 -0
  308. data/spec/models/payment_term_spec.rb +47 -0
  309. data/spec/models/payment_term_type_spec.rb +35 -0
  310. data/spec/models/payments_spec.rb +41 -0
  311. data/spec/models/phone_spec.rb +63 -0
  312. data/spec/models/prepayment_spec.rb +145 -0
  313. data/spec/models/prepayments_spec.rb +41 -0
  314. data/spec/models/purchase_order_spec.rb +207 -0
  315. data/spec/models/purchase_orders_spec.rb +41 -0
  316. data/spec/models/purchase_spec.rb +59 -0
  317. data/spec/models/receipt_spec.rb +141 -0
  318. data/spec/models/receipts_spec.rb +41 -0
  319. data/spec/models/repeating_invoice_spec.rb +139 -0
  320. data/spec/models/repeating_invoices_spec.rb +41 -0
  321. data/spec/models/report_attribute_spec.rb +47 -0
  322. data/spec/models/report_cell_spec.rb +47 -0
  323. data/spec/models/report_fields_spec.rb +53 -0
  324. data/spec/models/report_row_spec.rb +53 -0
  325. data/spec/models/report_rows_spec.rb +59 -0
  326. data/spec/models/report_spec.rb +81 -0
  327. data/spec/models/report_with_row_spec.rb +89 -0
  328. data/spec/models/report_with_rows_spec.rb +41 -0
  329. data/spec/models/reports_spec.rb +41 -0
  330. data/spec/models/request_empty_spec.rb +41 -0
  331. data/spec/models/row_type_spec.rb +35 -0
  332. data/spec/models/sales_tracking_category_spec.rb +47 -0
  333. data/spec/models/schedule_spec.rb +85 -0
  334. data/spec/models/tax_component_spec.rb +59 -0
  335. data/spec/models/tax_rate_spec.rb +115 -0
  336. data/spec/models/tax_rates_spec.rb +41 -0
  337. data/spec/models/tax_type_spec.rb +35 -0
  338. data/spec/models/ten_nintey_nine_contact_spec.rb +167 -0
  339. data/spec/models/time_zone_spec.rb +35 -0
  340. data/spec/models/tracking_categories_spec.rb +41 -0
  341. data/spec/models/tracking_category_spec.rb +75 -0
  342. data/spec/models/tracking_option_spec.rb +63 -0
  343. data/spec/models/tracking_options_spec.rb +41 -0
  344. data/spec/models/user_spec.rb +81 -0
  345. data/spec/models/users_spec.rb +41 -0
  346. data/spec/models/validation_error_spec.rb +41 -0
  347. data/spec/spec_helper.rb +111 -0
  348. data/xero-ruby.gemspec +39 -0
  349. metadata +563 -0
data/docs/Journals.md ADDED
@@ -0,0 +1,17 @@
1
+ # XeroRuby::Journals
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **journals** | [**Array<Journal>**](Journal.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'XeroRuby'
13
+
14
+ instance = XeroRuby::Journals.new(journals: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,16 @@
1
+ # XeroRuby::LineAmountTypes
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'XeroRuby'
12
+
13
+ instance = XeroRuby::LineAmountTypes.new()
14
+ ```
15
+
16
+
data/docs/LineItem.md ADDED
@@ -0,0 +1,41 @@
1
+ # XeroRuby::LineItem
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **line_item_id** | **String** | LineItem unique ID | [optional]
8
+ **description** | **String** | Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a <Description> element that contains at least 1 character | [optional]
9
+ **quantity** | **Float** | LineItem Quantity | [optional]
10
+ **unit_amount** | **Float** | LineItem Unit Amount | [optional]
11
+ **item_code** | **String** | See Items | [optional]
12
+ **account_code** | **String** | See Accounts | [optional]
13
+ **tax_type** | **String** | The tax type from TaxRates | [optional]
14
+ **tax_amount** | **Float** | The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated <TaxAmount> is not correct. | [optional]
15
+ **line_amount** | **Float** | If you wish to omit either of the <Quantity> or <UnitAmount> you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if a DiscountRate has been used . i.e LineAmount = Quantity * Unit Amount * ((100 – DiscountRate)/100) | [optional]
16
+ **tracking** | [**Array<LineItemTracking>**](LineItemTracking.md) | Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 <TrackingCategory> elements. | [optional]
17
+ **discount_rate** | **String** | Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts | [optional]
18
+ **discount_amount** | **Float** | Discount amount being applied to a line item. Only supported on ACCREC invoices - ACCPAY invoices and credit notes in Xero do not support discounts. | [optional]
19
+ **repeating_invoice_id** | **String** | The Xero identifier for a Repeating Invoicee.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional]
20
+
21
+ ## Code Sample
22
+
23
+ ```ruby
24
+ require 'XeroRuby'
25
+
26
+ instance = XeroRuby::LineItem.new(line_item_id: null,
27
+ description: null,
28
+ quantity: null,
29
+ unit_amount: null,
30
+ item_code: null,
31
+ account_code: null,
32
+ tax_type: null,
33
+ tax_amount: null,
34
+ line_amount: null,
35
+ tracking: null,
36
+ discount_rate: null,
37
+ discount_amount: null,
38
+ repeating_invoice_id: null)
39
+ ```
40
+
41
+
@@ -0,0 +1,21 @@
1
+ # XeroRuby::LineItemTracking
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **tracking_category_id** | **String** | The Xero identifier for a tracking category | [optional]
8
+ **name** | **String** | The name of the tracking category | [optional]
9
+ **option** | **String** | See Tracking Options | [optional]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'XeroRuby'
15
+
16
+ instance = XeroRuby::LineItemTracking.new(tracking_category_id: 297c2dc5-cc47-4afd-8ec8-74990b8761e9,
17
+ name: Region,
18
+ option: North)
19
+ ```
20
+
21
+
@@ -0,0 +1,37 @@
1
+ # XeroRuby::LinkedTransaction
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **source_transaction_id** | **String** | Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice | [optional]
8
+ **source_line_item_id** | **String** | The line item identifier from the source transaction. |
9
+ **contact_id** | **String** | 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=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED. | [optional]
10
+ **target_transaction_id** | **String** | Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice | [optional]
11
+ **target_line_item_id** | **String** | The line item identifier from the target transaction. It is possible to link multiple billable expenses to the same TargetLineItemID. | [optional]
12
+ **linked_transaction_id** | **String** | The Xero identifier for an Linked Transaction e.g. /LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional]
13
+ **status** | **String** | 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=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED. | [optional]
14
+ **type** | **String** | This will always be BILLABLEEXPENSE. More types may be added in future. | [optional]
15
+ **updated_date_utc** | **DateTime** | The last modified date in UTC format | [optional]
16
+ **source_transaction_type_code** | **String** | The Type of the source tranasction. This will be ACCPAY if the linked transaction was created from an invoice and SPEND if it was created from a bank transaction. | [optional]
17
+ **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
18
+
19
+ ## Code Sample
20
+
21
+ ```ruby
22
+ require 'XeroRuby'
23
+
24
+ instance = XeroRuby::LinkedTransaction.new(source_transaction_id: null,
25
+ source_line_item_id: null,
26
+ contact_id: null,
27
+ target_transaction_id: null,
28
+ target_line_item_id: null,
29
+ linked_transaction_id: null,
30
+ status: null,
31
+ type: null,
32
+ updated_date_utc: null,
33
+ source_transaction_type_code: null,
34
+ validation_errors: null)
35
+ ```
36
+
37
+
@@ -0,0 +1,17 @@
1
+ # XeroRuby::LinkedTransactions
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **linked_transactions** | [**Array<LinkedTransaction>**](LinkedTransaction.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'XeroRuby'
13
+
14
+ instance = XeroRuby::LinkedTransactions.new(linked_transactions: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,41 @@
1
+ # XeroRuby::ManualJournal
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **narration** | **String** | Description of journal being posted |
8
+ **journal_lines** | [**Array<ManualJournalLine>**](ManualJournalLine.md) | See JournalLines |
9
+ **date** | **Date** | Date journal was posted – YYYY-MM-DD | [optional]
10
+ **line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
11
+ **status** | **String** | See Manual Journal Status Codes | [optional]
12
+ **url** | **String** | Url link to a source document – shown as “Go to [appName]” in the Xero app | [optional]
13
+ **show_on_cash_basis_reports** | **Boolean** | Boolean – default is true if not specified | [optional]
14
+ **has_attachments** | **Boolean** | Boolean to indicate if a manual journal has an attachment | [optional]
15
+ **updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
16
+ **manual_journal_id** | **String** | The Xero identifier for a Manual Journal | [optional]
17
+ **warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional]
18
+ **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
19
+ **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional]
20
+
21
+ ## Code Sample
22
+
23
+ ```ruby
24
+ require 'XeroRuby'
25
+
26
+ instance = XeroRuby::ManualJournal.new(narration: null,
27
+ journal_lines: null,
28
+ date: null,
29
+ line_amount_types: null,
30
+ status: null,
31
+ url: null,
32
+ show_on_cash_basis_reports: null,
33
+ has_attachments: null,
34
+ updated_date_utc: null,
35
+ manual_journal_id: null,
36
+ warnings: null,
37
+ validation_errors: null,
38
+ attachments: null)
39
+ ```
40
+
41
+
@@ -0,0 +1,29 @@
1
+ # XeroRuby::ManualJournalLine
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **line_amount** | **Float** | total for line. Debits are positive, credits are negative value | [optional]
8
+ **account_code** | **String** | See Accounts | [optional]
9
+ **description** | **String** | Description for journal line | [optional]
10
+ **tax_type** | **String** | The tax type from TaxRates | [optional]
11
+ **tracking** | [**Array<TrackingCategory>**](TrackingCategory.md) | Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements. | [optional]
12
+ **tax_amount** | **Float** | The calculated tax amount based on the TaxType and LineAmount | [optional]
13
+ **is_blank** | **Boolean** | is the line blank | [optional]
14
+
15
+ ## Code Sample
16
+
17
+ ```ruby
18
+ require 'XeroRuby'
19
+
20
+ instance = XeroRuby::ManualJournalLine.new(line_amount: -2569.0,
21
+ account_code: 720,
22
+ description: Coded incorrectly Office Equipment should be Computer Equipment,
23
+ tax_type: null,
24
+ tracking: null,
25
+ tax_amount: 0.0,
26
+ is_blank: false)
27
+ ```
28
+
29
+
@@ -0,0 +1,17 @@
1
+ # XeroRuby::ManualJournals
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **manual_journals** | [**Array<ManualJournal>**](ManualJournal.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'XeroRuby'
13
+
14
+ instance = XeroRuby::ManualJournals.new(manual_journals: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # XeroRuby::OnlineInvoice
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **online_invoice_url** | **String** | the URL to an online invoice | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'XeroRuby'
13
+
14
+ instance = XeroRuby::OnlineInvoice.new(online_invoice_url: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,17 @@
1
+ # XeroRuby::OnlineInvoices
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **online_invoices** | [**Array<OnlineInvoice>**](OnlineInvoice.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'XeroRuby'
13
+
14
+ instance = XeroRuby::OnlineInvoices.new(online_invoices: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,79 @@
1
+ # XeroRuby::Organisation
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **organisation_id** | **String** | Unique Xero identifier | [optional]
8
+ **api_key** | **String** | Display a unique key used for Xero-to-Xero transactions | [optional]
9
+ **name** | **String** | Display name of organisation shown in Xero | [optional]
10
+ **legal_name** | **String** | Organisation name shown on Reports | [optional]
11
+ **pays_tax** | **Boolean** | Boolean to describe if organisation is registered with a local tax authority i.e. true, false | [optional]
12
+ **version** | **String** | See Version Types | [optional]
13
+ **organisation_type** | **String** | Organisation Type | [optional]
14
+ **base_currency** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
15
+ **country_code** | [**CountryCode**](CountryCode.md) | | [optional]
16
+ **is_demo_company** | **Boolean** | Boolean to describe if organisation is a demo company. | [optional]
17
+ **organisation_status** | **String** | Will be set to ACTIVE if you can connect to organisation via the Xero API | [optional]
18
+ **registration_number** | **String** | Shows for New Zealand, Australian and UK organisations | [optional]
19
+ **tax_number** | **String** | Shown if set. Displays in the Xero UI as Tax File Number (AU), GST Number (NZ), VAT Number (UK) and Tax ID Number (US & Global). | [optional]
20
+ **financial_year_end_day** | **Integer** | Calendar day e.g. 0-31 | [optional]
21
+ **financial_year_end_month** | **Integer** | Calendar Month e.g. 1-12 | [optional]
22
+ **sales_tax_basis** | **String** | The accounting basis used for tax returns. See Sales Tax Basis | [optional]
23
+ **sales_tax_period** | **String** | The frequency with which tax returns are processed. See Sales Tax Period | [optional]
24
+ **default_sales_tax** | **String** | The default for LineAmountTypes on sales transactions | [optional]
25
+ **default_purchases_tax** | **String** | The default for LineAmountTypes on purchase transactions | [optional]
26
+ **period_lock_date** | **Date** | Shown if set. See lock dates | [optional]
27
+ **end_of_year_lock_date** | **Date** | Shown if set. See lock dates | [optional]
28
+ **created_date_utc** | **DateTime** | Timestamp when the organisation was created in Xero | [optional]
29
+ **timezone** | [**TimeZone**](TimeZone.md) | | [optional]
30
+ **organisation_entity_type** | **String** | Organisation Type | [optional]
31
+ **short_code** | **String** | A unique identifier for the organisation. Potential uses. | [optional]
32
+ **_class** | **String** | Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM) | [optional]
33
+ **edition** | **String** | BUSINESS or PARTNER. Partner edition organisations are sold exclusively through accounting partners and have restricted functionality (e.g. no access to invoicing) | [optional]
34
+ **line_of_business** | **String** | Description of business type as defined in Organisation settings | [optional]
35
+ **addresses** | [**Array<Address>**](Address.md) | Address details for organisation – see Addresses | [optional]
36
+ **phones** | [**Array<Phone>**](Phone.md) | Phones details for organisation – see Phones | [optional]
37
+ **external_links** | [**Array<ExternalLink>**](ExternalLink.md) | Organisation profile links for popular services such as Facebook,Twitter, GooglePlus and LinkedIn. You can also add link to your website here. Shown if Organisation settings is updated in Xero. See ExternalLinks below | [optional]
38
+ **payment_terms** | [**PaymentTerm**](PaymentTerm.md) | | [optional]
39
+
40
+ ## Code Sample
41
+
42
+ ```ruby
43
+ require 'XeroRuby'
44
+
45
+ instance = XeroRuby::Organisation.new(organisation_id: 8be9db36-3598-4755-ba5c-c2dbc8c4a7a2,
46
+ api_key: null,
47
+ name: null,
48
+ legal_name: null,
49
+ pays_tax: null,
50
+ version: null,
51
+ organisation_type: null,
52
+ base_currency: null,
53
+ country_code: null,
54
+ is_demo_company: null,
55
+ organisation_status: null,
56
+ registration_number: null,
57
+ tax_number: null,
58
+ financial_year_end_day: null,
59
+ financial_year_end_month: null,
60
+ sales_tax_basis: null,
61
+ sales_tax_period: null,
62
+ default_sales_tax: null,
63
+ default_purchases_tax: null,
64
+ period_lock_date: null,
65
+ end_of_year_lock_date: null,
66
+ created_date_utc: null,
67
+ timezone: null,
68
+ organisation_entity_type: null,
69
+ short_code: null,
70
+ _class: null,
71
+ edition: null,
72
+ line_of_business: null,
73
+ addresses: null,
74
+ phones: null,
75
+ external_links: null,
76
+ payment_terms: null)
77
+ ```
78
+
79
+
@@ -0,0 +1,17 @@
1
+ # XeroRuby::Organisations
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **organisations** | [**Array<Organisation>**](Organisation.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'XeroRuby'
13
+
14
+ instance = XeroRuby::Organisations.new(organisations: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,51 @@
1
+ # XeroRuby::Overpayment
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **type** | **String** | See Overpayment Types | [optional]
8
+ **contact** | [**Contact**](Contact.md) | | [optional]
9
+ **date** | **Date** | The date the overpayment is created YYYY-MM-DD | [optional]
10
+ **status** | **String** | See Overpayment Status Codes | [optional]
11
+ **line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
12
+ **line_items** | [**Array<LineItem>**](LineItem.md) | See Overpayment Line Items | [optional]
13
+ **sub_total** | **Float** | The subtotal of the overpayment excluding taxes | [optional]
14
+ **total_tax** | **Float** | The total tax on the overpayment | [optional]
15
+ **total** | **Float** | The total of the overpayment (subtotal + total tax) | [optional]
16
+ **updated_date_utc** | **DateTime** | UTC timestamp of last update to the overpayment | [optional]
17
+ **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
18
+ **overpayment_id** | **String** | Xero generated unique identifier | [optional]
19
+ **currency_rate** | **Float** | The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used | [optional]
20
+ **remaining_credit** | **Float** | The remaining credit balance on the overpayment | [optional]
21
+ **allocations** | [**Array<Allocation>**](Allocation.md) | See Allocations | [optional]
22
+ **payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional]
23
+ **has_attachments** | **Boolean** | boolean to indicate if a overpayment has an attachment | [optional]
24
+ **attachments** | [**Array<Attachment>**](Attachment.md) | See Attachments | [optional]
25
+
26
+ ## Code Sample
27
+
28
+ ```ruby
29
+ require 'XeroRuby'
30
+
31
+ instance = XeroRuby::Overpayment.new(type: null,
32
+ contact: null,
33
+ date: null,
34
+ status: null,
35
+ line_amount_types: null,
36
+ line_items: null,
37
+ sub_total: null,
38
+ total_tax: null,
39
+ total: null,
40
+ updated_date_utc: null,
41
+ currency_code: null,
42
+ overpayment_id: null,
43
+ currency_rate: null,
44
+ remaining_credit: null,
45
+ allocations: null,
46
+ payments: null,
47
+ has_attachments: null,
48
+ attachments: null)
49
+ ```
50
+
51
+
@@ -0,0 +1,17 @@
1
+ # XeroRuby::Overpayments
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **overpayments** | [**Array<Overpayment>**](Overpayment.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'XeroRuby'
13
+
14
+ instance = XeroRuby::Overpayments.new(overpayments: null)
15
+ ```
16
+
17
+