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.
- checksums.yaml +4 -4
- data/Gemfile.lock +68 -0
- data/docs/accounting/AccountingApi.md +1497 -785
- data/docs/accounting/Allocation.md +11 -1
- data/docs/accounting/BankTransfer.md +1 -1
- data/docs/accounting/BatchPayment.md +1 -1
- data/docs/accounting/Contact.md +2 -2
- data/docs/accounting/CreditNote.md +2 -2
- data/docs/accounting/Invoice.md +2 -2
- data/docs/accounting/Organisation.md +2 -0
- data/docs/accounting/Payment.md +4 -4
- data/docs/accounting/Quote.md +5 -1
- data/docs/assets/AssetApi.md +40 -16
- data/docs/assets/AssetType.md +1 -1
- data/docs/projects/Amount.md +19 -0
- data/docs/projects/ChargeType.md +16 -0
- data/docs/projects/CurrencyCode.md +16 -0
- data/docs/projects/Error.md +19 -0
- data/docs/projects/Pagination.md +23 -0
- data/docs/projects/Project.md +59 -0
- data/docs/projects/ProjectApi.md +979 -0
- data/docs/projects/ProjectCreateOrUpdate.md +23 -0
- data/docs/projects/ProjectPatch.md +17 -0
- data/docs/projects/ProjectStatus.md +16 -0
- data/docs/projects/ProjectUser.md +21 -0
- data/docs/projects/ProjectUsers.md +19 -0
- data/docs/projects/Projects.md +19 -0
- data/docs/projects/Task.md +45 -0
- data/docs/projects/TaskCreateOrUpdate.md +23 -0
- data/docs/projects/Tasks.md +19 -0
- data/docs/projects/TimeEntries.md +19 -0
- data/docs/projects/TimeEntry.md +33 -0
- data/docs/projects/TimeEntryCreateOrUpdate.md +25 -0
- data/lib/xero-ruby.rb +21 -2
- data/lib/xero-ruby/api/accounting_api.rb +77 -85
- data/lib/xero-ruby/api/asset_api.rb +3 -3
- data/lib/xero-ruby/api/project_api.rb +1035 -0
- data/lib/xero-ruby/api_client.rb +33 -7
- data/lib/xero-ruby/api_error.rb +2 -2
- data/lib/xero-ruby/configuration.rb +4 -2
- data/lib/xero-ruby/models/accounting/account.rb +56 -20
- data/lib/xero-ruby/models/accounting/account_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/accounts.rb +4 -3
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +5 -3
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +5 -3
- data/lib/xero-ruby/models/accounting/address.rb +15 -12
- data/lib/xero-ruby/models/accounting/allocation.rb +61 -8
- data/lib/xero-ruby/models/accounting/allocations.rb +4 -3
- data/lib/xero-ruby/models/accounting/attachment.rb +8 -8
- data/lib/xero-ruby/models/accounting/attachments.rb +4 -3
- data/lib/xero-ruby/models/accounting/balances.rb +5 -3
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +35 -20
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +4 -3
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +15 -13
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +4 -3
- data/lib/xero-ruby/models/accounting/batch_payment.rb +24 -18
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +7 -7
- data/lib/xero-ruby/models/accounting/batch_payments.rb +4 -3
- data/lib/xero-ruby/models/accounting/bill.rb +4 -3
- data/lib/xero-ruby/models/accounting/branding_theme.rb +9 -8
- data/lib/xero-ruby/models/accounting/branding_themes.rb +4 -3
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +5 -5
- data/lib/xero-ruby/models/accounting/cis_setting.rb +4 -4
- data/lib/xero-ruby/models/accounting/cis_settings.rb +4 -3
- data/lib/xero-ruby/models/accounting/contact.rb +46 -36
- data/lib/xero-ruby/models/accounting/contact_group.rb +8 -6
- data/lib/xero-ruby/models/accounting/contact_groups.rb +4 -3
- data/lib/xero-ruby/models/accounting/contact_person.rb +6 -6
- data/lib/xero-ruby/models/accounting/contacts.rb +4 -3
- data/lib/xero-ruby/models/accounting/country_code.rb +2 -2
- data/lib/xero-ruby/models/accounting/credit_note.rb +38 -25
- data/lib/xero-ruby/models/accounting/credit_notes.rb +4 -3
- data/lib/xero-ruby/models/accounting/currencies.rb +4 -3
- data/lib/xero-ruby/models/accounting/currency.rb +5 -4
- data/lib/xero-ruby/models/accounting/currency_code.rb +2 -2
- data/lib/xero-ruby/models/accounting/element.rb +10 -4
- data/lib/xero-ruby/models/accounting/employee.rb +13 -8
- data/lib/xero-ruby/models/accounting/employees.rb +4 -3
- data/lib/xero-ruby/models/accounting/error.rb +6 -6
- data/lib/xero-ruby/models/accounting/expense_claim.rb +19 -12
- data/lib/xero-ruby/models/accounting/expense_claims.rb +4 -3
- data/lib/xero-ruby/models/accounting/external_link.rb +10 -4
- data/lib/xero-ruby/models/accounting/history_record.rb +6 -6
- data/lib/xero-ruby/models/accounting/history_records.rb +4 -3
- data/lib/xero-ruby/models/accounting/invoice.rb +56 -37
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +3 -3
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +4 -3
- data/lib/xero-ruby/models/accounting/invoices.rb +4 -3
- data/lib/xero-ruby/models/accounting/item.rb +18 -16
- data/lib/xero-ruby/models/accounting/items.rb +4 -3
- data/lib/xero-ruby/models/accounting/journal.rb +35 -10
- data/lib/xero-ruby/models/accounting/journal_line.rb +14 -13
- data/lib/xero-ruby/models/accounting/journals.rb +4 -3
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/accounting/line_item.rb +15 -15
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +6 -6
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +21 -13
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +4 -3
- data/lib/xero-ruby/models/accounting/manual_journal.rb +21 -15
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +9 -9
- data/lib/xero-ruby/models/accounting/manual_journals.rb +4 -3
- data/lib/xero-ruby/models/accounting/online_invoice.rb +3 -3
- data/lib/xero-ruby/models/accounting/online_invoices.rb +4 -3
- data/lib/xero-ruby/models/accounting/organisation.rb +103 -43
- data/lib/xero-ruby/models/accounting/organisations.rb +4 -3
- data/lib/xero-ruby/models/accounting/overpayment.rb +27 -18
- data/lib/xero-ruby/models/accounting/overpayments.rb +4 -3
- data/lib/xero-ruby/models/accounting/payment.rb +41 -22
- data/lib/xero-ruby/models/accounting/payment_delete.rb +3 -3
- data/lib/xero-ruby/models/accounting/payment_service.rb +8 -8
- data/lib/xero-ruby/models/accounting/payment_services.rb +4 -3
- data/lib/xero-ruby/models/accounting/payment_term.rb +5 -3
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/payments.rb +4 -3
- data/lib/xero-ruby/models/accounting/phone.rb +12 -6
- data/lib/xero-ruby/models/accounting/prepayment.rb +28 -18
- data/lib/xero-ruby/models/accounting/prepayments.rb +4 -3
- data/lib/xero-ruby/models/accounting/purchase.rb +6 -6
- data/lib/xero-ruby/models/accounting/purchase_order.rb +36 -28
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +4 -3
- data/lib/xero-ruby/models/accounting/quote.rb +50 -24
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +2 -2
- data/lib/xero-ruby/models/accounting/quotes.rb +4 -3
- data/lib/xero-ruby/models/accounting/receipt.rb +25 -16
- data/lib/xero-ruby/models/accounting/receipts.rb +4 -3
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +23 -14
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +4 -3
- data/lib/xero-ruby/models/accounting/report.rb +10 -8
- data/lib/xero-ruby/models/accounting/report_attribute.rb +5 -3
- data/lib/xero-ruby/models/accounting/report_cell.rb +5 -3
- data/lib/xero-ruby/models/accounting/report_fields.rb +6 -3
- data/lib/xero-ruby/models/accounting/report_row.rb +6 -3
- data/lib/xero-ruby/models/accounting/report_rows.rb +7 -3
- data/lib/xero-ruby/models/accounting/report_with_row.rb +11 -9
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +4 -3
- data/lib/xero-ruby/models/accounting/reports.rb +4 -3
- data/lib/xero-ruby/models/accounting/request_empty.rb +3 -3
- data/lib/xero-ruby/models/accounting/row_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +4 -4
- data/lib/xero-ruby/models/accounting/schedule.rb +19 -11
- data/lib/xero-ruby/models/accounting/tax_component.rb +6 -6
- data/lib/xero-ruby/models/accounting/tax_rate.rb +94 -16
- data/lib/xero-ruby/models/accounting/tax_rates.rb +4 -3
- data/lib/xero-ruby/models/accounting/tax_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/ten_nintey_nine_contact.rb +24 -24
- data/lib/xero-ruby/models/accounting/time_zone.rb +2 -2
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +4 -3
- data/lib/xero-ruby/models/accounting/tracking_category.rb +11 -8
- data/lib/xero-ruby/models/accounting/tracking_option.rb +9 -6
- data/lib/xero-ruby/models/accounting/tracking_options.rb +4 -3
- data/lib/xero-ruby/models/accounting/user.rb +16 -9
- data/lib/xero-ruby/models/accounting/users.rb +4 -3
- data/lib/xero-ruby/models/accounting/validation_error.rb +3 -3
- data/lib/xero-ruby/models/assets/asset.rb +17 -14
- data/lib/xero-ruby/models/assets/asset_status.rb +2 -2
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +2 -2
- data/lib/xero-ruby/models/assets/asset_type.rb +9 -13
- data/lib/xero-ruby/models/assets/assets.rb +5 -3
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +9 -9
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +21 -10
- data/lib/xero-ruby/models/assets/error.rb +7 -7
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +8 -8
- data/lib/xero-ruby/models/assets/pagination.rb +7 -3
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +7 -7
- data/lib/xero-ruby/models/assets/setting.rb +10 -10
- data/lib/xero-ruby/models/projects/amount.rb +214 -0
- data/lib/xero-ruby/models/projects/charge_type.rb +38 -0
- data/lib/xero-ruby/models/projects/currency_code.rb +199 -0
- data/lib/xero-ruby/models/projects/error.rb +214 -0
- data/lib/xero-ruby/models/projects/pagination.rb +234 -0
- data/lib/xero-ruby/models/projects/project.rb +419 -0
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +239 -0
- data/lib/xero-ruby/models/projects/project_patch.rb +209 -0
- data/lib/xero-ruby/models/projects/project_status.rb +37 -0
- data/lib/xero-ruby/models/projects/project_user.rb +224 -0
- data/lib/xero-ruby/models/projects/project_users.rb +216 -0
- data/lib/xero-ruby/models/projects/projects.rb +216 -0
- data/lib/xero-ruby/models/projects/task.rb +381 -0
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +249 -0
- data/lib/xero-ruby/models/projects/tasks.rb +216 -0
- data/lib/xero-ruby/models/projects/time_entries.rb +216 -0
- data/lib/xero-ruby/models/projects/time_entry.rb +320 -0
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +264 -0
- data/lib/xero-ruby/version.rb +3 -3
- data/spec/accounting/api/accounting_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +23 -23
- data/spec/assets/api/asset_api_spec.rb +3 -3
- data/spec/configuration_spec.rb +7 -23
- data/spec/projects/api/project_api_spec.rb +229 -0
- data/spec/projects/models/amount_spec.rb +47 -0
- data/spec/projects/models/charge_type_spec.rb +35 -0
- data/spec/projects/models/currency_code_spec.rb +35 -0
- data/spec/projects/models/error_spec.rb +47 -0
- data/spec/projects/models/pagination_spec.rb +59 -0
- data/spec/projects/models/project_create_or_update_spec.rb +59 -0
- data/spec/projects/models/project_patch_spec.rb +41 -0
- data/spec/projects/models/project_spec.rb +167 -0
- data/spec/projects/models/project_status_spec.rb +35 -0
- data/spec/projects/models/project_user_spec.rb +53 -0
- data/spec/projects/models/project_users_spec.rb +47 -0
- data/spec/projects/models/projects_spec.rb +47 -0
- data/spec/projects/models/task_create_or_update_spec.rb +59 -0
- data/spec/projects/models/task_spec.rb +129 -0
- data/spec/projects/models/tasks_spec.rb +47 -0
- data/spec/projects/models/time_entries_spec.rb +47 -0
- data/spec/projects/models/time_entry_create_or_update_spec.rb +65 -0
- data/spec/projects/models/time_entry_spec.rb +93 -0
- data/xero-ruby.gem +0 -0
- data/xero-ruby.gemspec +3 -3
- metadata +83 -7
- 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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,10 +17,10 @@ module XeroRuby::Accounting
|
|
17
17
|
class SalesTrackingCategory
|
18
18
|
# The default sales tracking category name for contacts
|
19
19
|
attr_accessor :tracking_category_name
|
20
|
-
|
20
|
+
|
21
21
|
# The default purchase tracking category name for contacts
|
22
22
|
attr_accessor :tracking_option_name
|
23
|
-
|
23
|
+
|
24
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
25
|
def self.attribute_map
|
26
26
|
{
|
@@ -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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,25 +17,33 @@ module XeroRuby::Accounting
|
|
17
17
|
class Schedule
|
18
18
|
# Integer used with the unit e.g. 1 (every 1 week), 2 (every 2 months)
|
19
19
|
attr_accessor :period
|
20
|
-
|
20
|
+
|
21
21
|
# One of the following - WEEKLY or MONTHLY
|
22
22
|
attr_accessor :unit
|
23
|
-
|
23
|
+
WEEKLY = "WEEKLY".freeze
|
24
|
+
MONTHLY = "MONTHLY".freeze
|
25
|
+
|
24
26
|
# Integer used with due date type e.g 20 (of following month), 31 (of current month)
|
25
27
|
attr_accessor :due_date
|
26
|
-
|
28
|
+
|
27
29
|
# the payment terms
|
28
30
|
attr_accessor :due_date_type
|
29
|
-
|
31
|
+
DAYSAFTERBILLDATE = "DAYSAFTERBILLDATE".freeze
|
32
|
+
DAYSAFTERBILLMONTH = "DAYSAFTERBILLMONTH".freeze
|
33
|
+
DAYSAFTERINVOICEDATE = "DAYSAFTERINVOICEDATE".freeze
|
34
|
+
DAYSAFTERINVOICEMONTH = "DAYSAFTERINVOICEMONTH".freeze
|
35
|
+
OFCURRENTMONTH = "OFCURRENTMONTH".freeze
|
36
|
+
OFFOLLOWINGMONTH = "OFFOLLOWINGMONTH".freeze
|
37
|
+
|
30
38
|
# Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)
|
31
39
|
attr_accessor :start_date
|
32
|
-
|
40
|
+
|
33
41
|
# The calendar date of the next invoice in the schedule to be generated
|
34
42
|
attr_accessor :next_scheduled_date
|
35
|
-
|
43
|
+
|
36
44
|
# Invoice end date – only returned if the template has an end date set
|
37
45
|
attr_accessor :end_date
|
38
|
-
|
46
|
+
|
39
47
|
class EnumAttributeValidator
|
40
48
|
attr_reader :datatype
|
41
49
|
attr_reader :allowable_values
|
@@ -140,7 +148,7 @@ module XeroRuby::Accounting
|
|
140
148
|
def valid?
|
141
149
|
unit_validator = EnumAttributeValidator.new('String', ["WEEKLY", "MONTHLY"])
|
142
150
|
return false unless unit_validator.valid?(@unit)
|
143
|
-
due_date_type_validator = EnumAttributeValidator.new('String', ["DAYSAFTERBILLDATE", "DAYSAFTERBILLMONTH", "OFCURRENTMONTH", "OFFOLLOWINGMONTH"])
|
151
|
+
due_date_type_validator = EnumAttributeValidator.new('String', ["DAYSAFTERBILLDATE", "DAYSAFTERBILLMONTH", "DAYSAFTERINVOICEDATE", "DAYSAFTERINVOICEMONTH", "OFCURRENTMONTH", "OFFOLLOWINGMONTH"])
|
144
152
|
return false unless due_date_type_validator.valid?(@due_date_type)
|
145
153
|
true
|
146
154
|
end
|
@@ -158,7 +166,7 @@ module XeroRuby::Accounting
|
|
158
166
|
# Custom attribute writer method checking allowed values (enum).
|
159
167
|
# @param [Object] due_date_type Object to be assigned
|
160
168
|
def due_date_type=(due_date_type)
|
161
|
-
validator = EnumAttributeValidator.new('String', ["DAYSAFTERBILLDATE", "DAYSAFTERBILLMONTH", "OFCURRENTMONTH", "OFFOLLOWINGMONTH"])
|
169
|
+
validator = EnumAttributeValidator.new('String', ["DAYSAFTERBILLDATE", "DAYSAFTERBILLMONTH", "DAYSAFTERINVOICEDATE", "DAYSAFTERINVOICEMONTH", "OFCURRENTMONTH", "OFFOLLOWINGMONTH"])
|
162
170
|
unless validator.valid?(due_date_type)
|
163
171
|
fail ArgumentError, "invalid value for \"due_date_type\", must be one of #{validator.allowable_values}."
|
164
172
|
end
|
@@ -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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,16 +17,16 @@ module XeroRuby::Accounting
|
|
17
17
|
class TaxComponent
|
18
18
|
# Name of Tax Component
|
19
19
|
attr_accessor :name
|
20
|
-
|
20
|
+
|
21
21
|
# Tax Rate (up to 4dp)
|
22
22
|
attr_accessor :rate
|
23
|
-
|
23
|
+
|
24
24
|
# Boolean to describe if Tax rate is compounded.
|
25
25
|
attr_accessor :is_compound
|
26
|
-
|
26
|
+
|
27
27
|
# Boolean to describe if tax rate is non-recoverable. Non-recoverable rates are only applicable to Canadian organisations
|
28
28
|
attr_accessor :is_non_recoverable
|
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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,40 +17,118 @@ module XeroRuby::Accounting
|
|
17
17
|
class TaxRate
|
18
18
|
# Name of tax rate
|
19
19
|
attr_accessor :name
|
20
|
-
|
20
|
+
|
21
21
|
# The tax type
|
22
22
|
attr_accessor :tax_type
|
23
|
-
|
23
|
+
|
24
24
|
# See TaxComponents
|
25
25
|
attr_accessor :tax_components
|
26
|
-
|
26
|
+
|
27
27
|
# See Status Codes
|
28
28
|
attr_accessor :status
|
29
|
-
|
29
|
+
ACTIVE = "ACTIVE".freeze
|
30
|
+
DELETED = "DELETED".freeze
|
31
|
+
ARCHIVED = "ARCHIVED".freeze
|
32
|
+
PENDING = "PENDING".freeze
|
33
|
+
|
30
34
|
# See ReportTaxTypes
|
31
35
|
attr_accessor :report_tax_type
|
32
|
-
|
36
|
+
AVALARA = "AVALARA".freeze
|
37
|
+
BASEXCLUDED = "BASEXCLUDED".freeze
|
38
|
+
CAPITALSALESOUTPUT = "CAPITALSALESOUTPUT".freeze
|
39
|
+
CAPITALEXPENSESINPUT = "CAPITALEXPENSESINPUT".freeze
|
40
|
+
ECOUTPUT = "ECOUTPUT".freeze
|
41
|
+
ECOUTPUTSERVICES = "ECOUTPUTSERVICES".freeze
|
42
|
+
ECINPUT = "ECINPUT".freeze
|
43
|
+
ECACQUISITIONS = "ECACQUISITIONS".freeze
|
44
|
+
EXEMPTEXPENSES = "EXEMPTEXPENSES".freeze
|
45
|
+
EXEMPTINPUT = "EXEMPTINPUT".freeze
|
46
|
+
EXEMPTOUTPUT = "EXEMPTOUTPUT".freeze
|
47
|
+
GSTONIMPORTS = "GSTONIMPORTS".freeze
|
48
|
+
INPUT = "INPUT".freeze
|
49
|
+
INPUTTAXED = "INPUTTAXED".freeze
|
50
|
+
MOSSSALES = "MOSSSALES".freeze
|
51
|
+
NONE = "NONE".freeze
|
52
|
+
NONEOUTPUT = "NONEOUTPUT".freeze
|
53
|
+
OUTPUT = "OUTPUT".freeze
|
54
|
+
PURCHASESINPUT = "PURCHASESINPUT".freeze
|
55
|
+
SALESOUTPUT = "SALESOUTPUT".freeze
|
56
|
+
EXEMPTCAPITAL = "EXEMPTCAPITAL".freeze
|
57
|
+
EXEMPTEXPORT = "EXEMPTEXPORT".freeze
|
58
|
+
CAPITALEXINPUT = "CAPITALEXINPUT".freeze
|
59
|
+
GSTONCAPIMPORTS = "GSTONCAPIMPORTS".freeze
|
60
|
+
GSTONCAPITALIMPORTS = "GSTONCAPITALIMPORTS".freeze
|
61
|
+
REVERSECHARGES = "REVERSECHARGES".freeze
|
62
|
+
PAYMENTS = "PAYMENTS".freeze
|
63
|
+
INVOICE = "INVOICE".freeze
|
64
|
+
CASH = "CASH".freeze
|
65
|
+
ACCRUAL = "ACCRUAL".freeze
|
66
|
+
FLATRATECASH = "FLATRATECASH".freeze
|
67
|
+
FLATRATEACCRUAL = "FLATRATEACCRUAL".freeze
|
68
|
+
ACCRUALS = "ACCRUALS".freeze
|
69
|
+
TXCA = "TXCA".freeze
|
70
|
+
SRCAS = "SRCAS".freeze
|
71
|
+
DSOUTPUT = "DSOUTPUT".freeze
|
72
|
+
BLINPUT2 = "BLINPUT2".freeze
|
73
|
+
EPINPUT = "EPINPUT".freeze
|
74
|
+
IMINPUT2 = "IMINPUT2".freeze
|
75
|
+
MEINPUT = "MEINPUT".freeze
|
76
|
+
IGDSINPUT2 = "IGDSINPUT2".freeze
|
77
|
+
ESN33_OUTPUT = "ESN33OUTPUT".freeze
|
78
|
+
OPINPUT = "OPINPUT".freeze
|
79
|
+
OSOUTPUT = "OSOUTPUT".freeze
|
80
|
+
TXN33_INPUT = "TXN33INPUT".freeze
|
81
|
+
TXESSINPUT = "TXESSINPUT".freeze
|
82
|
+
TXREINPUT = "TXREINPUT".freeze
|
83
|
+
TXPETINPUT = "TXPETINPUT".freeze
|
84
|
+
NRINPUT = "NRINPUT".freeze
|
85
|
+
ES33_OUTPUT = "ES33OUTPUT".freeze
|
86
|
+
ZERORATEDINPUT = "ZERORATEDINPUT".freeze
|
87
|
+
ZERORATEDOUTPUT = "ZERORATEDOUTPUT".freeze
|
88
|
+
DRCHARGESUPPLY = "DRCHARGESUPPLY".freeze
|
89
|
+
DRCHARGE = "DRCHARGE".freeze
|
90
|
+
CAPINPUT = "CAPINPUT".freeze
|
91
|
+
CAPIMPORTS = "CAPIMPORTS".freeze
|
92
|
+
IMINPUT = "IMINPUT".freeze
|
93
|
+
INPUT2 = "INPUT2".freeze
|
94
|
+
CIUINPUT = "CIUINPUT".freeze
|
95
|
+
SRINPUT = "SRINPUT".freeze
|
96
|
+
OUTPUT2 = "OUTPUT2".freeze
|
97
|
+
SROUTPUT = "SROUTPUT".freeze
|
98
|
+
CAPOUTPUT = "CAPOUTPUT".freeze
|
99
|
+
SROUTPUT2 = "SROUTPUT2".freeze
|
100
|
+
CIUOUTPUT = "CIUOUTPUT".freeze
|
101
|
+
ZROUTPUT = "ZROUTPUT".freeze
|
102
|
+
ZREXPORT = "ZREXPORT".freeze
|
103
|
+
ACC28_PLUS = "ACC28PLUS".freeze
|
104
|
+
ACCUPTO28 = "ACCUPTO28".freeze
|
105
|
+
OTHEROUTPUT = "OTHEROUTPUT".freeze
|
106
|
+
SHOUTPUT = "SHOUTPUT".freeze
|
107
|
+
ZRINPUT = "ZRINPUT".freeze
|
108
|
+
BADDEBT = "BADDEBT".freeze
|
109
|
+
OTHERINPUT = "OTHERINPUT".freeze
|
110
|
+
|
33
111
|
# Boolean to describe if tax rate can be used for asset accounts i.e. true,false
|
34
112
|
attr_accessor :can_apply_to_assets
|
35
|
-
|
113
|
+
|
36
114
|
# Boolean to describe if tax rate can be used for equity accounts i.e true,false
|
37
115
|
attr_accessor :can_apply_to_equity
|
38
|
-
|
116
|
+
|
39
117
|
# Boolean to describe if tax rate can be used for expense accounts i.e. true,false
|
40
118
|
attr_accessor :can_apply_to_expenses
|
41
|
-
|
119
|
+
|
42
120
|
# Boolean to describe if tax rate can be used for liability accounts i.e. true,false
|
43
121
|
attr_accessor :can_apply_to_liabilities
|
44
|
-
|
122
|
+
|
45
123
|
# Boolean to describe if tax rate can be used for revenue accounts i.e. true,false
|
46
124
|
attr_accessor :can_apply_to_revenue
|
47
|
-
|
125
|
+
|
48
126
|
# Tax Rate (decimal to 4dp) e.g 12.5000
|
49
127
|
attr_accessor :display_tax_rate
|
50
|
-
|
128
|
+
|
51
129
|
# Effective Tax Rate (decimal to 4dp) e.g 12.5000
|
52
130
|
attr_accessor :effective_rate
|
53
|
-
|
131
|
+
|
54
132
|
class EnumAttributeValidator
|
55
133
|
attr_reader :datatype
|
56
134
|
attr_reader :allowable_values
|
@@ -187,7 +265,7 @@ module XeroRuby::Accounting
|
|
187
265
|
def valid?
|
188
266
|
status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DELETED", "ARCHIVED", "PENDING"])
|
189
267
|
return false unless status_validator.valid?(@status)
|
190
|
-
report_tax_type_validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE"])
|
268
|
+
report_tax_type_validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT"])
|
191
269
|
return false unless report_tax_type_validator.valid?(@report_tax_type)
|
192
270
|
true
|
193
271
|
end
|
@@ -205,7 +283,7 @@ module XeroRuby::Accounting
|
|
205
283
|
# Custom attribute writer method checking allowed values (enum).
|
206
284
|
# @param [Object] report_tax_type Object to be assigned
|
207
285
|
def report_tax_type=(report_tax_type)
|
208
|
-
validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE"])
|
286
|
+
validator = EnumAttributeValidator.new('String', ["AVALARA", "BASEXCLUDED", "CAPITALSALESOUTPUT", "CAPITALEXPENSESINPUT", "ECOUTPUT", "ECOUTPUTSERVICES", "ECINPUT", "ECACQUISITIONS", "EXEMPTEXPENSES", "EXEMPTINPUT", "EXEMPTOUTPUT", "GSTONIMPORTS", "INPUT", "INPUTTAXED", "MOSSSALES", "NONE", "NONEOUTPUT", "OUTPUT", "PURCHASESINPUT", "SALESOUTPUT", "EXEMPTCAPITAL", "EXEMPTEXPORT", "CAPITALEXINPUT", "GSTONCAPIMPORTS", "GSTONCAPITALIMPORTS", "REVERSECHARGES", "PAYMENTS", "INVOICE", "CASH", "ACCRUAL", "FLATRATECASH", "FLATRATEACCRUAL", "ACCRUALS", "TXCA", "SRCAS", "DSOUTPUT", "BLINPUT2", "EPINPUT", "IMINPUT2", "MEINPUT", "IGDSINPUT2", "ESN33OUTPUT", "OPINPUT", "OSOUTPUT", "TXN33INPUT", "TXESSINPUT", "TXREINPUT", "TXPETINPUT", "NRINPUT", "ES33OUTPUT", "ZERORATEDINPUT", "ZERORATEDOUTPUT", "DRCHARGESUPPLY", "DRCHARGE", "CAPINPUT", "CAPIMPORTS", "IMINPUT", "INPUT2", "CIUINPUT", "SRINPUT", "OUTPUT2", "SROUTPUT", "CAPOUTPUT", "SROUTPUT2", "CIUOUTPUT", "ZROUTPUT", "ZREXPORT", "ACC28PLUS", "ACCUPTO28", "OTHEROUTPUT", "SHOUTPUT", "ZRINPUT", "BADDEBT", "OTHERINPUT"])
|
209
287
|
unless validator.valid?(report_tax_type)
|
210
288
|
fail ArgumentError, "invalid value for \"report_tax_type\", must be one of #{validator.allowable_values}."
|
211
289
|
end
|
@@ -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.
|
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.
|
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 TaxRates
|
18
|
-
attr_accessor :tax_rates
|
19
18
|
|
19
|
+
attr_accessor :tax_rates
|
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.
|
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.
|
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.
|
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.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,70 +17,70 @@ module XeroRuby::Accounting
|
|
17
17
|
class TenNinteyNineContact
|
18
18
|
# Box 1 on 1099 Form
|
19
19
|
attr_accessor :box1
|
20
|
-
|
20
|
+
|
21
21
|
# Box 2 on 1099 Form
|
22
22
|
attr_accessor :box2
|
23
|
-
|
23
|
+
|
24
24
|
# Box 3 on 1099 Form
|
25
25
|
attr_accessor :box3
|
26
|
-
|
26
|
+
|
27
27
|
# Box 4 on 1099 Form
|
28
28
|
attr_accessor :box4
|
29
|
-
|
29
|
+
|
30
30
|
# Box 5 on 1099 Form
|
31
31
|
attr_accessor :box5
|
32
|
-
|
32
|
+
|
33
33
|
# Box 6 on 1099 Form
|
34
34
|
attr_accessor :box6
|
35
|
-
|
35
|
+
|
36
36
|
# Box 7 on 1099 Form
|
37
37
|
attr_accessor :box7
|
38
|
-
|
38
|
+
|
39
39
|
# Box 8 on 1099 Form
|
40
40
|
attr_accessor :box8
|
41
|
-
|
41
|
+
|
42
42
|
# Box 9 on 1099 Form
|
43
43
|
attr_accessor :box9
|
44
|
-
|
44
|
+
|
45
45
|
# Box 10 on 1099 Form
|
46
46
|
attr_accessor :box10
|
47
|
-
|
47
|
+
|
48
48
|
# Box 11 on 1099 Form
|
49
49
|
attr_accessor :box11
|
50
|
-
|
50
|
+
|
51
51
|
# Box 13 on 1099 Form
|
52
52
|
attr_accessor :box13
|
53
|
-
|
53
|
+
|
54
54
|
# Box 14 on 1099 Form
|
55
55
|
attr_accessor :box14
|
56
|
-
|
56
|
+
|
57
57
|
# Contact name on 1099 Form
|
58
58
|
attr_accessor :name
|
59
|
-
|
59
|
+
|
60
60
|
# Contact Fed Tax ID type
|
61
61
|
attr_accessor :federal_tax_id_type
|
62
|
-
|
62
|
+
|
63
63
|
# Contact city on 1099 Form
|
64
64
|
attr_accessor :city
|
65
|
-
|
65
|
+
|
66
66
|
# Contact zip on 1099 Form
|
67
67
|
attr_accessor :zip
|
68
|
-
|
68
|
+
|
69
69
|
# Contact State on 1099 Form
|
70
70
|
attr_accessor :state
|
71
|
-
|
71
|
+
|
72
72
|
# Contact email on 1099 Form
|
73
73
|
attr_accessor :email
|
74
|
-
|
74
|
+
|
75
75
|
# Contact address on 1099 Form
|
76
76
|
attr_accessor :street_address
|
77
|
-
|
77
|
+
|
78
78
|
# Contact tax id on 1099 Form
|
79
79
|
attr_accessor :tax_id
|
80
|
-
|
80
|
+
|
81
81
|
# Contact contact id
|
82
82
|
attr_accessor :contact_id
|
83
|
-
|
83
|
+
|
84
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
85
85
|
def self.attribute_map
|
86
86
|
{
|
@@ -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.
|
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.
|
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.
|
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.
|
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 TrackingCategories
|
18
|
-
attr_accessor :tracking_categories
|
19
18
|
|
19
|
+
attr_accessor :tracking_categories
|
20
|
+
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|