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
|
|
@@ -124,6 +124,9 @@ module XeroRuby
|
|
124
124
|
# A boolean to indicate if a contact has an validation errors
|
125
125
|
attr_accessor :has_validation_errors
|
126
126
|
|
127
|
+
# Status of object
|
128
|
+
attr_accessor :status_attribute_string
|
129
|
+
|
127
130
|
class EnumAttributeValidator
|
128
131
|
attr_reader :datatype
|
129
132
|
attr_reader :allowable_values
|
@@ -186,7 +189,8 @@ module XeroRuby
|
|
186
189
|
:'attachments' => :'Attachments',
|
187
190
|
:'has_attachments' => :'HasAttachments',
|
188
191
|
:'validation_errors' => :'ValidationErrors',
|
189
|
-
:'has_validation_errors' => :'HasValidationErrors'
|
192
|
+
:'has_validation_errors' => :'HasValidationErrors',
|
193
|
+
:'status_attribute_string' => :'StatusAttributeString'
|
190
194
|
}
|
191
195
|
end
|
192
196
|
|
@@ -230,7 +234,8 @@ module XeroRuby
|
|
230
234
|
:'attachments' => :'Array<Attachment>',
|
231
235
|
:'has_attachments' => :'Boolean',
|
232
236
|
:'validation_errors' => :'Array<ValidationError>',
|
233
|
-
:'has_validation_errors' => :'Boolean'
|
237
|
+
:'has_validation_errors' => :'Boolean',
|
238
|
+
:'status_attribute_string' => :'String'
|
234
239
|
}
|
235
240
|
end
|
236
241
|
|
@@ -416,6 +421,10 @@ module XeroRuby
|
|
416
421
|
if attributes.key?(:'has_validation_errors')
|
417
422
|
self.has_validation_errors = attributes[:'has_validation_errors']
|
418
423
|
end
|
424
|
+
|
425
|
+
if attributes.key?(:'status_attribute_string')
|
426
|
+
self.status_attribute_string = attributes[:'status_attribute_string']
|
427
|
+
end
|
419
428
|
end
|
420
429
|
|
421
430
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -590,7 +599,8 @@ module XeroRuby
|
|
590
599
|
attachments == o.attachments &&
|
591
600
|
has_attachments == o.has_attachments &&
|
592
601
|
validation_errors == o.validation_errors &&
|
593
|
-
has_validation_errors == o.has_validation_errors
|
602
|
+
has_validation_errors == o.has_validation_errors &&
|
603
|
+
status_attribute_string == o.status_attribute_string
|
594
604
|
end
|
595
605
|
|
596
606
|
# @see the `==` method
|
@@ -602,7 +612,7 @@ module XeroRuby
|
|
602
612
|
# Calculates hash code according to all attributes.
|
603
613
|
# @return [Integer] Hash code
|
604
614
|
def hash
|
605
|
-
[contact_id, contact_number, account_number, contact_status, name, first_name, last_name, email_address, skype_user_name, contact_persons, bank_account_details, tax_number, accounts_receivable_tax_type, accounts_payable_tax_type, addresses, phones, is_supplier, is_customer, default_currency, xero_network_key, sales_default_account_code, purchases_default_account_code, sales_tracking_categories, purchases_tracking_categories, tracking_category_name, tracking_category_option, payment_terms, updated_date_utc, contact_groups, website, branding_theme, batch_payments, discount, balances, attachments, has_attachments, validation_errors, has_validation_errors].hash
|
615
|
+
[contact_id, contact_number, account_number, contact_status, name, first_name, last_name, email_address, skype_user_name, contact_persons, bank_account_details, tax_number, accounts_receivable_tax_type, accounts_payable_tax_type, addresses, phones, is_supplier, is_customer, default_currency, xero_network_key, sales_default_account_code, purchases_default_account_code, sales_tracking_categories, purchases_tracking_categories, tracking_category_name, tracking_category_option, payment_terms, updated_date_utc, contact_groups, website, branding_theme, batch_payments, discount, balances, attachments, has_attachments, validation_errors, has_validation_errors, status_attribute_string].hash
|
606
616
|
end
|
607
617
|
|
608
618
|
# Builds the object from hash
|
@@ -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
|
|
@@ -78,6 +78,9 @@ module XeroRuby
|
|
78
78
|
# boolean to indicate if a credit note has an attachment
|
79
79
|
attr_accessor :has_attachments
|
80
80
|
|
81
|
+
# A boolean to indicate if a credit note has an validation errors
|
82
|
+
attr_accessor :has_errors
|
83
|
+
|
81
84
|
# Displays array of validation error messages from the API
|
82
85
|
attr_accessor :validation_errors
|
83
86
|
|
@@ -128,6 +131,7 @@ module XeroRuby
|
|
128
131
|
:'payments' => :'Payments',
|
129
132
|
:'branding_theme_id' => :'BrandingThemeID',
|
130
133
|
:'has_attachments' => :'HasAttachments',
|
134
|
+
:'has_errors' => :'HasErrors',
|
131
135
|
:'validation_errors' => :'ValidationErrors'
|
132
136
|
}
|
133
137
|
end
|
@@ -157,6 +161,7 @@ module XeroRuby
|
|
157
161
|
:'payments' => :'Array<Payment>',
|
158
162
|
:'branding_theme_id' => :'String',
|
159
163
|
:'has_attachments' => :'Boolean',
|
164
|
+
:'has_errors' => :'Boolean',
|
160
165
|
:'validation_errors' => :'Array<ValidationError>'
|
161
166
|
}
|
162
167
|
end
|
@@ -270,6 +275,10 @@ module XeroRuby
|
|
270
275
|
self.has_attachments = attributes[:'has_attachments']
|
271
276
|
end
|
272
277
|
|
278
|
+
if attributes.key?(:'has_errors')
|
279
|
+
self.has_errors = attributes[:'has_errors']
|
280
|
+
end
|
281
|
+
|
273
282
|
if attributes.key?(:'validation_errors')
|
274
283
|
if (value = attributes[:'validation_errors']).is_a?(Array)
|
275
284
|
self.validation_errors = value
|
@@ -341,6 +350,7 @@ module XeroRuby
|
|
341
350
|
payments == o.payments &&
|
342
351
|
branding_theme_id == o.branding_theme_id &&
|
343
352
|
has_attachments == o.has_attachments &&
|
353
|
+
has_errors == o.has_errors &&
|
344
354
|
validation_errors == o.validation_errors
|
345
355
|
end
|
346
356
|
|
@@ -353,7 +363,7 @@ module XeroRuby
|
|
353
363
|
# Calculates hash code according to all attributes.
|
354
364
|
# @return [Integer] Hash code
|
355
365
|
def hash
|
356
|
-
[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, payments, branding_theme_id, has_attachments, validation_errors].hash
|
366
|
+
[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, payments, branding_theme_id, has_attachments, has_errors, validation_errors].hash
|
357
367
|
end
|
358
368
|
|
359
369
|
# Builds the object from hash
|
@@ -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
|
|
@@ -18,17 +18,46 @@ module XeroRuby
|
|
18
18
|
# Array of Validation Error message
|
19
19
|
attr_accessor :validation_errors
|
20
20
|
|
21
|
+
# Unique ID for batch payment object with validation error
|
22
|
+
attr_accessor :batch_payment_id
|
23
|
+
|
24
|
+
attr_accessor :bank_transaction_id
|
25
|
+
|
26
|
+
attr_accessor :credit_note_id
|
27
|
+
|
28
|
+
attr_accessor :contact_id
|
29
|
+
|
30
|
+
attr_accessor :invoice_id
|
31
|
+
|
32
|
+
attr_accessor :item_id
|
33
|
+
|
34
|
+
attr_accessor :purchase_order_id
|
35
|
+
|
21
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
37
|
def self.attribute_map
|
23
38
|
{
|
24
|
-
:'validation_errors' => :'ValidationErrors'
|
39
|
+
:'validation_errors' => :'ValidationErrors',
|
40
|
+
:'batch_payment_id' => :'BatchPaymentID',
|
41
|
+
:'bank_transaction_id' => :'BankTransactionID',
|
42
|
+
:'credit_note_id' => :'CreditNoteID',
|
43
|
+
:'contact_id' => :'ContactID',
|
44
|
+
:'invoice_id' => :'InvoiceID',
|
45
|
+
:'item_id' => :'ItemID',
|
46
|
+
:'purchase_order_id' => :'PurchaseOrderID'
|
25
47
|
}
|
26
48
|
end
|
27
49
|
|
28
50
|
# Attribute type mapping.
|
29
51
|
def self.openapi_types
|
30
52
|
{
|
31
|
-
:'validation_errors' => :'Array<ValidationError>'
|
53
|
+
:'validation_errors' => :'Array<ValidationError>',
|
54
|
+
:'batch_payment_id' => :'String',
|
55
|
+
:'bank_transaction_id' => :'String',
|
56
|
+
:'credit_note_id' => :'String',
|
57
|
+
:'contact_id' => :'String',
|
58
|
+
:'invoice_id' => :'String',
|
59
|
+
:'item_id' => :'String',
|
60
|
+
:'purchase_order_id' => :'String'
|
32
61
|
}
|
33
62
|
end
|
34
63
|
|
@@ -52,6 +81,34 @@ module XeroRuby
|
|
52
81
|
self.validation_errors = value
|
53
82
|
end
|
54
83
|
end
|
84
|
+
|
85
|
+
if attributes.key?(:'batch_payment_id')
|
86
|
+
self.batch_payment_id = attributes[:'batch_payment_id']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'bank_transaction_id')
|
90
|
+
self.bank_transaction_id = attributes[:'bank_transaction_id']
|
91
|
+
end
|
92
|
+
|
93
|
+
if attributes.key?(:'credit_note_id')
|
94
|
+
self.credit_note_id = attributes[:'credit_note_id']
|
95
|
+
end
|
96
|
+
|
97
|
+
if attributes.key?(:'contact_id')
|
98
|
+
self.contact_id = attributes[:'contact_id']
|
99
|
+
end
|
100
|
+
|
101
|
+
if attributes.key?(:'invoice_id')
|
102
|
+
self.invoice_id = attributes[:'invoice_id']
|
103
|
+
end
|
104
|
+
|
105
|
+
if attributes.key?(:'item_id')
|
106
|
+
self.item_id = attributes[:'item_id']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'purchase_order_id')
|
110
|
+
self.purchase_order_id = attributes[:'purchase_order_id']
|
111
|
+
end
|
55
112
|
end
|
56
113
|
|
57
114
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -72,7 +129,14 @@ module XeroRuby
|
|
72
129
|
def ==(o)
|
73
130
|
return true if self.equal?(o)
|
74
131
|
self.class == o.class &&
|
75
|
-
validation_errors == o.validation_errors
|
132
|
+
validation_errors == o.validation_errors &&
|
133
|
+
batch_payment_id == o.batch_payment_id &&
|
134
|
+
bank_transaction_id == o.bank_transaction_id &&
|
135
|
+
credit_note_id == o.credit_note_id &&
|
136
|
+
contact_id == o.contact_id &&
|
137
|
+
invoice_id == o.invoice_id &&
|
138
|
+
item_id == o.item_id &&
|
139
|
+
purchase_order_id == o.purchase_order_id
|
76
140
|
end
|
77
141
|
|
78
142
|
# @see the `==` method
|
@@ -84,7 +148,7 @@ module XeroRuby
|
|
84
148
|
# Calculates hash code according to all attributes.
|
85
149
|
# @return [Integer] Hash code
|
86
150
|
def hash
|
87
|
-
[validation_errors].hash
|
151
|
+
[validation_errors, batch_payment_id, bank_transaction_id, credit_note_id, contact_id, invoice_id, item_id, purchase_order_id].hash
|
88
152
|
end
|
89
153
|
|
90
154
|
# Builds the object from hash
|
@@ -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
|
|
@@ -31,6 +31,12 @@ module XeroRuby
|
|
31
31
|
|
32
32
|
attr_accessor :updated_date_utc
|
33
33
|
|
34
|
+
# A string to indicate if a invoice status
|
35
|
+
attr_accessor :status_attribute_string
|
36
|
+
|
37
|
+
# Displays array of validation error messages from the API
|
38
|
+
attr_accessor :validation_errors
|
39
|
+
|
34
40
|
class EnumAttributeValidator
|
35
41
|
attr_reader :datatype
|
36
42
|
attr_reader :allowable_values
|
@@ -61,7 +67,9 @@ module XeroRuby
|
|
61
67
|
:'first_name' => :'FirstName',
|
62
68
|
:'last_name' => :'LastName',
|
63
69
|
:'external_link' => :'ExternalLink',
|
64
|
-
:'updated_date_utc' => :'UpdatedDateUTC'
|
70
|
+
:'updated_date_utc' => :'UpdatedDateUTC',
|
71
|
+
:'status_attribute_string' => :'StatusAttributeString',
|
72
|
+
:'validation_errors' => :'ValidationErrors'
|
65
73
|
}
|
66
74
|
end
|
67
75
|
|
@@ -73,7 +81,9 @@ module XeroRuby
|
|
73
81
|
:'first_name' => :'String',
|
74
82
|
:'last_name' => :'String',
|
75
83
|
:'external_link' => :'ExternalLink',
|
76
|
-
:'updated_date_utc' => :'DateTime'
|
84
|
+
:'updated_date_utc' => :'DateTime',
|
85
|
+
:'status_attribute_string' => :'String',
|
86
|
+
:'validation_errors' => :'Array<ValidationError>'
|
77
87
|
}
|
78
88
|
end
|
79
89
|
|
@@ -115,6 +125,16 @@ module XeroRuby
|
|
115
125
|
if attributes.key?(:'updated_date_utc')
|
116
126
|
self.updated_date_utc = attributes[:'updated_date_utc']
|
117
127
|
end
|
128
|
+
|
129
|
+
if attributes.key?(:'status_attribute_string')
|
130
|
+
self.status_attribute_string = attributes[:'status_attribute_string']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'validation_errors')
|
134
|
+
if (value = attributes[:'validation_errors']).is_a?(Array)
|
135
|
+
self.validation_errors = value
|
136
|
+
end
|
137
|
+
end
|
118
138
|
end
|
119
139
|
|
120
140
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -182,7 +202,9 @@ module XeroRuby
|
|
182
202
|
first_name == o.first_name &&
|
183
203
|
last_name == o.last_name &&
|
184
204
|
external_link == o.external_link &&
|
185
|
-
updated_date_utc == o.updated_date_utc
|
205
|
+
updated_date_utc == o.updated_date_utc &&
|
206
|
+
status_attribute_string == o.status_attribute_string &&
|
207
|
+
validation_errors == o.validation_errors
|
186
208
|
end
|
187
209
|
|
188
210
|
# @see the `==` method
|
@@ -194,7 +216,7 @@ module XeroRuby
|
|
194
216
|
# Calculates hash code according to all attributes.
|
195
217
|
# @return [Integer] Hash code
|
196
218
|
def hash
|
197
|
-
[employee_id, status, first_name, last_name, external_link, updated_date_utc].hash
|
219
|
+
[employee_id, status, first_name, last_name, external_link, updated_date_utc, status_attribute_string, validation_errors].hash
|
198
220
|
end
|
199
221
|
|
200
222
|
# Builds the object from hash
|
@@ -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
|
|
@@ -185,7 +185,7 @@ module XeroRuby
|
|
185
185
|
# Check to see if the all the properties in the model are valid
|
186
186
|
# @return true if the model is valid
|
187
187
|
def valid?
|
188
|
-
status_validator = EnumAttributeValidator.new('String', ["SUBMITTED", "AUTHORISED", "PAID", "VOIDED"])
|
188
|
+
status_validator = EnumAttributeValidator.new('String', ["SUBMITTED", "AUTHORISED", "PAID", "VOIDED", "DELETED"])
|
189
189
|
return false unless status_validator.valid?(@status)
|
190
190
|
true
|
191
191
|
end
|
@@ -193,7 +193,7 @@ module XeroRuby
|
|
193
193
|
# Custom attribute writer method checking allowed values (enum).
|
194
194
|
# @param [Object] status Object to be assigned
|
195
195
|
def status=(status)
|
196
|
-
validator = EnumAttributeValidator.new('String', ["SUBMITTED", "AUTHORISED", "PAID", "VOIDED"])
|
196
|
+
validator = EnumAttributeValidator.new('String', ["SUBMITTED", "AUTHORISED", "PAID", "VOIDED", "DELETED"])
|
197
197
|
unless validator.valid?(status)
|
198
198
|
fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
|
199
199
|
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
|
|