xero-ruby 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +68 -0
  3. data/docs/accounting/AccountingApi.md +1497 -785
  4. data/docs/accounting/Allocation.md +11 -1
  5. data/docs/accounting/BankTransfer.md +1 -1
  6. data/docs/accounting/BatchPayment.md +1 -1
  7. data/docs/accounting/Contact.md +2 -2
  8. data/docs/accounting/CreditNote.md +2 -2
  9. data/docs/accounting/Invoice.md +2 -2
  10. data/docs/accounting/Organisation.md +2 -0
  11. data/docs/accounting/Payment.md +4 -4
  12. data/docs/accounting/Quote.md +5 -1
  13. data/docs/assets/AssetApi.md +40 -16
  14. data/docs/assets/AssetType.md +1 -1
  15. data/docs/projects/Amount.md +19 -0
  16. data/docs/projects/ChargeType.md +16 -0
  17. data/docs/projects/CurrencyCode.md +16 -0
  18. data/docs/projects/Error.md +19 -0
  19. data/docs/projects/Pagination.md +23 -0
  20. data/docs/projects/Project.md +59 -0
  21. data/docs/projects/ProjectApi.md +979 -0
  22. data/docs/projects/ProjectCreateOrUpdate.md +23 -0
  23. data/docs/projects/ProjectPatch.md +17 -0
  24. data/docs/projects/ProjectStatus.md +16 -0
  25. data/docs/projects/ProjectUser.md +21 -0
  26. data/docs/projects/ProjectUsers.md +19 -0
  27. data/docs/projects/Projects.md +19 -0
  28. data/docs/projects/Task.md +45 -0
  29. data/docs/projects/TaskCreateOrUpdate.md +23 -0
  30. data/docs/projects/Tasks.md +19 -0
  31. data/docs/projects/TimeEntries.md +19 -0
  32. data/docs/projects/TimeEntry.md +33 -0
  33. data/docs/projects/TimeEntryCreateOrUpdate.md +25 -0
  34. data/lib/xero-ruby.rb +21 -2
  35. data/lib/xero-ruby/api/accounting_api.rb +77 -85
  36. data/lib/xero-ruby/api/asset_api.rb +3 -3
  37. data/lib/xero-ruby/api/project_api.rb +1035 -0
  38. data/lib/xero-ruby/api_client.rb +33 -7
  39. data/lib/xero-ruby/api_error.rb +2 -2
  40. data/lib/xero-ruby/configuration.rb +4 -2
  41. data/lib/xero-ruby/models/accounting/account.rb +56 -20
  42. data/lib/xero-ruby/models/accounting/account_type.rb +2 -2
  43. data/lib/xero-ruby/models/accounting/accounts.rb +4 -3
  44. data/lib/xero-ruby/models/accounting/accounts_payable.rb +5 -3
  45. data/lib/xero-ruby/models/accounting/accounts_receivable.rb +5 -3
  46. data/lib/xero-ruby/models/accounting/address.rb +15 -12
  47. data/lib/xero-ruby/models/accounting/allocation.rb +61 -8
  48. data/lib/xero-ruby/models/accounting/allocations.rb +4 -3
  49. data/lib/xero-ruby/models/accounting/attachment.rb +8 -8
  50. data/lib/xero-ruby/models/accounting/attachments.rb +4 -3
  51. data/lib/xero-ruby/models/accounting/balances.rb +5 -3
  52. data/lib/xero-ruby/models/accounting/bank_transaction.rb +35 -20
  53. data/lib/xero-ruby/models/accounting/bank_transactions.rb +4 -3
  54. data/lib/xero-ruby/models/accounting/bank_transfer.rb +15 -13
  55. data/lib/xero-ruby/models/accounting/bank_transfers.rb +4 -3
  56. data/lib/xero-ruby/models/accounting/batch_payment.rb +24 -18
  57. data/lib/xero-ruby/models/accounting/batch_payment_details.rb +7 -7
  58. data/lib/xero-ruby/models/accounting/batch_payments.rb +4 -3
  59. data/lib/xero-ruby/models/accounting/bill.rb +4 -3
  60. data/lib/xero-ruby/models/accounting/branding_theme.rb +9 -8
  61. data/lib/xero-ruby/models/accounting/branding_themes.rb +4 -3
  62. data/lib/xero-ruby/models/accounting/cis_org_setting.rb +5 -5
  63. data/lib/xero-ruby/models/accounting/cis_setting.rb +4 -4
  64. data/lib/xero-ruby/models/accounting/cis_settings.rb +4 -3
  65. data/lib/xero-ruby/models/accounting/contact.rb +46 -36
  66. data/lib/xero-ruby/models/accounting/contact_group.rb +8 -6
  67. data/lib/xero-ruby/models/accounting/contact_groups.rb +4 -3
  68. data/lib/xero-ruby/models/accounting/contact_person.rb +6 -6
  69. data/lib/xero-ruby/models/accounting/contacts.rb +4 -3
  70. data/lib/xero-ruby/models/accounting/country_code.rb +2 -2
  71. data/lib/xero-ruby/models/accounting/credit_note.rb +38 -25
  72. data/lib/xero-ruby/models/accounting/credit_notes.rb +4 -3
  73. data/lib/xero-ruby/models/accounting/currencies.rb +4 -3
  74. data/lib/xero-ruby/models/accounting/currency.rb +5 -4
  75. data/lib/xero-ruby/models/accounting/currency_code.rb +2 -2
  76. data/lib/xero-ruby/models/accounting/element.rb +10 -4
  77. data/lib/xero-ruby/models/accounting/employee.rb +13 -8
  78. data/lib/xero-ruby/models/accounting/employees.rb +4 -3
  79. data/lib/xero-ruby/models/accounting/error.rb +6 -6
  80. data/lib/xero-ruby/models/accounting/expense_claim.rb +19 -12
  81. data/lib/xero-ruby/models/accounting/expense_claims.rb +4 -3
  82. data/lib/xero-ruby/models/accounting/external_link.rb +10 -4
  83. data/lib/xero-ruby/models/accounting/history_record.rb +6 -6
  84. data/lib/xero-ruby/models/accounting/history_records.rb +4 -3
  85. data/lib/xero-ruby/models/accounting/invoice.rb +56 -37
  86. data/lib/xero-ruby/models/accounting/invoice_reminder.rb +3 -3
  87. data/lib/xero-ruby/models/accounting/invoice_reminders.rb +4 -3
  88. data/lib/xero-ruby/models/accounting/invoices.rb +4 -3
  89. data/lib/xero-ruby/models/accounting/item.rb +18 -16
  90. data/lib/xero-ruby/models/accounting/items.rb +4 -3
  91. data/lib/xero-ruby/models/accounting/journal.rb +35 -10
  92. data/lib/xero-ruby/models/accounting/journal_line.rb +14 -13
  93. data/lib/xero-ruby/models/accounting/journals.rb +4 -3
  94. data/lib/xero-ruby/models/accounting/line_amount_types.rb +2 -2
  95. data/lib/xero-ruby/models/accounting/line_item.rb +15 -15
  96. data/lib/xero-ruby/models/accounting/line_item_tracking.rb +6 -6
  97. data/lib/xero-ruby/models/accounting/linked_transaction.rb +21 -13
  98. data/lib/xero-ruby/models/accounting/linked_transactions.rb +4 -3
  99. data/lib/xero-ruby/models/accounting/manual_journal.rb +21 -15
  100. data/lib/xero-ruby/models/accounting/manual_journal_line.rb +9 -9
  101. data/lib/xero-ruby/models/accounting/manual_journals.rb +4 -3
  102. data/lib/xero-ruby/models/accounting/online_invoice.rb +3 -3
  103. data/lib/xero-ruby/models/accounting/online_invoices.rb +4 -3
  104. data/lib/xero-ruby/models/accounting/organisation.rb +103 -43
  105. data/lib/xero-ruby/models/accounting/organisations.rb +4 -3
  106. data/lib/xero-ruby/models/accounting/overpayment.rb +27 -18
  107. data/lib/xero-ruby/models/accounting/overpayments.rb +4 -3
  108. data/lib/xero-ruby/models/accounting/payment.rb +41 -22
  109. data/lib/xero-ruby/models/accounting/payment_delete.rb +3 -3
  110. data/lib/xero-ruby/models/accounting/payment_service.rb +8 -8
  111. data/lib/xero-ruby/models/accounting/payment_services.rb +4 -3
  112. data/lib/xero-ruby/models/accounting/payment_term.rb +5 -3
  113. data/lib/xero-ruby/models/accounting/payment_term_type.rb +2 -2
  114. data/lib/xero-ruby/models/accounting/payments.rb +4 -3
  115. data/lib/xero-ruby/models/accounting/phone.rb +12 -6
  116. data/lib/xero-ruby/models/accounting/prepayment.rb +28 -18
  117. data/lib/xero-ruby/models/accounting/prepayments.rb +4 -3
  118. data/lib/xero-ruby/models/accounting/purchase.rb +6 -6
  119. data/lib/xero-ruby/models/accounting/purchase_order.rb +36 -28
  120. data/lib/xero-ruby/models/accounting/purchase_orders.rb +4 -3
  121. data/lib/xero-ruby/models/accounting/quote.rb +50 -24
  122. data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +2 -2
  123. data/lib/xero-ruby/models/accounting/quote_status_codes.rb +2 -2
  124. data/lib/xero-ruby/models/accounting/quotes.rb +4 -3
  125. data/lib/xero-ruby/models/accounting/receipt.rb +25 -16
  126. data/lib/xero-ruby/models/accounting/receipts.rb +4 -3
  127. data/lib/xero-ruby/models/accounting/repeating_invoice.rb +23 -14
  128. data/lib/xero-ruby/models/accounting/repeating_invoices.rb +4 -3
  129. data/lib/xero-ruby/models/accounting/report.rb +10 -8
  130. data/lib/xero-ruby/models/accounting/report_attribute.rb +5 -3
  131. data/lib/xero-ruby/models/accounting/report_cell.rb +5 -3
  132. data/lib/xero-ruby/models/accounting/report_fields.rb +6 -3
  133. data/lib/xero-ruby/models/accounting/report_row.rb +6 -3
  134. data/lib/xero-ruby/models/accounting/report_rows.rb +7 -3
  135. data/lib/xero-ruby/models/accounting/report_with_row.rb +11 -9
  136. data/lib/xero-ruby/models/accounting/report_with_rows.rb +4 -3
  137. data/lib/xero-ruby/models/accounting/reports.rb +4 -3
  138. data/lib/xero-ruby/models/accounting/request_empty.rb +3 -3
  139. data/lib/xero-ruby/models/accounting/row_type.rb +2 -2
  140. data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +4 -4
  141. data/lib/xero-ruby/models/accounting/schedule.rb +19 -11
  142. data/lib/xero-ruby/models/accounting/tax_component.rb +6 -6
  143. data/lib/xero-ruby/models/accounting/tax_rate.rb +94 -16
  144. data/lib/xero-ruby/models/accounting/tax_rates.rb +4 -3
  145. data/lib/xero-ruby/models/accounting/tax_type.rb +2 -2
  146. data/lib/xero-ruby/models/accounting/ten_nintey_nine_contact.rb +24 -24
  147. data/lib/xero-ruby/models/accounting/time_zone.rb +2 -2
  148. data/lib/xero-ruby/models/accounting/tracking_categories.rb +4 -3
  149. data/lib/xero-ruby/models/accounting/tracking_category.rb +11 -8
  150. data/lib/xero-ruby/models/accounting/tracking_option.rb +9 -6
  151. data/lib/xero-ruby/models/accounting/tracking_options.rb +4 -3
  152. data/lib/xero-ruby/models/accounting/user.rb +16 -9
  153. data/lib/xero-ruby/models/accounting/users.rb +4 -3
  154. data/lib/xero-ruby/models/accounting/validation_error.rb +3 -3
  155. data/lib/xero-ruby/models/assets/asset.rb +17 -14
  156. data/lib/xero-ruby/models/assets/asset_status.rb +2 -2
  157. data/lib/xero-ruby/models/assets/asset_status_query_param.rb +2 -2
  158. data/lib/xero-ruby/models/assets/asset_type.rb +9 -13
  159. data/lib/xero-ruby/models/assets/assets.rb +5 -3
  160. data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +9 -9
  161. data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +21 -10
  162. data/lib/xero-ruby/models/assets/error.rb +7 -7
  163. data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +8 -8
  164. data/lib/xero-ruby/models/assets/pagination.rb +7 -3
  165. data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +7 -7
  166. data/lib/xero-ruby/models/assets/setting.rb +10 -10
  167. data/lib/xero-ruby/models/projects/amount.rb +214 -0
  168. data/lib/xero-ruby/models/projects/charge_type.rb +38 -0
  169. data/lib/xero-ruby/models/projects/currency_code.rb +199 -0
  170. data/lib/xero-ruby/models/projects/error.rb +214 -0
  171. data/lib/xero-ruby/models/projects/pagination.rb +234 -0
  172. data/lib/xero-ruby/models/projects/project.rb +419 -0
  173. data/lib/xero-ruby/models/projects/project_create_or_update.rb +239 -0
  174. data/lib/xero-ruby/models/projects/project_patch.rb +209 -0
  175. data/lib/xero-ruby/models/projects/project_status.rb +37 -0
  176. data/lib/xero-ruby/models/projects/project_user.rb +224 -0
  177. data/lib/xero-ruby/models/projects/project_users.rb +216 -0
  178. data/lib/xero-ruby/models/projects/projects.rb +216 -0
  179. data/lib/xero-ruby/models/projects/task.rb +381 -0
  180. data/lib/xero-ruby/models/projects/task_create_or_update.rb +249 -0
  181. data/lib/xero-ruby/models/projects/tasks.rb +216 -0
  182. data/lib/xero-ruby/models/projects/time_entries.rb +216 -0
  183. data/lib/xero-ruby/models/projects/time_entry.rb +320 -0
  184. data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +264 -0
  185. data/lib/xero-ruby/version.rb +3 -3
  186. data/spec/accounting/api/accounting_api_spec.rb +3 -3
  187. data/spec/api_client_spec.rb +23 -23
  188. data/spec/assets/api/asset_api_spec.rb +3 -3
  189. data/spec/configuration_spec.rb +7 -23
  190. data/spec/projects/api/project_api_spec.rb +229 -0
  191. data/spec/projects/models/amount_spec.rb +47 -0
  192. data/spec/projects/models/charge_type_spec.rb +35 -0
  193. data/spec/projects/models/currency_code_spec.rb +35 -0
  194. data/spec/projects/models/error_spec.rb +47 -0
  195. data/spec/projects/models/pagination_spec.rb +59 -0
  196. data/spec/projects/models/project_create_or_update_spec.rb +59 -0
  197. data/spec/projects/models/project_patch_spec.rb +41 -0
  198. data/spec/projects/models/project_spec.rb +167 -0
  199. data/spec/projects/models/project_status_spec.rb +35 -0
  200. data/spec/projects/models/project_user_spec.rb +53 -0
  201. data/spec/projects/models/project_users_spec.rb +47 -0
  202. data/spec/projects/models/projects_spec.rb +47 -0
  203. data/spec/projects/models/task_create_or_update_spec.rb +59 -0
  204. data/spec/projects/models/task_spec.rb +129 -0
  205. data/spec/projects/models/tasks_spec.rb +47 -0
  206. data/spec/projects/models/time_entries_spec.rb +47 -0
  207. data/spec/projects/models/time_entry_create_or_update_spec.rb +65 -0
  208. data/spec/projects/models/time_entry_spec.rb +93 -0
  209. data/xero-ruby.gem +0 -0
  210. data/xero-ruby.gemspec +3 -3
  211. metadata +83 -7
  212. data/xero-ruby-1.0.gem +0 -0
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -15,8 +15,9 @@ require 'date'
15
15
 
