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.
- checksums.yaml +4 -4
- data/README.md +43 -3
- data/build_notes.md +21 -0
- data/docs/accounting/AccountingApi.md +1514 -722
- 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/Journal.md +1 -1
- data/docs/accounting/ManualJournalLine.md +2 -0
- data/docs/accounting/Organisation.md +3 -1
- data/docs/accounting/Payment.md +6 -4
- data/docs/accounting/Quote.md +5 -1
- data/docs/accounting/Report.md +1 -1
- data/docs/accounting/{TenNinteyNineContact.md → TenNinetyNineContact.md} +2 -2
- 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 +22 -3
- data/lib/xero-ruby/api/accounting_api.rb +85 -9
- 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 +103 -37
- data/lib/xero-ruby/api_error.rb +2 -2
- data/lib/xero-ruby/configuration.rb +4 -5
- data/lib/xero-ruby/models/accounting/account.rb +61 -20
- data/lib/xero-ruby/models/accounting/account_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/accounts.rb +8 -3
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +11 -5
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +11 -5
- data/lib/xero-ruby/models/accounting/address.rb +19 -12
- data/lib/xero-ruby/models/accounting/allocation.rb +66 -9
- data/lib/xero-ruby/models/accounting/allocations.rb +8 -3
- data/lib/xero-ruby/models/accounting/attachment.rb +12 -8
- data/lib/xero-ruby/models/accounting/attachments.rb +8 -3
- data/lib/xero-ruby/models/accounting/balances.rb +9 -3
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +43 -24
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +8 -3
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +20 -14
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +8 -3
- data/lib/xero-ruby/models/accounting/batch_payment.rb +29 -19
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +11 -7
- data/lib/xero-ruby/models/accounting/batch_payments.rb +8 -3
- data/lib/xero-ruby/models/accounting/bill.rb +8 -3
- data/lib/xero-ruby/models/accounting/branding_theme.rb +13 -8
- data/lib/xero-ruby/models/accounting/branding_themes.rb +8 -3
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +9 -5
- data/lib/xero-ruby/models/accounting/cis_setting.rb +8 -4
- data/lib/xero-ruby/models/accounting/cis_settings.rb +8 -3
- data/lib/xero-ruby/models/accounting/contact.rb +51 -37
- data/lib/xero-ruby/models/accounting/contact_group.rb +12 -6
- data/lib/xero-ruby/models/accounting/contact_groups.rb +8 -3
- data/lib/xero-ruby/models/accounting/contact_person.rb +10 -6
- data/lib/xero-ruby/models/accounting/contacts.rb +8 -3
- data/lib/xero-ruby/models/accounting/country_code.rb +2 -2
- data/lib/xero-ruby/models/accounting/credit_note.rb +47 -30
- data/lib/xero-ruby/models/accounting/credit_notes.rb +8 -3
- data/lib/xero-ruby/models/accounting/currencies.rb +8 -3
- data/lib/xero-ruby/models/accounting/currency.rb +9 -4
- data/lib/xero-ruby/models/accounting/currency_code.rb +4 -4
- data/lib/xero-ruby/models/accounting/element.rb +14 -4
- data/lib/xero-ruby/models/accounting/employee.rb +17 -8
- data/lib/xero-ruby/models/accounting/employees.rb +8 -3
- data/lib/xero-ruby/models/accounting/error.rb +10 -6
- data/lib/xero-ruby/models/accounting/expense_claim.rb +26 -15
- data/lib/xero-ruby/models/accounting/expense_claims.rb +8 -3
- data/lib/xero-ruby/models/accounting/external_link.rb +14 -4
- data/lib/xero-ruby/models/accounting/history_record.rb +10 -6
- data/lib/xero-ruby/models/accounting/history_records.rb +8 -3
- data/lib/xero-ruby/models/accounting/invoice.rb +69 -46
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +7 -3
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +8 -3
- data/lib/xero-ruby/models/accounting/invoices.rb +8 -3
- data/lib/xero-ruby/models/accounting/item.rb +24 -18
- data/lib/xero-ruby/models/accounting/items.rb +8 -3
- data/lib/xero-ruby/models/accounting/journal.rb +40 -11
- data/lib/xero-ruby/models/accounting/journal_line.rb +21 -16
- data/lib/xero-ruby/models/accounting/journals.rb +8 -3
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/accounting/line_item.rb +25 -21
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +10 -6
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +25 -13
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +8 -3
- data/lib/xero-ruby/models/accounting/manual_journal.rb +25 -15
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +26 -12
- data/lib/xero-ruby/models/accounting/manual_journals.rb +8 -3
- data/lib/xero-ruby/models/accounting/online_invoice.rb +7 -3
- data/lib/xero-ruby/models/accounting/online_invoices.rb +8 -3
- data/lib/xero-ruby/models/accounting/organisation.rb +122 -32
- data/lib/xero-ruby/models/accounting/organisations.rb +8 -3
- data/lib/xero-ruby/models/accounting/overpayment.rb +36 -23
- data/lib/xero-ruby/models/accounting/overpayments.rb +8 -3
- data/lib/xero-ruby/models/accounting/payment.rb +57 -24
- data/lib/xero-ruby/models/accounting/payment_delete.rb +7 -3
- data/lib/xero-ruby/models/accounting/payment_service.rb +12 -8
- data/lib/xero-ruby/models/accounting/payment_services.rb +8 -3
- data/lib/xero-ruby/models/accounting/payment_term.rb +9 -3
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/payments.rb +8 -3
- data/lib/xero-ruby/models/accounting/phone.rb +16 -6
- data/lib/xero-ruby/models/accounting/prepayment.rb +37 -23
- data/lib/xero-ruby/models/accounting/prepayments.rb +8 -3
- data/lib/xero-ruby/models/accounting/purchase.rb +11 -7
- data/lib/xero-ruby/models/accounting/purchase_order.rb +45 -33
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +8 -3
- data/lib/xero-ruby/models/accounting/quote.rb +58 -28
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +3 -2
- data/lib/xero-ruby/models/accounting/quotes.rb +8 -3
- data/lib/xero-ruby/models/accounting/receipt.rb +32 -19
- data/lib/xero-ruby/models/accounting/receipts.rb +8 -3
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +30 -17
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +8 -3
- data/lib/xero-ruby/models/accounting/report.rb +15 -9
- data/lib/xero-ruby/models/accounting/report_attribute.rb +9 -3
- data/lib/xero-ruby/models/accounting/report_cell.rb +9 -3
- data/lib/xero-ruby/models/accounting/report_fields.rb +10 -3
- data/lib/xero-ruby/models/accounting/report_row.rb +10 -3
- data/lib/xero-ruby/models/accounting/report_rows.rb +11 -3
- data/lib/xero-ruby/models/accounting/report_with_row.rb +15 -9
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +8 -3
- data/lib/xero-ruby/models/accounting/reports.rb +8 -3
- data/lib/xero-ruby/models/accounting/request_empty.rb +7 -3
- data/lib/xero-ruby/models/accounting/row_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +8 -4
- data/lib/xero-ruby/models/accounting/schedule.rb +23 -11
- data/lib/xero-ruby/models/accounting/tax_component.rb +11 -7
- data/lib/xero-ruby/models/accounting/tax_rate.rb +100 -18
- data/lib/xero-ruby/models/accounting/tax_rates.rb +8 -3
- data/lib/xero-ruby/models/accounting/tax_type.rb +6 -2
- data/lib/xero-ruby/models/accounting/{ten_nintey_nine_contact.rb → ten_ninety_nine_contact.rb} +44 -40
- data/lib/xero-ruby/models/accounting/time_zone.rb +2 -2
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +8 -3
- data/lib/xero-ruby/models/accounting/tracking_category.rb +15 -8
- data/lib/xero-ruby/models/accounting/tracking_option.rb +13 -6
- data/lib/xero-ruby/models/accounting/tracking_options.rb +8 -3
- data/lib/xero-ruby/models/accounting/user.rb +20 -9
- data/lib/xero-ruby/models/accounting/users.rb +8 -3
- data/lib/xero-ruby/models/accounting/validation_error.rb +7 -3
- data/lib/xero-ruby/models/assets/asset.rb +24 -17
- 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 +13 -13
- data/lib/xero-ruby/models/assets/assets.rb +9 -3
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +19 -15
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +26 -11
- data/lib/xero-ruby/models/assets/error.rb +11 -7
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +12 -8
- data/lib/xero-ruby/models/assets/pagination.rb +11 -3
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +11 -7
- data/lib/xero-ruby/models/assets/setting.rb +14 -10
- data/lib/xero-ruby/models/projects/amount.rb +218 -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 +218 -0
- data/lib/xero-ruby/models/projects/pagination.rb +238 -0
- data/lib/xero-ruby/models/projects/project.rb +423 -0
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +243 -0
- data/lib/xero-ruby/models/projects/project_patch.rb +213 -0
- data/lib/xero-ruby/models/projects/project_status.rb +37 -0
- data/lib/xero-ruby/models/projects/project_user.rb +228 -0
- data/lib/xero-ruby/models/projects/project_users.rb +220 -0
- data/lib/xero-ruby/models/projects/projects.rb +220 -0
- data/lib/xero-ruby/models/projects/task.rb +385 -0
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +253 -0
- data/lib/xero-ruby/models/projects/tasks.rb +220 -0
- data/lib/xero-ruby/models/projects/time_entries.rb +220 -0
- data/lib/xero-ruby/models/projects/time_entry.rb +324 -0
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +268 -0
- data/lib/xero-ruby/version.rb +3 -3
- data/spec/accounting/api/accounting_api_spec.rb +19 -6
- data/spec/accounting/models/account_spec.rb +1 -1
- data/spec/accounting/models/account_type_spec.rb +1 -1
- data/spec/accounting/models/accounts_payable_spec.rb +1 -1
- data/spec/accounting/models/accounts_receivable_spec.rb +1 -1
- data/spec/accounting/models/accounts_spec.rb +1 -1
- data/spec/accounting/models/address_spec.rb +1 -1
- data/spec/accounting/models/allocation_spec.rb +1 -1
- data/spec/accounting/models/allocations_spec.rb +1 -1
- data/spec/accounting/models/attachment_spec.rb +1 -1
- data/spec/accounting/models/attachments_spec.rb +1 -1
- data/spec/accounting/models/balances_spec.rb +1 -1
- data/spec/accounting/models/bank_transaction_spec.rb +1 -1
- data/spec/accounting/models/bank_transactions_spec.rb +1 -1
- data/spec/accounting/models/bank_transfer_spec.rb +1 -1
- data/spec/accounting/models/bank_transfers_spec.rb +1 -1
- data/spec/accounting/models/batch_payment_details_spec.rb +1 -1
- data/spec/accounting/models/batch_payment_spec.rb +1 -1
- data/spec/accounting/models/batch_payments_spec.rb +1 -1
- data/spec/accounting/models/bill_spec.rb +1 -1
- data/spec/accounting/models/branding_theme_spec.rb +1 -1
- data/spec/accounting/models/branding_themes_spec.rb +1 -1
- data/spec/accounting/models/cis_org_setting_spec.rb +1 -1
- data/spec/accounting/models/cis_setting_spec.rb +1 -1
- data/spec/accounting/models/cis_settings_spec.rb +1 -1
- data/spec/accounting/models/contact_group_spec.rb +1 -1
- data/spec/accounting/models/contact_groups_spec.rb +1 -1
- data/spec/accounting/models/contact_person_spec.rb +1 -1
- data/spec/accounting/models/contact_spec.rb +1 -1
- data/spec/accounting/models/contacts_spec.rb +1 -1
- data/spec/accounting/models/country_code_spec.rb +1 -1
- data/spec/accounting/models/credit_note_spec.rb +1 -1
- data/spec/accounting/models/credit_notes_spec.rb +1 -1
- data/spec/accounting/models/currencies_spec.rb +1 -1
- data/spec/accounting/models/currency_code_spec.rb +1 -1
- data/spec/accounting/models/currency_spec.rb +1 -1
- data/spec/accounting/models/element_spec.rb +1 -1
- data/spec/accounting/models/employee_spec.rb +1 -1
- data/spec/accounting/models/employees_spec.rb +1 -1
- data/spec/accounting/models/error_spec.rb +1 -1
- data/spec/accounting/models/expense_claim_spec.rb +1 -1
- data/spec/accounting/models/expense_claims_spec.rb +1 -1
- data/spec/accounting/models/external_link_spec.rb +1 -1
- data/spec/accounting/models/history_record_spec.rb +1 -1
- data/spec/accounting/models/history_records_spec.rb +1 -1
- data/spec/accounting/models/invoice_reminder_spec.rb +1 -1
- data/spec/accounting/models/invoice_reminders_spec.rb +1 -1
- data/spec/accounting/models/invoice_spec.rb +1 -1
- data/spec/accounting/models/invoices_spec.rb +1 -1
- data/spec/accounting/models/item_spec.rb +1 -1
- data/spec/accounting/models/items_spec.rb +1 -1
- data/spec/accounting/models/journal_line_spec.rb +1 -1
- data/spec/accounting/models/journal_spec.rb +1 -1
- data/spec/accounting/models/journals_spec.rb +1 -1
- data/spec/accounting/models/line_amount_types_spec.rb +1 -1
- data/spec/accounting/models/line_item_spec.rb +1 -1
- data/spec/accounting/models/line_item_tracking_spec.rb +1 -1
- data/spec/accounting/models/linked_transaction_spec.rb +1 -1
- data/spec/accounting/models/linked_transactions_spec.rb +1 -1
- data/spec/accounting/models/manual_journal_line_spec.rb +1 -1
- data/spec/accounting/models/manual_journal_spec.rb +1 -1
- data/spec/accounting/models/manual_journals_spec.rb +1 -1
- data/spec/accounting/models/online_invoice_spec.rb +1 -1
- data/spec/accounting/models/online_invoices_spec.rb +1 -1
- data/spec/accounting/models/organisation_spec.rb +1 -1
- data/spec/accounting/models/organisations_spec.rb +1 -1
- data/spec/accounting/models/overpayment_spec.rb +1 -1
- data/spec/accounting/models/overpayments_spec.rb +1 -1
- data/spec/accounting/models/payment_delete_spec.rb +1 -1
- data/spec/accounting/models/payment_service_spec.rb +1 -1
- data/spec/accounting/models/payment_services_spec.rb +1 -1
- data/spec/accounting/models/payment_spec.rb +7 -1
- data/spec/accounting/models/payment_term_spec.rb +1 -1
- data/spec/accounting/models/payment_term_type_spec.rb +1 -1
- data/spec/accounting/models/payments_spec.rb +1 -1
- data/spec/accounting/models/phone_spec.rb +1 -1
- data/spec/accounting/models/prepayment_spec.rb +1 -1
- data/spec/accounting/models/prepayments_spec.rb +1 -1
- data/spec/accounting/models/purchase_order_spec.rb +1 -1
- data/spec/accounting/models/purchase_orders_spec.rb +1 -1
- data/spec/accounting/models/purchase_spec.rb +1 -1
- data/spec/accounting/models/quote_line_amount_types_spec.rb +1 -1
- data/spec/accounting/models/quote_spec.rb +1 -1
- data/spec/accounting/models/quote_status_codes_spec.rb +1 -1
- data/spec/accounting/models/quotes_spec.rb +1 -1
- data/spec/accounting/models/receipt_spec.rb +1 -1
- data/spec/accounting/models/receipts_spec.rb +1 -1
- data/spec/accounting/models/repeating_invoice_spec.rb +1 -1
- data/spec/accounting/models/repeating_invoices_spec.rb +1 -1
- data/spec/accounting/models/report_attribute_spec.rb +1 -1
- data/spec/accounting/models/report_cell_spec.rb +1 -1
- data/spec/accounting/models/report_fields_spec.rb +1 -1
- data/spec/accounting/models/report_row_spec.rb +1 -1
- data/spec/accounting/models/report_rows_spec.rb +1 -1
- data/spec/accounting/models/report_spec.rb +1 -1
- data/spec/accounting/models/report_with_row_spec.rb +1 -1
- data/spec/accounting/models/report_with_rows_spec.rb +1 -1
- data/spec/accounting/models/reports_spec.rb +1 -1
- data/spec/accounting/models/request_empty_spec.rb +1 -1
- data/spec/accounting/models/row_type_spec.rb +1 -1
- data/spec/accounting/models/sales_tracking_category_spec.rb +1 -1
- data/spec/accounting/models/schedule_spec.rb +1 -1
- data/spec/accounting/models/tax_component_spec.rb +1 -1
- data/spec/accounting/models/tax_rate_spec.rb +2 -2
- data/spec/accounting/models/tax_rates_spec.rb +1 -1
- data/spec/accounting/models/tax_type_spec.rb +1 -1
- data/spec/accounting/models/ten_nintey_nine_contact_spec.rb +7 -7
- data/spec/accounting/models/time_zone_spec.rb +1 -1
- data/spec/accounting/models/tracking_categories_spec.rb +1 -1
- data/spec/accounting/models/tracking_category_spec.rb +1 -1
- data/spec/accounting/models/tracking_option_spec.rb +1 -1
- data/spec/accounting/models/tracking_options_spec.rb +1 -1
- data/spec/accounting/models/user_spec.rb +1 -1
- data/spec/accounting/models/users_spec.rb +1 -1
- data/spec/accounting/models/validation_error_spec.rb +1 -1
- data/spec/api_client_spec.rb +120 -33
- data/spec/assets/api/asset_api_spec.rb +4 -4
- data/spec/assets/models/asset_spec.rb +1 -1
- data/spec/assets/models/asset_status_query_param_spec.rb +1 -1
- data/spec/assets/models/asset_status_spec.rb +1 -1
- data/spec/assets/models/asset_type_spec.rb +1 -1
- data/spec/assets/models/assets_spec.rb +1 -1
- data/spec/assets/models/book_depreciation_detail_spec.rb +1 -1
- data/spec/assets/models/book_depreciation_setting_spec.rb +1 -1
- data/spec/assets/models/error_spec.rb +1 -1
- data/spec/assets/models/field_validation_errors_element_spec.rb +1 -1
- data/spec/assets/models/pagination_spec.rb +1 -1
- data/spec/assets/models/resource_validation_errors_element_spec.rb +1 -1
- data/spec/assets/models/setting_spec.rb +1 -1
- data/spec/configuration_spec.rb +8 -24
- 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/spec/spec_helper.rb +1 -1
- data/xero-ruby.gemspec +3 -4
- metadata +85 -9
- data/xero-ruby.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.11
|
|
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.11
|
|
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
|
|
|
@@ -14,13 +14,15 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class SalesTrackingCategory
|
|
18
20
|
# The default sales tracking category name for contacts
|
|
19
21
|
attr_accessor :tracking_category_name
|
|
20
|
-
|
|
22
|
+
|
|
21
23
|
# The default purchase tracking category name for contacts
|
|
22
24
|
attr_accessor :tracking_option_name
|
|
23
|
-
|
|
25
|
+
|
|
24
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
27
|
def self.attribute_map
|
|
26
28
|
{
|
|
@@ -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,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.11
|
|
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
|
|
|
@@ -14,28 +14,38 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class Schedule
|
|
18
20
|
# Integer used with the unit e.g. 1 (every 1 week), 2 (every 2 months)
|
|
19
21
|
attr_accessor :period
|
|
20
|
-
|
|
22
|
+
|
|
21
23
|
# One of the following - WEEKLY or MONTHLY
|
|
22
24
|
attr_accessor :unit
|
|
23
|
-
|
|
25
|
+
WEEKLY = "WEEKLY".freeze
|
|
26
|
+
MONTHLY = "MONTHLY".freeze
|
|
27
|
+
|
|
24
28
|
# Integer used with due date type e.g 20 (of following month), 31 (of current month)
|
|
25
29
|
attr_accessor :due_date
|
|
26
|
-
|
|
30
|
+
|
|
27
31
|
# the payment terms
|
|
28
32
|
attr_accessor :due_date_type
|
|
29
|
-
|
|
33
|
+
DAYSAFTERBILLDATE = "DAYSAFTERBILLDATE".freeze
|
|
34
|
+
DAYSAFTERBILLMONTH = "DAYSAFTERBILLMONTH".freeze
|
|
35
|
+
DAYSAFTERINVOICEDATE = "DAYSAFTERINVOICEDATE".freeze
|
|
36
|
+
DAYSAFTERINVOICEMONTH = "DAYSAFTERINVOICEMONTH".freeze
|
|
37
|
+
OFCURRENTMONTH = "OFCURRENTMONTH".freeze
|
|
38
|
+
OFFOLLOWINGMONTH = "OFFOLLOWINGMONTH".freeze
|
|
39
|
+
|
|
30
40
|
# Date the first invoice of the current version of the repeating schedule was generated (changes when repeating invoice is edited)
|
|
31
41
|
attr_accessor :start_date
|
|
32
|
-
|
|
42
|
+
|
|
33
43
|
# The calendar date of the next invoice in the schedule to be generated
|
|
34
44
|
attr_accessor :next_scheduled_date
|
|
35
|
-
|
|
45
|
+
|
|
36
46
|
# Invoice end date – only returned if the template has an end date set
|
|
37
47
|
attr_accessor :end_date
|
|
38
|
-
|
|
48
|
+
|
|
39
49
|
class EnumAttributeValidator
|
|
40
50
|
attr_reader :datatype
|
|
41
51
|
attr_reader :allowable_values
|
|
@@ -140,7 +150,7 @@ module XeroRuby::Accounting
|
|
|
140
150
|
def valid?
|
|
141
151
|
unit_validator = EnumAttributeValidator.new('String', ["WEEKLY", "MONTHLY"])
|
|
142
152
|
return false unless unit_validator.valid?(@unit)
|
|
143
|
-
due_date_type_validator = EnumAttributeValidator.new('String', ["DAYSAFTERBILLDATE", "DAYSAFTERBILLMONTH", "OFCURRENTMONTH", "OFFOLLOWINGMONTH"])
|
|
153
|
+
due_date_type_validator = EnumAttributeValidator.new('String', ["DAYSAFTERBILLDATE", "DAYSAFTERBILLMONTH", "DAYSAFTERINVOICEDATE", "DAYSAFTERINVOICEMONTH", "OFCURRENTMONTH", "OFFOLLOWINGMONTH"])
|
|
144
154
|
return false unless due_date_type_validator.valid?(@due_date_type)
|
|
145
155
|
true
|
|
146
156
|
end
|
|
@@ -158,7 +168,7 @@ module XeroRuby::Accounting
|
|
|
158
168
|
# Custom attribute writer method checking allowed values (enum).
|
|
159
169
|
# @param [Object] due_date_type Object to be assigned
|
|
160
170
|
def due_date_type=(due_date_type)
|
|
161
|
-
validator = EnumAttributeValidator.new('String', ["DAYSAFTERBILLDATE", "DAYSAFTERBILLMONTH", "OFCURRENTMONTH", "OFFOLLOWINGMONTH"])
|
|
171
|
+
validator = EnumAttributeValidator.new('String', ["DAYSAFTERBILLDATE", "DAYSAFTERBILLMONTH", "DAYSAFTERINVOICEDATE", "DAYSAFTERINVOICEMONTH", "OFCURRENTMONTH", "OFFOLLOWINGMONTH"])
|
|
162
172
|
unless validator.valid?(due_date_type)
|
|
163
173
|
fail ArgumentError, "invalid value for \"due_date_type\", must be one of #{validator.allowable_values}."
|
|
164
174
|
end
|
|
@@ -234,6 +244,8 @@ module XeroRuby::Accounting
|
|
|
234
244
|
value.to_i
|
|
235
245
|
when :Float
|
|
236
246
|
value.to_f
|
|
247
|
+
when :BigDecimal
|
|
248
|
+
BigDecimal(value.to_s)
|
|
237
249
|
when :Boolean
|
|
238
250
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
239
251
|
true
|
|
@@ -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.11
|
|
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
|
|
|
@@ -14,19 +14,21 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class TaxComponent
|
|
18
20
|
# Name of Tax Component
|
|
19
21
|
attr_accessor :name
|
|
20
|
-
|
|
22
|
+
|
|
21
23
|
# Tax Rate (up to 4dp)
|
|
22
24
|
attr_accessor :rate
|
|
23
|
-
|
|
25
|
+
|
|
24
26
|
# Boolean to describe if Tax rate is compounded.
|
|
25
27
|
attr_accessor :is_compound
|
|
26
|
-
|
|
28
|
+
|
|
27
29
|
# Boolean to describe if tax rate is non-recoverable. Non-recoverable rates are only applicable to Canadian organisations
|
|
28
30
|
attr_accessor :is_non_recoverable
|
|
29
|
-
|
|
31
|
+
|
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
33
|
def self.attribute_map
|
|
32
34
|
{
|
|
@@ -41,7 +43,7 @@ module XeroRuby::Accounting
|
|
|
41
43
|
def self.openapi_types
|
|
42
44
|
{
|
|
43
45
|
:'name' => :'String',
|
|
44
|
-
:'rate' => :'
|
|
46
|
+
:'rate' => :'BigDecimal',
|
|
45
47
|
:'is_compound' => :'Boolean',
|
|
46
48
|
:'is_non_recoverable' => :'Boolean'
|
|
47
49
|
}
|
|
@@ -158,6 +160,8 @@ module XeroRuby::Accounting
|
|
|
158
160
|
value.to_i
|
|
159
161
|
when :Float
|
|
160
162
|
value.to_f
|
|
163
|
+
when :BigDecimal
|
|
164
|
+
BigDecimal(value.to_s)
|
|
161
165
|
when :Boolean
|
|
162
166
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
163
167
|
true
|
|
@@ -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.11
|
|
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
|
|
|
@@ -14,43 +14,123 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class TaxRate
|
|
18
20
|
# Name of tax rate
|
|
19
21
|
attr_accessor :name
|
|
20
|
-
|
|
22
|
+
|
|
21
23
|
# The tax type
|
|
22
24
|
attr_accessor :tax_type
|
|
23
|
-
|
|
25
|
+
|
|
24
26
|
# See TaxComponents
|
|
25
27
|
attr_accessor :tax_components
|
|
26
|
-
|
|
28
|
+
|
|
27
29
|
# See Status Codes
|
|
28
30
|
attr_accessor :status
|
|
29
|
-
|
|
31
|
+
ACTIVE = "ACTIVE".freeze
|
|
32
|
+
DELETED = "DELETED".freeze
|
|
33
|
+
ARCHIVED = "ARCHIVED".freeze
|
|
34
|
+
PENDING = "PENDING".freeze
|
|
35
|
+
|
|
30
36
|
# See ReportTaxTypes
|
|
31
37
|
attr_accessor :report_tax_type
|
|
32
|
-
|
|
38
|
+
AVALARA = "AVALARA".freeze
|
|
39
|
+
BASEXCLUDED = "BASEXCLUDED".freeze
|
|
40
|
+
CAPITALSALESOUTPUT = "CAPITALSALESOUTPUT".freeze
|
|
41
|
+
CAPITALEXPENSESINPUT = "CAPITALEXPENSESINPUT".freeze
|
|
42
|
+
ECOUTPUT = "ECOUTPUT".freeze
|
|
43
|
+
ECOUTPUTSERVICES = "ECOUTPUTSERVICES".freeze
|
|
44
|
+
ECINPUT = "ECINPUT".freeze
|
|
45
|
+
ECACQUISITIONS = "ECACQUISITIONS".freeze
|
|
46
|
+
EXEMPTEXPENSES = "EXEMPTEXPENSES".freeze
|
|
47
|
+
EXEMPTINPUT = "EXEMPTINPUT".freeze
|
|
48
|
+
EXEMPTOUTPUT = "EXEMPTOUTPUT".freeze
|
|
49
|
+
GSTONIMPORTS = "GSTONIMPORTS".freeze
|
|
50
|
+
INPUT = "INPUT".freeze
|
|
51
|
+
INPUTTAXED = "INPUTTAXED".freeze
|
|
52
|
+
MOSSSALES = "MOSSSALES".freeze
|
|
53
|
+
NONE = "NONE".freeze
|
|
54
|
+
NONEOUTPUT = "NONEOUTPUT".freeze
|
|
55
|
+
OUTPUT = "OUTPUT".freeze
|
|
56
|
+
PURCHASESINPUT = "PURCHASESINPUT".freeze
|
|
57
|
+
SALESOUTPUT = "SALESOUTPUT".freeze
|
|
58
|
+
EXEMPTCAPITAL = "EXEMPTCAPITAL".freeze
|
|
59
|
+
EXEMPTEXPORT = "EXEMPTEXPORT".freeze
|
|
60
|
+
CAPITALEXINPUT = "CAPITALEXINPUT".freeze
|
|
61
|
+
GSTONCAPIMPORTS = "GSTONCAPIMPORTS".freeze
|
|
62
|
+
GSTONCAPITALIMPORTS = "GSTONCAPITALIMPORTS".freeze
|
|
63
|
+
REVERSECHARGES = "REVERSECHARGES".freeze
|
|
64
|
+
PAYMENTS = "PAYMENTS".freeze
|
|
65
|
+
INVOICE = "INVOICE".freeze
|
|
66
|
+
CASH = "CASH".freeze
|
|
67
|
+
ACCRUAL = "ACCRUAL".freeze
|
|
68
|
+
FLATRATECASH = "FLATRATECASH".freeze
|
|
69
|
+
FLATRATEACCRUAL = "FLATRATEACCRUAL".freeze
|
|
70
|
+
ACCRUALS = "ACCRUALS".freeze
|
|
71
|
+
TXCA = "TXCA".freeze
|
|
72
|
+
SRCAS = "SRCAS".freeze
|
|
73
|
+
DSOUTPUT = "DSOUTPUT".freeze
|
|
74
|
+
BLINPUT2 = "BLINPUT2".freeze
|
|
75
|
+
EPINPUT = "EPINPUT".freeze
|
|
76
|
+
IMINPUT2 = "IMINPUT2".freeze
|
|
77
|
+
MEINPUT = "MEINPUT".freeze
|
|
78
|
+
IGDSINPUT2 = "IGDSINPUT2".freeze
|
|
79
|
+
ESN33_OUTPUT = "ESN33OUTPUT".freeze
|
|
80
|
+
OPINPUT = "OPINPUT".freeze
|
|
81
|
+
OSOUTPUT = "OSOUTPUT".freeze
|
|
82
|
+
TXN33_INPUT = "TXN33INPUT".freeze
|
|
83
|
+
TXESSINPUT = "TXESSINPUT".freeze
|
|
84
|
+
TXREINPUT = "TXREINPUT".freeze
|
|
85
|
+
TXPETINPUT = "TXPETINPUT".freeze
|
|
86
|
+
NRINPUT = "NRINPUT".freeze
|
|
87
|
+
ES33_OUTPUT = "ES33OUTPUT".freeze
|
|
88
|
+
ZERORATEDINPUT = "ZERORATEDINPUT".freeze
|
|
89
|
+
ZERORATEDOUTPUT = "ZERORATEDOUTPUT".freeze
|
|
90
|
+
DRCHARGESUPPLY = "DRCHARGESUPPLY".freeze
|
|
91
|
+
DRCHARGE = "DRCHARGE".freeze
|
|
92
|
+
CAPINPUT = "CAPINPUT".freeze
|
|
93
|
+
CAPIMPORTS = "CAPIMPORTS".freeze
|
|
94
|
+
IMINPUT = "IMINPUT".freeze
|
|
95
|
+
INPUT2 = "INPUT2".freeze
|
|
96
|
+
CIUINPUT = "CIUINPUT".freeze
|
|
97
|
+
SRINPUT = "SRINPUT".freeze
|
|
98
|
+
OUTPUT2 = "OUTPUT2".freeze
|
|
99
|
+
SROUTPUT = "SROUTPUT".freeze
|
|
100
|
+
CAPOUTPUT = "CAPOUTPUT".freeze
|
|
101
|
+
SROUTPUT2 = "SROUTPUT2".freeze
|
|
102
|
+
CIUOUTPUT = "CIUOUTPUT".freeze
|
|
103
|
+
ZROUTPUT = "ZROUTPUT".freeze
|
|
104
|
+
ZREXPORT = "ZREXPORT".freeze
|
|
105
|
+
ACC28_PLUS = "ACC28PLUS".freeze
|
|
106
|
+
ACCUPTO28 = "ACCUPTO28".freeze
|
|
107
|
+
OTHEROUTPUT = "OTHEROUTPUT".freeze
|
|
108
|
+
SHOUTPUT = "SHOUTPUT".freeze
|
|
109
|
+
ZRINPUT = "ZRINPUT".freeze
|
|
110
|
+
BADDEBT = "BADDEBT".freeze
|
|
111
|
+
OTHERINPUT = "OTHERINPUT".freeze
|
|
112
|
+
|
|
33
113
|
# Boolean to describe if tax rate can be used for asset accounts i.e. true,false
|
|
34
114
|
attr_accessor :can_apply_to_assets
|
|
35
|
-
|
|
115
|
+
|
|
36
116
|
# Boolean to describe if tax rate can be used for equity accounts i.e true,false
|
|
37
117
|
attr_accessor :can_apply_to_equity
|
|
38
|
-
|
|
118
|
+
|
|
39
119
|
# Boolean to describe if tax rate can be used for expense accounts i.e. true,false
|
|
40
120
|
attr_accessor :can_apply_to_expenses
|
|
41
|
-
|
|
121
|
+
|
|
42
122
|
# Boolean to describe if tax rate can be used for liability accounts i.e. true,false
|
|
43
123
|
attr_accessor :can_apply_to_liabilities
|
|
44
|
-
|
|
124
|
+
|
|
45
125
|
# Boolean to describe if tax rate can be used for revenue accounts i.e. true,false
|
|
46
126
|
attr_accessor :can_apply_to_revenue
|
|
47
|
-
|
|
127
|
+
|
|
48
128
|
# Tax Rate (decimal to 4dp) e.g 12.5000
|
|
49
129
|
attr_accessor :display_tax_rate
|
|
50
|
-
|
|
130
|
+
|
|
51
131
|
# Effective Tax Rate (decimal to 4dp) e.g 12.5000
|
|
52
132
|
attr_accessor :effective_rate
|
|
53
|
-
|
|
133
|
+
|
|
54
134
|
class EnumAttributeValidator
|
|
55
135
|
attr_reader :datatype
|
|
56
136
|
attr_reader :allowable_values
|
|
@@ -104,8 +184,8 @@ module XeroRuby::Accounting
|
|
|
104
184
|
:'can_apply_to_expenses' => :'Boolean',
|
|
105
185
|
:'can_apply_to_liabilities' => :'Boolean',
|
|
106
186
|
:'can_apply_to_revenue' => :'Boolean',
|
|
107
|
-
:'display_tax_rate' => :'
|
|
108
|
-
:'effective_rate' => :'
|
|
187
|
+
:'display_tax_rate' => :'BigDecimal',
|
|
188
|
+
:'effective_rate' => :'BigDecimal'
|
|
109
189
|
}
|
|
110
190
|
end
|
|
111
191
|
|
|
@@ -187,7 +267,7 @@ module XeroRuby::Accounting
|
|
|
187
267
|
def valid?
|
|
188
268
|
status_validator = EnumAttributeValidator.new('String', ["ACTIVE", "DELETED", "ARCHIVED", "PENDING"])
|
|
189
269
|
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"])
|
|
270
|
+
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
271
|
return false unless report_tax_type_validator.valid?(@report_tax_type)
|
|
192
272
|
true
|
|
193
273
|
end
|
|
@@ -205,7 +285,7 @@ module XeroRuby::Accounting
|
|
|
205
285
|
# Custom attribute writer method checking allowed values (enum).
|
|
206
286
|
# @param [Object] report_tax_type Object to be assigned
|
|
207
287
|
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"])
|
|
288
|
+
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
289
|
unless validator.valid?(report_tax_type)
|
|
210
290
|
fail ArgumentError, "invalid value for \"report_tax_type\", must be one of #{validator.allowable_values}."
|
|
211
291
|
end
|
|
@@ -286,6 +366,8 @@ module XeroRuby::Accounting
|
|
|
286
366
|
value.to_i
|
|
287
367
|
when :Float
|
|
288
368
|
value.to_f
|
|
369
|
+
when :BigDecimal
|
|
370
|
+
BigDecimal(value.to_s)
|
|
289
371
|
when :Boolean
|
|
290
372
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
291
373
|
true
|
|
@@ -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.11
|
|
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
|
|
|
@@ -14,9 +14,12 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
17
19
|
class TaxRates
|
|
18
|
-
attr_accessor :tax_rates
|
|
19
20
|
|
|
21
|
+
attr_accessor :tax_rates
|
|
22
|
+
|
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
24
|
def self.attribute_map
|
|
22
25
|
{
|
|
@@ -129,6 +132,8 @@ module XeroRuby::Accounting
|
|
|
129
132
|
value.to_i
|
|
130
133
|
when :Float
|
|
131
134
|
value.to_f
|
|
135
|
+
when :BigDecimal
|
|
136
|
+
BigDecimal(value.to_s)
|
|
132
137
|
when :Boolean
|
|
133
138
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
134
139
|
true
|
|
@@ -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.11
|
|
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
|
|
|
@@ -70,6 +70,10 @@ module XeroRuby::Accounting
|
|
|
70
70
|
TXCA = "TXCA".freeze
|
|
71
71
|
SRCAS = "SRCAS".freeze
|
|
72
72
|
BLINPUT2 = "BLINPUT2".freeze
|
|
73
|
+
DRCHARGESUPPLY20 = "DRCHARGESUPPLY20".freeze
|
|
74
|
+
DRCHARGE20 = "DRCHARGE20".freeze
|
|
75
|
+
DRCHARGESUPPLY5 = "DRCHARGESUPPLY5".freeze
|
|
76
|
+
DRCHARGE5 = "DRCHARGE5".freeze
|
|
73
77
|
|
|
74
78
|
# Builds the enum from string
|
|
75
79
|
# @param [String] The enum value in the form of the string
|
data/lib/xero-ruby/models/accounting/{ten_nintey_nine_contact.rb → ten_ninety_nine_contact.rb}
RENAMED
|
@@ -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.11
|
|
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
|
|
|
@@ -14,73 +14,75 @@ require 'time'
|
|
|
14
14
|
require 'date'
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
|
-
|
|
17
|
+
require 'bigdecimal'
|
|
18
|
+
|
|
19
|
+
class TenNinetyNineContact
|
|
18
20
|
# Box 1 on 1099 Form
|
|
19
21
|
attr_accessor :box1
|
|
20
|
-
|
|
22
|
+
|
|
21
23
|
# Box 2 on 1099 Form
|
|
22
24
|
attr_accessor :box2
|
|
23
|
-
|
|
25
|
+
|
|
24
26
|
# Box 3 on 1099 Form
|
|
25
27
|
attr_accessor :box3
|
|
26
|
-
|
|
28
|
+
|
|
27
29
|
# Box 4 on 1099 Form
|
|
28
30
|
attr_accessor :box4
|
|
29
|
-
|
|
31
|
+
|
|
30
32
|
# Box 5 on 1099 Form
|
|
31
33
|
attr_accessor :box5
|
|
32
|
-
|
|
34
|
+
|
|
33
35
|
# Box 6 on 1099 Form
|
|
34
36
|
attr_accessor :box6
|
|
35
|
-
|
|
37
|
+
|
|
36
38
|
# Box 7 on 1099 Form
|
|
37
39
|
attr_accessor :box7
|
|
38
|
-
|
|
40
|
+
|
|
39
41
|
# Box 8 on 1099 Form
|
|
40
42
|
attr_accessor :box8
|
|
41
|
-
|
|
43
|
+
|
|
42
44
|
# Box 9 on 1099 Form
|
|
43
45
|
attr_accessor :box9
|
|
44
|
-
|
|
46
|
+
|
|
45
47
|
# Box 10 on 1099 Form
|
|
46
48
|
attr_accessor :box10
|
|
47
|
-
|
|
49
|
+
|
|
48
50
|
# Box 11 on 1099 Form
|
|
49
51
|
attr_accessor :box11
|
|
50
|
-
|
|
52
|
+
|
|
51
53
|
# Box 13 on 1099 Form
|
|
52
54
|
attr_accessor :box13
|
|
53
|
-
|
|
55
|
+
|
|
54
56
|
# Box 14 on 1099 Form
|
|
55
57
|
attr_accessor :box14
|
|
56
|
-
|
|
58
|
+
|
|
57
59
|
# Contact name on 1099 Form
|
|
58
60
|
attr_accessor :name
|
|
59
|
-
|
|
61
|
+
|
|
60
62
|
# Contact Fed Tax ID type
|
|
61
63
|
attr_accessor :federal_tax_id_type
|
|
62
|
-
|
|
64
|
+
|
|
63
65
|
# Contact city on 1099 Form
|
|
64
66
|
attr_accessor :city
|
|
65
|
-
|
|
67
|
+
|
|
66
68
|
# Contact zip on 1099 Form
|
|
67
69
|
attr_accessor :zip
|
|
68
|
-
|
|
70
|
+
|
|
69
71
|
# Contact State on 1099 Form
|
|
70
72
|
attr_accessor :state
|
|
71
|
-
|
|
73
|
+
|
|
72
74
|
# Contact email on 1099 Form
|
|
73
75
|
attr_accessor :email
|
|
74
|
-
|
|
76
|
+
|
|
75
77
|
# Contact address on 1099 Form
|
|
76
78
|
attr_accessor :street_address
|
|
77
|
-
|
|
79
|
+
|
|
78
80
|
# Contact tax id on 1099 Form
|
|
79
81
|
attr_accessor :tax_id
|
|
80
|
-
|
|
82
|
+
|
|
81
83
|
# Contact contact id
|
|
82
84
|
attr_accessor :contact_id
|
|
83
|
-
|
|
85
|
+
|
|
84
86
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
85
87
|
def self.attribute_map
|
|
86
88
|
{
|
|
@@ -112,19 +114,19 @@ module XeroRuby::Accounting
|
|
|
112
114
|
# Attribute type mapping.
|
|
113
115
|
def self.openapi_types
|
|
114
116
|
{
|
|
115
|
-
:'box1' => :'
|
|
116
|
-
:'box2' => :'
|
|
117
|
-
:'box3' => :'
|
|
118
|
-
:'box4' => :'
|
|
119
|
-
:'box5' => :'
|
|
120
|
-
:'box6' => :'
|
|
121
|
-
:'box7' => :'
|
|
122
|
-
:'box8' => :'
|
|
123
|
-
:'box9' => :'
|
|
124
|
-
:'box10' => :'
|
|
125
|
-
:'box11' => :'
|
|
126
|
-
:'box13' => :'
|
|
127
|
-
:'box14' => :'
|
|
117
|
+
:'box1' => :'BigDecimal',
|
|
118
|
+
:'box2' => :'BigDecimal',
|
|
119
|
+
:'box3' => :'BigDecimal',
|
|
120
|
+
:'box4' => :'BigDecimal',
|
|
121
|
+
:'box5' => :'BigDecimal',
|
|
122
|
+
:'box6' => :'BigDecimal',
|
|
123
|
+
:'box7' => :'BigDecimal',
|
|
124
|
+
:'box8' => :'BigDecimal',
|
|
125
|
+
:'box9' => :'BigDecimal',
|
|
126
|
+
:'box10' => :'BigDecimal',
|
|
127
|
+
:'box11' => :'BigDecimal',
|
|
128
|
+
:'box13' => :'BigDecimal',
|
|
129
|
+
:'box14' => :'BigDecimal',
|
|
128
130
|
:'name' => :'String',
|
|
129
131
|
:'federal_tax_id_type' => :'String',
|
|
130
132
|
:'city' => :'String',
|
|
@@ -141,13 +143,13 @@ module XeroRuby::Accounting
|
|
|
141
143
|
# @param [Hash] attributes Model attributes in the form of hash
|
|
142
144
|
def initialize(attributes = {})
|
|
143
145
|
if (!attributes.is_a?(Hash))
|
|
144
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::Accounting::
|
|
146
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::Accounting::TenNinetyNineContact` initialize method"
|
|
145
147
|
end
|
|
146
148
|
|
|
147
149
|
# check to see if the attribute exists and convert string to symbol for hash key
|
|
148
150
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
149
151
|
if (!self.class.attribute_map.key?(k.to_sym))
|
|
150
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::Accounting::
|
|
152
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::Accounting::TenNinetyNineContact`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
151
153
|
end
|
|
152
154
|
h[k.to_sym] = v
|
|
153
155
|
}
|
|
@@ -338,6 +340,8 @@ module XeroRuby::Accounting
|
|
|
338
340
|
value.to_i
|
|
339
341
|
when :Float
|
|
340
342
|
value.to_f
|
|
343
|
+
when :BigDecimal
|
|
344
|
+
BigDecimal(value.to_s)
|
|
341
345
|
when :Boolean
|
|
342
346
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
343
347
|
true
|