xero-ruby 1.0 → 2.0.3

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 (343) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +43 -3
  3. data/build_notes.md +21 -0
  4. data/docs/accounting/AccountingApi.md +1514 -722
  5. data/docs/accounting/Allocation.md +11 -1
  6. data/docs/accounting/BankTransfer.md +1 -1
  7. data/docs/accounting/BatchPayment.md +1 -1
  8. data/docs/accounting/Contact.md +2 -2
  9. data/docs/accounting/CreditNote.md +2 -2
  10. data/docs/accounting/Invoice.md +2 -2
  11. data/docs/accounting/Journal.md +1 -1
  12. data/docs/accounting/ManualJournalLine.md +2 -0
  13. data/docs/accounting/Organisation.md +3 -1
  14. data/docs/accounting/Payment.md +6 -4
  15. data/docs/accounting/Quote.md +5 -1
  16. data/docs/accounting/Report.md +1 -1
  17. data/docs/accounting/{TenNinteyNineContact.md → TenNinetyNineContact.md} +2 -2
  18. data/docs/assets/AssetApi.md +40 -16
  19. data/docs/assets/AssetType.md +1 -1
  20. data/docs/projects/Amount.md +19 -0
  21. data/docs/projects/ChargeType.md +16 -0
  22. data/docs/projects/CurrencyCode.md +16 -0
  23. data/docs/projects/Error.md +19 -0
  24. data/docs/projects/Pagination.md +23 -0
  25. data/docs/projects/Project.md +59 -0
  26. data/docs/projects/ProjectApi.md +979 -0
  27. data/docs/projects/ProjectCreateOrUpdate.md +23 -0
  28. data/docs/projects/ProjectPatch.md +17 -0
  29. data/docs/projects/ProjectStatus.md +16 -0
  30. data/docs/projects/ProjectUser.md +21 -0
  31. data/docs/projects/ProjectUsers.md +19 -0
  32. data/docs/projects/Projects.md +19 -0
  33. data/docs/projects/Task.md +45 -0
  34. data/docs/projects/TaskCreateOrUpdate.md +23 -0
  35. data/docs/projects/Tasks.md +19 -0
  36. data/docs/projects/TimeEntries.md +19 -0
  37. data/docs/projects/TimeEntry.md +33 -0
  38. data/docs/projects/TimeEntryCreateOrUpdate.md +25 -0
  39. data/lib/xero-ruby.rb +22 -3
  40. data/lib/xero-ruby/api/accounting_api.rb +85 -9
  41. data/lib/xero-ruby/api/asset_api.rb +3 -3
  42. data/lib/xero-ruby/api/project_api.rb +1035 -0
  43. data/lib/xero-ruby/api_client.rb +103 -37
  44. data/lib/xero-ruby/api_error.rb +2 -2
  45. data/lib/xero-ruby/configuration.rb +4 -5
  46. data/lib/xero-ruby/models/accounting/account.rb +61 -20
  47. data/lib/xero-ruby/models/accounting/account_type.rb +2 -2
  48. data/lib/xero-ruby/models/accounting/accounts.rb +8 -3
  49. data/lib/xero-ruby/models/accounting/accounts_payable.rb +11 -5
  50. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +11 -5
  51. data/lib/xero-ruby/models/accounting/address.rb +19 -12
  52. data/lib/xero-ruby/models/accounting/allocation.rb +66 -9
  53. data/lib/xero-ruby/models/accounting/allocations.rb +8 -3
  54. data/lib/xero-ruby/models/accounting/attachment.rb +12 -8
  55. data/lib/xero-ruby/models/accounting/attachments.rb +8 -3
  56. data/lib/xero-ruby/models/accounting/balances.rb +9 -3
  57. data/lib/xero-ruby/models/accounting/bank_transaction.rb +43 -24
  58. data/lib/xero-ruby/models/accounting/bank_transactions.rb +8 -3
  59. data/lib/xero-ruby/models/accounting/bank_transfer.rb +20 -14
  60. data/lib/xero-ruby/models/accounting/bank_transfers.rb +8 -3
  61. data/lib/xero-ruby/models/accounting/batch_payment.rb +29 -19
  62. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +11 -7
  63. data/lib/xero-ruby/models/accounting/batch_payments.rb +8 -3
  64. data/lib/xero-ruby/models/accounting/bill.rb +8 -3
  65. data/lib/xero-ruby/models/accounting/branding_theme.rb +13 -8
  66. data/lib/xero-ruby/models/accounting/branding_themes.rb +8 -3
  67. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +9 -5
  68. data/lib/xero-ruby/models/accounting/cis_setting.rb +8 -4
  69. data/lib/xero-ruby/models/accounting/cis_settings.rb +8 -3
  70. data/lib/xero-ruby/models/accounting/contact.rb +51 -37
  71. data/lib/xero-ruby/models/accounting/contact_group.rb +12 -6
  72. data/lib/xero-ruby/models/accounting/contact_groups.rb +8 -3
  73. data/lib/xero-ruby/models/accounting/contact_person.rb +10 -6
  74. data/lib/xero-ruby/models/accounting/contacts.rb +8 -3
  75. data/lib/xero-ruby/models/accounting/country_code.rb +2 -2
  76. data/lib/xero-ruby/models/accounting/credit_note.rb +47 -30
  77. data/lib/xero-ruby/models/accounting/credit_notes.rb +8 -3
  78. data/lib/xero-ruby/models/accounting/currencies.rb +8 -3
  79. data/lib/xero-ruby/models/accounting/currency.rb +9 -4
  80. data/lib/xero-ruby/models/accounting/currency_code.rb +4 -4
  81. data/lib/xero-ruby/models/accounting/element.rb +14 -4
  82. data/lib/xero-ruby/models/accounting/employee.rb +17 -8
  83. data/lib/xero-ruby/models/accounting/employees.rb +8 -3
  84. data/lib/xero-ruby/models/accounting/error.rb +10 -6
  85. data/lib/xero-ruby/models/accounting/expense_claim.rb +26 -15
  86. data/lib/xero-ruby/models/accounting/expense_claims.rb +8 -3
  87. data/lib/xero-ruby/models/accounting/external_link.rb +14 -4
  88. data/lib/xero-ruby/models/accounting/history_record.rb +10 -6
  89. data/lib/xero-ruby/models/accounting/history_records.rb +8 -3
  90. data/lib/xero-ruby/models/accounting/invoice.rb +69 -46
  91. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +7 -3
  92. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +8 -3
  93. data/lib/xero-ruby/models/accounting/invoices.rb +8 -3
  94. data/lib/xero-ruby/models/accounting/item.rb +24 -18
  95. data/lib/xero-ruby/models/accounting/items.rb +8 -3
  96. data/lib/xero-ruby/models/accounting/journal.rb +40 -11
  97. data/lib/xero-ruby/models/accounting/journal_line.rb +21 -16
  98. data/lib/xero-ruby/models/accounting/journals.rb +8 -3
  99. data/lib/xero-ruby/models/accounting/line_amount_types.rb +2 -2
  100. data/lib/xero-ruby/models/accounting/line_item.rb +25 -21
  101. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +10 -6
  102. data/lib/xero-ruby/models/accounting/linked_transaction.rb +25 -13
  103. data/lib/xero-ruby/models/accounting/linked_transactions.rb +8 -3
  104. data/lib/xero-ruby/models/accounting/manual_journal.rb +25 -15
  105. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +26 -12
  106. data/lib/xero-ruby/models/accounting/manual_journals.rb +8 -3
  107. data/lib/xero-ruby/models/accounting/online_invoice.rb +7 -3
  108. data/lib/xero-ruby/models/accounting/online_invoices.rb +8 -3
  109. data/lib/xero-ruby/models/accounting/organisation.rb +122 -32
  110. data/lib/xero-ruby/models/accounting/organisations.rb +8 -3
  111. data/lib/xero-ruby/models/accounting/overpayment.rb +36 -23
  112. data/lib/xero-ruby/models/accounting/overpayments.rb +8 -3
  113. data/lib/xero-ruby/models/accounting/payment.rb +57 -24
  114. data/lib/xero-ruby/models/accounting/payment_delete.rb +7 -3
  115. data/lib/xero-ruby/models/accounting/payment_service.rb +12 -8
  116. data/lib/xero-ruby/models/accounting/payment_services.rb +8 -3
  117. data/lib/xero-ruby/models/accounting/payment_term.rb +9 -3
  118. data/lib/xero-ruby/models/accounting/payment_term_type.rb +2 -2
  119. data/lib/xero-ruby/models/accounting/payments.rb +8 -3
  120. data/lib/xero-ruby/models/accounting/phone.rb +16 -6
  121. data/lib/xero-ruby/models/accounting/prepayment.rb +37 -23
  122. data/lib/xero-ruby/models/accounting/prepayments.rb +8 -3
  123. data/lib/xero-ruby/models/accounting/purchase.rb +11 -7
  124. data/lib/xero-ruby/models/accounting/purchase_order.rb +45 -33
  125. data/lib/xero-ruby/models/accounting/purchase_orders.rb +8 -3
  126. data/lib/xero-ruby/models/accounting/quote.rb +58 -28
  127. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +2 -2
  128. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +3 -2
  129. data/lib/xero-ruby/models/accounting/quotes.rb +8 -3
  130. data/lib/xero-ruby/models/accounting/receipt.rb +32 -19
  131. data/lib/xero-ruby/models/accounting/receipts.rb +8 -3
  132. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +30 -17
  133. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +8 -3
  134. data/lib/xero-ruby/models/accounting/report.rb +15 -9
  135. data/lib/xero-ruby/models/accounting/report_attribute.rb +9 -3
  136. data/lib/xero-ruby/models/accounting/report_cell.rb +9 -3
  137. data/lib/xero-ruby/models/accounting/report_fields.rb +10 -3
  138. data/lib/xero-ruby/models/accounting/report_row.rb +10 -3
  139. data/lib/xero-ruby/models/accounting/report_rows.rb +11 -3
  140. data/lib/xero-ruby/models/accounting/report_with_row.rb +15 -9
  141. data/lib/xero-ruby/models/accounting/report_with_rows.rb +8 -3
  142. data/lib/xero-ruby/models/accounting/reports.rb +8 -3
  143. data/lib/xero-ruby/models/accounting/request_empty.rb +7 -3
  144. data/lib/xero-ruby/models/accounting/row_type.rb +2 -2
  145. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +8 -4
  146. data/lib/xero-ruby/models/accounting/schedule.rb +23 -11
  147. data/lib/xero-ruby/models/accounting/tax_component.rb +11 -7
  148. data/lib/xero-ruby/models/accounting/tax_rate.rb +100 -18
  149. data/lib/xero-ruby/models/accounting/tax_rates.rb +8 -3
  150. data/lib/xero-ruby/models/accounting/tax_type.rb +6 -2
  151. data/lib/xero-ruby/models/accounting/{ten_nintey_nine_contact.rb → ten_ninety_nine_contact.rb} +44 -40
  152. data/lib/xero-ruby/models/accounting/time_zone.rb +2 -2
  153. data/lib/xero-ruby/models/accounting/tracking_categories.rb +8 -3
  154. data/lib/xero-ruby/models/accounting/tracking_category.rb +15 -8
  155. data/lib/xero-ruby/models/accounting/tracking_option.rb +13 -6
  156. data/lib/xero-ruby/models/accounting/tracking_options.rb +8 -3
  157. data/lib/xero-ruby/models/accounting/user.rb +20 -9
  158. data/lib/xero-ruby/models/accounting/users.rb +8 -3
  159. data/lib/xero-ruby/models/accounting/validation_error.rb +7 -3
  160. data/lib/xero-ruby/models/assets/asset.rb +24 -17
  161. data/lib/xero-ruby/models/assets/asset_status.rb +2 -2
  162. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +2 -2
  163. data/lib/xero-ruby/models/assets/asset_type.rb +13 -13
  164. data/lib/xero-ruby/models/assets/assets.rb +9 -3
  165. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +19 -15
  166. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +26 -11
  167. data/lib/xero-ruby/models/assets/error.rb +11 -7
  168. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +12 -8
  169. data/lib/xero-ruby/models/assets/pagination.rb +11 -3
  170. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +11 -7
  171. data/lib/xero-ruby/models/assets/setting.rb +14 -10
  172. data/lib/xero-ruby/models/projects/amount.rb +218 -0
  173. data/lib/xero-ruby/models/projects/charge_type.rb +38 -0
  174. data/lib/xero-ruby/models/projects/currency_code.rb +199 -0
  175. data/lib/xero-ruby/models/projects/error.rb +218 -0
  176. data/lib/xero-ruby/models/projects/pagination.rb +238 -0
  177. data/lib/xero-ruby/models/projects/project.rb +423 -0
  178. data/lib/xero-ruby/models/projects/project_create_or_update.rb +243 -0
  179. data/lib/xero-ruby/models/projects/project_patch.rb +213 -0
  180. data/lib/xero-ruby/models/projects/project_status.rb +37 -0
  181. data/lib/xero-ruby/models/projects/project_user.rb +228 -0
  182. data/lib/xero-ruby/models/projects/project_users.rb +220 -0
  183. data/lib/xero-ruby/models/projects/projects.rb +220 -0
  184. data/lib/xero-ruby/models/projects/task.rb +385 -0
  185. data/lib/xero-ruby/models/projects/task_create_or_update.rb +253 -0
  186. data/lib/xero-ruby/models/projects/tasks.rb +220 -0
  187. data/lib/xero-ruby/models/projects/time_entries.rb +220 -0
  188. data/lib/xero-ruby/models/projects/time_entry.rb +324 -0
  189. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +268 -0
  190. data/lib/xero-ruby/version.rb +3 -3
  191. data/spec/accounting/api/accounting_api_spec.rb +19 -6
  192. data/spec/accounting/models/account_spec.rb +1 -1
  193. data/spec/accounting/models/account_type_spec.rb +1 -1
  194. data/spec/accounting/models/accounts_payable_spec.rb +1 -1
  195. data/spec/accounting/models/accounts_receivable_spec.rb +1 -1
  196. data/spec/accounting/models/accounts_spec.rb +1 -1
  197. data/spec/accounting/models/address_spec.rb +1 -1
  198. data/spec/accounting/models/allocation_spec.rb +1 -1
  199. data/spec/accounting/models/allocations_spec.rb +1 -1
  200. data/spec/accounting/models/attachment_spec.rb +1 -1
  201. data/spec/accounting/models/attachments_spec.rb +1 -1
  202. data/spec/accounting/models/balances_spec.rb +1 -1
  203. data/spec/accounting/models/bank_transaction_spec.rb +1 -1
  204. data/spec/accounting/models/bank_transactions_spec.rb +1 -1
  205. data/spec/accounting/models/bank_transfer_spec.rb +1 -1
  206. data/spec/accounting/models/bank_transfers_spec.rb +1 -1
  207. data/spec/accounting/models/batch_payment_details_spec.rb +1 -1
  208. data/spec/accounting/models/batch_payment_spec.rb +1 -1
  209. data/spec/accounting/models/batch_payments_spec.rb +1 -1
  210. data/spec/accounting/models/bill_spec.rb +1 -1
  211. data/spec/accounting/models/branding_theme_spec.rb +1 -1
  212. data/spec/accounting/models/branding_themes_spec.rb +1 -1
  213. data/spec/accounting/models/cis_org_setting_spec.rb +1 -1
  214. data/spec/accounting/models/cis_setting_spec.rb +1 -1
  215. data/spec/accounting/models/cis_settings_spec.rb +1 -1
  216. data/spec/accounting/models/contact_group_spec.rb +1 -1
  217. data/spec/accounting/models/contact_groups_spec.rb +1 -1
  218. data/spec/accounting/models/contact_person_spec.rb +1 -1
  219. data/spec/accounting/models/contact_spec.rb +1 -1
  220. data/spec/accounting/models/contacts_spec.rb +1 -1
  221. data/spec/accounting/models/country_code_spec.rb +1 -1
  222. data/spec/accounting/models/credit_note_spec.rb +1 -1
  223. data/spec/accounting/models/credit_notes_spec.rb +1 -1
  224. data/spec/accounting/models/currencies_spec.rb +1 -1
  225. data/spec/accounting/models/currency_code_spec.rb +1 -1
  226. data/spec/accounting/models/currency_spec.rb +1 -1
  227. data/spec/accounting/models/element_spec.rb +1 -1
  228. data/spec/accounting/models/employee_spec.rb +1 -1
  229. data/spec/accounting/models/employees_spec.rb +1 -1
  230. data/spec/accounting/models/error_spec.rb +1 -1
  231. data/spec/accounting/models/expense_claim_spec.rb +1 -1
  232. data/spec/accounting/models/expense_claims_spec.rb +1 -1
  233. data/spec/accounting/models/external_link_spec.rb +1 -1
  234. data/spec/accounting/models/history_record_spec.rb +1 -1
  235. data/spec/accounting/models/history_records_spec.rb +1 -1
  236. data/spec/accounting/models/invoice_reminder_spec.rb +1 -1
  237. data/spec/accounting/models/invoice_reminders_spec.rb +1 -1
  238. data/spec/accounting/models/invoice_spec.rb +1 -1
  239. data/spec/accounting/models/invoices_spec.rb +1 -1
  240. data/spec/accounting/models/item_spec.rb +1 -1
  241. data/spec/accounting/models/items_spec.rb +1 -1
  242. data/spec/accounting/models/journal_line_spec.rb +1 -1
  243. data/spec/accounting/models/journal_spec.rb +1 -1
  244. data/spec/accounting/models/journals_spec.rb +1 -1
  245. data/spec/accounting/models/line_amount_types_spec.rb +1 -1
  246. data/spec/accounting/models/line_item_spec.rb +1 -1
  247. data/spec/accounting/models/line_item_tracking_spec.rb +1 -1
  248. data/spec/accounting/models/linked_transaction_spec.rb +1 -1
  249. data/spec/accounting/models/linked_transactions_spec.rb +1 -1
  250. data/spec/accounting/models/manual_journal_line_spec.rb +1 -1
  251. data/spec/accounting/models/manual_journal_spec.rb +1 -1
  252. data/spec/accounting/models/manual_journals_spec.rb +1 -1
  253. data/spec/accounting/models/online_invoice_spec.rb +1 -1
  254. data/spec/accounting/models/online_invoices_spec.rb +1 -1
  255. data/spec/accounting/models/organisation_spec.rb +1 -1
  256. data/spec/accounting/models/organisations_spec.rb +1 -1
  257. data/spec/accounting/models/overpayment_spec.rb +1 -1
  258. data/spec/accounting/models/overpayments_spec.rb +1 -1
  259. data/spec/accounting/models/payment_delete_spec.rb +1 -1
  260. data/spec/accounting/models/payment_service_spec.rb +1 -1
  261. data/spec/accounting/models/payment_services_spec.rb +1 -1
  262. data/spec/accounting/models/payment_spec.rb +7 -1
  263. data/spec/accounting/models/payment_term_spec.rb +1 -1
  264. data/spec/accounting/models/payment_term_type_spec.rb +1 -1
  265. data/spec/accounting/models/payments_spec.rb +1 -1
  266. data/spec/accounting/models/phone_spec.rb +1 -1
  267. data/spec/accounting/models/prepayment_spec.rb +1 -1
  268. data/spec/accounting/models/prepayments_spec.rb +1 -1
  269. data/spec/accounting/models/purchase_order_spec.rb +1 -1
  270. data/spec/accounting/models/purchase_orders_spec.rb +1 -1
  271. data/spec/accounting/models/purchase_spec.rb +1 -1
  272. data/spec/accounting/models/quote_line_amount_types_spec.rb +1 -1
  273. data/spec/accounting/models/quote_spec.rb +1 -1
  274. data/spec/accounting/models/quote_status_codes_spec.rb +1 -1
  275. data/spec/accounting/models/quotes_spec.rb +1 -1
  276. data/spec/accounting/models/receipt_spec.rb +1 -1
  277. data/spec/accounting/models/receipts_spec.rb +1 -1
  278. data/spec/accounting/models/repeating_invoice_spec.rb +1 -1
  279. data/spec/accounting/models/repeating_invoices_spec.rb +1 -1
  280. data/spec/accounting/models/report_attribute_spec.rb +1 -1
  281. data/spec/accounting/models/report_cell_spec.rb +1 -1
  282. data/spec/accounting/models/report_fields_spec.rb +1 -1
  283. data/spec/accounting/models/report_row_spec.rb +1 -1
  284. data/spec/accounting/models/report_rows_spec.rb +1 -1
  285. data/spec/accounting/models/report_spec.rb +1 -1
  286. data/spec/accounting/models/report_with_row_spec.rb +1 -1
  287. data/spec/accounting/models/report_with_rows_spec.rb +1 -1
  288. data/spec/accounting/models/reports_spec.rb +1 -1
  289. data/spec/accounting/models/request_empty_spec.rb +1 -1
  290. data/spec/accounting/models/row_type_spec.rb +1 -1
  291. data/spec/accounting/models/sales_tracking_category_spec.rb +1 -1
  292. data/spec/accounting/models/schedule_spec.rb +1 -1
  293. data/spec/accounting/models/tax_component_spec.rb +1 -1
  294. data/spec/accounting/models/tax_rate_spec.rb +2 -2
  295. data/spec/accounting/models/tax_rates_spec.rb +1 -1
  296. data/spec/accounting/models/tax_type_spec.rb +1 -1
  297. data/spec/accounting/models/ten_nintey_nine_contact_spec.rb +7 -7
  298. data/spec/accounting/models/time_zone_spec.rb +1 -1
  299. data/spec/accounting/models/tracking_categories_spec.rb +1 -1
  300. data/spec/accounting/models/tracking_category_spec.rb +1 -1
  301. data/spec/accounting/models/tracking_option_spec.rb +1 -1
  302. data/spec/accounting/models/tracking_options_spec.rb +1 -1
  303. data/spec/accounting/models/user_spec.rb +1 -1
  304. data/spec/accounting/models/users_spec.rb +1 -1
  305. data/spec/accounting/models/validation_error_spec.rb +1 -1
  306. data/spec/api_client_spec.rb +120 -33
  307. data/spec/assets/api/asset_api_spec.rb +4 -4
  308. data/spec/assets/models/asset_spec.rb +1 -1
  309. data/spec/assets/models/asset_status_query_param_spec.rb +1 -1
  310. data/spec/assets/models/asset_status_spec.rb +1 -1
  311. data/spec/assets/models/asset_type_spec.rb +1 -1
  312. data/spec/assets/models/assets_spec.rb +1 -1
  313. data/spec/assets/models/book_depreciation_detail_spec.rb +1 -1
  314. data/spec/assets/models/book_depreciation_setting_spec.rb +1 -1
  315. data/spec/assets/models/error_spec.rb +1 -1
  316. data/spec/assets/models/field_validation_errors_element_spec.rb +1 -1
  317. data/spec/assets/models/pagination_spec.rb +1 -1
  318. data/spec/assets/models/resource_validation_errors_element_spec.rb +1 -1
  319. data/spec/assets/models/setting_spec.rb +1 -1
  320. data/spec/configuration_spec.rb +8 -24
  321. data/spec/projects/api/project_api_spec.rb +229 -0
  322. data/spec/projects/models/amount_spec.rb +47 -0
  323. data/spec/projects/models/charge_type_spec.rb +35 -0
  324. data/spec/projects/models/currency_code_spec.rb +35 -0
  325. data/spec/projects/models/error_spec.rb +47 -0
  326. data/spec/projects/models/pagination_spec.rb +59 -0
  327. data/spec/projects/models/project_create_or_update_spec.rb +59 -0
  328. data/spec/projects/models/project_patch_spec.rb +41 -0
  329. data/spec/projects/models/project_spec.rb +167 -0
  330. data/spec/projects/models/project_status_spec.rb +35 -0
  331. data/spec/projects/models/project_user_spec.rb +53 -0
  332. data/spec/projects/models/project_users_spec.rb +47 -0
  333. data/spec/projects/models/projects_spec.rb +47 -0
  334. data/spec/projects/models/task_create_or_update_spec.rb +59 -0
  335. data/spec/projects/models/task_spec.rb +129 -0
  336. data/spec/projects/models/tasks_spec.rb +47 -0
  337. data/spec/projects/models/time_entries_spec.rb +47 -0
  338. data/spec/projects/models/time_entry_create_or_update_spec.rb +65 -0
  339. data/spec/projects/models/time_entry_spec.rb +93 -0
  340. data/spec/spec_helper.rb +1 -1
  341. data/xero-ruby.gemspec +3 -4
  342. metadata +85 -9
  343. data/xero-ruby.gem +0 -0
