xero-ruby 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +44 -35
- data/docs/Account.md +3 -1
- data/docs/AccountingApi.md +2667 -2323
- data/docs/Attachment.md +2 -2
- data/docs/BankTransaction.md +3 -3
- data/docs/BrandingTheme.md +4 -0
- data/docs/Contact.md +3 -1
- data/docs/CreditNote.md +2 -0
- data/docs/Element.md +15 -1
- data/docs/Employee.md +5 -1
- data/docs/Invoice.md +6 -4
- data/docs/Item.md +3 -1
- data/docs/LineItem.md +4 -4
- data/docs/LineItemTracking.md +3 -1
- data/docs/LinkedTransaction.md +2 -2
- data/docs/ManualJournal.md +3 -1
- data/docs/Prepayment.md +2 -0
- data/docs/PurchaseOrder.md +3 -3
- data/docs/Quote.md +59 -0
- data/docs/QuoteLineAmountTypes.md +16 -0
- data/docs/QuoteStatusCodes.md +16 -0
- data/docs/Quotes.md +17 -0
- data/docs/Receipt.md +6 -4
- data/docs/ReportWithRow.md +2 -2
- data/docs/TaxRate.md +1 -1
- data/git_push.sh +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/xero-ruby/api/accounting_api.rb +1741 -1334
- data/lib/xero-ruby/api_client.rb +2 -2
- data/lib/xero-ruby/api_error.rb +2 -2
- data/lib/xero-ruby/configuration.rb +3 -7
- data/lib/xero-ruby/models/account.rb +15 -5
- data/lib/xero-ruby/models/account_type.rb +2 -2
- data/lib/xero-ruby/models/accounts.rb +2 -2
- data/lib/xero-ruby/models/accounts_payable.rb +2 -2
- data/lib/xero-ruby/models/accounts_receivable.rb +2 -2
- data/lib/xero-ruby/models/address.rb +2 -2
- data/lib/xero-ruby/models/allocation.rb +2 -2
- data/lib/xero-ruby/models/allocations.rb +2 -2
- data/lib/xero-ruby/models/attachment.rb +2 -2
- data/lib/xero-ruby/models/attachments.rb +2 -2
- data/lib/xero-ruby/models/balances.rb +2 -2
- data/lib/xero-ruby/models/bank_transaction.rb +2 -2
- data/lib/xero-ruby/models/bank_transactions.rb +2 -2
- data/lib/xero-ruby/models/bank_transfer.rb +2 -2
- data/lib/xero-ruby/models/bank_transfers.rb +2 -2
- data/lib/xero-ruby/models/batch_payment.rb +48 -2
- data/lib/xero-ruby/models/batch_payment_details.rb +2 -2
- data/lib/xero-ruby/models/batch_payments.rb +2 -2
- data/lib/xero-ruby/models/bill.rb +2 -2
- data/lib/xero-ruby/models/branding_theme.rb +57 -3
- data/lib/xero-ruby/models/branding_themes.rb +2 -2
- data/lib/xero-ruby/models/cis_org_setting.rb +2 -2
- data/lib/xero-ruby/models/cis_setting.rb +2 -2
- data/lib/xero-ruby/models/cis_settings.rb +2 -2
- data/lib/xero-ruby/models/contact.rb +16 -6
- data/lib/xero-ruby/models/contact_group.rb +2 -2
- data/lib/xero-ruby/models/contact_groups.rb +2 -2
- data/lib/xero-ruby/models/contact_person.rb +2 -2
- data/lib/xero-ruby/models/contacts.rb +2 -2
- data/lib/xero-ruby/models/country_code.rb +2 -2
- data/lib/xero-ruby/models/credit_note.rb +13 -3
- data/lib/xero-ruby/models/credit_notes.rb +2 -2
- data/lib/xero-ruby/models/currencies.rb +2 -2
- data/lib/xero-ruby/models/currency.rb +2 -2
- data/lib/xero-ruby/models/currency_code.rb +2 -2
- data/lib/xero-ruby/models/element.rb +70 -6
- data/lib/xero-ruby/models/employee.rb +28 -6
- data/lib/xero-ruby/models/employees.rb +2 -2
- data/lib/xero-ruby/models/error.rb +2 -2
- data/lib/xero-ruby/models/expense_claim.rb +4 -4
- data/lib/xero-ruby/models/expense_claims.rb +2 -2
- data/lib/xero-ruby/models/external_link.rb +2 -2
- data/lib/xero-ruby/models/history_record.rb +2 -2
- data/lib/xero-ruby/models/history_records.rb +2 -2
- data/lib/xero-ruby/models/invoice.rb +20 -23
- data/lib/xero-ruby/models/invoice_reminder.rb +2 -2
- data/lib/xero-ruby/models/invoice_reminders.rb +2 -2
- data/lib/xero-ruby/models/invoices.rb +2 -2
- data/lib/xero-ruby/models/item.rb +13 -8
- data/lib/xero-ruby/models/items.rb +2 -2
- data/lib/xero-ruby/models/journal.rb +2 -2
- data/lib/xero-ruby/models/journal_line.rb +2 -2
- data/lib/xero-ruby/models/journals.rb +2 -2
- data/lib/xero-ruby/models/line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/line_item.rb +4 -4
- data/lib/xero-ruby/models/line_item_tracking.rb +13 -3
- data/lib/xero-ruby/models/linked_transaction.rb +3 -8
- data/lib/xero-ruby/models/linked_transactions.rb +2 -2
- data/lib/xero-ruby/models/manual_journal.rb +15 -10
- data/lib/xero-ruby/models/manual_journal_line.rb +2 -2
- data/lib/xero-ruby/models/manual_journals.rb +2 -2
- data/lib/xero-ruby/models/online_invoice.rb +2 -2
- data/lib/xero-ruby/models/online_invoices.rb +2 -2
- data/lib/xero-ruby/models/organisation.rb +8 -8
- data/lib/xero-ruby/models/organisations.rb +2 -2
- data/lib/xero-ruby/models/overpayment.rb +2 -2
- data/lib/xero-ruby/models/overpayments.rb +2 -2
- data/lib/xero-ruby/models/payment.rb +2 -2
- data/lib/xero-ruby/models/payment_service.rb +2 -2
- data/lib/xero-ruby/models/payment_services.rb +2 -2
- data/lib/xero-ruby/models/payment_term.rb +2 -2
- data/lib/xero-ruby/models/payment_term_type.rb +2 -2
- data/lib/xero-ruby/models/payments.rb +2 -2
- data/lib/xero-ruby/models/phone.rb +2 -2
- data/lib/xero-ruby/models/prepayment.rb +13 -3
- data/lib/xero-ruby/models/prepayments.rb +2 -2
- data/lib/xero-ruby/models/purchase.rb +2 -2
- data/lib/xero-ruby/models/purchase_order.rb +3 -13
- data/lib/xero-ruby/models/purchase_orders.rb +2 -2
- data/lib/xero-ruby/models/quote.rb +487 -0
- data/lib/xero-ruby/models/quote_line_amount_types.rb +38 -0
- data/lib/xero-ruby/models/quote_status_codes.rb +40 -0
- data/lib/xero-ruby/models/quotes.rb +205 -0
- data/lib/xero-ruby/models/receipt.rb +17 -25
- data/lib/xero-ruby/models/receipts.rb +2 -2
- data/lib/xero-ruby/models/repeating_invoice.rb +4 -4
- data/lib/xero-ruby/models/repeating_invoices.rb +2 -2
- data/lib/xero-ruby/models/report.rb +2 -2
- data/lib/xero-ruby/models/report_attribute.rb +2 -2
- data/lib/xero-ruby/models/report_cell.rb +2 -2
- data/lib/xero-ruby/models/report_fields.rb +2 -2
- data/lib/xero-ruby/models/report_row.rb +2 -2
- data/lib/xero-ruby/models/report_rows.rb +2 -2
- data/lib/xero-ruby/models/report_with_row.rb +12 -12
- data/lib/xero-ruby/models/report_with_rows.rb +2 -2
- data/lib/xero-ruby/models/reports.rb +2 -2
- data/lib/xero-ruby/models/request_empty.rb +2 -2
- data/lib/xero-ruby/models/row_type.rb +2 -2
- data/lib/xero-ruby/models/sales_tracking_category.rb +2 -2
- data/lib/xero-ruby/models/schedule.rb +2 -2
- data/lib/xero-ruby/models/tax_component.rb +2 -2
- data/lib/xero-ruby/models/tax_rate.rb +6 -11
- data/lib/xero-ruby/models/tax_rates.rb +2 -2
- data/lib/xero-ruby/models/tax_type.rb +5 -2
- data/lib/xero-ruby/models/ten_nintey_nine_contact.rb +2 -2
- data/lib/xero-ruby/models/time_zone.rb +2 -2
- data/lib/xero-ruby/models/tracking_categories.rb +2 -2
- data/lib/xero-ruby/models/tracking_category.rb +2 -2
- data/lib/xero-ruby/models/tracking_option.rb +2 -2
- data/lib/xero-ruby/models/tracking_options.rb +2 -2
- data/lib/xero-ruby/models/user.rb +2 -2
- data/lib/xero-ruby/models/users.rb +2 -2
- data/lib/xero-ruby/models/validation_error.rb +2 -2
- data/lib/xero-ruby/version.rb +3 -3
- data/lib/xero-ruby.rb +6 -2
- data/pkg/xero-ruby-0.2.0.gem +0 -0
- data/spec/api/accounting_api_spec.rb +304 -209
- data/spec/api_client_spec.rb +2 -2
- data/spec/configuration_spec.rb +2 -2
- data/spec/models/account_spec.rb +9 -3
- data/spec/models/account_type_spec.rb +2 -2
- data/spec/models/accounts_payable_spec.rb +2 -2
- data/spec/models/accounts_receivable_spec.rb +2 -2
- data/spec/models/accounts_spec.rb +2 -2
- data/spec/models/address_spec.rb +2 -2
- data/spec/models/allocation_spec.rb +2 -2
- data/spec/models/allocations_spec.rb +2 -2
- data/spec/models/attachment_spec.rb +2 -2
- data/spec/models/attachments_spec.rb +2 -2
- data/spec/models/balances_spec.rb +2 -2
- data/spec/models/bank_transaction_spec.rb +2 -2
- data/spec/models/bank_transactions_spec.rb +2 -2
- data/spec/models/bank_transfer_spec.rb +2 -2
- data/spec/models/bank_transfers_spec.rb +2 -2
- data/spec/models/batch_payment_details_spec.rb +2 -2
- data/spec/models/batch_payment_spec.rb +10 -2
- data/spec/models/batch_payments_spec.rb +2 -2
- data/spec/models/bill_spec.rb +2 -2
- data/spec/models/branding_theme_spec.rb +18 -2
- data/spec/models/branding_themes_spec.rb +2 -2
- data/spec/models/cis_org_setting_spec.rb +2 -2
- data/spec/models/cis_setting_spec.rb +2 -2
- data/spec/models/cis_settings_spec.rb +2 -2
- data/spec/models/contact_group_spec.rb +2 -2
- data/spec/models/contact_groups_spec.rb +2 -2
- data/spec/models/contact_person_spec.rb +2 -2
- data/spec/models/contact_spec.rb +8 -2
- data/spec/models/contacts_spec.rb +2 -2
- data/spec/models/country_code_spec.rb +2 -2
- data/spec/models/credit_note_spec.rb +8 -2
- data/spec/models/credit_notes_spec.rb +2 -2
- data/spec/models/currencies_spec.rb +2 -2
- data/spec/models/currency_code_spec.rb +2 -2
- data/spec/models/currency_spec.rb +2 -2
- data/spec/models/element_spec.rb +44 -2
- data/spec/models/employee_spec.rb +14 -2
- data/spec/models/employees_spec.rb +2 -2
- data/spec/models/error_spec.rb +2 -2
- data/spec/models/expense_claim_spec.rb +3 -3
- data/spec/models/expense_claims_spec.rb +2 -2
- data/spec/models/external_link_spec.rb +2 -2
- data/spec/models/history_record_spec.rb +2 -2
- data/spec/models/history_records_spec.rb +2 -2
- data/spec/models/invoice_reminder_spec.rb +2 -2
- data/spec/models/invoice_reminders_spec.rb +2 -2
- data/spec/models/invoice_spec.rb +9 -3
- data/spec/models/invoices_spec.rb +2 -2
- data/spec/models/item_spec.rb +8 -2
- data/spec/models/items_spec.rb +2 -2
- data/spec/models/journal_line_spec.rb +2 -2
- data/spec/models/journal_spec.rb +2 -2
- data/spec/models/journals_spec.rb +2 -2
- data/spec/models/line_amount_types_spec.rb +2 -2
- data/spec/models/line_item_spec.rb +2 -2
- data/spec/models/line_item_tracking_spec.rb +8 -2
- data/spec/models/linked_transaction_spec.rb +2 -2
- data/spec/models/linked_transactions_spec.rb +2 -2
- data/spec/models/manual_journal_line_spec.rb +2 -2
- data/spec/models/manual_journal_spec.rb +9 -3
- data/spec/models/manual_journals_spec.rb +2 -2
- data/spec/models/online_invoice_spec.rb +2 -2
- data/spec/models/online_invoices_spec.rb +2 -2
- data/spec/models/organisation_spec.rb +5 -5
- data/spec/models/organisations_spec.rb +2 -2
- data/spec/models/overpayment_spec.rb +2 -2
- data/spec/models/overpayments_spec.rb +2 -2
- data/spec/models/payment_service_spec.rb +2 -2
- data/spec/models/payment_services_spec.rb +2 -2
- data/spec/models/payment_spec.rb +2 -2
- data/spec/models/payment_term_spec.rb +2 -2
- data/spec/models/payment_term_type_spec.rb +2 -2
- data/spec/models/payments_spec.rb +2 -2
- data/spec/models/phone_spec.rb +2 -2
- data/spec/models/prepayment_spec.rb +8 -2
- data/spec/models/prepayments_spec.rb +2 -2
- data/spec/models/purchase_order_spec.rb +2 -2
- data/spec/models/purchase_orders_spec.rb +2 -2
- data/spec/models/purchase_spec.rb +2 -2
- data/spec/models/quote_line_amount_types_spec.rb +35 -0
- data/spec/models/quote_spec.rb +167 -0
- data/spec/models/quote_status_codes_spec.rb +35 -0
- data/spec/models/quotes_spec.rb +41 -0
- data/spec/models/receipt_spec.rb +9 -3
- data/spec/models/receipts_spec.rb +2 -2
- data/spec/models/repeating_invoice_spec.rb +3 -3
- data/spec/models/repeating_invoices_spec.rb +2 -2
- data/spec/models/report_attribute_spec.rb +2 -2
- data/spec/models/report_cell_spec.rb +2 -2
- data/spec/models/report_fields_spec.rb +2 -2
- data/spec/models/report_row_spec.rb +2 -2
- data/spec/models/report_rows_spec.rb +2 -2
- data/spec/models/report_spec.rb +2 -2
- data/spec/models/report_with_row_spec.rb +4 -4
- data/spec/models/report_with_rows_spec.rb +2 -2
- data/spec/models/reports_spec.rb +2 -2
- data/spec/models/request_empty_spec.rb +2 -2
- data/spec/models/row_type_spec.rb +2 -2
- data/spec/models/sales_tracking_category_spec.rb +2 -2
- data/spec/models/schedule_spec.rb +2 -2
- data/spec/models/tax_component_spec.rb +2 -2
- data/spec/models/tax_rate_spec.rb +4 -4
- data/spec/models/tax_rates_spec.rb +2 -2
- data/spec/models/tax_type_spec.rb +2 -2
- data/spec/models/ten_nintey_nine_contact_spec.rb +2 -2
- data/spec/models/time_zone_spec.rb +2 -2
- data/spec/models/tracking_categories_spec.rb +2 -2
- data/spec/models/tracking_category_spec.rb +2 -2
- data/spec/models/tracking_option_spec.rb +2 -2
- data/spec/models/tracking_options_spec.rb +2 -2
- data/spec/models/user_spec.rb +2 -2
- data/spec/models/users_spec.rb +2 -2
- data/spec/models/validation_error_spec.rb +2 -2
- data/spec/spec_helper.rb +2 -2
- data/xero-ruby.gemspec +3 -3
- metadata +21 -5
- data/Gemfile.lock +0 -79
- data/pkg/xero-ruby-0.1.2.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.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
data/spec/models/phone_spec.rb
CHANGED
@@ -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.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -94,6 +94,12 @@ describe 'Prepayment' do
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
+
describe 'test attribute "reference"' do
|
98
|
+
it 'should work' do
|
99
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
97
103
|
describe 'test attribute "updated_date_utc"' do
|
98
104
|
it 'should work' do
|
99
105
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -0,0 +1,35 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
|
+
Contact: api@xero.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for XeroRuby::QuoteLineAmountTypes
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'QuoteLineAmountTypes' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = XeroRuby::QuoteLineAmountTypes.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of QuoteLineAmountTypes' do
|
31
|
+
it 'should create an instance of QuoteLineAmountTypes' do
|
32
|
+
expect(@instance).to be_instance_of(XeroRuby::QuoteLineAmountTypes)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,167 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
|
+
Contact: api@xero.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for XeroRuby::Quote
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Quote' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = XeroRuby::Quote.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Quote' do
|
31
|
+
it 'should create an instance of Quote' do
|
32
|
+
expect(@instance).to be_instance_of(XeroRuby::Quote)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "quote_id"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "quote_number"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "reference"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "terms"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "contact"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "line_items"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "date"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "date_string"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "expiry_date"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "expiry_date_string"' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'test attribute "status"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'test attribute "currency_code"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
describe 'test attribute "currency_rate"' do
|
108
|
+
it 'should work' do
|
109
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
|
+
end
|
111
|
+
end
|
112
|
+
|
113
|
+
describe 'test attribute "sub_total"' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
describe 'test attribute "total_tax"' do
|
120
|
+
it 'should work' do
|
121
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
describe 'test attribute "total"' do
|
126
|
+
it 'should work' do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
describe 'test attribute "total_discount"' do
|
132
|
+
it 'should work' do
|
133
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
|
+
end
|
135
|
+
end
|
136
|
+
|
137
|
+
describe 'test attribute "title"' do
|
138
|
+
it 'should work' do
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
describe 'test attribute "summary"' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
|
+
end
|
147
|
+
end
|
148
|
+
|
149
|
+
describe 'test attribute "branding_theme_id"' do
|
150
|
+
it 'should work' do
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
152
|
+
end
|
153
|
+
end
|
154
|
+
|
155
|
+
describe 'test attribute "updated_date_utc"' do
|
156
|
+
it 'should work' do
|
157
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
describe 'test attribute "line_amount_types"' do
|
162
|
+
it 'should work' do
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
|
+
Contact: api@xero.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for XeroRuby::QuoteStatusCodes
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'QuoteStatusCodes' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = XeroRuby::QuoteStatusCodes.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of QuoteStatusCodes' do
|
31
|
+
it 'should create an instance of QuoteStatusCodes' do
|
32
|
+
expect(@instance).to be_instance_of(XeroRuby::QuoteStatusCodes)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
|
+
Contact: api@xero.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for XeroRuby::Quotes
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'Quotes' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = XeroRuby::Quotes.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of Quotes' do
|
31
|
+
it 'should create an instance of Quotes' do
|
32
|
+
expect(@instance).to be_instance_of(XeroRuby::Quotes)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "quotes"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
end
|
data/spec/models/receipt_spec.rb
CHANGED
@@ -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.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -95,7 +95,7 @@ describe 'Receipt' do
|
|
95
95
|
describe 'test attribute "status"' do
|
96
96
|
it 'should work' do
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DRAFT", "SUBMITTED", "AUTHORISED", "DECLINED"])
|
98
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DRAFT", "SUBMITTED", "AUTHORISED", "DECLINED", "VOIDED"])
|
99
99
|
# validator.allowable_values.each do |value|
|
100
100
|
# expect { @instance.status = value }.not_to raise_error
|
101
101
|
# end
|
@@ -132,6 +132,12 @@ describe 'Receipt' do
|
|
132
132
|
end
|
133
133
|
end
|
134
134
|
|
135
|
+
describe 'test attribute "warnings"' do
|
136
|
+
it 'should work' do
|
137
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
135
141
|
describe 'test attribute "attachments"' do
|
136
142
|
it 'should work' do
|
137
143
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -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.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -87,7 +87,7 @@ describe 'RepeatingInvoice' do
|
|
87
87
|
describe 'test attribute "status"' do
|
88
88
|
it 'should work' do
|
89
89
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DRAFT", "AUTHORISED"])
|
90
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["DRAFT", "AUTHORISED", "DELETED"])
|
91
91
|
# validator.allowable_values.each do |value|
|
92
92
|
# expect { @instance.status = value }.not_to raise_error
|
93
93
|
# end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
data/spec/models/report_spec.rb
CHANGED
@@ -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.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -68,13 +68,13 @@ describe 'ReportWithRow' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "rows"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "updated_date_utc"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
data/spec/models/reports_spec.rb
CHANGED
@@ -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.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -3,10 +3,10 @@
|
|
3
3
|
|
4
4
|
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 2.0.
|
6
|
+
The version of the OpenAPI document: 2.0.1
|
7
7
|
Contact: api@xero.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 4.0
|
9
|
+
OpenAPI Generator version: 4.2.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|