xero-ruby 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +26 -1
- data/build_notes.md +17 -0
- data/docs/accounting/AccountingApi.md +23 -11
- data/docs/accounting/ManualJournalLine.md +2 -0
- data/docs/accounting/Organisation.md +1 -1
- data/docs/accounting/Report.md +1 -1
- data/docs/accounting/{TenNinteyNineContact.md → TenNinetyNineContact.md} +2 -2
- data/lib/xero-ruby.rb +2 -2
- data/lib/xero-ruby/api/accounting_api.rb +21 -7
- data/lib/xero-ruby/api/asset_api.rb +1 -1
- data/lib/xero-ruby/api/project_api.rb +1 -1
- data/lib/xero-ruby/api_client.rb +66 -31
- data/lib/xero-ruby/api_error.rb +1 -1
- data/lib/xero-ruby/configuration.rb +1 -4
- data/lib/xero-ruby/models/accounting/account.rb +7 -2
- data/lib/xero-ruby/models/accounting/account_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/accounts.rb +5 -1
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +7 -3
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +7 -3
- data/lib/xero-ruby/models/accounting/address.rb +5 -1
- data/lib/xero-ruby/models/accounting/allocation.rb +6 -2
- data/lib/xero-ruby/models/accounting/allocations.rb +5 -1
- data/lib/xero-ruby/models/accounting/attachment.rb +5 -1
- data/lib/xero-ruby/models/accounting/attachments.rb +5 -1
- data/lib/xero-ruby/models/accounting/balances.rb +5 -1
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +9 -5
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +5 -1
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +7 -3
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +5 -1
- data/lib/xero-ruby/models/accounting/batch_payment.rb +6 -2
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +5 -1
- data/lib/xero-ruby/models/accounting/batch_payments.rb +5 -1
- data/lib/xero-ruby/models/accounting/bill.rb +5 -1
- data/lib/xero-ruby/models/accounting/branding_theme.rb +5 -1
- data/lib/xero-ruby/models/accounting/branding_themes.rb +5 -1
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +5 -1
- data/lib/xero-ruby/models/accounting/cis_setting.rb +5 -1
- data/lib/xero-ruby/models/accounting/cis_settings.rb +5 -1
- data/lib/xero-ruby/models/accounting/contact.rb +6 -2
- data/lib/xero-ruby/models/accounting/contact_group.rb +5 -1
- data/lib/xero-ruby/models/accounting/contact_groups.rb +5 -1
- data/lib/xero-ruby/models/accounting/contact_person.rb +5 -1
- data/lib/xero-ruby/models/accounting/contacts.rb +5 -1
- data/lib/xero-ruby/models/accounting/country_code.rb +1 -1
- data/lib/xero-ruby/models/accounting/credit_note.rb +10 -6
- data/lib/xero-ruby/models/accounting/credit_notes.rb +5 -1
- data/lib/xero-ruby/models/accounting/currencies.rb +5 -1
- data/lib/xero-ruby/models/accounting/currency.rb +5 -1
- data/lib/xero-ruby/models/accounting/currency_code.rb +1 -1
- data/lib/xero-ruby/models/accounting/element.rb +5 -1
- data/lib/xero-ruby/models/accounting/employee.rb +5 -1
- data/lib/xero-ruby/models/accounting/employees.rb +5 -1
- data/lib/xero-ruby/models/accounting/error.rb +5 -1
- data/lib/xero-ruby/models/accounting/expense_claim.rb +8 -4
- data/lib/xero-ruby/models/accounting/expense_claims.rb +5 -1
- data/lib/xero-ruby/models/accounting/external_link.rb +5 -1
- data/lib/xero-ruby/models/accounting/history_record.rb +5 -1
- data/lib/xero-ruby/models/accounting/history_records.rb +5 -1
- data/lib/xero-ruby/models/accounting/invoice.rb +14 -10
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +5 -1
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +5 -1
- data/lib/xero-ruby/models/accounting/invoices.rb +5 -1
- data/lib/xero-ruby/models/accounting/item.rb +7 -3
- data/lib/xero-ruby/models/accounting/items.rb +5 -1
- data/lib/xero-ruby/models/accounting/journal.rb +5 -1
- data/lib/xero-ruby/models/accounting/journal_line.rb +8 -4
- data/lib/xero-ruby/models/accounting/journals.rb +5 -1
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/line_item.rb +11 -7
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +5 -1
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +5 -1
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +5 -1
- data/lib/xero-ruby/models/accounting/manual_journal.rb +5 -1
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +18 -4
- data/lib/xero-ruby/models/accounting/manual_journals.rb +5 -1
- data/lib/xero-ruby/models/accounting/online_invoice.rb +5 -1
- data/lib/xero-ruby/models/accounting/online_invoices.rb +5 -1
- data/lib/xero-ruby/models/accounting/organisation.rb +33 -3
- data/lib/xero-ruby/models/accounting/organisations.rb +5 -1
- data/lib/xero-ruby/models/accounting/overpayment.rb +10 -6
- data/lib/xero-ruby/models/accounting/overpayments.rb +5 -1
- data/lib/xero-ruby/models/accounting/payment.rb +7 -3
- data/lib/xero-ruby/models/accounting/payment_delete.rb +5 -1
- data/lib/xero-ruby/models/accounting/payment_service.rb +5 -1
- data/lib/xero-ruby/models/accounting/payment_services.rb +5 -1
- data/lib/xero-ruby/models/accounting/payment_term.rb +5 -1
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/payments.rb +5 -1
- data/lib/xero-ruby/models/accounting/phone.rb +5 -1
- data/lib/xero-ruby/models/accounting/prepayment.rb +10 -6
- data/lib/xero-ruby/models/accounting/prepayments.rb +5 -1
- data/lib/xero-ruby/models/accounting/purchase.rb +6 -2
- data/lib/xero-ruby/models/accounting/purchase_order.rb +10 -6
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +5 -1
- data/lib/xero-ruby/models/accounting/quote.rb +9 -5
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +1 -1
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +2 -1
- data/lib/xero-ruby/models/accounting/quotes.rb +5 -1
- data/lib/xero-ruby/models/accounting/receipt.rb +8 -4
- data/lib/xero-ruby/models/accounting/receipts.rb +5 -1
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +8 -4
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +5 -1
- data/lib/xero-ruby/models/accounting/report.rb +6 -2
- data/lib/xero-ruby/models/accounting/report_attribute.rb +5 -1
- data/lib/xero-ruby/models/accounting/report_cell.rb +5 -1
- data/lib/xero-ruby/models/accounting/report_fields.rb +5 -1
- data/lib/xero-ruby/models/accounting/report_row.rb +5 -1
- data/lib/xero-ruby/models/accounting/report_rows.rb +5 -1
- data/lib/xero-ruby/models/accounting/report_with_row.rb +5 -1
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +5 -1
- data/lib/xero-ruby/models/accounting/reports.rb +5 -1
- data/lib/xero-ruby/models/accounting/request_empty.rb +5 -1
- data/lib/xero-ruby/models/accounting/row_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +5 -1
- data/lib/xero-ruby/models/accounting/schedule.rb +5 -1
- data/lib/xero-ruby/models/accounting/tax_component.rb +6 -2
- data/lib/xero-ruby/models/accounting/tax_rate.rb +7 -3
- data/lib/xero-ruby/models/accounting/tax_rates.rb +5 -1
- data/lib/xero-ruby/models/accounting/tax_type.rb +1 -1
- data/lib/xero-ruby/models/accounting/{ten_nintey_nine_contact.rb → ten_ninety_nine_contact.rb} +21 -17
- data/lib/xero-ruby/models/accounting/time_zone.rb +1 -1
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +5 -1
- data/lib/xero-ruby/models/accounting/tracking_category.rb +5 -1
- data/lib/xero-ruby/models/accounting/tracking_option.rb +5 -1
- data/lib/xero-ruby/models/accounting/tracking_options.rb +5 -1
- data/lib/xero-ruby/models/accounting/user.rb +5 -1
- data/lib/xero-ruby/models/accounting/users.rb +5 -1
- data/lib/xero-ruby/models/accounting/validation_error.rb +5 -1
- data/lib/xero-ruby/models/assets/asset.rb +8 -4
- data/lib/xero-ruby/models/assets/asset_status.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +1 -1
- data/lib/xero-ruby/models/assets/asset_type.rb +5 -1
- data/lib/xero-ruby/models/assets/assets.rb +5 -1
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +11 -7
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +6 -2
- data/lib/xero-ruby/models/assets/error.rb +5 -1
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +5 -1
- data/lib/xero-ruby/models/assets/pagination.rb +5 -1
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +5 -1
- data/lib/xero-ruby/models/assets/setting.rb +5 -1
- data/lib/xero-ruby/models/projects/amount.rb +6 -2
- data/lib/xero-ruby/models/projects/charge_type.rb +1 -1
- data/lib/xero-ruby/models/projects/currency_code.rb +1 -1
- data/lib/xero-ruby/models/projects/error.rb +5 -1
- data/lib/xero-ruby/models/projects/pagination.rb +5 -1
- data/lib/xero-ruby/models/projects/project.rb +5 -1
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +6 -2
- data/lib/xero-ruby/models/projects/project_patch.rb +5 -1
- data/lib/xero-ruby/models/projects/project_status.rb +1 -1
- data/lib/xero-ruby/models/projects/project_user.rb +5 -1
- data/lib/xero-ruby/models/projects/project_users.rb +5 -1
- data/lib/xero-ruby/models/projects/projects.rb +5 -1
- data/lib/xero-ruby/models/projects/task.rb +5 -1
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +5 -1
- data/lib/xero-ruby/models/projects/tasks.rb +5 -1
- data/lib/xero-ruby/models/projects/time_entries.rb +5 -1
- data/lib/xero-ruby/models/projects/time_entry.rb +5 -1
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +5 -1
- data/lib/xero-ruby/version.rb +2 -2
- data/spec/accounting/models/ten_nintey_nine_contact_spec.rb +6 -6
- data/spec/api_client_spec.rb +8 -10
- data/xero-ruby.gemspec +1 -2
- metadata +5 -5
- data/xero-ruby.gem +0 -0
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class OnlineInvoice
|
|
18
20
|
# the URL to an online invoice
|
|
19
21
|
attr_accessor :online_invoice_url
|
|
@@ -128,6 +130,8 @@ module XeroRuby::Accounting
|
|
|
128
130
|
value.to_i
|
|
129
131
|
when :Float
|
|
130
132
|
value.to_f
|
|
133
|
+
when :BigDecimal
|
|
134
|
+
BigDecimal(value.to_s)
|
|
131
135
|
when :Boolean
|
|
132
136
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
133
137
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class OnlineInvoices
|
|
18
20
|
|
|
19
21
|
attr_accessor :online_invoices
|
|
@@ -130,6 +132,8 @@ module XeroRuby::Accounting
|
|
|
130
132
|
value.to_i
|
|
131
133
|
when :Float
|
|
132
134
|
value.to_f
|
|
135
|
+
when :BigDecimal
|
|
136
|
+
BigDecimal(value.to_s)
|
|
133
137
|
when :Boolean
|
|
134
138
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
135
139
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Organisation
|
|
18
20
|
# Unique Xero identifier
|
|
19
21
|
attr_accessor :organisation_id
|
|
@@ -112,7 +114,8 @@ module XeroRuby::Accounting
|
|
|
112
114
|
N6_MONTHLY = "6MONTHLY".freeze
|
|
113
115
|
QUARTERLY = "QUARTERLY".freeze
|
|
114
116
|
YEARLY = "YEARLY".freeze
|
|
115
|
-
|
|
117
|
+
# duplicate definitions generated: https://github.com/XeroAPI/xero-ruby/issues/53#issuecomment-668893305
|
|
118
|
+
# NONE = "NONE".freeze
|
|
116
119
|
|
|
117
120
|
# The default for LineAmountTypes on sales transactions
|
|
118
121
|
attr_accessor :default_sales_tax
|
|
@@ -132,8 +135,21 @@ module XeroRuby::Accounting
|
|
|
132
135
|
|
|
133
136
|
attr_accessor :timezone
|
|
134
137
|
|
|
135
|
-
# Organisation Type
|
|
138
|
+
# Organisation Entity Type
|
|
136
139
|
attr_accessor :organisation_entity_type
|
|
140
|
+
# duplicate definitions generated: https://github.com/XeroAPI/xero-ruby/issues/53#issuecomment-668893305
|
|
141
|
+
# ACCOUNTING_PRACTICE = "ACCOUNTING_PRACTICE".freeze
|
|
142
|
+
# COMPANY = "COMPANY".freeze
|
|
143
|
+
# CHARITY = "CHARITY".freeze
|
|
144
|
+
# CLUB_OR_SOCIETY = "CLUB_OR_SOCIETY".freeze
|
|
145
|
+
# LOOK_THROUGH_COMPANY = "LOOK_THROUGH_COMPANY".freeze
|
|
146
|
+
# NOT_FOR_PROFIT = "NOT_FOR_PROFIT".freeze
|
|
147
|
+
# PARTNERSHIP = "PARTNERSHIP".freeze
|
|
148
|
+
# S_CORPORATION = "S_CORPORATION".freeze
|
|
149
|
+
# SELF_MANAGED_SUPERANNUATION_FUND = "SELF_MANAGED_SUPERANNUATION_FUND".freeze
|
|
150
|
+
# SOLE_TRADER = "SOLE_TRADER".freeze
|
|
151
|
+
# SUPERANNUATION_FUND = "SUPERANNUATION_FUND".freeze
|
|
152
|
+
# TRUST = "TRUST".freeze
|
|
137
153
|
|
|
138
154
|
# A unique identifier for the organisation. Potential uses.
|
|
139
155
|
attr_accessor :short_code
|
|
@@ -444,6 +460,8 @@ module XeroRuby::Accounting
|
|
|
444
460
|
return false unless sales_tax_basis_validator.valid?(@sales_tax_basis)
|
|
445
461
|
sales_tax_period_validator = EnumAttributeValidator.new('String', ["MONTHLY", "QUARTERLY1", "QUARTERLY2", "QUARTERLY3", "ANNUALLY", "ONEMONTHS", "TWOMONTHS", "SIXMONTHS", "1MONTHLY", "2MONTHLY", "3MONTHLY", "6MONTHLY", "QUARTERLY", "YEARLY", "NONE"])
|
|
446
462
|
return false unless sales_tax_period_validator.valid?(@sales_tax_period)
|
|
463
|
+
organisation_entity_type_validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
|
|
464
|
+
return false unless organisation_entity_type_validator.valid?(@organisation_entity_type)
|
|
447
465
|
_class_validator = EnumAttributeValidator.new('String', ["DEMO", "TRIAL", "STARTER", "STANDARD", "PREMIUM", "PREMIUM_20", "PREMIUM_50", "PREMIUM_100", "LEDGER", "GST_CASHBOOK", "NON_GST_CASHBOOK"])
|
|
448
466
|
return false unless _class_validator.valid?(@_class)
|
|
449
467
|
edition_validator = EnumAttributeValidator.new('String', ["BUSINESS", "PARTNER"])
|
|
@@ -491,6 +509,16 @@ module XeroRuby::Accounting
|
|
|
491
509
|
@sales_tax_period = sales_tax_period
|
|
492
510
|
end
|
|
493
511
|
|
|
512
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
513
|
+
# @param [Object] organisation_entity_type Object to be assigned
|
|
514
|
+
def organisation_entity_type=(organisation_entity_type)
|
|
515
|
+
validator = EnumAttributeValidator.new('String', ["ACCOUNTING_PRACTICE", "COMPANY", "CHARITY", "CLUB_OR_SOCIETY", "LOOK_THROUGH_COMPANY", "NOT_FOR_PROFIT", "PARTNERSHIP", "S_CORPORATION", "SELF_MANAGED_SUPERANNUATION_FUND", "SOLE_TRADER", "SUPERANNUATION_FUND", "TRUST"])
|
|
516
|
+
unless validator.valid?(organisation_entity_type)
|
|
517
|
+
fail ArgumentError, "invalid value for \"organisation_entity_type\", must be one of #{validator.allowable_values}."
|
|
518
|
+
end
|
|
519
|
+
@organisation_entity_type = organisation_entity_type
|
|
520
|
+
end
|
|
521
|
+
|
|
494
522
|
# Custom attribute writer method checking allowed values (enum).
|
|
495
523
|
# @param [Object] _class Object to be assigned
|
|
496
524
|
def _class=(_class)
|
|
@@ -606,6 +634,8 @@ module XeroRuby::Accounting
|
|
|
606
634
|
value.to_i
|
|
607
635
|
when :Float
|
|
608
636
|
value.to_f
|
|
637
|
+
when :BigDecimal
|
|
638
|
+
BigDecimal(value.to_s)
|
|
609
639
|
when :Boolean
|
|
610
640
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
611
641
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Organisations
|
|
18
20
|
|
|
19
21
|
attr_accessor :organisations
|
|
@@ -130,6 +132,8 @@ module XeroRuby::Accounting
|
|
|
130
132
|
value.to_i
|
|
131
133
|
when :Float
|
|
132
134
|
value.to_f
|
|
135
|
+
when :BigDecimal
|
|
136
|
+
BigDecimal(value.to_s)
|
|
133
137
|
when :Boolean
|
|
134
138
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
135
139
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Overpayment
|
|
18
20
|
# See Overpayment Types
|
|
19
21
|
attr_accessor :type
|
|
@@ -134,14 +136,14 @@ module XeroRuby::Accounting
|
|
|
134
136
|
:'status' => :'String',
|
|
135
137
|
:'line_amount_types' => :'LineAmountTypes',
|
|
136
138
|
:'line_items' => :'Array<LineItem>',
|
|
137
|
-
:'sub_total' => :'
|
|
138
|
-
:'total_tax' => :'
|
|
139
|
-
:'total' => :'
|
|
139
|
+
:'sub_total' => :'BigDecimal',
|
|
140
|
+
:'total_tax' => :'BigDecimal',
|
|
141
|
+
:'total' => :'BigDecimal',
|
|
140
142
|
:'updated_date_utc' => :'DateTime',
|
|
141
143
|
:'currency_code' => :'CurrencyCode',
|
|
142
144
|
:'overpayment_id' => :'String',
|
|
143
|
-
:'currency_rate' => :'
|
|
144
|
-
:'remaining_credit' => :'
|
|
145
|
+
:'currency_rate' => :'BigDecimal',
|
|
146
|
+
:'remaining_credit' => :'BigDecimal',
|
|
145
147
|
:'allocations' => :'Array<Allocation>',
|
|
146
148
|
:'applied_amount' => :'Float',
|
|
147
149
|
:'payments' => :'Array<Payment>',
|
|
@@ -370,6 +372,8 @@ module XeroRuby::Accounting
|
|
|
370
372
|
value.to_i
|
|
371
373
|
when :Float
|
|
372
374
|
value.to_f
|
|
375
|
+
when :BigDecimal
|
|
376
|
+
BigDecimal(value.to_s)
|
|
373
377
|
when :Boolean
|
|
374
378
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
375
379
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Overpayments
|
|
18
20
|
|
|
19
21
|
attr_accessor :overpayments
|
|
@@ -130,6 +132,8 @@ module XeroRuby::Accounting
|
|
|
130
132
|
value.to_i
|
|
131
133
|
when :Float
|
|
132
134
|
value.to_f
|
|
135
|
+
when :BigDecimal
|
|
136
|
+
BigDecimal(value.to_s)
|
|
133
137
|
when :Boolean
|
|
134
138
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
135
139
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Payment
|
|
18
20
|
|
|
19
21
|
attr_accessor :invoice
|
|
@@ -161,8 +163,8 @@ module XeroRuby::Accounting
|
|
|
161
163
|
:'account' => :'Account',
|
|
162
164
|
:'code' => :'String',
|
|
163
165
|
:'date' => :'Date',
|
|
164
|
-
:'currency_rate' => :'
|
|
165
|
-
:'amount' => :'
|
|
166
|
+
:'currency_rate' => :'BigDecimal',
|
|
167
|
+
:'amount' => :'BigDecimal',
|
|
166
168
|
:'reference' => :'String',
|
|
167
169
|
:'is_reconciled' => :'Boolean',
|
|
168
170
|
:'status' => :'String',
|
|
@@ -420,6 +422,8 @@ module XeroRuby::Accounting
|
|
|
420
422
|
value.to_i
|
|
421
423
|
when :Float
|
|
422
424
|
value.to_f
|
|
425
|
+
when :BigDecimal
|
|
426
|
+
BigDecimal(value.to_s)
|
|
423
427
|
when :Boolean
|
|
424
428
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
425
429
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class PaymentDelete
|
|
18
20
|
# The status of the payment.
|
|
19
21
|
attr_accessor :status
|
|
@@ -135,6 +137,8 @@ module XeroRuby::Accounting
|
|
|
135
137
|
value.to_i
|
|
136
138
|
when :Float
|
|
137
139
|
value.to_f
|
|
140
|
+
when :BigDecimal
|
|
141
|
+
BigDecimal(value.to_s)
|
|
138
142
|
when :Boolean
|
|
139
143
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
140
144
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class PaymentService
|
|
18
20
|
# Xero identifier
|
|
19
21
|
attr_accessor :payment_service_id
|
|
@@ -180,6 +182,8 @@ module XeroRuby::Accounting
|
|
|
180
182
|
value.to_i
|
|
181
183
|
when :Float
|
|
182
184
|
value.to_f
|
|
185
|
+
when :BigDecimal
|
|
186
|
+
BigDecimal(value.to_s)
|
|
183
187
|
when :Boolean
|
|
184
188
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
185
189
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class PaymentServices
|
|
18
20
|
|
|
19
21
|
attr_accessor :payment_services
|
|
@@ -130,6 +132,8 @@ module XeroRuby::Accounting
|
|
|
130
132
|
value.to_i
|
|
131
133
|
when :Float
|
|
132
134
|
value.to_f
|
|
135
|
+
when :BigDecimal
|
|
136
|
+
BigDecimal(value.to_s)
|
|
133
137
|
when :Boolean
|
|
134
138
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
135
139
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class PaymentTerm
|
|
18
20
|
|
|
19
21
|
attr_accessor :bills
|
|
@@ -138,6 +140,8 @@ module XeroRuby::Accounting
|
|
|
138
140
|
value.to_i
|
|
139
141
|
when :Float
|
|
140
142
|
value.to_f
|
|
143
|
+
when :BigDecimal
|
|
144
|
+
BigDecimal(value.to_s)
|
|
141
145
|
when :Boolean
|
|
142
146
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
143
147
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Payments
|
|
18
20
|
|
|
19
21
|
attr_accessor :payments
|
|
@@ -130,6 +132,8 @@ module XeroRuby::Accounting
|
|
|
130
132
|
value.to_i
|
|
131
133
|
when :Float
|
|
132
134
|
value.to_f
|
|
135
|
+
when :BigDecimal
|
|
136
|
+
BigDecimal(value.to_s)
|
|
133
137
|
when :Boolean
|
|
134
138
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
135
139
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Phone
|
|
18
20
|
|
|
19
21
|
attr_accessor :phone_type
|
|
@@ -242,6 +244,8 @@ module XeroRuby::Accounting
|
|
|
242
244
|
value.to_i
|
|
243
245
|
when :Float
|
|
244
246
|
value.to_f
|
|
247
|
+
when :BigDecimal
|
|
248
|
+
BigDecimal(value.to_s)
|
|
245
249
|
when :Boolean
|
|
246
250
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
247
251
|
true
|
|
@@ -3,7 +3,7 @@
|
|
|
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.2.
|
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
|
7
7
|
Contact: api@xero.com
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
OpenAPI Generator version: 4.3.1
|
|
@@ -14,6 +14,8 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Prepayment
|
|
18
20
|
# See Prepayment Types
|
|
19
21
|
attr_accessor :type
|
|
@@ -135,15 +137,15 @@ module XeroRuby::Accounting
|
|
|
135
137
|
:'status' => :'String',
|
|
136
138
|
:'line_amount_types' => :'LineAmountTypes',
|
|
137
139
|
:'line_items' => :'Array<LineItem>',
|
|
138
|
-
:'sub_total' => :'
|
|
139
|
-
:'total_tax' => :'
|
|
140
|
-
:'total' => :'
|
|
140
|
+
:'sub_total' => :'BigDecimal',
|
|
141
|
+
:'total_tax' => :'BigDecimal',
|
|
142
|
+
:'total' => :'BigDecimal',
|
|
141
143
|
:'reference' => :'String',
|
|
142
144
|
:'updated_date_utc' => :'DateTime',
|
|
143
145
|
:'currency_code' => :'CurrencyCode',
|
|
144
146
|
:'prepayment_id' => :'String',
|
|
145
|
-
:'currency_rate' => :'
|
|
146
|
-
:'remaining_credit' => :'
|
|
147
|
+
:'currency_rate' => :'BigDecimal',
|
|
148
|
+
:'remaining_credit' => :'BigDecimal',
|
|
147
149
|
:'allocations' => :'Array<Allocation>',
|
|
148
150
|
:'applied_amount' => :'Float',
|
|
149
151
|
:'has_attachments' => :'Boolean',
|
|
@@ -369,6 +371,8 @@ module XeroRuby::Accounting
|
|
|
369
371
|
value.to_i
|
|
370
372
|
when :Float
|
|
371
373
|
value.to_f
|
|
374
|
+
when :BigDecimal
|
|
375
|
+
BigDecimal(value.to_s)
|
|
372
376
|
when :Boolean
|
|
373
377
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
374
378
|
true
|