From a510dc4e7e4ef37848e73cf5f04014e60d452df6 Mon Sep 17 00:00:00 2001 From: serknight Date: Thu, 2 Apr 2020 17:31:50 -0600 Subject: [PATCH 1/9] cdegen vsn: 4.3.0, Use Faraday for HTTP client.. Much simpler/lighter than Typheous.. Spec 2.0.7 --- accounting/.gitignore | 2 + accounting/.openapi-generator/VERSION | 2 +- accounting/.rubocop.yml | 14 +- accounting/.travis.yml | 2 +- accounting/Gemfile | 2 +- accounting/README.md | 10 +- accounting/docs/Account.md | 14 +- accounting/docs/BankTransaction.md | 10 +- accounting/docs/BankTransfer.md | 14 +- accounting/docs/BatchPayment.md | 12 +- accounting/docs/BrandingTheme.md | 2 +- accounting/docs/Contact.md | 10 +- accounting/docs/CreditNote.md | 10 +- accounting/docs/Employee.md | 2 +- accounting/docs/ExpenseClaim.md | 12 +- accounting/docs/HistoryRecord.md | 2 +- accounting/docs/Invoice.md | 34 +-- accounting/docs/Item.md | 2 +- accounting/docs/Journal.md | 2 +- accounting/docs/JournalLine.md | 2 +- accounting/docs/LinkedTransaction.md | 2 +- accounting/docs/ManualJournal.md | 6 +- accounting/docs/ManualJournalLine.md | 2 +- accounting/docs/Organisation.md | 2 +- accounting/docs/Overpayment.md | 6 +- accounting/docs/Payment.md | 4 +- accounting/docs/Prepayment.md | 8 +- accounting/docs/PurchaseOrder.md | 14 +- accounting/docs/Quote.md | 12 +- accounting/docs/Receipt.md | 10 +- accounting/docs/RepeatingInvoice.md | 4 +- accounting/docs/Report.md | 2 +- accounting/docs/ReportWithRow.md | 2 +- accounting/docs/TaxRate.md | 14 +- accounting/docs/User.md | 2 +- accounting/git_push.sh | 17 +- accounting/lib/xero-ruby.rb | 4 +- .../lib/xero-ruby/api/accounting_api.rb | 288 +++++++++--------- accounting/lib/xero-ruby/api_client.rb | 104 ++++--- accounting/lib/xero-ruby/api_error.rb | 4 +- accounting/lib/xero-ruby/configuration.rb | 31 +- accounting/lib/xero-ruby/models/account.rb | 29 +- .../lib/xero-ruby/models/account_type.rb | 5 +- accounting/lib/xero-ruby/models/accounts.rb | 27 +- .../lib/xero-ruby/models/accounts_payable.rb | 27 +- .../xero-ruby/models/accounts_receivable.rb | 27 +- accounting/lib/xero-ruby/models/address.rb | 27 +- accounting/lib/xero-ruby/models/allocation.rb | 27 +- .../lib/xero-ruby/models/allocations.rb | 27 +- accounting/lib/xero-ruby/models/attachment.rb | 27 +- .../lib/xero-ruby/models/attachments.rb | 27 +- accounting/lib/xero-ruby/models/balances.rb | 27 +- .../lib/xero-ruby/models/bank_transaction.rb | 29 +- .../lib/xero-ruby/models/bank_transactions.rb | 27 +- .../lib/xero-ruby/models/bank_transfer.rb | 29 +- .../lib/xero-ruby/models/bank_transfers.rb | 27 +- .../lib/xero-ruby/models/batch_payment.rb | 27 +- .../xero-ruby/models/batch_payment_details.rb | 27 +- .../lib/xero-ruby/models/batch_payments.rb | 27 +- accounting/lib/xero-ruby/models/bill.rb | 27 +- .../lib/xero-ruby/models/branding_theme.rb | 27 +- .../lib/xero-ruby/models/branding_themes.rb | 27 +- .../lib/xero-ruby/models/cis_org_setting.rb | 27 +- .../lib/xero-ruby/models/cis_setting.rb | 27 +- .../lib/xero-ruby/models/cis_settings.rb | 27 +- accounting/lib/xero-ruby/models/contact.rb | 29 +- .../lib/xero-ruby/models/contact_group.rb | 27 +- .../lib/xero-ruby/models/contact_groups.rb | 27 +- .../lib/xero-ruby/models/contact_person.rb | 27 +- accounting/lib/xero-ruby/models/contacts.rb | 27 +- .../lib/xero-ruby/models/country_code.rb | 5 +- .../lib/xero-ruby/models/credit_note.rb | 41 ++- .../lib/xero-ruby/models/credit_notes.rb | 27 +- accounting/lib/xero-ruby/models/currencies.rb | 27 +- accounting/lib/xero-ruby/models/currency.rb | 27 +- .../lib/xero-ruby/models/currency_code.rb | 5 +- accounting/lib/xero-ruby/models/element.rb | 27 +- accounting/lib/xero-ruby/models/employee.rb | 27 +- accounting/lib/xero-ruby/models/employees.rb | 27 +- accounting/lib/xero-ruby/models/error.rb | 27 +- .../lib/xero-ruby/models/expense_claim.rb | 30 +- .../lib/xero-ruby/models/expense_claims.rb | 27 +- .../lib/xero-ruby/models/external_link.rb | 27 +- .../lib/xero-ruby/models/history_record.rb | 27 +- .../lib/xero-ruby/models/history_records.rb | 27 +- accounting/lib/xero-ruby/models/invoice.rb | 29 +- .../lib/xero-ruby/models/invoice_reminder.rb | 27 +- .../lib/xero-ruby/models/invoice_reminders.rb | 27 +- accounting/lib/xero-ruby/models/invoices.rb | 27 +- accounting/lib/xero-ruby/models/item.rb | 27 +- accounting/lib/xero-ruby/models/items.rb | 27 +- accounting/lib/xero-ruby/models/journal.rb | 27 +- .../lib/xero-ruby/models/journal_line.rb | 27 +- accounting/lib/xero-ruby/models/journals.rb | 27 +- .../lib/xero-ruby/models/line_amount_types.rb | 5 +- accounting/lib/xero-ruby/models/line_item.rb | 27 +- .../xero-ruby/models/line_item_tracking.rb | 27 +- .../xero-ruby/models/linked_transaction.rb | 27 +- .../xero-ruby/models/linked_transactions.rb | 27 +- .../lib/xero-ruby/models/manual_journal.rb | 29 +- .../xero-ruby/models/manual_journal_line.rb | 27 +- .../lib/xero-ruby/models/manual_journals.rb | 27 +- .../lib/xero-ruby/models/online_invoice.rb | 27 +- .../lib/xero-ruby/models/online_invoices.rb | 27 +- .../lib/xero-ruby/models/organisation.rb | 27 +- .../lib/xero-ruby/models/organisations.rb | 27 +- .../lib/xero-ruby/models/overpayment.rb | 29 +- .../lib/xero-ruby/models/overpayments.rb | 27 +- accounting/lib/xero-ruby/models/payment.rb | 27 +- .../lib/xero-ruby/models/payment_delete.rb | 27 +- .../lib/xero-ruby/models/payment_service.rb | 27 +- .../lib/xero-ruby/models/payment_services.rb | 27 +- .../lib/xero-ruby/models/payment_term.rb | 27 +- .../lib/xero-ruby/models/payment_term_type.rb | 5 +- accounting/lib/xero-ruby/models/payments.rb | 27 +- accounting/lib/xero-ruby/models/phone.rb | 27 +- accounting/lib/xero-ruby/models/prepayment.rb | 29 +- .../lib/xero-ruby/models/prepayments.rb | 27 +- accounting/lib/xero-ruby/models/purchase.rb | 27 +- .../lib/xero-ruby/models/purchase_order.rb | 29 +- .../lib/xero-ruby/models/purchase_orders.rb | 27 +- accounting/lib/xero-ruby/models/quote.rb | 29 +- .../models/quote_line_amount_types.rb | 5 +- .../xero-ruby/models/quote_status_codes.rb | 5 +- accounting/lib/xero-ruby/models/quotes.rb | 27 +- accounting/lib/xero-ruby/models/receipt.rb | 29 +- accounting/lib/xero-ruby/models/receipts.rb | 27 +- .../lib/xero-ruby/models/repeating_invoice.rb | 29 +- .../xero-ruby/models/repeating_invoices.rb | 27 +- accounting/lib/xero-ruby/models/report.rb | 27 +- .../lib/xero-ruby/models/report_attribute.rb | 27 +- .../lib/xero-ruby/models/report_cell.rb | 27 +- .../lib/xero-ruby/models/report_fields.rb | 27 +- accounting/lib/xero-ruby/models/report_row.rb | 27 +- .../lib/xero-ruby/models/report_rows.rb | 27 +- .../lib/xero-ruby/models/report_with_row.rb | 27 +- .../lib/xero-ruby/models/report_with_rows.rb | 27 +- accounting/lib/xero-ruby/models/reports.rb | 27 +- .../lib/xero-ruby/models/request_empty.rb | 27 +- accounting/lib/xero-ruby/models/row_type.rb | 5 +- .../models/sales_tracking_category.rb | 27 +- accounting/lib/xero-ruby/models/schedule.rb | 27 +- .../lib/xero-ruby/models/tax_component.rb | 27 +- accounting/lib/xero-ruby/models/tax_rate.rb | 27 +- accounting/lib/xero-ruby/models/tax_rates.rb | 27 +- accounting/lib/xero-ruby/models/tax_type.rb | 5 +- .../models/ten_nintey_nine_contact.rb | 27 +- accounting/lib/xero-ruby/models/time_zone.rb | 5 +- .../xero-ruby/models/tracking_categories.rb | 27 +- .../lib/xero-ruby/models/tracking_category.rb | 27 +- .../lib/xero-ruby/models/tracking_option.rb | 27 +- .../lib/xero-ruby/models/tracking_options.rb | 27 +- accounting/lib/xero-ruby/models/user.rb | 27 +- accounting/lib/xero-ruby/models/users.rb | 27 +- .../lib/xero-ruby/models/validation_error.rb | 27 +- accounting/lib/xero-ruby/version.rb | 6 +- accounting/spec/api/accounting_api_spec.rb | 31 +- accounting/spec/api_client_spec.rb | 44 +-- accounting/spec/configuration_spec.rb | 4 +- accounting/spec/models/account_spec.rb | 4 +- accounting/spec/models/account_type_spec.rb | 4 +- .../spec/models/accounts_payable_spec.rb | 4 +- .../spec/models/accounts_receivable_spec.rb | 4 +- accounting/spec/models/accounts_spec.rb | 4 +- accounting/spec/models/address_spec.rb | 4 +- accounting/spec/models/allocation_spec.rb | 4 +- accounting/spec/models/allocations_spec.rb | 4 +- accounting/spec/models/attachment_spec.rb | 4 +- accounting/spec/models/attachments_spec.rb | 4 +- accounting/spec/models/balances_spec.rb | 4 +- .../spec/models/bank_transaction_spec.rb | 4 +- .../spec/models/bank_transactions_spec.rb | 4 +- accounting/spec/models/bank_transfer_spec.rb | 4 +- accounting/spec/models/bank_transfers_spec.rb | 4 +- .../spec/models/batch_payment_details_spec.rb | 4 +- accounting/spec/models/batch_payment_spec.rb | 4 +- accounting/spec/models/batch_payments_spec.rb | 4 +- accounting/spec/models/bill_spec.rb | 4 +- accounting/spec/models/branding_theme_spec.rb | 4 +- .../spec/models/branding_themes_spec.rb | 4 +- .../spec/models/cis_org_setting_spec.rb | 4 +- accounting/spec/models/cis_setting_spec.rb | 4 +- accounting/spec/models/cis_settings_spec.rb | 4 +- accounting/spec/models/contact_group_spec.rb | 4 +- accounting/spec/models/contact_groups_spec.rb | 4 +- accounting/spec/models/contact_person_spec.rb | 4 +- accounting/spec/models/contact_spec.rb | 4 +- accounting/spec/models/contacts_spec.rb | 4 +- accounting/spec/models/country_code_spec.rb | 4 +- accounting/spec/models/credit_note_spec.rb | 10 +- accounting/spec/models/credit_notes_spec.rb | 4 +- accounting/spec/models/currencies_spec.rb | 4 +- accounting/spec/models/currency_code_spec.rb | 4 +- accounting/spec/models/currency_spec.rb | 4 +- accounting/spec/models/element_spec.rb | 4 +- accounting/spec/models/employee_spec.rb | 4 +- accounting/spec/models/employees_spec.rb | 4 +- accounting/spec/models/error_spec.rb | 4 +- accounting/spec/models/expense_claim_spec.rb | 4 +- accounting/spec/models/expense_claims_spec.rb | 4 +- accounting/spec/models/external_link_spec.rb | 4 +- accounting/spec/models/history_record_spec.rb | 4 +- .../spec/models/history_records_spec.rb | 4 +- .../spec/models/invoice_reminder_spec.rb | 4 +- .../spec/models/invoice_reminders_spec.rb | 4 +- accounting/spec/models/invoice_spec.rb | 6 +- accounting/spec/models/invoices_spec.rb | 4 +- accounting/spec/models/item_spec.rb | 4 +- accounting/spec/models/items_spec.rb | 4 +- accounting/spec/models/journal_line_spec.rb | 4 +- accounting/spec/models/journal_spec.rb | 4 +- accounting/spec/models/journals_spec.rb | 4 +- .../spec/models/line_amount_types_spec.rb | 4 +- accounting/spec/models/line_item_spec.rb | 4 +- .../spec/models/line_item_tracking_spec.rb | 4 +- .../spec/models/linked_transaction_spec.rb | 4 +- .../spec/models/linked_transactions_spec.rb | 4 +- .../spec/models/manual_journal_line_spec.rb | 4 +- accounting/spec/models/manual_journal_spec.rb | 4 +- .../spec/models/manual_journals_spec.rb | 4 +- accounting/spec/models/online_invoice_spec.rb | 4 +- .../spec/models/online_invoices_spec.rb | 4 +- accounting/spec/models/organisation_spec.rb | 4 +- accounting/spec/models/organisations_spec.rb | 4 +- accounting/spec/models/overpayment_spec.rb | 4 +- accounting/spec/models/overpayments_spec.rb | 4 +- accounting/spec/models/payment_delete_spec.rb | 4 +- .../spec/models/payment_service_spec.rb | 4 +- .../spec/models/payment_services_spec.rb | 4 +- accounting/spec/models/payment_spec.rb | 4 +- accounting/spec/models/payment_term_spec.rb | 4 +- .../spec/models/payment_term_type_spec.rb | 4 +- accounting/spec/models/payments_spec.rb | 4 +- accounting/spec/models/phone_spec.rb | 4 +- accounting/spec/models/prepayment_spec.rb | 4 +- accounting/spec/models/prepayments_spec.rb | 4 +- accounting/spec/models/purchase_order_spec.rb | 4 +- .../spec/models/purchase_orders_spec.rb | 4 +- accounting/spec/models/purchase_spec.rb | 4 +- .../models/quote_line_amount_types_spec.rb | 4 +- accounting/spec/models/quote_spec.rb | 4 +- .../spec/models/quote_status_codes_spec.rb | 4 +- accounting/spec/models/quotes_spec.rb | 4 +- accounting/spec/models/receipt_spec.rb | 4 +- accounting/spec/models/receipts_spec.rb | 4 +- .../spec/models/repeating_invoice_spec.rb | 4 +- .../spec/models/repeating_invoices_spec.rb | 4 +- .../spec/models/report_attribute_spec.rb | 4 +- accounting/spec/models/report_cell_spec.rb | 4 +- accounting/spec/models/report_fields_spec.rb | 4 +- accounting/spec/models/report_row_spec.rb | 4 +- accounting/spec/models/report_rows_spec.rb | 4 +- accounting/spec/models/report_spec.rb | 4 +- .../spec/models/report_with_row_spec.rb | 4 +- .../spec/models/report_with_rows_spec.rb | 4 +- accounting/spec/models/reports_spec.rb | 4 +- accounting/spec/models/request_empty_spec.rb | 4 +- accounting/spec/models/row_type_spec.rb | 4 +- .../models/sales_tracking_category_spec.rb | 4 +- accounting/spec/models/schedule_spec.rb | 4 +- accounting/spec/models/tax_component_spec.rb | 4 +- accounting/spec/models/tax_rate_spec.rb | 4 +- accounting/spec/models/tax_rates_spec.rb | 4 +- accounting/spec/models/tax_type_spec.rb | 4 +- .../models/ten_nintey_nine_contact_spec.rb | 4 +- accounting/spec/models/time_zone_spec.rb | 4 +- .../spec/models/tracking_categories_spec.rb | 4 +- .../spec/models/tracking_category_spec.rb | 4 +- .../spec/models/tracking_option_spec.rb | 4 +- .../spec/models/tracking_options_spec.rb | 4 +- accounting/spec/models/user_spec.rb | 4 +- accounting/spec/models/users_spec.rb | 4 +- .../spec/models/validation_error_spec.rb | 4 +- accounting/spec/spec_helper.rb | 4 +- accounting/xero-ruby.gemspec | 6 +- 275 files changed, 2238 insertions(+), 1918 deletions(-) diff --git a/accounting/.gitignore b/accounting/.gitignore index 05a17cb8..2fab68ef 100644 --- a/accounting/.gitignore +++ b/accounting/.gitignore @@ -37,3 +37,5 @@ build/ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc + +.DS_Store \ No newline at end of file diff --git a/accounting/.openapi-generator/VERSION b/accounting/.openapi-generator/VERSION index ef8d7569..81911389 100644 --- a/accounting/.openapi-generator/VERSION +++ b/accounting/.openapi-generator/VERSION @@ -1 +1 @@ -4.2.0 \ No newline at end of file +4.3.0 \ No newline at end of file diff --git a/accounting/.rubocop.yml b/accounting/.rubocop.yml index 0ef33ce5..df460584 100644 --- a/accounting/.rubocop.yml +++ b/accounting/.rubocop.yml @@ -14,12 +14,6 @@ AllCops: Style/AndOr: Enabled: true -# Do not use braces for hash literals when they are the last argument of a -# method call. -Style/BracesAroundHashParameters: - Enabled: true - EnforcedStyle: context_dependent - # Align `when` with `case`. Layout/CaseIndentation: Enabled: true @@ -46,7 +40,7 @@ Layout/EmptyLinesAroundMethodBody: Layout/EmptyLinesAroundModuleBody: Enabled: true -Layout/IndentFirstArgument: +Layout/FirstArgumentIndentation: Enabled: true # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. @@ -57,7 +51,7 @@ Style/HashSyntax: # extra level of indentation. Layout/IndentationConsistency: Enabled: true - EnforcedStyle: rails + EnforcedStyle: indented_internal_methods # Two spaces, no tabs (for indentation). Layout/IndentationWidth: @@ -123,7 +117,7 @@ Layout/Tab: Enabled: true # Blank lines should not have any spaces. -Layout/TrailingBlankLines: +Layout/TrailingEmptyLines: Enabled: true # No trailing whitespace. @@ -131,7 +125,7 @@ Layout/TrailingWhitespace: Enabled: false # Use quotes for string literals when they are enough. -Style/UnneededPercentQ: +Style/RedundantPercentQ: Enabled: true # Align `end` with the matching keyword or starting expression except for diff --git a/accounting/.travis.yml b/accounting/.travis.yml index 957e4f15..f91c207e 100644 --- a/accounting/.travis.yml +++ b/accounting/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build xero-ruby.gemspec - - gem install ./xero-ruby-0.2.3.gem + - gem install ./xero-ruby-0.2.2.gem diff --git a/accounting/Gemfile b/accounting/Gemfile index 577f058f..c2e3127c 100644 --- a/accounting/Gemfile +++ b/accounting/Gemfile @@ -3,7 +3,7 @@ source 'https://rubygems.org' gemspec group :development, :test do - gem 'rake', '~> 12.3.3' + gem 'rake', '~> 13.0.1' gem 'pry-byebug' gem 'rubocop', '~> 0.66.0' end diff --git a/accounting/README.md b/accounting/README.md index eb0031b8..99c63f7f 100644 --- a/accounting/README.md +++ b/accounting/README.md @@ -6,8 +6,8 @@ No description provided (generated by Openapi Generator https://github.com/opena This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.0.6 -- Package version: 0.2.3 +- API version: 2.0.7 +- Package version: 0.2.2 - Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit [https://developer.xero.com](https://developer.xero.com) @@ -24,16 +24,16 @@ gem build xero-ruby.gemspec Then either install the gem locally: ```shell -gem install ./xero-ruby-0.2.3.gem +gem install ./xero-ruby-0.2.2.gem ``` -(for development, run `gem install --dev ./xero-ruby-0.2.3.gem` to install the development dependencies) +(for development, run `gem install --dev ./xero-ruby-0.2.2.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'xero-ruby', '~> 0.2.3' + gem 'xero-ruby', '~> 0.2.2' ### Install from Git diff --git a/accounting/docs/Account.md b/accounting/docs/Account.md index a118946a..12393060 100644 --- a/accounting/docs/Account.md +++ b/accounting/docs/Account.md @@ -16,12 +16,12 @@ Name | Type | Description | Notes **tax_type** | **String** | The tax type from TaxRates | [optional] **enable_payments_to_account** | **Boolean** | Boolean – describes whether account can have payments applied to it | [optional] **show_in_expense_claims** | **Boolean** | Boolean – describes whether account code is available for use with expense claims | [optional] -**_class** | **String** | See Account Class Types | [optional] -**system_account** | **String** | If this is a system account then this element is returned. See System Account types. Note that non-system accounts may have this element set as either “” or null. | [optional] -**reporting_code** | **String** | Shown if set | [optional] -**reporting_code_name** | **String** | Shown if set | [optional] -**has_attachments** | **Boolean** | boolean to indicate if an account has an attachment (read only) | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**_class** | **String** | See Account Class Types | [optional] [readonly] +**system_account** | **String** | If this is a system account then this element is returned. See System Account types. Note that non-system accounts may have this element set as either “” or null. | [optional] [readonly] +**reporting_code** | **String** | Shown if set | [optional] [readonly] +**reporting_code_name** | **String** | Shown if set | [optional] [readonly] +**has_attachments** | **Boolean** | boolean to indicate if an account has an attachment (read only) | [optional] [readonly] [default to false] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] **add_to_watchlist** | **Boolean** | Boolean – describes whether the account is shown in the watchlist widget on the dashboard | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] @@ -46,7 +46,7 @@ instance = XeroRuby::Account.new(code: 4400, system_account: null, reporting_code: null, reporting_code_name: null, - has_attachments: null, + has_attachments: false, updated_date_utc: null, add_to_watchlist: null, validation_errors: null) diff --git a/accounting/docs/BankTransaction.md b/accounting/docs/BankTransaction.md index 216afd33..33aa0a69 100644 --- a/accounting/docs/BankTransaction.md +++ b/accounting/docs/BankTransaction.md @@ -20,10 +20,10 @@ Name | Type | Description | Notes **total_tax** | **Float** | Total tax on bank transaction | [optional] **total** | **Float** | Total of bank transaction tax inclusive | [optional] **bank_transaction_id** | **String** | Xero generated unique identifier for bank transaction | [optional] -**prepayment_id** | **String** | Xero generated unique identifier for a Prepayment. This will be returned on BankTransactions with a Type of SPEND-PREPAYMENT or RECEIVE-PREPAYMENT | [optional] -**overpayment_id** | **String** | Xero generated unique identifier for an Overpayment. This will be returned on BankTransactions with a Type of SPEND-OVERPAYMENT or RECEIVE-OVERPAYMENT | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] -**has_attachments** | **Boolean** | Boolean to indicate if a bank transaction has an attachment | [optional] +**prepayment_id** | **String** | Xero generated unique identifier for a Prepayment. This will be returned on BankTransactions with a Type of SPEND-PREPAYMENT or RECEIVE-PREPAYMENT | [optional] [readonly] +**overpayment_id** | **String** | Xero generated unique identifier for an Overpayment. This will be returned on BankTransactions with a Type of SPEND-OVERPAYMENT or RECEIVE-OVERPAYMENT | [optional] [readonly] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] +**has_attachments** | **Boolean** | Boolean to indicate if a bank transaction has an attachment | [optional] [readonly] [default to false] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] @@ -51,7 +51,7 @@ instance = XeroRuby::BankTransaction.new(type: null, prepayment_id: 00000000-0000-0000-0000-000000000000, overpayment_id: 00000000-0000-0000-0000-000000000000, updated_date_utc: null, - has_attachments: null, + has_attachments: false, status_attribute_string: null, validation_errors: null) ``` diff --git a/accounting/docs/BankTransfer.md b/accounting/docs/BankTransfer.md index 6ede1441..d0b7801c 100644 --- a/accounting/docs/BankTransfer.md +++ b/accounting/docs/BankTransfer.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **to_bank_account** | [**Account**](Account.md) | | **amount** | **String** | amount of the transaction | **date** | **Date** | The date of the Transfer YYYY-MM-DD | [optional] -**bank_transfer_id** | **String** | The identifier of the Bank Transfer | [optional] -**currency_rate** | **Float** | The currency rate | [optional] -**from_bank_transaction_id** | **String** | The Bank Transaction ID for the source account | [optional] -**to_bank_transaction_id** | **String** | The Bank Transaction ID for the destination account | [optional] -**has_attachments** | **Boolean** | Boolean to indicate if a Bank Transfer has an attachment | [optional] -**created_date_utc** | **DateTime** | UTC timestamp of creation date of bank transfer | [optional] +**bank_transfer_id** | **String** | The identifier of the Bank Transfer | [optional] [readonly] +**currency_rate** | **Float** | The currency rate | [optional] [readonly] +**from_bank_transaction_id** | **String** | The Bank Transaction ID for the source account | [optional] [readonly] +**to_bank_transaction_id** | **String** | The Bank Transaction ID for the destination account | [optional] [readonly] +**has_attachments** | **Boolean** | Boolean to indicate if a Bank Transfer has an attachment | [optional] [readonly] [default to false] +**created_date_utc** | **DateTime** | UTC timestamp of creation date of bank transfer | [optional] [readonly] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] ## Code Sample @@ -29,7 +29,7 @@ instance = XeroRuby::BankTransfer.new(from_bank_account: null, currency_rate: null, from_bank_transaction_id: null, to_bank_transaction_id: null, - has_attachments: null, + has_attachments: false, created_date_utc: null, validation_errors: null) ``` diff --git a/accounting/docs/BatchPayment.md b/accounting/docs/BatchPayment.md index 394716c9..8d551740 100644 --- a/accounting/docs/BatchPayment.md +++ b/accounting/docs/BatchPayment.md @@ -10,16 +10,16 @@ Name | Type | Description | Notes **code** | **String** | (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero. | [optional] **details** | **String** | (Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero. Maximum field length = 18 | [optional] **narrative** | **String** | (UK Only) Only shows on the statement line in Xero. Max length =18 | [optional] -**batch_payment_id** | **String** | The Xero generated unique identifier for the bank transaction (read-only) | [optional] +**batch_payment_id** | **String** | The Xero generated unique identifier for the bank transaction (read-only) | [optional] [readonly] **date_string** | **String** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional] **date** | **Date** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional] **amount** | **Float** | The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00 | [optional] **payments** | [**Array<Payment>**](Payment.md) | | [optional] -**type** | **String** | PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) | [optional] -**status** | **String** | AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API. | [optional] -**total_amount** | **String** | The total of the payments that make up the batch (read-only) | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] -**is_reconciled** | **String** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional] +**type** | **String** | PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) | [optional] [readonly] +**status** | **String** | AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API. | [optional] [readonly] +**total_amount** | **String** | The total of the payments that make up the batch (read-only) | [optional] [readonly] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] [readonly] +**is_reconciled** | **String** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional] [readonly] ## Code Sample diff --git a/accounting/docs/BrandingTheme.md b/accounting/docs/BrandingTheme.md index 776797d8..128e418c 100644 --- a/accounting/docs/BrandingTheme.md +++ b/accounting/docs/BrandingTheme.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **logo_url** | **String** | The location of the image file used as the logo on this branding theme | [optional] **type** | **String** | Always INVOICE | [optional] **sort_order** | **Integer** | Integer – ranked order of branding theme. The default branding theme has a value of 0 | [optional] -**created_date_utc** | **DateTime** | UTC timestamp of creation date of branding theme | [optional] +**created_date_utc** | **DateTime** | UTC timestamp of creation date of branding theme | [optional] [readonly] ## Code Sample diff --git a/accounting/docs/Contact.md b/accounting/docs/Contact.md index 2633ed77..09622773 100644 --- a/accounting/docs/Contact.md +++ b/accounting/docs/Contact.md @@ -31,15 +31,15 @@ Name | Type | Description | Notes **tracking_category_name** | **String** | The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories | [optional] **tracking_category_option** | **String** | The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories | [optional] **payment_terms** | [**PaymentTerm**](PaymentTerm.md) | | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to contact | [optional] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to contact | [optional] [readonly] **contact_groups** | [**Array<ContactGroup>**](ContactGroup.md) | Displays which contact groups a contact is included in | [optional] -**website** | **String** | Website address for contact (read only) | [optional] +**website** | **String** | Website address for contact (read only) | [optional] [readonly] **branding_theme** | [**BrandingTheme**](BrandingTheme.md) | | [optional] **batch_payments** | [**BatchPaymentDetails**](BatchPaymentDetails.md) | | [optional] -**discount** | **Float** | The default discount rate for the contact (read only) | [optional] +**discount** | **Float** | The default discount rate for the contact (read only) | [optional] [readonly] **balances** | [**Balances**](Balances.md) | | [optional] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] -**has_attachments** | **Boolean** | A boolean to indicate if a contact has an attachment | [optional] +**has_attachments** | **Boolean** | A boolean to indicate if a contact has an attachment | [optional] [default to false] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays validation errors returned from the API | [optional] **has_validation_errors** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional] **status_attribute_string** | **String** | Status of object | [optional] @@ -84,7 +84,7 @@ instance = XeroRuby::Contact.new(contact_id: null, discount: null, balances: null, attachments: null, - has_attachments: null, + has_attachments: false, validation_errors: null, has_validation_errors: null, status_attribute_string: null) diff --git a/accounting/docs/CreditNote.md b/accounting/docs/CreditNote.md index 3dfba3aa..bbb71afa 100644 --- a/accounting/docs/CreditNote.md +++ b/accounting/docs/CreditNote.md @@ -13,20 +13,21 @@ Name | Type | Description | Notes **sub_total** | **Float** | The subtotal of the credit note excluding taxes | [optional] **total_tax** | **Float** | The total tax on the credit note | [optional] **total** | **Float** | The total of the Credit Note(subtotal + total tax) | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the credit note | [optional] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the credit note | [optional] [readonly] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **fully_paid_on_date** | **Date** | Date when credit note was fully paid(UTC format) | [optional] **credit_note_id** | **String** | Xero generated unique identifier | [optional] **credit_note_number** | **String** | ACCRECCREDIT – Unique alpha numeric code identifying credit note (when missing will auto-generate from your Organisation Invoice Settings) | [optional] **reference** | **String** | ACCRECCREDIT only – additional reference number | [optional] -**sent_to_contact** | **Boolean** | boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only) | [optional] +**sent_to_contact** | **Boolean** | boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only) | [optional] [readonly] **currency_rate** | **Float** | The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used | [optional] **remaining_credit** | **Float** | The remaining credit balance on the Credit Note | [optional] **allocations** | [**Array<Allocation>**](Allocation.md) | See Allocations | [optional] **applied_amount** | **Float** | The amount of applied to an invoice | [optional] **payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] **branding_theme_id** | **String** | See BrandingThemes | [optional] -**has_attachments** | **Boolean** | boolean to indicate if a credit note has an attachment | [optional] +**status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] +**has_attachments** | **Boolean** | boolean to indicate if a credit note has an attachment | [optional] [default to false] **has_errors** | **Boolean** | A boolean to indicate if a credit note has an validation errors | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] @@ -57,7 +58,8 @@ instance = XeroRuby::CreditNote.new(type: null, applied_amount: 2.0, payments: null, branding_theme_id: null, - has_attachments: null, + status_attribute_string: null, + has_attachments: false, has_errors: null, validation_errors: null) ``` diff --git a/accounting/docs/Employee.md b/accounting/docs/Employee.md index 0575f2cf..975d2113 100644 --- a/accounting/docs/Employee.md +++ b/accounting/docs/Employee.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **first_name** | **String** | First name of an employee (max length = 255) | [optional] **last_name** | **String** | Last name of an employee (max length = 255) | [optional] **external_link** | [**ExternalLink**](ExternalLink.md) | | [optional] -**updated_date_utc** | **DateTime** | | [optional] +**updated_date_utc** | **DateTime** | | [optional] [readonly] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/accounting/docs/ExpenseClaim.md b/accounting/docs/ExpenseClaim.md index 8f982f0b..8dfeb933 100644 --- a/accounting/docs/ExpenseClaim.md +++ b/accounting/docs/ExpenseClaim.md @@ -9,12 +9,12 @@ Name | Type | Description | Notes **payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] **user** | [**User**](User.md) | | [optional] **receipts** | [**Array<Receipt>**](Receipt.md) | | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] -**total** | **Float** | The total of an expense claim being paid | [optional] -**amount_due** | **Float** | The amount due to be paid for an expense claim | [optional] -**amount_paid** | **Float** | The amount still to pay for an expense claim | [optional] -**payment_due_date** | **Date** | The date when the expense claim is due to be paid YYYY-MM-DD | [optional] -**reporting_date** | **Date** | The date the expense claim will be reported in Xero YYYY-MM-DD | [optional] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] +**total** | **Float** | The total of an expense claim being paid | [optional] [readonly] +**amount_due** | **Float** | The amount due to be paid for an expense claim | [optional] [readonly] +**amount_paid** | **Float** | The amount still to pay for an expense claim | [optional] [readonly] +**payment_due_date** | **Date** | The date when the expense claim is due to be paid YYYY-MM-DD | [optional] [readonly] +**reporting_date** | **Date** | The date the expense claim will be reported in Xero YYYY-MM-DD | [optional] [readonly] **receipt_id** | **String** | The Xero identifier for the Receipt e.g. e59a2c7f-1306-4078-a0f3-73537afcbba9 | [optional] ## Code Sample diff --git a/accounting/docs/HistoryRecord.md b/accounting/docs/HistoryRecord.md index 8e86fea1..b3e306b4 100644 --- a/accounting/docs/HistoryRecord.md +++ b/accounting/docs/HistoryRecord.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **details** | **String** | details | [optional] **changes** | **String** | Name of branding theme | [optional] **user** | **String** | has a value of 0 | [optional] -**date_utc** | **DateTime** | UTC timestamp of creation date of branding theme | [optional] +**date_utc** | **DateTime** | UTC timestamp of creation date of branding theme | [optional] [readonly] ## Code Sample diff --git a/accounting/docs/Invoice.md b/accounting/docs/Invoice.md index ba4d73d4..131048ba 100644 --- a/accounting/docs/Invoice.md +++ b/accounting/docs/Invoice.md @@ -20,23 +20,23 @@ Name | Type | Description | Notes **sent_to_contact** | **Boolean** | Boolean to set whether the invoice in the Xero app should be marked as “sent”. This can be set only on invoices that have been approved | [optional] **expected_payment_date** | **Date** | Shown on sales invoices (Accounts Receivable) when this has been set | [optional] **planned_payment_date** | **Date** | Shown on bills (Accounts Payable) when this has been set | [optional] -**cis_deduction** | **Float** | CIS deduction for UK contractors | [optional] -**sub_total** | **Float** | Total of invoice excluding taxes | [optional] -**total_tax** | **Float** | Total tax on invoice | [optional] -**total** | **Float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional] -**total_discount** | **Float** | Total of discounts applied on the invoice line items | [optional] +**cis_deduction** | **Float** | CIS deduction for UK contractors | [optional] [readonly] +**sub_total** | **Float** | Total of invoice excluding taxes | [optional] [readonly] +**total_tax** | **Float** | Total tax on invoice | [optional] [readonly] +**total** | **Float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional] [readonly] +**total_discount** | **Float** | Total of discounts applied on the invoice line items | [optional] [readonly] **invoice_id** | **String** | Xero generated unique identifier for invoice | [optional] -**has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] -**is_discounted** | **Boolean** | boolean to indicate if an invoice has a discount | [optional] -**payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] -**prepayments** | [**Array<Prepayment>**](Prepayment.md) | See Prepayments | [optional] -**overpayments** | [**Array<Overpayment>**](Overpayment.md) | See Overpayments | [optional] -**amount_due** | **Float** | Amount remaining to be paid on invoice | [optional] -**amount_paid** | **Float** | Sum of payments received for invoice | [optional] -**fully_paid_on_date** | **Date** | The date the invoice was fully paid. Only returned on fully paid invoices | [optional] -**amount_credited** | **Float** | Sum of all credit notes, over-payments and pre-payments applied to invoice | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] -**credit_notes** | [**Array<CreditNote>**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional] +**has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] [readonly] [default to false] +**is_discounted** | **Boolean** | boolean to indicate if an invoice has a discount | [optional] [readonly] +**payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] [readonly] +**prepayments** | [**Array<Prepayment>**](Prepayment.md) | See Prepayments | [optional] [readonly] +**overpayments** | [**Array<Overpayment>**](Overpayment.md) | See Overpayments | [optional] [readonly] +**amount_due** | **Float** | Amount remaining to be paid on invoice | [optional] [readonly] +**amount_paid** | **Float** | Sum of payments received for invoice | [optional] [readonly] +**fully_paid_on_date** | **Date** | The date the invoice was fully paid. Only returned on fully paid invoices | [optional] [readonly] +**amount_credited** | **Float** | Sum of all credit notes, over-payments and pre-payments applied to invoice | [optional] [readonly] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] +**credit_notes** | [**Array<CreditNote>**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional] [readonly] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] **has_errors** | **Boolean** | A boolean to indicate if a invoice has an validation errors | [optional] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] @@ -70,7 +70,7 @@ instance = XeroRuby::Invoice.new(type: null, total: null, total_discount: null, invoice_id: null, - has_attachments: null, + has_attachments: false, is_discounted: null, payments: null, prepayments: null, diff --git a/accounting/docs/Item.md b/accounting/docs/Item.md index 3683d4e3..1db5f983 100644 --- a/accounting/docs/Item.md +++ b/accounting/docs/Item.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **is_tracked_as_inventory** | **Boolean** | True for items that are tracked as inventory. An item will be tracked as inventory if the InventoryAssetAccountCode and COGSAccountCode are set. | [optional] **total_cost_pool** | **Float** | The value of the item on hand. Calculated using average cost accounting. | [optional] **quantity_on_hand** | **Float** | The quantity of the item on hand | [optional] -**updated_date_utc** | **DateTime** | Last modified date in UTC format | [optional] +**updated_date_utc** | **DateTime** | Last modified date in UTC format | [optional] [readonly] **item_id** | **String** | The Xero identifier for an Item | [optional] **status_attribute_string** | **String** | Status of object | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/accounting/docs/Journal.md b/accounting/docs/Journal.md index 2011c0cb..1e266a95 100644 --- a/accounting/docs/Journal.md +++ b/accounting/docs/Journal.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **journal_id** | **String** | Xero identifier | [optional] **journal_date** | **Date** | Date the journal was posted | [optional] **journal_number** | **String** | Xero generated journal number | [optional] -**created_date_utc** | **DateTime** | Created date UTC format | [optional] +**created_date_utc** | **DateTime** | Created date UTC format | [optional] [readonly] **reference** | **String** | reference field for additional indetifying information | [optional] **source_id** | **String** | The identifier for the source transaction (e.g. InvoiceID) | [optional] **source_type** | **String** | The journal source type. The type of transaction that created the journal | [optional] diff --git a/accounting/docs/JournalLine.md b/accounting/docs/JournalLine.md index d1992824..a7bcd932 100644 --- a/accounting/docs/JournalLine.md +++ b/accounting/docs/JournalLine.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **description** | **String** | The description from the source transaction line item. Only returned if populated. | [optional] **net_amount** | **Float** | Net amount of journal line. This will be a positive value for a debit and negative for a credit | [optional] **gross_amount** | **Float** | Gross amount of journal line (NetAmount + TaxAmount). | [optional] -**tax_amount** | **Float** | Total tax on a journal line | [optional] +**tax_amount** | **Float** | Total tax on a journal line | [optional] [readonly] **tax_type** | **String** | The tax type from TaxRates | [optional] **tax_name** | **String** | see TaxRates | [optional] **tracking_categories** | [**Array<TrackingCategory>**](TrackingCategory.md) | Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements. | [optional] diff --git a/accounting/docs/LinkedTransaction.md b/accounting/docs/LinkedTransaction.md index c0beb07f..3ae1f82e 100644 --- a/accounting/docs/LinkedTransaction.md +++ b/accounting/docs/LinkedTransaction.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **linked_transaction_id** | **String** | The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional] **status** | **String** | Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED. | [optional] **type** | **String** | This will always be BILLABLEEXPENSE. More types may be added in future. | [optional] -**updated_date_utc** | **DateTime** | The last modified date in UTC format | [optional] +**updated_date_utc** | **DateTime** | The last modified date in UTC format | [optional] [readonly] **source_transaction_type_code** | **String** | The Type of the source tranasction. This will be ACCPAY if the linked transaction was created from an invoice and SPEND if it was created from a bank transaction. | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/accounting/docs/ManualJournal.md b/accounting/docs/ManualJournal.md index 43d57e86..53351925 100644 --- a/accounting/docs/ManualJournal.md +++ b/accounting/docs/ManualJournal.md @@ -11,8 +11,8 @@ Name | Type | Description | Notes **status** | **String** | See Manual Journal Status Codes | [optional] **url** | **String** | Url link to a source document – shown as “Go to [appName]” in the Xero app | [optional] **show_on_cash_basis_reports** | **Boolean** | Boolean – default is true if not specified | [optional] -**has_attachments** | **Boolean** | Boolean to indicate if a manual journal has an attachment | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**has_attachments** | **Boolean** | Boolean to indicate if a manual journal has an attachment | [optional] [readonly] [default to false] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] **manual_journal_id** | **String** | The Xero identifier for a Manual Journal | [optional] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] **warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional] @@ -31,7 +31,7 @@ instance = XeroRuby::ManualJournal.new(narration: null, status: null, url: null, show_on_cash_basis_reports: null, - has_attachments: null, + has_attachments: false, updated_date_utc: null, manual_journal_id: null, status_attribute_string: ERROR, diff --git a/accounting/docs/ManualJournalLine.md b/accounting/docs/ManualJournalLine.md index 720de4b1..00693993 100644 --- a/accounting/docs/ManualJournalLine.md +++ b/accounting/docs/ManualJournalLine.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **description** | **String** | Description for journal line | [optional] **tax_type** | **String** | The tax type from TaxRates | [optional] **tracking** | [**Array<TrackingCategory>**](TrackingCategory.md) | Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements. | [optional] -**tax_amount** | **Float** | The calculated tax amount based on the TaxType and LineAmount | [optional] +**tax_amount** | **Float** | The calculated tax amount based on the TaxType and LineAmount | [optional] [readonly] **is_blank** | **Boolean** | is the line blank | [optional] ## Code Sample diff --git a/accounting/docs/Organisation.md b/accounting/docs/Organisation.md index 1f9b48c6..b9d41d92 100644 --- a/accounting/docs/Organisation.md +++ b/accounting/docs/Organisation.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **default_purchases_tax** | **String** | The default for LineAmountTypes on purchase transactions | [optional] **period_lock_date** | **Date** | Shown if set. See lock dates | [optional] **end_of_year_lock_date** | **Date** | Shown if set. See lock dates | [optional] -**created_date_utc** | **DateTime** | Timestamp when the organisation was created in Xero | [optional] +**created_date_utc** | **DateTime** | Timestamp when the organisation was created in Xero | [optional] [readonly] **timezone** | [**TimeZone**](TimeZone.md) | | [optional] **organisation_entity_type** | **String** | Organisation Type | [optional] **short_code** | **String** | A unique identifier for the organisation. Potential uses. | [optional] diff --git a/accounting/docs/Overpayment.md b/accounting/docs/Overpayment.md index 72e6295e..acb692ac 100644 --- a/accounting/docs/Overpayment.md +++ b/accounting/docs/Overpayment.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **sub_total** | **Float** | The subtotal of the overpayment excluding taxes | [optional] **total_tax** | **Float** | The total tax on the overpayment | [optional] **total** | **Float** | The total of the overpayment (subtotal + total tax) | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the overpayment | [optional] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the overpayment | [optional] [readonly] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **overpayment_id** | **String** | Xero generated unique identifier | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes **allocations** | [**Array<Allocation>**](Allocation.md) | See Allocations | [optional] **applied_amount** | **Float** | The amount of applied to an invoice | [optional] **payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] -**has_attachments** | **Boolean** | boolean to indicate if a overpayment has an attachment | [optional] +**has_attachments** | **Boolean** | boolean to indicate if a overpayment has an attachment | [optional] [readonly] [default to false] **attachments** | [**Array<Attachment>**](Attachment.md) | See Attachments | [optional] ## Code Sample @@ -46,7 +46,7 @@ instance = XeroRuby::Overpayment.new(type: null, allocations: null, applied_amount: 2.0, payments: null, - has_attachments: null, + has_attachments: false, attachments: null) ``` diff --git a/accounting/docs/Payment.md b/accounting/docs/Payment.md index c493688e..791a2359 100644 --- a/accounting/docs/Payment.md +++ b/accounting/docs/Payment.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **reference** | **String** | An optional description for the payment e.g. Direct Debit | [optional] **is_reconciled** | **Boolean** | An optional parameter for the payment. A boolean indicating whether you would like the payment to be created as reconciled when using PUT, or whether a payment has been reconciled when using GET | [optional] **status** | **String** | The status of the payment. | [optional] -**payment_type** | **String** | See Payment Types. | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] +**payment_type** | **String** | See Payment Types. | [optional] [readonly] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] [readonly] **payment_id** | **String** | The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional] **bank_account_number** | **String** | The suppliers bank account number the payment is being made to | [optional] **particulars** | **String** | The suppliers bank account number the payment is being made to | [optional] diff --git a/accounting/docs/Prepayment.md b/accounting/docs/Prepayment.md index 6f282bbe..d5e64858 100644 --- a/accounting/docs/Prepayment.md +++ b/accounting/docs/Prepayment.md @@ -13,15 +13,15 @@ Name | Type | Description | Notes **sub_total** | **Float** | The subtotal of the prepayment excluding taxes | [optional] **total_tax** | **Float** | The total tax on the prepayment | [optional] **total** | **Float** | The total of the prepayment(subtotal + total tax) | [optional] -**reference** | **String** | Returns Invoice number field. Reference field isn't available. | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the prepayment | [optional] +**reference** | **String** | Returns Invoice number field. Reference field isn't available. | [optional] [readonly] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the prepayment | [optional] [readonly] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **prepayment_id** | **String** | Xero generated unique identifier | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used | [optional] **remaining_credit** | **Float** | The remaining credit balance on the prepayment | [optional] **allocations** | [**Array<Allocation>**](Allocation.md) | See Allocations | [optional] **applied_amount** | **Float** | The amount of applied to an invoice | [optional] -**has_attachments** | **Boolean** | boolean to indicate if a prepayment has an attachment | [optional] +**has_attachments** | **Boolean** | boolean to indicate if a prepayment has an attachment | [optional] [readonly] [default to false] **attachments** | [**Array<Attachment>**](Attachment.md) | See Attachments | [optional] ## Code Sample @@ -46,7 +46,7 @@ instance = XeroRuby::Prepayment.new(type: null, remaining_credit: null, allocations: null, applied_amount: 2.0, - has_attachments: null, + has_attachments: false, attachments: null) ``` diff --git a/accounting/docs/PurchaseOrder.md b/accounting/docs/PurchaseOrder.md index ae10e2e1..4d7c5344 100644 --- a/accounting/docs/PurchaseOrder.md +++ b/accounting/docs/PurchaseOrder.md @@ -22,12 +22,12 @@ Name | Type | Description | Notes **expected_arrival_date** | **Date** | The date the goods are expected to arrive. | [optional] **purchase_order_id** | **String** | Xero generated unique identifier for purchase order | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency purchase order. If no rate is specified, the XE.com day rate is used. | [optional] -**sub_total** | **Float** | Total of purchase order excluding taxes | [optional] -**total_tax** | **Float** | Total tax on purchase order | [optional] -**total** | **Float** | Total of Purchase Order tax inclusive (i.e. SubTotal + TotalTax) | [optional] -**total_discount** | **Float** | Total of discounts applied on the purchase order line items | [optional] -**has_attachments** | **Boolean** | boolean to indicate if a purchase order has an attachment | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**sub_total** | **Float** | Total of purchase order excluding taxes | [optional] [readonly] +**total_tax** | **Float** | Total tax on purchase order | [optional] [readonly] +**total** | **Float** | Total of Purchase Order tax inclusive (i.e. SubTotal + TotalTax) | [optional] [readonly] +**total_discount** | **Float** | Total of discounts applied on the purchase order line items | [optional] [readonly] +**has_attachments** | **Boolean** | boolean to indicate if a purchase order has an attachment | [optional] [readonly] [default to false] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] **warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional] @@ -60,7 +60,7 @@ instance = XeroRuby::PurchaseOrder.new(contact: null, total_tax: null, total: null, total_discount: null, - has_attachments: null, + has_attachments: false, updated_date_utc: null, status_attribute_string: null, validation_errors: null, diff --git a/accounting/docs/Quote.md b/accounting/docs/Quote.md index 07e6cad9..7fc31f11 100644 --- a/accounting/docs/Quote.md +++ b/accounting/docs/Quote.md @@ -17,14 +17,14 @@ Name | Type | Description | Notes **status** | [**QuoteStatusCodes**](QuoteStatusCodes.md) | | [optional] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency quote | [optional] -**sub_total** | **Float** | Total of quote excluding taxes. | [optional] -**total_tax** | **Float** | Total tax on quote | [optional] -**total** | **Float** | Total of Quote tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional] -**total_discount** | **Float** | Total of discounts applied on the quote line items | [optional] +**sub_total** | **Float** | Total of quote excluding taxes. | [optional] [readonly] +**total_tax** | **Float** | Total tax on quote | [optional] [readonly] +**total** | **Float** | Total of Quote tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional] [readonly] +**total_discount** | **Float** | Total of discounts applied on the quote line items | [optional] [readonly] **title** | **String** | Title text for the quote | [optional] **summary** | **String** | Summary text for the quote | [optional] **branding_theme_id** | **String** | See BrandingThemes | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**updated_date_utc** | **String** | Last modified date UTC format | [optional] [readonly] **line_amount_types** | [**QuoteLineAmountTypes**](QuoteLineAmountTypes.md) | | [optional] ## Code Sample @@ -52,7 +52,7 @@ instance = XeroRuby::Quote.new(quote_id: null, title: null, summary: null, branding_theme_id: null, - updated_date_utc: null, + updated_date_utc: /Date(1573755038314)/, line_amount_types: null) ``` diff --git a/accounting/docs/Receipt.md b/accounting/docs/Receipt.md index e8a23c6b..52fe04e4 100644 --- a/accounting/docs/Receipt.md +++ b/accounting/docs/Receipt.md @@ -15,10 +15,10 @@ Name | Type | Description | Notes **total** | **Float** | Total of receipt tax inclusive (i.e. SubTotal + TotalTax) | [optional] **receipt_id** | **String** | Xero generated unique identifier for receipt | [optional] **status** | **String** | Current status of receipt – see status types | [optional] -**receipt_number** | **String** | Xero generated sequence number for receipt in current claim for a given user | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] -**has_attachments** | **Boolean** | boolean to indicate if a receipt has an attachment | [optional] -**url** | **String** | URL link to a source document – shown as “Go to [appName]” in the Xero app | [optional] +**receipt_number** | **String** | Xero generated sequence number for receipt in current claim for a given user | [optional] [readonly] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] +**has_attachments** | **Boolean** | boolean to indicate if a receipt has an attachment | [optional] [readonly] [default to false] +**url** | **String** | URL link to a source document – shown as “Go to [appName]” in the Xero app | [optional] [readonly] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] **warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] @@ -41,7 +41,7 @@ instance = XeroRuby::Receipt.new(date: null, status: null, receipt_number: null, updated_date_utc: null, - has_attachments: null, + has_attachments: false, url: null, validation_errors: null, warnings: null, diff --git a/accounting/docs/RepeatingInvoice.md b/accounting/docs/RepeatingInvoice.md index da6c7f49..17c242dc 100644 --- a/accounting/docs/RepeatingInvoice.md +++ b/accounting/docs/RepeatingInvoice.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **total** | **Float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax) | [optional] **repeating_invoice_id** | **String** | Xero generated unique identifier for repeating invoice template | [optional] **id** | **String** | Xero generated unique identifier for repeating invoice template | [optional] -**has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] +**has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] [readonly] [default to false] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] ## Code Sample @@ -40,7 +40,7 @@ instance = XeroRuby::RepeatingInvoice.new(type: null, total: null, repeating_invoice_id: null, id: null, - has_attachments: null, + has_attachments: false, attachments: null) ``` diff --git a/accounting/docs/Report.md b/accounting/docs/Report.md index c85c3add..0f905533 100644 --- a/accounting/docs/Report.md +++ b/accounting/docs/Report.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **report_type** | **String** | See Prepayment Types | [optional] **report_title** | **String** | See Prepayment Types | [optional] **report_date** | **String** | Date of report | [optional] -**updated_date_utc** | **DateTime** | Updated Date | [optional] +**updated_date_utc** | **DateTime** | Updated Date | [optional] [readonly] **contacts** | [**Array<TenNinteyNineContact>**](TenNinteyNineContact.md) | | [optional] ## Code Sample diff --git a/accounting/docs/ReportWithRow.md b/accounting/docs/ReportWithRow.md index fab83e5c..efe051b5 100644 --- a/accounting/docs/ReportWithRow.md +++ b/accounting/docs/ReportWithRow.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **report_titles** | **Array<String>** | Report titles array (3 to 4 strings with the report name, orgnisation name and time frame of report) | [optional] **report_date** | **String** | Date of report | [optional] **rows** | [**Array<ReportRows>**](ReportRows.md) | | [optional] -**updated_date_utc** | **DateTime** | Updated Date | [optional] +**updated_date_utc** | **DateTime** | Updated Date | [optional] [readonly] **fields** | [**Array<ReportFields>**](ReportFields.md) | | [optional] ## Code Sample diff --git a/accounting/docs/TaxRate.md b/accounting/docs/TaxRate.md index 1279c619..dc9bf8f5 100644 --- a/accounting/docs/TaxRate.md +++ b/accounting/docs/TaxRate.md @@ -9,13 +9,13 @@ Name | Type | Description | Notes **tax_components** | [**Array<TaxComponent>**](TaxComponent.md) | See TaxComponents | [optional] **status** | **String** | See Status Codes | [optional] **report_tax_type** | **String** | See ReportTaxTypes | [optional] -**can_apply_to_assets** | **Boolean** | Boolean to describe if tax rate can be used for asset accounts i.e. true,false | [optional] -**can_apply_to_equity** | **Boolean** | Boolean to describe if tax rate can be used for equity accounts i.e true,false | [optional] -**can_apply_to_expenses** | **Boolean** | Boolean to describe if tax rate can be used for expense accounts i.e. true,false | [optional] -**can_apply_to_liabilities** | **Boolean** | Boolean to describe if tax rate can be used for liability accounts i.e. true,false | [optional] -**can_apply_to_revenue** | **Boolean** | Boolean to describe if tax rate can be used for revenue accounts i.e. true,false | [optional] -**display_tax_rate** | **Float** | Tax Rate (decimal to 4dp) e.g 12.5000 | [optional] -**effective_rate** | **Float** | Effective Tax Rate (decimal to 4dp) e.g 12.5000 | [optional] +**can_apply_to_assets** | **Boolean** | Boolean to describe if tax rate can be used for asset accounts i.e. true,false | [optional] [readonly] +**can_apply_to_equity** | **Boolean** | Boolean to describe if tax rate can be used for equity accounts i.e true,false | [optional] [readonly] +**can_apply_to_expenses** | **Boolean** | Boolean to describe if tax rate can be used for expense accounts i.e. true,false | [optional] [readonly] +**can_apply_to_liabilities** | **Boolean** | Boolean to describe if tax rate can be used for liability accounts i.e. true,false | [optional] [readonly] +**can_apply_to_revenue** | **Boolean** | Boolean to describe if tax rate can be used for revenue accounts i.e. true,false | [optional] [readonly] +**display_tax_rate** | **Float** | Tax Rate (decimal to 4dp) e.g 12.5000 | [optional] [readonly] +**effective_rate** | **Float** | Effective Tax Rate (decimal to 4dp) e.g 12.5000 | [optional] [readonly] ## Code Sample diff --git a/accounting/docs/User.md b/accounting/docs/User.md index 426d968b..adf2cdd5 100644 --- a/accounting/docs/User.md +++ b/accounting/docs/User.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **email_address** | **String** | Email address of user | [optional] **first_name** | **String** | First name of user | [optional] **last_name** | **String** | Last name of user | [optional] -**updated_date_utc** | **DateTime** | Timestamp of last change to user | [optional] +**updated_date_utc** | **DateTime** | Timestamp of last change to user | [optional] [readonly] **is_subscriber** | **Boolean** | Boolean to indicate if user is the subscriber | [optional] **organisation_role** | **String** | User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc) | [optional] diff --git a/accounting/git_push.sh b/accounting/git_push.sh index c2767106..21a951fe 100644 --- a/accounting/git_push.sh +++ b/accounting/git_push.sh @@ -1,14 +1,17 @@ #!/bin/sh -# -# Generated by: https://openapi-generator.tech -# # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" git_user_id=$1 git_repo_id=$2 release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi if [ "$git_user_id" = "" ]; then git_user_id="XeroAPI" @@ -40,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git fi fi @@ -50,6 +53,6 @@ fi git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' diff --git a/accounting/lib/xero-ruby.rb b/accounting/lib/xero-ruby.rb index a8b9a2b2..67ff3f6b 100644 --- a/accounting/lib/xero-ruby.rb +++ b/accounting/lib/xero-ruby.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/lib/xero-ruby/api/accounting_api.rb b/accounting/lib/xero-ruby/api/accounting_api.rb index e9075e6f..fb6a186e 100644 --- a/accounting/lib/xero-ruby/api/accounting_api.rb +++ b/accounting/lib/xero-ruby/api/accounting_api.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end @@ -128,7 +128,7 @@ def create_account_attachment_by_file_name_with_http_info(xero_tenant_id, accoun fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_account_attachment_by_file_name" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -209,7 +209,7 @@ def create_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_i fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_bank_transaction_attachment_by_file_name" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -284,7 +284,7 @@ def create_bank_transaction_history_record_with_http_info(xero_tenant_id, bank_t fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_bank_transaction_history_record" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -507,7 +507,7 @@ def create_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_bank_transfer_attachment_by_file_name" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -580,7 +580,7 @@ def create_bank_transfer_history_record_with_http_info(xero_tenant_id, bank_tran fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_bank_transfer_history_record" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s) + local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -727,7 +727,7 @@ def create_batch_payment_history_record_with_http_info(xero_tenant_id, batch_pay fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_batch_payment_history_record" end # resource path - local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s) + local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', CGI.escape(batch_payment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -802,7 +802,7 @@ def create_branding_theme_payment_services_with_http_info(xero_tenant_id, brandi fail ArgumentError, "Missing the required parameter 'payment_service' when calling AccountingApi.create_branding_theme_payment_services" end # resource path - local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s) + local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', CGI.escape(branding_theme_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -881,7 +881,7 @@ def create_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contac fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_contact_attachment_by_file_name" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1025,7 +1025,7 @@ def create_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_i fail ArgumentError, "Missing the required parameter 'contacts' when calling AccountingApi.create_contact_group_contacts" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s) + local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1100,7 +1100,7 @@ def create_contact_history_with_http_info(xero_tenant_id, contact_id, history_re fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_contact_history" end # resource path - local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s) + local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1247,7 +1247,7 @@ def create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, fail ArgumentError, "Missing the required parameter 'allocations' when calling AccountingApi.create_credit_note_allocation" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Allocations'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/Allocations'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1334,7 +1334,7 @@ def create_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, cr fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_credit_note_attachment_by_file_name" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s).sub('{' + 'IncludeOnline' + '}', include_online.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)).sub('{' + 'IncludeOnline' + '}', CGI.escape(include_online.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1409,7 +1409,7 @@ def create_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, hi fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_credit_note_history" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1698,7 +1698,7 @@ def create_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_expense_claim_history" end # resource path - local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s) + local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', CGI.escape(expense_claim_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1854,7 +1854,7 @@ def create_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoic fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_invoice_attachment_by_file_name" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s).sub('{' + 'IncludeOnline' + '}', include_online.to_s) + local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)).sub('{' + 'IncludeOnline' + '}', CGI.escape(include_online.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -1929,7 +1929,7 @@ def create_invoice_history_with_http_info(xero_tenant_id, invoice_id, history_re fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_invoice_history" end # resource path - local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) + local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2079,7 +2079,7 @@ def create_item_history_with_http_info(xero_tenant_id, item_id, history_records, fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_item_history" end # resource path - local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s) + local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2304,7 +2304,7 @@ def create_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_manual_journal_attachment_by_file_name" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2453,7 +2453,7 @@ def create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id fail ArgumentError, "Missing the required parameter 'allocations' when calling AccountingApi.create_overpayment_allocations" end # resource path - local_var_path = '/Overpayments/{OverpaymentID}/Allocations'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s) + local_var_path = '/Overpayments/{OverpaymentID}/Allocations'.sub('{' + 'OverpaymentID' + '}', CGI.escape(overpayment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2529,7 +2529,7 @@ def create_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, hi fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_overpayment_history" end # resource path - local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s) + local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', CGI.escape(overpayment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2673,7 +2673,7 @@ def create_payment_history_with_http_info(xero_tenant_id, payment_id, history_re fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_payment_history" end # resource path - local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s) + local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', CGI.escape(payment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2888,7 +2888,7 @@ def create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, fail ArgumentError, "Missing the required parameter 'allocations' when calling AccountingApi.create_prepayment_allocations" end # resource path - local_var_path = '/Prepayments/{PrepaymentID}/Allocations'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) + local_var_path = '/Prepayments/{PrepaymentID}/Allocations'.sub('{' + 'PrepaymentID' + '}', CGI.escape(prepayment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -2964,7 +2964,7 @@ def create_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, hist fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_prepayment_history" end # resource path - local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) + local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', CGI.escape(prepayment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3039,7 +3039,7 @@ def create_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_ fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_purchase_order_history" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) + local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', CGI.escape(purchase_order_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3192,7 +3192,7 @@ def create_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_quote_attachment_by_file_name" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3267,7 +3267,7 @@ def create_quote_history_with_http_info(xero_tenant_id, quote_id, history_record fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_quote_history" end # resource path - local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s) + local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3492,7 +3492,7 @@ def create_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receip fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_receipt_attachment_by_file_name" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3567,7 +3567,7 @@ def create_receipt_history_with_http_info(xero_tenant_id, receipt_id, history_re fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_receipt_history" end # resource path - local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) + local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3648,7 +3648,7 @@ def create_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_ fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_repeating_invoice_attachment_by_file_name" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3723,7 +3723,7 @@ def create_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_in fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_repeating_invoice_history" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -3936,7 +3936,7 @@ def create_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, fail ArgumentError, "Missing the required parameter 'tracking_option' when calling AccountingApi.create_tracking_options" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s) + local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4005,7 +4005,7 @@ def delete_account_with_http_info(xero_tenant_id, account_id, opts = {}) fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountingApi.delete_account" end # resource path - local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s) + local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4078,7 +4078,7 @@ def delete_contact_group_contact_with_http_info(xero_tenant_id, contact_group_id fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.delete_contact_group_contact" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}/Contacts/{ContactID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s).sub('{' + 'ContactID' + '}', contact_id.to_s) + local_var_path = '/ContactGroups/{ContactGroupID}/Contacts/{ContactID}'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)).sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4145,7 +4145,7 @@ def delete_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_i fail ArgumentError, "Missing the required parameter 'contact_group_id' when calling AccountingApi.delete_contact_group_contacts" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s) + local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4210,7 +4210,7 @@ def delete_item_with_http_info(xero_tenant_id, item_id, opts = {}) fail ArgumentError, "Missing the required parameter 'item_id' when calling AccountingApi.delete_item" end # resource path - local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s) + local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4277,7 +4277,7 @@ def delete_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_ fail ArgumentError, "Missing the required parameter 'linked_transaction_id' when calling AccountingApi.delete_linked_transaction" end # resource path - local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s) + local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', CGI.escape(linked_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4350,7 +4350,7 @@ def delete_payment_with_http_info(xero_tenant_id, payment_id, payment_delete, op fail ArgumentError, "Missing the required parameter 'payment_delete' when calling AccountingApi.delete_payment" end # resource path - local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s) + local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', CGI.escape(payment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4419,7 +4419,7 @@ def delete_tracking_category_with_http_info(xero_tenant_id, tracking_category_id fail ArgumentError, "Missing the required parameter 'tracking_category_id' when calling AccountingApi.delete_tracking_category" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s) + local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4492,7 +4492,7 @@ def delete_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, fail ArgumentError, "Missing the required parameter 'tracking_option_id' when calling AccountingApi.delete_tracking_options" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s) + local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)).sub('{' + 'TrackingOptionID' + '}', CGI.escape(tracking_option_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4565,7 +4565,7 @@ def email_invoice_with_http_info(xero_tenant_id, invoice_id, request_empty, opts fail ArgumentError, "Missing the required parameter 'request_empty' when calling AccountingApi.email_invoice" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Email'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) + local_var_path = '/Invoices/{InvoiceID}/Email'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4634,7 +4634,7 @@ def get_account_with_http_info(xero_tenant_id, account_id, opts = {}) fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountingApi.get_account" end # resource path - local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s) + local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4713,7 +4713,7 @@ def get_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_i fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_account_attachment_by_file_name" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4793,7 +4793,7 @@ def get_account_attachment_by_id_with_http_info(xero_tenant_id, account_id, atta fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_account_attachment_by_id" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments/{AttachmentID}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/Accounts/{AccountID}/Attachments/{AttachmentID}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4861,7 +4861,7 @@ def get_account_attachments_with_http_info(xero_tenant_id, account_id, opts = {} fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountingApi.get_account_attachments" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments'.sub('{' + 'AccountID' + '}', account_id.to_s) + local_var_path = '/Accounts/{AccountID}/Attachments'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5000,7 +5000,7 @@ def get_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, opt fail ArgumentError, "Missing the required parameter 'bank_transaction_id' when calling AccountingApi.get_bank_transaction" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5080,7 +5080,7 @@ def get_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_bank_transaction_attachment_by_file_name" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5160,7 +5160,7 @@ def get_bank_transaction_attachment_by_id_with_http_info(xero_tenant_id, bank_tr fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_bank_transaction_attachment_by_id" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5228,7 +5228,7 @@ def get_bank_transaction_attachments_with_http_info(xero_tenant_id, bank_transac fail ArgumentError, "Missing the required parameter 'bank_transaction_id' when calling AccountingApi.get_bank_transaction_attachments" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5371,7 +5371,7 @@ def get_bank_transactions_history_with_http_info(xero_tenant_id, bank_transactio fail ArgumentError, "Missing the required parameter 'bank_transaction_id' when calling AccountingApi.get_bank_transactions_history" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5438,7 +5438,7 @@ def get_bank_transfer_with_http_info(xero_tenant_id, bank_transfer_id, opts = {} fail ArgumentError, "Missing the required parameter 'bank_transfer_id' when calling AccountingApi.get_bank_transfer" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s) + local_var_path = '/BankTransfers/{BankTransferID}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5517,7 +5517,7 @@ def get_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, ban fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_bank_transfer_attachment_by_file_name" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5597,7 +5597,7 @@ def get_bank_transfer_attachment_by_id_with_http_info(xero_tenant_id, bank_trans fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_bank_transfer_attachment_by_id" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5665,7 +5665,7 @@ def get_bank_transfer_attachments_with_http_info(xero_tenant_id, bank_transfer_i fail ArgumentError, "Missing the required parameter 'bank_transfer_id' when calling AccountingApi.get_bank_transfer_attachments" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5732,7 +5732,7 @@ def get_bank_transfer_history_with_http_info(xero_tenant_id, bank_transfer_id, o fail ArgumentError, "Missing the required parameter 'bank_transfer_id' when calling AccountingApi.get_bank_transfer_history" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s) + local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -5869,7 +5869,7 @@ def get_batch_payment_history_with_http_info(xero_tenant_id, batch_payment_id, o fail ArgumentError, "Missing the required parameter 'batch_payment_id' when calling AccountingApi.get_batch_payment_history" end # resource path - local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s) + local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', CGI.escape(batch_payment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6006,7 +6006,7 @@ def get_branding_theme_with_http_info(xero_tenant_id, branding_theme_id, opts = fail ArgumentError, "Missing the required parameter 'branding_theme_id' when calling AccountingApi.get_branding_theme" end # resource path - local_var_path = '/BrandingThemes/{BrandingThemeID}'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s) + local_var_path = '/BrandingThemes/{BrandingThemeID}'.sub('{' + 'BrandingThemeID' + '}', CGI.escape(branding_theme_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6073,7 +6073,7 @@ def get_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_ fail ArgumentError, "Missing the required parameter 'branding_theme_id' when calling AccountingApi.get_branding_theme_payment_services" end # resource path - local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s) + local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', CGI.escape(branding_theme_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6201,7 +6201,7 @@ def get_contact_with_http_info(xero_tenant_id, contact_id, opts = {}) fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.get_contact" end # resource path - local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s) + local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6280,7 +6280,7 @@ def get_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_i fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_contact_attachment_by_file_name" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6360,7 +6360,7 @@ def get_contact_attachment_by_id_with_http_info(xero_tenant_id, contact_id, atta fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_contact_attachment_by_id" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments/{AttachmentID}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/Contacts/{ContactID}/Attachments/{AttachmentID}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6428,7 +6428,7 @@ def get_contact_attachments_with_http_info(xero_tenant_id, contact_id, opts = {} fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.get_contact_attachments" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments'.sub('{' + 'ContactID' + '}', contact_id.to_s) + local_var_path = '/Contacts/{ContactID}/Attachments'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6495,7 +6495,7 @@ def get_contact_cis_settings_with_http_info(xero_tenant_id, contact_id, opts = { fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.get_contact_cis_settings" end # resource path - local_var_path = '/Contacts/{ContactID}/CISSettings'.sub('{' + 'ContactID' + '}', contact_id.to_s) + local_var_path = '/Contacts/{ContactID}/CISSettings'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6562,7 +6562,7 @@ def get_contact_group_with_http_info(xero_tenant_id, contact_group_id, opts = {} fail ArgumentError, "Missing the required parameter 'contact_group_id' when calling AccountingApi.get_contact_group" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s) + local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6696,7 +6696,7 @@ def get_contact_history_with_http_info(xero_tenant_id, contact_id, opts = {}) fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.get_contact_history" end # resource path - local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s) + local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6844,7 +6844,7 @@ def get_credit_note_with_http_info(xero_tenant_id, credit_note_id, opts = {}) fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.get_credit_note" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6912,7 +6912,7 @@ def get_credit_note_as_pdf_with_http_info(xero_tenant_id, credit_note_id, opts = fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.get_credit_note_as_pdf" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/pdf'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -6991,7 +6991,7 @@ def get_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credi fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_credit_note_attachment_by_file_name" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7071,7 +7071,7 @@ def get_credit_note_attachment_by_id_with_http_info(xero_tenant_id, credit_note_ fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_credit_note_attachment_by_id" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7139,7 +7139,7 @@ def get_credit_note_attachments_with_http_info(xero_tenant_id, credit_note_id, o fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.get_credit_note_attachments" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7206,7 +7206,7 @@ def get_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, opts fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.get_credit_note_history" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7416,7 +7416,7 @@ def get_employee_with_http_info(xero_tenant_id, employee_id, opts = {}) fail ArgumentError, "Missing the required parameter 'employee_id' when calling AccountingApi.get_employee" end # resource path - local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s) + local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', CGI.escape(employee_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7553,7 +7553,7 @@ def get_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, opts = {} fail ArgumentError, "Missing the required parameter 'expense_claim_id' when calling AccountingApi.get_expense_claim" end # resource path - local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s) + local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', CGI.escape(expense_claim_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7620,7 +7620,7 @@ def get_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, o fail ArgumentError, "Missing the required parameter 'expense_claim_id' when calling AccountingApi.get_expense_claim_history" end # resource path - local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s) + local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', CGI.escape(expense_claim_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7759,7 +7759,7 @@ def get_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {}) fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_invoice" end # resource path - local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) + local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7827,7 +7827,7 @@ def get_invoice_as_pdf_with_http_info(xero_tenant_id, invoice_id, opts = {}) fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_invoice_as_pdf" end # resource path - local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) + local_var_path = '/Invoices/{InvoiceID}/pdf'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7906,7 +7906,7 @@ def get_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_i fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_invoice_attachment_by_file_name" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -7986,7 +7986,7 @@ def get_invoice_attachment_by_id_with_http_info(xero_tenant_id, invoice_id, atta fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_invoice_attachment_by_id" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/Invoices/{InvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8054,7 +8054,7 @@ def get_invoice_attachments_with_http_info(xero_tenant_id, invoice_id, opts = {} fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_invoice_attachments" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) + local_var_path = '/Invoices/{InvoiceID}/Attachments'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8121,7 +8121,7 @@ def get_invoice_history_with_http_info(xero_tenant_id, invoice_id, opts = {}) fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_invoice_history" end # resource path - local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) + local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8345,7 +8345,7 @@ def get_item_with_http_info(xero_tenant_id, item_id, opts = {}) fail ArgumentError, "Missing the required parameter 'item_id' when calling AccountingApi.get_item" end # resource path - local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s) + local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8413,7 +8413,7 @@ def get_item_history_with_http_info(xero_tenant_id, item_id, opts = {}) fail ArgumentError, "Missing the required parameter 'item_id' when calling AccountingApi.get_item_history" end # resource path - local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s) + local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8553,7 +8553,7 @@ def get_journal_with_http_info(xero_tenant_id, journal_id, opts = {}) fail ArgumentError, "Missing the required parameter 'journal_id' when calling AccountingApi.get_journal" end # resource path - local_var_path = '/Journals/{JournalID}'.sub('{' + 'JournalID' + '}', journal_id.to_s) + local_var_path = '/Journals/{JournalID}'.sub('{' + 'JournalID' + '}', CGI.escape(journal_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8690,7 +8690,7 @@ def get_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, fail ArgumentError, "Missing the required parameter 'linked_transaction_id' when calling AccountingApi.get_linked_transaction" end # resource path - local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s) + local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', CGI.escape(linked_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8836,7 +8836,7 @@ def get_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, opts = fail ArgumentError, "Missing the required parameter 'manual_journal_id' when calling AccountingApi.get_manual_journal" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s) + local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8915,7 +8915,7 @@ def get_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, ma fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_manual_journal_attachment_by_file_name" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8995,7 +8995,7 @@ def get_manual_journal_attachment_by_id_with_http_info(xero_tenant_id, manual_jo fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_manual_journal_attachment_by_id" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{AttachmentID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{AttachmentID}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9063,7 +9063,7 @@ def get_manual_journal_attachments_with_http_info(xero_tenant_id, manual_journal fail ArgumentError, "Missing the required parameter 'manual_journal_id' when calling AccountingApi.get_manual_journal_attachments" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9203,7 +9203,7 @@ def get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {}) fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_online_invoice" end # resource path - local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) + local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9270,7 +9270,7 @@ def get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id fail ArgumentError, "Missing the required parameter 'organisation_id' when calling AccountingApi.get_organisation_cis_settings" end # resource path - local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', organisation_id.to_s) + local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', CGI.escape(organisation_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9398,7 +9398,7 @@ def get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'overpayment_id' when calling AccountingApi.get_overpayment" end # resource path - local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s) + local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', CGI.escape(overpayment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9465,7 +9465,7 @@ def get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, opts fail ArgumentError, "Missing the required parameter 'overpayment_id' when calling AccountingApi.get_overpayment_history" end # resource path - local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s) + local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', CGI.escape(overpayment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9608,7 +9608,7 @@ def get_payment_with_http_info(xero_tenant_id, payment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'payment_id' when calling AccountingApi.get_payment" end # resource path - local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s) + local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', CGI.escape(payment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9675,7 +9675,7 @@ def get_payment_history_with_http_info(xero_tenant_id, payment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'payment_id' when calling AccountingApi.get_payment_history" end # resource path - local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s) + local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', CGI.escape(payment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9873,7 +9873,7 @@ def get_prepayment_with_http_info(xero_tenant_id, prepayment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'prepayment_id' when calling AccountingApi.get_prepayment" end # resource path - local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) + local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', CGI.escape(prepayment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9940,7 +9940,7 @@ def get_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, opts = fail ArgumentError, "Missing the required parameter 'prepayment_id' when calling AccountingApi.get_prepayment_history" end # resource path - local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) + local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', CGI.escape(prepayment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10083,7 +10083,7 @@ def get_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, opts = fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) + local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', CGI.escape(purchase_order_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10150,7 +10150,7 @@ def get_purchase_order_by_number_with_http_info(xero_tenant_id, purchase_order_n fail ArgumentError, "Missing the required parameter 'purchase_order_number' when calling AccountingApi.get_purchase_order_by_number" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderNumber}'.sub('{' + 'PurchaseOrderNumber' + '}', purchase_order_number.to_s) + local_var_path = '/PurchaseOrders/{PurchaseOrderNumber}'.sub('{' + 'PurchaseOrderNumber' + '}', CGI.escape(purchase_order_number.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10217,7 +10217,7 @@ def get_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_history" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) + local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', CGI.escape(purchase_order_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10367,7 +10367,7 @@ def get_quote_with_http_info(xero_tenant_id, quote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'quote_id' when calling AccountingApi.get_quote" end # resource path - local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s) + local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10434,7 +10434,7 @@ def get_quote_as_pdf_with_http_info(xero_tenant_id, quote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'quote_id' when calling AccountingApi.get_quote_as_pdf" end # resource path - local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s) + local_var_path = '/Quotes/{QuotesID}/pdf'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10513,7 +10513,7 @@ def get_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, f fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_quote_attachment_by_file_name" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10593,7 +10593,7 @@ def get_quote_attachment_by_id_with_http_info(xero_tenant_id, quote_id, attachme fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_quote_attachment_by_id" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments/{AttachmentID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/Quotes/{QuoteID}/Attachments/{AttachmentID}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10661,7 +10661,7 @@ def get_quote_attachments_with_http_info(xero_tenant_id, quote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'quote_id' when calling AccountingApi.get_quote_attachments" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments'.sub('{' + 'QuoteID' + '}', quote_id.to_s) + local_var_path = '/Quotes/{QuoteID}/Attachments'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10728,7 +10728,7 @@ def get_quote_history_with_http_info(xero_tenant_id, quote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'quote_id' when calling AccountingApi.get_quote_history" end # resource path - local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s) + local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10885,7 +10885,7 @@ def get_receipt_with_http_info(xero_tenant_id, receipt_id, opts = {}) fail ArgumentError, "Missing the required parameter 'receipt_id' when calling AccountingApi.get_receipt" end # resource path - local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) + local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -10965,7 +10965,7 @@ def get_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_i fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_receipt_attachment_by_file_name" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11045,7 +11045,7 @@ def get_receipt_attachment_by_id_with_http_info(xero_tenant_id, receipt_id, atta fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_receipt_attachment_by_id" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments/{AttachmentID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/Receipts/{ReceiptID}/Attachments/{AttachmentID}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11113,7 +11113,7 @@ def get_receipt_attachments_with_http_info(xero_tenant_id, receipt_id, opts = {} fail ArgumentError, "Missing the required parameter 'receipt_id' when calling AccountingApi.get_receipt_attachments" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) + local_var_path = '/Receipts/{ReceiptID}/Attachments'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11180,7 +11180,7 @@ def get_receipt_history_with_http_info(xero_tenant_id, receipt_id, opts = {}) fail ArgumentError, "Missing the required parameter 'receipt_id' when calling AccountingApi.get_receipt_history" end # resource path - local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) + local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11320,7 +11320,7 @@ def get_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, o fail ArgumentError, "Missing the required parameter 'repeating_invoice_id' when calling AccountingApi.get_repeating_invoice" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11399,7 +11399,7 @@ def get_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_repeating_invoice_attachment_by_file_name" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11479,7 +11479,7 @@ def get_repeating_invoice_attachment_by_id_with_http_info(xero_tenant_id, repeat fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_repeating_invoice_attachment_by_id" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11547,7 +11547,7 @@ def get_repeating_invoice_attachments_with_http_info(xero_tenant_id, repeating_i fail ArgumentError, "Missing the required parameter 'repeating_invoice_id' when calling AccountingApi.get_repeating_invoice_attachments" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11614,7 +11614,7 @@ def get_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_invoi fail ArgumentError, "Missing the required parameter 'repeating_invoice_id' when calling AccountingApi.get_repeating_invoice_history" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11902,7 +11902,7 @@ def get_report_ba_sor_gst_with_http_info(xero_tenant_id, report_id, opts = {}) fail ArgumentError, "Missing the required parameter 'report_id' when calling AccountingApi.get_report_ba_sor_gst" end # resource path - local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', report_id.to_s) + local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', CGI.escape(report_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -12683,7 +12683,7 @@ def get_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, o fail ArgumentError, "Missing the required parameter 'tracking_category_id' when calling AccountingApi.get_tracking_category" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s) + local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -12750,7 +12750,7 @@ def get_user_with_http_info(xero_tenant_id, user_id, opts = {}) fail ArgumentError, "Missing the required parameter 'user_id' when calling AccountingApi.get_user" end # resource path - local_var_path = '/Users/{UserID}'.sub('{' + 'UserID' + '}', user_id.to_s) + local_var_path = '/Users/{UserID}'.sub('{' + 'UserID' + '}', CGI.escape(user_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -12893,7 +12893,7 @@ def update_account_with_http_info(xero_tenant_id, account_id, accounts, opts = { fail ArgumentError, "Missing the required parameter 'accounts' when calling AccountingApi.update_account" end # resource path - local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s) + local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -12974,7 +12974,7 @@ def update_account_attachment_by_file_name_with_http_info(xero_tenant_id, accoun fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_account_attachment_by_file_name" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13051,7 +13051,7 @@ def update_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, fail ArgumentError, "Missing the required parameter 'bank_transactions' when calling AccountingApi.update_bank_transaction" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13133,7 +13133,7 @@ def update_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_i fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_bank_transaction_attachment_by_file_name" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13212,7 +13212,7 @@ def update_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_bank_transfer_attachment_by_file_name" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13285,7 +13285,7 @@ def update_contact_with_http_info(xero_tenant_id, contact_id, contacts, opts = { fail ArgumentError, "Missing the required parameter 'contacts' when calling AccountingApi.update_contact" end # resource path - local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s) + local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13364,7 +13364,7 @@ def update_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contac fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_contact_attachment_by_file_name" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13439,7 +13439,7 @@ def update_contact_group_with_http_info(xero_tenant_id, contact_group_id, contac fail ArgumentError, "Missing the required parameter 'contact_groups' when calling AccountingApi.update_contact_group" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s) + local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13516,7 +13516,7 @@ def update_credit_note_with_http_info(xero_tenant_id, credit_note_id, credit_not fail ArgumentError, "Missing the required parameter 'credit_notes' when calling AccountingApi.update_credit_note" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13598,7 +13598,7 @@ def update_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, cr fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_credit_note_attachment_by_file_name" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13673,7 +13673,7 @@ def update_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, expens fail ArgumentError, "Missing the required parameter 'expense_claims' when calling AccountingApi.update_expense_claim" end # resource path - local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s) + local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', CGI.escape(expense_claim_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13750,7 +13750,7 @@ def update_invoice_with_http_info(xero_tenant_id, invoice_id, invoices, opts = { fail ArgumentError, "Missing the required parameter 'invoices' when calling AccountingApi.update_invoice" end # resource path - local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) + local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13832,7 +13832,7 @@ def update_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoic fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_invoice_attachment_by_file_name" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13909,7 +13909,7 @@ def update_item_with_http_info(xero_tenant_id, item_id, items, opts = {}) fail ArgumentError, "Missing the required parameter 'items' when calling AccountingApi.update_item" end # resource path - local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s) + local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -13985,7 +13985,7 @@ def update_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_ fail ArgumentError, "Missing the required parameter 'linked_transactions' when calling AccountingApi.update_linked_transaction" end # resource path - local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s) + local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', CGI.escape(linked_transaction_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -14060,7 +14060,7 @@ def update_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, manu fail ArgumentError, "Missing the required parameter 'manual_journals' when calling AccountingApi.update_manual_journal" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s) + local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -14141,7 +14141,7 @@ def update_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_manual_journal_attachment_by_file_name" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -14876,7 +14876,7 @@ def update_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, purc fail ArgumentError, "Missing the required parameter 'purchase_orders' when calling AccountingApi.update_purchase_order" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) + local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', CGI.escape(purchase_order_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -14951,7 +14951,7 @@ def update_quote_with_http_info(xero_tenant_id, quote_id, quotes, opts = {}) fail ArgumentError, "Missing the required parameter 'quotes' when calling AccountingApi.update_quote" end # resource path - local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s) + local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -15032,7 +15032,7 @@ def update_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_quote_attachment_by_file_name" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -15109,7 +15109,7 @@ def update_receipt_with_http_info(xero_tenant_id, receipt_id, receipts, opts = { fail ArgumentError, "Missing the required parameter 'receipts' when calling AccountingApi.update_receipt" end # resource path - local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) + local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -15191,7 +15191,7 @@ def update_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receip fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_receipt_attachment_by_file_name" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -15272,7 +15272,7 @@ def update_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_ fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_repeating_invoice_attachment_by_file_name" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -15416,7 +15416,7 @@ def update_tracking_category_with_http_info(xero_tenant_id, tracking_category_id fail ArgumentError, "Missing the required parameter 'tracking_category' when calling AccountingApi.update_tracking_category" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s) + local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -15497,7 +15497,7 @@ def update_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, fail ArgumentError, "Missing the required parameter 'tracking_option' when calling AccountingApi.update_tracking_options" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s) + local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)).sub('{' + 'TrackingOptionID' + '}', CGI.escape(tracking_option_id.to_s)) # query parameters query_params = opts[:query_params] || {} diff --git a/accounting/lib/xero-ruby/api_client.rb b/accounting/lib/xero-ruby/api_client.rb index fea6ad56..077cf09b 100644 --- a/accounting/lib/xero-ruby/api_client.rb +++ b/accounting/lib/xero-ruby/api_client.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end @@ -14,7 +14,7 @@ require 'json' require 'logger' require 'tempfile' -require 'typhoeus' +require 'faraday' module XeroRuby class ApiClient @@ -30,7 +30,7 @@ class ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default def initialize(config = Configuration.default) @config = config - @user_agent = "xero-ruby-#{VERSION}" + @user_agent = "OpenAPI-Generator/#{VERSION}/ruby" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent @@ -46,26 +46,46 @@ def self.default # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: # the data deserialized from response body (could be nil), response status code and response headers. def call_api(http_method, path, opts = {}) - request = build_request(http_method, path, opts) - response = request.run + ssl_options = { + :ca_file => @config.ssl_ca_file, + :verify => @config.ssl_verify, + :verify_mode => @config.ssl_verify_mode, + :client_cert => @config.ssl_client_cert, + :client_key => @config.ssl_client_key + } - if @config.debugging - @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" + connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn| + conn.basic_auth(config.username, config.password) + if opts[:header_params]["Content-Type"] == "multipart/form-data" + conn.request :multipart + conn.request :url_encoded + end + conn.adapter(Faraday.default_adapter) end - unless response.success? - if response.timed_out? - fail ApiError.new('Connection timed out') - elsif response.code == 0 - # Errors from libcurl will be made visible here - fail ApiError.new(:code => 0, - :message => response.return_message) - else - fail ApiError.new(:code => response.code, - :response_headers => response.headers, - :response_body => response.body), - response.status_message + begin + response = connection.public_send(http_method.to_sym.downcase) do |req| + build_request(http_method, path, req, opts) end + + if @config.debugging + @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n" + end + + unless response.success? + if response.status == 0 + # Errors from libcurl will be made visible here + fail ApiError.new(:code => 0, + :message => response.return_message) + else + fail ApiError.new(:code => response.status, + :response_headers => response.headers, + :response_body => response.body), + response.reason_phrase + end + end + rescue Faraday::TimeoutError + fail ApiError.new('Connection timed out') end if opts[:return_type] @@ -73,7 +93,7 @@ def call_api(http_method, path, opts = {}) else data = nil end - return data, response.code, response.headers + return data, response.status, response.headers end # Builds the HTTP request @@ -85,7 +105,7 @@ def call_api(http_method, path, opts = {}) # @option opts [Hash] :form_params Query parameters # @option opts [Object] :body HTTP body (JSON/XML) # @return [Typhoeus::Request] A Typhoeus Request - def build_request(http_method, path, opts = {}) + def build_request(http_method, path, request, opts = {}) url = build_request_url(path) http_method = http_method.to_sym.downcase @@ -95,25 +115,15 @@ def build_request(http_method, path, opts = {}) update_params_for_auth! header_params, query_params, opts[:auth_names] - # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false) - _verify_ssl_host = @config.verify_ssl_host ? 2 : 0 - req_opts = { :method => http_method, :headers => header_params, :params => query_params, :params_encoding => @config.params_encoding, :timeout => @config.timeout, - :ssl_verifypeer => @config.verify_ssl, - :ssl_verifyhost => _verify_ssl_host, - :sslcert => @config.cert_file, - :sslkey => @config.key_file, :verbose => @config.debugging } - # set custom cert, if provided - req_opts[:cainfo] = @config.ssl_ca_cert if @config.ssl_ca_cert - if [:post, :patch, :put, :delete].include?(http_method) req_body = build_request_body(header_params, form_params, opts[:body]) req_opts.update :body => req_body @@ -121,8 +131,10 @@ def build_request(http_method, path, opts = {}) @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n" end end - - request = Typhoeus::Request.new(url, req_opts) + request.headers = header_params + request.body = req_body + request.url url + request.params = query_params download_file(request) if opts[:return_type] == 'File' request end @@ -135,13 +147,17 @@ def build_request(http_method, path, opts = {}) # @return [String] HTTP body data in the form of string def build_request_body(header_params, form_params, body) # http form - if header_params['Content-Type'] == 'application/x-www-form-urlencoded' || - header_params['Content-Type'] == 'multipart/form-data' + if header_params['Content-Type'] == 'application/x-www-form-urlencoded' + data = URI.encode_www_form(form_params) + elsif header_params['Content-Type'] == 'multipart/form-data' data = {} form_params.each do |key, value| case value - when ::File, ::Array, nil - # let typhoeus handle File, Array and nil parameters + when ::File, ::Tempfile + # TODO hardcode to application/octet-stream, need better way to detect content type + data[key] = Faraday::UploadIO.new(value.path, 'application/octet-stream', value.path) + when ::Array, nil + # let Faraday handle Array and nil parameters data[key] = value else data[key] = value.to_s @@ -269,11 +285,13 @@ def download_file(request) tempfile.write(chunk) end request.on_complete do |response| - tempfile.close if tempfile - @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ - "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ - "will be deleted automatically with GC. It's also recommended to delete the temp file "\ - "explicitly with `tempfile.delete`" + if tempfile + tempfile.close + @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ + "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ + "will be deleted automatically with GC. It's also recommended to delete the temp file "\ + "explicitly with `tempfile.delete`" + end end end diff --git a/accounting/lib/xero-ruby/api_error.rb b/accounting/lib/xero-ruby/api_error.rb index de28f674..5962b95a 100644 --- a/accounting/lib/xero-ruby/api_error.rb +++ b/accounting/lib/xero-ruby/api_error.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/lib/xero-ruby/configuration.rb b/accounting/lib/xero-ruby/configuration.rb index 6a8684bf..a6f924a5 100644 --- a/accounting/lib/xero-ruby/configuration.rb +++ b/accounting/lib/xero-ruby/configuration.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end @@ -86,33 +86,28 @@ class Configuration # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. # # @return [true, false] - attr_accessor :verify_ssl + attr_accessor :ssl_verify ### TLS/SSL setting - # Set this to false to skip verifying SSL host name - # Default to true. + # Any `OpenSSL::SSL::` constant (see https://ruby-doc.org/stdlib-2.5.1/libdoc/openssl/rdoc/OpenSSL/SSL.html) # # @note Do NOT set it to false in production code, otherwise you would face multiple types of cryptographic attacks. # - # @return [true, false] - attr_accessor :verify_ssl_host + attr_accessor :ssl_verify_mode ### TLS/SSL setting # Set this to customize the certificate file to verify the peer. # # @return [String] the path to the certificate file - # - # @see The `cainfo` option of Typhoeus, `--cert` option of libcurl. Related source code: - # https://github.com/typhoeus/typhoeus/blob/master/lib/typhoeus/easy_factory.rb#L145 - attr_accessor :ssl_ca_cert + attr_accessor :ssl_ca_file ### TLS/SSL setting # Client certificate file (for client certificate) - attr_accessor :cert_file + attr_accessor :ssl_client_cert ### TLS/SSL setting # Client private key file (for client certificate) - attr_accessor :key_file + attr_accessor :ssl_client_key # Set this to customize parameters encoding of array parameter with multi collectionFormat. # Default to nil. @@ -133,11 +128,11 @@ def initialize @api_key_prefix = {} @timeout = 0 @client_side_validation = true - @verify_ssl = true - @verify_ssl_host = true - @params_encoding = nil - @cert_file = nil - @key_file = nil + @ssl_verify = true + @ssl_verify_mode = nil + @ssl_ca_file = nil + @ssl_client_cert = nil + @ssl_client_key = nil @debugging = false @inject_format = false @force_ending_format = false diff --git a/accounting/lib/xero-ruby/models/account.rb b/accounting/lib/xero-ruby/models/account.rb index 4f32cfb4..587283f6 100644 --- a/accounting/lib/xero-ruby/models/account.rb +++ b/accounting/lib/xero-ruby/models/account.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -147,6 +146,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -228,6 +233,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'updated_date_utc') @@ -409,9 +416,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -461,7 +468,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -484,11 +495,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/account_type.rb b/accounting/lib/xero-ruby/models/account_type.rb index a7429979..9d67b8af 100644 --- a/accounting/lib/xero-ruby/models/account_type.rb +++ b/accounting/lib/xero-ruby/models/account_type.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/accounts.rb b/accounting/lib/xero-ruby/models/accounts.rb index 32c385c6..cff42f48 100644 --- a/accounting/lib/xero-ruby/models/accounts.rb +++ b/accounting/lib/xero-ruby/models/accounts.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/accounts_payable.rb b/accounting/lib/xero-ruby/models/accounts_payable.rb index 5567ffb7..ab9c67c0 100644 --- a/accounting/lib/xero-ruby/models/accounts_payable.rb +++ b/accounting/lib/xero-ruby/models/accounts_payable.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -35,6 +34,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -127,9 +132,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -179,7 +184,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -202,11 +211,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/accounts_receivable.rb b/accounting/lib/xero-ruby/models/accounts_receivable.rb index aaa68482..6d0f6210 100644 --- a/accounting/lib/xero-ruby/models/accounts_receivable.rb +++ b/accounting/lib/xero-ruby/models/accounts_receivable.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -35,6 +34,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -127,9 +132,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -179,7 +184,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -202,11 +211,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/address.rb b/accounting/lib/xero-ruby/models/address.rb index aa101712..ca71157f 100644 --- a/accounting/lib/xero-ruby/models/address.rb +++ b/accounting/lib/xero-ruby/models/address.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -99,6 +98,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -378,9 +383,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -430,7 +435,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -453,11 +462,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/allocation.rb b/accounting/lib/xero-ruby/models/allocation.rb index e90d30a7..2ded5182 100644 --- a/accounting/lib/xero-ruby/models/allocation.rb +++ b/accounting/lib/xero-ruby/models/allocation.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -41,6 +40,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -153,9 +158,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -205,7 +210,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -228,11 +237,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/allocations.rb b/accounting/lib/xero-ruby/models/allocations.rb index 5a4f9b03..f6af5337 100644 --- a/accounting/lib/xero-ruby/models/allocations.rb +++ b/accounting/lib/xero-ruby/models/allocations.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/attachment.rb b/accounting/lib/xero-ruby/models/attachment.rb index 56168612..4c160064 100644 --- a/accounting/lib/xero-ruby/models/attachment.rb +++ b/accounting/lib/xero-ruby/models/attachment.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -57,6 +56,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -169,9 +174,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -221,7 +226,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -244,11 +253,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/attachments.rb b/accounting/lib/xero-ruby/models/attachments.rb index fa1201ac..180cd609 100644 --- a/accounting/lib/xero-ruby/models/attachments.rb +++ b/accounting/lib/xero-ruby/models/attachments.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/balances.rb b/accounting/lib/xero-ruby/models/balances.rb index a26f152a..356fdf34 100644 --- a/accounting/lib/xero-ruby/models/balances.rb +++ b/accounting/lib/xero-ruby/models/balances.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -36,6 +35,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -128,9 +133,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -180,7 +185,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -203,11 +212,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/bank_transaction.rb b/accounting/lib/xero-ruby/models/bank_transaction.rb index 4b59ef6f..d0e3b2eb 100644 --- a/accounting/lib/xero-ruby/models/bank_transaction.rb +++ b/accounting/lib/xero-ruby/models/bank_transaction.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -155,6 +154,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -250,6 +255,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'status_attribute_string') @@ -395,9 +402,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -447,7 +454,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -470,11 +481,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/bank_transactions.rb b/accounting/lib/xero-ruby/models/bank_transactions.rb index 532f8dd1..e797d542 100644 --- a/accounting/lib/xero-ruby/models/bank_transactions.rb +++ b/accounting/lib/xero-ruby/models/bank_transactions.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/bank_transfer.rb b/accounting/lib/xero-ruby/models/bank_transfer.rb index d7bd2ee8..b848cac1 100644 --- a/accounting/lib/xero-ruby/models/bank_transfer.rb +++ b/accounting/lib/xero-ruby/models/bank_transfer.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -80,6 +79,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -129,6 +134,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'created_date_utc') @@ -234,9 +241,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -286,7 +293,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -309,11 +320,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/bank_transfers.rb b/accounting/lib/xero-ruby/models/bank_transfers.rb index 187711fa..15b46698 100644 --- a/accounting/lib/xero-ruby/models/bank_transfers.rb +++ b/accounting/lib/xero-ruby/models/bank_transfers.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/batch_payment.rb b/accounting/lib/xero-ruby/models/batch_payment.rb index 3ad75535..d58729e2 100644 --- a/accounting/lib/xero-ruby/models/batch_payment.rb +++ b/accounting/lib/xero-ruby/models/batch_payment.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -127,6 +126,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -390,9 +395,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -442,7 +447,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -465,11 +474,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/batch_payment_details.rb b/accounting/lib/xero-ruby/models/batch_payment_details.rb index daa754e3..101d0f90 100644 --- a/accounting/lib/xero-ruby/models/batch_payment_details.rb +++ b/accounting/lib/xero-ruby/models/batch_payment_details.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -53,6 +52,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -205,9 +210,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -257,7 +262,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -280,11 +289,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/batch_payments.rb b/accounting/lib/xero-ruby/models/batch_payments.rb index d6b99d40..05da4c1c 100644 --- a/accounting/lib/xero-ruby/models/batch_payments.rb +++ b/accounting/lib/xero-ruby/models/batch_payments.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/bill.rb b/accounting/lib/xero-ruby/models/bill.rb index 13bff645..f7c18ea2 100644 --- a/accounting/lib/xero-ruby/models/bill.rb +++ b/accounting/lib/xero-ruby/models/bill.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -36,6 +35,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -128,9 +133,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -180,7 +185,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -203,11 +212,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/branding_theme.rb b/accounting/lib/xero-ruby/models/branding_theme.rb index d57c737f..62aa55bb 100644 --- a/accounting/lib/xero-ruby/models/branding_theme.rb +++ b/accounting/lib/xero-ruby/models/branding_theme.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -79,6 +78,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -203,9 +208,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -255,7 +260,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -278,11 +287,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/branding_themes.rb b/accounting/lib/xero-ruby/models/branding_themes.rb index 531f83a9..2f9a6766 100644 --- a/accounting/lib/xero-ruby/models/branding_themes.rb +++ b/accounting/lib/xero-ruby/models/branding_themes.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/cis_org_setting.rb b/accounting/lib/xero-ruby/models/cis_org_setting.rb index 9555c8c7..16d90071 100644 --- a/accounting/lib/xero-ruby/models/cis_org_setting.rb +++ b/accounting/lib/xero-ruby/models/cis_org_setting.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -42,6 +41,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -139,9 +144,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -191,7 +196,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -214,11 +223,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/cis_setting.rb b/accounting/lib/xero-ruby/models/cis_setting.rb index 1326e8cc..0ea01530 100644 --- a/accounting/lib/xero-ruby/models/cis_setting.rb +++ b/accounting/lib/xero-ruby/models/cis_setting.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -37,6 +36,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -129,9 +134,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -181,7 +186,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -204,11 +213,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/cis_settings.rb b/accounting/lib/xero-ruby/models/cis_settings.rb index a9fabb42..ec725d2f 100644 --- a/accounting/lib/xero-ruby/models/cis_settings.rb +++ b/accounting/lib/xero-ruby/models/cis_settings.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/contact.rb b/accounting/lib/xero-ruby/models/contact.rb index 9c8bac96..efa58b98 100644 --- a/accounting/lib/xero-ruby/models/contact.rb +++ b/accounting/lib/xero-ruby/models/contact.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -239,6 +238,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -410,6 +415,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'validation_errors') @@ -649,9 +656,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -701,7 +708,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -724,11 +735,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/contact_group.rb b/accounting/lib/xero-ruby/models/contact_group.rb index 8750971e..c48850af 100644 --- a/accounting/lib/xero-ruby/models/contact_group.rb +++ b/accounting/lib/xero-ruby/models/contact_group.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -69,6 +68,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -185,9 +190,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -237,7 +242,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -260,11 +269,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/contact_groups.rb b/accounting/lib/xero-ruby/models/contact_groups.rb index b97f1f5a..c60164ed 100644 --- a/accounting/lib/xero-ruby/models/contact_groups.rb +++ b/accounting/lib/xero-ruby/models/contact_groups.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/contact_person.rb b/accounting/lib/xero-ruby/models/contact_person.rb index 2c29807e..82a98ebc 100644 --- a/accounting/lib/xero-ruby/models/contact_person.rb +++ b/accounting/lib/xero-ruby/models/contact_person.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -47,6 +46,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -149,9 +154,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -201,7 +206,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -224,11 +233,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/contacts.rb b/accounting/lib/xero-ruby/models/contacts.rb index 252ce60c..34af6022 100644 --- a/accounting/lib/xero-ruby/models/contacts.rb +++ b/accounting/lib/xero-ruby/models/contacts.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/country_code.rb b/accounting/lib/xero-ruby/models/country_code.rb index ae785d8e..94f28696 100644 --- a/accounting/lib/xero-ruby/models/country_code.rb +++ b/accounting/lib/xero-ruby/models/country_code.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/credit_note.rb b/accounting/lib/xero-ruby/models/credit_note.rb index 723977d5..6816227e 100644 --- a/accounting/lib/xero-ruby/models/credit_note.rb +++ b/accounting/lib/xero-ruby/models/credit_note.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -78,6 +77,9 @@ class CreditNote # See BrandingThemes attr_accessor :branding_theme_id + # A string to indicate if a invoice status + attr_accessor :status_attribute_string + # boolean to indicate if a credit note has an attachment attr_accessor :has_attachments @@ -134,6 +136,7 @@ def self.attribute_map :'applied_amount' => :'AppliedAmount', :'payments' => :'Payments', :'branding_theme_id' => :'BrandingThemeID', + :'status_attribute_string' => :'StatusAttributeString', :'has_attachments' => :'HasAttachments', :'has_errors' => :'HasErrors', :'validation_errors' => :'ValidationErrors' @@ -165,12 +168,19 @@ def self.openapi_types :'applied_amount' => :'Float', :'payments' => :'Array', :'branding_theme_id' => :'String', + :'status_attribute_string' => :'String', :'has_attachments' => :'Boolean', :'has_errors' => :'Boolean', :'validation_errors' => :'Array' } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -280,8 +290,14 @@ def initialize(attributes = {}) self.branding_theme_id = attributes[:'branding_theme_id'] end + if attributes.key?(:'status_attribute_string') + self.status_attribute_string = attributes[:'status_attribute_string'] + end + if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'has_errors') @@ -359,6 +375,7 @@ def ==(o) applied_amount == o.applied_amount && payments == o.payments && branding_theme_id == o.branding_theme_id && + status_attribute_string == o.status_attribute_string && has_attachments == o.has_attachments && has_errors == o.has_errors && validation_errors == o.validation_errors @@ -373,7 +390,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, contact, date, status, line_amount_types, line_items, sub_total, total_tax, total, updated_date_utc, currency_code, fully_paid_on_date, credit_note_id, credit_note_number, reference, sent_to_contact, currency_rate, remaining_credit, allocations, applied_amount, payments, branding_theme_id, has_attachments, has_errors, validation_errors].hash + [type, contact, date, status, line_amount_types, line_items, sub_total, total_tax, total, updated_date_utc, currency_code, fully_paid_on_date, credit_note_id, credit_note_number, reference, sent_to_contact, currency_rate, remaining_credit, allocations, applied_amount, payments, branding_theme_id, status_attribute_string, has_attachments, has_errors, validation_errors].hash end # Builds the object from hash @@ -410,9 +427,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -462,7 +479,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -485,11 +506,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/credit_notes.rb b/accounting/lib/xero-ruby/models/credit_notes.rb index bc5feb9d..3c2f7d35 100644 --- a/accounting/lib/xero-ruby/models/credit_notes.rb +++ b/accounting/lib/xero-ruby/models/credit_notes.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/currencies.rb b/accounting/lib/xero-ruby/models/currencies.rb index 01977e66..c53fde8b 100644 --- a/accounting/lib/xero-ruby/models/currencies.rb +++ b/accounting/lib/xero-ruby/models/currencies.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/currency.rb b/accounting/lib/xero-ruby/models/currency.rb index de2a943d..1a19a15e 100644 --- a/accounting/lib/xero-ruby/models/currency.rb +++ b/accounting/lib/xero-ruby/models/currency.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -36,6 +35,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -128,9 +133,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -180,7 +185,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -203,11 +212,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/currency_code.rb b/accounting/lib/xero-ruby/models/currency_code.rb index e9450848..7c09f489 100644 --- a/accounting/lib/xero-ruby/models/currency_code.rb +++ b/accounting/lib/xero-ruby/models/currency_code.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/element.rb b/accounting/lib/xero-ruby/models/element.rb index 6c855cdc..32f6cf3b 100644 --- a/accounting/lib/xero-ruby/models/element.rb +++ b/accounting/lib/xero-ruby/models/element.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -61,6 +60,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -185,9 +190,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -237,7 +242,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -260,11 +269,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/employee.rb b/accounting/lib/xero-ruby/models/employee.rb index 01c6e3ed..1a88083c 100644 --- a/accounting/lib/xero-ruby/models/employee.rb +++ b/accounting/lib/xero-ruby/models/employee.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -87,6 +86,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -253,9 +258,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -305,7 +310,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -328,11 +337,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/employees.rb b/accounting/lib/xero-ruby/models/employees.rb index 35b4d81a..850432d5 100644 --- a/accounting/lib/xero-ruby/models/employees.rb +++ b/accounting/lib/xero-ruby/models/employees.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/error.rb b/accounting/lib/xero-ruby/models/error.rb index d69ce920..0a67beab 100644 --- a/accounting/lib/xero-ruby/models/error.rb +++ b/accounting/lib/xero-ruby/models/error.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -47,6 +46,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -151,9 +156,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -203,7 +208,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -226,11 +235,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/expense_claim.rb b/accounting/lib/xero-ruby/models/expense_claim.rb index 7c0520d3..668caca2 100644 --- a/accounting/lib/xero-ruby/models/expense_claim.rb +++ b/accounting/lib/xero-ruby/models/expense_claim.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -107,6 +106,15 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'receipts', + :'payment_due_date', + :'receipt_id' + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -265,9 +273,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -317,7 +325,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -340,11 +352,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/expense_claims.rb b/accounting/lib/xero-ruby/models/expense_claims.rb index 8142d5ea..fcb7a433 100644 --- a/accounting/lib/xero-ruby/models/expense_claims.rb +++ b/accounting/lib/xero-ruby/models/expense_claims.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/external_link.rb b/accounting/lib/xero-ruby/models/external_link.rb index 92d80b2a..450b773c 100644 --- a/accounting/lib/xero-ruby/models/external_link.rb +++ b/accounting/lib/xero-ruby/models/external_link.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -63,6 +62,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -172,9 +177,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -224,7 +229,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -247,11 +256,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/history_record.rb b/accounting/lib/xero-ruby/models/history_record.rb index 5ab76f34..7943f9b4 100644 --- a/accounting/lib/xero-ruby/models/history_record.rb +++ b/accounting/lib/xero-ruby/models/history_record.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -47,6 +46,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -149,9 +154,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -201,7 +206,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -224,11 +233,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/history_records.rb b/accounting/lib/xero-ruby/models/history_records.rb index 55d33ef1..216ed8a1 100644 --- a/accounting/lib/xero-ruby/models/history_records.rb +++ b/accounting/lib/xero-ruby/models/history_records.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/invoice.rb b/accounting/lib/xero-ruby/models/invoice.rb index 0d3a7810..8a60cd9f 100644 --- a/accounting/lib/xero-ruby/models/invoice.rb +++ b/accounting/lib/xero-ruby/models/invoice.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -236,6 +235,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -343,6 +348,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'is_discounted') @@ -578,9 +585,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -630,7 +637,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -653,11 +664,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/invoice_reminder.rb b/accounting/lib/xero-ruby/models/invoice_reminder.rb index a387cc24..39e9f23b 100644 --- a/accounting/lib/xero-ruby/models/invoice_reminder.rb +++ b/accounting/lib/xero-ruby/models/invoice_reminder.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -32,6 +31,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -119,9 +124,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -171,7 +176,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -194,11 +203,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/invoice_reminders.rb b/accounting/lib/xero-ruby/models/invoice_reminders.rb index ef51e891..c48543f0 100644 --- a/accounting/lib/xero-ruby/models/invoice_reminders.rb +++ b/accounting/lib/xero-ruby/models/invoice_reminders.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/invoices.rb b/accounting/lib/xero-ruby/models/invoices.rb index c6a60e1f..04faa866 100644 --- a/accounting/lib/xero-ruby/models/invoices.rb +++ b/accounting/lib/xero-ruby/models/invoices.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/item.rb b/accounting/lib/xero-ruby/models/item.rb index c5ae0ddc..8854e3c7 100644 --- a/accounting/lib/xero-ruby/models/item.rb +++ b/accounting/lib/xero-ruby/models/item.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -105,6 +104,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -338,9 +343,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -390,7 +395,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -413,11 +422,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/items.rb b/accounting/lib/xero-ruby/models/items.rb index cf289c90..8e5bb1b0 100644 --- a/accounting/lib/xero-ruby/models/items.rb +++ b/accounting/lib/xero-ruby/models/items.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/journal.rb b/accounting/lib/xero-ruby/models/journal.rb index c17b79a9..751fa89f 100644 --- a/accounting/lib/xero-ruby/models/journal.rb +++ b/accounting/lib/xero-ruby/models/journal.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -89,6 +88,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -225,9 +230,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -277,7 +282,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -300,11 +309,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/journal_line.rb b/accounting/lib/xero-ruby/models/journal_line.rb index 9f2a5fe1..1bceebc4 100644 --- a/accounting/lib/xero-ruby/models/journal_line.rb +++ b/accounting/lib/xero-ruby/models/journal_line.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -86,6 +85,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -230,9 +235,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -282,7 +287,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -305,11 +314,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/journals.rb b/accounting/lib/xero-ruby/models/journals.rb index 67ef03e6..bbf8c6af 100644 --- a/accounting/lib/xero-ruby/models/journals.rb +++ b/accounting/lib/xero-ruby/models/journals.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/line_amount_types.rb b/accounting/lib/xero-ruby/models/line_amount_types.rb index 6e0b1a8b..87a35d9b 100644 --- a/accounting/lib/xero-ruby/models/line_amount_types.rb +++ b/accounting/lib/xero-ruby/models/line_amount_types.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/line_item.rb b/accounting/lib/xero-ruby/models/line_item.rb index 5185a308..e378be21 100644 --- a/accounting/lib/xero-ruby/models/line_item.rb +++ b/accounting/lib/xero-ruby/models/line_item.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -92,6 +91,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -241,9 +246,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -293,7 +298,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -316,11 +325,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/line_item_tracking.rb b/accounting/lib/xero-ruby/models/line_item_tracking.rb index f0162669..52f5a1f1 100644 --- a/accounting/lib/xero-ruby/models/line_item_tracking.rb +++ b/accounting/lib/xero-ruby/models/line_item_tracking.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -47,6 +46,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -164,9 +169,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -216,7 +221,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -239,11 +248,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/linked_transaction.rb b/accounting/lib/xero-ruby/models/linked_transaction.rb index 67fd08b0..7d5ef6f2 100644 --- a/accounting/lib/xero-ruby/models/linked_transaction.rb +++ b/accounting/lib/xero-ruby/models/linked_transaction.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -104,6 +103,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -279,9 +284,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -331,7 +336,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -354,11 +363,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/linked_transactions.rb b/accounting/lib/xero-ruby/models/linked_transactions.rb index bfc09f99..7d04bebe 100644 --- a/accounting/lib/xero-ruby/models/linked_transactions.rb +++ b/accounting/lib/xero-ruby/models/linked_transactions.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/manual_journal.rb b/accounting/lib/xero-ruby/models/manual_journal.rb index b9af603f..0f31c3a0 100644 --- a/accounting/lib/xero-ruby/models/manual_journal.rb +++ b/accounting/lib/xero-ruby/models/manual_journal.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -118,6 +117,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -165,6 +170,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'updated_date_utc') @@ -295,9 +302,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -347,7 +354,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -370,11 +381,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/manual_journal_line.rb b/accounting/lib/xero-ruby/models/manual_journal_line.rb index b6b5c0c2..bb1ecbf2 100644 --- a/accounting/lib/xero-ruby/models/manual_journal_line.rb +++ b/accounting/lib/xero-ruby/models/manual_journal_line.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -62,6 +61,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -181,9 +186,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -233,7 +238,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -256,11 +265,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/manual_journals.rb b/accounting/lib/xero-ruby/models/manual_journals.rb index 4052053f..86bf9e55 100644 --- a/accounting/lib/xero-ruby/models/manual_journals.rb +++ b/accounting/lib/xero-ruby/models/manual_journals.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/online_invoice.rb b/accounting/lib/xero-ruby/models/online_invoice.rb index 0a39ed52..6c045262 100644 --- a/accounting/lib/xero-ruby/models/online_invoice.rb +++ b/accounting/lib/xero-ruby/models/online_invoice.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -32,6 +31,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -119,9 +124,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -171,7 +176,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -194,11 +203,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/online_invoices.rb b/accounting/lib/xero-ruby/models/online_invoices.rb index 2a10043d..42a414e6 100644 --- a/accounting/lib/xero-ruby/models/online_invoices.rb +++ b/accounting/lib/xero-ruby/models/online_invoices.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/organisation.rb b/accounting/lib/xero-ruby/models/organisation.rb index f5043800..6efaa2cf 100644 --- a/accounting/lib/xero-ruby/models/organisation.rb +++ b/accounting/lib/xero-ruby/models/organisation.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -205,6 +204,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -537,9 +542,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -589,7 +594,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -612,11 +621,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/organisations.rb b/accounting/lib/xero-ruby/models/organisations.rb index d1008e5d..f7292f91 100644 --- a/accounting/lib/xero-ruby/models/organisations.rb +++ b/accounting/lib/xero-ruby/models/organisations.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/overpayment.rb b/accounting/lib/xero-ruby/models/overpayment.rb index abc6b9e7..4d8e021f 100644 --- a/accounting/lib/xero-ruby/models/overpayment.rb +++ b/accounting/lib/xero-ruby/models/overpayment.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -141,6 +140,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -232,6 +237,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'attachments') @@ -350,9 +357,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -402,7 +409,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -425,11 +436,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/overpayments.rb b/accounting/lib/xero-ruby/models/overpayments.rb index 2f9f0712..d2aaddbd 100644 --- a/accounting/lib/xero-ruby/models/overpayments.rb +++ b/accounting/lib/xero-ruby/models/overpayments.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/payment.rb b/accounting/lib/xero-ruby/models/payment.rb index 509c4838..c82557cb 100644 --- a/accounting/lib/xero-ruby/models/payment.rb +++ b/accounting/lib/xero-ruby/models/payment.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -159,6 +158,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -382,9 +387,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -434,7 +439,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -457,11 +466,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/payment_delete.rb b/accounting/lib/xero-ruby/models/payment_delete.rb index ac69885f..7d6415dc 100644 --- a/accounting/lib/xero-ruby/models/payment_delete.rb +++ b/accounting/lib/xero-ruby/models/payment_delete.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -32,6 +31,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -126,9 +131,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -178,7 +183,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -201,11 +210,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/payment_service.rb b/accounting/lib/xero-ruby/models/payment_service.rb index 3bf5dc15..44729d13 100644 --- a/accounting/lib/xero-ruby/models/payment_service.rb +++ b/accounting/lib/xero-ruby/models/payment_service.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -57,6 +56,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -171,9 +176,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -223,7 +228,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -246,11 +255,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/payment_services.rb b/accounting/lib/xero-ruby/models/payment_services.rb index 850cef39..86514719 100644 --- a/accounting/lib/xero-ruby/models/payment_services.rb +++ b/accounting/lib/xero-ruby/models/payment_services.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/payment_term.rb b/accounting/lib/xero-ruby/models/payment_term.rb index f7779596..572fafb1 100644 --- a/accounting/lib/xero-ruby/models/payment_term.rb +++ b/accounting/lib/xero-ruby/models/payment_term.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -35,6 +34,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -127,9 +132,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -179,7 +184,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -202,11 +211,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/payment_term_type.rb b/accounting/lib/xero-ruby/models/payment_term_type.rb index fb7e9523..15a4bceb 100644 --- a/accounting/lib/xero-ruby/models/payment_term_type.rb +++ b/accounting/lib/xero-ruby/models/payment_term_type.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/payments.rb b/accounting/lib/xero-ruby/models/payments.rb index 6cd625b1..45ceeed6 100644 --- a/accounting/lib/xero-ruby/models/payments.rb +++ b/accounting/lib/xero-ruby/models/payments.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/phone.rb b/accounting/lib/xero-ruby/models/phone.rb index 22d192b8..fc698169 100644 --- a/accounting/lib/xero-ruby/models/phone.rb +++ b/accounting/lib/xero-ruby/models/phone.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -68,6 +67,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -227,9 +232,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -279,7 +284,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -302,11 +311,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/prepayment.rb b/accounting/lib/xero-ruby/models/prepayment.rb index 73372557..e138fa69 100644 --- a/accounting/lib/xero-ruby/models/prepayment.rb +++ b/accounting/lib/xero-ruby/models/prepayment.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -141,6 +140,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -230,6 +235,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'attachments') @@ -348,9 +355,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -400,7 +407,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -423,11 +434,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/prepayments.rb b/accounting/lib/xero-ruby/models/prepayments.rb index 4133cd77..fa223bfb 100644 --- a/accounting/lib/xero-ruby/models/prepayments.rb +++ b/accounting/lib/xero-ruby/models/prepayments.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/purchase.rb b/accounting/lib/xero-ruby/models/purchase.rb index 4dcccc30..31f15350 100644 --- a/accounting/lib/xero-ruby/models/purchase.rb +++ b/accounting/lib/xero-ruby/models/purchase.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -47,6 +46,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -149,9 +154,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -201,7 +206,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -224,11 +233,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/purchase_order.rb b/accounting/lib/xero-ruby/models/purchase_order.rb index 3018775c..a1b9021a 100644 --- a/accounting/lib/xero-ruby/models/purchase_order.rb +++ b/accounting/lib/xero-ruby/models/purchase_order.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -186,6 +185,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -293,6 +298,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'updated_date_utc') @@ -428,9 +435,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -480,7 +487,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -503,11 +514,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/purchase_orders.rb b/accounting/lib/xero-ruby/models/purchase_orders.rb index 00299661..61d68413 100644 --- a/accounting/lib/xero-ruby/models/purchase_orders.rb +++ b/accounting/lib/xero-ruby/models/purchase_orders.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/quote.rb b/accounting/lib/xero-ruby/models/quote.rb index 9548dea5..bf2456a8 100644 --- a/accounting/lib/xero-ruby/models/quote.rb +++ b/accounting/lib/xero-ruby/models/quote.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -128,11 +127,17 @@ def self.openapi_types :'title' => :'String', :'summary' => :'String', :'branding_theme_id' => :'String', - :'updated_date_utc' => :'DateTime', + :'updated_date_utc' => :'String', :'line_amount_types' => :'QuoteLineAmountTypes' } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -402,9 +407,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -454,7 +459,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -477,11 +486,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/quote_line_amount_types.rb b/accounting/lib/xero-ruby/models/quote_line_amount_types.rb index 1b4612e3..cce4bf30 100644 --- a/accounting/lib/xero-ruby/models/quote_line_amount_types.rb +++ b/accounting/lib/xero-ruby/models/quote_line_amount_types.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/quote_status_codes.rb b/accounting/lib/xero-ruby/models/quote_status_codes.rb index 03488df9..b2adc24d 100644 --- a/accounting/lib/xero-ruby/models/quote_status_codes.rb +++ b/accounting/lib/xero-ruby/models/quote_status_codes.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/quotes.rb b/accounting/lib/xero-ruby/models/quotes.rb index a9c1bb37..bb12ee49 100644 --- a/accounting/lib/xero-ruby/models/quotes.rb +++ b/accounting/lib/xero-ruby/models/quotes.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/receipt.rb b/accounting/lib/xero-ruby/models/receipt.rb index 60d37a58..7cd3aa24 100644 --- a/accounting/lib/xero-ruby/models/receipt.rb +++ b/accounting/lib/xero-ruby/models/receipt.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -135,6 +134,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -206,6 +211,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'url') @@ -327,9 +334,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -379,7 +386,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -402,11 +413,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/receipts.rb b/accounting/lib/xero-ruby/models/receipts.rb index 77354908..5f5d14cd 100644 --- a/accounting/lib/xero-ruby/models/receipts.rb +++ b/accounting/lib/xero-ruby/models/receipts.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/repeating_invoice.rb b/accounting/lib/xero-ruby/models/repeating_invoice.rb index 73e8d2b7..313b3c71 100644 --- a/accounting/lib/xero-ruby/models/repeating_invoice.rb +++ b/accounting/lib/xero-ruby/models/repeating_invoice.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -125,6 +124,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -200,6 +205,8 @@ def initialize(attributes = {}) if attributes.key?(:'has_attachments') self.has_attachments = attributes[:'has_attachments'] + else + self.has_attachments = false end if attributes.key?(:'attachments') @@ -315,9 +322,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -367,7 +374,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -390,11 +401,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/repeating_invoices.rb b/accounting/lib/xero-ruby/models/repeating_invoices.rb index fbe576fb..c1264e3d 100644 --- a/accounting/lib/xero-ruby/models/repeating_invoices.rb +++ b/accounting/lib/xero-ruby/models/repeating_invoices.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/report.rb b/accounting/lib/xero-ruby/models/report.rb index 40eb8175..f208763e 100644 --- a/accounting/lib/xero-ruby/models/report.rb +++ b/accounting/lib/xero-ruby/models/report.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -83,6 +82,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -214,9 +219,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -266,7 +271,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -289,11 +298,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/report_attribute.rb b/accounting/lib/xero-ruby/models/report_attribute.rb index f2ad4ceb..b3fca2f0 100644 --- a/accounting/lib/xero-ruby/models/report_attribute.rb +++ b/accounting/lib/xero-ruby/models/report_attribute.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -35,6 +34,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -127,9 +132,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -179,7 +184,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -202,11 +211,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/report_cell.rb b/accounting/lib/xero-ruby/models/report_cell.rb index ea051721..55aa1398 100644 --- a/accounting/lib/xero-ruby/models/report_cell.rb +++ b/accounting/lib/xero-ruby/models/report_cell.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -35,6 +34,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -129,9 +134,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -181,7 +186,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -204,11 +213,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/report_fields.rb b/accounting/lib/xero-ruby/models/report_fields.rb index 2f6920fb..a1d22efa 100644 --- a/accounting/lib/xero-ruby/models/report_fields.rb +++ b/accounting/lib/xero-ruby/models/report_fields.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -39,6 +38,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -136,9 +141,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -188,7 +193,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -211,11 +220,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/report_row.rb b/accounting/lib/xero-ruby/models/report_row.rb index ae71dc78..c57dee29 100644 --- a/accounting/lib/xero-ruby/models/report_row.rb +++ b/accounting/lib/xero-ruby/models/report_row.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -39,6 +38,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -138,9 +143,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -190,7 +195,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -213,11 +222,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/report_rows.rb b/accounting/lib/xero-ruby/models/report_rows.rb index 54419627..49f4db40 100644 --- a/accounting/lib/xero-ruby/models/report_rows.rb +++ b/accounting/lib/xero-ruby/models/report_rows.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -43,6 +42,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -149,9 +154,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -201,7 +206,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -224,11 +233,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/report_with_row.rb b/accounting/lib/xero-ruby/models/report_with_row.rb index b8762fa6..5bf2fe06 100644 --- a/accounting/lib/xero-ruby/models/report_with_row.rb +++ b/accounting/lib/xero-ruby/models/report_with_row.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -70,6 +69,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -203,9 +208,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -255,7 +260,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -278,11 +287,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/report_with_rows.rb b/accounting/lib/xero-ruby/models/report_with_rows.rb index 9b9e0ec3..33c87346 100644 --- a/accounting/lib/xero-ruby/models/report_with_rows.rb +++ b/accounting/lib/xero-ruby/models/report_with_rows.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/reports.rb b/accounting/lib/xero-ruby/models/reports.rb index 527a703d..125068fd 100644 --- a/accounting/lib/xero-ruby/models/reports.rb +++ b/accounting/lib/xero-ruby/models/reports.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/request_empty.rb b/accounting/lib/xero-ruby/models/request_empty.rb index 7b990917..90d48cc5 100644 --- a/accounting/lib/xero-ruby/models/request_empty.rb +++ b/accounting/lib/xero-ruby/models/request_empty.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -32,6 +31,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -119,9 +124,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -171,7 +176,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -194,11 +203,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/row_type.rb b/accounting/lib/xero-ruby/models/row_type.rb index e613f283..876d4d76 100644 --- a/accounting/lib/xero-ruby/models/row_type.rb +++ b/accounting/lib/xero-ruby/models/row_type.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/sales_tracking_category.rb b/accounting/lib/xero-ruby/models/sales_tracking_category.rb index e0ef0946..e329db0b 100644 --- a/accounting/lib/xero-ruby/models/sales_tracking_category.rb +++ b/accounting/lib/xero-ruby/models/sales_tracking_category.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -37,6 +36,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -129,9 +134,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -181,7 +186,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -204,11 +213,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/schedule.rb b/accounting/lib/xero-ruby/models/schedule.rb index 25e9ac66..dac70d53 100644 --- a/accounting/lib/xero-ruby/models/schedule.rb +++ b/accounting/lib/xero-ruby/models/schedule.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -84,6 +83,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -225,9 +230,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -277,7 +282,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -300,11 +309,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/tax_component.rb b/accounting/lib/xero-ruby/models/tax_component.rb index 733c5a67..b944b21d 100644 --- a/accounting/lib/xero-ruby/models/tax_component.rb +++ b/accounting/lib/xero-ruby/models/tax_component.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -47,6 +46,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -149,9 +154,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -201,7 +206,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -224,11 +233,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/tax_rate.rb b/accounting/lib/xero-ruby/models/tax_rate.rb index ffbb8994..676af1a9 100644 --- a/accounting/lib/xero-ruby/models/tax_rate.rb +++ b/accounting/lib/xero-ruby/models/tax_rate.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -109,6 +108,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -277,9 +282,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -329,7 +334,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -352,11 +361,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/tax_rates.rb b/accounting/lib/xero-ruby/models/tax_rates.rb index a3914fff..7275cc4b 100644 --- a/accounting/lib/xero-ruby/models/tax_rates.rb +++ b/accounting/lib/xero-ruby/models/tax_rates.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/tax_type.rb b/accounting/lib/xero-ruby/models/tax_type.rb index 662cbfe2..7ad898ee 100644 --- a/accounting/lib/xero-ruby/models/tax_type.rb +++ b/accounting/lib/xero-ruby/models/tax_type.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb b/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb index a141c4a5..7d121863 100644 --- a/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb +++ b/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -137,6 +136,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -329,9 +334,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -381,7 +386,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -404,11 +413,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/time_zone.rb b/accounting/lib/xero-ruby/models/time_zone.rb index e41b2f51..1c5604d4 100644 --- a/accounting/lib/xero-ruby/models/time_zone.rb +++ b/accounting/lib/xero-ruby/models/time_zone.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/tracking_categories.rb b/accounting/lib/xero-ruby/models/tracking_categories.rb index 8aa5e939..80085a18 100644 --- a/accounting/lib/xero-ruby/models/tracking_categories.rb +++ b/accounting/lib/xero-ruby/models/tracking_categories.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/tracking_category.rb b/accounting/lib/xero-ruby/models/tracking_category.rb index 3bd4f848..b5d085c4 100644 --- a/accounting/lib/xero-ruby/models/tracking_category.rb +++ b/accounting/lib/xero-ruby/models/tracking_category.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -79,6 +78,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -235,9 +240,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -287,7 +292,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -310,11 +319,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/tracking_option.rb b/accounting/lib/xero-ruby/models/tracking_option.rb index 83495581..58837996 100644 --- a/accounting/lib/xero-ruby/models/tracking_option.rb +++ b/accounting/lib/xero-ruby/models/tracking_option.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -69,6 +68,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -198,9 +203,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -250,7 +255,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -273,11 +282,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/tracking_options.rb b/accounting/lib/xero-ruby/models/tracking_options.rb index a0b8007e..4765858c 100644 --- a/accounting/lib/xero-ruby/models/tracking_options.rb +++ b/accounting/lib/xero-ruby/models/tracking_options.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/user.rb b/accounting/lib/xero-ruby/models/user.rb index 1612d0e3..5431c52e 100644 --- a/accounting/lib/xero-ruby/models/user.rb +++ b/accounting/lib/xero-ruby/models/user.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -84,6 +83,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -213,9 +218,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -265,7 +270,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -288,11 +297,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/users.rb b/accounting/lib/xero-ruby/models/users.rb index 1228a6d9..af275014 100644 --- a/accounting/lib/xero-ruby/models/users.rb +++ b/accounting/lib/xero-ruby/models/users.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -31,6 +30,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -120,9 +125,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -172,7 +177,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -195,11 +204,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/models/validation_error.rb b/accounting/lib/xero-ruby/models/validation_error.rb index c0058858..aaa8679d 100644 --- a/accounting/lib/xero-ruby/models/validation_error.rb +++ b/accounting/lib/xero-ruby/models/validation_error.rb @@ -3,14 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end -require 'time' require 'date' module XeroRuby @@ -32,6 +31,12 @@ def self.openapi_types } end + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -119,9 +124,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(parse_date(value)) + DateTime.parse(value) when :Date - Date.parse(parse_date(value)) + Date.parse(value) when :String value.to_s when :Integer @@ -171,7 +176,11 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - next if value.nil? + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + hash[param] = _to_hash(value) end hash @@ -194,11 +203,5 @@ def _to_hash(value) value end end - - # customized data_parser - def parse_date(datestring) - seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 - return Time.at(seconds_since_epoch).to_s - end end end diff --git a/accounting/lib/xero-ruby/version.rb b/accounting/lib/xero-ruby/version.rb index 624bdfe3..6f069f5e 100644 --- a/accounting/lib/xero-ruby/version.rb +++ b/accounting/lib/xero-ruby/version.rb @@ -3,13 +3,13 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end module XeroRuby - VERSION = '0.2.3' + VERSION = '0.2.2' end diff --git a/accounting/spec/api/accounting_api_spec.rb b/accounting/spec/api/accounting_api_spec.rb index 0c85e018..0fce6b9c 100644 --- a/accounting/spec/api/accounting_api_spec.rb +++ b/accounting/spec/api/accounting_api_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end @@ -789,7 +789,7 @@ # Allows you to update a specified payment for invoices and credit notes # @param xero_tenant_id Xero identifier for Tenant # @param payment_id Unique identifier for a Payment - # @param payments + # @param payment_delete # @param [Hash] opts the optional parameters # @return [Payments] describe 'delete_payment test' do @@ -1911,6 +1911,18 @@ end end + # unit tests for get_quote_as_pdf + # Allows you to retrieve quotes as PDF files + # @param xero_tenant_id Xero identifier for Tenant + # @param quote_id Unique identifier for an Quote + # @param [Hash] opts the optional parameters + # @return [File] + describe 'get_quote_as_pdf test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for get_quote_attachment_by_file_name # Allows you to retrieve Attachment on Quote by Filename # @param xero_tenant_id Xero identifier for Tenant @@ -2496,19 +2508,6 @@ end end - # unit tests for update_employee - # Allows you to update a specific employee used in Xero payrun - # @param xero_tenant_id Xero identifier for Tenant - # @param employee_id Unique identifier for a Employee - # @param employees - # @param [Hash] opts the optional parameters - # @return [Employees] - describe 'update_employee test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - # unit tests for update_expense_claim # Allows you to update specified expense claims # @param xero_tenant_id Xero identifier for Tenant diff --git a/accounting/spec/api_client_spec.rb b/accounting/spec/api_client_spec.rb index e04a6578..47ed8271 100644 --- a/accounting/spec/api_client_spec.rb +++ b/accounting/spec/api_client_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end @@ -51,44 +51,6 @@ end end - describe 'params_encoding in #build_request' do - let(:config) { XeroRuby::Configuration.new } - let(:api_client) { XeroRuby::ApiClient.new(config) } - - it 'defaults to nil' do - expect(XeroRuby::Configuration.default.params_encoding).to eq(nil) - expect(config.params_encoding).to eq(nil) - - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(nil) - end - - it 'can be customized' do - config.params_encoding = :multi - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(:multi) - end - end - - describe 'timeout in #build_request' do - let(:config) { XeroRuby::Configuration.new } - let(:api_client) { XeroRuby::ApiClient.new(config) } - - it 'defaults to 0' do - expect(XeroRuby::Configuration.default.timeout).to eq(0) - expect(config.timeout).to eq(0) - - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(0) - end - - it 'can be customized' do - config.timeout = 100 - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(100) - end - end - describe '#deserialize' do it "handles Array" do api_client = XeroRuby::ApiClient.new @@ -156,7 +118,7 @@ end it 'fails for invalid collection format' do - expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID') + expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID') end end diff --git a/accounting/spec/configuration_spec.rb b/accounting/spec/configuration_spec.rb index 167741c1..1f94f3dc 100644 --- a/accounting/spec/configuration_spec.rb +++ b/accounting/spec/configuration_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/account_spec.rb b/accounting/spec/models/account_spec.rb index 7d71638f..bcf64a6c 100644 --- a/accounting/spec/models/account_spec.rb +++ b/accounting/spec/models/account_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/account_type_spec.rb b/accounting/spec/models/account_type_spec.rb index 6c5f0021..dd592701 100644 --- a/accounting/spec/models/account_type_spec.rb +++ b/accounting/spec/models/account_type_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/accounts_payable_spec.rb b/accounting/spec/models/accounts_payable_spec.rb index 5ea2de6a..1d98d680 100644 --- a/accounting/spec/models/accounts_payable_spec.rb +++ b/accounting/spec/models/accounts_payable_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/accounts_receivable_spec.rb b/accounting/spec/models/accounts_receivable_spec.rb index 9e869ba1..0b0bb433 100644 --- a/accounting/spec/models/accounts_receivable_spec.rb +++ b/accounting/spec/models/accounts_receivable_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/accounts_spec.rb b/accounting/spec/models/accounts_spec.rb index 208543b3..d0c15414 100644 --- a/accounting/spec/models/accounts_spec.rb +++ b/accounting/spec/models/accounts_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/address_spec.rb b/accounting/spec/models/address_spec.rb index f140b32f..f4195118 100644 --- a/accounting/spec/models/address_spec.rb +++ b/accounting/spec/models/address_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/allocation_spec.rb b/accounting/spec/models/allocation_spec.rb index a774f3f0..68babd6e 100644 --- a/accounting/spec/models/allocation_spec.rb +++ b/accounting/spec/models/allocation_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/allocations_spec.rb b/accounting/spec/models/allocations_spec.rb index 53d13a03..605b2b5e 100644 --- a/accounting/spec/models/allocations_spec.rb +++ b/accounting/spec/models/allocations_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/attachment_spec.rb b/accounting/spec/models/attachment_spec.rb index b12fdc09..a6e1dbad 100644 --- a/accounting/spec/models/attachment_spec.rb +++ b/accounting/spec/models/attachment_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/attachments_spec.rb b/accounting/spec/models/attachments_spec.rb index 479cddc7..77a6fb40 100644 --- a/accounting/spec/models/attachments_spec.rb +++ b/accounting/spec/models/attachments_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/balances_spec.rb b/accounting/spec/models/balances_spec.rb index 8ba85042..4002a1ae 100644 --- a/accounting/spec/models/balances_spec.rb +++ b/accounting/spec/models/balances_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/bank_transaction_spec.rb b/accounting/spec/models/bank_transaction_spec.rb index 20c406fe..4157905d 100644 --- a/accounting/spec/models/bank_transaction_spec.rb +++ b/accounting/spec/models/bank_transaction_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/bank_transactions_spec.rb b/accounting/spec/models/bank_transactions_spec.rb index d6f482e4..4a330106 100644 --- a/accounting/spec/models/bank_transactions_spec.rb +++ b/accounting/spec/models/bank_transactions_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/bank_transfer_spec.rb b/accounting/spec/models/bank_transfer_spec.rb index bb368499..13f23c0e 100644 --- a/accounting/spec/models/bank_transfer_spec.rb +++ b/accounting/spec/models/bank_transfer_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/bank_transfers_spec.rb b/accounting/spec/models/bank_transfers_spec.rb index a3f349f9..bc346b08 100644 --- a/accounting/spec/models/bank_transfers_spec.rb +++ b/accounting/spec/models/bank_transfers_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/batch_payment_details_spec.rb b/accounting/spec/models/batch_payment_details_spec.rb index d6eac94f..48b93b5d 100644 --- a/accounting/spec/models/batch_payment_details_spec.rb +++ b/accounting/spec/models/batch_payment_details_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/batch_payment_spec.rb b/accounting/spec/models/batch_payment_spec.rb index 00e3e98b..0c4fdb61 100644 --- a/accounting/spec/models/batch_payment_spec.rb +++ b/accounting/spec/models/batch_payment_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/batch_payments_spec.rb b/accounting/spec/models/batch_payments_spec.rb index 8293a0a1..5ec5831b 100644 --- a/accounting/spec/models/batch_payments_spec.rb +++ b/accounting/spec/models/batch_payments_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/bill_spec.rb b/accounting/spec/models/bill_spec.rb index da960c7f..b3641c7a 100644 --- a/accounting/spec/models/bill_spec.rb +++ b/accounting/spec/models/bill_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/branding_theme_spec.rb b/accounting/spec/models/branding_theme_spec.rb index 9e81f1e5..da8e35f8 100644 --- a/accounting/spec/models/branding_theme_spec.rb +++ b/accounting/spec/models/branding_theme_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/branding_themes_spec.rb b/accounting/spec/models/branding_themes_spec.rb index 1520116f..c38df659 100644 --- a/accounting/spec/models/branding_themes_spec.rb +++ b/accounting/spec/models/branding_themes_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/cis_org_setting_spec.rb b/accounting/spec/models/cis_org_setting_spec.rb index a370faff..9fc9d122 100644 --- a/accounting/spec/models/cis_org_setting_spec.rb +++ b/accounting/spec/models/cis_org_setting_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/cis_setting_spec.rb b/accounting/spec/models/cis_setting_spec.rb index fc7b0a68..e2dc1e38 100644 --- a/accounting/spec/models/cis_setting_spec.rb +++ b/accounting/spec/models/cis_setting_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/cis_settings_spec.rb b/accounting/spec/models/cis_settings_spec.rb index 2a5f7507..65d4ca27 100644 --- a/accounting/spec/models/cis_settings_spec.rb +++ b/accounting/spec/models/cis_settings_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/contact_group_spec.rb b/accounting/spec/models/contact_group_spec.rb index 37e27838..8d7f9a68 100644 --- a/accounting/spec/models/contact_group_spec.rb +++ b/accounting/spec/models/contact_group_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/contact_groups_spec.rb b/accounting/spec/models/contact_groups_spec.rb index db366b23..e12d4717 100644 --- a/accounting/spec/models/contact_groups_spec.rb +++ b/accounting/spec/models/contact_groups_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/contact_person_spec.rb b/accounting/spec/models/contact_person_spec.rb index fd8ce602..e36ada72 100644 --- a/accounting/spec/models/contact_person_spec.rb +++ b/accounting/spec/models/contact_person_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/contact_spec.rb b/accounting/spec/models/contact_spec.rb index f9a7fbee..3b43f089 100644 --- a/accounting/spec/models/contact_spec.rb +++ b/accounting/spec/models/contact_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/contacts_spec.rb b/accounting/spec/models/contacts_spec.rb index d5a61d88..9222d489 100644 --- a/accounting/spec/models/contacts_spec.rb +++ b/accounting/spec/models/contacts_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/country_code_spec.rb b/accounting/spec/models/country_code_spec.rb index 28e70728..2aa200e5 100644 --- a/accounting/spec/models/country_code_spec.rb +++ b/accounting/spec/models/country_code_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/credit_note_spec.rb b/accounting/spec/models/credit_note_spec.rb index 649bba58..9ac2f7f5 100644 --- a/accounting/spec/models/credit_note_spec.rb +++ b/accounting/spec/models/credit_note_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end @@ -172,6 +172,12 @@ end end + describe 'test attribute "status_attribute_string"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "has_attachments"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/accounting/spec/models/credit_notes_spec.rb b/accounting/spec/models/credit_notes_spec.rb index 3e985f50..26193348 100644 --- a/accounting/spec/models/credit_notes_spec.rb +++ b/accounting/spec/models/credit_notes_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/currencies_spec.rb b/accounting/spec/models/currencies_spec.rb index d6f57637..39fbd700 100644 --- a/accounting/spec/models/currencies_spec.rb +++ b/accounting/spec/models/currencies_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/currency_code_spec.rb b/accounting/spec/models/currency_code_spec.rb index 79057438..da261df8 100644 --- a/accounting/spec/models/currency_code_spec.rb +++ b/accounting/spec/models/currency_code_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/currency_spec.rb b/accounting/spec/models/currency_spec.rb index cf15e8a3..818d6a03 100644 --- a/accounting/spec/models/currency_spec.rb +++ b/accounting/spec/models/currency_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/element_spec.rb b/accounting/spec/models/element_spec.rb index 6301ea7e..77227ed2 100644 --- a/accounting/spec/models/element_spec.rb +++ b/accounting/spec/models/element_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/employee_spec.rb b/accounting/spec/models/employee_spec.rb index 64db2840..bb814650 100644 --- a/accounting/spec/models/employee_spec.rb +++ b/accounting/spec/models/employee_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/employees_spec.rb b/accounting/spec/models/employees_spec.rb index d2156221..27e40d1c 100644 --- a/accounting/spec/models/employees_spec.rb +++ b/accounting/spec/models/employees_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/error_spec.rb b/accounting/spec/models/error_spec.rb index acf8a4ea..ca80ed10 100644 --- a/accounting/spec/models/error_spec.rb +++ b/accounting/spec/models/error_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/expense_claim_spec.rb b/accounting/spec/models/expense_claim_spec.rb index c021bacc..ff4dca04 100644 --- a/accounting/spec/models/expense_claim_spec.rb +++ b/accounting/spec/models/expense_claim_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/expense_claims_spec.rb b/accounting/spec/models/expense_claims_spec.rb index 1469bae3..ea2f45af 100644 --- a/accounting/spec/models/expense_claims_spec.rb +++ b/accounting/spec/models/expense_claims_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/external_link_spec.rb b/accounting/spec/models/external_link_spec.rb index f6979817..675be3cd 100644 --- a/accounting/spec/models/external_link_spec.rb +++ b/accounting/spec/models/external_link_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/history_record_spec.rb b/accounting/spec/models/history_record_spec.rb index 39103bdf..697a5e1b 100644 --- a/accounting/spec/models/history_record_spec.rb +++ b/accounting/spec/models/history_record_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/history_records_spec.rb b/accounting/spec/models/history_records_spec.rb index 157264db..494a8a62 100644 --- a/accounting/spec/models/history_records_spec.rb +++ b/accounting/spec/models/history_records_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/invoice_reminder_spec.rb b/accounting/spec/models/invoice_reminder_spec.rb index 9606eae8..e9ddd109 100644 --- a/accounting/spec/models/invoice_reminder_spec.rb +++ b/accounting/spec/models/invoice_reminder_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/invoice_reminders_spec.rb b/accounting/spec/models/invoice_reminders_spec.rb index b7a7ca4b..d7f60758 100644 --- a/accounting/spec/models/invoice_reminders_spec.rb +++ b/accounting/spec/models/invoice_reminders_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/invoice_spec.rb b/accounting/spec/models/invoice_spec.rb index 6f29ba0f..f6647910 100644 --- a/accounting/spec/models/invoice_spec.rb +++ b/accounting/spec/models/invoice_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end @@ -35,7 +35,7 @@ describe 'test attribute "type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACCPAY", "ACCPAYCREDIT", "APOVERPAYMENT", "APPREPAYMENT", "ACCREC", "ACCRECCREDIT", "AROVERPAYMENT"]) + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ACCPAY", "ACCPAYCREDIT", "APOVERPAYMENT", "APPREPAYMENT", "ACCREC", "ACCRECCREDIT", "AROVERPAYMENT", "ARPREPAYMENT"]) # validator.allowable_values.each do |value| # expect { @instance.type = value }.not_to raise_error # end diff --git a/accounting/spec/models/invoices_spec.rb b/accounting/spec/models/invoices_spec.rb index f5bff014..199ba711 100644 --- a/accounting/spec/models/invoices_spec.rb +++ b/accounting/spec/models/invoices_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/item_spec.rb b/accounting/spec/models/item_spec.rb index d6edb1d2..ee57e322 100644 --- a/accounting/spec/models/item_spec.rb +++ b/accounting/spec/models/item_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/items_spec.rb b/accounting/spec/models/items_spec.rb index c85b0dec..7abaa42f 100644 --- a/accounting/spec/models/items_spec.rb +++ b/accounting/spec/models/items_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/journal_line_spec.rb b/accounting/spec/models/journal_line_spec.rb index 1ba272ce..5aa5930b 100644 --- a/accounting/spec/models/journal_line_spec.rb +++ b/accounting/spec/models/journal_line_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/journal_spec.rb b/accounting/spec/models/journal_spec.rb index 3d98964a..3f661d7a 100644 --- a/accounting/spec/models/journal_spec.rb +++ b/accounting/spec/models/journal_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/journals_spec.rb b/accounting/spec/models/journals_spec.rb index 9f287011..f8e19cb9 100644 --- a/accounting/spec/models/journals_spec.rb +++ b/accounting/spec/models/journals_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/line_amount_types_spec.rb b/accounting/spec/models/line_amount_types_spec.rb index e2c27043..a32d445b 100644 --- a/accounting/spec/models/line_amount_types_spec.rb +++ b/accounting/spec/models/line_amount_types_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/line_item_spec.rb b/accounting/spec/models/line_item_spec.rb index ef8f220b..5acdcb2f 100644 --- a/accounting/spec/models/line_item_spec.rb +++ b/accounting/spec/models/line_item_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/line_item_tracking_spec.rb b/accounting/spec/models/line_item_tracking_spec.rb index 64a62f70..6df0e6bc 100644 --- a/accounting/spec/models/line_item_tracking_spec.rb +++ b/accounting/spec/models/line_item_tracking_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/linked_transaction_spec.rb b/accounting/spec/models/linked_transaction_spec.rb index 12f31c3f..8a275353 100644 --- a/accounting/spec/models/linked_transaction_spec.rb +++ b/accounting/spec/models/linked_transaction_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/linked_transactions_spec.rb b/accounting/spec/models/linked_transactions_spec.rb index e4911eb5..38ffcd21 100644 --- a/accounting/spec/models/linked_transactions_spec.rb +++ b/accounting/spec/models/linked_transactions_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/manual_journal_line_spec.rb b/accounting/spec/models/manual_journal_line_spec.rb index bf0fb30c..0ee33d7b 100644 --- a/accounting/spec/models/manual_journal_line_spec.rb +++ b/accounting/spec/models/manual_journal_line_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/manual_journal_spec.rb b/accounting/spec/models/manual_journal_spec.rb index 79214eec..f370138e 100644 --- a/accounting/spec/models/manual_journal_spec.rb +++ b/accounting/spec/models/manual_journal_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/manual_journals_spec.rb b/accounting/spec/models/manual_journals_spec.rb index 454dce52..bd41c552 100644 --- a/accounting/spec/models/manual_journals_spec.rb +++ b/accounting/spec/models/manual_journals_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/online_invoice_spec.rb b/accounting/spec/models/online_invoice_spec.rb index 0bcaa7ff..48aeded9 100644 --- a/accounting/spec/models/online_invoice_spec.rb +++ b/accounting/spec/models/online_invoice_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/online_invoices_spec.rb b/accounting/spec/models/online_invoices_spec.rb index 8f211e2f..ad4a846f 100644 --- a/accounting/spec/models/online_invoices_spec.rb +++ b/accounting/spec/models/online_invoices_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/organisation_spec.rb b/accounting/spec/models/organisation_spec.rb index ada9272a..c3c5249f 100644 --- a/accounting/spec/models/organisation_spec.rb +++ b/accounting/spec/models/organisation_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/organisations_spec.rb b/accounting/spec/models/organisations_spec.rb index 3e3ef5d4..b19b2359 100644 --- a/accounting/spec/models/organisations_spec.rb +++ b/accounting/spec/models/organisations_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/overpayment_spec.rb b/accounting/spec/models/overpayment_spec.rb index beeb73f7..cefeeac4 100644 --- a/accounting/spec/models/overpayment_spec.rb +++ b/accounting/spec/models/overpayment_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/overpayments_spec.rb b/accounting/spec/models/overpayments_spec.rb index e2280fad..c43559f1 100644 --- a/accounting/spec/models/overpayments_spec.rb +++ b/accounting/spec/models/overpayments_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/payment_delete_spec.rb b/accounting/spec/models/payment_delete_spec.rb index 23943b86..0087adba 100644 --- a/accounting/spec/models/payment_delete_spec.rb +++ b/accounting/spec/models/payment_delete_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/payment_service_spec.rb b/accounting/spec/models/payment_service_spec.rb index 3d6e28a2..091147f0 100644 --- a/accounting/spec/models/payment_service_spec.rb +++ b/accounting/spec/models/payment_service_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/payment_services_spec.rb b/accounting/spec/models/payment_services_spec.rb index cc8610f6..14d64769 100644 --- a/accounting/spec/models/payment_services_spec.rb +++ b/accounting/spec/models/payment_services_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/payment_spec.rb b/accounting/spec/models/payment_spec.rb index d4e42b8b..f4fc7713 100644 --- a/accounting/spec/models/payment_spec.rb +++ b/accounting/spec/models/payment_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/payment_term_spec.rb b/accounting/spec/models/payment_term_spec.rb index 81cc95a1..f6b842f6 100644 --- a/accounting/spec/models/payment_term_spec.rb +++ b/accounting/spec/models/payment_term_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/payment_term_type_spec.rb b/accounting/spec/models/payment_term_type_spec.rb index 2ef7d160..1d847e6c 100644 --- a/accounting/spec/models/payment_term_type_spec.rb +++ b/accounting/spec/models/payment_term_type_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/payments_spec.rb b/accounting/spec/models/payments_spec.rb index 0ee3de51..72337033 100644 --- a/accounting/spec/models/payments_spec.rb +++ b/accounting/spec/models/payments_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/phone_spec.rb b/accounting/spec/models/phone_spec.rb index 77f34ff5..95eae3d7 100644 --- a/accounting/spec/models/phone_spec.rb +++ b/accounting/spec/models/phone_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/prepayment_spec.rb b/accounting/spec/models/prepayment_spec.rb index a55be235..748cd803 100644 --- a/accounting/spec/models/prepayment_spec.rb +++ b/accounting/spec/models/prepayment_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/prepayments_spec.rb b/accounting/spec/models/prepayments_spec.rb index 56bfc6a2..1de141d2 100644 --- a/accounting/spec/models/prepayments_spec.rb +++ b/accounting/spec/models/prepayments_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/purchase_order_spec.rb b/accounting/spec/models/purchase_order_spec.rb index c0f44027..de5c28ef 100644 --- a/accounting/spec/models/purchase_order_spec.rb +++ b/accounting/spec/models/purchase_order_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/purchase_orders_spec.rb b/accounting/spec/models/purchase_orders_spec.rb index e547b769..53eea25a 100644 --- a/accounting/spec/models/purchase_orders_spec.rb +++ b/accounting/spec/models/purchase_orders_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/purchase_spec.rb b/accounting/spec/models/purchase_spec.rb index 332122cc..d06c6589 100644 --- a/accounting/spec/models/purchase_spec.rb +++ b/accounting/spec/models/purchase_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/quote_line_amount_types_spec.rb b/accounting/spec/models/quote_line_amount_types_spec.rb index 0f28b51c..8c328ab5 100644 --- a/accounting/spec/models/quote_line_amount_types_spec.rb +++ b/accounting/spec/models/quote_line_amount_types_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.1 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/quote_spec.rb b/accounting/spec/models/quote_spec.rb index cf4151c7..60cdf5c2 100644 --- a/accounting/spec/models/quote_spec.rb +++ b/accounting/spec/models/quote_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.1 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/quote_status_codes_spec.rb b/accounting/spec/models/quote_status_codes_spec.rb index b9558dda..e439f8a2 100644 --- a/accounting/spec/models/quote_status_codes_spec.rb +++ b/accounting/spec/models/quote_status_codes_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.1 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/quotes_spec.rb b/accounting/spec/models/quotes_spec.rb index f938ccd4..0cda3fc4 100644 --- a/accounting/spec/models/quotes_spec.rb +++ b/accounting/spec/models/quotes_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.1 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/receipt_spec.rb b/accounting/spec/models/receipt_spec.rb index 68a9e4d7..21440837 100644 --- a/accounting/spec/models/receipt_spec.rb +++ b/accounting/spec/models/receipt_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/receipts_spec.rb b/accounting/spec/models/receipts_spec.rb index 4ab1ee6a..bf80d99d 100644 --- a/accounting/spec/models/receipts_spec.rb +++ b/accounting/spec/models/receipts_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/repeating_invoice_spec.rb b/accounting/spec/models/repeating_invoice_spec.rb index 2db02e67..db27ad6b 100644 --- a/accounting/spec/models/repeating_invoice_spec.rb +++ b/accounting/spec/models/repeating_invoice_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/repeating_invoices_spec.rb b/accounting/spec/models/repeating_invoices_spec.rb index 3901ee5a..d68ba7c7 100644 --- a/accounting/spec/models/repeating_invoices_spec.rb +++ b/accounting/spec/models/repeating_invoices_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/report_attribute_spec.rb b/accounting/spec/models/report_attribute_spec.rb index 4a5a1843..d1230d97 100644 --- a/accounting/spec/models/report_attribute_spec.rb +++ b/accounting/spec/models/report_attribute_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/report_cell_spec.rb b/accounting/spec/models/report_cell_spec.rb index f81bd776..d137fb0b 100644 --- a/accounting/spec/models/report_cell_spec.rb +++ b/accounting/spec/models/report_cell_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/report_fields_spec.rb b/accounting/spec/models/report_fields_spec.rb index 7029392d..b2fcd774 100644 --- a/accounting/spec/models/report_fields_spec.rb +++ b/accounting/spec/models/report_fields_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/report_row_spec.rb b/accounting/spec/models/report_row_spec.rb index 8233519c..7f2acb1e 100644 --- a/accounting/spec/models/report_row_spec.rb +++ b/accounting/spec/models/report_row_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/report_rows_spec.rb b/accounting/spec/models/report_rows_spec.rb index 691c9514..c617f725 100644 --- a/accounting/spec/models/report_rows_spec.rb +++ b/accounting/spec/models/report_rows_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/report_spec.rb b/accounting/spec/models/report_spec.rb index bee7197b..82d50024 100644 --- a/accounting/spec/models/report_spec.rb +++ b/accounting/spec/models/report_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/report_with_row_spec.rb b/accounting/spec/models/report_with_row_spec.rb index 48d86688..2c92f0c3 100644 --- a/accounting/spec/models/report_with_row_spec.rb +++ b/accounting/spec/models/report_with_row_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/report_with_rows_spec.rb b/accounting/spec/models/report_with_rows_spec.rb index b0ce700d..15cee891 100644 --- a/accounting/spec/models/report_with_rows_spec.rb +++ b/accounting/spec/models/report_with_rows_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/reports_spec.rb b/accounting/spec/models/reports_spec.rb index d44d8bfb..c31a6c28 100644 --- a/accounting/spec/models/reports_spec.rb +++ b/accounting/spec/models/reports_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/request_empty_spec.rb b/accounting/spec/models/request_empty_spec.rb index 9bc43348..f7219233 100644 --- a/accounting/spec/models/request_empty_spec.rb +++ b/accounting/spec/models/request_empty_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/row_type_spec.rb b/accounting/spec/models/row_type_spec.rb index 97a586e8..e651370d 100644 --- a/accounting/spec/models/row_type_spec.rb +++ b/accounting/spec/models/row_type_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/sales_tracking_category_spec.rb b/accounting/spec/models/sales_tracking_category_spec.rb index a380d91a..4f802948 100644 --- a/accounting/spec/models/sales_tracking_category_spec.rb +++ b/accounting/spec/models/sales_tracking_category_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/schedule_spec.rb b/accounting/spec/models/schedule_spec.rb index 99aeac23..c302e219 100644 --- a/accounting/spec/models/schedule_spec.rb +++ b/accounting/spec/models/schedule_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/tax_component_spec.rb b/accounting/spec/models/tax_component_spec.rb index f07d5a0f..e0466260 100644 --- a/accounting/spec/models/tax_component_spec.rb +++ b/accounting/spec/models/tax_component_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/tax_rate_spec.rb b/accounting/spec/models/tax_rate_spec.rb index 860d9bbb..f8898639 100644 --- a/accounting/spec/models/tax_rate_spec.rb +++ b/accounting/spec/models/tax_rate_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/tax_rates_spec.rb b/accounting/spec/models/tax_rates_spec.rb index 2b44f69c..d9c044e6 100644 --- a/accounting/spec/models/tax_rates_spec.rb +++ b/accounting/spec/models/tax_rates_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/tax_type_spec.rb b/accounting/spec/models/tax_type_spec.rb index d3335264..c5468981 100644 --- a/accounting/spec/models/tax_type_spec.rb +++ b/accounting/spec/models/tax_type_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/ten_nintey_nine_contact_spec.rb b/accounting/spec/models/ten_nintey_nine_contact_spec.rb index 79e4728f..1ba3969a 100644 --- a/accounting/spec/models/ten_nintey_nine_contact_spec.rb +++ b/accounting/spec/models/ten_nintey_nine_contact_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/time_zone_spec.rb b/accounting/spec/models/time_zone_spec.rb index dbdbf23c..fea6d574 100644 --- a/accounting/spec/models/time_zone_spec.rb +++ b/accounting/spec/models/time_zone_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/tracking_categories_spec.rb b/accounting/spec/models/tracking_categories_spec.rb index 47ccf632..2648d54f 100644 --- a/accounting/spec/models/tracking_categories_spec.rb +++ b/accounting/spec/models/tracking_categories_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/tracking_category_spec.rb b/accounting/spec/models/tracking_category_spec.rb index 1fb5881b..caace24c 100644 --- a/accounting/spec/models/tracking_category_spec.rb +++ b/accounting/spec/models/tracking_category_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/tracking_option_spec.rb b/accounting/spec/models/tracking_option_spec.rb index db151408..0c885c10 100644 --- a/accounting/spec/models/tracking_option_spec.rb +++ b/accounting/spec/models/tracking_option_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/tracking_options_spec.rb b/accounting/spec/models/tracking_options_spec.rb index 936d00bf..89aa8169 100644 --- a/accounting/spec/models/tracking_options_spec.rb +++ b/accounting/spec/models/tracking_options_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/user_spec.rb b/accounting/spec/models/user_spec.rb index 364861df..4aed96ee 100644 --- a/accounting/spec/models/user_spec.rb +++ b/accounting/spec/models/user_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/users_spec.rb b/accounting/spec/models/users_spec.rb index f98cef14..7d44351c 100644 --- a/accounting/spec/models/users_spec.rb +++ b/accounting/spec/models/users_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/models/validation_error_spec.rb b/accounting/spec/models/validation_error_spec.rb index ccf47598..7c19e43e 100644 --- a/accounting/spec/models/validation_error_spec.rb +++ b/accounting/spec/models/validation_error_spec.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/spec/spec_helper.rb b/accounting/spec/spec_helper.rb index 61c3e6a5..b678a538 100644 --- a/accounting/spec/spec_helper.rb +++ b/accounting/spec/spec_helper.rb @@ -3,10 +3,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.3 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end diff --git a/accounting/xero-ruby.gemspec b/accounting/xero-ruby.gemspec index 8dfe9f04..35c84665 100644 --- a/accounting/xero-ruby.gemspec +++ b/accounting/xero-ruby.gemspec @@ -5,10 +5,10 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.6 +The version of the OpenAPI document: 2.0.7 Contact: api@xero.com Generated by: https://openapi-generator.tech -OpenAPI Generator version: 4.2.0 +OpenAPI Generator version: 4.3.0 =end @@ -27,7 +27,7 @@ Gem::Specification.new do |s| s.license = "Unlicense" s.required_ruby_version = ">= 1.9" - s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' + s.add_runtime_dependency 'faraday', '>= 0.14.0' s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0' s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' From cfd50353c0c2cede704992f11fed5336c3e7be63 Mon Sep 17 00:00:00 2001 From: serknight Date: Fri, 3 Apr 2020 17:29:19 -0600 Subject: [PATCH 2/9] work in progress.. regenerated to include 90% working oauth2 flow code --- accounting/.gitignore | 2 - accounting/.rubocop.yml | 14 +- accounting/.travis.yml | 2 +- accounting/Gemfile | 2 +- accounting/README.md | 8 +- accounting/docs/Account.md | 12 +- accounting/docs/BankTransaction.md | 8 +- accounting/docs/BankTransfer.md | 12 +- accounting/docs/BatchPayment.md | 12 +- accounting/docs/BrandingTheme.md | 2 +- accounting/docs/Contact.md | 6 +- accounting/docs/CreditNote.md | 4 +- accounting/docs/Employee.md | 2 +- accounting/docs/ExpenseClaim.md | 12 +- accounting/docs/HistoryRecord.md | 2 +- accounting/docs/Invoice.md | 32 +- accounting/docs/Item.md | 2 +- accounting/docs/Journal.md | 2 +- accounting/docs/JournalLine.md | 2 +- accounting/docs/LinkedTransaction.md | 2 +- accounting/docs/ManualJournal.md | 4 +- accounting/docs/ManualJournalLine.md | 2 +- accounting/docs/Organisation.md | 2 +- accounting/docs/Overpayment.md | 4 +- accounting/docs/Payment.md | 4 +- accounting/docs/Prepayment.md | 6 +- accounting/docs/PurchaseOrder.md | 12 +- accounting/docs/Quote.md | 12 +- accounting/docs/Receipt.md | 8 +- accounting/docs/RepeatingInvoice.md | 2 +- accounting/docs/Report.md | 2 +- accounting/docs/ReportWithRow.md | 2 +- accounting/docs/TaxRate.md | 14 +- accounting/docs/User.md | 2 +- accounting/git_push.sh | 17 +- .../lib/xero-ruby/api/accounting_api.rb | 284 +++++++++--------- accounting/lib/xero-ruby/api_client.rb | 42 ++- accounting/lib/xero-ruby/models/account.rb | 23 +- .../lib/xero-ruby/models/account_type.rb | 1 + accounting/lib/xero-ruby/models/accounts.rb | 23 +- .../lib/xero-ruby/models/accounts_payable.rb | 23 +- .../xero-ruby/models/accounts_receivable.rb | 23 +- accounting/lib/xero-ruby/models/address.rb | 23 +- accounting/lib/xero-ruby/models/allocation.rb | 23 +- .../lib/xero-ruby/models/allocations.rb | 23 +- accounting/lib/xero-ruby/models/attachment.rb | 23 +- .../lib/xero-ruby/models/attachments.rb | 23 +- accounting/lib/xero-ruby/models/balances.rb | 23 +- .../lib/xero-ruby/models/bank_transaction.rb | 23 +- .../lib/xero-ruby/models/bank_transactions.rb | 23 +- .../lib/xero-ruby/models/bank_transfer.rb | 23 +- .../lib/xero-ruby/models/bank_transfers.rb | 23 +- .../lib/xero-ruby/models/batch_payment.rb | 23 +- .../xero-ruby/models/batch_payment_details.rb | 23 +- .../lib/xero-ruby/models/batch_payments.rb | 23 +- accounting/lib/xero-ruby/models/bill.rb | 23 +- .../lib/xero-ruby/models/branding_theme.rb | 23 +- .../lib/xero-ruby/models/branding_themes.rb | 23 +- .../lib/xero-ruby/models/cis_org_setting.rb | 23 +- .../lib/xero-ruby/models/cis_setting.rb | 23 +- .../lib/xero-ruby/models/cis_settings.rb | 23 +- accounting/lib/xero-ruby/models/contact.rb | 23 +- .../lib/xero-ruby/models/contact_group.rb | 23 +- .../lib/xero-ruby/models/contact_groups.rb | 23 +- .../lib/xero-ruby/models/contact_person.rb | 23 +- accounting/lib/xero-ruby/models/contacts.rb | 23 +- .../lib/xero-ruby/models/country_code.rb | 1 + .../lib/xero-ruby/models/credit_note.rb | 23 +- .../lib/xero-ruby/models/credit_notes.rb | 23 +- accounting/lib/xero-ruby/models/currencies.rb | 23 +- accounting/lib/xero-ruby/models/currency.rb | 23 +- .../lib/xero-ruby/models/currency_code.rb | 1 + accounting/lib/xero-ruby/models/element.rb | 23 +- accounting/lib/xero-ruby/models/employee.rb | 23 +- accounting/lib/xero-ruby/models/employees.rb | 23 +- accounting/lib/xero-ruby/models/error.rb | 23 +- .../lib/xero-ruby/models/expense_claim.rb | 26 +- .../lib/xero-ruby/models/expense_claims.rb | 23 +- .../lib/xero-ruby/models/external_link.rb | 23 +- .../lib/xero-ruby/models/history_record.rb | 23 +- .../lib/xero-ruby/models/history_records.rb | 23 +- accounting/lib/xero-ruby/models/invoice.rb | 23 +- .../lib/xero-ruby/models/invoice_reminder.rb | 23 +- .../lib/xero-ruby/models/invoice_reminders.rb | 23 +- accounting/lib/xero-ruby/models/invoices.rb | 23 +- accounting/lib/xero-ruby/models/item.rb | 23 +- accounting/lib/xero-ruby/models/items.rb | 23 +- accounting/lib/xero-ruby/models/journal.rb | 23 +- .../lib/xero-ruby/models/journal_line.rb | 23 +- accounting/lib/xero-ruby/models/journals.rb | 23 +- .../lib/xero-ruby/models/line_amount_types.rb | 1 + accounting/lib/xero-ruby/models/line_item.rb | 23 +- .../xero-ruby/models/line_item_tracking.rb | 23 +- .../xero-ruby/models/linked_transaction.rb | 23 +- .../xero-ruby/models/linked_transactions.rb | 23 +- .../lib/xero-ruby/models/manual_journal.rb | 23 +- .../xero-ruby/models/manual_journal_line.rb | 23 +- .../lib/xero-ruby/models/manual_journals.rb | 23 +- .../lib/xero-ruby/models/online_invoice.rb | 23 +- .../lib/xero-ruby/models/online_invoices.rb | 23 +- .../lib/xero-ruby/models/organisation.rb | 23 +- .../lib/xero-ruby/models/organisations.rb | 23 +- .../lib/xero-ruby/models/overpayment.rb | 23 +- .../lib/xero-ruby/models/overpayments.rb | 23 +- accounting/lib/xero-ruby/models/payment.rb | 23 +- .../lib/xero-ruby/models/payment_delete.rb | 23 +- .../lib/xero-ruby/models/payment_service.rb | 23 +- .../lib/xero-ruby/models/payment_services.rb | 23 +- .../lib/xero-ruby/models/payment_term.rb | 23 +- .../lib/xero-ruby/models/payment_term_type.rb | 1 + accounting/lib/xero-ruby/models/payments.rb | 23 +- accounting/lib/xero-ruby/models/phone.rb | 23 +- accounting/lib/xero-ruby/models/prepayment.rb | 23 +- .../lib/xero-ruby/models/prepayments.rb | 23 +- accounting/lib/xero-ruby/models/purchase.rb | 23 +- .../lib/xero-ruby/models/purchase_order.rb | 23 +- .../lib/xero-ruby/models/purchase_orders.rb | 23 +- accounting/lib/xero-ruby/models/quote.rb | 25 +- .../models/quote_line_amount_types.rb | 1 + .../xero-ruby/models/quote_status_codes.rb | 1 + accounting/lib/xero-ruby/models/quotes.rb | 23 +- accounting/lib/xero-ruby/models/receipt.rb | 23 +- accounting/lib/xero-ruby/models/receipts.rb | 23 +- .../lib/xero-ruby/models/repeating_invoice.rb | 23 +- .../xero-ruby/models/repeating_invoices.rb | 23 +- accounting/lib/xero-ruby/models/report.rb | 23 +- .../lib/xero-ruby/models/report_attribute.rb | 23 +- .../lib/xero-ruby/models/report_cell.rb | 23 +- .../lib/xero-ruby/models/report_fields.rb | 23 +- accounting/lib/xero-ruby/models/report_row.rb | 23 +- .../lib/xero-ruby/models/report_rows.rb | 23 +- .../lib/xero-ruby/models/report_with_row.rb | 23 +- .../lib/xero-ruby/models/report_with_rows.rb | 23 +- accounting/lib/xero-ruby/models/reports.rb | 23 +- .../lib/xero-ruby/models/request_empty.rb | 23 +- accounting/lib/xero-ruby/models/row_type.rb | 1 + .../models/sales_tracking_category.rb | 23 +- accounting/lib/xero-ruby/models/schedule.rb | 23 +- .../lib/xero-ruby/models/tax_component.rb | 23 +- accounting/lib/xero-ruby/models/tax_rate.rb | 23 +- accounting/lib/xero-ruby/models/tax_rates.rb | 23 +- accounting/lib/xero-ruby/models/tax_type.rb | 1 + .../models/ten_nintey_nine_contact.rb | 23 +- accounting/lib/xero-ruby/models/time_zone.rb | 1 + .../xero-ruby/models/tracking_categories.rb | 23 +- .../lib/xero-ruby/models/tracking_category.rb | 23 +- .../lib/xero-ruby/models/tracking_option.rb | 23 +- .../lib/xero-ruby/models/tracking_options.rb | 23 +- accounting/lib/xero-ruby/models/user.rb | 23 +- accounting/lib/xero-ruby/models/users.rb | 23 +- .../lib/xero-ruby/models/validation_error.rb | 23 +- accounting/lib/xero-ruby/version.rb | 2 +- accounting/spec/api_client_spec.rb | 2 +- 153 files changed, 1346 insertions(+), 1624 deletions(-) diff --git a/accounting/.gitignore b/accounting/.gitignore index 2fab68ef..05a17cb8 100644 --- a/accounting/.gitignore +++ b/accounting/.gitignore @@ -37,5 +37,3 @@ build/ # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: .rvmrc - -.DS_Store \ No newline at end of file diff --git a/accounting/.rubocop.yml b/accounting/.rubocop.yml index df460584..0ef33ce5 100644 --- a/accounting/.rubocop.yml +++ b/accounting/.rubocop.yml @@ -14,6 +14,12 @@ AllCops: Style/AndOr: Enabled: true +# Do not use braces for hash literals when they are the last argument of a +# method call. +Style/BracesAroundHashParameters: + Enabled: true + EnforcedStyle: context_dependent + # Align `when` with `case`. Layout/CaseIndentation: Enabled: true @@ -40,7 +46,7 @@ Layout/EmptyLinesAroundMethodBody: Layout/EmptyLinesAroundModuleBody: Enabled: true -Layout/FirstArgumentIndentation: +Layout/IndentFirstArgument: Enabled: true # Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. @@ -51,7 +57,7 @@ Style/HashSyntax: # extra level of indentation. Layout/IndentationConsistency: Enabled: true - EnforcedStyle: indented_internal_methods + EnforcedStyle: rails # Two spaces, no tabs (for indentation). Layout/IndentationWidth: @@ -117,7 +123,7 @@ Layout/Tab: Enabled: true # Blank lines should not have any spaces. -Layout/TrailingEmptyLines: +Layout/TrailingBlankLines: Enabled: true # No trailing whitespace. @@ -125,7 +131,7 @@ Layout/TrailingWhitespace: Enabled: false # Use quotes for string literals when they are enough. -Style/RedundantPercentQ: +Style/UnneededPercentQ: Enabled: true # Align `end` with the matching keyword or starting expression except for diff --git a/accounting/.travis.yml b/accounting/.travis.yml index f91c207e..e4d9862a 100644 --- a/accounting/.travis.yml +++ b/accounting/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build xero-ruby.gemspec - - gem install ./xero-ruby-0.2.2.gem + - gem install ./xero-ruby-0.3.4.gem diff --git a/accounting/Gemfile b/accounting/Gemfile index c2e3127c..577f058f 100644 --- a/accounting/Gemfile +++ b/accounting/Gemfile @@ -3,7 +3,7 @@ source 'https://rubygems.org' gemspec group :development, :test do - gem 'rake', '~> 13.0.1' + gem 'rake', '~> 12.3.3' gem 'pry-byebug' gem 'rubocop', '~> 0.66.0' end diff --git a/accounting/README.md b/accounting/README.md index 99c63f7f..bf3de591 100644 --- a/accounting/README.md +++ b/accounting/README.md @@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - API version: 2.0.7 -- Package version: 0.2.2 +- Package version: 0.3.4 - Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit [https://developer.xero.com](https://developer.xero.com) @@ -24,16 +24,16 @@ gem build xero-ruby.gemspec Then either install the gem locally: ```shell -gem install ./xero-ruby-0.2.2.gem +gem install ./xero-ruby-0.3.4.gem ``` -(for development, run `gem install --dev ./xero-ruby-0.2.2.gem` to install the development dependencies) +(for development, run `gem install --dev ./xero-ruby-0.3.4.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'xero-ruby', '~> 0.2.2' + gem 'xero-ruby', '~> 0.3.4' ### Install from Git diff --git a/accounting/docs/Account.md b/accounting/docs/Account.md index 12393060..51a1cdb3 100644 --- a/accounting/docs/Account.md +++ b/accounting/docs/Account.md @@ -16,12 +16,12 @@ Name | Type | Description | Notes **tax_type** | **String** | The tax type from TaxRates | [optional] **enable_payments_to_account** | **Boolean** | Boolean – describes whether account can have payments applied to it | [optional] **show_in_expense_claims** | **Boolean** | Boolean – describes whether account code is available for use with expense claims | [optional] -**_class** | **String** | See Account Class Types | [optional] [readonly] -**system_account** | **String** | If this is a system account then this element is returned. See System Account types. Note that non-system accounts may have this element set as either “” or null. | [optional] [readonly] -**reporting_code** | **String** | Shown if set | [optional] [readonly] -**reporting_code_name** | **String** | Shown if set | [optional] [readonly] -**has_attachments** | **Boolean** | boolean to indicate if an account has an attachment (read only) | [optional] [readonly] [default to false] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] +**_class** | **String** | See Account Class Types | [optional] +**system_account** | **String** | If this is a system account then this element is returned. See System Account types. Note that non-system accounts may have this element set as either “” or null. | [optional] +**reporting_code** | **String** | Shown if set | [optional] +**reporting_code_name** | **String** | Shown if set | [optional] +**has_attachments** | **Boolean** | boolean to indicate if an account has an attachment (read only) | [optional] [default to false] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] **add_to_watchlist** | **Boolean** | Boolean – describes whether the account is shown in the watchlist widget on the dashboard | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/accounting/docs/BankTransaction.md b/accounting/docs/BankTransaction.md index 33aa0a69..5239ae13 100644 --- a/accounting/docs/BankTransaction.md +++ b/accounting/docs/BankTransaction.md @@ -20,10 +20,10 @@ Name | Type | Description | Notes **total_tax** | **Float** | Total tax on bank transaction | [optional] **total** | **Float** | Total of bank transaction tax inclusive | [optional] **bank_transaction_id** | **String** | Xero generated unique identifier for bank transaction | [optional] -**prepayment_id** | **String** | Xero generated unique identifier for a Prepayment. This will be returned on BankTransactions with a Type of SPEND-PREPAYMENT or RECEIVE-PREPAYMENT | [optional] [readonly] -**overpayment_id** | **String** | Xero generated unique identifier for an Overpayment. This will be returned on BankTransactions with a Type of SPEND-OVERPAYMENT or RECEIVE-OVERPAYMENT | [optional] [readonly] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] -**has_attachments** | **Boolean** | Boolean to indicate if a bank transaction has an attachment | [optional] [readonly] [default to false] +**prepayment_id** | **String** | Xero generated unique identifier for a Prepayment. This will be returned on BankTransactions with a Type of SPEND-PREPAYMENT or RECEIVE-PREPAYMENT | [optional] +**overpayment_id** | **String** | Xero generated unique identifier for an Overpayment. This will be returned on BankTransactions with a Type of SPEND-OVERPAYMENT or RECEIVE-OVERPAYMENT | [optional] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**has_attachments** | **Boolean** | Boolean to indicate if a bank transaction has an attachment | [optional] [default to false] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/accounting/docs/BankTransfer.md b/accounting/docs/BankTransfer.md index d0b7801c..50333f83 100644 --- a/accounting/docs/BankTransfer.md +++ b/accounting/docs/BankTransfer.md @@ -8,12 +8,12 @@ Name | Type | Description | Notes **to_bank_account** | [**Account**](Account.md) | | **amount** | **String** | amount of the transaction | **date** | **Date** | The date of the Transfer YYYY-MM-DD | [optional] -**bank_transfer_id** | **String** | The identifier of the Bank Transfer | [optional] [readonly] -**currency_rate** | **Float** | The currency rate | [optional] [readonly] -**from_bank_transaction_id** | **String** | The Bank Transaction ID for the source account | [optional] [readonly] -**to_bank_transaction_id** | **String** | The Bank Transaction ID for the destination account | [optional] [readonly] -**has_attachments** | **Boolean** | Boolean to indicate if a Bank Transfer has an attachment | [optional] [readonly] [default to false] -**created_date_utc** | **DateTime** | UTC timestamp of creation date of bank transfer | [optional] [readonly] +**bank_transfer_id** | **String** | The identifier of the Bank Transfer | [optional] +**currency_rate** | **Float** | The currency rate | [optional] +**from_bank_transaction_id** | **String** | The Bank Transaction ID for the source account | [optional] +**to_bank_transaction_id** | **String** | The Bank Transaction ID for the destination account | [optional] +**has_attachments** | **Boolean** | Boolean to indicate if a Bank Transfer has an attachment | [optional] [default to false] +**created_date_utc** | **DateTime** | UTC timestamp of creation date of bank transfer | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] ## Code Sample diff --git a/accounting/docs/BatchPayment.md b/accounting/docs/BatchPayment.md index 8d551740..394716c9 100644 --- a/accounting/docs/BatchPayment.md +++ b/accounting/docs/BatchPayment.md @@ -10,16 +10,16 @@ Name | Type | Description | Notes **code** | **String** | (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero. | [optional] **details** | **String** | (Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero. Maximum field length = 18 | [optional] **narrative** | **String** | (UK Only) Only shows on the statement line in Xero. Max length =18 | [optional] -**batch_payment_id** | **String** | The Xero generated unique identifier for the bank transaction (read-only) | [optional] [readonly] +**batch_payment_id** | **String** | The Xero generated unique identifier for the bank transaction (read-only) | [optional] **date_string** | **String** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional] **date** | **Date** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional] **amount** | **Float** | The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00 | [optional] **payments** | [**Array<Payment>**](Payment.md) | | [optional] -**type** | **String** | PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) | [optional] [readonly] -**status** | **String** | AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API. | [optional] [readonly] -**total_amount** | **String** | The total of the payments that make up the batch (read-only) | [optional] [readonly] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] [readonly] -**is_reconciled** | **String** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional] [readonly] +**type** | **String** | PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only) | [optional] +**status** | **String** | AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API. | [optional] +**total_amount** | **String** | The total of the payments that make up the batch (read-only) | [optional] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] +**is_reconciled** | **String** | Booelan that tells you if the batch payment has been reconciled (read-only) | [optional] ## Code Sample diff --git a/accounting/docs/BrandingTheme.md b/accounting/docs/BrandingTheme.md index 128e418c..776797d8 100644 --- a/accounting/docs/BrandingTheme.md +++ b/accounting/docs/BrandingTheme.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **logo_url** | **String** | The location of the image file used as the logo on this branding theme | [optional] **type** | **String** | Always INVOICE | [optional] **sort_order** | **Integer** | Integer – ranked order of branding theme. The default branding theme has a value of 0 | [optional] -**created_date_utc** | **DateTime** | UTC timestamp of creation date of branding theme | [optional] [readonly] +**created_date_utc** | **DateTime** | UTC timestamp of creation date of branding theme | [optional] ## Code Sample diff --git a/accounting/docs/Contact.md b/accounting/docs/Contact.md index 09622773..7fc88b2b 100644 --- a/accounting/docs/Contact.md +++ b/accounting/docs/Contact.md @@ -31,12 +31,12 @@ Name | Type | Description | Notes **tracking_category_name** | **String** | The name of the Tracking Category assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories | [optional] **tracking_category_option** | **String** | The name of the Tracking Option assigned to the contact under SalesTrackingCategories and PurchasesTrackingCategories | [optional] **payment_terms** | [**PaymentTerm**](PaymentTerm.md) | | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to contact | [optional] [readonly] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to contact | [optional] **contact_groups** | [**Array<ContactGroup>**](ContactGroup.md) | Displays which contact groups a contact is included in | [optional] -**website** | **String** | Website address for contact (read only) | [optional] [readonly] +**website** | **String** | Website address for contact (read only) | [optional] **branding_theme** | [**BrandingTheme**](BrandingTheme.md) | | [optional] **batch_payments** | [**BatchPaymentDetails**](BatchPaymentDetails.md) | | [optional] -**discount** | **Float** | The default discount rate for the contact (read only) | [optional] [readonly] +**discount** | **Float** | The default discount rate for the contact (read only) | [optional] **balances** | [**Balances**](Balances.md) | | [optional] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] **has_attachments** | **Boolean** | A boolean to indicate if a contact has an attachment | [optional] [default to false] diff --git a/accounting/docs/CreditNote.md b/accounting/docs/CreditNote.md index bbb71afa..f946a0fe 100644 --- a/accounting/docs/CreditNote.md +++ b/accounting/docs/CreditNote.md @@ -13,13 +13,13 @@ Name | Type | Description | Notes **sub_total** | **Float** | The subtotal of the credit note excluding taxes | [optional] **total_tax** | **Float** | The total tax on the credit note | [optional] **total** | **Float** | The total of the Credit Note(subtotal + total tax) | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the credit note | [optional] [readonly] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the credit note | [optional] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **fully_paid_on_date** | **Date** | Date when credit note was fully paid(UTC format) | [optional] **credit_note_id** | **String** | Xero generated unique identifier | [optional] **credit_note_number** | **String** | ACCRECCREDIT – Unique alpha numeric code identifying credit note (when missing will auto-generate from your Organisation Invoice Settings) | [optional] **reference** | **String** | ACCRECCREDIT only – additional reference number | [optional] -**sent_to_contact** | **Boolean** | boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only) | [optional] [readonly] +**sent_to_contact** | **Boolean** | boolean to indicate if a credit note has been sent to a contact via the Xero app (currently read only) | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used | [optional] **remaining_credit** | **Float** | The remaining credit balance on the Credit Note | [optional] **allocations** | [**Array<Allocation>**](Allocation.md) | See Allocations | [optional] diff --git a/accounting/docs/Employee.md b/accounting/docs/Employee.md index 975d2113..0575f2cf 100644 --- a/accounting/docs/Employee.md +++ b/accounting/docs/Employee.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **first_name** | **String** | First name of an employee (max length = 255) | [optional] **last_name** | **String** | Last name of an employee (max length = 255) | [optional] **external_link** | [**ExternalLink**](ExternalLink.md) | | [optional] -**updated_date_utc** | **DateTime** | | [optional] [readonly] +**updated_date_utc** | **DateTime** | | [optional] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/accounting/docs/ExpenseClaim.md b/accounting/docs/ExpenseClaim.md index 8dfeb933..8f982f0b 100644 --- a/accounting/docs/ExpenseClaim.md +++ b/accounting/docs/ExpenseClaim.md @@ -9,12 +9,12 @@ Name | Type | Description | Notes **payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] **user** | [**User**](User.md) | | [optional] **receipts** | [**Array<Receipt>**](Receipt.md) | | [optional] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] -**total** | **Float** | The total of an expense claim being paid | [optional] [readonly] -**amount_due** | **Float** | The amount due to be paid for an expense claim | [optional] [readonly] -**amount_paid** | **Float** | The amount still to pay for an expense claim | [optional] [readonly] -**payment_due_date** | **Date** | The date when the expense claim is due to be paid YYYY-MM-DD | [optional] [readonly] -**reporting_date** | **Date** | The date the expense claim will be reported in Xero YYYY-MM-DD | [optional] [readonly] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**total** | **Float** | The total of an expense claim being paid | [optional] +**amount_due** | **Float** | The amount due to be paid for an expense claim | [optional] +**amount_paid** | **Float** | The amount still to pay for an expense claim | [optional] +**payment_due_date** | **Date** | The date when the expense claim is due to be paid YYYY-MM-DD | [optional] +**reporting_date** | **Date** | The date the expense claim will be reported in Xero YYYY-MM-DD | [optional] **receipt_id** | **String** | The Xero identifier for the Receipt e.g. e59a2c7f-1306-4078-a0f3-73537afcbba9 | [optional] ## Code Sample diff --git a/accounting/docs/HistoryRecord.md b/accounting/docs/HistoryRecord.md index b3e306b4..8e86fea1 100644 --- a/accounting/docs/HistoryRecord.md +++ b/accounting/docs/HistoryRecord.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **details** | **String** | details | [optional] **changes** | **String** | Name of branding theme | [optional] **user** | **String** | has a value of 0 | [optional] -**date_utc** | **DateTime** | UTC timestamp of creation date of branding theme | [optional] [readonly] +**date_utc** | **DateTime** | UTC timestamp of creation date of branding theme | [optional] ## Code Sample diff --git a/accounting/docs/Invoice.md b/accounting/docs/Invoice.md index 131048ba..f462f18e 100644 --- a/accounting/docs/Invoice.md +++ b/accounting/docs/Invoice.md @@ -20,23 +20,23 @@ Name | Type | Description | Notes **sent_to_contact** | **Boolean** | Boolean to set whether the invoice in the Xero app should be marked as “sent”. This can be set only on invoices that have been approved | [optional] **expected_payment_date** | **Date** | Shown on sales invoices (Accounts Receivable) when this has been set | [optional] **planned_payment_date** | **Date** | Shown on bills (Accounts Payable) when this has been set | [optional] -**cis_deduction** | **Float** | CIS deduction for UK contractors | [optional] [readonly] -**sub_total** | **Float** | Total of invoice excluding taxes | [optional] [readonly] -**total_tax** | **Float** | Total tax on invoice | [optional] [readonly] -**total** | **Float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional] [readonly] -**total_discount** | **Float** | Total of discounts applied on the invoice line items | [optional] [readonly] +**cis_deduction** | **Float** | CIS deduction for UK contractors | [optional] +**sub_total** | **Float** | Total of invoice excluding taxes | [optional] +**total_tax** | **Float** | Total tax on invoice | [optional] +**total** | **Float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional] +**total_discount** | **Float** | Total of discounts applied on the invoice line items | [optional] **invoice_id** | **String** | Xero generated unique identifier for invoice | [optional] -**has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] [readonly] [default to false] -**is_discounted** | **Boolean** | boolean to indicate if an invoice has a discount | [optional] [readonly] -**payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] [readonly] -**prepayments** | [**Array<Prepayment>**](Prepayment.md) | See Prepayments | [optional] [readonly] -**overpayments** | [**Array<Overpayment>**](Overpayment.md) | See Overpayments | [optional] [readonly] -**amount_due** | **Float** | Amount remaining to be paid on invoice | [optional] [readonly] -**amount_paid** | **Float** | Sum of payments received for invoice | [optional] [readonly] -**fully_paid_on_date** | **Date** | The date the invoice was fully paid. Only returned on fully paid invoices | [optional] [readonly] -**amount_credited** | **Float** | Sum of all credit notes, over-payments and pre-payments applied to invoice | [optional] [readonly] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] -**credit_notes** | [**Array<CreditNote>**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional] [readonly] +**has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] [default to false] +**is_discounted** | **Boolean** | boolean to indicate if an invoice has a discount | [optional] +**payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] +**prepayments** | [**Array<Prepayment>**](Prepayment.md) | See Prepayments | [optional] +**overpayments** | [**Array<Overpayment>**](Overpayment.md) | See Overpayments | [optional] +**amount_due** | **Float** | Amount remaining to be paid on invoice | [optional] +**amount_paid** | **Float** | Sum of payments received for invoice | [optional] +**fully_paid_on_date** | **Date** | The date the invoice was fully paid. Only returned on fully paid invoices | [optional] +**amount_credited** | **Float** | Sum of all credit notes, over-payments and pre-payments applied to invoice | [optional] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**credit_notes** | [**Array<CreditNote>**](CreditNote.md) | Details of credit notes that have been applied to an invoice | [optional] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] **has_errors** | **Boolean** | A boolean to indicate if a invoice has an validation errors | [optional] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] diff --git a/accounting/docs/Item.md b/accounting/docs/Item.md index 1db5f983..3683d4e3 100644 --- a/accounting/docs/Item.md +++ b/accounting/docs/Item.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **is_tracked_as_inventory** | **Boolean** | True for items that are tracked as inventory. An item will be tracked as inventory if the InventoryAssetAccountCode and COGSAccountCode are set. | [optional] **total_cost_pool** | **Float** | The value of the item on hand. Calculated using average cost accounting. | [optional] **quantity_on_hand** | **Float** | The quantity of the item on hand | [optional] -**updated_date_utc** | **DateTime** | Last modified date in UTC format | [optional] [readonly] +**updated_date_utc** | **DateTime** | Last modified date in UTC format | [optional] **item_id** | **String** | The Xero identifier for an Item | [optional] **status_attribute_string** | **String** | Status of object | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/accounting/docs/Journal.md b/accounting/docs/Journal.md index 1e266a95..2011c0cb 100644 --- a/accounting/docs/Journal.md +++ b/accounting/docs/Journal.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **journal_id** | **String** | Xero identifier | [optional] **journal_date** | **Date** | Date the journal was posted | [optional] **journal_number** | **String** | Xero generated journal number | [optional] -**created_date_utc** | **DateTime** | Created date UTC format | [optional] [readonly] +**created_date_utc** | **DateTime** | Created date UTC format | [optional] **reference** | **String** | reference field for additional indetifying information | [optional] **source_id** | **String** | The identifier for the source transaction (e.g. InvoiceID) | [optional] **source_type** | **String** | The journal source type. The type of transaction that created the journal | [optional] diff --git a/accounting/docs/JournalLine.md b/accounting/docs/JournalLine.md index a7bcd932..d1992824 100644 --- a/accounting/docs/JournalLine.md +++ b/accounting/docs/JournalLine.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **description** | **String** | The description from the source transaction line item. Only returned if populated. | [optional] **net_amount** | **Float** | Net amount of journal line. This will be a positive value for a debit and negative for a credit | [optional] **gross_amount** | **Float** | Gross amount of journal line (NetAmount + TaxAmount). | [optional] -**tax_amount** | **Float** | Total tax on a journal line | [optional] [readonly] +**tax_amount** | **Float** | Total tax on a journal line | [optional] **tax_type** | **String** | The tax type from TaxRates | [optional] **tax_name** | **String** | see TaxRates | [optional] **tracking_categories** | [**Array<TrackingCategory>**](TrackingCategory.md) | Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements. | [optional] diff --git a/accounting/docs/LinkedTransaction.md b/accounting/docs/LinkedTransaction.md index 3ae1f82e..c0beb07f 100644 --- a/accounting/docs/LinkedTransaction.md +++ b/accounting/docs/LinkedTransaction.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **linked_transaction_id** | **String** | The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional] **status** | **String** | Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED. | [optional] **type** | **String** | This will always be BILLABLEEXPENSE. More types may be added in future. | [optional] -**updated_date_utc** | **DateTime** | The last modified date in UTC format | [optional] [readonly] +**updated_date_utc** | **DateTime** | The last modified date in UTC format | [optional] **source_transaction_type_code** | **String** | The Type of the source tranasction. This will be ACCPAY if the linked transaction was created from an invoice and SPEND if it was created from a bank transaction. | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] diff --git a/accounting/docs/ManualJournal.md b/accounting/docs/ManualJournal.md index 53351925..c4cb303f 100644 --- a/accounting/docs/ManualJournal.md +++ b/accounting/docs/ManualJournal.md @@ -11,8 +11,8 @@ Name | Type | Description | Notes **status** | **String** | See Manual Journal Status Codes | [optional] **url** | **String** | Url link to a source document – shown as “Go to [appName]” in the Xero app | [optional] **show_on_cash_basis_reports** | **Boolean** | Boolean – default is true if not specified | [optional] -**has_attachments** | **Boolean** | Boolean to indicate if a manual journal has an attachment | [optional] [readonly] [default to false] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] +**has_attachments** | **Boolean** | Boolean to indicate if a manual journal has an attachment | [optional] [default to false] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] **manual_journal_id** | **String** | The Xero identifier for a Manual Journal | [optional] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] **warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional] diff --git a/accounting/docs/ManualJournalLine.md b/accounting/docs/ManualJournalLine.md index 00693993..720de4b1 100644 --- a/accounting/docs/ManualJournalLine.md +++ b/accounting/docs/ManualJournalLine.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **description** | **String** | Description for journal line | [optional] **tax_type** | **String** | The tax type from TaxRates | [optional] **tracking** | [**Array<TrackingCategory>**](TrackingCategory.md) | Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements. | [optional] -**tax_amount** | **Float** | The calculated tax amount based on the TaxType and LineAmount | [optional] [readonly] +**tax_amount** | **Float** | The calculated tax amount based on the TaxType and LineAmount | [optional] **is_blank** | **Boolean** | is the line blank | [optional] ## Code Sample diff --git a/accounting/docs/Organisation.md b/accounting/docs/Organisation.md index b9d41d92..1f9b48c6 100644 --- a/accounting/docs/Organisation.md +++ b/accounting/docs/Organisation.md @@ -25,7 +25,7 @@ Name | Type | Description | Notes **default_purchases_tax** | **String** | The default for LineAmountTypes on purchase transactions | [optional] **period_lock_date** | **Date** | Shown if set. See lock dates | [optional] **end_of_year_lock_date** | **Date** | Shown if set. See lock dates | [optional] -**created_date_utc** | **DateTime** | Timestamp when the organisation was created in Xero | [optional] [readonly] +**created_date_utc** | **DateTime** | Timestamp when the organisation was created in Xero | [optional] **timezone** | [**TimeZone**](TimeZone.md) | | [optional] **organisation_entity_type** | **String** | Organisation Type | [optional] **short_code** | **String** | A unique identifier for the organisation. Potential uses. | [optional] diff --git a/accounting/docs/Overpayment.md b/accounting/docs/Overpayment.md index acb692ac..db74d5c7 100644 --- a/accounting/docs/Overpayment.md +++ b/accounting/docs/Overpayment.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **sub_total** | **Float** | The subtotal of the overpayment excluding taxes | [optional] **total_tax** | **Float** | The total tax on the overpayment | [optional] **total** | **Float** | The total of the overpayment (subtotal + total tax) | [optional] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the overpayment | [optional] [readonly] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the overpayment | [optional] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **overpayment_id** | **String** | Xero generated unique identifier | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency overpayment. If no rate is specified, the XE.com day rate is used | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes **allocations** | [**Array<Allocation>**](Allocation.md) | See Allocations | [optional] **applied_amount** | **Float** | The amount of applied to an invoice | [optional] **payments** | [**Array<Payment>**](Payment.md) | See Payments | [optional] -**has_attachments** | **Boolean** | boolean to indicate if a overpayment has an attachment | [optional] [readonly] [default to false] +**has_attachments** | **Boolean** | boolean to indicate if a overpayment has an attachment | [optional] [default to false] **attachments** | [**Array<Attachment>**](Attachment.md) | See Attachments | [optional] ## Code Sample diff --git a/accounting/docs/Payment.md b/accounting/docs/Payment.md index 791a2359..c493688e 100644 --- a/accounting/docs/Payment.md +++ b/accounting/docs/Payment.md @@ -18,8 +18,8 @@ Name | Type | Description | Notes **reference** | **String** | An optional description for the payment e.g. Direct Debit | [optional] **is_reconciled** | **Boolean** | An optional parameter for the payment. A boolean indicating whether you would like the payment to be created as reconciled when using PUT, or whether a payment has been reconciled when using GET | [optional] **status** | **String** | The status of the payment. | [optional] -**payment_type** | **String** | See Payment Types. | [optional] [readonly] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] [readonly] +**payment_type** | **String** | See Payment Types. | [optional] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional] **payment_id** | **String** | The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional] **bank_account_number** | **String** | The suppliers bank account number the payment is being made to | [optional] **particulars** | **String** | The suppliers bank account number the payment is being made to | [optional] diff --git a/accounting/docs/Prepayment.md b/accounting/docs/Prepayment.md index d5e64858..ca77afc5 100644 --- a/accounting/docs/Prepayment.md +++ b/accounting/docs/Prepayment.md @@ -13,15 +13,15 @@ Name | Type | Description | Notes **sub_total** | **Float** | The subtotal of the prepayment excluding taxes | [optional] **total_tax** | **Float** | The total tax on the prepayment | [optional] **total** | **Float** | The total of the prepayment(subtotal + total tax) | [optional] -**reference** | **String** | Returns Invoice number field. Reference field isn't available. | [optional] [readonly] -**updated_date_utc** | **DateTime** | UTC timestamp of last update to the prepayment | [optional] [readonly] +**reference** | **String** | Returns Invoice number field. Reference field isn't available. | [optional] +**updated_date_utc** | **DateTime** | UTC timestamp of last update to the prepayment | [optional] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **prepayment_id** | **String** | Xero generated unique identifier | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used | [optional] **remaining_credit** | **Float** | The remaining credit balance on the prepayment | [optional] **allocations** | [**Array<Allocation>**](Allocation.md) | See Allocations | [optional] **applied_amount** | **Float** | The amount of applied to an invoice | [optional] -**has_attachments** | **Boolean** | boolean to indicate if a prepayment has an attachment | [optional] [readonly] [default to false] +**has_attachments** | **Boolean** | boolean to indicate if a prepayment has an attachment | [optional] [default to false] **attachments** | [**Array<Attachment>**](Attachment.md) | See Attachments | [optional] ## Code Sample diff --git a/accounting/docs/PurchaseOrder.md b/accounting/docs/PurchaseOrder.md index 4d7c5344..0f208e7d 100644 --- a/accounting/docs/PurchaseOrder.md +++ b/accounting/docs/PurchaseOrder.md @@ -22,12 +22,12 @@ Name | Type | Description | Notes **expected_arrival_date** | **Date** | The date the goods are expected to arrive. | [optional] **purchase_order_id** | **String** | Xero generated unique identifier for purchase order | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency purchase order. If no rate is specified, the XE.com day rate is used. | [optional] -**sub_total** | **Float** | Total of purchase order excluding taxes | [optional] [readonly] -**total_tax** | **Float** | Total tax on purchase order | [optional] [readonly] -**total** | **Float** | Total of Purchase Order tax inclusive (i.e. SubTotal + TotalTax) | [optional] [readonly] -**total_discount** | **Float** | Total of discounts applied on the purchase order line items | [optional] [readonly] -**has_attachments** | **Boolean** | boolean to indicate if a purchase order has an attachment | [optional] [readonly] [default to false] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] +**sub_total** | **Float** | Total of purchase order excluding taxes | [optional] +**total_tax** | **Float** | Total tax on purchase order | [optional] +**total** | **Float** | Total of Purchase Order tax inclusive (i.e. SubTotal + TotalTax) | [optional] +**total_discount** | **Float** | Total of discounts applied on the purchase order line items | [optional] +**has_attachments** | **Boolean** | boolean to indicate if a purchase order has an attachment | [optional] [default to false] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] **status_attribute_string** | **String** | A string to indicate if a invoice status | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] **warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional] diff --git a/accounting/docs/Quote.md b/accounting/docs/Quote.md index 7fc31f11..07e6cad9 100644 --- a/accounting/docs/Quote.md +++ b/accounting/docs/Quote.md @@ -17,14 +17,14 @@ Name | Type | Description | Notes **status** | [**QuoteStatusCodes**](QuoteStatusCodes.md) | | [optional] **currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional] **currency_rate** | **Float** | The currency rate for a multicurrency quote | [optional] -**sub_total** | **Float** | Total of quote excluding taxes. | [optional] [readonly] -**total_tax** | **Float** | Total tax on quote | [optional] [readonly] -**total** | **Float** | Total of Quote tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional] [readonly] -**total_discount** | **Float** | Total of discounts applied on the quote line items | [optional] [readonly] +**sub_total** | **Float** | Total of quote excluding taxes. | [optional] +**total_tax** | **Float** | Total tax on quote | [optional] +**total** | **Float** | Total of Quote tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts | [optional] +**total_discount** | **Float** | Total of discounts applied on the quote line items | [optional] **title** | **String** | Title text for the quote | [optional] **summary** | **String** | Summary text for the quote | [optional] **branding_theme_id** | **String** | See BrandingThemes | [optional] -**updated_date_utc** | **String** | Last modified date UTC format | [optional] [readonly] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] **line_amount_types** | [**QuoteLineAmountTypes**](QuoteLineAmountTypes.md) | | [optional] ## Code Sample @@ -52,7 +52,7 @@ instance = XeroRuby::Quote.new(quote_id: null, title: null, summary: null, branding_theme_id: null, - updated_date_utc: /Date(1573755038314)/, + updated_date_utc: null, line_amount_types: null) ``` diff --git a/accounting/docs/Receipt.md b/accounting/docs/Receipt.md index 52fe04e4..fea01a84 100644 --- a/accounting/docs/Receipt.md +++ b/accounting/docs/Receipt.md @@ -15,10 +15,10 @@ Name | Type | Description | Notes **total** | **Float** | Total of receipt tax inclusive (i.e. SubTotal + TotalTax) | [optional] **receipt_id** | **String** | Xero generated unique identifier for receipt | [optional] **status** | **String** | Current status of receipt – see status types | [optional] -**receipt_number** | **String** | Xero generated sequence number for receipt in current claim for a given user | [optional] [readonly] -**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] [readonly] -**has_attachments** | **Boolean** | boolean to indicate if a receipt has an attachment | [optional] [readonly] [default to false] -**url** | **String** | URL link to a source document – shown as “Go to [appName]” in the Xero app | [optional] [readonly] +**receipt_number** | **String** | Xero generated sequence number for receipt in current claim for a given user | [optional] +**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional] +**has_attachments** | **Boolean** | boolean to indicate if a receipt has an attachment | [optional] [default to false] +**url** | **String** | URL link to a source document – shown as “Go to [appName]” in the Xero app | [optional] **validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional] **warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] diff --git a/accounting/docs/RepeatingInvoice.md b/accounting/docs/RepeatingInvoice.md index 17c242dc..65b09b30 100644 --- a/accounting/docs/RepeatingInvoice.md +++ b/accounting/docs/RepeatingInvoice.md @@ -18,7 +18,7 @@ Name | Type | Description | Notes **total** | **Float** | Total of Invoice tax inclusive (i.e. SubTotal + TotalTax) | [optional] **repeating_invoice_id** | **String** | Xero generated unique identifier for repeating invoice template | [optional] **id** | **String** | Xero generated unique identifier for repeating invoice template | [optional] -**has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] [readonly] [default to false] +**has_attachments** | **Boolean** | boolean to indicate if an invoice has an attachment | [optional] [default to false] **attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional] ## Code Sample diff --git a/accounting/docs/Report.md b/accounting/docs/Report.md index 0f905533..c85c3add 100644 --- a/accounting/docs/Report.md +++ b/accounting/docs/Report.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **report_type** | **String** | See Prepayment Types | [optional] **report_title** | **String** | See Prepayment Types | [optional] **report_date** | **String** | Date of report | [optional] -**updated_date_utc** | **DateTime** | Updated Date | [optional] [readonly] +**updated_date_utc** | **DateTime** | Updated Date | [optional] **contacts** | [**Array<TenNinteyNineContact>**](TenNinteyNineContact.md) | | [optional] ## Code Sample diff --git a/accounting/docs/ReportWithRow.md b/accounting/docs/ReportWithRow.md index efe051b5..fab83e5c 100644 --- a/accounting/docs/ReportWithRow.md +++ b/accounting/docs/ReportWithRow.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **report_titles** | **Array<String>** | Report titles array (3 to 4 strings with the report name, orgnisation name and time frame of report) | [optional] **report_date** | **String** | Date of report | [optional] **rows** | [**Array<ReportRows>**](ReportRows.md) | | [optional] -**updated_date_utc** | **DateTime** | Updated Date | [optional] [readonly] +**updated_date_utc** | **DateTime** | Updated Date | [optional] **fields** | [**Array<ReportFields>**](ReportFields.md) | | [optional] ## Code Sample diff --git a/accounting/docs/TaxRate.md b/accounting/docs/TaxRate.md index dc9bf8f5..1279c619 100644 --- a/accounting/docs/TaxRate.md +++ b/accounting/docs/TaxRate.md @@ -9,13 +9,13 @@ Name | Type | Description | Notes **tax_components** | [**Array<TaxComponent>**](TaxComponent.md) | See TaxComponents | [optional] **status** | **String** | See Status Codes | [optional] **report_tax_type** | **String** | See ReportTaxTypes | [optional] -**can_apply_to_assets** | **Boolean** | Boolean to describe if tax rate can be used for asset accounts i.e. true,false | [optional] [readonly] -**can_apply_to_equity** | **Boolean** | Boolean to describe if tax rate can be used for equity accounts i.e true,false | [optional] [readonly] -**can_apply_to_expenses** | **Boolean** | Boolean to describe if tax rate can be used for expense accounts i.e. true,false | [optional] [readonly] -**can_apply_to_liabilities** | **Boolean** | Boolean to describe if tax rate can be used for liability accounts i.e. true,false | [optional] [readonly] -**can_apply_to_revenue** | **Boolean** | Boolean to describe if tax rate can be used for revenue accounts i.e. true,false | [optional] [readonly] -**display_tax_rate** | **Float** | Tax Rate (decimal to 4dp) e.g 12.5000 | [optional] [readonly] -**effective_rate** | **Float** | Effective Tax Rate (decimal to 4dp) e.g 12.5000 | [optional] [readonly] +**can_apply_to_assets** | **Boolean** | Boolean to describe if tax rate can be used for asset accounts i.e. true,false | [optional] +**can_apply_to_equity** | **Boolean** | Boolean to describe if tax rate can be used for equity accounts i.e true,false | [optional] +**can_apply_to_expenses** | **Boolean** | Boolean to describe if tax rate can be used for expense accounts i.e. true,false | [optional] +**can_apply_to_liabilities** | **Boolean** | Boolean to describe if tax rate can be used for liability accounts i.e. true,false | [optional] +**can_apply_to_revenue** | **Boolean** | Boolean to describe if tax rate can be used for revenue accounts i.e. true,false | [optional] +**display_tax_rate** | **Float** | Tax Rate (decimal to 4dp) e.g 12.5000 | [optional] +**effective_rate** | **Float** | Effective Tax Rate (decimal to 4dp) e.g 12.5000 | [optional] ## Code Sample diff --git a/accounting/docs/User.md b/accounting/docs/User.md index adf2cdd5..426d968b 100644 --- a/accounting/docs/User.md +++ b/accounting/docs/User.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **email_address** | **String** | Email address of user | [optional] **first_name** | **String** | First name of user | [optional] **last_name** | **String** | Last name of user | [optional] -**updated_date_utc** | **DateTime** | Timestamp of last change to user | [optional] [readonly] +**updated_date_utc** | **DateTime** | Timestamp of last change to user | [optional] **is_subscriber** | **Boolean** | Boolean to indicate if user is the subscriber | [optional] **organisation_role** | **String** | User role that defines permissions in Xero and via API (READONLY, INVOICEONLY, STANDARD, FINANCIALADVISER, etc) | [optional] diff --git a/accounting/git_push.sh b/accounting/git_push.sh index 21a951fe..c2767106 100644 --- a/accounting/git_push.sh +++ b/accounting/git_push.sh @@ -1,17 +1,14 @@ #!/bin/sh +# +# Generated by: https://openapi-generator.tech +# # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # -# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com" +# Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" git_user_id=$1 git_repo_id=$2 release_note=$3 -git_host=$4 - -if [ "$git_host" = "" ]; then - git_host="github.com" - echo "[INFO] No command line input provided. Set \$git_host to $git_host" -fi if [ "$git_user_id" = "" ]; then git_user_id="XeroAPI" @@ -43,9 +40,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." - git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else - git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git + git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git fi fi @@ -53,6 +50,6 @@ fi git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository -echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https' diff --git a/accounting/lib/xero-ruby/api/accounting_api.rb b/accounting/lib/xero-ruby/api/accounting_api.rb index fb6a186e..c8183598 100644 --- a/accounting/lib/xero-ruby/api/accounting_api.rb +++ b/accounting/lib/xero-ruby/api/accounting_api.rb @@ -128,7 +128,7 @@ def create_account_attachment_by_file_name_with_http_info(xero_tenant_id, accoun fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_account_attachment_by_file_name" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -209,7 +209,7 @@ def create_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_i fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_bank_transaction_attachment_by_file_name" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -284,7 +284,7 @@ def create_bank_transaction_history_record_with_http_info(xero_tenant_id, bank_t fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_bank_transaction_history_record" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -507,7 +507,7 @@ def create_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_bank_transfer_attachment_by_file_name" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -580,7 +580,7 @@ def create_bank_transfer_history_record_with_http_info(xero_tenant_id, bank_tran fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_bank_transfer_history_record" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)) + local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -727,7 +727,7 @@ def create_batch_payment_history_record_with_http_info(xero_tenant_id, batch_pay fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_batch_payment_history_record" end # resource path - local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', CGI.escape(batch_payment_id.to_s)) + local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -802,7 +802,7 @@ def create_branding_theme_payment_services_with_http_info(xero_tenant_id, brandi fail ArgumentError, "Missing the required parameter 'payment_service' when calling AccountingApi.create_branding_theme_payment_services" end # resource path - local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', CGI.escape(branding_theme_id.to_s)) + local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -881,7 +881,7 @@ def create_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contac fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_contact_attachment_by_file_name" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -1025,7 +1025,7 @@ def create_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_i fail ArgumentError, "Missing the required parameter 'contacts' when calling AccountingApi.create_contact_group_contacts" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)) + local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -1100,7 +1100,7 @@ def create_contact_history_with_http_info(xero_tenant_id, contact_id, history_re fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_contact_history" end # resource path - local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) + local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -1247,7 +1247,7 @@ def create_credit_note_allocation_with_http_info(xero_tenant_id, credit_note_id, fail ArgumentError, "Missing the required parameter 'allocations' when calling AccountingApi.create_credit_note_allocation" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Allocations'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}/Allocations'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -1334,7 +1334,7 @@ def create_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, cr fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_credit_note_attachment_by_file_name" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)).sub('{' + 'IncludeOnline' + '}', CGI.escape(include_online.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s).sub('{' + 'IncludeOnline' + '}', include_online.to_s) # query parameters query_params = opts[:query_params] || {} @@ -1409,7 +1409,7 @@ def create_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, hi fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_credit_note_history" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -1698,7 +1698,7 @@ def create_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_expense_claim_history" end # resource path - local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', CGI.escape(expense_claim_id.to_s)) + local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -1854,7 +1854,7 @@ def create_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoic fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_invoice_attachment_by_file_name" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)).sub('{' + 'IncludeOnline' + '}', CGI.escape(include_online.to_s)) + local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s).sub('{' + 'IncludeOnline' + '}', include_online.to_s) # query parameters query_params = opts[:query_params] || {} @@ -1929,7 +1929,7 @@ def create_invoice_history_with_http_info(xero_tenant_id, invoice_id, history_re fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_invoice_history" end # resource path - local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -2079,7 +2079,7 @@ def create_item_history_with_http_info(xero_tenant_id, item_id, history_records, fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_item_history" end # resource path - local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) + local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -2304,7 +2304,7 @@ def create_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_manual_journal_attachment_by_file_name" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -2453,7 +2453,7 @@ def create_overpayment_allocations_with_http_info(xero_tenant_id, overpayment_id fail ArgumentError, "Missing the required parameter 'allocations' when calling AccountingApi.create_overpayment_allocations" end # resource path - local_var_path = '/Overpayments/{OverpaymentID}/Allocations'.sub('{' + 'OverpaymentID' + '}', CGI.escape(overpayment_id.to_s)) + local_var_path = '/Overpayments/{OverpaymentID}/Allocations'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -2529,7 +2529,7 @@ def create_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, hi fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_overpayment_history" end # resource path - local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', CGI.escape(overpayment_id.to_s)) + local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -2673,7 +2673,7 @@ def create_payment_history_with_http_info(xero_tenant_id, payment_id, history_re fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_payment_history" end # resource path - local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', CGI.escape(payment_id.to_s)) + local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -2888,7 +2888,7 @@ def create_prepayment_allocations_with_http_info(xero_tenant_id, prepayment_id, fail ArgumentError, "Missing the required parameter 'allocations' when calling AccountingApi.create_prepayment_allocations" end # resource path - local_var_path = '/Prepayments/{PrepaymentID}/Allocations'.sub('{' + 'PrepaymentID' + '}', CGI.escape(prepayment_id.to_s)) + local_var_path = '/Prepayments/{PrepaymentID}/Allocations'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -2964,7 +2964,7 @@ def create_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, hist fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_prepayment_history" end # resource path - local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', CGI.escape(prepayment_id.to_s)) + local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -3039,7 +3039,7 @@ def create_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_ fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_purchase_order_history" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', CGI.escape(purchase_order_id.to_s)) + local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -3192,7 +3192,7 @@ def create_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_quote_attachment_by_file_name" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -3267,7 +3267,7 @@ def create_quote_history_with_http_info(xero_tenant_id, quote_id, history_record fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_quote_history" end # resource path - local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) + local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -3492,7 +3492,7 @@ def create_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receip fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_receipt_attachment_by_file_name" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -3567,7 +3567,7 @@ def create_receipt_history_with_http_info(xero_tenant_id, receipt_id, history_re fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_receipt_history" end # resource path - local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) + local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -3648,7 +3648,7 @@ def create_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_ fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.create_repeating_invoice_attachment_by_file_name" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -3723,7 +3723,7 @@ def create_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_in fail ArgumentError, "Missing the required parameter 'history_records' when calling AccountingApi.create_repeating_invoice_history" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -3936,7 +3936,7 @@ def create_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, fail ArgumentError, "Missing the required parameter 'tracking_option' when calling AccountingApi.create_tracking_options" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)) + local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4005,7 +4005,7 @@ def delete_account_with_http_info(xero_tenant_id, account_id, opts = {}) fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountingApi.delete_account" end # resource path - local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)) + local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4078,7 +4078,7 @@ def delete_contact_group_contact_with_http_info(xero_tenant_id, contact_group_id fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.delete_contact_group_contact" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}/Contacts/{ContactID}'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)).sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) + local_var_path = '/ContactGroups/{ContactGroupID}/Contacts/{ContactID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s).sub('{' + 'ContactID' + '}', contact_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4145,7 +4145,7 @@ def delete_contact_group_contacts_with_http_info(xero_tenant_id, contact_group_i fail ArgumentError, "Missing the required parameter 'contact_group_id' when calling AccountingApi.delete_contact_group_contacts" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)) + local_var_path = '/ContactGroups/{ContactGroupID}/Contacts'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4210,7 +4210,7 @@ def delete_item_with_http_info(xero_tenant_id, item_id, opts = {}) fail ArgumentError, "Missing the required parameter 'item_id' when calling AccountingApi.delete_item" end # resource path - local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) + local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4277,7 +4277,7 @@ def delete_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_ fail ArgumentError, "Missing the required parameter 'linked_transaction_id' when calling AccountingApi.delete_linked_transaction" end # resource path - local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', CGI.escape(linked_transaction_id.to_s)) + local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4350,7 +4350,7 @@ def delete_payment_with_http_info(xero_tenant_id, payment_id, payment_delete, op fail ArgumentError, "Missing the required parameter 'payment_delete' when calling AccountingApi.delete_payment" end # resource path - local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', CGI.escape(payment_id.to_s)) + local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4419,7 +4419,7 @@ def delete_tracking_category_with_http_info(xero_tenant_id, tracking_category_id fail ArgumentError, "Missing the required parameter 'tracking_category_id' when calling AccountingApi.delete_tracking_category" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)) + local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4492,7 +4492,7 @@ def delete_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, fail ArgumentError, "Missing the required parameter 'tracking_option_id' when calling AccountingApi.delete_tracking_options" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)).sub('{' + 'TrackingOptionID' + '}', CGI.escape(tracking_option_id.to_s)) + local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4565,7 +4565,7 @@ def email_invoice_with_http_info(xero_tenant_id, invoice_id, request_empty, opts fail ArgumentError, "Missing the required parameter 'request_empty' when calling AccountingApi.email_invoice" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Email'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}/Email'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4634,7 +4634,7 @@ def get_account_with_http_info(xero_tenant_id, account_id, opts = {}) fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountingApi.get_account" end # resource path - local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)) + local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4713,7 +4713,7 @@ def get_account_attachment_by_file_name_with_http_info(xero_tenant_id, account_i fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_account_attachment_by_file_name" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4793,7 +4793,7 @@ def get_account_attachment_by_id_with_http_info(xero_tenant_id, account_id, atta fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_account_attachment_by_id" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments/{AttachmentID}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/Accounts/{AccountID}/Attachments/{AttachmentID}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -4861,7 +4861,7 @@ def get_account_attachments_with_http_info(xero_tenant_id, account_id, opts = {} fail ArgumentError, "Missing the required parameter 'account_id' when calling AccountingApi.get_account_attachments" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)) + local_var_path = '/Accounts/{AccountID}/Attachments'.sub('{' + 'AccountID' + '}', account_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5000,7 +5000,7 @@ def get_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, opt fail ArgumentError, "Missing the required parameter 'bank_transaction_id' when calling AccountingApi.get_bank_transaction" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5080,7 +5080,7 @@ def get_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_bank_transaction_attachment_by_file_name" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5160,7 +5160,7 @@ def get_bank_transaction_attachment_by_id_with_http_info(xero_tenant_id, bank_tr fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_bank_transaction_attachment_by_id" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5228,7 +5228,7 @@ def get_bank_transaction_attachments_with_http_info(xero_tenant_id, bank_transac fail ArgumentError, "Missing the required parameter 'bank_transaction_id' when calling AccountingApi.get_bank_transaction_attachments" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5371,7 +5371,7 @@ def get_bank_transactions_history_with_http_info(xero_tenant_id, bank_transactio fail ArgumentError, "Missing the required parameter 'bank_transaction_id' when calling AccountingApi.get_bank_transactions_history" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}/History'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5438,7 +5438,7 @@ def get_bank_transfer_with_http_info(xero_tenant_id, bank_transfer_id, opts = {} fail ArgumentError, "Missing the required parameter 'bank_transfer_id' when calling AccountingApi.get_bank_transfer" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)) + local_var_path = '/BankTransfers/{BankTransferID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5517,7 +5517,7 @@ def get_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, ban fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_bank_transfer_attachment_by_file_name" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5597,7 +5597,7 @@ def get_bank_transfer_attachment_by_id_with_http_info(xero_tenant_id, bank_trans fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_bank_transfer_attachment_by_id" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{AttachmentID}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5665,7 +5665,7 @@ def get_bank_transfer_attachments_with_http_info(xero_tenant_id, bank_transfer_i fail ArgumentError, "Missing the required parameter 'bank_transfer_id' when calling AccountingApi.get_bank_transfer_attachments" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5732,7 +5732,7 @@ def get_bank_transfer_history_with_http_info(xero_tenant_id, bank_transfer_id, o fail ArgumentError, "Missing the required parameter 'bank_transfer_id' when calling AccountingApi.get_bank_transfer_history" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)) + local_var_path = '/BankTransfers/{BankTransferID}/History'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -5869,7 +5869,7 @@ def get_batch_payment_history_with_http_info(xero_tenant_id, batch_payment_id, o fail ArgumentError, "Missing the required parameter 'batch_payment_id' when calling AccountingApi.get_batch_payment_history" end # resource path - local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', CGI.escape(batch_payment_id.to_s)) + local_var_path = '/BatchPayments/{BatchPaymentID}/History'.sub('{' + 'BatchPaymentID' + '}', batch_payment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6006,7 +6006,7 @@ def get_branding_theme_with_http_info(xero_tenant_id, branding_theme_id, opts = fail ArgumentError, "Missing the required parameter 'branding_theme_id' when calling AccountingApi.get_branding_theme" end # resource path - local_var_path = '/BrandingThemes/{BrandingThemeID}'.sub('{' + 'BrandingThemeID' + '}', CGI.escape(branding_theme_id.to_s)) + local_var_path = '/BrandingThemes/{BrandingThemeID}'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6073,7 +6073,7 @@ def get_branding_theme_payment_services_with_http_info(xero_tenant_id, branding_ fail ArgumentError, "Missing the required parameter 'branding_theme_id' when calling AccountingApi.get_branding_theme_payment_services" end # resource path - local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', CGI.escape(branding_theme_id.to_s)) + local_var_path = '/BrandingThemes/{BrandingThemeID}/PaymentServices'.sub('{' + 'BrandingThemeID' + '}', branding_theme_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6201,7 +6201,7 @@ def get_contact_with_http_info(xero_tenant_id, contact_id, opts = {}) fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.get_contact" end # resource path - local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) + local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6280,7 +6280,7 @@ def get_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contact_i fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_contact_attachment_by_file_name" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6360,7 +6360,7 @@ def get_contact_attachment_by_id_with_http_info(xero_tenant_id, contact_id, atta fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_contact_attachment_by_id" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments/{AttachmentID}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/Contacts/{ContactID}/Attachments/{AttachmentID}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6428,7 +6428,7 @@ def get_contact_attachments_with_http_info(xero_tenant_id, contact_id, opts = {} fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.get_contact_attachments" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) + local_var_path = '/Contacts/{ContactID}/Attachments'.sub('{' + 'ContactID' + '}', contact_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6495,7 +6495,7 @@ def get_contact_cis_settings_with_http_info(xero_tenant_id, contact_id, opts = { fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.get_contact_cis_settings" end # resource path - local_var_path = '/Contacts/{ContactID}/CISSettings'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) + local_var_path = '/Contacts/{ContactID}/CISSettings'.sub('{' + 'ContactID' + '}', contact_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6562,7 +6562,7 @@ def get_contact_group_with_http_info(xero_tenant_id, contact_group_id, opts = {} fail ArgumentError, "Missing the required parameter 'contact_group_id' when calling AccountingApi.get_contact_group" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)) + local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6696,7 +6696,7 @@ def get_contact_history_with_http_info(xero_tenant_id, contact_id, opts = {}) fail ArgumentError, "Missing the required parameter 'contact_id' when calling AccountingApi.get_contact_history" end # resource path - local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) + local_var_path = '/Contacts/{ContactID}/History'.sub('{' + 'ContactID' + '}', contact_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6844,7 +6844,7 @@ def get_credit_note_with_http_info(xero_tenant_id, credit_note_id, opts = {}) fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.get_credit_note" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6912,7 +6912,7 @@ def get_credit_note_as_pdf_with_http_info(xero_tenant_id, credit_note_id, opts = fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.get_credit_note_as_pdf" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/pdf'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -6991,7 +6991,7 @@ def get_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, credi fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_credit_note_attachment_by_file_name" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7071,7 +7071,7 @@ def get_credit_note_attachment_by_id_with_http_info(xero_tenant_id, credit_note_ fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_credit_note_attachment_by_id" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7139,7 +7139,7 @@ def get_credit_note_attachments_with_http_info(xero_tenant_id, credit_note_id, o fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.get_credit_note_attachments" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7206,7 +7206,7 @@ def get_credit_note_history_with_http_info(xero_tenant_id, credit_note_id, opts fail ArgumentError, "Missing the required parameter 'credit_note_id' when calling AccountingApi.get_credit_note_history" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}/History'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7416,7 +7416,7 @@ def get_employee_with_http_info(xero_tenant_id, employee_id, opts = {}) fail ArgumentError, "Missing the required parameter 'employee_id' when calling AccountingApi.get_employee" end # resource path - local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', CGI.escape(employee_id.to_s)) + local_var_path = '/Employees/{EmployeeID}'.sub('{' + 'EmployeeID' + '}', employee_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7553,7 +7553,7 @@ def get_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, opts = {} fail ArgumentError, "Missing the required parameter 'expense_claim_id' when calling AccountingApi.get_expense_claim" end # resource path - local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', CGI.escape(expense_claim_id.to_s)) + local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7620,7 +7620,7 @@ def get_expense_claim_history_with_http_info(xero_tenant_id, expense_claim_id, o fail ArgumentError, "Missing the required parameter 'expense_claim_id' when calling AccountingApi.get_expense_claim_history" end # resource path - local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', CGI.escape(expense_claim_id.to_s)) + local_var_path = '/ExpenseClaims/{ExpenseClaimID}/History'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7759,7 +7759,7 @@ def get_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {}) fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_invoice" end # resource path - local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7827,7 +7827,7 @@ def get_invoice_as_pdf_with_http_info(xero_tenant_id, invoice_id, opts = {}) fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_invoice_as_pdf" end # resource path - local_var_path = '/Invoices/{InvoiceID}/pdf'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7906,7 +7906,7 @@ def get_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoice_i fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_invoice_attachment_by_file_name" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -7986,7 +7986,7 @@ def get_invoice_attachment_by_id_with_http_info(xero_tenant_id, invoice_id, atta fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_invoice_attachment_by_id" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8054,7 +8054,7 @@ def get_invoice_attachments_with_http_info(xero_tenant_id, invoice_id, opts = {} fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_invoice_attachments" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}/Attachments'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8121,7 +8121,7 @@ def get_invoice_history_with_http_info(xero_tenant_id, invoice_id, opts = {}) fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_invoice_history" end # resource path - local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}/History'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8345,7 +8345,7 @@ def get_item_with_http_info(xero_tenant_id, item_id, opts = {}) fail ArgumentError, "Missing the required parameter 'item_id' when calling AccountingApi.get_item" end # resource path - local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) + local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8413,7 +8413,7 @@ def get_item_history_with_http_info(xero_tenant_id, item_id, opts = {}) fail ArgumentError, "Missing the required parameter 'item_id' when calling AccountingApi.get_item_history" end # resource path - local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) + local_var_path = '/Items/{ItemID}/History'.sub('{' + 'ItemID' + '}', item_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8553,7 +8553,7 @@ def get_journal_with_http_info(xero_tenant_id, journal_id, opts = {}) fail ArgumentError, "Missing the required parameter 'journal_id' when calling AccountingApi.get_journal" end # resource path - local_var_path = '/Journals/{JournalID}'.sub('{' + 'JournalID' + '}', CGI.escape(journal_id.to_s)) + local_var_path = '/Journals/{JournalID}'.sub('{' + 'JournalID' + '}', journal_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8690,7 +8690,7 @@ def get_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_id, fail ArgumentError, "Missing the required parameter 'linked_transaction_id' when calling AccountingApi.get_linked_transaction" end # resource path - local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', CGI.escape(linked_transaction_id.to_s)) + local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8836,7 +8836,7 @@ def get_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, opts = fail ArgumentError, "Missing the required parameter 'manual_journal_id' when calling AccountingApi.get_manual_journal" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)) + local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8915,7 +8915,7 @@ def get_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, ma fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_manual_journal_attachment_by_file_name" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -8995,7 +8995,7 @@ def get_manual_journal_attachment_by_id_with_http_info(xero_tenant_id, manual_jo fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_manual_journal_attachment_by_id" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{AttachmentID}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{AttachmentID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9063,7 +9063,7 @@ def get_manual_journal_attachments_with_http_info(xero_tenant_id, manual_journal fail ArgumentError, "Missing the required parameter 'manual_journal_id' when calling AccountingApi.get_manual_journal_attachments" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9203,7 +9203,7 @@ def get_online_invoice_with_http_info(xero_tenant_id, invoice_id, opts = {}) fail ArgumentError, "Missing the required parameter 'invoice_id' when calling AccountingApi.get_online_invoice" end # resource path - local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}/OnlineInvoice'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9270,7 +9270,7 @@ def get_organisation_cis_settings_with_http_info(xero_tenant_id, organisation_id fail ArgumentError, "Missing the required parameter 'organisation_id' when calling AccountingApi.get_organisation_cis_settings" end # resource path - local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', CGI.escape(organisation_id.to_s)) + local_var_path = '/Organisation/{OrganisationID}/CISSettings'.sub('{' + 'OrganisationID' + '}', organisation_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9398,7 +9398,7 @@ def get_overpayment_with_http_info(xero_tenant_id, overpayment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'overpayment_id' when calling AccountingApi.get_overpayment" end # resource path - local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', CGI.escape(overpayment_id.to_s)) + local_var_path = '/Overpayments/{OverpaymentID}'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9465,7 +9465,7 @@ def get_overpayment_history_with_http_info(xero_tenant_id, overpayment_id, opts fail ArgumentError, "Missing the required parameter 'overpayment_id' when calling AccountingApi.get_overpayment_history" end # resource path - local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', CGI.escape(overpayment_id.to_s)) + local_var_path = '/Overpayments/{OverpaymentID}/History'.sub('{' + 'OverpaymentID' + '}', overpayment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9608,7 +9608,7 @@ def get_payment_with_http_info(xero_tenant_id, payment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'payment_id' when calling AccountingApi.get_payment" end # resource path - local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', CGI.escape(payment_id.to_s)) + local_var_path = '/Payments/{PaymentID}'.sub('{' + 'PaymentID' + '}', payment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9675,7 +9675,7 @@ def get_payment_history_with_http_info(xero_tenant_id, payment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'payment_id' when calling AccountingApi.get_payment_history" end # resource path - local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', CGI.escape(payment_id.to_s)) + local_var_path = '/Payments/{PaymentID}/History'.sub('{' + 'PaymentID' + '}', payment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9873,7 +9873,7 @@ def get_prepayment_with_http_info(xero_tenant_id, prepayment_id, opts = {}) fail ArgumentError, "Missing the required parameter 'prepayment_id' when calling AccountingApi.get_prepayment" end # resource path - local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', CGI.escape(prepayment_id.to_s)) + local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -9940,7 +9940,7 @@ def get_prepayment_history_with_http_info(xero_tenant_id, prepayment_id, opts = fail ArgumentError, "Missing the required parameter 'prepayment_id' when calling AccountingApi.get_prepayment_history" end # resource path - local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', CGI.escape(prepayment_id.to_s)) + local_var_path = '/Prepayments/{PrepaymentID}/History'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10083,7 +10083,7 @@ def get_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, opts = fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', CGI.escape(purchase_order_id.to_s)) + local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10150,7 +10150,7 @@ def get_purchase_order_by_number_with_http_info(xero_tenant_id, purchase_order_n fail ArgumentError, "Missing the required parameter 'purchase_order_number' when calling AccountingApi.get_purchase_order_by_number" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderNumber}'.sub('{' + 'PurchaseOrderNumber' + '}', CGI.escape(purchase_order_number.to_s)) + local_var_path = '/PurchaseOrders/{PurchaseOrderNumber}'.sub('{' + 'PurchaseOrderNumber' + '}', purchase_order_number.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10217,7 +10217,7 @@ def get_purchase_order_history_with_http_info(xero_tenant_id, purchase_order_id, fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_history" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', CGI.escape(purchase_order_id.to_s)) + local_var_path = '/PurchaseOrders/{PurchaseOrderID}/History'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10367,7 +10367,7 @@ def get_quote_with_http_info(xero_tenant_id, quote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'quote_id' when calling AccountingApi.get_quote" end # resource path - local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) + local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10434,7 +10434,7 @@ def get_quote_as_pdf_with_http_info(xero_tenant_id, quote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'quote_id' when calling AccountingApi.get_quote_as_pdf" end # resource path - local_var_path = '/Quotes/{QuotesID}/pdf'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) + local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10513,7 +10513,7 @@ def get_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id, f fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_quote_attachment_by_file_name" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10593,7 +10593,7 @@ def get_quote_attachment_by_id_with_http_info(xero_tenant_id, quote_id, attachme fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_quote_attachment_by_id" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments/{AttachmentID}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/Quotes/{QuoteID}/Attachments/{AttachmentID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10661,7 +10661,7 @@ def get_quote_attachments_with_http_info(xero_tenant_id, quote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'quote_id' when calling AccountingApi.get_quote_attachments" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) + local_var_path = '/Quotes/{QuoteID}/Attachments'.sub('{' + 'QuoteID' + '}', quote_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10728,7 +10728,7 @@ def get_quote_history_with_http_info(xero_tenant_id, quote_id, opts = {}) fail ArgumentError, "Missing the required parameter 'quote_id' when calling AccountingApi.get_quote_history" end # resource path - local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) + local_var_path = '/Quotes/{QuoteID}/History'.sub('{' + 'QuoteID' + '}', quote_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10885,7 +10885,7 @@ def get_receipt_with_http_info(xero_tenant_id, receipt_id, opts = {}) fail ArgumentError, "Missing the required parameter 'receipt_id' when calling AccountingApi.get_receipt" end # resource path - local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) + local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -10965,7 +10965,7 @@ def get_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receipt_i fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_receipt_attachment_by_file_name" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11045,7 +11045,7 @@ def get_receipt_attachment_by_id_with_http_info(xero_tenant_id, receipt_id, atta fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_receipt_attachment_by_id" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments/{AttachmentID}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/Receipts/{ReceiptID}/Attachments/{AttachmentID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11113,7 +11113,7 @@ def get_receipt_attachments_with_http_info(xero_tenant_id, receipt_id, opts = {} fail ArgumentError, "Missing the required parameter 'receipt_id' when calling AccountingApi.get_receipt_attachments" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) + local_var_path = '/Receipts/{ReceiptID}/Attachments'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11180,7 +11180,7 @@ def get_receipt_history_with_http_info(xero_tenant_id, receipt_id, opts = {}) fail ArgumentError, "Missing the required parameter 'receipt_id' when calling AccountingApi.get_receipt_history" end # resource path - local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) + local_var_path = '/Receipts/{ReceiptID}/History'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11320,7 +11320,7 @@ def get_repeating_invoice_with_http_info(xero_tenant_id, repeating_invoice_id, o fail ArgumentError, "Missing the required parameter 'repeating_invoice_id' when calling AccountingApi.get_repeating_invoice" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11399,7 +11399,7 @@ def get_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_repeating_invoice_attachment_by_file_name" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11479,7 +11479,7 @@ def get_repeating_invoice_attachment_by_id_with_http_info(xero_tenant_id, repeat fail ArgumentError, "Missing the required parameter 'content_type' when calling AccountingApi.get_repeating_invoice_attachment_by_id" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)).sub('{' + 'AttachmentID' + '}', CGI.escape(attachment_id.to_s)) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'AttachmentID' + '}', attachment_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11547,7 +11547,7 @@ def get_repeating_invoice_attachments_with_http_info(xero_tenant_id, repeating_i fail ArgumentError, "Missing the required parameter 'repeating_invoice_id' when calling AccountingApi.get_repeating_invoice_attachments" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11614,7 +11614,7 @@ def get_repeating_invoice_history_with_http_info(xero_tenant_id, repeating_invoi fail ArgumentError, "Missing the required parameter 'repeating_invoice_id' when calling AccountingApi.get_repeating_invoice_history" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/History'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -11902,7 +11902,7 @@ def get_report_ba_sor_gst_with_http_info(xero_tenant_id, report_id, opts = {}) fail ArgumentError, "Missing the required parameter 'report_id' when calling AccountingApi.get_report_ba_sor_gst" end # resource path - local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', CGI.escape(report_id.to_s)) + local_var_path = '/Reports/{ReportID}'.sub('{' + 'ReportID' + '}', report_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -12683,7 +12683,7 @@ def get_tracking_category_with_http_info(xero_tenant_id, tracking_category_id, o fail ArgumentError, "Missing the required parameter 'tracking_category_id' when calling AccountingApi.get_tracking_category" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)) + local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -12750,7 +12750,7 @@ def get_user_with_http_info(xero_tenant_id, user_id, opts = {}) fail ArgumentError, "Missing the required parameter 'user_id' when calling AccountingApi.get_user" end # resource path - local_var_path = '/Users/{UserID}'.sub('{' + 'UserID' + '}', CGI.escape(user_id.to_s)) + local_var_path = '/Users/{UserID}'.sub('{' + 'UserID' + '}', user_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -12893,7 +12893,7 @@ def update_account_with_http_info(xero_tenant_id, account_id, accounts, opts = { fail ArgumentError, "Missing the required parameter 'accounts' when calling AccountingApi.update_account" end # resource path - local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)) + local_var_path = '/Accounts/{AccountID}'.sub('{' + 'AccountID' + '}', account_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -12974,7 +12974,7 @@ def update_account_attachment_by_file_name_with_http_info(xero_tenant_id, accoun fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_account_attachment_by_file_name" end # resource path - local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', CGI.escape(account_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Accounts/{AccountID}/Attachments/{FileName}'.sub('{' + 'AccountID' + '}', account_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13051,7 +13051,7 @@ def update_bank_transaction_with_http_info(xero_tenant_id, bank_transaction_id, fail ArgumentError, "Missing the required parameter 'bank_transactions' when calling AccountingApi.update_bank_transaction" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13133,7 +13133,7 @@ def update_bank_transaction_attachment_by_file_name_with_http_info(xero_tenant_i fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_bank_transaction_attachment_by_file_name" end # resource path - local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', CGI.escape(bank_transaction_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'.sub('{' + 'BankTransactionID' + '}', bank_transaction_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13212,7 +13212,7 @@ def update_bank_transfer_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_bank_transfer_attachment_by_file_name" end # resource path - local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', CGI.escape(bank_transfer_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/BankTransfers/{BankTransferID}/Attachments/{FileName}'.sub('{' + 'BankTransferID' + '}', bank_transfer_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13285,7 +13285,7 @@ def update_contact_with_http_info(xero_tenant_id, contact_id, contacts, opts = { fail ArgumentError, "Missing the required parameter 'contacts' when calling AccountingApi.update_contact" end # resource path - local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)) + local_var_path = '/Contacts/{ContactID}'.sub('{' + 'ContactID' + '}', contact_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13364,7 +13364,7 @@ def update_contact_attachment_by_file_name_with_http_info(xero_tenant_id, contac fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_contact_attachment_by_file_name" end # resource path - local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', CGI.escape(contact_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Contacts/{ContactID}/Attachments/{FileName}'.sub('{' + 'ContactID' + '}', contact_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13439,7 +13439,7 @@ def update_contact_group_with_http_info(xero_tenant_id, contact_group_id, contac fail ArgumentError, "Missing the required parameter 'contact_groups' when calling AccountingApi.update_contact_group" end # resource path - local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', CGI.escape(contact_group_id.to_s)) + local_var_path = '/ContactGroups/{ContactGroupID}'.sub('{' + 'ContactGroupID' + '}', contact_group_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13516,7 +13516,7 @@ def update_credit_note_with_http_info(xero_tenant_id, credit_note_id, credit_not fail ArgumentError, "Missing the required parameter 'credit_notes' when calling AccountingApi.update_credit_note" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13598,7 +13598,7 @@ def update_credit_note_attachment_by_file_name_with_http_info(xero_tenant_id, cr fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_credit_note_attachment_by_file_name" end # resource path - local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', CGI.escape(credit_note_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'.sub('{' + 'CreditNoteID' + '}', credit_note_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13673,7 +13673,7 @@ def update_expense_claim_with_http_info(xero_tenant_id, expense_claim_id, expens fail ArgumentError, "Missing the required parameter 'expense_claims' when calling AccountingApi.update_expense_claim" end # resource path - local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', CGI.escape(expense_claim_id.to_s)) + local_var_path = '/ExpenseClaims/{ExpenseClaimID}'.sub('{' + 'ExpenseClaimID' + '}', expense_claim_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13750,7 +13750,7 @@ def update_invoice_with_http_info(xero_tenant_id, invoice_id, invoices, opts = { fail ArgumentError, "Missing the required parameter 'invoices' when calling AccountingApi.update_invoice" end # resource path - local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)) + local_var_path = '/Invoices/{InvoiceID}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13832,7 +13832,7 @@ def update_invoice_attachment_by_file_name_with_http_info(xero_tenant_id, invoic fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_invoice_attachment_by_file_name" end # resource path - local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', CGI.escape(invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Invoices/{InvoiceID}/Attachments/{FileName}'.sub('{' + 'InvoiceID' + '}', invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13909,7 +13909,7 @@ def update_item_with_http_info(xero_tenant_id, item_id, items, opts = {}) fail ArgumentError, "Missing the required parameter 'items' when calling AccountingApi.update_item" end # resource path - local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', CGI.escape(item_id.to_s)) + local_var_path = '/Items/{ItemID}'.sub('{' + 'ItemID' + '}', item_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -13985,7 +13985,7 @@ def update_linked_transaction_with_http_info(xero_tenant_id, linked_transaction_ fail ArgumentError, "Missing the required parameter 'linked_transactions' when calling AccountingApi.update_linked_transaction" end # resource path - local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', CGI.escape(linked_transaction_id.to_s)) + local_var_path = '/LinkedTransactions/{LinkedTransactionID}'.sub('{' + 'LinkedTransactionID' + '}', linked_transaction_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -14060,7 +14060,7 @@ def update_manual_journal_with_http_info(xero_tenant_id, manual_journal_id, manu fail ArgumentError, "Missing the required parameter 'manual_journals' when calling AccountingApi.update_manual_journal" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)) + local_var_path = '/ManualJournals/{ManualJournalID}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -14141,7 +14141,7 @@ def update_manual_journal_attachment_by_file_name_with_http_info(xero_tenant_id, fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_manual_journal_attachment_by_file_name" end # resource path - local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', CGI.escape(manual_journal_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'.sub('{' + 'ManualJournalID' + '}', manual_journal_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -14876,7 +14876,7 @@ def update_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, purc fail ArgumentError, "Missing the required parameter 'purchase_orders' when calling AccountingApi.update_purchase_order" end # resource path - local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', CGI.escape(purchase_order_id.to_s)) + local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -14951,7 +14951,7 @@ def update_quote_with_http_info(xero_tenant_id, quote_id, quotes, opts = {}) fail ArgumentError, "Missing the required parameter 'quotes' when calling AccountingApi.update_quote" end # resource path - local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)) + local_var_path = '/Quotes/{QuoteID}'.sub('{' + 'QuoteID' + '}', quote_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -15032,7 +15032,7 @@ def update_quote_attachment_by_file_name_with_http_info(xero_tenant_id, quote_id fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_quote_attachment_by_file_name" end # resource path - local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', CGI.escape(quote_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Quotes/{QuoteID}/Attachments/{FileName}'.sub('{' + 'QuoteID' + '}', quote_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -15109,7 +15109,7 @@ def update_receipt_with_http_info(xero_tenant_id, receipt_id, receipts, opts = { fail ArgumentError, "Missing the required parameter 'receipts' when calling AccountingApi.update_receipt" end # resource path - local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)) + local_var_path = '/Receipts/{ReceiptID}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -15191,7 +15191,7 @@ def update_receipt_attachment_by_file_name_with_http_info(xero_tenant_id, receip fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_receipt_attachment_by_file_name" end # resource path - local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', CGI.escape(receipt_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/Receipts/{ReceiptID}/Attachments/{FileName}'.sub('{' + 'ReceiptID' + '}', receipt_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -15272,7 +15272,7 @@ def update_repeating_invoice_attachment_by_file_name_with_http_info(xero_tenant_ fail ArgumentError, "Missing the required parameter 'body' when calling AccountingApi.update_repeating_invoice_attachment_by_file_name" end # resource path - local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', CGI.escape(repeating_invoice_id.to_s)).sub('{' + 'FileName' + '}', CGI.escape(file_name.to_s)) + local_var_path = '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'.sub('{' + 'RepeatingInvoiceID' + '}', repeating_invoice_id.to_s).sub('{' + 'FileName' + '}', file_name.to_s) # query parameters query_params = opts[:query_params] || {} @@ -15416,7 +15416,7 @@ def update_tracking_category_with_http_info(xero_tenant_id, tracking_category_id fail ArgumentError, "Missing the required parameter 'tracking_category' when calling AccountingApi.update_tracking_category" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)) + local_var_path = '/TrackingCategories/{TrackingCategoryID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s) # query parameters query_params = opts[:query_params] || {} @@ -15497,7 +15497,7 @@ def update_tracking_options_with_http_info(xero_tenant_id, tracking_category_id, fail ArgumentError, "Missing the required parameter 'tracking_option' when calling AccountingApi.update_tracking_options" end # resource path - local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', CGI.escape(tracking_category_id.to_s)).sub('{' + 'TrackingOptionID' + '}', CGI.escape(tracking_option_id.to_s)) + local_var_path = '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'.sub('{' + 'TrackingCategoryID' + '}', tracking_category_id.to_s).sub('{' + 'TrackingOptionID' + '}', tracking_option_id.to_s) # query parameters query_params = opts[:query_params] || {} diff --git a/accounting/lib/xero-ruby/api_client.rb b/accounting/lib/xero-ruby/api_client.rb index 077cf09b..aa1813e4 100644 --- a/accounting/lib/xero-ruby/api_client.rb +++ b/accounting/lib/xero-ruby/api_client.rb @@ -29,14 +29,42 @@ class ApiClient # Initializes the ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default def initialize(config = Configuration.default) + @client_id = "902DD32276574ED199639D9226A425B1" + @client_secret = 'PeNYDifbqi4Q3l9mG_kTg3LdLZ7RIUFpOOas-16sqkPV_e5C' + @redirect_uri = 'http://localhost:5000/callback' + @token_url = 'https://identity.xero.com/connect/token' + @login_url = 'https://login.xero.com/identity/connect/authorize' + @config = config - @user_agent = "OpenAPI-Generator/#{VERSION}/ruby" + @user_agent = "xero-ruby-#{VERSION}" @default_headers = { 'Content-Type' => 'application/json', 'User-Agent' => @user_agent } end + def authorization_url + scopes = "openid profile email accounting.settings accounting.reports.read accounting.journals.read accounting.contacts accounting.attachments accounting.transactions assets assets.read projects projects.read offline_access"; + url = "#{@login_url}?response_type=code&client_id=#{@config[:client_id]}&redirect_uri=#{@config[:redirect_uri]}&scope=#{scopes}" + return url + end + + def get_token_set_from_callback(params) + data = { + grant_type: 'authorization_code', + code: params['code'], + redirect_uri: @redirect_uri + } + response = Faraday.post(@token_url) do |req| + req.headers['Authorization'] = "Basic " + Base64.strict_encode64("#{@client_id}:#{@client_secret}") + req.headers['Content-Type'] = 'application/x-www-form-urlencoded' + req.body = URI.encode_www_form(data) + end + body = JSON.parse(response.body) + XeroRuby.configure.access_token = body['access_token'] + return body + end + def self.default @@default ||= ApiClient.new end @@ -285,13 +313,11 @@ def download_file(request) tempfile.write(chunk) end request.on_complete do |response| - if tempfile - tempfile.close - @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ - "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ - "will be deleted automatically with GC. It's also recommended to delete the temp file "\ - "explicitly with `tempfile.delete`" - end + tempfile.close if tempfile + @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ + "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ + "will be deleted automatically with GC. It's also recommended to delete the temp file "\ + "explicitly with `tempfile.delete`" end end diff --git a/accounting/lib/xero-ruby/models/account.rb b/accounting/lib/xero-ruby/models/account.rb index 587283f6..bbbe09a4 100644 --- a/accounting/lib/xero-ruby/models/account.rb +++ b/accounting/lib/xero-ruby/models/account.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -146,12 +147,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -416,9 +411,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -468,11 +463,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -495,5 +486,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/account_type.rb b/accounting/lib/xero-ruby/models/account_type.rb index 9d67b8af..3eee165f 100644 --- a/accounting/lib/xero-ruby/models/account_type.rb +++ b/accounting/lib/xero-ruby/models/account_type.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/accounts.rb b/accounting/lib/xero-ruby/models/accounts.rb index cff42f48..183b7ed4 100644 --- a/accounting/lib/xero-ruby/models/accounts.rb +++ b/accounting/lib/xero-ruby/models/accounts.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/accounts_payable.rb b/accounting/lib/xero-ruby/models/accounts_payable.rb index ab9c67c0..8090e085 100644 --- a/accounting/lib/xero-ruby/models/accounts_payable.rb +++ b/accounting/lib/xero-ruby/models/accounts_payable.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -34,12 +35,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -132,9 +127,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -184,11 +179,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -211,5 +202,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/accounts_receivable.rb b/accounting/lib/xero-ruby/models/accounts_receivable.rb index 6d0f6210..e6f4e083 100644 --- a/accounting/lib/xero-ruby/models/accounts_receivable.rb +++ b/accounting/lib/xero-ruby/models/accounts_receivable.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -34,12 +35,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -132,9 +127,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -184,11 +179,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -211,5 +202,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/address.rb b/accounting/lib/xero-ruby/models/address.rb index ca71157f..a01ea34b 100644 --- a/accounting/lib/xero-ruby/models/address.rb +++ b/accounting/lib/xero-ruby/models/address.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -98,12 +99,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -383,9 +378,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -435,11 +430,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -462,5 +453,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/allocation.rb b/accounting/lib/xero-ruby/models/allocation.rb index 2ded5182..18be4bbb 100644 --- a/accounting/lib/xero-ruby/models/allocation.rb +++ b/accounting/lib/xero-ruby/models/allocation.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -40,12 +41,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -158,9 +153,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -210,11 +205,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -237,5 +228,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/allocations.rb b/accounting/lib/xero-ruby/models/allocations.rb index f6af5337..c3f65a0e 100644 --- a/accounting/lib/xero-ruby/models/allocations.rb +++ b/accounting/lib/xero-ruby/models/allocations.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/attachment.rb b/accounting/lib/xero-ruby/models/attachment.rb index 4c160064..a17eda1c 100644 --- a/accounting/lib/xero-ruby/models/attachment.rb +++ b/accounting/lib/xero-ruby/models/attachment.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -56,12 +57,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -174,9 +169,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -226,11 +221,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -253,5 +244,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/attachments.rb b/accounting/lib/xero-ruby/models/attachments.rb index 180cd609..92a347df 100644 --- a/accounting/lib/xero-ruby/models/attachments.rb +++ b/accounting/lib/xero-ruby/models/attachments.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/balances.rb b/accounting/lib/xero-ruby/models/balances.rb index 356fdf34..5240934e 100644 --- a/accounting/lib/xero-ruby/models/balances.rb +++ b/accounting/lib/xero-ruby/models/balances.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -35,12 +36,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -133,9 +128,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -185,11 +180,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -212,5 +203,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/bank_transaction.rb b/accounting/lib/xero-ruby/models/bank_transaction.rb index d0e3b2eb..cea151d9 100644 --- a/accounting/lib/xero-ruby/models/bank_transaction.rb +++ b/accounting/lib/xero-ruby/models/bank_transaction.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -154,12 +155,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -402,9 +397,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -454,11 +449,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -481,5 +472,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/bank_transactions.rb b/accounting/lib/xero-ruby/models/bank_transactions.rb index e797d542..dfb83c14 100644 --- a/accounting/lib/xero-ruby/models/bank_transactions.rb +++ b/accounting/lib/xero-ruby/models/bank_transactions.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/bank_transfer.rb b/accounting/lib/xero-ruby/models/bank_transfer.rb index b848cac1..d604e5b0 100644 --- a/accounting/lib/xero-ruby/models/bank_transfer.rb +++ b/accounting/lib/xero-ruby/models/bank_transfer.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -79,12 +80,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -241,9 +236,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -293,11 +288,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -320,5 +311,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/bank_transfers.rb b/accounting/lib/xero-ruby/models/bank_transfers.rb index 15b46698..395260b7 100644 --- a/accounting/lib/xero-ruby/models/bank_transfers.rb +++ b/accounting/lib/xero-ruby/models/bank_transfers.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/batch_payment.rb b/accounting/lib/xero-ruby/models/batch_payment.rb index d58729e2..4cfe6f89 100644 --- a/accounting/lib/xero-ruby/models/batch_payment.rb +++ b/accounting/lib/xero-ruby/models/batch_payment.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -126,12 +127,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -395,9 +390,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -447,11 +442,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -474,5 +465,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/batch_payment_details.rb b/accounting/lib/xero-ruby/models/batch_payment_details.rb index 101d0f90..bda752d9 100644 --- a/accounting/lib/xero-ruby/models/batch_payment_details.rb +++ b/accounting/lib/xero-ruby/models/batch_payment_details.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -52,12 +53,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -210,9 +205,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -262,11 +257,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -289,5 +280,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/batch_payments.rb b/accounting/lib/xero-ruby/models/batch_payments.rb index 05da4c1c..6b0b400c 100644 --- a/accounting/lib/xero-ruby/models/batch_payments.rb +++ b/accounting/lib/xero-ruby/models/batch_payments.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/bill.rb b/accounting/lib/xero-ruby/models/bill.rb index f7c18ea2..9604a2bf 100644 --- a/accounting/lib/xero-ruby/models/bill.rb +++ b/accounting/lib/xero-ruby/models/bill.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -35,12 +36,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -133,9 +128,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -185,11 +180,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -212,5 +203,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/branding_theme.rb b/accounting/lib/xero-ruby/models/branding_theme.rb index 62aa55bb..248a4701 100644 --- a/accounting/lib/xero-ruby/models/branding_theme.rb +++ b/accounting/lib/xero-ruby/models/branding_theme.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -78,12 +79,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -208,9 +203,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -260,11 +255,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -287,5 +278,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/branding_themes.rb b/accounting/lib/xero-ruby/models/branding_themes.rb index 2f9a6766..3caa616a 100644 --- a/accounting/lib/xero-ruby/models/branding_themes.rb +++ b/accounting/lib/xero-ruby/models/branding_themes.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/cis_org_setting.rb b/accounting/lib/xero-ruby/models/cis_org_setting.rb index 16d90071..6afcdc53 100644 --- a/accounting/lib/xero-ruby/models/cis_org_setting.rb +++ b/accounting/lib/xero-ruby/models/cis_org_setting.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -41,12 +42,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -144,9 +139,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -196,11 +191,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -223,5 +214,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/cis_setting.rb b/accounting/lib/xero-ruby/models/cis_setting.rb index 0ea01530..57937e2b 100644 --- a/accounting/lib/xero-ruby/models/cis_setting.rb +++ b/accounting/lib/xero-ruby/models/cis_setting.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -36,12 +37,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -134,9 +129,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -186,11 +181,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -213,5 +204,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/cis_settings.rb b/accounting/lib/xero-ruby/models/cis_settings.rb index ec725d2f..f3d1dd6a 100644 --- a/accounting/lib/xero-ruby/models/cis_settings.rb +++ b/accounting/lib/xero-ruby/models/cis_settings.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/contact.rb b/accounting/lib/xero-ruby/models/contact.rb index efa58b98..b46353f2 100644 --- a/accounting/lib/xero-ruby/models/contact.rb +++ b/accounting/lib/xero-ruby/models/contact.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -238,12 +239,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -656,9 +651,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -708,11 +703,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -735,5 +726,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/contact_group.rb b/accounting/lib/xero-ruby/models/contact_group.rb index c48850af..05eb33b8 100644 --- a/accounting/lib/xero-ruby/models/contact_group.rb +++ b/accounting/lib/xero-ruby/models/contact_group.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -68,12 +69,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -190,9 +185,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -242,11 +237,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -269,5 +260,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/contact_groups.rb b/accounting/lib/xero-ruby/models/contact_groups.rb index c60164ed..b2691474 100644 --- a/accounting/lib/xero-ruby/models/contact_groups.rb +++ b/accounting/lib/xero-ruby/models/contact_groups.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/contact_person.rb b/accounting/lib/xero-ruby/models/contact_person.rb index 82a98ebc..6dca719c 100644 --- a/accounting/lib/xero-ruby/models/contact_person.rb +++ b/accounting/lib/xero-ruby/models/contact_person.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -46,12 +47,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -154,9 +149,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -206,11 +201,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -233,5 +224,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/contacts.rb b/accounting/lib/xero-ruby/models/contacts.rb index 34af6022..60083033 100644 --- a/accounting/lib/xero-ruby/models/contacts.rb +++ b/accounting/lib/xero-ruby/models/contacts.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/country_code.rb b/accounting/lib/xero-ruby/models/country_code.rb index 94f28696..817d208b 100644 --- a/accounting/lib/xero-ruby/models/country_code.rb +++ b/accounting/lib/xero-ruby/models/country_code.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/credit_note.rb b/accounting/lib/xero-ruby/models/credit_note.rb index 6816227e..49ca75b8 100644 --- a/accounting/lib/xero-ruby/models/credit_note.rb +++ b/accounting/lib/xero-ruby/models/credit_note.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -175,12 +176,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -427,9 +422,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -479,11 +474,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -506,5 +497,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/credit_notes.rb b/accounting/lib/xero-ruby/models/credit_notes.rb index 3c2f7d35..f8b07c24 100644 --- a/accounting/lib/xero-ruby/models/credit_notes.rb +++ b/accounting/lib/xero-ruby/models/credit_notes.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/currencies.rb b/accounting/lib/xero-ruby/models/currencies.rb index c53fde8b..f90bd527 100644 --- a/accounting/lib/xero-ruby/models/currencies.rb +++ b/accounting/lib/xero-ruby/models/currencies.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/currency.rb b/accounting/lib/xero-ruby/models/currency.rb index 1a19a15e..149a11b4 100644 --- a/accounting/lib/xero-ruby/models/currency.rb +++ b/accounting/lib/xero-ruby/models/currency.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -35,12 +36,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -133,9 +128,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -185,11 +180,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -212,5 +203,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/currency_code.rb b/accounting/lib/xero-ruby/models/currency_code.rb index 7c09f489..38036713 100644 --- a/accounting/lib/xero-ruby/models/currency_code.rb +++ b/accounting/lib/xero-ruby/models/currency_code.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/element.rb b/accounting/lib/xero-ruby/models/element.rb index 32f6cf3b..26d5c7db 100644 --- a/accounting/lib/xero-ruby/models/element.rb +++ b/accounting/lib/xero-ruby/models/element.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -60,12 +61,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -190,9 +185,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -242,11 +237,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -269,5 +260,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/employee.rb b/accounting/lib/xero-ruby/models/employee.rb index 1a88083c..24b89e66 100644 --- a/accounting/lib/xero-ruby/models/employee.rb +++ b/accounting/lib/xero-ruby/models/employee.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -86,12 +87,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -258,9 +253,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -310,11 +305,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -337,5 +328,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/employees.rb b/accounting/lib/xero-ruby/models/employees.rb index 850432d5..366c2119 100644 --- a/accounting/lib/xero-ruby/models/employees.rb +++ b/accounting/lib/xero-ruby/models/employees.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/error.rb b/accounting/lib/xero-ruby/models/error.rb index 0a67beab..71d3fa79 100644 --- a/accounting/lib/xero-ruby/models/error.rb +++ b/accounting/lib/xero-ruby/models/error.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -46,12 +47,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -156,9 +151,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -208,11 +203,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -235,5 +226,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/expense_claim.rb b/accounting/lib/xero-ruby/models/expense_claim.rb index 668caca2..955ec748 100644 --- a/accounting/lib/xero-ruby/models/expense_claim.rb +++ b/accounting/lib/xero-ruby/models/expense_claim.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -106,15 +107,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - :'receipts', - :'payment_due_date', - :'receipt_id' - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -273,9 +265,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -325,11 +317,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -352,5 +340,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/expense_claims.rb b/accounting/lib/xero-ruby/models/expense_claims.rb index fcb7a433..f9b90c7a 100644 --- a/accounting/lib/xero-ruby/models/expense_claims.rb +++ b/accounting/lib/xero-ruby/models/expense_claims.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/external_link.rb b/accounting/lib/xero-ruby/models/external_link.rb index 450b773c..437dfb0e 100644 --- a/accounting/lib/xero-ruby/models/external_link.rb +++ b/accounting/lib/xero-ruby/models/external_link.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -62,12 +63,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -177,9 +172,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -229,11 +224,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -256,5 +247,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/history_record.rb b/accounting/lib/xero-ruby/models/history_record.rb index 7943f9b4..cc6690e7 100644 --- a/accounting/lib/xero-ruby/models/history_record.rb +++ b/accounting/lib/xero-ruby/models/history_record.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -46,12 +47,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -154,9 +149,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -206,11 +201,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -233,5 +224,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/history_records.rb b/accounting/lib/xero-ruby/models/history_records.rb index 216ed8a1..3f27c7c6 100644 --- a/accounting/lib/xero-ruby/models/history_records.rb +++ b/accounting/lib/xero-ruby/models/history_records.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/invoice.rb b/accounting/lib/xero-ruby/models/invoice.rb index 8a60cd9f..0555cf21 100644 --- a/accounting/lib/xero-ruby/models/invoice.rb +++ b/accounting/lib/xero-ruby/models/invoice.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -235,12 +236,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -585,9 +580,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -637,11 +632,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -664,5 +655,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/invoice_reminder.rb b/accounting/lib/xero-ruby/models/invoice_reminder.rb index 39e9f23b..63d20d6a 100644 --- a/accounting/lib/xero-ruby/models/invoice_reminder.rb +++ b/accounting/lib/xero-ruby/models/invoice_reminder.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -31,12 +32,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -124,9 +119,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -176,11 +171,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -203,5 +194,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/invoice_reminders.rb b/accounting/lib/xero-ruby/models/invoice_reminders.rb index c48543f0..d9ef3d04 100644 --- a/accounting/lib/xero-ruby/models/invoice_reminders.rb +++ b/accounting/lib/xero-ruby/models/invoice_reminders.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/invoices.rb b/accounting/lib/xero-ruby/models/invoices.rb index 04faa866..265468be 100644 --- a/accounting/lib/xero-ruby/models/invoices.rb +++ b/accounting/lib/xero-ruby/models/invoices.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/item.rb b/accounting/lib/xero-ruby/models/item.rb index 8854e3c7..c675c150 100644 --- a/accounting/lib/xero-ruby/models/item.rb +++ b/accounting/lib/xero-ruby/models/item.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -104,12 +105,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -343,9 +338,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -395,11 +390,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -422,5 +413,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/items.rb b/accounting/lib/xero-ruby/models/items.rb index 8e5bb1b0..ca30b993 100644 --- a/accounting/lib/xero-ruby/models/items.rb +++ b/accounting/lib/xero-ruby/models/items.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/journal.rb b/accounting/lib/xero-ruby/models/journal.rb index 751fa89f..ab2b57bf 100644 --- a/accounting/lib/xero-ruby/models/journal.rb +++ b/accounting/lib/xero-ruby/models/journal.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -88,12 +89,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -230,9 +225,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -282,11 +277,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -309,5 +300,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/journal_line.rb b/accounting/lib/xero-ruby/models/journal_line.rb index 1bceebc4..01c0c076 100644 --- a/accounting/lib/xero-ruby/models/journal_line.rb +++ b/accounting/lib/xero-ruby/models/journal_line.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -85,12 +86,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -235,9 +230,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -287,11 +282,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -314,5 +305,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/journals.rb b/accounting/lib/xero-ruby/models/journals.rb index bbf8c6af..34ca54f9 100644 --- a/accounting/lib/xero-ruby/models/journals.rb +++ b/accounting/lib/xero-ruby/models/journals.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/line_amount_types.rb b/accounting/lib/xero-ruby/models/line_amount_types.rb index 87a35d9b..11a8be84 100644 --- a/accounting/lib/xero-ruby/models/line_amount_types.rb +++ b/accounting/lib/xero-ruby/models/line_amount_types.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/line_item.rb b/accounting/lib/xero-ruby/models/line_item.rb index e378be21..e56e760b 100644 --- a/accounting/lib/xero-ruby/models/line_item.rb +++ b/accounting/lib/xero-ruby/models/line_item.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -91,12 +92,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -246,9 +241,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -298,11 +293,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -325,5 +316,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/line_item_tracking.rb b/accounting/lib/xero-ruby/models/line_item_tracking.rb index 52f5a1f1..40474d09 100644 --- a/accounting/lib/xero-ruby/models/line_item_tracking.rb +++ b/accounting/lib/xero-ruby/models/line_item_tracking.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -46,12 +47,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -169,9 +164,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -221,11 +216,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -248,5 +239,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/linked_transaction.rb b/accounting/lib/xero-ruby/models/linked_transaction.rb index 7d5ef6f2..d4a8225c 100644 --- a/accounting/lib/xero-ruby/models/linked_transaction.rb +++ b/accounting/lib/xero-ruby/models/linked_transaction.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -103,12 +104,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -284,9 +279,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -336,11 +331,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -363,5 +354,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/linked_transactions.rb b/accounting/lib/xero-ruby/models/linked_transactions.rb index 7d04bebe..9b42ab06 100644 --- a/accounting/lib/xero-ruby/models/linked_transactions.rb +++ b/accounting/lib/xero-ruby/models/linked_transactions.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/manual_journal.rb b/accounting/lib/xero-ruby/models/manual_journal.rb index 0f31c3a0..fbad1179 100644 --- a/accounting/lib/xero-ruby/models/manual_journal.rb +++ b/accounting/lib/xero-ruby/models/manual_journal.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -117,12 +118,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -302,9 +297,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -354,11 +349,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -381,5 +372,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/manual_journal_line.rb b/accounting/lib/xero-ruby/models/manual_journal_line.rb index bb1ecbf2..c3b0470f 100644 --- a/accounting/lib/xero-ruby/models/manual_journal_line.rb +++ b/accounting/lib/xero-ruby/models/manual_journal_line.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -61,12 +62,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -186,9 +181,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -238,11 +233,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -265,5 +256,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/manual_journals.rb b/accounting/lib/xero-ruby/models/manual_journals.rb index 86bf9e55..bf3d593c 100644 --- a/accounting/lib/xero-ruby/models/manual_journals.rb +++ b/accounting/lib/xero-ruby/models/manual_journals.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/online_invoice.rb b/accounting/lib/xero-ruby/models/online_invoice.rb index 6c045262..f1101e01 100644 --- a/accounting/lib/xero-ruby/models/online_invoice.rb +++ b/accounting/lib/xero-ruby/models/online_invoice.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -31,12 +32,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -124,9 +119,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -176,11 +171,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -203,5 +194,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/online_invoices.rb b/accounting/lib/xero-ruby/models/online_invoices.rb index 42a414e6..80680bfe 100644 --- a/accounting/lib/xero-ruby/models/online_invoices.rb +++ b/accounting/lib/xero-ruby/models/online_invoices.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/organisation.rb b/accounting/lib/xero-ruby/models/organisation.rb index 6efaa2cf..c377bee2 100644 --- a/accounting/lib/xero-ruby/models/organisation.rb +++ b/accounting/lib/xero-ruby/models/organisation.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -204,12 +205,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -542,9 +537,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -594,11 +589,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -621,5 +612,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/organisations.rb b/accounting/lib/xero-ruby/models/organisations.rb index f7292f91..30045188 100644 --- a/accounting/lib/xero-ruby/models/organisations.rb +++ b/accounting/lib/xero-ruby/models/organisations.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/overpayment.rb b/accounting/lib/xero-ruby/models/overpayment.rb index 4d8e021f..3b1b169f 100644 --- a/accounting/lib/xero-ruby/models/overpayment.rb +++ b/accounting/lib/xero-ruby/models/overpayment.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -140,12 +141,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -357,9 +352,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -409,11 +404,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -436,5 +427,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/overpayments.rb b/accounting/lib/xero-ruby/models/overpayments.rb index d2aaddbd..d3715b31 100644 --- a/accounting/lib/xero-ruby/models/overpayments.rb +++ b/accounting/lib/xero-ruby/models/overpayments.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/payment.rb b/accounting/lib/xero-ruby/models/payment.rb index c82557cb..20e509a7 100644 --- a/accounting/lib/xero-ruby/models/payment.rb +++ b/accounting/lib/xero-ruby/models/payment.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -158,12 +159,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -387,9 +382,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -439,11 +434,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -466,5 +457,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/payment_delete.rb b/accounting/lib/xero-ruby/models/payment_delete.rb index 7d6415dc..68e1f606 100644 --- a/accounting/lib/xero-ruby/models/payment_delete.rb +++ b/accounting/lib/xero-ruby/models/payment_delete.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -31,12 +32,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -131,9 +126,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -183,11 +178,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -210,5 +201,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/payment_service.rb b/accounting/lib/xero-ruby/models/payment_service.rb index 44729d13..6265a2dc 100644 --- a/accounting/lib/xero-ruby/models/payment_service.rb +++ b/accounting/lib/xero-ruby/models/payment_service.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -56,12 +57,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -176,9 +171,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -228,11 +223,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -255,5 +246,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/payment_services.rb b/accounting/lib/xero-ruby/models/payment_services.rb index 86514719..05a7512a 100644 --- a/accounting/lib/xero-ruby/models/payment_services.rb +++ b/accounting/lib/xero-ruby/models/payment_services.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/payment_term.rb b/accounting/lib/xero-ruby/models/payment_term.rb index 572fafb1..2f2a0974 100644 --- a/accounting/lib/xero-ruby/models/payment_term.rb +++ b/accounting/lib/xero-ruby/models/payment_term.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -34,12 +35,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -132,9 +127,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -184,11 +179,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -211,5 +202,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/payment_term_type.rb b/accounting/lib/xero-ruby/models/payment_term_type.rb index 15a4bceb..f29b4e5a 100644 --- a/accounting/lib/xero-ruby/models/payment_term_type.rb +++ b/accounting/lib/xero-ruby/models/payment_term_type.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/payments.rb b/accounting/lib/xero-ruby/models/payments.rb index 45ceeed6..d7e3341a 100644 --- a/accounting/lib/xero-ruby/models/payments.rb +++ b/accounting/lib/xero-ruby/models/payments.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/phone.rb b/accounting/lib/xero-ruby/models/phone.rb index fc698169..43f92864 100644 --- a/accounting/lib/xero-ruby/models/phone.rb +++ b/accounting/lib/xero-ruby/models/phone.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -67,12 +68,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -232,9 +227,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -284,11 +279,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -311,5 +302,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/prepayment.rb b/accounting/lib/xero-ruby/models/prepayment.rb index e138fa69..af4e266b 100644 --- a/accounting/lib/xero-ruby/models/prepayment.rb +++ b/accounting/lib/xero-ruby/models/prepayment.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -140,12 +141,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -355,9 +350,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -407,11 +402,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -434,5 +425,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/prepayments.rb b/accounting/lib/xero-ruby/models/prepayments.rb index fa223bfb..602b5613 100644 --- a/accounting/lib/xero-ruby/models/prepayments.rb +++ b/accounting/lib/xero-ruby/models/prepayments.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/purchase.rb b/accounting/lib/xero-ruby/models/purchase.rb index 31f15350..6f574ef5 100644 --- a/accounting/lib/xero-ruby/models/purchase.rb +++ b/accounting/lib/xero-ruby/models/purchase.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -46,12 +47,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -154,9 +149,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -206,11 +201,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -233,5 +224,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/purchase_order.rb b/accounting/lib/xero-ruby/models/purchase_order.rb index a1b9021a..e345d59a 100644 --- a/accounting/lib/xero-ruby/models/purchase_order.rb +++ b/accounting/lib/xero-ruby/models/purchase_order.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -185,12 +186,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -435,9 +430,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -487,11 +482,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -514,5 +505,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/purchase_orders.rb b/accounting/lib/xero-ruby/models/purchase_orders.rb index 61d68413..7872fc2c 100644 --- a/accounting/lib/xero-ruby/models/purchase_orders.rb +++ b/accounting/lib/xero-ruby/models/purchase_orders.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/quote.rb b/accounting/lib/xero-ruby/models/quote.rb index bf2456a8..0e1ea93e 100644 --- a/accounting/lib/xero-ruby/models/quote.rb +++ b/accounting/lib/xero-ruby/models/quote.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -127,17 +128,11 @@ def self.openapi_types :'title' => :'String', :'summary' => :'String', :'branding_theme_id' => :'String', - :'updated_date_utc' => :'String', + :'updated_date_utc' => :'DateTime', :'line_amount_types' => :'QuoteLineAmountTypes' } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -407,9 +402,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -459,11 +454,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -486,5 +477,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/quote_line_amount_types.rb b/accounting/lib/xero-ruby/models/quote_line_amount_types.rb index cce4bf30..f40e7849 100644 --- a/accounting/lib/xero-ruby/models/quote_line_amount_types.rb +++ b/accounting/lib/xero-ruby/models/quote_line_amount_types.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/quote_status_codes.rb b/accounting/lib/xero-ruby/models/quote_status_codes.rb index b2adc24d..d1cc4621 100644 --- a/accounting/lib/xero-ruby/models/quote_status_codes.rb +++ b/accounting/lib/xero-ruby/models/quote_status_codes.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/quotes.rb b/accounting/lib/xero-ruby/models/quotes.rb index bb12ee49..bf6642ab 100644 --- a/accounting/lib/xero-ruby/models/quotes.rb +++ b/accounting/lib/xero-ruby/models/quotes.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/receipt.rb b/accounting/lib/xero-ruby/models/receipt.rb index 7cd3aa24..227aed46 100644 --- a/accounting/lib/xero-ruby/models/receipt.rb +++ b/accounting/lib/xero-ruby/models/receipt.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -134,12 +135,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -334,9 +329,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -386,11 +381,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -413,5 +404,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/receipts.rb b/accounting/lib/xero-ruby/models/receipts.rb index 5f5d14cd..bff3fdc5 100644 --- a/accounting/lib/xero-ruby/models/receipts.rb +++ b/accounting/lib/xero-ruby/models/receipts.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/repeating_invoice.rb b/accounting/lib/xero-ruby/models/repeating_invoice.rb index 313b3c71..08e07db2 100644 --- a/accounting/lib/xero-ruby/models/repeating_invoice.rb +++ b/accounting/lib/xero-ruby/models/repeating_invoice.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -124,12 +125,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -322,9 +317,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -374,11 +369,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -401,5 +392,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/repeating_invoices.rb b/accounting/lib/xero-ruby/models/repeating_invoices.rb index c1264e3d..804a6f92 100644 --- a/accounting/lib/xero-ruby/models/repeating_invoices.rb +++ b/accounting/lib/xero-ruby/models/repeating_invoices.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/report.rb b/accounting/lib/xero-ruby/models/report.rb index f208763e..f5ed1362 100644 --- a/accounting/lib/xero-ruby/models/report.rb +++ b/accounting/lib/xero-ruby/models/report.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -82,12 +83,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -219,9 +214,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -271,11 +266,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -298,5 +289,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/report_attribute.rb b/accounting/lib/xero-ruby/models/report_attribute.rb index b3fca2f0..4fc60b19 100644 --- a/accounting/lib/xero-ruby/models/report_attribute.rb +++ b/accounting/lib/xero-ruby/models/report_attribute.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -34,12 +35,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -132,9 +127,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -184,11 +179,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -211,5 +202,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/report_cell.rb b/accounting/lib/xero-ruby/models/report_cell.rb index 55aa1398..1a56e105 100644 --- a/accounting/lib/xero-ruby/models/report_cell.rb +++ b/accounting/lib/xero-ruby/models/report_cell.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -34,12 +35,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -134,9 +129,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -186,11 +181,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -213,5 +204,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/report_fields.rb b/accounting/lib/xero-ruby/models/report_fields.rb index a1d22efa..fb7d273c 100644 --- a/accounting/lib/xero-ruby/models/report_fields.rb +++ b/accounting/lib/xero-ruby/models/report_fields.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -38,12 +39,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -141,9 +136,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -193,11 +188,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -220,5 +211,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/report_row.rb b/accounting/lib/xero-ruby/models/report_row.rb index c57dee29..598a7cb0 100644 --- a/accounting/lib/xero-ruby/models/report_row.rb +++ b/accounting/lib/xero-ruby/models/report_row.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -38,12 +39,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -143,9 +138,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -195,11 +190,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -222,5 +213,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/report_rows.rb b/accounting/lib/xero-ruby/models/report_rows.rb index 49f4db40..ee411fc3 100644 --- a/accounting/lib/xero-ruby/models/report_rows.rb +++ b/accounting/lib/xero-ruby/models/report_rows.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -42,12 +43,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -154,9 +149,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -206,11 +201,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -233,5 +224,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/report_with_row.rb b/accounting/lib/xero-ruby/models/report_with_row.rb index 5bf2fe06..4509e604 100644 --- a/accounting/lib/xero-ruby/models/report_with_row.rb +++ b/accounting/lib/xero-ruby/models/report_with_row.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -69,12 +70,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -208,9 +203,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -260,11 +255,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -287,5 +278,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/report_with_rows.rb b/accounting/lib/xero-ruby/models/report_with_rows.rb index 33c87346..e4b68f59 100644 --- a/accounting/lib/xero-ruby/models/report_with_rows.rb +++ b/accounting/lib/xero-ruby/models/report_with_rows.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/reports.rb b/accounting/lib/xero-ruby/models/reports.rb index 125068fd..ae897c98 100644 --- a/accounting/lib/xero-ruby/models/reports.rb +++ b/accounting/lib/xero-ruby/models/reports.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/request_empty.rb b/accounting/lib/xero-ruby/models/request_empty.rb index 90d48cc5..d51d9679 100644 --- a/accounting/lib/xero-ruby/models/request_empty.rb +++ b/accounting/lib/xero-ruby/models/request_empty.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -31,12 +32,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -124,9 +119,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -176,11 +171,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -203,5 +194,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/row_type.rb b/accounting/lib/xero-ruby/models/row_type.rb index 876d4d76..81fdf548 100644 --- a/accounting/lib/xero-ruby/models/row_type.rb +++ b/accounting/lib/xero-ruby/models/row_type.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/sales_tracking_category.rb b/accounting/lib/xero-ruby/models/sales_tracking_category.rb index e329db0b..9f09173b 100644 --- a/accounting/lib/xero-ruby/models/sales_tracking_category.rb +++ b/accounting/lib/xero-ruby/models/sales_tracking_category.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -36,12 +37,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -134,9 +129,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -186,11 +181,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -213,5 +204,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/schedule.rb b/accounting/lib/xero-ruby/models/schedule.rb index dac70d53..96e5179f 100644 --- a/accounting/lib/xero-ruby/models/schedule.rb +++ b/accounting/lib/xero-ruby/models/schedule.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -83,12 +84,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -230,9 +225,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -282,11 +277,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -309,5 +300,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/tax_component.rb b/accounting/lib/xero-ruby/models/tax_component.rb index b944b21d..57c3fd44 100644 --- a/accounting/lib/xero-ruby/models/tax_component.rb +++ b/accounting/lib/xero-ruby/models/tax_component.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -46,12 +47,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -154,9 +149,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -206,11 +201,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -233,5 +224,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/tax_rate.rb b/accounting/lib/xero-ruby/models/tax_rate.rb index 676af1a9..09e928f3 100644 --- a/accounting/lib/xero-ruby/models/tax_rate.rb +++ b/accounting/lib/xero-ruby/models/tax_rate.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -108,12 +109,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -282,9 +277,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -334,11 +329,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -361,5 +352,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/tax_rates.rb b/accounting/lib/xero-ruby/models/tax_rates.rb index 7275cc4b..30074517 100644 --- a/accounting/lib/xero-ruby/models/tax_rates.rb +++ b/accounting/lib/xero-ruby/models/tax_rates.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/tax_type.rb b/accounting/lib/xero-ruby/models/tax_type.rb index 7ad898ee..7749a922 100644 --- a/accounting/lib/xero-ruby/models/tax_type.rb +++ b/accounting/lib/xero-ruby/models/tax_type.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb b/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb index 7d121863..8f7cf5e8 100644 --- a/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb +++ b/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -136,12 +137,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -334,9 +329,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -386,11 +381,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -413,5 +404,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/time_zone.rb b/accounting/lib/xero-ruby/models/time_zone.rb index 1c5604d4..7c6d45c2 100644 --- a/accounting/lib/xero-ruby/models/time_zone.rb +++ b/accounting/lib/xero-ruby/models/time_zone.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby diff --git a/accounting/lib/xero-ruby/models/tracking_categories.rb b/accounting/lib/xero-ruby/models/tracking_categories.rb index 80085a18..dc42b2c8 100644 --- a/accounting/lib/xero-ruby/models/tracking_categories.rb +++ b/accounting/lib/xero-ruby/models/tracking_categories.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/tracking_category.rb b/accounting/lib/xero-ruby/models/tracking_category.rb index b5d085c4..a960d7b2 100644 --- a/accounting/lib/xero-ruby/models/tracking_category.rb +++ b/accounting/lib/xero-ruby/models/tracking_category.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -78,12 +79,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -240,9 +235,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -292,11 +287,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -319,5 +310,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/tracking_option.rb b/accounting/lib/xero-ruby/models/tracking_option.rb index 58837996..e0727447 100644 --- a/accounting/lib/xero-ruby/models/tracking_option.rb +++ b/accounting/lib/xero-ruby/models/tracking_option.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -68,12 +69,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -203,9 +198,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -255,11 +250,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -282,5 +273,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/tracking_options.rb b/accounting/lib/xero-ruby/models/tracking_options.rb index 4765858c..bf16b3cb 100644 --- a/accounting/lib/xero-ruby/models/tracking_options.rb +++ b/accounting/lib/xero-ruby/models/tracking_options.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/user.rb b/accounting/lib/xero-ruby/models/user.rb index 5431c52e..2cb6dc75 100644 --- a/accounting/lib/xero-ruby/models/user.rb +++ b/accounting/lib/xero-ruby/models/user.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -83,12 +84,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -218,9 +213,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -270,11 +265,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -297,5 +288,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/users.rb b/accounting/lib/xero-ruby/models/users.rb index af275014..dd42e7af 100644 --- a/accounting/lib/xero-ruby/models/users.rb +++ b/accounting/lib/xero-ruby/models/users.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -30,12 +31,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -125,9 +120,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -177,11 +172,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -204,5 +195,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/models/validation_error.rb b/accounting/lib/xero-ruby/models/validation_error.rb index aaa8679d..ca98f831 100644 --- a/accounting/lib/xero-ruby/models/validation_error.rb +++ b/accounting/lib/xero-ruby/models/validation_error.rb @@ -10,6 +10,7 @@ =end +require 'time' require 'date' module XeroRuby @@ -31,12 +32,6 @@ def self.openapi_types } end - # List of attributes with nullable: true - def self.openapi_nullable - Set.new([ - ]) - end - # Initializes the object # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) @@ -124,9 +119,9 @@ def build_from_hash(attributes) def _deserialize(type, value) case type.to_sym when :DateTime - DateTime.parse(value) + DateTime.parse(parse_date(value)) when :Date - Date.parse(value) + Date.parse(parse_date(value)) when :String value.to_s when :Integer @@ -176,11 +171,7 @@ def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) - if value.nil? - is_nullable = self.class.openapi_nullable.include?(attr) - next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) - end - + next if value.nil? hash[param] = _to_hash(value) end hash @@ -203,5 +194,11 @@ def _to_hash(value) value end end + + # customized data_parser + def parse_date(datestring) + seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0 + return Time.at(seconds_since_epoch).to_s + end end end diff --git a/accounting/lib/xero-ruby/version.rb b/accounting/lib/xero-ruby/version.rb index 6f069f5e..b0ec3deb 100644 --- a/accounting/lib/xero-ruby/version.rb +++ b/accounting/lib/xero-ruby/version.rb @@ -11,5 +11,5 @@ =end module XeroRuby - VERSION = '0.2.2' + VERSION = '0.3.4' end diff --git a/accounting/spec/api_client_spec.rb b/accounting/spec/api_client_spec.rb index 47ed8271..985a7f03 100644 --- a/accounting/spec/api_client_spec.rb +++ b/accounting/spec/api_client_spec.rb @@ -118,7 +118,7 @@ end it 'fails for invalid collection format' do - expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID') + expect(proc { api_client.build_collection_param(param, :INVALID) }).to raise_error(RuntimeError, 'unknown collection format: :INVALID') end end From 760870a66f7113a2b564ed0052f5bbeec8845098 Mon Sep 17 00:00:00 2001 From: serknight Date: Wed, 8 Apr 2020 16:57:44 -0600 Subject: [PATCH 3/9] regen and all base convenience methods for handling oauth flow --- accounting/.travis.yml | 2 +- accounting/README.md | 11 +-- accounting/docs/AccountingApi.md | 53 ++++++++++++++ accounting/lib/xero-ruby.rb | 2 +- .../lib/xero-ruby/api/accounting_api.rb | 69 ++++++++++++++++++- accounting/lib/xero-ruby/api_client.rb | 69 +++++++++++++++---- accounting/lib/xero-ruby/api_error.rb | 2 +- accounting/lib/xero-ruby/configuration.rb | 11 ++- accounting/lib/xero-ruby/models/account.rb | 2 +- .../lib/xero-ruby/models/account_type.rb | 2 +- accounting/lib/xero-ruby/models/accounts.rb | 2 +- .../lib/xero-ruby/models/accounts_payable.rb | 2 +- .../xero-ruby/models/accounts_receivable.rb | 2 +- accounting/lib/xero-ruby/models/address.rb | 2 +- accounting/lib/xero-ruby/models/allocation.rb | 2 +- .../lib/xero-ruby/models/allocations.rb | 2 +- accounting/lib/xero-ruby/models/attachment.rb | 2 +- .../lib/xero-ruby/models/attachments.rb | 2 +- accounting/lib/xero-ruby/models/balances.rb | 2 +- .../lib/xero-ruby/models/bank_transaction.rb | 2 +- .../lib/xero-ruby/models/bank_transactions.rb | 2 +- .../lib/xero-ruby/models/bank_transfer.rb | 2 +- .../lib/xero-ruby/models/bank_transfers.rb | 2 +- .../lib/xero-ruby/models/batch_payment.rb | 2 +- .../xero-ruby/models/batch_payment_details.rb | 2 +- .../lib/xero-ruby/models/batch_payments.rb | 2 +- accounting/lib/xero-ruby/models/bill.rb | 2 +- .../lib/xero-ruby/models/branding_theme.rb | 2 +- .../lib/xero-ruby/models/branding_themes.rb | 2 +- .../lib/xero-ruby/models/cis_org_setting.rb | 2 +- .../lib/xero-ruby/models/cis_setting.rb | 2 +- .../lib/xero-ruby/models/cis_settings.rb | 2 +- accounting/lib/xero-ruby/models/contact.rb | 2 +- .../lib/xero-ruby/models/contact_group.rb | 2 +- .../lib/xero-ruby/models/contact_groups.rb | 2 +- .../lib/xero-ruby/models/contact_person.rb | 2 +- accounting/lib/xero-ruby/models/contacts.rb | 2 +- .../lib/xero-ruby/models/country_code.rb | 2 +- .../lib/xero-ruby/models/credit_note.rb | 2 +- .../lib/xero-ruby/models/credit_notes.rb | 2 +- accounting/lib/xero-ruby/models/currencies.rb | 2 +- accounting/lib/xero-ruby/models/currency.rb | 2 +- .../lib/xero-ruby/models/currency_code.rb | 2 +- accounting/lib/xero-ruby/models/element.rb | 2 +- accounting/lib/xero-ruby/models/employee.rb | 2 +- accounting/lib/xero-ruby/models/employees.rb | 2 +- accounting/lib/xero-ruby/models/error.rb | 2 +- .../lib/xero-ruby/models/expense_claim.rb | 2 +- .../lib/xero-ruby/models/expense_claims.rb | 2 +- .../lib/xero-ruby/models/external_link.rb | 2 +- .../lib/xero-ruby/models/history_record.rb | 2 +- .../lib/xero-ruby/models/history_records.rb | 2 +- accounting/lib/xero-ruby/models/invoice.rb | 2 +- .../lib/xero-ruby/models/invoice_reminder.rb | 2 +- .../lib/xero-ruby/models/invoice_reminders.rb | 2 +- accounting/lib/xero-ruby/models/invoices.rb | 2 +- accounting/lib/xero-ruby/models/item.rb | 2 +- accounting/lib/xero-ruby/models/items.rb | 2 +- accounting/lib/xero-ruby/models/journal.rb | 2 +- .../lib/xero-ruby/models/journal_line.rb | 2 +- accounting/lib/xero-ruby/models/journals.rb | 2 +- .../lib/xero-ruby/models/line_amount_types.rb | 2 +- accounting/lib/xero-ruby/models/line_item.rb | 2 +- .../xero-ruby/models/line_item_tracking.rb | 2 +- .../xero-ruby/models/linked_transaction.rb | 2 +- .../xero-ruby/models/linked_transactions.rb | 2 +- .../lib/xero-ruby/models/manual_journal.rb | 2 +- .../xero-ruby/models/manual_journal_line.rb | 2 +- .../lib/xero-ruby/models/manual_journals.rb | 2 +- .../lib/xero-ruby/models/online_invoice.rb | 2 +- .../lib/xero-ruby/models/online_invoices.rb | 2 +- .../lib/xero-ruby/models/organisation.rb | 2 +- .../lib/xero-ruby/models/organisations.rb | 2 +- .../lib/xero-ruby/models/overpayment.rb | 2 +- .../lib/xero-ruby/models/overpayments.rb | 2 +- accounting/lib/xero-ruby/models/payment.rb | 2 +- .../lib/xero-ruby/models/payment_delete.rb | 2 +- .../lib/xero-ruby/models/payment_service.rb | 2 +- .../lib/xero-ruby/models/payment_services.rb | 2 +- .../lib/xero-ruby/models/payment_term.rb | 2 +- .../lib/xero-ruby/models/payment_term_type.rb | 2 +- accounting/lib/xero-ruby/models/payments.rb | 2 +- accounting/lib/xero-ruby/models/phone.rb | 2 +- accounting/lib/xero-ruby/models/prepayment.rb | 2 +- .../lib/xero-ruby/models/prepayments.rb | 2 +- accounting/lib/xero-ruby/models/purchase.rb | 2 +- .../lib/xero-ruby/models/purchase_order.rb | 2 +- .../lib/xero-ruby/models/purchase_orders.rb | 2 +- accounting/lib/xero-ruby/models/quote.rb | 2 +- .../models/quote_line_amount_types.rb | 2 +- .../xero-ruby/models/quote_status_codes.rb | 2 +- accounting/lib/xero-ruby/models/quotes.rb | 2 +- accounting/lib/xero-ruby/models/receipt.rb | 2 +- accounting/lib/xero-ruby/models/receipts.rb | 2 +- .../lib/xero-ruby/models/repeating_invoice.rb | 2 +- .../xero-ruby/models/repeating_invoices.rb | 2 +- accounting/lib/xero-ruby/models/report.rb | 2 +- .../lib/xero-ruby/models/report_attribute.rb | 2 +- .../lib/xero-ruby/models/report_cell.rb | 2 +- .../lib/xero-ruby/models/report_fields.rb | 2 +- accounting/lib/xero-ruby/models/report_row.rb | 2 +- .../lib/xero-ruby/models/report_rows.rb | 2 +- .../lib/xero-ruby/models/report_with_row.rb | 2 +- .../lib/xero-ruby/models/report_with_rows.rb | 2 +- accounting/lib/xero-ruby/models/reports.rb | 2 +- .../lib/xero-ruby/models/request_empty.rb | 2 +- accounting/lib/xero-ruby/models/row_type.rb | 2 +- .../models/sales_tracking_category.rb | 2 +- accounting/lib/xero-ruby/models/schedule.rb | 2 +- .../lib/xero-ruby/models/tax_component.rb | 2 +- accounting/lib/xero-ruby/models/tax_rate.rb | 2 +- accounting/lib/xero-ruby/models/tax_rates.rb | 2 +- accounting/lib/xero-ruby/models/tax_type.rb | 2 +- .../models/ten_nintey_nine_contact.rb | 2 +- accounting/lib/xero-ruby/models/time_zone.rb | 2 +- .../xero-ruby/models/tracking_categories.rb | 2 +- .../lib/xero-ruby/models/tracking_category.rb | 2 +- .../lib/xero-ruby/models/tracking_option.rb | 2 +- .../lib/xero-ruby/models/tracking_options.rb | 2 +- accounting/lib/xero-ruby/models/user.rb | 2 +- accounting/lib/xero-ruby/models/users.rb | 2 +- .../lib/xero-ruby/models/validation_error.rb | 2 +- accounting/lib/xero-ruby/version.rb | 4 +- accounting/spec/api/accounting_api_spec.rb | 14 +++- accounting/spec/api_client_spec.rb | 2 +- accounting/spec/configuration_spec.rb | 2 +- accounting/spec/models/account_spec.rb | 2 +- accounting/spec/models/account_type_spec.rb | 2 +- .../spec/models/accounts_payable_spec.rb | 2 +- .../spec/models/accounts_receivable_spec.rb | 2 +- accounting/spec/models/accounts_spec.rb | 2 +- accounting/spec/models/address_spec.rb | 2 +- accounting/spec/models/allocation_spec.rb | 2 +- accounting/spec/models/allocations_spec.rb | 2 +- accounting/spec/models/attachment_spec.rb | 2 +- accounting/spec/models/attachments_spec.rb | 2 +- accounting/spec/models/balances_spec.rb | 2 +- .../spec/models/bank_transaction_spec.rb | 2 +- .../spec/models/bank_transactions_spec.rb | 2 +- accounting/spec/models/bank_transfer_spec.rb | 2 +- accounting/spec/models/bank_transfers_spec.rb | 2 +- .../spec/models/batch_payment_details_spec.rb | 2 +- accounting/spec/models/batch_payment_spec.rb | 2 +- accounting/spec/models/batch_payments_spec.rb | 2 +- accounting/spec/models/bill_spec.rb | 2 +- accounting/spec/models/branding_theme_spec.rb | 2 +- .../spec/models/branding_themes_spec.rb | 2 +- .../spec/models/cis_org_setting_spec.rb | 2 +- accounting/spec/models/cis_setting_spec.rb | 2 +- accounting/spec/models/cis_settings_spec.rb | 2 +- accounting/spec/models/contact_group_spec.rb | 2 +- accounting/spec/models/contact_groups_spec.rb | 2 +- accounting/spec/models/contact_person_spec.rb | 2 +- accounting/spec/models/contact_spec.rb | 2 +- accounting/spec/models/contacts_spec.rb | 2 +- accounting/spec/models/country_code_spec.rb | 2 +- accounting/spec/models/credit_note_spec.rb | 2 +- accounting/spec/models/credit_notes_spec.rb | 2 +- accounting/spec/models/currencies_spec.rb | 2 +- accounting/spec/models/currency_code_spec.rb | 2 +- accounting/spec/models/currency_spec.rb | 2 +- accounting/spec/models/element_spec.rb | 2 +- accounting/spec/models/employee_spec.rb | 2 +- accounting/spec/models/employees_spec.rb | 2 +- accounting/spec/models/error_spec.rb | 2 +- accounting/spec/models/expense_claim_spec.rb | 2 +- accounting/spec/models/expense_claims_spec.rb | 2 +- accounting/spec/models/external_link_spec.rb | 2 +- accounting/spec/models/history_record_spec.rb | 2 +- .../spec/models/history_records_spec.rb | 2 +- .../spec/models/invoice_reminder_spec.rb | 2 +- .../spec/models/invoice_reminders_spec.rb | 2 +- accounting/spec/models/invoice_spec.rb | 2 +- accounting/spec/models/invoices_spec.rb | 2 +- accounting/spec/models/item_spec.rb | 2 +- accounting/spec/models/items_spec.rb | 2 +- accounting/spec/models/journal_line_spec.rb | 2 +- accounting/spec/models/journal_spec.rb | 2 +- accounting/spec/models/journals_spec.rb | 2 +- .../spec/models/line_amount_types_spec.rb | 2 +- accounting/spec/models/line_item_spec.rb | 2 +- .../spec/models/line_item_tracking_spec.rb | 2 +- .../spec/models/linked_transaction_spec.rb | 2 +- .../spec/models/linked_transactions_spec.rb | 2 +- .../spec/models/manual_journal_line_spec.rb | 2 +- accounting/spec/models/manual_journal_spec.rb | 2 +- .../spec/models/manual_journals_spec.rb | 2 +- accounting/spec/models/online_invoice_spec.rb | 2 +- .../spec/models/online_invoices_spec.rb | 2 +- accounting/spec/models/organisation_spec.rb | 2 +- accounting/spec/models/organisations_spec.rb | 2 +- accounting/spec/models/overpayment_spec.rb | 2 +- accounting/spec/models/overpayments_spec.rb | 2 +- accounting/spec/models/payment_delete_spec.rb | 2 +- .../spec/models/payment_service_spec.rb | 2 +- .../spec/models/payment_services_spec.rb | 2 +- accounting/spec/models/payment_spec.rb | 2 +- accounting/spec/models/payment_term_spec.rb | 2 +- .../spec/models/payment_term_type_spec.rb | 2 +- accounting/spec/models/payments_spec.rb | 2 +- accounting/spec/models/phone_spec.rb | 2 +- accounting/spec/models/prepayment_spec.rb | 2 +- accounting/spec/models/prepayments_spec.rb | 2 +- accounting/spec/models/purchase_order_spec.rb | 2 +- .../spec/models/purchase_orders_spec.rb | 2 +- accounting/spec/models/purchase_spec.rb | 2 +- .../models/quote_line_amount_types_spec.rb | 2 +- accounting/spec/models/quote_spec.rb | 2 +- .../spec/models/quote_status_codes_spec.rb | 2 +- accounting/spec/models/quotes_spec.rb | 2 +- accounting/spec/models/receipt_spec.rb | 2 +- accounting/spec/models/receipts_spec.rb | 2 +- .../spec/models/repeating_invoice_spec.rb | 2 +- .../spec/models/repeating_invoices_spec.rb | 2 +- .../spec/models/report_attribute_spec.rb | 2 +- accounting/spec/models/report_cell_spec.rb | 2 +- accounting/spec/models/report_fields_spec.rb | 2 +- accounting/spec/models/report_row_spec.rb | 2 +- accounting/spec/models/report_rows_spec.rb | 2 +- accounting/spec/models/report_spec.rb | 2 +- .../spec/models/report_with_row_spec.rb | 2 +- .../spec/models/report_with_rows_spec.rb | 2 +- accounting/spec/models/reports_spec.rb | 2 +- accounting/spec/models/request_empty_spec.rb | 2 +- accounting/spec/models/row_type_spec.rb | 2 +- .../models/sales_tracking_category_spec.rb | 2 +- accounting/spec/models/schedule_spec.rb | 2 +- accounting/spec/models/tax_component_spec.rb | 2 +- accounting/spec/models/tax_rate_spec.rb | 2 +- accounting/spec/models/tax_rates_spec.rb | 2 +- accounting/spec/models/tax_type_spec.rb | 2 +- .../models/ten_nintey_nine_contact_spec.rb | 2 +- accounting/spec/models/time_zone_spec.rb | 2 +- .../spec/models/tracking_categories_spec.rb | 2 +- .../spec/models/tracking_category_spec.rb | 2 +- .../spec/models/tracking_option_spec.rb | 2 +- .../spec/models/tracking_options_spec.rb | 2 +- accounting/spec/models/user_spec.rb | 2 +- accounting/spec/models/users_spec.rb | 2 +- .../spec/models/validation_error_spec.rb | 2 +- accounting/spec/spec_helper.rb | 2 +- accounting/xero-ruby.gemspec | 2 +- 242 files changed, 442 insertions(+), 259 deletions(-) diff --git a/accounting/.travis.yml b/accounting/.travis.yml index e4d9862a..7bf93c08 100644 --- a/accounting/.travis.yml +++ b/accounting/.travis.yml @@ -8,4 +8,4 @@ script: - bundle install --path vendor/bundle - bundle exec rspec - gem build xero-ruby.gemspec - - gem install ./xero-ruby-0.3.4.gem + - gem install ./xero-ruby-0.4.0.gem diff --git a/accounting/README.md b/accounting/README.md index bf3de591..abf33999 100644 --- a/accounting/README.md +++ b/accounting/README.md @@ -6,8 +6,8 @@ No description provided (generated by Openapi Generator https://github.com/opena This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.0.7 -- Package version: 0.3.4 +- API version: 2.0.8 +- Package version: 0.4.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit [https://developer.xero.com](https://developer.xero.com) @@ -24,16 +24,16 @@ gem build xero-ruby.gemspec Then either install the gem locally: ```shell -gem install ./xero-ruby-0.3.4.gem +gem install ./xero-ruby-0.4.0.gem ``` -(for development, run `gem install --dev ./xero-ruby-0.3.4.gem` to install the development dependencies) +(for development, run `gem install --dev ./xero-ruby-0.4.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'xero-ruby', '~> 0.3.4' + gem 'xero-ruby', '~> 0.4.0' ### Install from Git @@ -223,6 +223,7 @@ Class | Method | HTTP request | Description *XeroRuby::AccountingApi* | [**get_prepayment_history**](docs/AccountingApi.md#get_prepayment_history) | **GET** /Prepayments/{PrepaymentID}/History | Allows you to retrieve a history records of an Prepayment *XeroRuby::AccountingApi* | [**get_prepayments**](docs/AccountingApi.md#get_prepayments) | **GET** /Prepayments | Allows you to retrieve prepayments *XeroRuby::AccountingApi* | [**get_purchase_order**](docs/AccountingApi.md#get_purchase_order) | **GET** /PurchaseOrders/{PurchaseOrderID} | Allows you to retrieve a specified purchase orders +*XeroRuby::AccountingApi* | [**get_purchase_order_as_pdf**](docs/AccountingApi.md#get_purchase_order_as_pdf) | **GET** /PurchaseOrders/{PurchaseOrderID}/pdf | Allows you to retrieve purchase orders as PDF files *XeroRuby::AccountingApi* | [**get_purchase_order_by_number**](docs/AccountingApi.md#get_purchase_order_by_number) | **GET** /PurchaseOrders/{PurchaseOrderNumber} | Allows you to retrieve a specified purchase orders *XeroRuby::AccountingApi* | [**get_purchase_order_history**](docs/AccountingApi.md#get_purchase_order_history) | **GET** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to retrieve history for PurchaseOrder *XeroRuby::AccountingApi* | [**get_purchase_orders**](docs/AccountingApi.md#get_purchase_orders) | **GET** /PurchaseOrders | Allows you to retrieve purchase orders diff --git a/accounting/docs/AccountingApi.md b/accounting/docs/AccountingApi.md index c1432fc9..eb51f6c3 100644 --- a/accounting/docs/AccountingApi.md +++ b/accounting/docs/AccountingApi.md @@ -144,6 +144,7 @@ Method | HTTP request | Description [**get_prepayment_history**](AccountingApi.md#get_prepayment_history) | **GET** /Prepayments/{PrepaymentID}/History | Allows you to retrieve a history records of an Prepayment [**get_prepayments**](AccountingApi.md#get_prepayments) | **GET** /Prepayments | Allows you to retrieve prepayments [**get_purchase_order**](AccountingApi.md#get_purchase_order) | **GET** /PurchaseOrders/{PurchaseOrderID} | Allows you to retrieve a specified purchase orders +[**get_purchase_order_as_pdf**](AccountingApi.md#get_purchase_order_as_pdf) | **GET** /PurchaseOrders/{PurchaseOrderID}/pdf | Allows you to retrieve purchase orders as PDF files [**get_purchase_order_by_number**](AccountingApi.md#get_purchase_order_by_number) | **GET** /PurchaseOrders/{PurchaseOrderNumber} | Allows you to retrieve a specified purchase orders [**get_purchase_order_history**](AccountingApi.md#get_purchase_order_history) | **GET** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to retrieve history for PurchaseOrder [**get_purchase_orders**](AccountingApi.md#get_purchase_orders) | **GET** /PurchaseOrders | Allows you to retrieve purchase orders @@ -7861,6 +7862,58 @@ Name | Type | Description | Notes - **Accept**: application/json +## get_purchase_order_as_pdf + +> File get_purchase_order_as_pdf(xero_tenant_id, purchase_order_id) + +Allows you to retrieve purchase orders as PDF files + +### Example + +```ruby +# load the gem +require 'xero-ruby' +# setup authorization +XeroRuby.configure do |config| + # Configure OAuth2 access token for authorization: OAuth2 + config.access_token = 'YOUR ACCESS TOKEN' +end + +api_instance = XeroRuby::AccountingApi.new +xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant +purchase_order_id = '00000000-0000-0000-000-000000000000' # String | Unique identifier for an Purchase Order + +begin + #Allows you to retrieve purchase orders as PDF files + result = api_instance.get_purchase_order_as_pdf(xero_tenant_id, purchase_order_id) + p result +rescue XeroRuby::ApiError => e + puts "Exception when calling AccountingApi->get_purchase_order_as_pdf: #{e}" +end +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **xero_tenant_id** | **String**| Xero identifier for Tenant | + **purchase_order_id** | [**String**](.md)| Unique identifier for an Purchase Order | + +### Return type + +**File** + +### Authorization + +[OAuth2](../README.md#OAuth2) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/pdf + + ## get_purchase_order_by_number > PurchaseOrders get_purchase_order_by_number(xero_tenant_id, purchase_order_number) diff --git a/accounting/lib/xero-ruby.rb b/accounting/lib/xero-ruby.rb index 67ff3f6b..41eb3fd8 100644 --- a/accounting/lib/xero-ruby.rb +++ b/accounting/lib/xero-ruby.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/api/accounting_api.rb b/accounting/lib/xero-ruby/api/accounting_api.rb index c8183598..af7cca1b 100644 --- a/accounting/lib/xero-ruby/api/accounting_api.rb +++ b/accounting/lib/xero-ruby/api/accounting_api.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 @@ -10122,6 +10122,73 @@ def get_purchase_order_with_http_info(xero_tenant_id, purchase_order_id, opts = return data, status_code, headers end + # Allows you to retrieve purchase orders as PDF files + # @param xero_tenant_id [String] Xero identifier for Tenant + # @param purchase_order_id [String] Unique identifier for an Purchase Order + # @param [Hash] opts the optional parameters + # @return [File] + def get_purchase_order_as_pdf(xero_tenant_id, purchase_order_id, opts = {}) + data, _status_code, _headers = get_purchase_order_as_pdf_with_http_info(xero_tenant_id, purchase_order_id, opts) + data + end + + # Allows you to retrieve purchase orders as PDF files + # @param xero_tenant_id [String] Xero identifier for Tenant + # @param purchase_order_id [String] Unique identifier for an Purchase Order + # @param [Hash] opts the optional parameters + # @return [Array<(File, Integer, Hash)>] File data, response status code and response headers + def get_purchase_order_as_pdf_with_http_info(xero_tenant_id, purchase_order_id, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: AccountingApi.get_purchase_order_as_pdf ...' + end + # verify the required parameter 'xero_tenant_id' is set + if @api_client.config.client_side_validation && xero_tenant_id.nil? + fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_purchase_order_as_pdf" + end + # verify the required parameter 'purchase_order_id' is set + if @api_client.config.client_side_validation && purchase_order_id.nil? + fail ArgumentError, "Missing the required parameter 'purchase_order_id' when calling AccountingApi.get_purchase_order_as_pdf" + end + # resource path + local_var_path = '/PurchaseOrders/{PurchaseOrderID}'.sub('{' + 'PurchaseOrderID' + '}', purchase_order_id.to_s) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['application/pdf']) + header_params[:'xero-tenant-id'] = xero_tenant_id + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:body] + + # return_type + return_type = opts[:return_type] || 'File' + + # auth_names + auth_names = opts[:auth_names] || ['OAuth2'] + + new_options = opts.merge( + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: AccountingApi#get_purchase_order_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Allows you to retrieve a specified purchase orders # @param xero_tenant_id [String] Xero identifier for Tenant # @param purchase_order_number [String] Unique identifier for a PurchaseOrder diff --git a/accounting/lib/xero-ruby/api_client.rb b/accounting/lib/xero-ruby/api_client.rb index aa1813e4..080362af 100644 --- a/accounting/lib/xero-ruby/api_client.rb +++ b/accounting/lib/xero-ruby/api_client.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 @@ -28,13 +28,11 @@ class ApiClient # Initializes the ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default - def initialize(config = Configuration.default) - @client_id = "902DD32276574ED199639D9226A425B1" - @client_secret = 'PeNYDifbqi4Q3l9mG_kTg3LdLZ7RIUFpOOas-16sqkPV_e5C' - @redirect_uri = 'http://localhost:5000/callback' - @token_url = 'https://identity.xero.com/connect/token' - @login_url = 'https://login.xero.com/identity/connect/authorize' - + def initialize(config: Configuration.default, credentials:) + @client_id = credentials[:client_id] + @client_secret = credentials[:client_secret] + @redirect_uri = credentials[:redirect_uri] + @scopes = credentials[:scopes] @config = config @user_agent = "xero-ruby-#{VERSION}" @default_headers = { @@ -44,29 +42,72 @@ def initialize(config = Configuration.default) end def authorization_url - scopes = "openid profile email accounting.settings accounting.reports.read accounting.journals.read accounting.contacts accounting.attachments accounting.transactions assets assets.read projects projects.read offline_access"; - url = "#{@login_url}?response_type=code&client_id=#{@config[:client_id]}&redirect_uri=#{@config[:redirect_uri]}&scope=#{scopes}" + url = "#{@config.login_url}?response_type=code&client_id=#{@client_id}&redirect_uri=#{@redirect_uri}&scope=#{@scopes}" return url end + def accounting_client + XeroRuby::AccountingApi.new(self) + end + + # TOKEN Helpers + + def token_set + XeroRuby.configure.token_set + end + + def access_token + XeroRuby.configure.access_token + end + + def set_token_set(token_set) + # helper to set the token_set on a client once the user has y + # has a valid token set ( access_token & refresh_token ) + XeroRuby.configure.token_set = token_set + set_access_token(token_set['access_token']) + end + + def set_access_token(access_token) + XeroRuby.configure.access_token = access_token + end + def get_token_set_from_callback(params) data = { grant_type: 'authorization_code', code: params['code'], redirect_uri: @redirect_uri } - response = Faraday.post(@token_url) do |req| + return token_request(data) + end + + def refresh_token_set(token_set) + data = { + grant_type: 'refresh_token', + refresh_token: token_set['refresh_token'] + } + return token_request(data) + end + + def token_request(data) + response = Faraday.post(@config.token_url) do |req| req.headers['Authorization'] = "Basic " + Base64.strict_encode64("#{@client_id}:#{@client_secret}") req.headers['Content-Type'] = 'application/x-www-form-urlencoded' req.body = URI.encode_www_form(data) end body = JSON.parse(response.body) - XeroRuby.configure.access_token = body['access_token'] + set_token_set(body) return body end - def self.default - @@default ||= ApiClient.new + # Connection heplers + def connections + response = Faraday.get('https://api.xero.com/connections') do |req| + req.headers['Authorization'] = "Bearer #{access_token}" + req.headers['Content-Type'] = 'application/json' + end + body = JSON.parse(response.body) + puts "body: #{body}" + return body end # Call an API with given options. diff --git a/accounting/lib/xero-ruby/api_error.rb b/accounting/lib/xero-ruby/api_error.rb index 5962b95a..96d70f78 100644 --- a/accounting/lib/xero-ruby/api_error.rb +++ b/accounting/lib/xero-ruby/api_error.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/configuration.rb b/accounting/lib/xero-ruby/configuration.rb index a6f924a5..eef2659a 100644 --- a/accounting/lib/xero-ruby/configuration.rb +++ b/accounting/lib/xero-ruby/configuration.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 @@ -21,6 +21,10 @@ class Configuration # Defines url base path attr_accessor :base_path + # Defines url for identity routes + attr_accessor :login_url + attr_accessor :token_url + # Defines API keys used with API Key authentications. # # @return [Hash] key: parameter name, value: parameter value (API key) @@ -50,6 +54,9 @@ class Configuration # Defines the access token (Bearer) used with OAuth2. attr_accessor :access_token + # Defines the token set used with OAuth2. May include id/access/refresh token & other meta info. + attr_accessor :token_set + # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response # details will be logged with `logger.debug` (see the `logger` attribute). # Default to false. @@ -124,6 +131,8 @@ def initialize @scheme = 'https' @host = 'api.xero.com' @base_path = '/api.xro/2.0' + @login_url = 'https://login.xero.com/identity/connect/authorize' + @token_url = 'https://identity.xero.com/connect/token' @api_key = {} @api_key_prefix = {} @timeout = 0 diff --git a/accounting/lib/xero-ruby/models/account.rb b/accounting/lib/xero-ruby/models/account.rb index bbbe09a4..22a69dac 100644 --- a/accounting/lib/xero-ruby/models/account.rb +++ b/accounting/lib/xero-ruby/models/account.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/account_type.rb b/accounting/lib/xero-ruby/models/account_type.rb index 3eee165f..5868a661 100644 --- a/accounting/lib/xero-ruby/models/account_type.rb +++ b/accounting/lib/xero-ruby/models/account_type.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/accounts.rb b/accounting/lib/xero-ruby/models/accounts.rb index 183b7ed4..7f4467f5 100644 --- a/accounting/lib/xero-ruby/models/accounts.rb +++ b/accounting/lib/xero-ruby/models/accounts.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/accounts_payable.rb b/accounting/lib/xero-ruby/models/accounts_payable.rb index 8090e085..181d591c 100644 --- a/accounting/lib/xero-ruby/models/accounts_payable.rb +++ b/accounting/lib/xero-ruby/models/accounts_payable.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/accounts_receivable.rb b/accounting/lib/xero-ruby/models/accounts_receivable.rb index e6f4e083..998591fc 100644 --- a/accounting/lib/xero-ruby/models/accounts_receivable.rb +++ b/accounting/lib/xero-ruby/models/accounts_receivable.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/address.rb b/accounting/lib/xero-ruby/models/address.rb index a01ea34b..68376c4a 100644 --- a/accounting/lib/xero-ruby/models/address.rb +++ b/accounting/lib/xero-ruby/models/address.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/allocation.rb b/accounting/lib/xero-ruby/models/allocation.rb index 18be4bbb..51e10bc7 100644 --- a/accounting/lib/xero-ruby/models/allocation.rb +++ b/accounting/lib/xero-ruby/models/allocation.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/allocations.rb b/accounting/lib/xero-ruby/models/allocations.rb index c3f65a0e..52d864b2 100644 --- a/accounting/lib/xero-ruby/models/allocations.rb +++ b/accounting/lib/xero-ruby/models/allocations.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/attachment.rb b/accounting/lib/xero-ruby/models/attachment.rb index a17eda1c..f67aadfb 100644 --- a/accounting/lib/xero-ruby/models/attachment.rb +++ b/accounting/lib/xero-ruby/models/attachment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/attachments.rb b/accounting/lib/xero-ruby/models/attachments.rb index 92a347df..bc195314 100644 --- a/accounting/lib/xero-ruby/models/attachments.rb +++ b/accounting/lib/xero-ruby/models/attachments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/balances.rb b/accounting/lib/xero-ruby/models/balances.rb index 5240934e..61b985a9 100644 --- a/accounting/lib/xero-ruby/models/balances.rb +++ b/accounting/lib/xero-ruby/models/balances.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bank_transaction.rb b/accounting/lib/xero-ruby/models/bank_transaction.rb index cea151d9..1d68c33d 100644 --- a/accounting/lib/xero-ruby/models/bank_transaction.rb +++ b/accounting/lib/xero-ruby/models/bank_transaction.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bank_transactions.rb b/accounting/lib/xero-ruby/models/bank_transactions.rb index dfb83c14..5f8b30a9 100644 --- a/accounting/lib/xero-ruby/models/bank_transactions.rb +++ b/accounting/lib/xero-ruby/models/bank_transactions.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bank_transfer.rb b/accounting/lib/xero-ruby/models/bank_transfer.rb index d604e5b0..80b8ec69 100644 --- a/accounting/lib/xero-ruby/models/bank_transfer.rb +++ b/accounting/lib/xero-ruby/models/bank_transfer.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bank_transfers.rb b/accounting/lib/xero-ruby/models/bank_transfers.rb index 395260b7..0c5dc1ed 100644 --- a/accounting/lib/xero-ruby/models/bank_transfers.rb +++ b/accounting/lib/xero-ruby/models/bank_transfers.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/batch_payment.rb b/accounting/lib/xero-ruby/models/batch_payment.rb index 4cfe6f89..af787276 100644 --- a/accounting/lib/xero-ruby/models/batch_payment.rb +++ b/accounting/lib/xero-ruby/models/batch_payment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/batch_payment_details.rb b/accounting/lib/xero-ruby/models/batch_payment_details.rb index bda752d9..d6d9c670 100644 --- a/accounting/lib/xero-ruby/models/batch_payment_details.rb +++ b/accounting/lib/xero-ruby/models/batch_payment_details.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/batch_payments.rb b/accounting/lib/xero-ruby/models/batch_payments.rb index 6b0b400c..e5c1944b 100644 --- a/accounting/lib/xero-ruby/models/batch_payments.rb +++ b/accounting/lib/xero-ruby/models/batch_payments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bill.rb b/accounting/lib/xero-ruby/models/bill.rb index 9604a2bf..271f3d18 100644 --- a/accounting/lib/xero-ruby/models/bill.rb +++ b/accounting/lib/xero-ruby/models/bill.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/branding_theme.rb b/accounting/lib/xero-ruby/models/branding_theme.rb index 248a4701..737f18e9 100644 --- a/accounting/lib/xero-ruby/models/branding_theme.rb +++ b/accounting/lib/xero-ruby/models/branding_theme.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/branding_themes.rb b/accounting/lib/xero-ruby/models/branding_themes.rb index 3caa616a..2a38945f 100644 --- a/accounting/lib/xero-ruby/models/branding_themes.rb +++ b/accounting/lib/xero-ruby/models/branding_themes.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/cis_org_setting.rb b/accounting/lib/xero-ruby/models/cis_org_setting.rb index 6afcdc53..1b108877 100644 --- a/accounting/lib/xero-ruby/models/cis_org_setting.rb +++ b/accounting/lib/xero-ruby/models/cis_org_setting.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/cis_setting.rb b/accounting/lib/xero-ruby/models/cis_setting.rb index 57937e2b..50870b60 100644 --- a/accounting/lib/xero-ruby/models/cis_setting.rb +++ b/accounting/lib/xero-ruby/models/cis_setting.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/cis_settings.rb b/accounting/lib/xero-ruby/models/cis_settings.rb index f3d1dd6a..f9244b62 100644 --- a/accounting/lib/xero-ruby/models/cis_settings.rb +++ b/accounting/lib/xero-ruby/models/cis_settings.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contact.rb b/accounting/lib/xero-ruby/models/contact.rb index b46353f2..0b6f1eb9 100644 --- a/accounting/lib/xero-ruby/models/contact.rb +++ b/accounting/lib/xero-ruby/models/contact.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contact_group.rb b/accounting/lib/xero-ruby/models/contact_group.rb index 05eb33b8..555f9e8a 100644 --- a/accounting/lib/xero-ruby/models/contact_group.rb +++ b/accounting/lib/xero-ruby/models/contact_group.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contact_groups.rb b/accounting/lib/xero-ruby/models/contact_groups.rb index b2691474..f245ca93 100644 --- a/accounting/lib/xero-ruby/models/contact_groups.rb +++ b/accounting/lib/xero-ruby/models/contact_groups.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contact_person.rb b/accounting/lib/xero-ruby/models/contact_person.rb index 6dca719c..f1609158 100644 --- a/accounting/lib/xero-ruby/models/contact_person.rb +++ b/accounting/lib/xero-ruby/models/contact_person.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contacts.rb b/accounting/lib/xero-ruby/models/contacts.rb index 60083033..e7e58d9e 100644 --- a/accounting/lib/xero-ruby/models/contacts.rb +++ b/accounting/lib/xero-ruby/models/contacts.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/country_code.rb b/accounting/lib/xero-ruby/models/country_code.rb index 817d208b..d2790fdf 100644 --- a/accounting/lib/xero-ruby/models/country_code.rb +++ b/accounting/lib/xero-ruby/models/country_code.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/credit_note.rb b/accounting/lib/xero-ruby/models/credit_note.rb index 49ca75b8..7fafecda 100644 --- a/accounting/lib/xero-ruby/models/credit_note.rb +++ b/accounting/lib/xero-ruby/models/credit_note.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/credit_notes.rb b/accounting/lib/xero-ruby/models/credit_notes.rb index f8b07c24..5e49ba20 100644 --- a/accounting/lib/xero-ruby/models/credit_notes.rb +++ b/accounting/lib/xero-ruby/models/credit_notes.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/currencies.rb b/accounting/lib/xero-ruby/models/currencies.rb index f90bd527..2cba0740 100644 --- a/accounting/lib/xero-ruby/models/currencies.rb +++ b/accounting/lib/xero-ruby/models/currencies.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/currency.rb b/accounting/lib/xero-ruby/models/currency.rb index 149a11b4..7050ff5f 100644 --- a/accounting/lib/xero-ruby/models/currency.rb +++ b/accounting/lib/xero-ruby/models/currency.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/currency_code.rb b/accounting/lib/xero-ruby/models/currency_code.rb index 38036713..113a293a 100644 --- a/accounting/lib/xero-ruby/models/currency_code.rb +++ b/accounting/lib/xero-ruby/models/currency_code.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/element.rb b/accounting/lib/xero-ruby/models/element.rb index 26d5c7db..48a55d53 100644 --- a/accounting/lib/xero-ruby/models/element.rb +++ b/accounting/lib/xero-ruby/models/element.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/employee.rb b/accounting/lib/xero-ruby/models/employee.rb index 24b89e66..abdb90fe 100644 --- a/accounting/lib/xero-ruby/models/employee.rb +++ b/accounting/lib/xero-ruby/models/employee.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/employees.rb b/accounting/lib/xero-ruby/models/employees.rb index 366c2119..12954589 100644 --- a/accounting/lib/xero-ruby/models/employees.rb +++ b/accounting/lib/xero-ruby/models/employees.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/error.rb b/accounting/lib/xero-ruby/models/error.rb index 71d3fa79..26ceeeb5 100644 --- a/accounting/lib/xero-ruby/models/error.rb +++ b/accounting/lib/xero-ruby/models/error.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/expense_claim.rb b/accounting/lib/xero-ruby/models/expense_claim.rb index 955ec748..625d5d17 100644 --- a/accounting/lib/xero-ruby/models/expense_claim.rb +++ b/accounting/lib/xero-ruby/models/expense_claim.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/expense_claims.rb b/accounting/lib/xero-ruby/models/expense_claims.rb index f9b90c7a..69c40e5d 100644 --- a/accounting/lib/xero-ruby/models/expense_claims.rb +++ b/accounting/lib/xero-ruby/models/expense_claims.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/external_link.rb b/accounting/lib/xero-ruby/models/external_link.rb index 437dfb0e..a7d65008 100644 --- a/accounting/lib/xero-ruby/models/external_link.rb +++ b/accounting/lib/xero-ruby/models/external_link.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/history_record.rb b/accounting/lib/xero-ruby/models/history_record.rb index cc6690e7..2aaa6968 100644 --- a/accounting/lib/xero-ruby/models/history_record.rb +++ b/accounting/lib/xero-ruby/models/history_record.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/history_records.rb b/accounting/lib/xero-ruby/models/history_records.rb index 3f27c7c6..1a6727d6 100644 --- a/accounting/lib/xero-ruby/models/history_records.rb +++ b/accounting/lib/xero-ruby/models/history_records.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/invoice.rb b/accounting/lib/xero-ruby/models/invoice.rb index 0555cf21..316a0433 100644 --- a/accounting/lib/xero-ruby/models/invoice.rb +++ b/accounting/lib/xero-ruby/models/invoice.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/invoice_reminder.rb b/accounting/lib/xero-ruby/models/invoice_reminder.rb index 63d20d6a..56d3a9d4 100644 --- a/accounting/lib/xero-ruby/models/invoice_reminder.rb +++ b/accounting/lib/xero-ruby/models/invoice_reminder.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/invoice_reminders.rb b/accounting/lib/xero-ruby/models/invoice_reminders.rb index d9ef3d04..d36b5bba 100644 --- a/accounting/lib/xero-ruby/models/invoice_reminders.rb +++ b/accounting/lib/xero-ruby/models/invoice_reminders.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/invoices.rb b/accounting/lib/xero-ruby/models/invoices.rb index 265468be..8bb68f07 100644 --- a/accounting/lib/xero-ruby/models/invoices.rb +++ b/accounting/lib/xero-ruby/models/invoices.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/item.rb b/accounting/lib/xero-ruby/models/item.rb index c675c150..269513d4 100644 --- a/accounting/lib/xero-ruby/models/item.rb +++ b/accounting/lib/xero-ruby/models/item.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/items.rb b/accounting/lib/xero-ruby/models/items.rb index ca30b993..a48a9109 100644 --- a/accounting/lib/xero-ruby/models/items.rb +++ b/accounting/lib/xero-ruby/models/items.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/journal.rb b/accounting/lib/xero-ruby/models/journal.rb index ab2b57bf..42217edb 100644 --- a/accounting/lib/xero-ruby/models/journal.rb +++ b/accounting/lib/xero-ruby/models/journal.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/journal_line.rb b/accounting/lib/xero-ruby/models/journal_line.rb index 01c0c076..f8c54b6b 100644 --- a/accounting/lib/xero-ruby/models/journal_line.rb +++ b/accounting/lib/xero-ruby/models/journal_line.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/journals.rb b/accounting/lib/xero-ruby/models/journals.rb index 34ca54f9..1d971709 100644 --- a/accounting/lib/xero-ruby/models/journals.rb +++ b/accounting/lib/xero-ruby/models/journals.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/line_amount_types.rb b/accounting/lib/xero-ruby/models/line_amount_types.rb index 11a8be84..427f3dc0 100644 --- a/accounting/lib/xero-ruby/models/line_amount_types.rb +++ b/accounting/lib/xero-ruby/models/line_amount_types.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/line_item.rb b/accounting/lib/xero-ruby/models/line_item.rb index e56e760b..6a3db7e5 100644 --- a/accounting/lib/xero-ruby/models/line_item.rb +++ b/accounting/lib/xero-ruby/models/line_item.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/line_item_tracking.rb b/accounting/lib/xero-ruby/models/line_item_tracking.rb index 40474d09..766055ea 100644 --- a/accounting/lib/xero-ruby/models/line_item_tracking.rb +++ b/accounting/lib/xero-ruby/models/line_item_tracking.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/linked_transaction.rb b/accounting/lib/xero-ruby/models/linked_transaction.rb index d4a8225c..e05382f2 100644 --- a/accounting/lib/xero-ruby/models/linked_transaction.rb +++ b/accounting/lib/xero-ruby/models/linked_transaction.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/linked_transactions.rb b/accounting/lib/xero-ruby/models/linked_transactions.rb index 9b42ab06..09e6b30f 100644 --- a/accounting/lib/xero-ruby/models/linked_transactions.rb +++ b/accounting/lib/xero-ruby/models/linked_transactions.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/manual_journal.rb b/accounting/lib/xero-ruby/models/manual_journal.rb index fbad1179..958ad0ba 100644 --- a/accounting/lib/xero-ruby/models/manual_journal.rb +++ b/accounting/lib/xero-ruby/models/manual_journal.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/manual_journal_line.rb b/accounting/lib/xero-ruby/models/manual_journal_line.rb index c3b0470f..953ccb7e 100644 --- a/accounting/lib/xero-ruby/models/manual_journal_line.rb +++ b/accounting/lib/xero-ruby/models/manual_journal_line.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/manual_journals.rb b/accounting/lib/xero-ruby/models/manual_journals.rb index bf3d593c..f59d31cd 100644 --- a/accounting/lib/xero-ruby/models/manual_journals.rb +++ b/accounting/lib/xero-ruby/models/manual_journals.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/online_invoice.rb b/accounting/lib/xero-ruby/models/online_invoice.rb index f1101e01..1556e802 100644 --- a/accounting/lib/xero-ruby/models/online_invoice.rb +++ b/accounting/lib/xero-ruby/models/online_invoice.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/online_invoices.rb b/accounting/lib/xero-ruby/models/online_invoices.rb index 80680bfe..11b308e6 100644 --- a/accounting/lib/xero-ruby/models/online_invoices.rb +++ b/accounting/lib/xero-ruby/models/online_invoices.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/organisation.rb b/accounting/lib/xero-ruby/models/organisation.rb index c377bee2..9cdf7e4e 100644 --- a/accounting/lib/xero-ruby/models/organisation.rb +++ b/accounting/lib/xero-ruby/models/organisation.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/organisations.rb b/accounting/lib/xero-ruby/models/organisations.rb index 30045188..15eb221b 100644 --- a/accounting/lib/xero-ruby/models/organisations.rb +++ b/accounting/lib/xero-ruby/models/organisations.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/overpayment.rb b/accounting/lib/xero-ruby/models/overpayment.rb index 3b1b169f..e1a2efe8 100644 --- a/accounting/lib/xero-ruby/models/overpayment.rb +++ b/accounting/lib/xero-ruby/models/overpayment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/overpayments.rb b/accounting/lib/xero-ruby/models/overpayments.rb index d3715b31..27e2a391 100644 --- a/accounting/lib/xero-ruby/models/overpayments.rb +++ b/accounting/lib/xero-ruby/models/overpayments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment.rb b/accounting/lib/xero-ruby/models/payment.rb index 20e509a7..fe8a7be7 100644 --- a/accounting/lib/xero-ruby/models/payment.rb +++ b/accounting/lib/xero-ruby/models/payment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_delete.rb b/accounting/lib/xero-ruby/models/payment_delete.rb index 68e1f606..f292c80d 100644 --- a/accounting/lib/xero-ruby/models/payment_delete.rb +++ b/accounting/lib/xero-ruby/models/payment_delete.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_service.rb b/accounting/lib/xero-ruby/models/payment_service.rb index 6265a2dc..0b3243d9 100644 --- a/accounting/lib/xero-ruby/models/payment_service.rb +++ b/accounting/lib/xero-ruby/models/payment_service.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_services.rb b/accounting/lib/xero-ruby/models/payment_services.rb index 05a7512a..cc9f434c 100644 --- a/accounting/lib/xero-ruby/models/payment_services.rb +++ b/accounting/lib/xero-ruby/models/payment_services.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_term.rb b/accounting/lib/xero-ruby/models/payment_term.rb index 2f2a0974..f65b5f86 100644 --- a/accounting/lib/xero-ruby/models/payment_term.rb +++ b/accounting/lib/xero-ruby/models/payment_term.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_term_type.rb b/accounting/lib/xero-ruby/models/payment_term_type.rb index f29b4e5a..7026f1ea 100644 --- a/accounting/lib/xero-ruby/models/payment_term_type.rb +++ b/accounting/lib/xero-ruby/models/payment_term_type.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payments.rb b/accounting/lib/xero-ruby/models/payments.rb index d7e3341a..350d8ff3 100644 --- a/accounting/lib/xero-ruby/models/payments.rb +++ b/accounting/lib/xero-ruby/models/payments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/phone.rb b/accounting/lib/xero-ruby/models/phone.rb index 43f92864..dd2c28e0 100644 --- a/accounting/lib/xero-ruby/models/phone.rb +++ b/accounting/lib/xero-ruby/models/phone.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/prepayment.rb b/accounting/lib/xero-ruby/models/prepayment.rb index af4e266b..9172e1d6 100644 --- a/accounting/lib/xero-ruby/models/prepayment.rb +++ b/accounting/lib/xero-ruby/models/prepayment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/prepayments.rb b/accounting/lib/xero-ruby/models/prepayments.rb index 602b5613..e607461d 100644 --- a/accounting/lib/xero-ruby/models/prepayments.rb +++ b/accounting/lib/xero-ruby/models/prepayments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/purchase.rb b/accounting/lib/xero-ruby/models/purchase.rb index 6f574ef5..7a9f7c50 100644 --- a/accounting/lib/xero-ruby/models/purchase.rb +++ b/accounting/lib/xero-ruby/models/purchase.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/purchase_order.rb b/accounting/lib/xero-ruby/models/purchase_order.rb index e345d59a..ff430711 100644 --- a/accounting/lib/xero-ruby/models/purchase_order.rb +++ b/accounting/lib/xero-ruby/models/purchase_order.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/purchase_orders.rb b/accounting/lib/xero-ruby/models/purchase_orders.rb index 7872fc2c..ad0def6a 100644 --- a/accounting/lib/xero-ruby/models/purchase_orders.rb +++ b/accounting/lib/xero-ruby/models/purchase_orders.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/quote.rb b/accounting/lib/xero-ruby/models/quote.rb index 0e1ea93e..35fef978 100644 --- a/accounting/lib/xero-ruby/models/quote.rb +++ b/accounting/lib/xero-ruby/models/quote.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/quote_line_amount_types.rb b/accounting/lib/xero-ruby/models/quote_line_amount_types.rb index f40e7849..20fcc818 100644 --- a/accounting/lib/xero-ruby/models/quote_line_amount_types.rb +++ b/accounting/lib/xero-ruby/models/quote_line_amount_types.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/quote_status_codes.rb b/accounting/lib/xero-ruby/models/quote_status_codes.rb index d1cc4621..295e299a 100644 --- a/accounting/lib/xero-ruby/models/quote_status_codes.rb +++ b/accounting/lib/xero-ruby/models/quote_status_codes.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/quotes.rb b/accounting/lib/xero-ruby/models/quotes.rb index bf6642ab..1c9d12df 100644 --- a/accounting/lib/xero-ruby/models/quotes.rb +++ b/accounting/lib/xero-ruby/models/quotes.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/receipt.rb b/accounting/lib/xero-ruby/models/receipt.rb index 227aed46..ce699914 100644 --- a/accounting/lib/xero-ruby/models/receipt.rb +++ b/accounting/lib/xero-ruby/models/receipt.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/receipts.rb b/accounting/lib/xero-ruby/models/receipts.rb index bff3fdc5..1ea999cf 100644 --- a/accounting/lib/xero-ruby/models/receipts.rb +++ b/accounting/lib/xero-ruby/models/receipts.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/repeating_invoice.rb b/accounting/lib/xero-ruby/models/repeating_invoice.rb index 08e07db2..b317b3ba 100644 --- a/accounting/lib/xero-ruby/models/repeating_invoice.rb +++ b/accounting/lib/xero-ruby/models/repeating_invoice.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/repeating_invoices.rb b/accounting/lib/xero-ruby/models/repeating_invoices.rb index 804a6f92..ed041f2f 100644 --- a/accounting/lib/xero-ruby/models/repeating_invoices.rb +++ b/accounting/lib/xero-ruby/models/repeating_invoices.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report.rb b/accounting/lib/xero-ruby/models/report.rb index f5ed1362..e87d83bb 100644 --- a/accounting/lib/xero-ruby/models/report.rb +++ b/accounting/lib/xero-ruby/models/report.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_attribute.rb b/accounting/lib/xero-ruby/models/report_attribute.rb index 4fc60b19..cbef8e24 100644 --- a/accounting/lib/xero-ruby/models/report_attribute.rb +++ b/accounting/lib/xero-ruby/models/report_attribute.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_cell.rb b/accounting/lib/xero-ruby/models/report_cell.rb index 1a56e105..a5fd45dd 100644 --- a/accounting/lib/xero-ruby/models/report_cell.rb +++ b/accounting/lib/xero-ruby/models/report_cell.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_fields.rb b/accounting/lib/xero-ruby/models/report_fields.rb index fb7d273c..97eaab15 100644 --- a/accounting/lib/xero-ruby/models/report_fields.rb +++ b/accounting/lib/xero-ruby/models/report_fields.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_row.rb b/accounting/lib/xero-ruby/models/report_row.rb index 598a7cb0..3705f4e7 100644 --- a/accounting/lib/xero-ruby/models/report_row.rb +++ b/accounting/lib/xero-ruby/models/report_row.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_rows.rb b/accounting/lib/xero-ruby/models/report_rows.rb index ee411fc3..e3ed4eeb 100644 --- a/accounting/lib/xero-ruby/models/report_rows.rb +++ b/accounting/lib/xero-ruby/models/report_rows.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_with_row.rb b/accounting/lib/xero-ruby/models/report_with_row.rb index 4509e604..a9fc7a59 100644 --- a/accounting/lib/xero-ruby/models/report_with_row.rb +++ b/accounting/lib/xero-ruby/models/report_with_row.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_with_rows.rb b/accounting/lib/xero-ruby/models/report_with_rows.rb index e4b68f59..a0f85794 100644 --- a/accounting/lib/xero-ruby/models/report_with_rows.rb +++ b/accounting/lib/xero-ruby/models/report_with_rows.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/reports.rb b/accounting/lib/xero-ruby/models/reports.rb index ae897c98..fab1fc53 100644 --- a/accounting/lib/xero-ruby/models/reports.rb +++ b/accounting/lib/xero-ruby/models/reports.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/request_empty.rb b/accounting/lib/xero-ruby/models/request_empty.rb index d51d9679..df299349 100644 --- a/accounting/lib/xero-ruby/models/request_empty.rb +++ b/accounting/lib/xero-ruby/models/request_empty.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/row_type.rb b/accounting/lib/xero-ruby/models/row_type.rb index 81fdf548..5dc75eb0 100644 --- a/accounting/lib/xero-ruby/models/row_type.rb +++ b/accounting/lib/xero-ruby/models/row_type.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/sales_tracking_category.rb b/accounting/lib/xero-ruby/models/sales_tracking_category.rb index 9f09173b..6426e03e 100644 --- a/accounting/lib/xero-ruby/models/sales_tracking_category.rb +++ b/accounting/lib/xero-ruby/models/sales_tracking_category.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/schedule.rb b/accounting/lib/xero-ruby/models/schedule.rb index 96e5179f..ec8e0304 100644 --- a/accounting/lib/xero-ruby/models/schedule.rb +++ b/accounting/lib/xero-ruby/models/schedule.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tax_component.rb b/accounting/lib/xero-ruby/models/tax_component.rb index 57c3fd44..192936ca 100644 --- a/accounting/lib/xero-ruby/models/tax_component.rb +++ b/accounting/lib/xero-ruby/models/tax_component.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tax_rate.rb b/accounting/lib/xero-ruby/models/tax_rate.rb index 09e928f3..7a9f3ebc 100644 --- a/accounting/lib/xero-ruby/models/tax_rate.rb +++ b/accounting/lib/xero-ruby/models/tax_rate.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tax_rates.rb b/accounting/lib/xero-ruby/models/tax_rates.rb index 30074517..0fee8b9d 100644 --- a/accounting/lib/xero-ruby/models/tax_rates.rb +++ b/accounting/lib/xero-ruby/models/tax_rates.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tax_type.rb b/accounting/lib/xero-ruby/models/tax_type.rb index 7749a922..0c15aaf2 100644 --- a/accounting/lib/xero-ruby/models/tax_type.rb +++ b/accounting/lib/xero-ruby/models/tax_type.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb b/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb index 8f7cf5e8..ad293153 100644 --- a/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb +++ b/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/time_zone.rb b/accounting/lib/xero-ruby/models/time_zone.rb index 7c6d45c2..c620bad2 100644 --- a/accounting/lib/xero-ruby/models/time_zone.rb +++ b/accounting/lib/xero-ruby/models/time_zone.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tracking_categories.rb b/accounting/lib/xero-ruby/models/tracking_categories.rb index dc42b2c8..d34c6555 100644 --- a/accounting/lib/xero-ruby/models/tracking_categories.rb +++ b/accounting/lib/xero-ruby/models/tracking_categories.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tracking_category.rb b/accounting/lib/xero-ruby/models/tracking_category.rb index a960d7b2..9c77e6f7 100644 --- a/accounting/lib/xero-ruby/models/tracking_category.rb +++ b/accounting/lib/xero-ruby/models/tracking_category.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tracking_option.rb b/accounting/lib/xero-ruby/models/tracking_option.rb index e0727447..6fd8efdf 100644 --- a/accounting/lib/xero-ruby/models/tracking_option.rb +++ b/accounting/lib/xero-ruby/models/tracking_option.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tracking_options.rb b/accounting/lib/xero-ruby/models/tracking_options.rb index bf16b3cb..dda90180 100644 --- a/accounting/lib/xero-ruby/models/tracking_options.rb +++ b/accounting/lib/xero-ruby/models/tracking_options.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/user.rb b/accounting/lib/xero-ruby/models/user.rb index 2cb6dc75..e7c6efc6 100644 --- a/accounting/lib/xero-ruby/models/user.rb +++ b/accounting/lib/xero-ruby/models/user.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/users.rb b/accounting/lib/xero-ruby/models/users.rb index dd42e7af..153dcbd4 100644 --- a/accounting/lib/xero-ruby/models/users.rb +++ b/accounting/lib/xero-ruby/models/users.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/validation_error.rb b/accounting/lib/xero-ruby/models/validation_error.rb index ca98f831..8a42cf35 100644 --- a/accounting/lib/xero-ruby/models/validation_error.rb +++ b/accounting/lib/xero-ruby/models/validation_error.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/version.rb b/accounting/lib/xero-ruby/version.rb index b0ec3deb..5cc8c2f8 100644 --- a/accounting/lib/xero-ruby/version.rb +++ b/accounting/lib/xero-ruby/version.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 @@ -11,5 +11,5 @@ =end module XeroRuby - VERSION = '0.3.4' + VERSION = '0.4.0' end diff --git a/accounting/spec/api/accounting_api_spec.rb b/accounting/spec/api/accounting_api_spec.rb index 0fce6b9c..12f70381 100644 --- a/accounting/spec/api/accounting_api_spec.rb +++ b/accounting/spec/api/accounting_api_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 @@ -1858,6 +1858,18 @@ end end + # unit tests for get_purchase_order_as_pdf + # Allows you to retrieve purchase orders as PDF files + # @param xero_tenant_id Xero identifier for Tenant + # @param purchase_order_id Unique identifier for an Purchase Order + # @param [Hash] opts the optional parameters + # @return [File] + describe 'get_purchase_order_as_pdf test' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + # unit tests for get_purchase_order_by_number # Allows you to retrieve a specified purchase orders # @param xero_tenant_id Xero identifier for Tenant diff --git a/accounting/spec/api_client_spec.rb b/accounting/spec/api_client_spec.rb index 985a7f03..15b851a6 100644 --- a/accounting/spec/api_client_spec.rb +++ b/accounting/spec/api_client_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/configuration_spec.rb b/accounting/spec/configuration_spec.rb index 1f94f3dc..103df4e4 100644 --- a/accounting/spec/configuration_spec.rb +++ b/accounting/spec/configuration_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/account_spec.rb b/accounting/spec/models/account_spec.rb index bcf64a6c..86917bfd 100644 --- a/accounting/spec/models/account_spec.rb +++ b/accounting/spec/models/account_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/account_type_spec.rb b/accounting/spec/models/account_type_spec.rb index dd592701..29ac7ac4 100644 --- a/accounting/spec/models/account_type_spec.rb +++ b/accounting/spec/models/account_type_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/accounts_payable_spec.rb b/accounting/spec/models/accounts_payable_spec.rb index 1d98d680..53dd2066 100644 --- a/accounting/spec/models/accounts_payable_spec.rb +++ b/accounting/spec/models/accounts_payable_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/accounts_receivable_spec.rb b/accounting/spec/models/accounts_receivable_spec.rb index 0b0bb433..b1c3831e 100644 --- a/accounting/spec/models/accounts_receivable_spec.rb +++ b/accounting/spec/models/accounts_receivable_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/accounts_spec.rb b/accounting/spec/models/accounts_spec.rb index d0c15414..341f81cb 100644 --- a/accounting/spec/models/accounts_spec.rb +++ b/accounting/spec/models/accounts_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/address_spec.rb b/accounting/spec/models/address_spec.rb index f4195118..9dae59f3 100644 --- a/accounting/spec/models/address_spec.rb +++ b/accounting/spec/models/address_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/allocation_spec.rb b/accounting/spec/models/allocation_spec.rb index 68babd6e..d8165eef 100644 --- a/accounting/spec/models/allocation_spec.rb +++ b/accounting/spec/models/allocation_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/allocations_spec.rb b/accounting/spec/models/allocations_spec.rb index 605b2b5e..6e3aaad7 100644 --- a/accounting/spec/models/allocations_spec.rb +++ b/accounting/spec/models/allocations_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/attachment_spec.rb b/accounting/spec/models/attachment_spec.rb index a6e1dbad..70ebc9f5 100644 --- a/accounting/spec/models/attachment_spec.rb +++ b/accounting/spec/models/attachment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/attachments_spec.rb b/accounting/spec/models/attachments_spec.rb index 77a6fb40..29d17837 100644 --- a/accounting/spec/models/attachments_spec.rb +++ b/accounting/spec/models/attachments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/balances_spec.rb b/accounting/spec/models/balances_spec.rb index 4002a1ae..535f131f 100644 --- a/accounting/spec/models/balances_spec.rb +++ b/accounting/spec/models/balances_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bank_transaction_spec.rb b/accounting/spec/models/bank_transaction_spec.rb index 4157905d..c830ffe2 100644 --- a/accounting/spec/models/bank_transaction_spec.rb +++ b/accounting/spec/models/bank_transaction_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bank_transactions_spec.rb b/accounting/spec/models/bank_transactions_spec.rb index 4a330106..97dc4ea3 100644 --- a/accounting/spec/models/bank_transactions_spec.rb +++ b/accounting/spec/models/bank_transactions_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bank_transfer_spec.rb b/accounting/spec/models/bank_transfer_spec.rb index 13f23c0e..3aabcbf6 100644 --- a/accounting/spec/models/bank_transfer_spec.rb +++ b/accounting/spec/models/bank_transfer_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bank_transfers_spec.rb b/accounting/spec/models/bank_transfers_spec.rb index bc346b08..afb221f8 100644 --- a/accounting/spec/models/bank_transfers_spec.rb +++ b/accounting/spec/models/bank_transfers_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/batch_payment_details_spec.rb b/accounting/spec/models/batch_payment_details_spec.rb index 48b93b5d..bf17d9dc 100644 --- a/accounting/spec/models/batch_payment_details_spec.rb +++ b/accounting/spec/models/batch_payment_details_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/batch_payment_spec.rb b/accounting/spec/models/batch_payment_spec.rb index 0c4fdb61..d1351e69 100644 --- a/accounting/spec/models/batch_payment_spec.rb +++ b/accounting/spec/models/batch_payment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/batch_payments_spec.rb b/accounting/spec/models/batch_payments_spec.rb index 5ec5831b..e69974f5 100644 --- a/accounting/spec/models/batch_payments_spec.rb +++ b/accounting/spec/models/batch_payments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bill_spec.rb b/accounting/spec/models/bill_spec.rb index b3641c7a..27858972 100644 --- a/accounting/spec/models/bill_spec.rb +++ b/accounting/spec/models/bill_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/branding_theme_spec.rb b/accounting/spec/models/branding_theme_spec.rb index da8e35f8..5765b05f 100644 --- a/accounting/spec/models/branding_theme_spec.rb +++ b/accounting/spec/models/branding_theme_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/branding_themes_spec.rb b/accounting/spec/models/branding_themes_spec.rb index c38df659..8fdf04d7 100644 --- a/accounting/spec/models/branding_themes_spec.rb +++ b/accounting/spec/models/branding_themes_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/cis_org_setting_spec.rb b/accounting/spec/models/cis_org_setting_spec.rb index 9fc9d122..1b3d762f 100644 --- a/accounting/spec/models/cis_org_setting_spec.rb +++ b/accounting/spec/models/cis_org_setting_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/cis_setting_spec.rb b/accounting/spec/models/cis_setting_spec.rb index e2dc1e38..71c17bb5 100644 --- a/accounting/spec/models/cis_setting_spec.rb +++ b/accounting/spec/models/cis_setting_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/cis_settings_spec.rb b/accounting/spec/models/cis_settings_spec.rb index 65d4ca27..82868d2b 100644 --- a/accounting/spec/models/cis_settings_spec.rb +++ b/accounting/spec/models/cis_settings_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contact_group_spec.rb b/accounting/spec/models/contact_group_spec.rb index 8d7f9a68..3cf056a1 100644 --- a/accounting/spec/models/contact_group_spec.rb +++ b/accounting/spec/models/contact_group_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contact_groups_spec.rb b/accounting/spec/models/contact_groups_spec.rb index e12d4717..0aed5199 100644 --- a/accounting/spec/models/contact_groups_spec.rb +++ b/accounting/spec/models/contact_groups_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contact_person_spec.rb b/accounting/spec/models/contact_person_spec.rb index e36ada72..72e4ec1c 100644 --- a/accounting/spec/models/contact_person_spec.rb +++ b/accounting/spec/models/contact_person_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contact_spec.rb b/accounting/spec/models/contact_spec.rb index 3b43f089..ad8ac26a 100644 --- a/accounting/spec/models/contact_spec.rb +++ b/accounting/spec/models/contact_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contacts_spec.rb b/accounting/spec/models/contacts_spec.rb index 9222d489..2376b273 100644 --- a/accounting/spec/models/contacts_spec.rb +++ b/accounting/spec/models/contacts_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/country_code_spec.rb b/accounting/spec/models/country_code_spec.rb index 2aa200e5..97771aeb 100644 --- a/accounting/spec/models/country_code_spec.rb +++ b/accounting/spec/models/country_code_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/credit_note_spec.rb b/accounting/spec/models/credit_note_spec.rb index 9ac2f7f5..83bb2b8c 100644 --- a/accounting/spec/models/credit_note_spec.rb +++ b/accounting/spec/models/credit_note_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/credit_notes_spec.rb b/accounting/spec/models/credit_notes_spec.rb index 26193348..ea803411 100644 --- a/accounting/spec/models/credit_notes_spec.rb +++ b/accounting/spec/models/credit_notes_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/currencies_spec.rb b/accounting/spec/models/currencies_spec.rb index 39fbd700..1bae3bc9 100644 --- a/accounting/spec/models/currencies_spec.rb +++ b/accounting/spec/models/currencies_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/currency_code_spec.rb b/accounting/spec/models/currency_code_spec.rb index da261df8..9a8a3fc1 100644 --- a/accounting/spec/models/currency_code_spec.rb +++ b/accounting/spec/models/currency_code_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/currency_spec.rb b/accounting/spec/models/currency_spec.rb index 818d6a03..4ed94e45 100644 --- a/accounting/spec/models/currency_spec.rb +++ b/accounting/spec/models/currency_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/element_spec.rb b/accounting/spec/models/element_spec.rb index 77227ed2..b5c9fcfd 100644 --- a/accounting/spec/models/element_spec.rb +++ b/accounting/spec/models/element_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/employee_spec.rb b/accounting/spec/models/employee_spec.rb index bb814650..6c7d52a3 100644 --- a/accounting/spec/models/employee_spec.rb +++ b/accounting/spec/models/employee_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/employees_spec.rb b/accounting/spec/models/employees_spec.rb index 27e40d1c..2942558e 100644 --- a/accounting/spec/models/employees_spec.rb +++ b/accounting/spec/models/employees_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/error_spec.rb b/accounting/spec/models/error_spec.rb index ca80ed10..9722339a 100644 --- a/accounting/spec/models/error_spec.rb +++ b/accounting/spec/models/error_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/expense_claim_spec.rb b/accounting/spec/models/expense_claim_spec.rb index ff4dca04..18433500 100644 --- a/accounting/spec/models/expense_claim_spec.rb +++ b/accounting/spec/models/expense_claim_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/expense_claims_spec.rb b/accounting/spec/models/expense_claims_spec.rb index ea2f45af..9af86cd4 100644 --- a/accounting/spec/models/expense_claims_spec.rb +++ b/accounting/spec/models/expense_claims_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/external_link_spec.rb b/accounting/spec/models/external_link_spec.rb index 675be3cd..65875635 100644 --- a/accounting/spec/models/external_link_spec.rb +++ b/accounting/spec/models/external_link_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/history_record_spec.rb b/accounting/spec/models/history_record_spec.rb index 697a5e1b..a851f490 100644 --- a/accounting/spec/models/history_record_spec.rb +++ b/accounting/spec/models/history_record_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/history_records_spec.rb b/accounting/spec/models/history_records_spec.rb index 494a8a62..50bc0829 100644 --- a/accounting/spec/models/history_records_spec.rb +++ b/accounting/spec/models/history_records_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/invoice_reminder_spec.rb b/accounting/spec/models/invoice_reminder_spec.rb index e9ddd109..b84ee0fd 100644 --- a/accounting/spec/models/invoice_reminder_spec.rb +++ b/accounting/spec/models/invoice_reminder_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/invoice_reminders_spec.rb b/accounting/spec/models/invoice_reminders_spec.rb index d7f60758..dcb0f5c1 100644 --- a/accounting/spec/models/invoice_reminders_spec.rb +++ b/accounting/spec/models/invoice_reminders_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/invoice_spec.rb b/accounting/spec/models/invoice_spec.rb index f6647910..428e602b 100644 --- a/accounting/spec/models/invoice_spec.rb +++ b/accounting/spec/models/invoice_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/invoices_spec.rb b/accounting/spec/models/invoices_spec.rb index 199ba711..ac231337 100644 --- a/accounting/spec/models/invoices_spec.rb +++ b/accounting/spec/models/invoices_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/item_spec.rb b/accounting/spec/models/item_spec.rb index ee57e322..5529cbb2 100644 --- a/accounting/spec/models/item_spec.rb +++ b/accounting/spec/models/item_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/items_spec.rb b/accounting/spec/models/items_spec.rb index 7abaa42f..a771740c 100644 --- a/accounting/spec/models/items_spec.rb +++ b/accounting/spec/models/items_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/journal_line_spec.rb b/accounting/spec/models/journal_line_spec.rb index 5aa5930b..2b07aceb 100644 --- a/accounting/spec/models/journal_line_spec.rb +++ b/accounting/spec/models/journal_line_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/journal_spec.rb b/accounting/spec/models/journal_spec.rb index 3f661d7a..3bbc49d8 100644 --- a/accounting/spec/models/journal_spec.rb +++ b/accounting/spec/models/journal_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/journals_spec.rb b/accounting/spec/models/journals_spec.rb index f8e19cb9..fb211645 100644 --- a/accounting/spec/models/journals_spec.rb +++ b/accounting/spec/models/journals_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/line_amount_types_spec.rb b/accounting/spec/models/line_amount_types_spec.rb index a32d445b..6c253883 100644 --- a/accounting/spec/models/line_amount_types_spec.rb +++ b/accounting/spec/models/line_amount_types_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/line_item_spec.rb b/accounting/spec/models/line_item_spec.rb index 5acdcb2f..dbfafbf6 100644 --- a/accounting/spec/models/line_item_spec.rb +++ b/accounting/spec/models/line_item_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/line_item_tracking_spec.rb b/accounting/spec/models/line_item_tracking_spec.rb index 6df0e6bc..9c32d6b8 100644 --- a/accounting/spec/models/line_item_tracking_spec.rb +++ b/accounting/spec/models/line_item_tracking_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/linked_transaction_spec.rb b/accounting/spec/models/linked_transaction_spec.rb index 8a275353..b1c8b05c 100644 --- a/accounting/spec/models/linked_transaction_spec.rb +++ b/accounting/spec/models/linked_transaction_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/linked_transactions_spec.rb b/accounting/spec/models/linked_transactions_spec.rb index 38ffcd21..4ada265c 100644 --- a/accounting/spec/models/linked_transactions_spec.rb +++ b/accounting/spec/models/linked_transactions_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/manual_journal_line_spec.rb b/accounting/spec/models/manual_journal_line_spec.rb index 0ee33d7b..d3bd5a57 100644 --- a/accounting/spec/models/manual_journal_line_spec.rb +++ b/accounting/spec/models/manual_journal_line_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/manual_journal_spec.rb b/accounting/spec/models/manual_journal_spec.rb index f370138e..00c8f0e0 100644 --- a/accounting/spec/models/manual_journal_spec.rb +++ b/accounting/spec/models/manual_journal_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/manual_journals_spec.rb b/accounting/spec/models/manual_journals_spec.rb index bd41c552..0e8a5a1e 100644 --- a/accounting/spec/models/manual_journals_spec.rb +++ b/accounting/spec/models/manual_journals_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/online_invoice_spec.rb b/accounting/spec/models/online_invoice_spec.rb index 48aeded9..e4e5c806 100644 --- a/accounting/spec/models/online_invoice_spec.rb +++ b/accounting/spec/models/online_invoice_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/online_invoices_spec.rb b/accounting/spec/models/online_invoices_spec.rb index ad4a846f..84bbb62d 100644 --- a/accounting/spec/models/online_invoices_spec.rb +++ b/accounting/spec/models/online_invoices_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/organisation_spec.rb b/accounting/spec/models/organisation_spec.rb index c3c5249f..2d6c0ad0 100644 --- a/accounting/spec/models/organisation_spec.rb +++ b/accounting/spec/models/organisation_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/organisations_spec.rb b/accounting/spec/models/organisations_spec.rb index b19b2359..a5d3acf2 100644 --- a/accounting/spec/models/organisations_spec.rb +++ b/accounting/spec/models/organisations_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/overpayment_spec.rb b/accounting/spec/models/overpayment_spec.rb index cefeeac4..adeac4f3 100644 --- a/accounting/spec/models/overpayment_spec.rb +++ b/accounting/spec/models/overpayment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/overpayments_spec.rb b/accounting/spec/models/overpayments_spec.rb index c43559f1..f4968861 100644 --- a/accounting/spec/models/overpayments_spec.rb +++ b/accounting/spec/models/overpayments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_delete_spec.rb b/accounting/spec/models/payment_delete_spec.rb index 0087adba..bbba9da5 100644 --- a/accounting/spec/models/payment_delete_spec.rb +++ b/accounting/spec/models/payment_delete_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_service_spec.rb b/accounting/spec/models/payment_service_spec.rb index 091147f0..8eb8f8d8 100644 --- a/accounting/spec/models/payment_service_spec.rb +++ b/accounting/spec/models/payment_service_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_services_spec.rb b/accounting/spec/models/payment_services_spec.rb index 14d64769..4d38f1ce 100644 --- a/accounting/spec/models/payment_services_spec.rb +++ b/accounting/spec/models/payment_services_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_spec.rb b/accounting/spec/models/payment_spec.rb index f4fc7713..d0d38a05 100644 --- a/accounting/spec/models/payment_spec.rb +++ b/accounting/spec/models/payment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_term_spec.rb b/accounting/spec/models/payment_term_spec.rb index f6b842f6..c3e4a1cb 100644 --- a/accounting/spec/models/payment_term_spec.rb +++ b/accounting/spec/models/payment_term_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_term_type_spec.rb b/accounting/spec/models/payment_term_type_spec.rb index 1d847e6c..dc3fa4ab 100644 --- a/accounting/spec/models/payment_term_type_spec.rb +++ b/accounting/spec/models/payment_term_type_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payments_spec.rb b/accounting/spec/models/payments_spec.rb index 72337033..bc7b6cfc 100644 --- a/accounting/spec/models/payments_spec.rb +++ b/accounting/spec/models/payments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/phone_spec.rb b/accounting/spec/models/phone_spec.rb index 95eae3d7..d7f5929d 100644 --- a/accounting/spec/models/phone_spec.rb +++ b/accounting/spec/models/phone_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/prepayment_spec.rb b/accounting/spec/models/prepayment_spec.rb index 748cd803..1defc97a 100644 --- a/accounting/spec/models/prepayment_spec.rb +++ b/accounting/spec/models/prepayment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/prepayments_spec.rb b/accounting/spec/models/prepayments_spec.rb index 1de141d2..aa113b1e 100644 --- a/accounting/spec/models/prepayments_spec.rb +++ b/accounting/spec/models/prepayments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/purchase_order_spec.rb b/accounting/spec/models/purchase_order_spec.rb index de5c28ef..8b69a6fa 100644 --- a/accounting/spec/models/purchase_order_spec.rb +++ b/accounting/spec/models/purchase_order_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/purchase_orders_spec.rb b/accounting/spec/models/purchase_orders_spec.rb index 53eea25a..4ac7201a 100644 --- a/accounting/spec/models/purchase_orders_spec.rb +++ b/accounting/spec/models/purchase_orders_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/purchase_spec.rb b/accounting/spec/models/purchase_spec.rb index d06c6589..14ea12e6 100644 --- a/accounting/spec/models/purchase_spec.rb +++ b/accounting/spec/models/purchase_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/quote_line_amount_types_spec.rb b/accounting/spec/models/quote_line_amount_types_spec.rb index 8c328ab5..bad96aa5 100644 --- a/accounting/spec/models/quote_line_amount_types_spec.rb +++ b/accounting/spec/models/quote_line_amount_types_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/quote_spec.rb b/accounting/spec/models/quote_spec.rb index 60cdf5c2..fb025ce5 100644 --- a/accounting/spec/models/quote_spec.rb +++ b/accounting/spec/models/quote_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/quote_status_codes_spec.rb b/accounting/spec/models/quote_status_codes_spec.rb index e439f8a2..f8483afb 100644 --- a/accounting/spec/models/quote_status_codes_spec.rb +++ b/accounting/spec/models/quote_status_codes_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/quotes_spec.rb b/accounting/spec/models/quotes_spec.rb index 0cda3fc4..240ba084 100644 --- a/accounting/spec/models/quotes_spec.rb +++ b/accounting/spec/models/quotes_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/receipt_spec.rb b/accounting/spec/models/receipt_spec.rb index 21440837..419b2262 100644 --- a/accounting/spec/models/receipt_spec.rb +++ b/accounting/spec/models/receipt_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/receipts_spec.rb b/accounting/spec/models/receipts_spec.rb index bf80d99d..ba6455ec 100644 --- a/accounting/spec/models/receipts_spec.rb +++ b/accounting/spec/models/receipts_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/repeating_invoice_spec.rb b/accounting/spec/models/repeating_invoice_spec.rb index db27ad6b..3a2c91fd 100644 --- a/accounting/spec/models/repeating_invoice_spec.rb +++ b/accounting/spec/models/repeating_invoice_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/repeating_invoices_spec.rb b/accounting/spec/models/repeating_invoices_spec.rb index d68ba7c7..e5dd9de3 100644 --- a/accounting/spec/models/repeating_invoices_spec.rb +++ b/accounting/spec/models/repeating_invoices_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_attribute_spec.rb b/accounting/spec/models/report_attribute_spec.rb index d1230d97..b6068036 100644 --- a/accounting/spec/models/report_attribute_spec.rb +++ b/accounting/spec/models/report_attribute_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_cell_spec.rb b/accounting/spec/models/report_cell_spec.rb index d137fb0b..c2b4e21a 100644 --- a/accounting/spec/models/report_cell_spec.rb +++ b/accounting/spec/models/report_cell_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_fields_spec.rb b/accounting/spec/models/report_fields_spec.rb index b2fcd774..2ffddeec 100644 --- a/accounting/spec/models/report_fields_spec.rb +++ b/accounting/spec/models/report_fields_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_row_spec.rb b/accounting/spec/models/report_row_spec.rb index 7f2acb1e..4451639c 100644 --- a/accounting/spec/models/report_row_spec.rb +++ b/accounting/spec/models/report_row_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_rows_spec.rb b/accounting/spec/models/report_rows_spec.rb index c617f725..acc0da1c 100644 --- a/accounting/spec/models/report_rows_spec.rb +++ b/accounting/spec/models/report_rows_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_spec.rb b/accounting/spec/models/report_spec.rb index 82d50024..e2d3e2ab 100644 --- a/accounting/spec/models/report_spec.rb +++ b/accounting/spec/models/report_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_with_row_spec.rb b/accounting/spec/models/report_with_row_spec.rb index 2c92f0c3..ecf3c378 100644 --- a/accounting/spec/models/report_with_row_spec.rb +++ b/accounting/spec/models/report_with_row_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_with_rows_spec.rb b/accounting/spec/models/report_with_rows_spec.rb index 15cee891..e360df36 100644 --- a/accounting/spec/models/report_with_rows_spec.rb +++ b/accounting/spec/models/report_with_rows_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/reports_spec.rb b/accounting/spec/models/reports_spec.rb index c31a6c28..021de957 100644 --- a/accounting/spec/models/reports_spec.rb +++ b/accounting/spec/models/reports_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/request_empty_spec.rb b/accounting/spec/models/request_empty_spec.rb index f7219233..29b319eb 100644 --- a/accounting/spec/models/request_empty_spec.rb +++ b/accounting/spec/models/request_empty_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/row_type_spec.rb b/accounting/spec/models/row_type_spec.rb index e651370d..c39c5a79 100644 --- a/accounting/spec/models/row_type_spec.rb +++ b/accounting/spec/models/row_type_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/sales_tracking_category_spec.rb b/accounting/spec/models/sales_tracking_category_spec.rb index 4f802948..cddbd50a 100644 --- a/accounting/spec/models/sales_tracking_category_spec.rb +++ b/accounting/spec/models/sales_tracking_category_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/schedule_spec.rb b/accounting/spec/models/schedule_spec.rb index c302e219..7f7c83b6 100644 --- a/accounting/spec/models/schedule_spec.rb +++ b/accounting/spec/models/schedule_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tax_component_spec.rb b/accounting/spec/models/tax_component_spec.rb index e0466260..bd96928d 100644 --- a/accounting/spec/models/tax_component_spec.rb +++ b/accounting/spec/models/tax_component_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tax_rate_spec.rb b/accounting/spec/models/tax_rate_spec.rb index f8898639..ee61bb41 100644 --- a/accounting/spec/models/tax_rate_spec.rb +++ b/accounting/spec/models/tax_rate_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tax_rates_spec.rb b/accounting/spec/models/tax_rates_spec.rb index d9c044e6..20faffa8 100644 --- a/accounting/spec/models/tax_rates_spec.rb +++ b/accounting/spec/models/tax_rates_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tax_type_spec.rb b/accounting/spec/models/tax_type_spec.rb index c5468981..f036cdae 100644 --- a/accounting/spec/models/tax_type_spec.rb +++ b/accounting/spec/models/tax_type_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/ten_nintey_nine_contact_spec.rb b/accounting/spec/models/ten_nintey_nine_contact_spec.rb index 1ba3969a..aad9a392 100644 --- a/accounting/spec/models/ten_nintey_nine_contact_spec.rb +++ b/accounting/spec/models/ten_nintey_nine_contact_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/time_zone_spec.rb b/accounting/spec/models/time_zone_spec.rb index fea6d574..1369439a 100644 --- a/accounting/spec/models/time_zone_spec.rb +++ b/accounting/spec/models/time_zone_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tracking_categories_spec.rb b/accounting/spec/models/tracking_categories_spec.rb index 2648d54f..7534a364 100644 --- a/accounting/spec/models/tracking_categories_spec.rb +++ b/accounting/spec/models/tracking_categories_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tracking_category_spec.rb b/accounting/spec/models/tracking_category_spec.rb index caace24c..50090865 100644 --- a/accounting/spec/models/tracking_category_spec.rb +++ b/accounting/spec/models/tracking_category_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tracking_option_spec.rb b/accounting/spec/models/tracking_option_spec.rb index 0c885c10..d45d8d50 100644 --- a/accounting/spec/models/tracking_option_spec.rb +++ b/accounting/spec/models/tracking_option_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tracking_options_spec.rb b/accounting/spec/models/tracking_options_spec.rb index 89aa8169..305a345a 100644 --- a/accounting/spec/models/tracking_options_spec.rb +++ b/accounting/spec/models/tracking_options_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/user_spec.rb b/accounting/spec/models/user_spec.rb index 4aed96ee..b4429d1c 100644 --- a/accounting/spec/models/user_spec.rb +++ b/accounting/spec/models/user_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/users_spec.rb b/accounting/spec/models/users_spec.rb index 7d44351c..b4ee8175 100644 --- a/accounting/spec/models/users_spec.rb +++ b/accounting/spec/models/users_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/validation_error_spec.rb b/accounting/spec/models/validation_error_spec.rb index 7c19e43e..7b392ece 100644 --- a/accounting/spec/models/validation_error_spec.rb +++ b/accounting/spec/models/validation_error_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/spec_helper.rb b/accounting/spec/spec_helper.rb index b678a538..146730fe 100644 --- a/accounting/spec/spec_helper.rb +++ b/accounting/spec/spec_helper.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/xero-ruby.gemspec b/accounting/xero-ruby.gemspec index 35c84665..ced4ec0d 100644 --- a/accounting/xero-ruby.gemspec +++ b/accounting/xero-ruby.gemspec @@ -5,7 +5,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.7 +The version of the OpenAPI document: 2.0.8 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 From 803aefd51699b90f05bb6c3852aef62b853d0ca6 Mon Sep 17 00:00:00 2001 From: serknight Date: Wed, 8 Apr 2020 17:00:27 -0600 Subject: [PATCH 4/9] comment --- accounting/lib/xero-ruby/api_client.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/accounting/lib/xero-ruby/api_client.rb b/accounting/lib/xero-ruby/api_client.rb index 080362af..282858b9 100644 --- a/accounting/lib/xero-ruby/api_client.rb +++ b/accounting/lib/xero-ruby/api_client.rb @@ -50,8 +50,7 @@ def accounting_client XeroRuby::AccountingApi.new(self) end - # TOKEN Helpers - + # Token Helpers def token_set XeroRuby.configure.token_set end From cb11a9dbbb99c05811afb347c0f26b5d78febf7a Mon Sep 17 00:00:00 2001 From: serknight Date: Tue, 14 Apr 2020 17:09:55 -0600 Subject: [PATCH 5/9] give credentials a default --- accounting/lib/xero-ruby/api_client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accounting/lib/xero-ruby/api_client.rb b/accounting/lib/xero-ruby/api_client.rb index 282858b9..e5be0845 100644 --- a/accounting/lib/xero-ruby/api_client.rb +++ b/accounting/lib/xero-ruby/api_client.rb @@ -28,7 +28,7 @@ class ApiClient # Initializes the ApiClient # @option config [Configuration] Configuration for initializing the object, default to Configuration.default - def initialize(config: Configuration.default, credentials:) + def initialize(config: Configuration.default, credentials: {}) @client_id = credentials[:client_id] @client_secret = credentials[:client_secret] @redirect_uri = credentials[:redirect_uri] From ecb5fe018d3b8ea3bb66f0e21622ff64d99853a1 Mon Sep 17 00:00:00 2001 From: serknight Date: Wed, 15 Apr 2020 16:38:49 -0600 Subject: [PATCH 6/9] generated with the disconnect & other token helper --- README.md | 10 +++------- accounting/README.md | 2 +- accounting/lib/xero-ruby.rb | 2 +- accounting/lib/xero-ruby/api/accounting_api.rb | 2 +- accounting/lib/xero-ruby/api_client.rb | 11 +++++++++-- accounting/lib/xero-ruby/api_error.rb | 2 +- accounting/lib/xero-ruby/configuration.rb | 2 +- accounting/lib/xero-ruby/models/account.rb | 2 +- accounting/lib/xero-ruby/models/account_type.rb | 2 +- accounting/lib/xero-ruby/models/accounts.rb | 2 +- accounting/lib/xero-ruby/models/accounts_payable.rb | 2 +- .../lib/xero-ruby/models/accounts_receivable.rb | 2 +- accounting/lib/xero-ruby/models/address.rb | 2 +- accounting/lib/xero-ruby/models/allocation.rb | 2 +- accounting/lib/xero-ruby/models/allocations.rb | 2 +- accounting/lib/xero-ruby/models/attachment.rb | 2 +- accounting/lib/xero-ruby/models/attachments.rb | 2 +- accounting/lib/xero-ruby/models/balances.rb | 2 +- accounting/lib/xero-ruby/models/bank_transaction.rb | 2 +- accounting/lib/xero-ruby/models/bank_transactions.rb | 2 +- accounting/lib/xero-ruby/models/bank_transfer.rb | 2 +- accounting/lib/xero-ruby/models/bank_transfers.rb | 2 +- accounting/lib/xero-ruby/models/batch_payment.rb | 2 +- .../lib/xero-ruby/models/batch_payment_details.rb | 2 +- accounting/lib/xero-ruby/models/batch_payments.rb | 2 +- accounting/lib/xero-ruby/models/bill.rb | 2 +- accounting/lib/xero-ruby/models/branding_theme.rb | 2 +- accounting/lib/xero-ruby/models/branding_themes.rb | 2 +- accounting/lib/xero-ruby/models/cis_org_setting.rb | 2 +- accounting/lib/xero-ruby/models/cis_setting.rb | 2 +- accounting/lib/xero-ruby/models/cis_settings.rb | 2 +- accounting/lib/xero-ruby/models/contact.rb | 2 +- accounting/lib/xero-ruby/models/contact_group.rb | 2 +- accounting/lib/xero-ruby/models/contact_groups.rb | 2 +- accounting/lib/xero-ruby/models/contact_person.rb | 2 +- accounting/lib/xero-ruby/models/contacts.rb | 2 +- accounting/lib/xero-ruby/models/country_code.rb | 2 +- accounting/lib/xero-ruby/models/credit_note.rb | 2 +- accounting/lib/xero-ruby/models/credit_notes.rb | 2 +- accounting/lib/xero-ruby/models/currencies.rb | 2 +- accounting/lib/xero-ruby/models/currency.rb | 2 +- accounting/lib/xero-ruby/models/currency_code.rb | 2 +- accounting/lib/xero-ruby/models/element.rb | 2 +- accounting/lib/xero-ruby/models/employee.rb | 2 +- accounting/lib/xero-ruby/models/employees.rb | 2 +- accounting/lib/xero-ruby/models/error.rb | 2 +- accounting/lib/xero-ruby/models/expense_claim.rb | 2 +- accounting/lib/xero-ruby/models/expense_claims.rb | 2 +- accounting/lib/xero-ruby/models/external_link.rb | 2 +- accounting/lib/xero-ruby/models/history_record.rb | 2 +- accounting/lib/xero-ruby/models/history_records.rb | 2 +- accounting/lib/xero-ruby/models/invoice.rb | 2 +- accounting/lib/xero-ruby/models/invoice_reminder.rb | 2 +- accounting/lib/xero-ruby/models/invoice_reminders.rb | 2 +- accounting/lib/xero-ruby/models/invoices.rb | 2 +- accounting/lib/xero-ruby/models/item.rb | 2 +- accounting/lib/xero-ruby/models/items.rb | 2 +- accounting/lib/xero-ruby/models/journal.rb | 2 +- accounting/lib/xero-ruby/models/journal_line.rb | 2 +- accounting/lib/xero-ruby/models/journals.rb | 2 +- accounting/lib/xero-ruby/models/line_amount_types.rb | 2 +- accounting/lib/xero-ruby/models/line_item.rb | 2 +- accounting/lib/xero-ruby/models/line_item_tracking.rb | 2 +- accounting/lib/xero-ruby/models/linked_transaction.rb | 2 +- .../lib/xero-ruby/models/linked_transactions.rb | 2 +- accounting/lib/xero-ruby/models/manual_journal.rb | 2 +- .../lib/xero-ruby/models/manual_journal_line.rb | 2 +- accounting/lib/xero-ruby/models/manual_journals.rb | 2 +- accounting/lib/xero-ruby/models/online_invoice.rb | 2 +- accounting/lib/xero-ruby/models/online_invoices.rb | 2 +- accounting/lib/xero-ruby/models/organisation.rb | 2 +- accounting/lib/xero-ruby/models/organisations.rb | 2 +- accounting/lib/xero-ruby/models/overpayment.rb | 2 +- accounting/lib/xero-ruby/models/overpayments.rb | 2 +- accounting/lib/xero-ruby/models/payment.rb | 2 +- accounting/lib/xero-ruby/models/payment_delete.rb | 2 +- accounting/lib/xero-ruby/models/payment_service.rb | 2 +- accounting/lib/xero-ruby/models/payment_services.rb | 2 +- accounting/lib/xero-ruby/models/payment_term.rb | 2 +- accounting/lib/xero-ruby/models/payment_term_type.rb | 2 +- accounting/lib/xero-ruby/models/payments.rb | 2 +- accounting/lib/xero-ruby/models/phone.rb | 2 +- accounting/lib/xero-ruby/models/prepayment.rb | 2 +- accounting/lib/xero-ruby/models/prepayments.rb | 2 +- accounting/lib/xero-ruby/models/purchase.rb | 2 +- accounting/lib/xero-ruby/models/purchase_order.rb | 2 +- accounting/lib/xero-ruby/models/purchase_orders.rb | 2 +- accounting/lib/xero-ruby/models/quote.rb | 2 +- .../lib/xero-ruby/models/quote_line_amount_types.rb | 2 +- accounting/lib/xero-ruby/models/quote_status_codes.rb | 2 +- accounting/lib/xero-ruby/models/quotes.rb | 2 +- accounting/lib/xero-ruby/models/receipt.rb | 2 +- accounting/lib/xero-ruby/models/receipts.rb | 2 +- accounting/lib/xero-ruby/models/repeating_invoice.rb | 2 +- accounting/lib/xero-ruby/models/repeating_invoices.rb | 2 +- accounting/lib/xero-ruby/models/report.rb | 2 +- accounting/lib/xero-ruby/models/report_attribute.rb | 2 +- accounting/lib/xero-ruby/models/report_cell.rb | 2 +- accounting/lib/xero-ruby/models/report_fields.rb | 2 +- accounting/lib/xero-ruby/models/report_row.rb | 2 +- accounting/lib/xero-ruby/models/report_rows.rb | 2 +- accounting/lib/xero-ruby/models/report_with_row.rb | 2 +- accounting/lib/xero-ruby/models/report_with_rows.rb | 2 +- accounting/lib/xero-ruby/models/reports.rb | 2 +- accounting/lib/xero-ruby/models/request_empty.rb | 2 +- accounting/lib/xero-ruby/models/row_type.rb | 2 +- .../lib/xero-ruby/models/sales_tracking_category.rb | 2 +- accounting/lib/xero-ruby/models/schedule.rb | 2 +- accounting/lib/xero-ruby/models/tax_component.rb | 2 +- accounting/lib/xero-ruby/models/tax_rate.rb | 2 +- accounting/lib/xero-ruby/models/tax_rates.rb | 2 +- accounting/lib/xero-ruby/models/tax_type.rb | 2 +- .../lib/xero-ruby/models/ten_nintey_nine_contact.rb | 2 +- accounting/lib/xero-ruby/models/time_zone.rb | 2 +- .../lib/xero-ruby/models/tracking_categories.rb | 2 +- accounting/lib/xero-ruby/models/tracking_category.rb | 2 +- accounting/lib/xero-ruby/models/tracking_option.rb | 2 +- accounting/lib/xero-ruby/models/tracking_options.rb | 2 +- accounting/lib/xero-ruby/models/user.rb | 2 +- accounting/lib/xero-ruby/models/users.rb | 2 +- accounting/lib/xero-ruby/models/validation_error.rb | 2 +- accounting/lib/xero-ruby/version.rb | 2 +- accounting/spec/api/accounting_api_spec.rb | 2 +- accounting/spec/api_client_spec.rb | 2 +- accounting/spec/configuration_spec.rb | 2 +- accounting/spec/models/account_spec.rb | 2 +- accounting/spec/models/account_type_spec.rb | 2 +- accounting/spec/models/accounts_payable_spec.rb | 2 +- accounting/spec/models/accounts_receivable_spec.rb | 2 +- accounting/spec/models/accounts_spec.rb | 2 +- accounting/spec/models/address_spec.rb | 2 +- accounting/spec/models/allocation_spec.rb | 2 +- accounting/spec/models/allocations_spec.rb | 2 +- accounting/spec/models/attachment_spec.rb | 2 +- accounting/spec/models/attachments_spec.rb | 2 +- accounting/spec/models/balances_spec.rb | 2 +- accounting/spec/models/bank_transaction_spec.rb | 2 +- accounting/spec/models/bank_transactions_spec.rb | 2 +- accounting/spec/models/bank_transfer_spec.rb | 2 +- accounting/spec/models/bank_transfers_spec.rb | 2 +- accounting/spec/models/batch_payment_details_spec.rb | 2 +- accounting/spec/models/batch_payment_spec.rb | 2 +- accounting/spec/models/batch_payments_spec.rb | 2 +- accounting/spec/models/bill_spec.rb | 2 +- accounting/spec/models/branding_theme_spec.rb | 2 +- accounting/spec/models/branding_themes_spec.rb | 2 +- accounting/spec/models/cis_org_setting_spec.rb | 2 +- accounting/spec/models/cis_setting_spec.rb | 2 +- accounting/spec/models/cis_settings_spec.rb | 2 +- accounting/spec/models/contact_group_spec.rb | 2 +- accounting/spec/models/contact_groups_spec.rb | 2 +- accounting/spec/models/contact_person_spec.rb | 2 +- accounting/spec/models/contact_spec.rb | 2 +- accounting/spec/models/contacts_spec.rb | 2 +- accounting/spec/models/country_code_spec.rb | 2 +- accounting/spec/models/credit_note_spec.rb | 2 +- accounting/spec/models/credit_notes_spec.rb | 2 +- accounting/spec/models/currencies_spec.rb | 2 +- accounting/spec/models/currency_code_spec.rb | 2 +- accounting/spec/models/currency_spec.rb | 2 +- accounting/spec/models/element_spec.rb | 2 +- accounting/spec/models/employee_spec.rb | 2 +- accounting/spec/models/employees_spec.rb | 2 +- accounting/spec/models/error_spec.rb | 2 +- accounting/spec/models/expense_claim_spec.rb | 2 +- accounting/spec/models/expense_claims_spec.rb | 2 +- accounting/spec/models/external_link_spec.rb | 2 +- accounting/spec/models/history_record_spec.rb | 2 +- accounting/spec/models/history_records_spec.rb | 2 +- accounting/spec/models/invoice_reminder_spec.rb | 2 +- accounting/spec/models/invoice_reminders_spec.rb | 2 +- accounting/spec/models/invoice_spec.rb | 2 +- accounting/spec/models/invoices_spec.rb | 2 +- accounting/spec/models/item_spec.rb | 2 +- accounting/spec/models/items_spec.rb | 2 +- accounting/spec/models/journal_line_spec.rb | 2 +- accounting/spec/models/journal_spec.rb | 2 +- accounting/spec/models/journals_spec.rb | 2 +- accounting/spec/models/line_amount_types_spec.rb | 2 +- accounting/spec/models/line_item_spec.rb | 2 +- accounting/spec/models/line_item_tracking_spec.rb | 2 +- accounting/spec/models/linked_transaction_spec.rb | 2 +- accounting/spec/models/linked_transactions_spec.rb | 2 +- accounting/spec/models/manual_journal_line_spec.rb | 2 +- accounting/spec/models/manual_journal_spec.rb | 2 +- accounting/spec/models/manual_journals_spec.rb | 2 +- accounting/spec/models/online_invoice_spec.rb | 2 +- accounting/spec/models/online_invoices_spec.rb | 2 +- accounting/spec/models/organisation_spec.rb | 2 +- accounting/spec/models/organisations_spec.rb | 2 +- accounting/spec/models/overpayment_spec.rb | 2 +- accounting/spec/models/overpayments_spec.rb | 2 +- accounting/spec/models/payment_delete_spec.rb | 2 +- accounting/spec/models/payment_service_spec.rb | 2 +- accounting/spec/models/payment_services_spec.rb | 2 +- accounting/spec/models/payment_spec.rb | 2 +- accounting/spec/models/payment_term_spec.rb | 2 +- accounting/spec/models/payment_term_type_spec.rb | 2 +- accounting/spec/models/payments_spec.rb | 2 +- accounting/spec/models/phone_spec.rb | 2 +- accounting/spec/models/prepayment_spec.rb | 2 +- accounting/spec/models/prepayments_spec.rb | 2 +- accounting/spec/models/purchase_order_spec.rb | 2 +- accounting/spec/models/purchase_orders_spec.rb | 2 +- accounting/spec/models/purchase_spec.rb | 2 +- .../spec/models/quote_line_amount_types_spec.rb | 2 +- accounting/spec/models/quote_spec.rb | 2 +- accounting/spec/models/quote_status_codes_spec.rb | 2 +- accounting/spec/models/quotes_spec.rb | 2 +- accounting/spec/models/receipt_spec.rb | 2 +- accounting/spec/models/receipts_spec.rb | 2 +- accounting/spec/models/repeating_invoice_spec.rb | 2 +- accounting/spec/models/repeating_invoices_spec.rb | 2 +- accounting/spec/models/report_attribute_spec.rb | 2 +- accounting/spec/models/report_cell_spec.rb | 2 +- accounting/spec/models/report_fields_spec.rb | 2 +- accounting/spec/models/report_row_spec.rb | 2 +- accounting/spec/models/report_rows_spec.rb | 2 +- accounting/spec/models/report_spec.rb | 2 +- accounting/spec/models/report_with_row_spec.rb | 2 +- accounting/spec/models/report_with_rows_spec.rb | 2 +- accounting/spec/models/reports_spec.rb | 2 +- accounting/spec/models/request_empty_spec.rb | 2 +- accounting/spec/models/row_type_spec.rb | 2 +- .../spec/models/sales_tracking_category_spec.rb | 2 +- accounting/spec/models/schedule_spec.rb | 2 +- accounting/spec/models/tax_component_spec.rb | 2 +- accounting/spec/models/tax_rate_spec.rb | 2 +- accounting/spec/models/tax_rates_spec.rb | 2 +- accounting/spec/models/tax_type_spec.rb | 2 +- .../spec/models/ten_nintey_nine_contact_spec.rb | 2 +- accounting/spec/models/time_zone_spec.rb | 2 +- accounting/spec/models/tracking_categories_spec.rb | 2 +- accounting/spec/models/tracking_category_spec.rb | 2 +- accounting/spec/models/tracking_option_spec.rb | 2 +- accounting/spec/models/tracking_options_spec.rb | 2 +- accounting/spec/models/user_spec.rb | 2 +- accounting/spec/models/users_spec.rb | 2 +- accounting/spec/models/validation_error_spec.rb | 2 +- accounting/spec/spec_helper.rb | 2 +- accounting/xero-ruby.gemspec | 2 +- 241 files changed, 251 insertions(+), 248 deletions(-) diff --git a/README.md b/README.md index 67e55799..11609809 100644 --- a/README.md +++ b/README.md @@ -5,29 +5,25 @@ Xero Ruby SDK for OAuth 2.0 generated from [Xero API OpenAPI Spec](https://githu ## Current release of SDK with OAuth 2.0 support Version 0.x.x of Xero Ruby SDK only supports OAuth 2.0 authentication and the following API sets. -* accounting -* identity +* [accounting](https://developer.xero.com/documentation/api/api-overview) Coming soon * bank feeds * payroll au -* fixed asset +* [assets](https://developer.xero.com/documentation/assets-api/overview) * payroll nz/uk * files * projects * xero hq -## How to handle OAuth 2.0 authentication & authorization? -We have built an Omniauth strategy for Xero OAuth 2.0. Check out [omniauth-xero-oauth2](https://github.com/XeroAPI/xero-oauth2-omniauth-strategy) [![RubyGem](https://img.shields.io/badge/omniauth--xero--oauth2%20gem-v0.9.3-brightgreen)](https://rubygems.org/gems/omniauth-xero-oauth2) To learn more about how our OAuth 2.0 flow works and how to use our Omniauth strategy, check out our Xero developer blog post: [Xero OAuth 2.0 with Ruby](https://devblog.xero.com/xero-oauth-2-with-ruby-313a6ea37989) -![image](https://user-images.githubusercontent.com/41350731/70225201-b2324080-17a2-11ea-8966-23efafa6df52.png) ## Looking for OAuth 1.0a support? -Check out [Xeroizer](https://github.com/waynerobinson/xeroizer) gem built by Wayne Robinson and our community developers. +Check out the [Xeroizer](https://github.com/waynerobinson/xeroizer) gem (maintained by community) ## Installation This SDK is published a gem on RubyGems.org as xero-ruby diff --git a/accounting/README.md b/accounting/README.md index abf33999..6b4ef074 100644 --- a/accounting/README.md +++ b/accounting/README.md @@ -6,7 +6,7 @@ No description provided (generated by Openapi Generator https://github.com/opena This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 2.0.8 +- API version: 2.0.9 - Package version: 0.4.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit [https://developer.xero.com](https://developer.xero.com) diff --git a/accounting/lib/xero-ruby.rb b/accounting/lib/xero-ruby.rb index 41eb3fd8..2ea10b73 100644 --- a/accounting/lib/xero-ruby.rb +++ b/accounting/lib/xero-ruby.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/api/accounting_api.rb b/accounting/lib/xero-ruby/api/accounting_api.rb index af7cca1b..96c7ab5c 100644 --- a/accounting/lib/xero-ruby/api/accounting_api.rb +++ b/accounting/lib/xero-ruby/api/accounting_api.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/api_client.rb b/accounting/lib/xero-ruby/api_client.rb index e5be0845..2cf8a52b 100644 --- a/accounting/lib/xero-ruby/api_client.rb +++ b/accounting/lib/xero-ruby/api_client.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 @@ -105,10 +105,17 @@ def connections req.headers['Content-Type'] = 'application/json' end body = JSON.parse(response.body) - puts "body: #{body}" return body end + def disconnect(connection_id) + Faraday.delete("https://api.xero.com/connections/#{connection_id}") do |req| + req.headers['Authorization'] = "Bearer #{access_token}" + req.headers['Content-Type'] = 'application/json' + end + return connections + end + # Call an API with given options. # # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: diff --git a/accounting/lib/xero-ruby/api_error.rb b/accounting/lib/xero-ruby/api_error.rb index 96d70f78..a8601626 100644 --- a/accounting/lib/xero-ruby/api_error.rb +++ b/accounting/lib/xero-ruby/api_error.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/configuration.rb b/accounting/lib/xero-ruby/configuration.rb index eef2659a..bca51ad2 100644 --- a/accounting/lib/xero-ruby/configuration.rb +++ b/accounting/lib/xero-ruby/configuration.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/account.rb b/accounting/lib/xero-ruby/models/account.rb index 22a69dac..1a43e102 100644 --- a/accounting/lib/xero-ruby/models/account.rb +++ b/accounting/lib/xero-ruby/models/account.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/account_type.rb b/accounting/lib/xero-ruby/models/account_type.rb index 5868a661..c1e92c21 100644 --- a/accounting/lib/xero-ruby/models/account_type.rb +++ b/accounting/lib/xero-ruby/models/account_type.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/accounts.rb b/accounting/lib/xero-ruby/models/accounts.rb index 7f4467f5..2b3a0afd 100644 --- a/accounting/lib/xero-ruby/models/accounts.rb +++ b/accounting/lib/xero-ruby/models/accounts.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/accounts_payable.rb b/accounting/lib/xero-ruby/models/accounts_payable.rb index 181d591c..8181c0b7 100644 --- a/accounting/lib/xero-ruby/models/accounts_payable.rb +++ b/accounting/lib/xero-ruby/models/accounts_payable.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/accounts_receivable.rb b/accounting/lib/xero-ruby/models/accounts_receivable.rb index 998591fc..613dd64d 100644 --- a/accounting/lib/xero-ruby/models/accounts_receivable.rb +++ b/accounting/lib/xero-ruby/models/accounts_receivable.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/address.rb b/accounting/lib/xero-ruby/models/address.rb index 68376c4a..4e64cf5f 100644 --- a/accounting/lib/xero-ruby/models/address.rb +++ b/accounting/lib/xero-ruby/models/address.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/allocation.rb b/accounting/lib/xero-ruby/models/allocation.rb index 51e10bc7..f3a3dd2d 100644 --- a/accounting/lib/xero-ruby/models/allocation.rb +++ b/accounting/lib/xero-ruby/models/allocation.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/allocations.rb b/accounting/lib/xero-ruby/models/allocations.rb index 52d864b2..5dd1f52b 100644 --- a/accounting/lib/xero-ruby/models/allocations.rb +++ b/accounting/lib/xero-ruby/models/allocations.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/attachment.rb b/accounting/lib/xero-ruby/models/attachment.rb index f67aadfb..c5d72b67 100644 --- a/accounting/lib/xero-ruby/models/attachment.rb +++ b/accounting/lib/xero-ruby/models/attachment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/attachments.rb b/accounting/lib/xero-ruby/models/attachments.rb index bc195314..0dac7c86 100644 --- a/accounting/lib/xero-ruby/models/attachments.rb +++ b/accounting/lib/xero-ruby/models/attachments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/balances.rb b/accounting/lib/xero-ruby/models/balances.rb index 61b985a9..6dac77a1 100644 --- a/accounting/lib/xero-ruby/models/balances.rb +++ b/accounting/lib/xero-ruby/models/balances.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bank_transaction.rb b/accounting/lib/xero-ruby/models/bank_transaction.rb index 1d68c33d..07ffcca2 100644 --- a/accounting/lib/xero-ruby/models/bank_transaction.rb +++ b/accounting/lib/xero-ruby/models/bank_transaction.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bank_transactions.rb b/accounting/lib/xero-ruby/models/bank_transactions.rb index 5f8b30a9..584f67e6 100644 --- a/accounting/lib/xero-ruby/models/bank_transactions.rb +++ b/accounting/lib/xero-ruby/models/bank_transactions.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bank_transfer.rb b/accounting/lib/xero-ruby/models/bank_transfer.rb index 80b8ec69..09c46a1d 100644 --- a/accounting/lib/xero-ruby/models/bank_transfer.rb +++ b/accounting/lib/xero-ruby/models/bank_transfer.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bank_transfers.rb b/accounting/lib/xero-ruby/models/bank_transfers.rb index 0c5dc1ed..d706b994 100644 --- a/accounting/lib/xero-ruby/models/bank_transfers.rb +++ b/accounting/lib/xero-ruby/models/bank_transfers.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/batch_payment.rb b/accounting/lib/xero-ruby/models/batch_payment.rb index af787276..d9d18650 100644 --- a/accounting/lib/xero-ruby/models/batch_payment.rb +++ b/accounting/lib/xero-ruby/models/batch_payment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/batch_payment_details.rb b/accounting/lib/xero-ruby/models/batch_payment_details.rb index d6d9c670..f36969d7 100644 --- a/accounting/lib/xero-ruby/models/batch_payment_details.rb +++ b/accounting/lib/xero-ruby/models/batch_payment_details.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/batch_payments.rb b/accounting/lib/xero-ruby/models/batch_payments.rb index e5c1944b..b88db623 100644 --- a/accounting/lib/xero-ruby/models/batch_payments.rb +++ b/accounting/lib/xero-ruby/models/batch_payments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/bill.rb b/accounting/lib/xero-ruby/models/bill.rb index 271f3d18..d175cd38 100644 --- a/accounting/lib/xero-ruby/models/bill.rb +++ b/accounting/lib/xero-ruby/models/bill.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/branding_theme.rb b/accounting/lib/xero-ruby/models/branding_theme.rb index 737f18e9..5daf5b3a 100644 --- a/accounting/lib/xero-ruby/models/branding_theme.rb +++ b/accounting/lib/xero-ruby/models/branding_theme.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/branding_themes.rb b/accounting/lib/xero-ruby/models/branding_themes.rb index 2a38945f..fb1eee1b 100644 --- a/accounting/lib/xero-ruby/models/branding_themes.rb +++ b/accounting/lib/xero-ruby/models/branding_themes.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/cis_org_setting.rb b/accounting/lib/xero-ruby/models/cis_org_setting.rb index 1b108877..e745e575 100644 --- a/accounting/lib/xero-ruby/models/cis_org_setting.rb +++ b/accounting/lib/xero-ruby/models/cis_org_setting.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/cis_setting.rb b/accounting/lib/xero-ruby/models/cis_setting.rb index 50870b60..863124bf 100644 --- a/accounting/lib/xero-ruby/models/cis_setting.rb +++ b/accounting/lib/xero-ruby/models/cis_setting.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/cis_settings.rb b/accounting/lib/xero-ruby/models/cis_settings.rb index f9244b62..cd1f8eb6 100644 --- a/accounting/lib/xero-ruby/models/cis_settings.rb +++ b/accounting/lib/xero-ruby/models/cis_settings.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contact.rb b/accounting/lib/xero-ruby/models/contact.rb index 0b6f1eb9..f84943b8 100644 --- a/accounting/lib/xero-ruby/models/contact.rb +++ b/accounting/lib/xero-ruby/models/contact.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contact_group.rb b/accounting/lib/xero-ruby/models/contact_group.rb index 555f9e8a..3bdc8e2d 100644 --- a/accounting/lib/xero-ruby/models/contact_group.rb +++ b/accounting/lib/xero-ruby/models/contact_group.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contact_groups.rb b/accounting/lib/xero-ruby/models/contact_groups.rb index f245ca93..03bffabb 100644 --- a/accounting/lib/xero-ruby/models/contact_groups.rb +++ b/accounting/lib/xero-ruby/models/contact_groups.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contact_person.rb b/accounting/lib/xero-ruby/models/contact_person.rb index f1609158..2fb07fdb 100644 --- a/accounting/lib/xero-ruby/models/contact_person.rb +++ b/accounting/lib/xero-ruby/models/contact_person.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/contacts.rb b/accounting/lib/xero-ruby/models/contacts.rb index e7e58d9e..a9917acd 100644 --- a/accounting/lib/xero-ruby/models/contacts.rb +++ b/accounting/lib/xero-ruby/models/contacts.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/country_code.rb b/accounting/lib/xero-ruby/models/country_code.rb index d2790fdf..3dc343c4 100644 --- a/accounting/lib/xero-ruby/models/country_code.rb +++ b/accounting/lib/xero-ruby/models/country_code.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/credit_note.rb b/accounting/lib/xero-ruby/models/credit_note.rb index 7fafecda..100763de 100644 --- a/accounting/lib/xero-ruby/models/credit_note.rb +++ b/accounting/lib/xero-ruby/models/credit_note.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/credit_notes.rb b/accounting/lib/xero-ruby/models/credit_notes.rb index 5e49ba20..34a73fac 100644 --- a/accounting/lib/xero-ruby/models/credit_notes.rb +++ b/accounting/lib/xero-ruby/models/credit_notes.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/currencies.rb b/accounting/lib/xero-ruby/models/currencies.rb index 2cba0740..4b52a916 100644 --- a/accounting/lib/xero-ruby/models/currencies.rb +++ b/accounting/lib/xero-ruby/models/currencies.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/currency.rb b/accounting/lib/xero-ruby/models/currency.rb index 7050ff5f..1d5bba02 100644 --- a/accounting/lib/xero-ruby/models/currency.rb +++ b/accounting/lib/xero-ruby/models/currency.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/currency_code.rb b/accounting/lib/xero-ruby/models/currency_code.rb index 113a293a..e2411ffb 100644 --- a/accounting/lib/xero-ruby/models/currency_code.rb +++ b/accounting/lib/xero-ruby/models/currency_code.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/element.rb b/accounting/lib/xero-ruby/models/element.rb index 48a55d53..e9514901 100644 --- a/accounting/lib/xero-ruby/models/element.rb +++ b/accounting/lib/xero-ruby/models/element.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/employee.rb b/accounting/lib/xero-ruby/models/employee.rb index abdb90fe..c4d45178 100644 --- a/accounting/lib/xero-ruby/models/employee.rb +++ b/accounting/lib/xero-ruby/models/employee.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/employees.rb b/accounting/lib/xero-ruby/models/employees.rb index 12954589..c87802ba 100644 --- a/accounting/lib/xero-ruby/models/employees.rb +++ b/accounting/lib/xero-ruby/models/employees.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/error.rb b/accounting/lib/xero-ruby/models/error.rb index 26ceeeb5..8d6e0b1d 100644 --- a/accounting/lib/xero-ruby/models/error.rb +++ b/accounting/lib/xero-ruby/models/error.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/expense_claim.rb b/accounting/lib/xero-ruby/models/expense_claim.rb index 625d5d17..e96910f3 100644 --- a/accounting/lib/xero-ruby/models/expense_claim.rb +++ b/accounting/lib/xero-ruby/models/expense_claim.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/expense_claims.rb b/accounting/lib/xero-ruby/models/expense_claims.rb index 69c40e5d..c2198dd7 100644 --- a/accounting/lib/xero-ruby/models/expense_claims.rb +++ b/accounting/lib/xero-ruby/models/expense_claims.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/external_link.rb b/accounting/lib/xero-ruby/models/external_link.rb index a7d65008..3ad83a65 100644 --- a/accounting/lib/xero-ruby/models/external_link.rb +++ b/accounting/lib/xero-ruby/models/external_link.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/history_record.rb b/accounting/lib/xero-ruby/models/history_record.rb index 2aaa6968..396a009e 100644 --- a/accounting/lib/xero-ruby/models/history_record.rb +++ b/accounting/lib/xero-ruby/models/history_record.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/history_records.rb b/accounting/lib/xero-ruby/models/history_records.rb index 1a6727d6..093d6a22 100644 --- a/accounting/lib/xero-ruby/models/history_records.rb +++ b/accounting/lib/xero-ruby/models/history_records.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/invoice.rb b/accounting/lib/xero-ruby/models/invoice.rb index 316a0433..22e8a199 100644 --- a/accounting/lib/xero-ruby/models/invoice.rb +++ b/accounting/lib/xero-ruby/models/invoice.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/invoice_reminder.rb b/accounting/lib/xero-ruby/models/invoice_reminder.rb index 56d3a9d4..f1f75778 100644 --- a/accounting/lib/xero-ruby/models/invoice_reminder.rb +++ b/accounting/lib/xero-ruby/models/invoice_reminder.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/invoice_reminders.rb b/accounting/lib/xero-ruby/models/invoice_reminders.rb index d36b5bba..454f5e67 100644 --- a/accounting/lib/xero-ruby/models/invoice_reminders.rb +++ b/accounting/lib/xero-ruby/models/invoice_reminders.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/invoices.rb b/accounting/lib/xero-ruby/models/invoices.rb index 8bb68f07..a0d4f0ab 100644 --- a/accounting/lib/xero-ruby/models/invoices.rb +++ b/accounting/lib/xero-ruby/models/invoices.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/item.rb b/accounting/lib/xero-ruby/models/item.rb index 269513d4..f43de4b8 100644 --- a/accounting/lib/xero-ruby/models/item.rb +++ b/accounting/lib/xero-ruby/models/item.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/items.rb b/accounting/lib/xero-ruby/models/items.rb index a48a9109..e3b9005a 100644 --- a/accounting/lib/xero-ruby/models/items.rb +++ b/accounting/lib/xero-ruby/models/items.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/journal.rb b/accounting/lib/xero-ruby/models/journal.rb index 42217edb..a65f5fe5 100644 --- a/accounting/lib/xero-ruby/models/journal.rb +++ b/accounting/lib/xero-ruby/models/journal.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/journal_line.rb b/accounting/lib/xero-ruby/models/journal_line.rb index f8c54b6b..06b6a13a 100644 --- a/accounting/lib/xero-ruby/models/journal_line.rb +++ b/accounting/lib/xero-ruby/models/journal_line.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/journals.rb b/accounting/lib/xero-ruby/models/journals.rb index 1d971709..9b1b6b81 100644 --- a/accounting/lib/xero-ruby/models/journals.rb +++ b/accounting/lib/xero-ruby/models/journals.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/line_amount_types.rb b/accounting/lib/xero-ruby/models/line_amount_types.rb index 427f3dc0..1ed6f740 100644 --- a/accounting/lib/xero-ruby/models/line_amount_types.rb +++ b/accounting/lib/xero-ruby/models/line_amount_types.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/line_item.rb b/accounting/lib/xero-ruby/models/line_item.rb index 6a3db7e5..f846cdb5 100644 --- a/accounting/lib/xero-ruby/models/line_item.rb +++ b/accounting/lib/xero-ruby/models/line_item.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/line_item_tracking.rb b/accounting/lib/xero-ruby/models/line_item_tracking.rb index 766055ea..aa27243c 100644 --- a/accounting/lib/xero-ruby/models/line_item_tracking.rb +++ b/accounting/lib/xero-ruby/models/line_item_tracking.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/linked_transaction.rb b/accounting/lib/xero-ruby/models/linked_transaction.rb index e05382f2..ad2559d4 100644 --- a/accounting/lib/xero-ruby/models/linked_transaction.rb +++ b/accounting/lib/xero-ruby/models/linked_transaction.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/linked_transactions.rb b/accounting/lib/xero-ruby/models/linked_transactions.rb index 09e6b30f..7abc1e75 100644 --- a/accounting/lib/xero-ruby/models/linked_transactions.rb +++ b/accounting/lib/xero-ruby/models/linked_transactions.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/manual_journal.rb b/accounting/lib/xero-ruby/models/manual_journal.rb index 958ad0ba..8896952d 100644 --- a/accounting/lib/xero-ruby/models/manual_journal.rb +++ b/accounting/lib/xero-ruby/models/manual_journal.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/manual_journal_line.rb b/accounting/lib/xero-ruby/models/manual_journal_line.rb index 953ccb7e..0134fcfa 100644 --- a/accounting/lib/xero-ruby/models/manual_journal_line.rb +++ b/accounting/lib/xero-ruby/models/manual_journal_line.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/manual_journals.rb b/accounting/lib/xero-ruby/models/manual_journals.rb index f59d31cd..27ff54c3 100644 --- a/accounting/lib/xero-ruby/models/manual_journals.rb +++ b/accounting/lib/xero-ruby/models/manual_journals.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/online_invoice.rb b/accounting/lib/xero-ruby/models/online_invoice.rb index 1556e802..947ca1cd 100644 --- a/accounting/lib/xero-ruby/models/online_invoice.rb +++ b/accounting/lib/xero-ruby/models/online_invoice.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/online_invoices.rb b/accounting/lib/xero-ruby/models/online_invoices.rb index 11b308e6..423cc964 100644 --- a/accounting/lib/xero-ruby/models/online_invoices.rb +++ b/accounting/lib/xero-ruby/models/online_invoices.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/organisation.rb b/accounting/lib/xero-ruby/models/organisation.rb index 9cdf7e4e..1e26c191 100644 --- a/accounting/lib/xero-ruby/models/organisation.rb +++ b/accounting/lib/xero-ruby/models/organisation.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/organisations.rb b/accounting/lib/xero-ruby/models/organisations.rb index 15eb221b..ccc70276 100644 --- a/accounting/lib/xero-ruby/models/organisations.rb +++ b/accounting/lib/xero-ruby/models/organisations.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/overpayment.rb b/accounting/lib/xero-ruby/models/overpayment.rb index e1a2efe8..bbbe810c 100644 --- a/accounting/lib/xero-ruby/models/overpayment.rb +++ b/accounting/lib/xero-ruby/models/overpayment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/overpayments.rb b/accounting/lib/xero-ruby/models/overpayments.rb index 27e2a391..8868b573 100644 --- a/accounting/lib/xero-ruby/models/overpayments.rb +++ b/accounting/lib/xero-ruby/models/overpayments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment.rb b/accounting/lib/xero-ruby/models/payment.rb index fe8a7be7..201d09b6 100644 --- a/accounting/lib/xero-ruby/models/payment.rb +++ b/accounting/lib/xero-ruby/models/payment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_delete.rb b/accounting/lib/xero-ruby/models/payment_delete.rb index f292c80d..b452e313 100644 --- a/accounting/lib/xero-ruby/models/payment_delete.rb +++ b/accounting/lib/xero-ruby/models/payment_delete.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_service.rb b/accounting/lib/xero-ruby/models/payment_service.rb index 0b3243d9..56e5bccb 100644 --- a/accounting/lib/xero-ruby/models/payment_service.rb +++ b/accounting/lib/xero-ruby/models/payment_service.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_services.rb b/accounting/lib/xero-ruby/models/payment_services.rb index cc9f434c..bed66f5e 100644 --- a/accounting/lib/xero-ruby/models/payment_services.rb +++ b/accounting/lib/xero-ruby/models/payment_services.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_term.rb b/accounting/lib/xero-ruby/models/payment_term.rb index f65b5f86..09eeb6c2 100644 --- a/accounting/lib/xero-ruby/models/payment_term.rb +++ b/accounting/lib/xero-ruby/models/payment_term.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payment_term_type.rb b/accounting/lib/xero-ruby/models/payment_term_type.rb index 7026f1ea..ec0215fb 100644 --- a/accounting/lib/xero-ruby/models/payment_term_type.rb +++ b/accounting/lib/xero-ruby/models/payment_term_type.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/payments.rb b/accounting/lib/xero-ruby/models/payments.rb index 350d8ff3..9fb6dbe5 100644 --- a/accounting/lib/xero-ruby/models/payments.rb +++ b/accounting/lib/xero-ruby/models/payments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/phone.rb b/accounting/lib/xero-ruby/models/phone.rb index dd2c28e0..2941b6a7 100644 --- a/accounting/lib/xero-ruby/models/phone.rb +++ b/accounting/lib/xero-ruby/models/phone.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/prepayment.rb b/accounting/lib/xero-ruby/models/prepayment.rb index 9172e1d6..db1a34d7 100644 --- a/accounting/lib/xero-ruby/models/prepayment.rb +++ b/accounting/lib/xero-ruby/models/prepayment.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/prepayments.rb b/accounting/lib/xero-ruby/models/prepayments.rb index e607461d..1b5de094 100644 --- a/accounting/lib/xero-ruby/models/prepayments.rb +++ b/accounting/lib/xero-ruby/models/prepayments.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/purchase.rb b/accounting/lib/xero-ruby/models/purchase.rb index 7a9f7c50..2664ff0e 100644 --- a/accounting/lib/xero-ruby/models/purchase.rb +++ b/accounting/lib/xero-ruby/models/purchase.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/purchase_order.rb b/accounting/lib/xero-ruby/models/purchase_order.rb index ff430711..59791179 100644 --- a/accounting/lib/xero-ruby/models/purchase_order.rb +++ b/accounting/lib/xero-ruby/models/purchase_order.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/purchase_orders.rb b/accounting/lib/xero-ruby/models/purchase_orders.rb index ad0def6a..259bc50c 100644 --- a/accounting/lib/xero-ruby/models/purchase_orders.rb +++ b/accounting/lib/xero-ruby/models/purchase_orders.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/quote.rb b/accounting/lib/xero-ruby/models/quote.rb index 35fef978..f9d3aad5 100644 --- a/accounting/lib/xero-ruby/models/quote.rb +++ b/accounting/lib/xero-ruby/models/quote.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/quote_line_amount_types.rb b/accounting/lib/xero-ruby/models/quote_line_amount_types.rb index 20fcc818..d0170d56 100644 --- a/accounting/lib/xero-ruby/models/quote_line_amount_types.rb +++ b/accounting/lib/xero-ruby/models/quote_line_amount_types.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/quote_status_codes.rb b/accounting/lib/xero-ruby/models/quote_status_codes.rb index 295e299a..15889ae7 100644 --- a/accounting/lib/xero-ruby/models/quote_status_codes.rb +++ b/accounting/lib/xero-ruby/models/quote_status_codes.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/quotes.rb b/accounting/lib/xero-ruby/models/quotes.rb index 1c9d12df..2c4fa872 100644 --- a/accounting/lib/xero-ruby/models/quotes.rb +++ b/accounting/lib/xero-ruby/models/quotes.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/receipt.rb b/accounting/lib/xero-ruby/models/receipt.rb index ce699914..6ac03d1e 100644 --- a/accounting/lib/xero-ruby/models/receipt.rb +++ b/accounting/lib/xero-ruby/models/receipt.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/receipts.rb b/accounting/lib/xero-ruby/models/receipts.rb index 1ea999cf..3d3f3b8a 100644 --- a/accounting/lib/xero-ruby/models/receipts.rb +++ b/accounting/lib/xero-ruby/models/receipts.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/repeating_invoice.rb b/accounting/lib/xero-ruby/models/repeating_invoice.rb index b317b3ba..4daf862b 100644 --- a/accounting/lib/xero-ruby/models/repeating_invoice.rb +++ b/accounting/lib/xero-ruby/models/repeating_invoice.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/repeating_invoices.rb b/accounting/lib/xero-ruby/models/repeating_invoices.rb index ed041f2f..31853a09 100644 --- a/accounting/lib/xero-ruby/models/repeating_invoices.rb +++ b/accounting/lib/xero-ruby/models/repeating_invoices.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report.rb b/accounting/lib/xero-ruby/models/report.rb index e87d83bb..95d141ab 100644 --- a/accounting/lib/xero-ruby/models/report.rb +++ b/accounting/lib/xero-ruby/models/report.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_attribute.rb b/accounting/lib/xero-ruby/models/report_attribute.rb index cbef8e24..357fb7a9 100644 --- a/accounting/lib/xero-ruby/models/report_attribute.rb +++ b/accounting/lib/xero-ruby/models/report_attribute.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_cell.rb b/accounting/lib/xero-ruby/models/report_cell.rb index a5fd45dd..ec04f26a 100644 --- a/accounting/lib/xero-ruby/models/report_cell.rb +++ b/accounting/lib/xero-ruby/models/report_cell.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_fields.rb b/accounting/lib/xero-ruby/models/report_fields.rb index 97eaab15..16536c13 100644 --- a/accounting/lib/xero-ruby/models/report_fields.rb +++ b/accounting/lib/xero-ruby/models/report_fields.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_row.rb b/accounting/lib/xero-ruby/models/report_row.rb index 3705f4e7..e9cfa2e8 100644 --- a/accounting/lib/xero-ruby/models/report_row.rb +++ b/accounting/lib/xero-ruby/models/report_row.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_rows.rb b/accounting/lib/xero-ruby/models/report_rows.rb index e3ed4eeb..1aae27d1 100644 --- a/accounting/lib/xero-ruby/models/report_rows.rb +++ b/accounting/lib/xero-ruby/models/report_rows.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_with_row.rb b/accounting/lib/xero-ruby/models/report_with_row.rb index a9fc7a59..a49b84e7 100644 --- a/accounting/lib/xero-ruby/models/report_with_row.rb +++ b/accounting/lib/xero-ruby/models/report_with_row.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/report_with_rows.rb b/accounting/lib/xero-ruby/models/report_with_rows.rb index a0f85794..e3e1f907 100644 --- a/accounting/lib/xero-ruby/models/report_with_rows.rb +++ b/accounting/lib/xero-ruby/models/report_with_rows.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/reports.rb b/accounting/lib/xero-ruby/models/reports.rb index fab1fc53..50921607 100644 --- a/accounting/lib/xero-ruby/models/reports.rb +++ b/accounting/lib/xero-ruby/models/reports.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/request_empty.rb b/accounting/lib/xero-ruby/models/request_empty.rb index df299349..eb198250 100644 --- a/accounting/lib/xero-ruby/models/request_empty.rb +++ b/accounting/lib/xero-ruby/models/request_empty.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/row_type.rb b/accounting/lib/xero-ruby/models/row_type.rb index 5dc75eb0..ca07a1f4 100644 --- a/accounting/lib/xero-ruby/models/row_type.rb +++ b/accounting/lib/xero-ruby/models/row_type.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/sales_tracking_category.rb b/accounting/lib/xero-ruby/models/sales_tracking_category.rb index 6426e03e..eaa46e86 100644 --- a/accounting/lib/xero-ruby/models/sales_tracking_category.rb +++ b/accounting/lib/xero-ruby/models/sales_tracking_category.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/schedule.rb b/accounting/lib/xero-ruby/models/schedule.rb index ec8e0304..e93e4272 100644 --- a/accounting/lib/xero-ruby/models/schedule.rb +++ b/accounting/lib/xero-ruby/models/schedule.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tax_component.rb b/accounting/lib/xero-ruby/models/tax_component.rb index 192936ca..8c9c1b23 100644 --- a/accounting/lib/xero-ruby/models/tax_component.rb +++ b/accounting/lib/xero-ruby/models/tax_component.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tax_rate.rb b/accounting/lib/xero-ruby/models/tax_rate.rb index 7a9f3ebc..a3d70e92 100644 --- a/accounting/lib/xero-ruby/models/tax_rate.rb +++ b/accounting/lib/xero-ruby/models/tax_rate.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tax_rates.rb b/accounting/lib/xero-ruby/models/tax_rates.rb index 0fee8b9d..fe0d8ac7 100644 --- a/accounting/lib/xero-ruby/models/tax_rates.rb +++ b/accounting/lib/xero-ruby/models/tax_rates.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tax_type.rb b/accounting/lib/xero-ruby/models/tax_type.rb index 0c15aaf2..237dd569 100644 --- a/accounting/lib/xero-ruby/models/tax_type.rb +++ b/accounting/lib/xero-ruby/models/tax_type.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb b/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb index ad293153..1606e4b0 100644 --- a/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb +++ b/accounting/lib/xero-ruby/models/ten_nintey_nine_contact.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/time_zone.rb b/accounting/lib/xero-ruby/models/time_zone.rb index c620bad2..b4530579 100644 --- a/accounting/lib/xero-ruby/models/time_zone.rb +++ b/accounting/lib/xero-ruby/models/time_zone.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tracking_categories.rb b/accounting/lib/xero-ruby/models/tracking_categories.rb index d34c6555..7d2fb6ee 100644 --- a/accounting/lib/xero-ruby/models/tracking_categories.rb +++ b/accounting/lib/xero-ruby/models/tracking_categories.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tracking_category.rb b/accounting/lib/xero-ruby/models/tracking_category.rb index 9c77e6f7..4e8b22a4 100644 --- a/accounting/lib/xero-ruby/models/tracking_category.rb +++ b/accounting/lib/xero-ruby/models/tracking_category.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tracking_option.rb b/accounting/lib/xero-ruby/models/tracking_option.rb index 6fd8efdf..f9b52ada 100644 --- a/accounting/lib/xero-ruby/models/tracking_option.rb +++ b/accounting/lib/xero-ruby/models/tracking_option.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/tracking_options.rb b/accounting/lib/xero-ruby/models/tracking_options.rb index dda90180..c53f3381 100644 --- a/accounting/lib/xero-ruby/models/tracking_options.rb +++ b/accounting/lib/xero-ruby/models/tracking_options.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/user.rb b/accounting/lib/xero-ruby/models/user.rb index e7c6efc6..94fd6f4a 100644 --- a/accounting/lib/xero-ruby/models/user.rb +++ b/accounting/lib/xero-ruby/models/user.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/users.rb b/accounting/lib/xero-ruby/models/users.rb index 153dcbd4..2ff53eb9 100644 --- a/accounting/lib/xero-ruby/models/users.rb +++ b/accounting/lib/xero-ruby/models/users.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/models/validation_error.rb b/accounting/lib/xero-ruby/models/validation_error.rb index 8a42cf35..2927b3a9 100644 --- a/accounting/lib/xero-ruby/models/validation_error.rb +++ b/accounting/lib/xero-ruby/models/validation_error.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/lib/xero-ruby/version.rb b/accounting/lib/xero-ruby/version.rb index 5cc8c2f8..ab4693b1 100644 --- a/accounting/lib/xero-ruby/version.rb +++ b/accounting/lib/xero-ruby/version.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/api/accounting_api_spec.rb b/accounting/spec/api/accounting_api_spec.rb index 12f70381..4e6e75f8 100644 --- a/accounting/spec/api/accounting_api_spec.rb +++ b/accounting/spec/api/accounting_api_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/api_client_spec.rb b/accounting/spec/api_client_spec.rb index 15b851a6..0c944ebd 100644 --- a/accounting/spec/api_client_spec.rb +++ b/accounting/spec/api_client_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/configuration_spec.rb b/accounting/spec/configuration_spec.rb index 103df4e4..cf4ea41b 100644 --- a/accounting/spec/configuration_spec.rb +++ b/accounting/spec/configuration_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/account_spec.rb b/accounting/spec/models/account_spec.rb index 86917bfd..a0b8e92d 100644 --- a/accounting/spec/models/account_spec.rb +++ b/accounting/spec/models/account_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/account_type_spec.rb b/accounting/spec/models/account_type_spec.rb index 29ac7ac4..3ef61839 100644 --- a/accounting/spec/models/account_type_spec.rb +++ b/accounting/spec/models/account_type_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/accounts_payable_spec.rb b/accounting/spec/models/accounts_payable_spec.rb index 53dd2066..b00c6030 100644 --- a/accounting/spec/models/accounts_payable_spec.rb +++ b/accounting/spec/models/accounts_payable_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/accounts_receivable_spec.rb b/accounting/spec/models/accounts_receivable_spec.rb index b1c3831e..16622fe8 100644 --- a/accounting/spec/models/accounts_receivable_spec.rb +++ b/accounting/spec/models/accounts_receivable_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/accounts_spec.rb b/accounting/spec/models/accounts_spec.rb index 341f81cb..cc9bd127 100644 --- a/accounting/spec/models/accounts_spec.rb +++ b/accounting/spec/models/accounts_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/address_spec.rb b/accounting/spec/models/address_spec.rb index 9dae59f3..0d53f051 100644 --- a/accounting/spec/models/address_spec.rb +++ b/accounting/spec/models/address_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/allocation_spec.rb b/accounting/spec/models/allocation_spec.rb index d8165eef..831dec90 100644 --- a/accounting/spec/models/allocation_spec.rb +++ b/accounting/spec/models/allocation_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/allocations_spec.rb b/accounting/spec/models/allocations_spec.rb index 6e3aaad7..84ed0c60 100644 --- a/accounting/spec/models/allocations_spec.rb +++ b/accounting/spec/models/allocations_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/attachment_spec.rb b/accounting/spec/models/attachment_spec.rb index 70ebc9f5..2761ba93 100644 --- a/accounting/spec/models/attachment_spec.rb +++ b/accounting/spec/models/attachment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/attachments_spec.rb b/accounting/spec/models/attachments_spec.rb index 29d17837..2b758fb8 100644 --- a/accounting/spec/models/attachments_spec.rb +++ b/accounting/spec/models/attachments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/balances_spec.rb b/accounting/spec/models/balances_spec.rb index 535f131f..bea91976 100644 --- a/accounting/spec/models/balances_spec.rb +++ b/accounting/spec/models/balances_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bank_transaction_spec.rb b/accounting/spec/models/bank_transaction_spec.rb index c830ffe2..1346db66 100644 --- a/accounting/spec/models/bank_transaction_spec.rb +++ b/accounting/spec/models/bank_transaction_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bank_transactions_spec.rb b/accounting/spec/models/bank_transactions_spec.rb index 97dc4ea3..8fbfaaba 100644 --- a/accounting/spec/models/bank_transactions_spec.rb +++ b/accounting/spec/models/bank_transactions_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bank_transfer_spec.rb b/accounting/spec/models/bank_transfer_spec.rb index 3aabcbf6..d9efb8ca 100644 --- a/accounting/spec/models/bank_transfer_spec.rb +++ b/accounting/spec/models/bank_transfer_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bank_transfers_spec.rb b/accounting/spec/models/bank_transfers_spec.rb index afb221f8..4de57b2d 100644 --- a/accounting/spec/models/bank_transfers_spec.rb +++ b/accounting/spec/models/bank_transfers_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/batch_payment_details_spec.rb b/accounting/spec/models/batch_payment_details_spec.rb index bf17d9dc..3c3d2fd8 100644 --- a/accounting/spec/models/batch_payment_details_spec.rb +++ b/accounting/spec/models/batch_payment_details_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/batch_payment_spec.rb b/accounting/spec/models/batch_payment_spec.rb index d1351e69..ddabb2c1 100644 --- a/accounting/spec/models/batch_payment_spec.rb +++ b/accounting/spec/models/batch_payment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/batch_payments_spec.rb b/accounting/spec/models/batch_payments_spec.rb index e69974f5..c047960e 100644 --- a/accounting/spec/models/batch_payments_spec.rb +++ b/accounting/spec/models/batch_payments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/bill_spec.rb b/accounting/spec/models/bill_spec.rb index 27858972..ee3c337a 100644 --- a/accounting/spec/models/bill_spec.rb +++ b/accounting/spec/models/bill_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/branding_theme_spec.rb b/accounting/spec/models/branding_theme_spec.rb index 5765b05f..1f5b8621 100644 --- a/accounting/spec/models/branding_theme_spec.rb +++ b/accounting/spec/models/branding_theme_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/branding_themes_spec.rb b/accounting/spec/models/branding_themes_spec.rb index 8fdf04d7..35c3c89d 100644 --- a/accounting/spec/models/branding_themes_spec.rb +++ b/accounting/spec/models/branding_themes_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/cis_org_setting_spec.rb b/accounting/spec/models/cis_org_setting_spec.rb index 1b3d762f..9fa688fe 100644 --- a/accounting/spec/models/cis_org_setting_spec.rb +++ b/accounting/spec/models/cis_org_setting_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/cis_setting_spec.rb b/accounting/spec/models/cis_setting_spec.rb index 71c17bb5..33514cff 100644 --- a/accounting/spec/models/cis_setting_spec.rb +++ b/accounting/spec/models/cis_setting_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/cis_settings_spec.rb b/accounting/spec/models/cis_settings_spec.rb index 82868d2b..0a51a2e6 100644 --- a/accounting/spec/models/cis_settings_spec.rb +++ b/accounting/spec/models/cis_settings_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contact_group_spec.rb b/accounting/spec/models/contact_group_spec.rb index 3cf056a1..82b4417d 100644 --- a/accounting/spec/models/contact_group_spec.rb +++ b/accounting/spec/models/contact_group_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contact_groups_spec.rb b/accounting/spec/models/contact_groups_spec.rb index 0aed5199..d0b083aa 100644 --- a/accounting/spec/models/contact_groups_spec.rb +++ b/accounting/spec/models/contact_groups_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contact_person_spec.rb b/accounting/spec/models/contact_person_spec.rb index 72e4ec1c..cdf783f5 100644 --- a/accounting/spec/models/contact_person_spec.rb +++ b/accounting/spec/models/contact_person_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contact_spec.rb b/accounting/spec/models/contact_spec.rb index ad8ac26a..b8c8a191 100644 --- a/accounting/spec/models/contact_spec.rb +++ b/accounting/spec/models/contact_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/contacts_spec.rb b/accounting/spec/models/contacts_spec.rb index 2376b273..c7830f41 100644 --- a/accounting/spec/models/contacts_spec.rb +++ b/accounting/spec/models/contacts_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/country_code_spec.rb b/accounting/spec/models/country_code_spec.rb index 97771aeb..c1d7cf00 100644 --- a/accounting/spec/models/country_code_spec.rb +++ b/accounting/spec/models/country_code_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/credit_note_spec.rb b/accounting/spec/models/credit_note_spec.rb index 83bb2b8c..1bcae7e6 100644 --- a/accounting/spec/models/credit_note_spec.rb +++ b/accounting/spec/models/credit_note_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/credit_notes_spec.rb b/accounting/spec/models/credit_notes_spec.rb index ea803411..2b1fbe23 100644 --- a/accounting/spec/models/credit_notes_spec.rb +++ b/accounting/spec/models/credit_notes_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/currencies_spec.rb b/accounting/spec/models/currencies_spec.rb index 1bae3bc9..baf4c46a 100644 --- a/accounting/spec/models/currencies_spec.rb +++ b/accounting/spec/models/currencies_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/currency_code_spec.rb b/accounting/spec/models/currency_code_spec.rb index 9a8a3fc1..c355af18 100644 --- a/accounting/spec/models/currency_code_spec.rb +++ b/accounting/spec/models/currency_code_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/currency_spec.rb b/accounting/spec/models/currency_spec.rb index 4ed94e45..f47839b4 100644 --- a/accounting/spec/models/currency_spec.rb +++ b/accounting/spec/models/currency_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/element_spec.rb b/accounting/spec/models/element_spec.rb index b5c9fcfd..0ea6e031 100644 --- a/accounting/spec/models/element_spec.rb +++ b/accounting/spec/models/element_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/employee_spec.rb b/accounting/spec/models/employee_spec.rb index 6c7d52a3..f35ca2c5 100644 --- a/accounting/spec/models/employee_spec.rb +++ b/accounting/spec/models/employee_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/employees_spec.rb b/accounting/spec/models/employees_spec.rb index 2942558e..d4e5dbb1 100644 --- a/accounting/spec/models/employees_spec.rb +++ b/accounting/spec/models/employees_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/error_spec.rb b/accounting/spec/models/error_spec.rb index 9722339a..65ca8d0c 100644 --- a/accounting/spec/models/error_spec.rb +++ b/accounting/spec/models/error_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/expense_claim_spec.rb b/accounting/spec/models/expense_claim_spec.rb index 18433500..c091ec67 100644 --- a/accounting/spec/models/expense_claim_spec.rb +++ b/accounting/spec/models/expense_claim_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/expense_claims_spec.rb b/accounting/spec/models/expense_claims_spec.rb index 9af86cd4..6ff3759f 100644 --- a/accounting/spec/models/expense_claims_spec.rb +++ b/accounting/spec/models/expense_claims_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/external_link_spec.rb b/accounting/spec/models/external_link_spec.rb index 65875635..dcc831c5 100644 --- a/accounting/spec/models/external_link_spec.rb +++ b/accounting/spec/models/external_link_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/history_record_spec.rb b/accounting/spec/models/history_record_spec.rb index a851f490..359e6d30 100644 --- a/accounting/spec/models/history_record_spec.rb +++ b/accounting/spec/models/history_record_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/history_records_spec.rb b/accounting/spec/models/history_records_spec.rb index 50bc0829..96e7da12 100644 --- a/accounting/spec/models/history_records_spec.rb +++ b/accounting/spec/models/history_records_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/invoice_reminder_spec.rb b/accounting/spec/models/invoice_reminder_spec.rb index b84ee0fd..5289dad9 100644 --- a/accounting/spec/models/invoice_reminder_spec.rb +++ b/accounting/spec/models/invoice_reminder_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/invoice_reminders_spec.rb b/accounting/spec/models/invoice_reminders_spec.rb index dcb0f5c1..76c53706 100644 --- a/accounting/spec/models/invoice_reminders_spec.rb +++ b/accounting/spec/models/invoice_reminders_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/invoice_spec.rb b/accounting/spec/models/invoice_spec.rb index 428e602b..10604c25 100644 --- a/accounting/spec/models/invoice_spec.rb +++ b/accounting/spec/models/invoice_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/invoices_spec.rb b/accounting/spec/models/invoices_spec.rb index ac231337..ab79c902 100644 --- a/accounting/spec/models/invoices_spec.rb +++ b/accounting/spec/models/invoices_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/item_spec.rb b/accounting/spec/models/item_spec.rb index 5529cbb2..26b6e702 100644 --- a/accounting/spec/models/item_spec.rb +++ b/accounting/spec/models/item_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/items_spec.rb b/accounting/spec/models/items_spec.rb index a771740c..2e12a7be 100644 --- a/accounting/spec/models/items_spec.rb +++ b/accounting/spec/models/items_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/journal_line_spec.rb b/accounting/spec/models/journal_line_spec.rb index 2b07aceb..ee734efd 100644 --- a/accounting/spec/models/journal_line_spec.rb +++ b/accounting/spec/models/journal_line_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/journal_spec.rb b/accounting/spec/models/journal_spec.rb index 3bbc49d8..f0553e01 100644 --- a/accounting/spec/models/journal_spec.rb +++ b/accounting/spec/models/journal_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/journals_spec.rb b/accounting/spec/models/journals_spec.rb index fb211645..dfb48dd3 100644 --- a/accounting/spec/models/journals_spec.rb +++ b/accounting/spec/models/journals_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/line_amount_types_spec.rb b/accounting/spec/models/line_amount_types_spec.rb index 6c253883..703da552 100644 --- a/accounting/spec/models/line_amount_types_spec.rb +++ b/accounting/spec/models/line_amount_types_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/line_item_spec.rb b/accounting/spec/models/line_item_spec.rb index dbfafbf6..24cabed6 100644 --- a/accounting/spec/models/line_item_spec.rb +++ b/accounting/spec/models/line_item_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/line_item_tracking_spec.rb b/accounting/spec/models/line_item_tracking_spec.rb index 9c32d6b8..416d0215 100644 --- a/accounting/spec/models/line_item_tracking_spec.rb +++ b/accounting/spec/models/line_item_tracking_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/linked_transaction_spec.rb b/accounting/spec/models/linked_transaction_spec.rb index b1c8b05c..941ddcdd 100644 --- a/accounting/spec/models/linked_transaction_spec.rb +++ b/accounting/spec/models/linked_transaction_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/linked_transactions_spec.rb b/accounting/spec/models/linked_transactions_spec.rb index 4ada265c..10c42c26 100644 --- a/accounting/spec/models/linked_transactions_spec.rb +++ b/accounting/spec/models/linked_transactions_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/manual_journal_line_spec.rb b/accounting/spec/models/manual_journal_line_spec.rb index d3bd5a57..c373b91a 100644 --- a/accounting/spec/models/manual_journal_line_spec.rb +++ b/accounting/spec/models/manual_journal_line_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/manual_journal_spec.rb b/accounting/spec/models/manual_journal_spec.rb index 00c8f0e0..3dcb213c 100644 --- a/accounting/spec/models/manual_journal_spec.rb +++ b/accounting/spec/models/manual_journal_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/manual_journals_spec.rb b/accounting/spec/models/manual_journals_spec.rb index 0e8a5a1e..0e4b034d 100644 --- a/accounting/spec/models/manual_journals_spec.rb +++ b/accounting/spec/models/manual_journals_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/online_invoice_spec.rb b/accounting/spec/models/online_invoice_spec.rb index e4e5c806..8f18b7d2 100644 --- a/accounting/spec/models/online_invoice_spec.rb +++ b/accounting/spec/models/online_invoice_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/online_invoices_spec.rb b/accounting/spec/models/online_invoices_spec.rb index 84bbb62d..c9a54717 100644 --- a/accounting/spec/models/online_invoices_spec.rb +++ b/accounting/spec/models/online_invoices_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/organisation_spec.rb b/accounting/spec/models/organisation_spec.rb index 2d6c0ad0..434db4b6 100644 --- a/accounting/spec/models/organisation_spec.rb +++ b/accounting/spec/models/organisation_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/organisations_spec.rb b/accounting/spec/models/organisations_spec.rb index a5d3acf2..b708ccb7 100644 --- a/accounting/spec/models/organisations_spec.rb +++ b/accounting/spec/models/organisations_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/overpayment_spec.rb b/accounting/spec/models/overpayment_spec.rb index adeac4f3..e972bf1b 100644 --- a/accounting/spec/models/overpayment_spec.rb +++ b/accounting/spec/models/overpayment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/overpayments_spec.rb b/accounting/spec/models/overpayments_spec.rb index f4968861..c197ba0a 100644 --- a/accounting/spec/models/overpayments_spec.rb +++ b/accounting/spec/models/overpayments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_delete_spec.rb b/accounting/spec/models/payment_delete_spec.rb index bbba9da5..12a46599 100644 --- a/accounting/spec/models/payment_delete_spec.rb +++ b/accounting/spec/models/payment_delete_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_service_spec.rb b/accounting/spec/models/payment_service_spec.rb index 8eb8f8d8..b0d2b524 100644 --- a/accounting/spec/models/payment_service_spec.rb +++ b/accounting/spec/models/payment_service_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_services_spec.rb b/accounting/spec/models/payment_services_spec.rb index 4d38f1ce..563ba84e 100644 --- a/accounting/spec/models/payment_services_spec.rb +++ b/accounting/spec/models/payment_services_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_spec.rb b/accounting/spec/models/payment_spec.rb index d0d38a05..6243b4b3 100644 --- a/accounting/spec/models/payment_spec.rb +++ b/accounting/spec/models/payment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_term_spec.rb b/accounting/spec/models/payment_term_spec.rb index c3e4a1cb..e22533e2 100644 --- a/accounting/spec/models/payment_term_spec.rb +++ b/accounting/spec/models/payment_term_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payment_term_type_spec.rb b/accounting/spec/models/payment_term_type_spec.rb index dc3fa4ab..f844b437 100644 --- a/accounting/spec/models/payment_term_type_spec.rb +++ b/accounting/spec/models/payment_term_type_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/payments_spec.rb b/accounting/spec/models/payments_spec.rb index bc7b6cfc..e0e5fcfe 100644 --- a/accounting/spec/models/payments_spec.rb +++ b/accounting/spec/models/payments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/phone_spec.rb b/accounting/spec/models/phone_spec.rb index d7f5929d..e11975ec 100644 --- a/accounting/spec/models/phone_spec.rb +++ b/accounting/spec/models/phone_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/prepayment_spec.rb b/accounting/spec/models/prepayment_spec.rb index 1defc97a..498938b3 100644 --- a/accounting/spec/models/prepayment_spec.rb +++ b/accounting/spec/models/prepayment_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/prepayments_spec.rb b/accounting/spec/models/prepayments_spec.rb index aa113b1e..3f56cf4f 100644 --- a/accounting/spec/models/prepayments_spec.rb +++ b/accounting/spec/models/prepayments_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/purchase_order_spec.rb b/accounting/spec/models/purchase_order_spec.rb index 8b69a6fa..c5284ae1 100644 --- a/accounting/spec/models/purchase_order_spec.rb +++ b/accounting/spec/models/purchase_order_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/purchase_orders_spec.rb b/accounting/spec/models/purchase_orders_spec.rb index 4ac7201a..4d0b2d19 100644 --- a/accounting/spec/models/purchase_orders_spec.rb +++ b/accounting/spec/models/purchase_orders_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/purchase_spec.rb b/accounting/spec/models/purchase_spec.rb index 14ea12e6..9edb2c92 100644 --- a/accounting/spec/models/purchase_spec.rb +++ b/accounting/spec/models/purchase_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/quote_line_amount_types_spec.rb b/accounting/spec/models/quote_line_amount_types_spec.rb index bad96aa5..1aa2030c 100644 --- a/accounting/spec/models/quote_line_amount_types_spec.rb +++ b/accounting/spec/models/quote_line_amount_types_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/quote_spec.rb b/accounting/spec/models/quote_spec.rb index fb025ce5..84cd14f7 100644 --- a/accounting/spec/models/quote_spec.rb +++ b/accounting/spec/models/quote_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/quote_status_codes_spec.rb b/accounting/spec/models/quote_status_codes_spec.rb index f8483afb..47d4b8c7 100644 --- a/accounting/spec/models/quote_status_codes_spec.rb +++ b/accounting/spec/models/quote_status_codes_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/quotes_spec.rb b/accounting/spec/models/quotes_spec.rb index 240ba084..383ee3a7 100644 --- a/accounting/spec/models/quotes_spec.rb +++ b/accounting/spec/models/quotes_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/receipt_spec.rb b/accounting/spec/models/receipt_spec.rb index 419b2262..115a1aff 100644 --- a/accounting/spec/models/receipt_spec.rb +++ b/accounting/spec/models/receipt_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/receipts_spec.rb b/accounting/spec/models/receipts_spec.rb index ba6455ec..0f511ed3 100644 --- a/accounting/spec/models/receipts_spec.rb +++ b/accounting/spec/models/receipts_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/repeating_invoice_spec.rb b/accounting/spec/models/repeating_invoice_spec.rb index 3a2c91fd..049675e5 100644 --- a/accounting/spec/models/repeating_invoice_spec.rb +++ b/accounting/spec/models/repeating_invoice_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/repeating_invoices_spec.rb b/accounting/spec/models/repeating_invoices_spec.rb index e5dd9de3..755b9ba8 100644 --- a/accounting/spec/models/repeating_invoices_spec.rb +++ b/accounting/spec/models/repeating_invoices_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_attribute_spec.rb b/accounting/spec/models/report_attribute_spec.rb index b6068036..39654fe2 100644 --- a/accounting/spec/models/report_attribute_spec.rb +++ b/accounting/spec/models/report_attribute_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_cell_spec.rb b/accounting/spec/models/report_cell_spec.rb index c2b4e21a..d4db26f7 100644 --- a/accounting/spec/models/report_cell_spec.rb +++ b/accounting/spec/models/report_cell_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_fields_spec.rb b/accounting/spec/models/report_fields_spec.rb index 2ffddeec..d59987e0 100644 --- a/accounting/spec/models/report_fields_spec.rb +++ b/accounting/spec/models/report_fields_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_row_spec.rb b/accounting/spec/models/report_row_spec.rb index 4451639c..e2c8abde 100644 --- a/accounting/spec/models/report_row_spec.rb +++ b/accounting/spec/models/report_row_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_rows_spec.rb b/accounting/spec/models/report_rows_spec.rb index acc0da1c..bbbece53 100644 --- a/accounting/spec/models/report_rows_spec.rb +++ b/accounting/spec/models/report_rows_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_spec.rb b/accounting/spec/models/report_spec.rb index e2d3e2ab..275297c4 100644 --- a/accounting/spec/models/report_spec.rb +++ b/accounting/spec/models/report_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_with_row_spec.rb b/accounting/spec/models/report_with_row_spec.rb index ecf3c378..eb3c5fa4 100644 --- a/accounting/spec/models/report_with_row_spec.rb +++ b/accounting/spec/models/report_with_row_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/report_with_rows_spec.rb b/accounting/spec/models/report_with_rows_spec.rb index e360df36..b772bf20 100644 --- a/accounting/spec/models/report_with_rows_spec.rb +++ b/accounting/spec/models/report_with_rows_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/reports_spec.rb b/accounting/spec/models/reports_spec.rb index 021de957..d5e9c6ef 100644 --- a/accounting/spec/models/reports_spec.rb +++ b/accounting/spec/models/reports_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/request_empty_spec.rb b/accounting/spec/models/request_empty_spec.rb index 29b319eb..79e15263 100644 --- a/accounting/spec/models/request_empty_spec.rb +++ b/accounting/spec/models/request_empty_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/row_type_spec.rb b/accounting/spec/models/row_type_spec.rb index c39c5a79..10684828 100644 --- a/accounting/spec/models/row_type_spec.rb +++ b/accounting/spec/models/row_type_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/sales_tracking_category_spec.rb b/accounting/spec/models/sales_tracking_category_spec.rb index cddbd50a..c4e4c9b3 100644 --- a/accounting/spec/models/sales_tracking_category_spec.rb +++ b/accounting/spec/models/sales_tracking_category_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/schedule_spec.rb b/accounting/spec/models/schedule_spec.rb index 7f7c83b6..cb915b3a 100644 --- a/accounting/spec/models/schedule_spec.rb +++ b/accounting/spec/models/schedule_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tax_component_spec.rb b/accounting/spec/models/tax_component_spec.rb index bd96928d..6cfdce41 100644 --- a/accounting/spec/models/tax_component_spec.rb +++ b/accounting/spec/models/tax_component_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tax_rate_spec.rb b/accounting/spec/models/tax_rate_spec.rb index ee61bb41..9e46a59f 100644 --- a/accounting/spec/models/tax_rate_spec.rb +++ b/accounting/spec/models/tax_rate_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tax_rates_spec.rb b/accounting/spec/models/tax_rates_spec.rb index 20faffa8..91fe2333 100644 --- a/accounting/spec/models/tax_rates_spec.rb +++ b/accounting/spec/models/tax_rates_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tax_type_spec.rb b/accounting/spec/models/tax_type_spec.rb index f036cdae..75cf7adc 100644 --- a/accounting/spec/models/tax_type_spec.rb +++ b/accounting/spec/models/tax_type_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/ten_nintey_nine_contact_spec.rb b/accounting/spec/models/ten_nintey_nine_contact_spec.rb index aad9a392..82f35884 100644 --- a/accounting/spec/models/ten_nintey_nine_contact_spec.rb +++ b/accounting/spec/models/ten_nintey_nine_contact_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/time_zone_spec.rb b/accounting/spec/models/time_zone_spec.rb index 1369439a..1d3cc5ef 100644 --- a/accounting/spec/models/time_zone_spec.rb +++ b/accounting/spec/models/time_zone_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tracking_categories_spec.rb b/accounting/spec/models/tracking_categories_spec.rb index 7534a364..9f263dc1 100644 --- a/accounting/spec/models/tracking_categories_spec.rb +++ b/accounting/spec/models/tracking_categories_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tracking_category_spec.rb b/accounting/spec/models/tracking_category_spec.rb index 50090865..be2b6f3f 100644 --- a/accounting/spec/models/tracking_category_spec.rb +++ b/accounting/spec/models/tracking_category_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tracking_option_spec.rb b/accounting/spec/models/tracking_option_spec.rb index d45d8d50..4efa9678 100644 --- a/accounting/spec/models/tracking_option_spec.rb +++ b/accounting/spec/models/tracking_option_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/tracking_options_spec.rb b/accounting/spec/models/tracking_options_spec.rb index 305a345a..8a2169dc 100644 --- a/accounting/spec/models/tracking_options_spec.rb +++ b/accounting/spec/models/tracking_options_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/user_spec.rb b/accounting/spec/models/user_spec.rb index b4429d1c..7505eb87 100644 --- a/accounting/spec/models/user_spec.rb +++ b/accounting/spec/models/user_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/users_spec.rb b/accounting/spec/models/users_spec.rb index b4ee8175..08bf12e6 100644 --- a/accounting/spec/models/users_spec.rb +++ b/accounting/spec/models/users_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/models/validation_error_spec.rb b/accounting/spec/models/validation_error_spec.rb index 7b392ece..2db549b5 100644 --- a/accounting/spec/models/validation_error_spec.rb +++ b/accounting/spec/models/validation_error_spec.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/spec/spec_helper.rb b/accounting/spec/spec_helper.rb index 146730fe..d79e1ff7 100644 --- a/accounting/spec/spec_helper.rb +++ b/accounting/spec/spec_helper.rb @@ -3,7 +3,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 diff --git a/accounting/xero-ruby.gemspec b/accounting/xero-ruby.gemspec index ced4ec0d..eb30788e 100644 --- a/accounting/xero-ruby.gemspec +++ b/accounting/xero-ruby.gemspec @@ -5,7 +5,7 @@ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -The version of the OpenAPI document: 2.0.8 +The version of the OpenAPI document: 2.0.9 Contact: api@xero.com Generated by: https://openapi-generator.tech OpenAPI Generator version: 4.3.0 From 95a9a5e63dabfa6a56e747b1a006e71b398aeafe Mon Sep 17 00:00:00 2001 From: serknight Date: Wed, 15 Apr 2020 18:43:12 -0600 Subject: [PATCH 7/9] readme --- CONTRIBUTING.md | 31 ++-------- README.md | 161 ++++++++++++++++++++++++++++++------------------ 2 files changed, 105 insertions(+), 87 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f3ac4488..41950f53 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -37,17 +37,6 @@ We have an official [message board](https://community.xero.com/developer) where You can contribute by reporting bugs, suggesting enhancements, improving documentation i.e. [README](https://github.com/XeroAPI/xero-ruby/README.md) or submitting a pull request. - -## Which version of the SDK are you using? - -As of Sept 2019, support for oAuth 2 will be generally available for developers. During this transition period from oAuth 1.0a to oAuth 2, we will be supporting two versions of the SDK. - - -* 2.x code resides in `master` and supports oAuth 1.0a -* 3.x code resides in the `oauth2` branch and supports oAuth 2 - -Bugs and enhancements for version 3.x will be prioritized over 2.x. - ## Reporting Bugs Bugs are tracked as issues in this repository. @@ -76,29 +65,17 @@ When opening an issue for a feature request: ## Pull requests -We welcome your feedback and pull requests. Be aware some code is generated and pull requests may not be the best solution - see below. +We welcome your feedback and pull requests. Be aware some code is generated and pull requests may not be the best solution - see below. ### We Use OpenAPI Generator The best way to propose changes to the codebase is to open an [issue](https://github.com/XeroAPI/xero-ruby/issues) and discuss with our team. -We are using [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) and [our OpenAPI specs](https://github.com/XeroAPI/Xero-OpenAPI), to create and update our models and client classes. Improvements may require updates to our OAS or our customized mustache templates instead of modifying via pull request. +We are using [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) and [our OpenAPI specs](https://github.com/XeroAPI/Xero-OpenAPI), to create and update our models and client classes. Improvements may require updates to our OAS or our customized mustache templates instead of modifying via pull request. ### Submit a pull request -1. Fork and clone the repository -1. Create a new branch: `git checkout -b my-branch-name` -1. Make your change, add tests if needed -1. Make sure the tests pass on your machine -1. Push to your fork and submit a pull request -1. Pat your self on the back and wait for your pull request to be reviewed and merged. - -Here are a few things you can do that will increase the likelihood of your pull request being accepted: - -- Follow the [style guide](#style-guide). -- Write tests. -- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests. -- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html). - +Xero's supported SDK's are mostly auto-generated based on an [OpenAPISpec](https://github.com/XeroAPI/Xero-OpenAPI) that utilizes [openapi-generator](https://github.com/OpenAPITools/openapi-generator). +> You can read more about our process here: https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6 ### Style Guide * 2 spaces for indentation rather than tabs diff --git a/README.md b/README.md index 11609809..a2c824a0 100644 --- a/README.md +++ b/README.md @@ -8,100 +8,141 @@ Version 0.x.x of Xero Ruby SDK only supports OAuth 2.0 authentication and the fo * [accounting](https://developer.xero.com/documentation/api/api-overview) Coming soon +* [assets](https://developer.xero.com/documentation/assets-api/overview) * bank feeds * payroll au -* [assets](https://developer.xero.com/documentation/assets-api/overview) * payroll nz/uk * files * projects * xero hq - -[![RubyGem](https://img.shields.io/badge/omniauth--xero--oauth2%20gem-v0.9.3-brightgreen)](https://rubygems.org/gems/omniauth-xero-oauth2) - -To learn more about how our OAuth 2.0 flow works and how to use our Omniauth strategy, check out our Xero developer blog post: [Xero OAuth 2.0 with Ruby](https://devblog.xero.com/xero-oauth-2-with-ruby-313a6ea37989) - - ## Looking for OAuth 1.0a support? Check out the [Xeroizer](https://github.com/waynerobinson/xeroizer) gem (maintained by community) ## Installation -This SDK is published a gem on RubyGems.org as xero-ruby - -Install on CLI from RubyGems.org: - -```gem install xero-ruby``` +This SDK is published as a gem on RubyGems as [xero-ruby](https://rubygems.org/gems/xero-ruby) -Include in Gemfile: +Include in Gemfile and run bundle install ```gem 'xero-ruby'``` -Install from Git: - -```gem 'xero-ruby', :git => 'https://github.com/XeroAPI/xero-ruby.git'``` +## Getting Started +* Create a [free Xero user account](https://www.xero.com/us/signup/api/) +* Login to your Xero developer [/myapps](https://developer.xero.com/myapps) dashboard & create an API application + +## Authorization & Callback +> Oauth2.0 auth flow is baked into this SDK. After a valid authentication a token_set will be returned which you should save and associate to the user who authorized it. + +A token_set will look like the following give the scopes provided: +```json +{ + "id_token" => "xxx.yyy.zz", + "access_token" => "xxx.yyy.zzz", + "expires_in" => 1800, + "token_type" => "Bearer", + "refresh_token"=> "xxxxxx", + "scope"=> "email profile openid accounting.transactions offline_access" +} -Or clone /Accounting and declare it as a local dependency: +``` -```gem 'xero-ruby', :path => '../xeroapi-sdk-codegen/output/xero-ruby/accounting'``` +So to return a valid token_set with this SDK from Xero: +```ruby +require 'xero-ruby' -To build the Ruby code into gem and install locally: +creds = { + client_id: ENV['CLIENT_ID'], + client_secret: ENV['CLIENT_SECRET'], + redirect_uri: ENV['REDIRECT_URI'], + scopes: ENV['SCOPES'] || "email profile openid accounting.transactions offline_access" +} +@xero_client = XeroRuby::ApiClient.new(credentials: creds) +@authorization_url = @xero_client.authorization_url ``` -rake build -gem install ./pkg/xero-ruby-0.1.1.gem +Send the end user to the @authorization_url which will look like: +```json +https://login.xero.com/identity/connect/authorize?response_type=code&client_id=&redirect_uri=&scope= ``` -## Getting Started +```ruby +def callback + token_set = @xero_client.get_token_set_from_callback(params) + + # token_set is now set on the client + token_set = @xero_client.token_set +end -### Create a Xero App -Follow these steps to create your Xero app +... -* Create a [free Xero user account](https://www.xero.com/us/signup/api/) (if you don't have one) -* Login to [Xero developer center](https://developer.xero.com/myapps) -* Click "Try oAuth2" link -* Enter your App name, company url, privacy policy url. -* Enter the redirect URI (this is your callback url - localhost, etc) -* Agree to terms and condition and click "Create App". -* Click "Generate a secret" button. -* Copy your client id and client secret and save for use later. -* Click the "Save" button. Your secret is now hidden. +# store the entire token set associated with the entity/user in your app +current_user.token_set = token_set -### How to use the xero-ruby SDK -This is a barebones example showing how to create an account from Xero via this SDK +# make api calls +accounting_api = XeroRuby::AccountingApi.new(@xero_client) +@invoices = accounting_api.get_invoices(current_user.active_tenant_id).invoices +``` +## Token & SDK Helpers + +```ruby +# `refresh_token_set` -> access_token valid 30 minutes / refresh_token valid 60 days +@token_set = @xero_client.refresh_token_set(current_user.token_set) + +# `connections` -> (createdDateUtc will show you the most recently authorized tenant) +connections = @xero_client.connections +[{ + "id"=>"xxx-yyy-zzz", + "tenantId"=>"xxx-yyy-zzz", + "tenantType"=>"ORGANISATION", + "tenantName"=>"Demo Company (US)", + "createdDateUtc"=>"2019-11-01T20:08:03.0766400", + "updatedDateUtc"=>"2020-04-15T22:37:10.4943410" +}] + +# `disconnect` -> (pass ['id'] not 'tenantId') +remaining_connections = @xero_client.disconnect(params[:connection_id]) ``` -# Load the gem -require 'xero-ruby' -# Setup authorization -XeroRuby.configure do |config| - # Configure OAuth2 access token for authorization: OAuth2 - config.access_token = 'YOUR ACCESS TOKEN' -end +## API Usage +The `get_token_set_from_callback` method will set the `token_set` on the client, however you can also initialize an empty client and set the `token_set` explicitely using `set_token_set`. +> Useful for developers who don't need a full user login interface and already have a valid token set from something like our [CLI tool](https://github.com/XeroAPI/xoauth). + +```ruby + xero_client ||= XeroRuby::ApiClient.new() + + xero_client.set_token_set(current_user.token_set) + + accounting_api = XeroRuby::AccountingApi.new(xero_client) + + @invoices = accounting_api.get_invoices(current_user.active_tenant_id).invoices + @accounts = accounting_api.get_accounts(current_user.active_tenant_id).accounts + @contacts = accounting_api.get_contacts(current_user.active_tenant_id).contacts + + # For full functionality reference https://github.com/XeroAPI/xero-ruby/blob/master/accounting/lib/xero-ruby/api/accounting_api.rb +``` -api_instance = XeroRuby::AccountingApi.new -xero_tenant_id = 'xero_tenant_id_example' # String | Xero identifier for Tenant -account = { "Code":"123456", "Name":"Foobar", "Type":"EXPENSE", "Description":"Hello World" } # Account | Request of type Account +If you have use cases outside of these examples, please let us know! -begin - #Allows you to create a new chart of accounts - result = api_instance.create_account(xero_tenant_id, account) - p result -rescue XeroRuby::ApiError => e - puts "Exception when calling AccountingApi->create_account: #{e}" -end -``` +## Sample App +* https://github.com/XeroAPI/xero-ruby-oauth2-app -### More details on how to use interact with each endpiont -Check out [full documentation](https://github.com/XeroAPI/xero-ruby/tree/master/accounting) under /accounting. +The best resource to understanding how to best leverage this SDK is to clone down our Sample Rails application which showcases all the features of this project. The sample app can help you quickly understand how to: +* Complete the OAuth2.0 Authorization flow +* Store token_sets against a user object +* Store info about active connections +* Change the active tenant & make api calls to multiple orgs +* Refresh your token sets +* how to decode your token_set and strategy around how/when to refresh +* How to Disconnect from an org -## Contribution is welcome! -We love to get your input on how we can improve the SDK! Please read our [Contribuion Guide](https://github.com/XeroAPI/xero-ruby/CONTRIBUTING.md) before making an pull request! +### Other Documentation +We are working on a more consumable way to serve docs for this project. There is a /docs directory & other helpful [Documentation](https://github.com/XeroAPI/xero-ruby/blob/master/accounting/lib/xero-ruby/api/accounting_api.rb) can be found in each API's client file. Feedback welcome. -## TLS 1.0 deprecation -As of June 30, 2018, Xero's API will remove support for TLS 1.0. +## Contribution & Requests +Xero's supported SDK's are mostly auto-generated based on an [OpenAPISpec](https://github.com/XeroAPI/Xero-OpenAPI) that utilizes [openapi-generator](https://github.com/OpenAPITools/openapi-generator). Read about our SDK development: https://devblog.xero.com/building-sdks-for-the-future-b79ff726dfd6 -The easiest way to force TLS 1.2 is to set the Runtime Environment for your server (Tomcat, etc) to Java 1.8 which defaults to TLS 1.2. +Please read our [Contribuion Guide](https://github.com/XeroAPI/xero-ruby/CONTRIBUTING.md) before making a pull request! ## License From 47c426a85e111269292aea013243a5008831cc63 Mon Sep 17 00:00:00 2001 From: serknight Date: Wed, 15 Apr 2020 19:44:30 -0600 Subject: [PATCH 8/9] readme readabiltiy --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index a2c824a0..cb365d7a 100644 --- a/README.md +++ b/README.md @@ -19,6 +19,7 @@ Coming soon ## Looking for OAuth 1.0a support? Check out the [Xeroizer](https://github.com/waynerobinson/xeroizer) gem (maintained by community) +--- ## Installation This SDK is published as a gem on RubyGems as [xero-ruby](https://rubygems.org/gems/xero-ruby) @@ -136,6 +137,8 @@ The best resource to understanding how to best leverage this SDK is to clone dow * how to decode your token_set and strategy around how/when to refresh * How to Disconnect from an org +--- + ### Other Documentation We are working on a more consumable way to serve docs for this project. There is a /docs directory & other helpful [Documentation](https://github.com/XeroAPI/xero-ruby/blob/master/accounting/lib/xero-ruby/api/accounting_api.rb) can be found in each API's client file. Feedback welcome. From 5d7cd7040066cde614814cfca08536cebb333e5a Mon Sep 17 00:00:00 2001 From: serknight Date: Thu, 16 Apr 2020 16:14:59 -0600 Subject: [PATCH 9/9] readme simpler --- README.md | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 5d38e9eb..162e87f4 100644 --- a/README.md +++ b/README.md @@ -67,18 +67,11 @@ https://login.xero.com/identity/connect/authorize?response_type=code&client_id=< ``` ```ruby -def callback - token_set = @xero_client.get_token_set_from_callback(params) - - # token_set is now set on the client - token_set = @xero_client.token_set -end - +# /callback +token_set = @xero_client.get_token_set_from_callback(params) +token_set = @xero_client.token_set ... -# store the entire token set associated with the entity/user in your app -current_user.token_set = token_set - # make api calls accounting_api = XeroRuby::AccountingApi.new(@xero_client) @invoices = accounting_api.get_invoices(current_user.active_tenant_id).invoices