@@ -5,8 +5,13 @@
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **invoice** | [**Invoice**](Invoice.md) | |
8
+ **overpayment** | [**Overpayment**](Overpayment.md) | | [optional]
9
+ **prepayment** | [**Prepayment**](Prepayment.md) | | [optional]
10
+ **credit_note** | [**CreditNote**](CreditNote.md) | | [optional]
8
11
  **amount** | **Float** | the amount being applied to the invoice |
9
12
  **date** | **Date** | the date the allocation is applied YYYY-MM-DD. |
13
+ **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
14
+ **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
10
15
 
11
16
  ## Code Sample
12
17
 
@@ -14,8 +19,13 @@ Name | Type | Description | Notes
14
19
  require 'XeroRuby::Accounting'
15
20
 
16
21
  instance = XeroRuby::Accounting::Allocation.new(invoice: null,
22
+ overpayment: null,
23
+ prepayment: null,
24
+ credit_note: null,
17
25
  amount: null,
18
- date: null)
26
+ date: null,
27
+ status_attribute_string: null,
28
+ validation_errors: null)
19
29
  ```
20
30
 
21
31
 
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **from_bank_account** | [**Account**](Account.md) | |
8
8
  **to_bank_account** | [**Account**](Account.md) | |
9
- **amount** | **String** | amount of the transaction |
9
+ **amount** | **Float** | amount of the transaction |
10
10
  **date** | **Date** | The date of the Transfer YYYY-MM-DD | [optional]
11
11
  **bank_transfer_id** | **String** | The identifier of the Bank Transfer | [optional]
12
12
  **currency_rate** | **Float** | The currency rate | [optional]
@@ -14,7 +14,7 @@ Name | Type | Description | Notes
14
14
  **date_string** | **String** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional]
15
15
  **date** | **Date** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional]
16
16
  **amount** | **Float** | The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00 | [optional]
17
- **payments** | [**Array<Payment>**](Payment.md) | | [optional]
17
+ **payments** | [**Array<Payment>**](Payment.md) | An array of payments | [optional]
18
18
  **type** | **String** | PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) | [optional]
19
19
  **status** | **String** | AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API. | [optional]
20
20
  **total_amount** | **String** | The total of the payments that make up the batch (read-only) | [optional]
@@ -41,7 +41,7 @@ Name | Type | Description | Notes
41
41
  **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional]
42
42
  **has_attachments** | **Boolean** | A boolean to indicate if a contact has an attachment | [optional] [default to false]
43
43
  **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays validation errors returned from the API | [optional]
44
- **has_validation_errors** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional]
44
+ **has_validation_errors** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional] [default to false]
45
45
  **status_attribute_string** | **String** | Status of object | [optional]
46
46
 
47
47
  ## Code Sample
@@ -86,7 +86,7 @@ instance = XeroRuby::Accounting::Contact.new(contact_id: null,
86
86
  attachments: null,
87
87
  has_attachments: false,
88
88
  validation_errors: null,
89
- has_validation_errors: null,
89
+ has_validation_errors: false,
90
90
  status_attribute_string: null)
91
91
  ```
