xero-ruby 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 Items
|
|
18
|
-
attr_accessor :items
|
|
19
18
|
|
|
19
|
+
attr_accessor :items
|
|
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,28 +17,53 @@ module XeroRuby::Accounting
|
|
|
17
17
|
class Journal
|
|
18
18
|
# Xero identifier
|
|
19
19
|
attr_accessor :journal_id
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
# Date the journal was posted
|
|
22
22
|
attr_accessor :journal_date
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
# Xero generated journal number
|
|
25
25
|
attr_accessor :journal_number
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
# Created date UTC format
|
|
28
28
|
attr_accessor :created_date_utc
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
# reference field for additional indetifying information
|
|
31
31
|
attr_accessor :reference
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
# The identifier for the source transaction (e.g. InvoiceID)
|
|
34
34
|
attr_accessor :source_id
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
# The journal source type. The type of transaction that created the journal
|
|
37
37
|
attr_accessor :source_type
|
|
38
|
-
|
|
38
|
+
ACCREC = "ACCREC".freeze
|
|
39
|
+
ACCPAY = "ACCPAY".freeze
|
|
40
|
+
ACCRECCREDIT = "ACCRECCREDIT".freeze
|
|
41
|
+
ACCPAYCREDIT = "ACCPAYCREDIT".freeze
|
|
42
|
+
ACCRECPAYMENT = "ACCRECPAYMENT".freeze
|
|
43
|
+
ACCPAYPAYMENT = "ACCPAYPAYMENT".freeze
|
|
44
|
+
ARCREDITPAYMENT = "ARCREDITPAYMENT".freeze
|
|
45
|
+
APCREDITPAYMENT = "APCREDITPAYMENT".freeze
|
|
46
|
+
CASHREC = "CASHREC".freeze
|
|
47
|
+
CASHPAID = "CASHPAID".freeze
|
|
48
|
+
TRANSFER = "TRANSFER".freeze
|
|
49
|
+
ARPREPAYMENT = "ARPREPAYMENT".freeze
|
|
50
|
+
APPREPAYMENT = "APPREPAYMENT".freeze
|
|
51
|
+
AROVERPAYMENT = "AROVERPAYMENT".freeze
|
|
52
|
+
APOVERPAYMENT = "APOVERPAYMENT".freeze
|
|
53
|
+
EXPCLAIM = "EXPCLAIM".freeze
|
|
54
|
+
EXPPAYMENT = "EXPPAYMENT".freeze
|
|
55
|
+
MANJOURNAL = "MANJOURNAL".freeze
|
|
56
|
+
PAYSLIP = "PAYSLIP".freeze
|
|
57
|
+
WAGEPAYABLE = "WAGEPAYABLE".freeze
|
|
58
|
+
INTEGRATEDPAYROLLPE = "INTEGRATEDPAYROLLPE".freeze
|
|
59
|
+
INTEGRATEDPAYROLLPT = "INTEGRATEDPAYROLLPT".freeze
|
|
60
|
+
EXTERNALSPENDMONEY = "EXTERNALSPENDMONEY".freeze
|
|
61
|
+
INTEGRATEDPAYROLLPTPAYMENT = "INTEGRATEDPAYROLLPTPAYMENT".freeze
|
|
62
|
+
INTEGRATEDPAYROLLCN = "INTEGRATEDPAYROLLCN".freeze
|
|
63
|
+
|
|
39
64
|
# See JournalLines
|
|
40
65
|
attr_accessor :journal_lines
|
|
41
|
-
|
|
66
|
+
|
|
42
67
|
class EnumAttributeValidator
|
|
43
68
|
attr_reader :datatype
|
|
44
69
|
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,39 +17,40 @@ module XeroRuby::Accounting
|
|
|
17
17
|
class JournalLine
|
|
18
18
|
# Xero identifier for Journal
|
|
19
19
|
attr_accessor :journal_line_id
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
# See Accounts
|
|
22
22
|
attr_accessor :account_id
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
# See Accounts
|
|
25
25
|
attr_accessor :account_code
|
|
26
|
+
|
|
26
27
|
|
|
27
28
|
attr_accessor :account_type
|
|
28
|
-
|
|
29
|
+
|
|
29
30
|
# See AccountCodes
|
|
30
31
|
attr_accessor :account_name
|
|
31
|
-
|
|
32
|
+
|
|
32
33
|
# The description from the source transaction line item. Only returned if populated.
|
|
33
34
|
attr_accessor :description
|
|
34
|
-
|
|
35
|
+
|
|
35
36
|
# Net amount of journal line. This will be a positive value for a debit and negative for a credit
|
|
36
37
|
attr_accessor :net_amount
|
|
37
|
-
|
|
38
|
+
|
|
38
39
|
# Gross amount of journal line (NetAmount + TaxAmount).
|
|
39
40
|
attr_accessor :gross_amount
|
|
40
|
-
|
|
41
|
+
|
|
41
42
|
# Total tax on a journal line
|
|
42
43
|
attr_accessor :tax_amount
|
|
43
|
-
|
|
44
|
+
|
|
44
45
|
# The tax type from TaxRates
|
|
45
46
|
attr_accessor :tax_type
|
|
46
|
-
|
|
47
|
+
|
|
47
48
|
# see TaxRates
|
|
48
49
|
attr_accessor :tax_name
|
|
49
|
-
|
|
50
|
+
|
|
50
51
|
# Optional Tracking Category – see Tracking. Any JournalLine can have a maximum of 2 <TrackingCategory> elements.
|
|
51
52
|
attr_accessor :tracking_categories
|
|
52
|
-
|
|
53
|
+
|
|
53
54
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
54
55
|
def self.attribute_map
|
|
55
56
|
{
|
|
@@ -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 Journals
|
|
18
|
-
attr_accessor :journals
|
|
19
18
|
|
|
19
|
+
attr_accessor :journals
|
|
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
|
|
|
@@ -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,43 +17,43 @@ module XeroRuby::Accounting
|
|
|
17
17
|
class LineItem
|
|
18
18
|
# LineItem unique ID
|
|
19
19
|
attr_accessor :line_item_id
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
# Description needs to be at least 1 char long. A line item with just a description (i.e no unit amount or quantity) can be created by specifying just a <Description> element that contains at least 1 character
|
|
22
22
|
attr_accessor :description
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
# LineItem Quantity
|
|
25
25
|
attr_accessor :quantity
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
# LineItem Unit Amount
|
|
28
28
|
attr_accessor :unit_amount
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
# See Items
|
|
31
31
|
attr_accessor :item_code
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
# See Accounts
|
|
34
34
|
attr_accessor :account_code
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
# The tax type from TaxRates
|
|
37
37
|
attr_accessor :tax_type
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
# The tax amount is auto calculated as a percentage of the line amount (see below) based on the tax rate. This value can be overriden if the calculated <TaxAmount> is not correct.
|
|
40
40
|
attr_accessor :tax_amount
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
# If you wish to omit either of the <Quantity> or <UnitAmount> you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if a DiscountRate has been used . i.e LineAmount = Quantity * Unit Amount * ((100 – DiscountRate)/100)
|
|
43
43
|
attr_accessor :line_amount
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
# Optional Tracking Category – see Tracking. Any LineItem can have a maximum of 2 <TrackingCategory> elements.
|
|
46
46
|
attr_accessor :tracking
|
|
47
|
-
|
|
47
|
+
|
|
48
48
|
# Percentage discount being applied to a line item (only supported on ACCREC invoices – ACC PAY invoices and credit notes in Xero do not support discounts
|
|
49
49
|
attr_accessor :discount_rate
|
|
50
|
-
|
|
50
|
+
|
|
51
51
|
# Discount amount being applied to a line item. Only supported on ACCREC invoices - ACCPAY invoices and credit notes in Xero do not support discounts.
|
|
52
52
|
attr_accessor :discount_amount
|
|
53
|
-
|
|
53
|
+
|
|
54
54
|
# The Xero identifier for a Repeating Invoice
|
|
55
55
|
attr_accessor :repeating_invoice_id
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
58
58
|
def self.attribute_map
|
|
59
59
|
{
|
|
@@ -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 LineItemTracking
|
|
18
18
|
# The Xero identifier for a tracking category
|
|
19
19
|
attr_accessor :tracking_category_id
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
# The Xero identifier for a tracking category option
|
|
22
22
|
attr_accessor :tracking_option_id
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
# The name of the tracking category
|
|
25
25
|
attr_accessor :name
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
# See Tracking Options
|
|
28
28
|
attr_accessor :option
|
|
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
|
|
|
@@ -17,37 +17,45 @@ module XeroRuby::Accounting
|
|
|
17
17
|
class LinkedTransaction
|
|
18
18
|
# Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice
|
|
19
19
|
attr_accessor :source_transaction_id
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
# The line item identifier from the source transaction.
|
|
22
22
|
attr_accessor :source_line_item_id
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
# Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
|
|
25
25
|
attr_accessor :contact_id
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
# Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice
|
|
28
28
|
attr_accessor :target_transaction_id
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
# The line item identifier from the target transaction. It is possible to link multiple billable expenses to the same TargetLineItemID.
|
|
31
31
|
attr_accessor :target_line_item_id
|
|
32
|
-
|
|
32
|
+
|
|
33
33
|
# The Xero identifier for an Linked Transaction e.g./LinkedTransactions/297c2dc5-cc47-4afd-8ec8-74990b8761e9
|
|
34
34
|
attr_accessor :linked_transaction_id
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
# Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
|
|
37
37
|
attr_accessor :status
|
|
38
|
-
|
|
38
|
+
APPROVED = "APPROVED".freeze
|
|
39
|
+
DRAFT = "DRAFT".freeze
|
|
40
|
+
ONDRAFT = "ONDRAFT".freeze
|
|
41
|
+
BILLED = "BILLED".freeze
|
|
42
|
+
VOIDED = "VOIDED".freeze
|
|
43
|
+
|
|
39
44
|
# This will always be BILLABLEEXPENSE. More types may be added in future.
|
|
40
45
|
attr_accessor :type
|
|
41
|
-
|
|
46
|
+
BILLABLEEXPENSE = "BILLABLEEXPENSE".freeze
|
|
47
|
+
|
|
42
48
|
# The last modified date in UTC format
|
|
43
49
|
attr_accessor :updated_date_utc
|
|
44
|
-
|
|
50
|
+
|
|
45
51
|
# The Type of the source tranasction. This will be ACCPAY if the linked transaction was created from an invoice and SPEND if it was created from a bank transaction.
|
|
46
52
|
attr_accessor :source_transaction_type_code
|
|
47
|
-
|
|
53
|
+
ACCPAY = "ACCPAY".freeze
|
|
54
|
+
SPEND = "SPEND".freeze
|
|
55
|
+
|
|
48
56
|
# Displays array of validation error messages from the API
|
|
49
57
|
attr_accessor :validation_errors
|
|
50
|
-
|
|
58
|
+
|
|
51
59
|
class EnumAttributeValidator
|
|
52
60
|
attr_reader :datatype
|
|
53
61
|
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
|
|
|
@@ -15,8 +15,9 @@ require 'date'
|
|
|
15
15
|
|
|
16
16
|
module XeroRuby::Accounting
|
|
17
17
|
class LinkedTransactions
|
|
18
|
-
attr_accessor :linked_transactions
|
|
19
18
|
|
|
19
|
+
attr_accessor :linked_transactions
|
|
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,45 +17,51 @@ module XeroRuby::Accounting
|
|
|
17
17
|
class ManualJournal
|
|
18
18
|
# Description of journal being posted
|
|
19
19
|
attr_accessor :narration
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
# See JournalLines
|
|
22
22
|
attr_accessor :journal_lines
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
# Date journal was posted – YYYY-MM-DD
|
|
25
25
|
attr_accessor :date
|
|
26
|
+
|
|
26
27
|
|
|
27
28
|
attr_accessor :line_amount_types
|
|
28
|
-
|
|
29
|
+
|
|
29
30
|
# See Manual Journal Status Codes
|
|
30
31
|
attr_accessor :status
|
|
31
|
-
|
|
32
|
+
DRAFT = "DRAFT".freeze
|
|
33
|
+
POSTED = "POSTED".freeze
|
|
34
|
+
DELETED = "DELETED".freeze
|
|
35
|
+
VOIDED = "VOIDED".freeze
|
|
36
|
+
ARCHIVED = "ARCHIVED".freeze
|
|
37
|
+
|
|
32
38
|
# Url link to a source document – shown as “Go to [appName]” in the Xero app
|
|
33
39
|
attr_accessor :url
|
|
34
|
-
|
|
40
|
+
|
|
35
41
|
# Boolean – default is true if not specified
|
|
36
42
|
attr_accessor :show_on_cash_basis_reports
|
|
37
|
-
|
|
43
|
+
|
|
38
44
|
# Boolean to indicate if a manual journal has an attachment
|
|
39
45
|
attr_accessor :has_attachments
|
|
40
|
-
|
|
46
|
+
|
|
41
47
|
# Last modified date UTC format
|
|
42
48
|
attr_accessor :updated_date_utc
|
|
43
|
-
|
|
49
|
+
|
|
44
50
|
# The Xero identifier for a Manual Journal
|
|
45
51
|
attr_accessor :manual_journal_id
|
|
46
|
-
|
|
52
|
+
|
|
47
53
|
# A string to indicate if a invoice status
|
|
48
54
|
attr_accessor :status_attribute_string
|
|
49
|
-
|
|
55
|
+
|
|
50
56
|
# Displays array of warning messages from the API
|
|
51
57
|
attr_accessor :warnings
|
|
52
|
-
|
|
58
|
+
|
|
53
59
|
# Displays array of validation error messages from the API
|
|
54
60
|
attr_accessor :validation_errors
|
|
55
|
-
|
|
61
|
+
|
|
56
62
|
# Displays array of attachments from the API
|
|
57
63
|
attr_accessor :attachments
|
|
58
|
-
|
|
64
|
+
|
|
59
65
|
class EnumAttributeValidator
|
|
60
66
|
attr_reader :datatype
|
|
61
67
|
attr_reader :allowable_values
|