16
16
  module XeroRuby::Accounting
17
17
  class Prepayments
18
- attr_accessor :prepayments
19
18
 
19
+ attr_accessor :prepayments
20
+
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
21
22
  def self.attribute_map
22
23
  {
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,16 +17,16 @@ module XeroRuby::Accounting
17
17
  class Purchase
18
18
  # Unit Price of the item. By default UnitPrice is rounded to two decimal places. You can use 4 decimal places by adding the unitdp=4 querystring parameter to your request.
19
19
  attr_accessor :unit_price
20
-
20
+
21
21
  # Default account code to be used for purchased/sale. Not applicable to the purchase details of tracked items
22
22
  attr_accessor :account_code
23
-
23
+
24
24
  # Cost of goods sold account. Only applicable to the purchase details of tracked items.
25
25
  attr_accessor :cogs_account_code
26
-
26
+
27
27
  # The tax type from TaxRates
28
28
  attr_accessor :tax_type
29
-
29
+
30
30
  # Attribute mapping from ruby-style variable name to JSON key.
31
31
  def self.attribute_map
32
32
  {
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -15,87 +15,95 @@ require 'date'
15
15
 
16
16
  module XeroRuby::Accounting
17
17
  class PurchaseOrder
18
- attr_accessor :contact
19
18
 
19
+ attr_accessor :contact
20
+
20
21
  # See LineItems
21
22
  attr_accessor :line_items
22
-
23
+
23
24
  # Date purchase order was issued – YYYY-MM-DD. If the Date element is not specified then it will default to the current date based on the timezone setting of the organisation
24
25
  attr_accessor :date
25
-
26
+
26
27
  # Date the goods are to be delivered – YYYY-MM-DD
27
28
  attr_accessor :delivery_date
29
+
28
30
 
29
31
  attr_accessor :line_amount_types
30
-
32
+
31
33
  # Unique alpha numeric code identifying purchase order (when missing will auto-generate from your Organisation Invoice Settings)
32
34
  attr_accessor :purchase_order_number
33
-
35
+
34
36
  # Additional reference number
35
37
  attr_accessor :reference
36
-
38
+
37
39
  # See BrandingThemes
38
40
  attr_accessor :branding_theme_id
41
+
39
42
 
40
43
  attr_accessor :currency_code
41
-
44
+
42
45
  # See Purchase Order Status Codes
43
46
  attr_accessor :status
44
-
47
+ DRAFT = "DRAFT".freeze
48
+ SUBMITTED = "SUBMITTED".freeze
49
+ AUTHORISED = "AUTHORISED".freeze
50
+ BILLED = "BILLED".freeze
51
+ DELETED = "DELETED".freeze
52
+
45
53
  # Boolean to set whether the purchase order should be marked as “sent”. This can be set only on purchase orders that have been approved or billed
46
54
  attr_accessor :sent_to_contact
47
-
55
+
48
56
  # The address the goods are to be delivered to
49
57
  attr_accessor :delivery_address
50
-
58
+
51
59
  # The person that the delivery is going to
52
60
  attr_accessor :attention_to
53
-
61
+
54
62
  # The phone number for the person accepting the delivery
55
63
  attr_accessor :telephone
56
-
64
+
57
65
  # A free text feild for instructions (500 characters max)
58
66
  attr_accessor :delivery_instructions
59
-
67
+
60
68
  # The date the goods are expected to arrive.
61
69
  attr_accessor :expected_arrival_date
62
-
70
+
63
71
  # Xero generated unique identifier for purchase order
64
72
  attr_accessor :purchase_order_id
65
-
73
+
66
74
  # The currency rate for a multicurrency purchase order. If no rate is specified, the XE.com day rate is used.
67
75
  attr_accessor :currency_rate
68
-
76
+
69
77
  # Total of purchase order excluding taxes
70
78
  attr_accessor :sub_total
71
-
79
+
72
80
  # Total tax on purchase order
73
81
  attr_accessor :total_tax
74
-
82
+
75
83
  # Total of Purchase Order tax inclusive (i.e. SubTotal + TotalTax)
76
84
  attr_accessor :total
77
-
85
+
78
86
  # Total of discounts applied on the purchase order line items
79
87
  attr_accessor :total_discount
80
-
88
+
81
89
  # boolean to indicate if a purchase order has an attachment
82
90
  attr_accessor :has_attachments
83
-
91
+
84
92
  # Last modified date UTC format
85
93
  attr_accessor :updated_date_utc
86
-
94
+
87
95
  # A string to indicate if a invoice status
88
96
  attr_accessor :status_attribute_string
89
-
97
+
90
98
  # Displays array of validation error messages from the API
91
99
  attr_accessor :validation_errors
92
-
100
+
93
101
  # Displays array of warning messages from the API
94
102
  attr_accessor :warnings
95
-
103
+
96
104
  # Displays array of attachments from the API
97
105
  attr_accessor :attachments
98
-
106
+
99
107
  class EnumAttributeValidator
100
108
  attr_reader :datatype
101
109
  attr_reader :allowable_values
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -15,8 +15,9 @@ require 'date'
15
15
 
16
16
  module XeroRuby::Accounting
17
17
  class PurchaseOrders
18
- attr_accessor :purchase_orders
19
18
 
19
+ attr_accessor :purchase_orders
20
+
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
21
22
  def self.attribute_map
22
23
  {
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,66 +17,76 @@ module XeroRuby::Accounting
17
17
  class Quote
18
18
  # QuoteID GUID is automatically generated and is returned after create or GET.
19
19
  attr_accessor :quote_id
20
-
20
+
21
21
  # Unique alpha numeric code identifying a quote (Max Length = 255)
22
22
  attr_accessor :quote_number
23
-
23
+
24
24
  # Additional reference number
25
25
  attr_accessor :reference
26
-
26
+
27
27
  # Terms of the quote
28
28
  attr_accessor :terms
29
+
29
30
 
30
31
  attr_accessor :contact
31
-
32
+
32
33
  # See LineItems
33
34
  attr_accessor :line_items
34
-
35
+
35
36
  # Date quote was issued – YYYY-MM-DD. If the Date element is not specified it will default to the current date based on the timezone setting of the organisation
36
37
  attr_accessor :date
37
-
38
+
38
39
  # Date the quote was issued (YYYY-MM-DD)
39
40
  attr_accessor :date_string
40
-
41
+
41
42
  # Date the quote expires – YYYY-MM-DD.
42
43
  attr_accessor :expiry_date
43
-
44
+
44
45
  # Date the quote expires – YYYY-MM-DD.
45
46
  attr_accessor :expiry_date_string
47
+
46
48
 
47
49
  attr_accessor :status
50
+
48
51
 
49
52
  attr_accessor :currency_code
50
-
53
+
51
54
  # The currency rate for a multicurrency quote
52
55
  attr_accessor :currency_rate
53
-
56
+
54
57
  # Total of quote excluding taxes.
55
58
  attr_accessor :sub_total
56
-
59
+
57
60
  # Total tax on quote
58
61
  attr_accessor :total_tax
59
-
62
+
60
63
  # Total of Quote tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts
61
64
  attr_accessor :total
62
-
65
+
63
66
  # Total of discounts applied on the quote line items
64
67
  attr_accessor :total_discount
65
-
68
+
66
69
  # Title text for the quote
67
70
  attr_accessor :title
68
-
71
+
69
72
  # Summary text for the quote
70
73
  attr_accessor :summary
71
-
74
+
72
75
  # See BrandingThemes
73
76
  attr_accessor :branding_theme_id
74
-
77
+
75
78
  # Last modified date UTC format
76
79
  attr_accessor :updated_date_utc
80
+
77
81
 
78
82
  attr_accessor :line_amount_types
79
-
83
+
84
+ # A string to indicate if a invoice status
85
+ attr_accessor :status_attribute_string
86
+
87
+ # Displays array of validation error messages from the API
88
+ attr_accessor :validation_errors
89
+
80
90
  # Attribute mapping from ruby-style variable name to JSON key.
81
91
  def self.attribute_map
82
92
  {
@@ -101,7 +111,9 @@ module XeroRuby::Accounting
101
111
  :'summary' => :'Summary',
102
112
  :'branding_theme_id' => :'BrandingThemeID',
103
113
  :'updated_date_utc' => :'UpdatedDateUTC',
104
- :'line_amount_types' => :'LineAmountTypes'
114
+ :'line_amount_types' => :'LineAmountTypes',
115
+ :'status_attribute_string' => :'StatusAttributeString',
116
+ :'validation_errors' => :'ValidationErrors'
105
117
  }
106
118
  end
107
119
 
@@ -129,7 +141,9 @@ module XeroRuby::Accounting
129
141
  :'summary' => :'String',
130
142
  :'branding_theme_id' => :'String',
131
143
  :'updated_date_utc' => :'DateTime',
132
- :'line_amount_types' => :'QuoteLineAmountTypes'
144
+ :'line_amount_types' => :'QuoteLineAmountTypes',
145
+ :'status_attribute_string' => :'String',
146
+ :'validation_errors' => :'Array<ValidationError>'
133
147
  }
134
148
  end
135
149
 
@@ -237,6 +251,16 @@ module XeroRuby::Accounting
237
251
  if attributes.key?(:'line_amount_types')
238
252
  self.line_amount_types = attributes[:'line_amount_types']
239
253
  end
254
+
255
+ if attributes.key?(:'status_attribute_string')
256
+ self.status_attribute_string = attributes[:'status_attribute_string']
257
+ end
258
+
259
+ if attributes.key?(:'validation_errors')
260
+ if (value = attributes[:'validation_errors']).is_a?(Array)
261
+ self.validation_errors = value
262
+ end
263
+ end
240
264
  end
241
265
 
242
266
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -353,7 +377,9 @@ module XeroRuby::Accounting
353
377
  summary == o.summary &&
354
378
  branding_theme_id == o.branding_theme_id &&
355
379
  updated_date_utc == o.updated_date_utc &&
356
- line_amount_types == o.line_amount_types
380
+ line_amount_types == o.line_amount_types &&
381
+ status_attribute_string == o.status_attribute_string &&
382
+ validation_errors == o.validation_errors
357
383
  end
358
384
 
359
385
  # @see the `==` method
@@ -365,7 +391,7 @@ module XeroRuby::Accounting
365
391
  # Calculates hash code according to all attributes.
366
392
  # @return [Integer] Hash code
367
393
  def hash
368
- [quote_id, quote_number, reference, terms, contact, line_items, date, date_string, expiry_date, expiry_date_string, status, currency_code, currency_rate, sub_total, total_tax, total, total_discount, title, summary, branding_theme_id, updated_date_utc, line_amount_types].hash
394
+ [quote_id, quote_number, reference, terms, contact, line_items, date, date_string, expiry_date, expiry_date_string, status, currency_code, currency_rate, sub_total, total_tax, total, total_discount, title, summary, branding_theme_id, updated_date_utc, line_amount_types, status_attribute_string, validation_errors].hash
369
395
  end
370
396
 
371
397
  # Builds the object from hash
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -15,8 +15,9 @@ require 'date'
15
15
 
16
16
  module XeroRuby::Accounting
17
17
  class Quotes
18
- attr_accessor :quotes
19
18
 
19
+ attr_accessor :quotes
20
+
20
21
  # Attribute mapping from ruby-style variable name to JSON key.
21
22
  def self.attribute_map
22
23
  {
@@ -3,10 +3,10 @@
3
3
 
4
4
  #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
5
 
6
- The version of the OpenAPI document: 2.1.3
6
+ The version of the OpenAPI document: 2.2.2
7
7
  Contact: api@xero.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.0
9
+ OpenAPI Generator version: 4.3.1
10
10
 
11
11
  =end
12
12
 
@@ -17,54 +17,63 @@ module XeroRuby::Accounting
17
17
  class Receipt
18
18
  # Date of receipt – YYYY-MM-DD
19
19
  attr_accessor :date
20
+
20
21
 
21
22
  attr_accessor :contact
23
+
22
24
 
23
25
  attr_accessor :line_items
26
+
24
27
 
25
28
  attr_accessor :user
26
-
29
+
27
30
  # Additional reference number
28
31
  attr_accessor :reference
32
+
29
33
 
30
34
  attr_accessor :line_amount_types
31
-
35
+
32
36
  # Total of receipt excluding taxes
33
37
  attr_accessor :sub_total
34
-
38
+
35
39
  # Total tax on receipt
36
40
  attr_accessor :total_tax
37
-
41
+
38
42
  # Total of receipt tax inclusive (i.e. SubTotal + TotalTax)
39
43
  attr_accessor :total
40
-
44
+
41
45
  # Xero generated unique identifier for receipt
42
46
  attr_accessor :receipt_id
43
-
47
+
44
48
  # Current status of receipt – see status types
45
49
  attr_accessor :status
46
-
50
+ DRAFT = "DRAFT".freeze
51
+ SUBMITTED = "SUBMITTED".freeze
52
+ AUTHORISED = "AUTHORISED".freeze
53
+ DECLINED = "DECLINED".freeze
54
+ VOIDED = "VOIDED".freeze
55
+
47
56
  # Xero generated sequence number for receipt in current claim for a given user
48
57
  attr_accessor :receipt_number
49
-
58
+
50
59
  # Last modified date UTC format
51
60
  attr_accessor :updated_date_utc
52
-
61
+
53
62
  # boolean to indicate if a receipt has an attachment
54
63
  attr_accessor :has_attachments
55
-
64
+
56
65
  # URL link to a source document – shown as “Go to [appName]” in the Xero app
57
66
  attr_accessor :url
58
-
67
+
59
68
  # Displays array of validation error messages from the API
60
69
  attr_accessor :validation_errors
61
-
70
+
62
71
  # Displays array of warning messages from the API
63
72
  attr_accessor :warnings
64
-
73
+
65
74
  # Displays array of attachments from the API
66
75
  attr_accessor :attachments
67
-
76
+
68
77
  class EnumAttributeValidator
69
78
  attr_reader :datatype
70
79
  attr_reader :allowable_values