92
92
 
@@ -28,7 +28,7 @@ Name | Type | Description | Notes
28
28
  **branding_theme_id** | **String** | See BrandingThemes | [optional]
29
29
  **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
30
30
  **has_attachments** | **Boolean** | boolean to indicate if a credit note has an attachment | [optional] [default to false]
31
- **has_errors** | **Boolean** | A boolean to indicate if a credit note has an validation errors | [optional]
31
+ **has_errors** | **Boolean** | A boolean to indicate if a credit note has an validation errors | [optional] [default to false]
32
32
  **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
33
33
 
34
34
  ## Code Sample
@@ -60,7 +60,7 @@ instance = XeroRuby::Accounting::CreditNote.new(type: null,
60
60
  branding_theme_id: null,
61
61
  status_attribute_string: null,
62
62
  has_attachments: false,
63
- has_errors: null,
63
+ has_errors: false,
64
64
  validation_errors: null)
65
65
  ```
66
66
 
@@ -38,7 +38,7 @@ Name | Type | Description | Notes
38
38
  **updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
39
39
  **credit_notes** | [**Array<CreditNote>**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional]
40
40
  **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional]
41
- **has_errors** | **Boolean** | A boolean to indicate if a invoice has an validation errors | [optional]
41
+ **has_errors** | **Boolean** | A boolean to indicate if a invoice has an validation errors | [optional] [default to false]
42
42
  **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
43
43
  **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
44
44
  **warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional]
@@ -82,7 +82,7 @@ instance = XeroRuby::Accounting::Invoice.new(type: null,
82
82
  updated_date_utc: null,
83
83
  credit_notes: null,
84
84
  attachments: null,
85
- has_errors: null,
85
+ has_errors: false,
86
86
  status_attribute_string: null,
87
87
  validation_errors: null,
88
88
  warnings: null)
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **journal_id** | **String** | Xero identifier | [optional]
8
8
  **journal_date** | **Date** | Date the journal was posted | [optional]
9
- **journal_number** | **String** | Xero generated journal number | [optional]
9
+ **journal_number** | **Integer** | Xero generated journal number | [optional]
10
10
  **created_date_utc** | **DateTime** | Created date UTC format | [optional]
11
11
  **reference** | **String** | reference field for additional indetifying information | [optional]
12
12
  **source_id** | **String** | The identifier for the source transaction (e.g. InvoiceID) | [optional]
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **line_amount** | **Float** | total for line. Debits are positive, credits are negative value | [optional]
8
8
  **account_code** | **String** | See Accounts | [optional]
9
+ **account_id** | **String** | See Accounts | [optional]
9
10
  **description** | **String** | Description for journal line | [optional]
10
11
  **tax_type** | **String** | The tax type from TaxRates | [optional]
11
12
  **tracking** | [**Array<TrackingCategory>**](TrackingCategory.md) | Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements. | [optional]
@@ -19,6 +20,7 @@ require 'XeroRuby::Accounting'
19
20
 
20
21
  instance = XeroRuby::Accounting::ManualJournalLine.new(line_amount: -2569.0,
21
22
  account_code: 720,
23
+ account_id: null,
22
24
  description: Coded incorrectly Office Equipment should be Computer Equipment,
23
25
  tax_type: null,
24
26
  tracking: null,
@@ -16,6 +16,7 @@ Name | Type | Description | Notes
16
16
  **is_demo_company** | **Boolean** | Boolean to describe if organisation is a demo company. | [optional]
17
17
  **organisation_status** | **String** | Will be set to ACTIVE if you can connect to organisation via the Xero API | [optional]
18
18
  **registration_number** | **String** | Shows for New Zealand, Australian and UK organisations | [optional]
19
+ **employer_identification_number** | **String** | Shown if set. US Only. | [optional]
19
20
  **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
21
  **financial_year_end_day** | **Integer** | Calendar day e.g. 0-31 | [optional]
21
22
  **financial_year_end_month** | **Integer** | Calendar Month e.g. 1-12 | [optional]
@@ -27,7 +28,7 @@ Name | Type | Description | Notes
27
28
  **end_of_year_lock_date** | **Date** | Shown if set. See lock dates | [optional]
28
29
  **created_date_utc** | **DateTime** | Timestamp when the organisation was created in Xero | [optional]
29
30
  **timezone** | [**TimeZone**](TimeZone.md) | | [optional]
30
- **organisation_entity_type** | **String** | Organisation Type | [optional]
31
+ **organisation_entity_type** | **String** | Organisation Entity Type | [optional]
31
32
  **short_code** | **String** | A unique identifier for the organisation. Potential uses. | [optional]
32
33
  **_class** | **String** | Organisation Classes describe which plan the Xero organisation is on (e.g. DEMO, TRIAL, PREMIUM) | [optional]
33
34
  **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]
@@ -54,6 +55,7 @@ instance = XeroRuby::Accounting::Organisation.new(organisation_id: 8be9db36-3598
54
55
  is_demo_company: null,
55
56
  organisation_status: null,
56
57
  registration_number: null,
58
+ employer_identification_number: null,
57
59
  tax_number: null,
58
60
  financial_year_end_day: null,
59
61
  financial_year_end_month: null,
@@ -24,8 +24,9 @@ Name | Type | Description | Notes
24
24
  **bank_account_number** | **String** | The suppliers bank account number the payment is being made to | [optional]
25
25
  **particulars** | **String** | The suppliers bank account number the payment is being made to | [optional]
26
26
  **details** | **String** | The information to appear on the supplier's bank account | [optional]
27
- **has_account** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional]
28
- **has_validation_errors** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional]
27
+ **has_account** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional] [default to false]
28
+ **has_validation_errors** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional] [default to false]
29
+ **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
29
30
  **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
30
31
 
31
32
  ## Code Sample
@@ -53,8 +54,9 @@ instance = XeroRuby::Accounting::Payment.new(invoice: null,
53
54
  bank_account_number: null,
54
55
  particulars: null,
55
56
  details: null,
56
- has_account: null,
57
- has_validation_errors: null,
57
+ has_account: false,
58
+ has_validation_errors: false,
59
+ status_attribute_string: null,
58
60
  validation_errors: null)
59
61
  ```
