xero-ruby 1.0 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +43 -3
- data/build_notes.md +21 -0
- data/docs/accounting/AccountingApi.md +1514 -722
- data/docs/accounting/Allocation.md +11 -1
- data/docs/accounting/BankTransfer.md +1 -1
- data/docs/accounting/BatchPayment.md +1 -1
- data/docs/accounting/Contact.md +2 -2
- data/docs/accounting/CreditNote.md +2 -2
- data/docs/accounting/Invoice.md +2 -2
- data/docs/accounting/Journal.md +1 -1
- data/docs/accounting/ManualJournalLine.md +2 -0
- data/docs/accounting/Organisation.md +3 -1
- data/docs/accounting/Payment.md +6 -4
- data/docs/accounting/Quote.md +5 -1
- data/docs/accounting/Report.md +1 -1
- data/docs/accounting/{TenNinteyNineContact.md → TenNinetyNineContact.md} +2 -2
- data/docs/assets/AssetApi.md +40 -16
- data/docs/assets/AssetType.md +1 -1
- data/docs/projects/Amount.md +19 -0
- data/docs/projects/ChargeType.md +16 -0
- data/docs/projects/CurrencyCode.md +16 -0
- data/docs/projects/Error.md +19 -0
- data/docs/projects/Pagination.md +23 -0
- data/docs/projects/Project.md +59 -0
- data/docs/projects/ProjectApi.md +979 -0
- data/docs/projects/ProjectCreateOrUpdate.md +23 -0
- data/docs/projects/ProjectPatch.md +17 -0
- data/docs/projects/ProjectStatus.md +16 -0
- data/docs/projects/ProjectUser.md +21 -0
- data/docs/projects/ProjectUsers.md +19 -0
- data/docs/projects/Projects.md +19 -0
- data/docs/projects/Task.md +45 -0
- data/docs/projects/TaskCreateOrUpdate.md +23 -0
- data/docs/projects/Tasks.md +19 -0
- data/docs/projects/TimeEntries.md +19 -0
- data/docs/projects/TimeEntry.md +33 -0
- data/docs/projects/TimeEntryCreateOrUpdate.md +25 -0
- data/lib/xero-ruby.rb +22 -3
- data/lib/xero-ruby/api/accounting_api.rb +85 -9
- data/lib/xero-ruby/api/asset_api.rb +3 -3
- data/lib/xero-ruby/api/project_api.rb +1035 -0
- data/lib/xero-ruby/api_client.rb +103 -37
- data/lib/xero-ruby/api_error.rb +2 -2
- data/lib/xero-ruby/configuration.rb +4 -5
- data/lib/xero-ruby/models/accounting/account.rb +61 -20
- data/lib/xero-ruby/models/accounting/account_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/accounts.rb +8 -3
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +11 -5
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +11 -5
- data/lib/xero-ruby/models/accounting/address.rb +19 -12
- data/lib/xero-ruby/models/accounting/allocation.rb +66 -9
- data/lib/xero-ruby/models/accounting/allocations.rb +8 -3
- data/lib/xero-ruby/models/accounting/attachment.rb +12 -8
- data/lib/xero-ruby/models/accounting/attachments.rb +8 -3
- data/lib/xero-ruby/models/accounting/balances.rb +9 -3
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +43 -24
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +8 -3
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +20 -14
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +8 -3
- data/lib/xero-ruby/models/accounting/batch_payment.rb +29 -19
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +11 -7
- data/lib/xero-ruby/models/accounting/batch_payments.rb +8 -3
- data/lib/xero-ruby/models/accounting/bill.rb +8 -3
- data/lib/xero-ruby/models/accounting/branding_theme.rb +13 -8
- data/lib/xero-ruby/models/accounting/branding_themes.rb +8 -3
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +9 -5
- data/lib/xero-ruby/models/accounting/cis_setting.rb +8 -4
- data/lib/xero-ruby/models/accounting/cis_settings.rb +8 -3
- data/lib/xero-ruby/models/accounting/contact.rb +51 -37
- data/lib/xero-ruby/models/accounting/contact_group.rb +12 -6
- data/lib/xero-ruby/models/accounting/contact_groups.rb +8 -3
- data/lib/xero-ruby/models/accounting/contact_person.rb +10 -6
- data/lib/xero-ruby/models/accounting/contacts.rb +8 -3
- data/lib/xero-ruby/models/accounting/country_code.rb +2 -2
- data/lib/xero-ruby/models/accounting/credit_note.rb +47 -30
- data/lib/xero-ruby/models/accounting/credit_notes.rb +8 -3
- data/lib/xero-ruby/models/accounting/currencies.rb +8 -3
- data/lib/xero-ruby/models/accounting/currency.rb +9 -4
- data/lib/xero-ruby/models/accounting/currency_code.rb +4 -4
- data/lib/xero-ruby/models/accounting/element.rb +14 -4
- data/lib/xero-ruby/models/accounting/employee.rb +17 -8
- data/lib/xero-ruby/models/accounting/employees.rb +8 -3
- data/lib/xero-ruby/models/accounting/error.rb +10 -6
- data/lib/xero-ruby/models/accounting/expense_claim.rb +26 -15
- data/lib/xero-ruby/models/accounting/expense_claims.rb +8 -3
- data/lib/xero-ruby/models/accounting/external_link.rb +14 -4
- data/lib/xero-ruby/models/accounting/history_record.rb +10 -6
- data/lib/xero-ruby/models/accounting/history_records.rb +8 -3
- data/lib/xero-ruby/models/accounting/invoice.rb +69 -46
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +7 -3
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +8 -3
- data/lib/xero-ruby/models/accounting/invoices.rb +8 -3
- data/lib/xero-ruby/models/accounting/item.rb +24 -18
- data/lib/xero-ruby/models/accounting/items.rb +8 -3
- data/lib/xero-ruby/models/accounting/journal.rb +40 -11
- data/lib/xero-ruby/models/accounting/journal_line.rb +21 -16
- data/lib/xero-ruby/models/accounting/journals.rb +8 -3
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/accounting/line_item.rb +25 -21
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +10 -6
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +25 -13
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +8 -3
- data/lib/xero-ruby/models/accounting/manual_journal.rb +25 -15
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +26 -12
- data/lib/xero-ruby/models/accounting/manual_journals.rb +8 -3
- data/lib/xero-ruby/models/accounting/online_invoice.rb +7 -3
- data/lib/xero-ruby/models/accounting/online_invoices.rb +8 -3
- data/lib/xero-ruby/models/accounting/organisation.rb +122 -32
- data/lib/xero-ruby/models/accounting/organisations.rb +8 -3
- data/lib/xero-ruby/models/accounting/overpayment.rb +36 -23
- data/lib/xero-ruby/models/accounting/overpayments.rb +8 -3
- data/lib/xero-ruby/models/accounting/payment.rb +57 -24
- data/lib/xero-ruby/models/accounting/payment_delete.rb +7 -3
- data/lib/xero-ruby/models/accounting/payment_service.rb +12 -8
- data/lib/xero-ruby/models/accounting/payment_services.rb +8 -3
- data/lib/xero-ruby/models/accounting/payment_term.rb +9 -3
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/payments.rb +8 -3
- data/lib/xero-ruby/models/accounting/phone.rb +16 -6
- data/lib/xero-ruby/models/accounting/prepayment.rb +37 -23
- data/lib/xero-ruby/models/accounting/prepayments.rb +8 -3
- data/lib/xero-ruby/models/accounting/purchase.rb +11 -7
- data/lib/xero-ruby/models/accounting/purchase_order.rb +45 -33
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +8 -3
- data/lib/xero-ruby/models/accounting/quote.rb +58 -28
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +3 -2
- data/lib/xero-ruby/models/accounting/quotes.rb +8 -3
- data/lib/xero-ruby/models/accounting/receipt.rb +32 -19
- data/lib/xero-ruby/models/accounting/receipts.rb +8 -3
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +30 -17
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +8 -3
- data/lib/xero-ruby/models/accounting/report.rb +15 -9
- data/lib/xero-ruby/models/accounting/report_attribute.rb +9 -3
- data/lib/xero-ruby/models/accounting/report_cell.rb +9 -3
- data/lib/xero-ruby/models/accounting/report_fields.rb +10 -3
- data/lib/xero-ruby/models/accounting/report_row.rb +10 -3
- data/lib/xero-ruby/models/accounting/report_rows.rb +11 -3
- data/lib/xero-ruby/models/accounting/report_with_row.rb +15 -9
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +8 -3
- data/lib/xero-ruby/models/accounting/reports.rb +8 -3
- data/lib/xero-ruby/models/accounting/request_empty.rb +7 -3
- data/lib/xero-ruby/models/accounting/row_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +8 -4
- data/lib/xero-ruby/models/accounting/schedule.rb +23 -11
- data/lib/xero-ruby/models/accounting/tax_component.rb +11 -7
- data/lib/xero-ruby/models/accounting/tax_rate.rb +100 -18
- data/lib/xero-ruby/models/accounting/tax_rates.rb +8 -3
- data/lib/xero-ruby/models/accounting/tax_type.rb +6 -2
- data/lib/xero-ruby/models/accounting/{ten_nintey_nine_contact.rb → ten_ninety_nine_contact.rb} +44 -40
- data/lib/xero-ruby/models/accounting/time_zone.rb +2 -2
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +8 -3
- data/lib/xero-ruby/models/accounting/tracking_category.rb +15 -8
- data/lib/xero-ruby/models/accounting/tracking_option.rb +13 -6
- data/lib/xero-ruby/models/accounting/tracking_options.rb +8 -3
- data/lib/xero-ruby/models/accounting/user.rb +20 -9
- data/lib/xero-ruby/models/accounting/users.rb +8 -3
- data/lib/xero-ruby/models/accounting/validation_error.rb +7 -3
- data/lib/xero-ruby/models/assets/asset.rb +24 -17
- data/lib/xero-ruby/models/assets/asset_status.rb +2 -2
- data/lib/xero-ruby/models/assets/asset_status_query_param.rb +2 -2
- data/lib/xero-ruby/models/assets/asset_type.rb +13 -13
- data/lib/xero-ruby/models/assets/assets.rb +9 -3
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +19 -15
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +26 -11
- data/lib/xero-ruby/models/assets/error.rb +11 -7
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +12 -8
- data/lib/xero-ruby/models/assets/pagination.rb +11 -3
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +11 -7
- data/lib/xero-ruby/models/assets/setting.rb +14 -10
- data/lib/xero-ruby/models/projects/amount.rb +218 -0
- data/lib/xero-ruby/models/projects/charge_type.rb +38 -0
- data/lib/xero-ruby/models/projects/currency_code.rb +199 -0
- data/lib/xero-ruby/models/projects/error.rb +218 -0
- data/lib/xero-ruby/models/projects/pagination.rb +238 -0
- data/lib/xero-ruby/models/projects/project.rb +423 -0
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +243 -0
- data/lib/xero-ruby/models/projects/project_patch.rb +213 -0
- data/lib/xero-ruby/models/projects/project_status.rb +37 -0
- data/lib/xero-ruby/models/projects/project_user.rb +228 -0
- data/lib/xero-ruby/models/projects/project_users.rb +220 -0
- data/lib/xero-ruby/models/projects/projects.rb +220 -0
- data/lib/xero-ruby/models/projects/task.rb +385 -0
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +253 -0
- data/lib/xero-ruby/models/projects/tasks.rb +220 -0
- data/lib/xero-ruby/models/projects/time_entries.rb +220 -0
- data/lib/xero-ruby/models/projects/time_entry.rb +324 -0
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +268 -0
- data/lib/xero-ruby/version.rb +3 -3
- data/spec/accounting/api/accounting_api_spec.rb +19 -6
- data/spec/accounting/models/account_spec.rb +1 -1
- data/spec/accounting/models/account_type_spec.rb +1 -1
- data/spec/accounting/models/accounts_payable_spec.rb +1 -1
- data/spec/accounting/models/accounts_receivable_spec.rb +1 -1
- data/spec/accounting/models/accounts_spec.rb +1 -1
- data/spec/accounting/models/address_spec.rb +1 -1
- data/spec/accounting/models/allocation_spec.rb +1 -1
- data/spec/accounting/models/allocations_spec.rb +1 -1
- data/spec/accounting/models/attachment_spec.rb +1 -1
- data/spec/accounting/models/attachments_spec.rb +1 -1
- data/spec/accounting/models/balances_spec.rb +1 -1
- data/spec/accounting/models/bank_transaction_spec.rb +1 -1
- data/spec/accounting/models/bank_transactions_spec.rb +1 -1
- data/spec/accounting/models/bank_transfer_spec.rb +1 -1
- data/spec/accounting/models/bank_transfers_spec.rb +1 -1
- data/spec/accounting/models/batch_payment_details_spec.rb +1 -1
- data/spec/accounting/models/batch_payment_spec.rb +1 -1
- data/spec/accounting/models/batch_payments_spec.rb +1 -1
- data/spec/accounting/models/bill_spec.rb +1 -1
- data/spec/accounting/models/branding_theme_spec.rb +1 -1
- data/spec/accounting/models/branding_themes_spec.rb +1 -1
- data/spec/accounting/models/cis_org_setting_spec.rb +1 -1
- data/spec/accounting/models/cis_setting_spec.rb +1 -1
- data/spec/accounting/models/cis_settings_spec.rb +1 -1
- data/spec/accounting/models/contact_group_spec.rb +1 -1
- data/spec/accounting/models/contact_groups_spec.rb +1 -1
- data/spec/accounting/models/contact_person_spec.rb +1 -1
- data/spec/accounting/models/contact_spec.rb +1 -1
- data/spec/accounting/models/contacts_spec.rb +1 -1
- data/spec/accounting/models/country_code_spec.rb +1 -1
- data/spec/accounting/models/credit_note_spec.rb +1 -1
- data/spec/accounting/models/credit_notes_spec.rb +1 -1
- data/spec/accounting/models/currencies_spec.rb +1 -1
- data/spec/accounting/models/currency_code_spec.rb +1 -1
- data/spec/accounting/models/currency_spec.rb +1 -1
- data/spec/accounting/models/element_spec.rb +1 -1
- data/spec/accounting/models/employee_spec.rb +1 -1
- data/spec/accounting/models/employees_spec.rb +1 -1
- data/spec/accounting/models/error_spec.rb +1 -1
- data/spec/accounting/models/expense_claim_spec.rb +1 -1
- data/spec/accounting/models/expense_claims_spec.rb +1 -1
- data/spec/accounting/models/external_link_spec.rb +1 -1
- data/spec/accounting/models/history_record_spec.rb +1 -1
- data/spec/accounting/models/history_records_spec.rb +1 -1
- data/spec/accounting/models/invoice_reminder_spec.rb +1 -1
- data/spec/accounting/models/invoice_reminders_spec.rb +1 -1
- data/spec/accounting/models/invoice_spec.rb +1 -1
- data/spec/accounting/models/invoices_spec.rb +1 -1
- data/spec/accounting/models/item_spec.rb +1 -1
- data/spec/accounting/models/items_spec.rb +1 -1
- data/spec/accounting/models/journal_line_spec.rb +1 -1
- data/spec/accounting/models/journal_spec.rb +1 -1
- data/spec/accounting/models/journals_spec.rb +1 -1
- data/spec/accounting/models/line_amount_types_spec.rb +1 -1
- data/spec/accounting/models/line_item_spec.rb +1 -1
- data/spec/accounting/models/line_item_tracking_spec.rb +1 -1
- data/spec/accounting/models/linked_transaction_spec.rb +1 -1
- data/spec/accounting/models/linked_transactions_spec.rb +1 -1
- data/spec/accounting/models/manual_journal_line_spec.rb +1 -1
- data/spec/accounting/models/manual_journal_spec.rb +1 -1
- data/spec/accounting/models/manual_journals_spec.rb +1 -1
- data/spec/accounting/models/online_invoice_spec.rb +1 -1
- data/spec/accounting/models/online_invoices_spec.rb +1 -1
- data/spec/accounting/models/organisation_spec.rb +1 -1
- data/spec/accounting/models/organisations_spec.rb +1 -1
- data/spec/accounting/models/overpayment_spec.rb +1 -1
- data/spec/accounting/models/overpayments_spec.rb +1 -1
- data/spec/accounting/models/payment_delete_spec.rb +1 -1
- data/spec/accounting/models/payment_service_spec.rb +1 -1
- data/spec/accounting/models/payment_services_spec.rb +1 -1
- data/spec/accounting/models/payment_spec.rb +7 -1
- data/spec/accounting/models/payment_term_spec.rb +1 -1
- data/spec/accounting/models/payment_term_type_spec.rb +1 -1
- data/spec/accounting/models/payments_spec.rb +1 -1
- data/spec/accounting/models/phone_spec.rb +1 -1
- data/spec/accounting/models/prepayment_spec.rb +1 -1
- data/spec/accounting/models/prepayments_spec.rb +1 -1
- data/spec/accounting/models/purchase_order_spec.rb +1 -1
- data/spec/accounting/models/purchase_orders_spec.rb +1 -1
- data/spec/accounting/models/purchase_spec.rb +1 -1
- data/spec/accounting/models/quote_line_amount_types_spec.rb +1 -1
- data/spec/accounting/models/quote_spec.rb +1 -1
- data/spec/accounting/models/quote_status_codes_spec.rb +1 -1
- data/spec/accounting/models/quotes_spec.rb +1 -1
- data/spec/accounting/models/receipt_spec.rb +1 -1
- data/spec/accounting/models/receipts_spec.rb +1 -1
- data/spec/accounting/models/repeating_invoice_spec.rb +1 -1
- data/spec/accounting/models/repeating_invoices_spec.rb +1 -1
- data/spec/accounting/models/report_attribute_spec.rb +1 -1
- data/spec/accounting/models/report_cell_spec.rb +1 -1
- data/spec/accounting/models/report_fields_spec.rb +1 -1
- data/spec/accounting/models/report_row_spec.rb +1 -1
- data/spec/accounting/models/report_rows_spec.rb +1 -1
- data/spec/accounting/models/report_spec.rb +1 -1
- data/spec/accounting/models/report_with_row_spec.rb +1 -1
- data/spec/accounting/models/report_with_rows_spec.rb +1 -1
- data/spec/accounting/models/reports_spec.rb +1 -1
- data/spec/accounting/models/request_empty_spec.rb +1 -1
- data/spec/accounting/models/row_type_spec.rb +1 -1
- data/spec/accounting/models/sales_tracking_category_spec.rb +1 -1
- data/spec/accounting/models/schedule_spec.rb +1 -1
- data/spec/accounting/models/tax_component_spec.rb +1 -1
- data/spec/accounting/models/tax_rate_spec.rb +2 -2
- data/spec/accounting/models/tax_rates_spec.rb +1 -1
- data/spec/accounting/models/tax_type_spec.rb +1 -1
- data/spec/accounting/models/ten_nintey_nine_contact_spec.rb +7 -7
- data/spec/accounting/models/time_zone_spec.rb +1 -1
- data/spec/accounting/models/tracking_categories_spec.rb +1 -1
- data/spec/accounting/models/tracking_category_spec.rb +1 -1
- data/spec/accounting/models/tracking_option_spec.rb +1 -1
- data/spec/accounting/models/tracking_options_spec.rb +1 -1
- data/spec/accounting/models/user_spec.rb +1 -1
- data/spec/accounting/models/users_spec.rb +1 -1
- data/spec/accounting/models/validation_error_spec.rb +1 -1
- data/spec/api_client_spec.rb +120 -33
- data/spec/assets/api/asset_api_spec.rb +4 -4
- data/spec/assets/models/asset_spec.rb +1 -1
- data/spec/assets/models/asset_status_query_param_spec.rb +1 -1
- data/spec/assets/models/asset_status_spec.rb +1 -1
- data/spec/assets/models/asset_type_spec.rb +1 -1
- data/spec/assets/models/assets_spec.rb +1 -1
- data/spec/assets/models/book_depreciation_detail_spec.rb +1 -1
- data/spec/assets/models/book_depreciation_setting_spec.rb +1 -1
- data/spec/assets/models/error_spec.rb +1 -1
- data/spec/assets/models/field_validation_errors_element_spec.rb +1 -1
- data/spec/assets/models/pagination_spec.rb +1 -1
- data/spec/assets/models/resource_validation_errors_element_spec.rb +1 -1
- data/spec/assets/models/setting_spec.rb +1 -1
- data/spec/configuration_spec.rb +8 -24
- data/spec/projects/api/project_api_spec.rb +229 -0
- data/spec/projects/models/amount_spec.rb +47 -0
- data/spec/projects/models/charge_type_spec.rb +35 -0
- data/spec/projects/models/currency_code_spec.rb +35 -0
- data/spec/projects/models/error_spec.rb +47 -0
- data/spec/projects/models/pagination_spec.rb +59 -0
- data/spec/projects/models/project_create_or_update_spec.rb +59 -0
- data/spec/projects/models/project_patch_spec.rb +41 -0
- data/spec/projects/models/project_spec.rb +167 -0
- data/spec/projects/models/project_status_spec.rb +35 -0
- data/spec/projects/models/project_user_spec.rb +53 -0
- data/spec/projects/models/project_users_spec.rb +47 -0
- data/spec/projects/models/projects_spec.rb +47 -0
- data/spec/projects/models/task_create_or_update_spec.rb +59 -0
- data/spec/projects/models/task_spec.rb +129 -0
- data/spec/projects/models/tasks_spec.rb +47 -0
- data/spec/projects/models/time_entries_spec.rb +47 -0
- data/spec/projects/models/time_entry_create_or_update_spec.rb +65 -0
- data/spec/projects/models/time_entry_spec.rb +93 -0
- data/spec/spec_helper.rb +1 -1
- data/xero-ruby.gemspec +3 -4
- metadata +85 -9
- data/xero-ruby.gem +0 -0
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,69 +14,86 @@ require 'time'
|
|
14
14
|
require 'date'
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
|
+
require 'bigdecimal'
|
18
|
+
|
17
19
|
class BankTransaction
|
18
20
|
# See Bank Transaction Types
|
19
21
|
attr_accessor :type
|
22
|
+
RECEIVE = "RECEIVE".freeze
|
23
|
+
RECEIVE_OVERPAYMENT = "RECEIVE-OVERPAYMENT".freeze
|
24
|
+
RECEIVE_PREPAYMENT = "RECEIVE-PREPAYMENT".freeze
|
25
|
+
SPEND = "SPEND".freeze
|
26
|
+
SPEND_OVERPAYMENT = "SPEND-OVERPAYMENT".freeze
|
27
|
+
SPEND_PREPAYMENT = "SPEND-PREPAYMENT".freeze
|
28
|
+
RECEIVE_TRANSFER = "RECEIVE-TRANSFER".freeze
|
29
|
+
SPEND_TRANSFER = "SPEND-TRANSFER".freeze
|
30
|
+
|
20
31
|
|
21
32
|
attr_accessor :contact
|
22
|
-
|
33
|
+
|
23
34
|
# See LineItems
|
24
35
|
attr_accessor :line_items
|
36
|
+
|
25
37
|
|
26
38
|
attr_accessor :bank_account
|
27
|
-
|
39
|
+
|
28
40
|
# Boolean to show if transaction is reconciled
|
29
41
|
attr_accessor :is_reconciled
|
30
|
-
|
42
|
+
|
31
43
|
# Date of transaction – YYYY-MM-DD
|
32
44
|
attr_accessor :date
|
33
|
-
|
45
|
+
|
34
46
|
# Reference for the transaction. Only supported for SPEND and RECEIVE transactions.
|
35
47
|
attr_accessor :reference
|
48
|
+
|
36
49
|
|
37
50
|
attr_accessor :currency_code
|
38
|
-
|
51
|
+
|
39
52
|
# Exchange rate to base currency when money is spent or received. e.g.0.7500 Only used for bank transactions in non base currency. If this isn’t specified for non base currency accounts then either the user-defined rate (preference) or the XE.com day rate will be used. Setting currency is only supported on overpayments.
|
40
53
|
attr_accessor :currency_rate
|
41
|
-
|
54
|
+
|
42
55
|
# URL link to a source document – shown as “Go to App Name”
|
43
56
|
attr_accessor :url
|
44
|
-
|
57
|
+
|
45
58
|
# See Bank Transaction Status Codes
|
46
59
|
attr_accessor :status
|
60
|
+
AUTHORISED = "AUTHORISED".freeze
|
61
|
+
DELETED = "DELETED".freeze
|
62
|
+
VOIDED = "VOIDED".freeze
|
63
|
+
|
47
64
|
|
48
65
|
attr_accessor :line_amount_types
|
49
|
-
|
66
|
+
|
50
67
|
# Total of bank transaction excluding taxes
|
51
68
|
attr_accessor :sub_total
|
52
|
-
|
69
|
+
|
53
70
|
# Total tax on bank transaction
|
54
71
|
attr_accessor :total_tax
|
55
|
-
|
72
|
+
|
56
73
|
# Total of bank transaction tax inclusive
|
57
74
|
attr_accessor :total
|
58
|
-
|
75
|
+
|
59
76
|
# Xero generated unique identifier for bank transaction
|
60
77
|
attr_accessor :bank_transaction_id
|
61
|
-
|
78
|
+
|
62
79
|
# Xero generated unique identifier for a Prepayment. This will be returned on BankTransactions with a Type of SPEND-PREPAYMENT or RECEIVE-PREPAYMENT
|
63
80
|
attr_accessor :prepayment_id
|
64
|
-
|
81
|
+
|
65
82
|
# Xero generated unique identifier for an Overpayment. This will be returned on BankTransactions with a Type of SPEND-OVERPAYMENT or RECEIVE-OVERPAYMENT
|
66
83
|
attr_accessor :overpayment_id
|
67
|
-
|
84
|
+
|
68
85
|
# Last modified date UTC format
|
69
86
|
attr_accessor :updated_date_utc
|
70
|
-
|
87
|
+
|
71
88
|
# Boolean to indicate if a bank transaction has an attachment
|
72
89
|
attr_accessor :has_attachments
|
73
|
-
|
90
|
+
|
74
91
|
# A string to indicate if a invoice status
|
75
92
|
attr_accessor :status_attribute_string
|
76
|
-
|
93
|
+
|
77
94
|
# Displays array of validation error messages from the API
|
78
95
|
attr_accessor :validation_errors
|
79
|
-
|
96
|
+
|
80
97
|
class EnumAttributeValidator
|
81
98
|
attr_reader :datatype
|
82
99
|
attr_reader :allowable_values
|
@@ -138,13 +155,13 @@ module XeroRuby::Accounting
|
|
138
155
|
:'date' => :'Date',
|
139
156
|
:'reference' => :'String',
|
140
157
|
:'currency_code' => :'CurrencyCode',
|
141
|
-
:'currency_rate' => :'
|
158
|
+
:'currency_rate' => :'BigDecimal',
|
142
159
|
:'url' => :'String',
|
143
160
|
:'status' => :'String',
|
144
161
|
:'line_amount_types' => :'LineAmountTypes',
|
145
|
-
:'sub_total' => :'
|
146
|
-
:'total_tax' => :'
|
147
|
-
:'total' => :'
|
162
|
+
:'sub_total' => :'BigDecimal',
|
163
|
+
:'total_tax' => :'BigDecimal',
|
164
|
+
:'total' => :'BigDecimal',
|
148
165
|
:'bank_transaction_id' => :'String',
|
149
166
|
:'prepayment_id' => :'String',
|
150
167
|
:'overpayment_id' => :'String',
|
@@ -406,6 +423,8 @@ module XeroRuby::Accounting
|
|
406
423
|
value.to_i
|
407
424
|
when :Float
|
408
425
|
value.to_f
|
426
|
+
when :BigDecimal
|
427
|
+
BigDecimal(value.to_s)
|
409
428
|
when :Boolean
|
410
429
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
411
430
|
true
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,9 +14,12 @@ require 'time'
|
|
14
14
|
require 'date'
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
|
+
require 'bigdecimal'
|
18
|
+
|
17
19
|
class BankTransactions
|
18
|
-
attr_accessor :bank_transactions
|
19
20
|
|
21
|
+
attr_accessor :bank_transactions
|
22
|
+
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
@@ -129,6 +132,8 @@ module XeroRuby::Accounting
|
|
129
132
|
value.to_i
|
130
133
|
when :Float
|
131
134
|
value.to_f
|
135
|
+
when :BigDecimal
|
136
|
+
BigDecimal(value.to_s)
|
132
137
|
when :Boolean
|
133
138
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
134
139
|
true
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,38 +14,42 @@ require 'time'
|
|
14
14
|
require 'date'
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
|
+
require 'bigdecimal'
|
18
|
+
|
17
19
|
class BankTransfer
|
20
|
+
|
18
21
|
attr_accessor :from_bank_account
|
22
|
+
|
19
23
|
|
20
24
|
attr_accessor :to_bank_account
|
21
|
-
|
25
|
+
|
22
26
|
# amount of the transaction
|
23
27
|
attr_accessor :amount
|
24
|
-
|
28
|
+
|
25
29
|
# The date of the Transfer YYYY-MM-DD
|
26
30
|
attr_accessor :date
|
27
|
-
|
31
|
+
|
28
32
|
# The identifier of the Bank Transfer
|
29
33
|
attr_accessor :bank_transfer_id
|
30
|
-
|
34
|
+
|
31
35
|
# The currency rate
|
32
36
|
attr_accessor :currency_rate
|
33
|
-
|
37
|
+
|
34
38
|
# The Bank Transaction ID for the source account
|
35
39
|
attr_accessor :from_bank_transaction_id
|
36
|
-
|
40
|
+
|
37
41
|
# The Bank Transaction ID for the destination account
|
38
42
|
attr_accessor :to_bank_transaction_id
|
39
|
-
|
43
|
+
|
40
44
|
# Boolean to indicate if a Bank Transfer has an attachment
|
41
45
|
attr_accessor :has_attachments
|
42
|
-
|
46
|
+
|
43
47
|
# UTC timestamp of creation date of bank transfer
|
44
48
|
attr_accessor :created_date_utc
|
45
|
-
|
49
|
+
|
46
50
|
# Displays array of validation error messages from the API
|
47
51
|
attr_accessor :validation_errors
|
48
|
-
|
52
|
+
|
49
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
54
|
def self.attribute_map
|
51
55
|
{
|
@@ -68,10 +72,10 @@ module XeroRuby::Accounting
|
|
68
72
|
{
|
69
73
|
:'from_bank_account' => :'Account',
|
70
74
|
:'to_bank_account' => :'Account',
|
71
|
-
:'amount' => :'
|
75
|
+
:'amount' => :'BigDecimal',
|
72
76
|
:'date' => :'Date',
|
73
77
|
:'bank_transfer_id' => :'String',
|
74
|
-
:'currency_rate' => :'
|
78
|
+
:'currency_rate' => :'BigDecimal',
|
75
79
|
:'from_bank_transaction_id' => :'String',
|
76
80
|
:'to_bank_transaction_id' => :'String',
|
77
81
|
:'has_attachments' => :'Boolean',
|
@@ -245,6 +249,8 @@ module XeroRuby::Accounting
|
|
245
249
|
value.to_i
|
246
250
|
when :Float
|
247
251
|
value.to_f
|
252
|
+
when :BigDecimal
|
253
|
+
BigDecimal(value.to_s)
|
248
254
|
when :Boolean
|
249
255
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
250
256
|
true
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,9 +14,12 @@ require 'time'
|
|
14
14
|
require 'date'
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
|
+
require 'bigdecimal'
|
18
|
+
|
17
19
|
class BankTransfers
|
18
|
-
attr_accessor :bank_transfers
|
19
20
|
|
21
|
+
attr_accessor :bank_transfers
|
22
|
+
|
20
23
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
24
|
def self.attribute_map
|
22
25
|
{
|
@@ -129,6 +132,8 @@ module XeroRuby::Accounting
|
|
129
132
|
value.to_i
|
130
133
|
when :Float
|
131
134
|
value.to_f
|
135
|
+
when :BigDecimal
|
136
|
+
BigDecimal(value.to_s)
|
132
137
|
when :Boolean
|
133
138
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
134
139
|
true
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -14,53 +14,61 @@ require 'time'
|
|
14
14
|
require 'date'
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
|
+
require 'bigdecimal'
|
18
|
+
|
17
19
|
class BatchPayment
|
18
|
-
attr_accessor :account
|
19
20
|
|
21
|
+
attr_accessor :account
|
22
|
+
|
20
23
|
# (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.
|
21
24
|
attr_accessor :reference
|
22
|
-
|
25
|
+
|
23
26
|
# (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.
|
24
27
|
attr_accessor :particulars
|
25
|
-
|
28
|
+
|
26
29
|
# (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.
|
27
30
|
attr_accessor :code
|
28
|
-
|
31
|
+
|
29
32
|
# (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
|
30
33
|
attr_accessor :details
|
31
|
-
|
34
|
+
|
32
35
|
# (UK Only) Only shows on the statement line in Xero. Max length =18
|
33
36
|
attr_accessor :narrative
|
34
|
-
|
37
|
+
|
35
38
|
# The Xero generated unique identifier for the bank transaction (read-only)
|
36
39
|
attr_accessor :batch_payment_id
|
37
|
-
|
40
|
+
|
38
41
|
# Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06
|
39
42
|
attr_accessor :date_string
|
40
|
-
|
43
|
+
|
41
44
|
# Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06
|
42
45
|
attr_accessor :date
|
43
|
-
|
46
|
+
|
44
47
|
# The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00
|
45
48
|
attr_accessor :amount
|
46
|
-
|
49
|
+
|
50
|
+
# An array of payments
|
47
51
|
attr_accessor :payments
|
48
|
-
|
52
|
+
|
49
53
|
# PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only)
|
50
54
|
attr_accessor :type
|
51
|
-
|
55
|
+
PAYBATCH = "PAYBATCH".freeze
|
56
|
+
RECBATCH = "RECBATCH".freeze
|
57
|
+
|
52
58
|
# 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.
|
53
59
|
attr_accessor :status
|
54
|
-
|
60
|
+
AUTHORISED = "AUTHORISED".freeze
|
61
|
+
DELETED = "DELETED".freeze
|
62
|
+
|
55
63
|
# The total of the payments that make up the batch (read-only)
|
56
64
|
attr_accessor :total_amount
|
57
|
-
|
65
|
+
|
58
66
|
# UTC timestamp of last update to the payment
|
59
67
|
attr_accessor :updated_date_utc
|
60
|
-
|
68
|
+
|
61
69
|
# Booelan that tells you if the batch payment has been reconciled (read-only)
|
62
70
|
attr_accessor :is_reconciled
|
63
|
-
|
71
|
+
|
64
72
|
class EnumAttributeValidator
|
65
73
|
attr_reader :datatype
|
66
74
|
attr_reader :allowable_values
|
@@ -117,7 +125,7 @@ module XeroRuby::Accounting
|
|
117
125
|
:'batch_payment_id' => :'String',
|
118
126
|
:'date_string' => :'String',
|
119
127
|
:'date' => :'Date',
|
120
|
-
:'amount' => :'
|
128
|
+
:'amount' => :'BigDecimal',
|
121
129
|
:'payments' => :'Array<Payment>',
|
122
130
|
:'type' => :'String',
|
123
131
|
:'status' => :'String',
|
@@ -399,6 +407,8 @@ module XeroRuby::Accounting
|
|
399
407
|
value.to_i
|
400
408
|
when :Float
|
401
409
|
value.to_f
|
410
|
+
when :BigDecimal
|
411
|
+
BigDecimal(value.to_s)
|
402
412
|
when :Boolean
|
403
413
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
404
414
|
true
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.
|
6
|
+
The version of the OpenAPI document: 2.2.11
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.3.
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -15,22 +15,24 @@ require 'date'
|
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
17
|
# Bank details for use on a batch payment stored with each contact
|
18
|
+
require 'bigdecimal'
|
19
|
+
|
18
20
|
class BatchPaymentDetails
|
19
21
|
# Bank account number for use with Batch Payments
|
20
22
|
attr_accessor :bank_account_number
|
21
|
-
|
23
|
+
|
22
24
|
# Name of bank for use with Batch Payments
|
23
25
|
attr_accessor :bank_account_name
|
24
|
-
|
26
|
+
|
25
27
|
# (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
|
26
28
|
attr_accessor :details
|
27
|
-
|
29
|
+
|
28
30
|
# (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.
|
29
31
|
attr_accessor :code
|
30
|
-
|
32
|
+
|
31
33
|
# (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.
|
32
34
|
attr_accessor :reference
|
33
|
-
|
35
|
+
|
34
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
37
|
def self.attribute_map
|
36
38
|
{
|
@@ -214,6 +216,8 @@ module XeroRuby::Accounting
|
|
214
216
|
value.to_i
|
215
217
|
when :Float
|
216
218
|
value.to_f
|
219
|
+
when :BigDecimal
|
220
|
+
BigDecimal(value.to_s)
|
217
221
|
when :Boolean
|
218
222
|
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
219
223
|
true
|