xero-ruby 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +68 -0
- data/docs/accounting/AccountingApi.md +1497 -785
- 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/Organisation.md +2 -0
- data/docs/accounting/Payment.md +4 -4
- data/docs/accounting/Quote.md +5 -1
- 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 +21 -2
- data/lib/xero-ruby/api/accounting_api.rb +77 -85
- 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 +33 -7
- data/lib/xero-ruby/api_error.rb +2 -2
- data/lib/xero-ruby/configuration.rb +4 -2
- data/lib/xero-ruby/models/accounting/account.rb +56 -20
- data/lib/xero-ruby/models/accounting/account_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/accounts.rb +4 -3
- data/lib/xero-ruby/models/accounting/accounts_payable.rb +5 -3
- data/lib/xero-ruby/models/accounting/accounts_receivable.rb +5 -3
- data/lib/xero-ruby/models/accounting/address.rb +15 -12
- data/lib/xero-ruby/models/accounting/allocation.rb +61 -8
- data/lib/xero-ruby/models/accounting/allocations.rb +4 -3
- data/lib/xero-ruby/models/accounting/attachment.rb +8 -8
- data/lib/xero-ruby/models/accounting/attachments.rb +4 -3
- data/lib/xero-ruby/models/accounting/balances.rb +5 -3
- data/lib/xero-ruby/models/accounting/bank_transaction.rb +35 -20
- data/lib/xero-ruby/models/accounting/bank_transactions.rb +4 -3
- data/lib/xero-ruby/models/accounting/bank_transfer.rb +15 -13
- data/lib/xero-ruby/models/accounting/bank_transfers.rb +4 -3
- data/lib/xero-ruby/models/accounting/batch_payment.rb +24 -18
- data/lib/xero-ruby/models/accounting/batch_payment_details.rb +7 -7
- data/lib/xero-ruby/models/accounting/batch_payments.rb +4 -3
- data/lib/xero-ruby/models/accounting/bill.rb +4 -3
- data/lib/xero-ruby/models/accounting/branding_theme.rb +9 -8
- data/lib/xero-ruby/models/accounting/branding_themes.rb +4 -3
- data/lib/xero-ruby/models/accounting/cis_org_setting.rb +5 -5
- data/lib/xero-ruby/models/accounting/cis_setting.rb +4 -4
- data/lib/xero-ruby/models/accounting/cis_settings.rb +4 -3
- data/lib/xero-ruby/models/accounting/contact.rb +46 -36
- data/lib/xero-ruby/models/accounting/contact_group.rb +8 -6
- data/lib/xero-ruby/models/accounting/contact_groups.rb +4 -3
- data/lib/xero-ruby/models/accounting/contact_person.rb +6 -6
- data/lib/xero-ruby/models/accounting/contacts.rb +4 -3
- data/lib/xero-ruby/models/accounting/country_code.rb +2 -2
- data/lib/xero-ruby/models/accounting/credit_note.rb +38 -25
- data/lib/xero-ruby/models/accounting/credit_notes.rb +4 -3
- data/lib/xero-ruby/models/accounting/currencies.rb +4 -3
- data/lib/xero-ruby/models/accounting/currency.rb +5 -4
- data/lib/xero-ruby/models/accounting/currency_code.rb +2 -2
- data/lib/xero-ruby/models/accounting/element.rb +10 -4
- data/lib/xero-ruby/models/accounting/employee.rb +13 -8
- data/lib/xero-ruby/models/accounting/employees.rb +4 -3
- data/lib/xero-ruby/models/accounting/error.rb +6 -6
- data/lib/xero-ruby/models/accounting/expense_claim.rb +19 -12
- data/lib/xero-ruby/models/accounting/expense_claims.rb +4 -3
- data/lib/xero-ruby/models/accounting/external_link.rb +10 -4
- data/lib/xero-ruby/models/accounting/history_record.rb +6 -6
- data/lib/xero-ruby/models/accounting/history_records.rb +4 -3
- data/lib/xero-ruby/models/accounting/invoice.rb +56 -37
- data/lib/xero-ruby/models/accounting/invoice_reminder.rb +3 -3
- data/lib/xero-ruby/models/accounting/invoice_reminders.rb +4 -3
- data/lib/xero-ruby/models/accounting/invoices.rb +4 -3
- data/lib/xero-ruby/models/accounting/item.rb +18 -16
- data/lib/xero-ruby/models/accounting/items.rb +4 -3
- data/lib/xero-ruby/models/accounting/journal.rb +35 -10
- data/lib/xero-ruby/models/accounting/journal_line.rb +14 -13
- data/lib/xero-ruby/models/accounting/journals.rb +4 -3
- data/lib/xero-ruby/models/accounting/line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/accounting/line_item.rb +15 -15
- data/lib/xero-ruby/models/accounting/line_item_tracking.rb +6 -6
- data/lib/xero-ruby/models/accounting/linked_transaction.rb +21 -13
- data/lib/xero-ruby/models/accounting/linked_transactions.rb +4 -3
- data/lib/xero-ruby/models/accounting/manual_journal.rb +21 -15
- data/lib/xero-ruby/models/accounting/manual_journal_line.rb +9 -9
- data/lib/xero-ruby/models/accounting/manual_journals.rb +4 -3
- data/lib/xero-ruby/models/accounting/online_invoice.rb +3 -3
- data/lib/xero-ruby/models/accounting/online_invoices.rb +4 -3
- data/lib/xero-ruby/models/accounting/organisation.rb +103 -43
- data/lib/xero-ruby/models/accounting/organisations.rb +4 -3
- data/lib/xero-ruby/models/accounting/overpayment.rb +27 -18
- data/lib/xero-ruby/models/accounting/overpayments.rb +4 -3
- data/lib/xero-ruby/models/accounting/payment.rb +41 -22
- data/lib/xero-ruby/models/accounting/payment_delete.rb +3 -3
- data/lib/xero-ruby/models/accounting/payment_service.rb +8 -8
- data/lib/xero-ruby/models/accounting/payment_services.rb +4 -3
- data/lib/xero-ruby/models/accounting/payment_term.rb +5 -3
- data/lib/xero-ruby/models/accounting/payment_term_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/payments.rb +4 -3
- data/lib/xero-ruby/models/accounting/phone.rb +12 -6
- data/lib/xero-ruby/models/accounting/prepayment.rb +28 -18
- data/lib/xero-ruby/models/accounting/prepayments.rb +4 -3
- data/lib/xero-ruby/models/accounting/purchase.rb +6 -6
- data/lib/xero-ruby/models/accounting/purchase_order.rb +36 -28
- data/lib/xero-ruby/models/accounting/purchase_orders.rb +4 -3
- data/lib/xero-ruby/models/accounting/quote.rb +50 -24
- data/lib/xero-ruby/models/accounting/quote_line_amount_types.rb +2 -2
- data/lib/xero-ruby/models/accounting/quote_status_codes.rb +2 -2
- data/lib/xero-ruby/models/accounting/quotes.rb +4 -3
- data/lib/xero-ruby/models/accounting/receipt.rb +25 -16
- data/lib/xero-ruby/models/accounting/receipts.rb +4 -3
- data/lib/xero-ruby/models/accounting/repeating_invoice.rb +23 -14
- data/lib/xero-ruby/models/accounting/repeating_invoices.rb +4 -3
- data/lib/xero-ruby/models/accounting/report.rb +10 -8
- data/lib/xero-ruby/models/accounting/report_attribute.rb +5 -3
- data/lib/xero-ruby/models/accounting/report_cell.rb +5 -3
- data/lib/xero-ruby/models/accounting/report_fields.rb +6 -3
- data/lib/xero-ruby/models/accounting/report_row.rb +6 -3
- data/lib/xero-ruby/models/accounting/report_rows.rb +7 -3
- data/lib/xero-ruby/models/accounting/report_with_row.rb +11 -9
- data/lib/xero-ruby/models/accounting/report_with_rows.rb +4 -3
- data/lib/xero-ruby/models/accounting/reports.rb +4 -3
- data/lib/xero-ruby/models/accounting/request_empty.rb +3 -3
- data/lib/xero-ruby/models/accounting/row_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/sales_tracking_category.rb +4 -4
- data/lib/xero-ruby/models/accounting/schedule.rb +19 -11
- data/lib/xero-ruby/models/accounting/tax_component.rb +6 -6
- data/lib/xero-ruby/models/accounting/tax_rate.rb +94 -16
- data/lib/xero-ruby/models/accounting/tax_rates.rb +4 -3
- data/lib/xero-ruby/models/accounting/tax_type.rb +2 -2
- data/lib/xero-ruby/models/accounting/ten_nintey_nine_contact.rb +24 -24
- data/lib/xero-ruby/models/accounting/time_zone.rb +2 -2
- data/lib/xero-ruby/models/accounting/tracking_categories.rb +4 -3
- data/lib/xero-ruby/models/accounting/tracking_category.rb +11 -8
- data/lib/xero-ruby/models/accounting/tracking_option.rb +9 -6
- data/lib/xero-ruby/models/accounting/tracking_options.rb +4 -3
- data/lib/xero-ruby/models/accounting/user.rb +16 -9
- data/lib/xero-ruby/models/accounting/users.rb +4 -3
- data/lib/xero-ruby/models/accounting/validation_error.rb +3 -3
- data/lib/xero-ruby/models/assets/asset.rb +17 -14
- 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 +9 -13
- data/lib/xero-ruby/models/assets/assets.rb +5 -3
- data/lib/xero-ruby/models/assets/book_depreciation_detail.rb +9 -9
- data/lib/xero-ruby/models/assets/book_depreciation_setting.rb +21 -10
- data/lib/xero-ruby/models/assets/error.rb +7 -7
- data/lib/xero-ruby/models/assets/field_validation_errors_element.rb +8 -8
- data/lib/xero-ruby/models/assets/pagination.rb +7 -3
- data/lib/xero-ruby/models/assets/resource_validation_errors_element.rb +7 -7
- data/lib/xero-ruby/models/assets/setting.rb +10 -10
- data/lib/xero-ruby/models/projects/amount.rb +214 -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 +214 -0
- data/lib/xero-ruby/models/projects/pagination.rb +234 -0
- data/lib/xero-ruby/models/projects/project.rb +419 -0
- data/lib/xero-ruby/models/projects/project_create_or_update.rb +239 -0
- data/lib/xero-ruby/models/projects/project_patch.rb +209 -0
- data/lib/xero-ruby/models/projects/project_status.rb +37 -0
- data/lib/xero-ruby/models/projects/project_user.rb +224 -0
- data/lib/xero-ruby/models/projects/project_users.rb +216 -0
- data/lib/xero-ruby/models/projects/projects.rb +216 -0
- data/lib/xero-ruby/models/projects/task.rb +381 -0
- data/lib/xero-ruby/models/projects/task_create_or_update.rb +249 -0
- data/lib/xero-ruby/models/projects/tasks.rb +216 -0
- data/lib/xero-ruby/models/projects/time_entries.rb +216 -0
- data/lib/xero-ruby/models/projects/time_entry.rb +320 -0
- data/lib/xero-ruby/models/projects/time_entry_create_or_update.rb +264 -0
- data/lib/xero-ruby/version.rb +3 -3
- data/spec/accounting/api/accounting_api_spec.rb +3 -3
- data/spec/api_client_spec.rb +23 -23
- data/spec/assets/api/asset_api_spec.rb +3 -3
- data/spec/configuration_spec.rb +7 -23
- 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/xero-ruby.gem +0 -0
- data/xero-ruby.gemspec +3 -3
- metadata +83 -7
- data/xero-ruby-1.0.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.2
|
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,8 +15,9 @@ require 'date'
|
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
17
|
class ExpenseClaims
|
18
|
-
attr_accessor :expense_claims
|
19
18
|
|
19
|
+
attr_accessor :expense_claims
|
20
|
+
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|
@@ -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.2
|
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
|
|
@@ -17,12 +17,18 @@ module XeroRuby::Accounting
|
|
17
17
|
class ExternalLink
|
18
18
|
# See External link types
|
19
19
|
attr_accessor :link_type
|
20
|
-
|
20
|
+
FACEBOOK = "Facebook".freeze
|
21
|
+
GOOGLE_PLUS = "GooglePlus".freeze
|
22
|
+
LINKED_IN = "LinkedIn".freeze
|
23
|
+
TWITTER = "Twitter".freeze
|
24
|
+
WEBSITE = "Website".freeze
|
25
|
+
|
21
26
|
# URL for service e.g. http://twitter.com/xeroapi
|
22
27
|
attr_accessor :url
|
28
|
+
|
23
29
|
|
24
30
|
attr_accessor :description
|
25
|
-
|
31
|
+
|
26
32
|
class EnumAttributeValidator
|
27
33
|
attr_reader :datatype
|
28
34
|
attr_reader :allowable_values
|
@@ -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.2
|
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
|
|
@@ -17,16 +17,16 @@ module XeroRuby::Accounting
|
|
17
17
|
class HistoryRecord
|
18
18
|
# details
|
19
19
|
attr_accessor :details
|
20
|
-
|
20
|
+
|
21
21
|
# Name of branding theme
|
22
22
|
attr_accessor :changes
|
23
|
-
|
23
|
+
|
24
24
|
# has a value of 0
|
25
25
|
attr_accessor :user
|
26
|
-
|
26
|
+
|
27
27
|
# UTC timestamp of creation date of branding theme
|
28
28
|
attr_accessor :date_utc
|
29
|
-
|
29
|
+
|
30
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
31
|
def self.attribute_map
|
32
32
|
{
|
@@ -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.2
|
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,8 +15,9 @@ require 'date'
|
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
17
|
class HistoryRecords
|
18
|
-
attr_accessor :history_records
|
19
18
|
|
19
|
+
attr_accessor :history_records
|
20
|
+
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|
@@ -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.2
|
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
|
|
@@ -17,115 +17,132 @@ module XeroRuby::Accounting
|
|
17
17
|
class Invoice
|
18
18
|
# See Invoice Types
|
19
19
|
attr_accessor :type
|
20
|
+
ACCPAY = "ACCPAY".freeze
|
21
|
+
ACCPAYCREDIT = "ACCPAYCREDIT".freeze
|
22
|
+
APOVERPAYMENT = "APOVERPAYMENT".freeze
|
23
|
+
APPREPAYMENT = "APPREPAYMENT".freeze
|
24
|
+
ACCREC = "ACCREC".freeze
|
25
|
+
ACCRECCREDIT = "ACCRECCREDIT".freeze
|
26
|
+
AROVERPAYMENT = "AROVERPAYMENT".freeze
|
27
|
+
ARPREPAYMENT = "ARPREPAYMENT".freeze
|
28
|
+
|
20
29
|
|
21
30
|
attr_accessor :contact
|
22
|
-
|
31
|
+
|
23
32
|
# See LineItems
|
24
33
|
attr_accessor :line_items
|
25
|
-
|
34
|
+
|
26
35
|
# Date invoice was issued – YYYY-MM-DD. If the Date element is not specified it will default to the current date based on the timezone setting of the organisation
|
27
36
|
attr_accessor :date
|
28
|
-
|
37
|
+
|
29
38
|
# Date invoice is due – YYYY-MM-DD
|
30
39
|
attr_accessor :due_date
|
40
|
+
|
31
41
|
|
32
42
|
attr_accessor :line_amount_types
|
33
|
-
|
43
|
+
|
34
44
|
# ACCREC – Unique alpha numeric code identifying invoice (when missing will auto-generate from your Organisation Invoice Settings) (max length = 255)
|
35
45
|
attr_accessor :invoice_number
|
36
|
-
|
46
|
+
|
37
47
|
# ACCREC only – additional reference number (max length = 255)
|
38
48
|
attr_accessor :reference
|
39
|
-
|
49
|
+
|
40
50
|
# See BrandingThemes
|
41
51
|
attr_accessor :branding_theme_id
|
42
|
-
|
52
|
+
|
43
53
|
# URL link to a source document – shown as “Go to [appName]” in the Xero app
|
44
54
|
attr_accessor :url
|
55
|
+
|
45
56
|
|
46
57
|
attr_accessor :currency_code
|
47
|
-
|
58
|
+
|
48
59
|
# The currency rate for a multicurrency invoice. If no rate is specified, the XE.com day rate is used. (max length = [18].[6])
|
49
60
|
attr_accessor :currency_rate
|
50
|
-
|
61
|
+
|
51
62
|
# See Invoice Status Codes
|
52
63
|
attr_accessor :status
|
53
|
-
|
64
|
+
DRAFT = "DRAFT".freeze
|
65
|
+
SUBMITTED = "SUBMITTED".freeze
|
66
|
+
DELETED = "DELETED".freeze
|
67
|
+
AUTHORISED = "AUTHORISED".freeze
|
68
|
+
PAID = "PAID".freeze
|
69
|
+
VOIDED = "VOIDED".freeze
|
70
|
+
|
54
71
|
# Boolean to set whether the invoice in the Xero app should be marked as “sent”. This can be set only on invoices that have been approved
|
55
72
|
attr_accessor :sent_to_contact
|
56
|
-
|
73
|
+
|
57
74
|
# Shown on sales invoices (Accounts Receivable) when this has been set
|
58
75
|
attr_accessor :expected_payment_date
|
59
|
-
|
76
|
+
|
60
77
|
# Shown on bills (Accounts Payable) when this has been set
|
61
78
|
attr_accessor :planned_payment_date
|
62
|
-
|
79
|
+
|
63
80
|
# CIS deduction for UK contractors
|
64
81
|
attr_accessor :cis_deduction
|
65
|
-
|
82
|
+
|
66
83
|
# Total of invoice excluding taxes
|
67
84
|
attr_accessor :sub_total
|
68
|
-
|
85
|
+
|
69
86
|
# Total tax on invoice
|
70
87
|
attr_accessor :total_tax
|
71
|
-
|
88
|
+
|
72
89
|
# Total of Invoice tax inclusive (i.e. SubTotal + TotalTax). This will be ignored if it doesn’t equal the sum of the LineAmounts
|
73
90
|
attr_accessor :total
|
74
|
-
|
91
|
+
|
75
92
|
# Total of discounts applied on the invoice line items
|
76
93
|
attr_accessor :total_discount
|
77
|
-
|
94
|
+
|
78
95
|
# Xero generated unique identifier for invoice
|
79
96
|
attr_accessor :invoice_id
|
80
|
-
|
97
|
+
|
81
98
|
# boolean to indicate if an invoice has an attachment
|
82
99
|
attr_accessor :has_attachments
|
83
|
-
|
100
|
+
|
84
101
|
# boolean to indicate if an invoice has a discount
|
85
102
|
attr_accessor :is_discounted
|
86
|
-
|
103
|
+
|
87
104
|
# See Payments
|
88
105
|
attr_accessor :payments
|
89
|
-
|
106
|
+
|
90
107
|
# See Prepayments
|
91
108
|
attr_accessor :prepayments
|
92
|
-
|
109
|
+
|
93
110
|
# See Overpayments
|
94
111
|
attr_accessor :overpayments
|
95
|
-
|
112
|
+
|
96
113
|
# Amount remaining to be paid on invoice
|
97
114
|
attr_accessor :amount_due
|
98
|
-
|
115
|
+
|
99
116
|
# Sum of payments received for invoice
|
100
117
|
attr_accessor :amount_paid
|
101
|
-
|
118
|
+
|
102
119
|
# The date the invoice was fully paid. Only returned on fully paid invoices
|
103
120
|
attr_accessor :fully_paid_on_date
|
104
|
-
|
121
|
+
|
105
122
|
# Sum of all credit notes, over-payments and pre-payments applied to invoice
|
106
123
|
attr_accessor :amount_credited
|
107
|
-
|
124
|
+
|
108
125
|
# Last modified date UTC format
|
109
126
|
attr_accessor :updated_date_utc
|
110
|
-
|
127
|
+
|
111
128
|
# Details of credit notes that have been applied to an invoice
|
112
129
|
attr_accessor :credit_notes
|
113
|
-
|
130
|
+
|
114
131
|
# Displays array of attachments from the API
|
115
132
|
attr_accessor :attachments
|
116
|
-
|
133
|
+
|
117
134
|
# A boolean to indicate if a invoice has an validation errors
|
118
135
|
attr_accessor :has_errors
|
119
|
-
|
136
|
+
|
120
137
|
# A string to indicate if a invoice status
|
121
138
|
attr_accessor :status_attribute_string
|
122
|
-
|
139
|
+
|
123
140
|
# Displays array of validation error messages from the API
|
124
141
|
attr_accessor :validation_errors
|
125
|
-
|
142
|
+
|
126
143
|
# Displays array of warning messages from the API
|
127
144
|
attr_accessor :warnings
|
128
|
-
|
145
|
+
|
129
146
|
class EnumAttributeValidator
|
130
147
|
attr_reader :datatype
|
131
148
|
attr_reader :allowable_values
|
@@ -403,6 +420,8 @@ module XeroRuby::Accounting
|
|
403
420
|
|
404
421
|
if attributes.key?(:'has_errors')
|
405
422
|
self.has_errors = attributes[:'has_errors']
|
423
|
+
else
|
424
|
+
self.has_errors = false
|
406
425
|
end
|
407
426
|
|
408
427
|
if attributes.key?(:'status_attribute_string')
|
@@ -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.2
|
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
|
|
@@ -17,7 +17,7 @@ module XeroRuby::Accounting
|
|
17
17
|
class InvoiceReminder
|
18
18
|
# setting for on or off
|
19
19
|
attr_accessor :enabled
|
20
|
-
|
20
|
+
|
21
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
22
|
def self.attribute_map
|
23
23
|
{
|
@@ -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.2
|
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,8 +15,9 @@ require 'date'
|
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
17
|
class InvoiceReminders
|
18
|
-
attr_accessor :invoice_reminders
|
19
18
|
|
19
|
+
attr_accessor :invoice_reminders
|
20
|
+
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|
@@ -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.2
|
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,8 +15,9 @@ require 'date'
|
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
17
|
class Invoices
|
18
|
-
attr_accessor :invoices
|
19
18
|
|
19
|
+
attr_accessor :invoices
|
20
|
+
|
20
21
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
22
|
def self.attribute_map
|
22
23
|
{
|
@@ -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.2
|
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
|
|
@@ -17,50 +17,52 @@ module XeroRuby::Accounting
|
|
17
17
|
class Item
|
18
18
|
# User defined item code (max length = 30)
|
19
19
|
attr_accessor :code
|
20
|
-
|
20
|
+
|
21
21
|
# The inventory asset account for the item. The account must be of type INVENTORY. The COGSAccountCode in PurchaseDetails is also required to create a tracked item
|
22
22
|
attr_accessor :inventory_asset_account_code
|
23
|
-
|
23
|
+
|
24
24
|
# The name of the item (max length = 50)
|
25
25
|
attr_accessor :name
|
26
|
-
|
26
|
+
|
27
27
|
# Boolean value, defaults to true. When IsSold is true the item will be available on sales transactions in the Xero UI. If IsSold is updated to false then Description and SalesDetails values will be nulled.
|
28
28
|
attr_accessor :is_sold
|
29
|
-
|
29
|
+
|
30
30
|
# Boolean value, defaults to true. When IsPurchased is true the item is available for purchase transactions in the Xero UI. If IsPurchased is updated to false then PurchaseDescription and PurchaseDetails values will be nulled.
|
31
31
|
attr_accessor :is_purchased
|
32
|
-
|
32
|
+
|
33
33
|
# The sales description of the item (max length = 4000)
|
34
34
|
attr_accessor :description
|
35
|
-
|
35
|
+
|
36
36
|
# The purchase description of the item (max length = 4000)
|
37
37
|
attr_accessor :purchase_description
|
38
|
+
|
38
39
|
|
39
40
|
attr_accessor :purchase_details
|
41
|
+
|
40
42
|
|
41
43
|
attr_accessor :sales_details
|
42
|
-
|
44
|
+
|
43
45
|
# True for items that are tracked as inventory. An item will be tracked as inventory if the InventoryAssetAccountCode and COGSAccountCode are set.
|
44
46
|
attr_accessor :is_tracked_as_inventory
|
45
|
-
|
47
|
+
|
46
48
|
# The value of the item on hand. Calculated using average cost accounting.
|
47
49
|
attr_accessor :total_cost_pool
|
48
|
-
|
50
|
+
|
49
51
|
# The quantity of the item on hand
|
50
52
|
attr_accessor :quantity_on_hand
|
51
|
-
|
53
|
+
|
52
54
|
# Last modified date in UTC format
|
53
55
|
attr_accessor :updated_date_utc
|
54
|
-
|
56
|
+
|
55
57
|
# The Xero identifier for an Item
|
56
58
|
attr_accessor :item_id
|
57
|
-
|
59
|
+
|
58
60
|
# Status of object
|
59
61
|
attr_accessor :status_attribute_string
|
60
|
-
|
62
|
+
|
61
63
|
# Displays array of validation error messages from the API
|
62
64
|
attr_accessor :validation_errors
|
63
|
-
|
65
|
+
|
64
66
|
# Attribute mapping from ruby-style variable name to JSON key.
|
65
67
|
def self.attribute_map
|
66
68
|
{
|