60
62
 
@@ -26,6 +26,8 @@ Name | Type | Description | Notes
26
26
  **branding_theme_id** | **String** | See BrandingThemes | [optional]
27
27
  **updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
28
28
  **line_amount_types** | [**QuoteLineAmountTypes**](QuoteLineAmountTypes.md) | | [optional]
29
+ **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
30
+ **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
29
31
 
30
32
  ## Code Sample
31
33
 
@@ -53,7 +55,9 @@ instance = XeroRuby::Accounting::Quote.new(quote_id: null,
53
55
  summary: null,
54
56
  branding_theme_id: null,
55
57
  updated_date_utc: null,
56
- line_amount_types: null)
58
+ line_amount_types: null,
59
+ status_attribute_string: null,
60
+ validation_errors: null)
57
61
  ```
58
62
 
59
63
 
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **report_title** | **String** | See Prepayment Types | [optional]
11
11
  **report_date** | **String** | Date of report | [optional]
12
12
  **updated_date_utc** | **DateTime** | Updated Date | [optional]
13
- **contacts** | [**Array<TenNinteyNineContact>**](TenNinteyNineContact.md) | | [optional]
13
+ **contacts** | [**Array<TenNinetyNineContact>**](TenNinetyNineContact.md) | | [optional]
14
14
 
15
15
  ## Code Sample
16
16
 
@@ -1,4 +1,4 @@
1
- # XeroRuby::Accounting::TenNinteyNineContact
1
+ # XeroRuby::Accounting::TenNinetyNineContact
2
2
 
3
3
  ## Properties
4
4
 
@@ -32,7 +32,7 @@ Name | Type | Description | Notes
32
32
  ```ruby
33
33
  require 'XeroRuby::Accounting'
34
34
 
35
- instance = XeroRuby::Accounting::TenNinteyNineContact.new(box1: null,
35
+ instance = XeroRuby::Accounting::TenNinetyNineContact.new(box1: null,
36
36
  box2: null,
37
37
  box3: null,
38
38
  box4: null,
@@ -39,14 +39,17 @@ token_set = fetch_valid_token_set(user) # example
39
39
 
40
40
  xero_client.refresh_token_set(token_set)
41
41
 
42
- # If using the Accounting API
42
+ # depending on the methods you need to use
43
+ # accounting_api
43
44
  api_instance = xero_client.accounting_api
44
- # Or for methods in the Assets API
45
+ # :assets_api
45
46
  api_instance = xero_client.asset_api
47
+ # :projects_api
48
+ api_instance = xero_client.projects_api
49
+
46
50
 
47
51
  xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
48
52
  asset = { "assetName":"Computer74863", "assetNumber":"123477544", "purchaseDate":"2020-01-01", "purchasePrice":100.0, "disposalPrice":23.23, "assetStatus":"Draft", "bookDepreciationSetting":{ "depreciationMethod":"StraightLine", "averagingMethod":"ActualDays", "depreciationRate":0.5, "depreciationCalculationMethod":"None" }, "bookDepreciationDetail":{ "currentCapitalGain":5.32, "currentGainLoss":3.88, "depreciationStartDate":"2020-01-02", "costLimit":100.0, "currentAccumDepreciationAmount":2.25 }, "AccountingBookValue":99.5 } # Asset | Fixed asset you are creating
49
-
50
53
  begin
51
54
  #adds a fixed asset
52
55
  result = api_instance.create_asset(xero_tenant_id, asset)
@@ -104,10 +107,14 @@ token_set = fetch_valid_token_set(user) # example
104
107
 
105
108
  xero_client.refresh_token_set(token_set)
106
109
 
107
- # If using the Accounting API
110
+ # depending on the methods you need to use
111
+ # accounting_api
108
112
  api_instance = xero_client.accounting_api
109
- # Or for methods in the Assets API
113
+ # :assets_api
110
114
  api_instance = xero_client.asset_api
115
+ # :projects_api
116
+ api_instance = xero_client.projects_api
117
+
111
118
 
112
119
  xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
113
120
  opts = {
@@ -171,14 +178,17 @@ token_set = fetch_valid_token_set(user) # example
171
178
 
172
179
  xero_client.refresh_token_set(token_set)
173
180
 
174
- # If using the Accounting API
181
+ # depending on the methods you need to use
182
+ # accounting_api
175
183
  api_instance = xero_client.accounting_api
176
- # Or for methods in the Assets API
184
+ # :assets_api
177
185
  api_instance = xero_client.asset_api
186
+ # :projects_api
187
+ api_instance = xero_client.projects_api
188
+
178
189
 
179
190
  xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
180
191
  id = '4f7bcdcb-5ec1-4258-9558-19f662fccdfe' # String | fixed asset id for single object
181
-
182
192
  begin
183
193
  #retrieves fixed asset by id
184
194
  result = api_instance.get_asset_by_id(xero_tenant_id, id)
@@ -236,13 +246,16 @@ token_set = fetch_valid_token_set(user) # example
236
246
 
237
247
  xero_client.refresh_token_set(token_set)
238
248
 
239
- # If using the Accounting API
249
+ # depending on the methods you need to use
250
+ # accounting_api
240
251
  api_instance = xero_client.accounting_api
241
- # Or for methods in the Assets API
252
+ # :assets_api
242
253
  api_instance = xero_client.asset_api
254
+ # :projects_api
255
+ api_instance = xero_client.projects_api
243
256
 
244
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
245
257
 
258
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
246
259
  begin
247
260
  #searches fixed asset settings
248
261
  result = api_instance.get_asset_settings(xero_tenant_id)
@@ -299,13 +312,16 @@ token_set = fetch_valid_token_set(user) # example
299
312
 
300
313
  xero_client.refresh_token_set(token_set)
301
314
 
302
- # If using the Accounting API
315
+ # depending on the methods you need to use
316
+ # accounting_api
303
317
  api_instance = xero_client.accounting_api
304
- # Or for methods in the Assets API
318
+ # :assets_api
305
319
  api_instance = xero_client.asset_api
320
+ # :projects_api
321
+ api_instance = xero_client.projects_api
306
322
 
307
- xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
308
323
 
324
+ xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
309
325
  begin
310
326
  #searches fixed asset types
311
327
  result = api_instance.get_asset_types(xero_tenant_id)
@@ -362,18 +378,26 @@ token_set = fetch_valid_token_set(user) # example
362
378
 
363
379
  xero_client.refresh_token_set(token_set)
364
380
 
365
- # If using the Accounting API
381
+ # depending on the methods you need to use
382
+ # accounting_api
366
383
  api_instance = xero_client.accounting_api
367
- # Or for methods in the Assets API
384
+ # :assets_api
368
385
  api_instance = xero_client.asset_api
386
+ # :projects_api
387
+ api_instance = xero_client.projects_api
388
+
369
389
 
370
390
  xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant
371
391
  status = XeroRuby::Assets::AssetStatusQueryParam.new # AssetStatusQueryParam | Required when retrieving a collection of assets. See Asset Status Codes
372
392
  opts = {
373
393
  page: 1, # Integer | Results are paged. This specifies which page of the results to return. The default page is 1.
394
+
374
395
  page_size: 5, # Integer | The number of records returned per page. By default the number of records returned is 10.
396
+
375
397
  order_by: 'AssetName', # String | Requests can be ordered by AssetType, AssetName, AssetNumber, PurchaseDate and PurchasePrice. If the asset status is DISPOSED it also allows DisposalDate and DisposalPrice.
398
+
376
399
  sort_direction: 'ASC', # String | ASC or DESC
400
+
377
401
  filter_by: 'Draft' # String | A string that can be used to filter the list to only return assets containing the text. Checks it against the AssetName, AssetNumber, Description and AssetTypeName fields.
378
402
  }
379
403
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **asset_type_id** | **String** | Xero generated unique identifier for asset types |
7
+ **asset_type_id** | **String** | Xero generated unique identifier for asset types | [optional]
8
8
  **asset_type_name** | **String** | The name of the asset type |
9
9
  **fixed_asset_account_id** | **String** | The asset account for fixed assets of this type | [optional]
10
10
  **depreciation_expense_account_id** | **String** | The expense account for the depreciation of fixed assets of this type | [optional]
@@ -0,0 +1,19 @@
1
+ # XeroRuby::Projects::Amount
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **currency** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
8
+ **value** | **Float** | | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'XeroRuby::Projects'
14
+
15
+ instance = XeroRuby::Projects::Amount.new(currency: null,
16
+ value: 1.0)
17
+ ```
18
+
19
+
@@ -0,0 +1,16 @@
1
+ # XeroRuby::Projects::ChargeType
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'XeroRuby::Projects'
12
+
13
+ instance = XeroRuby::Projects::ChargeType.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,16 @@
1
+ # XeroRuby::Projects::CurrencyCode
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+
8
+ ## Code Sample
9
+
10
+ ```ruby
11
+ require 'XeroRuby::Projects'
12
+
13
+ instance = XeroRuby::Projects::CurrencyCode.new()
14
+ ```
15
+
16
+
@@ -0,0 +1,19 @@
1
+ # XeroRuby::Projects::Error
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **message** | **String** | Exception message | [optional]
8
+ **model_state** | [**Object**](.md) | Array of Elements of validation Errors | [optional]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'XeroRuby::Projects'
14
+
15
+ instance = XeroRuby::Projects::Error.new(message: null,
16
+ model_state: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,23 @@
1
+ # XeroRuby::Projects::Pagination
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **page** | **Integer** | Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0. | [optional]
8
+ **page_size** | **Integer** | Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500. | [optional]
9
+ **page_count** | **Integer** | Number of pages available | [optional]
10
+ **item_count** | **Integer** | Number of items returned | [optional]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'XeroRuby::Projects'
16
+
17
+ instance = XeroRuby::Projects::Pagination.new(page: 1,
18
+ page_size: 10,
19
+ page_count: 1,
20
+ item_count: 2)
21
+ ```
22
+
23
+