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 Allocations
|
18
|
-
attr_accessor :allocations
|
19
18
|
|
19
|
+
attr_accessor :allocations
|
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,22 +17,22 @@ module XeroRuby::Accounting
|
|
17
17
|
class Attachment
|
18
18
|
# Unique ID for the file
|
19
19
|
attr_accessor :attachment_id
|
20
|
-
|
20
|
+
|
21
21
|
# Name of the file
|
22
22
|
attr_accessor :file_name
|
23
|
-
|
23
|
+
|
24
24
|
# URL to the file on xero.com
|
25
25
|
attr_accessor :url
|
26
|
-
|
26
|
+
|
27
27
|
# Type of file
|
28
28
|
attr_accessor :mime_type
|
29
|
-
|
29
|
+
|
30
30
|
# Length of the file content
|
31
31
|
attr_accessor :content_length
|
32
|
-
|
32
|
+
|
33
33
|
# Include the file with the online invoice
|
34
34
|
attr_accessor :include_online
|
35
|
-
|
35
|
+
|
36
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
37
37
|
def self.attribute_map
|
38
38
|
{
|
@@ -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 Attachments
|
18
|
-
attr_accessor :attachments
|
19
18
|
|
19
|
+
attr_accessor :attachments
|
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
|
|
@@ -16,10 +16,12 @@ require 'date'
|
|
16
16
|
module XeroRuby::Accounting
|
17
17
|
# The raw AccountsReceivable(sales invoices) and AccountsPayable(bills) outstanding and overdue amounts, not converted to base currency (read only)
|
18
18
|
class Balances
|
19
|
+
|
19
20
|
attr_accessor :accounts_receivable
|
21
|
+
|
20
22
|
|
21
23
|
attr_accessor :accounts_payable
|
22
|
-
|
24
|
+
|
23
25
|
# Attribute mapping from ruby-style variable name to JSON key.
|
24
26
|
def self.attribute_map
|
25
27
|
{
|
@@ -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,66 +17,81 @@ module XeroRuby::Accounting
|
|
17
17
|
class BankTransaction
|
18
18
|
# See Bank Transaction Types
|
19
19
|
attr_accessor :type
|
20
|
+
RECEIVE = "RECEIVE".freeze
|
21
|
+
RECEIVE_OVERPAYMENT = "RECEIVE-OVERPAYMENT".freeze
|
22
|
+
RECEIVE_PREPAYMENT = "RECEIVE-PREPAYMENT".freeze
|
23
|
+
SPEND = "SPEND".freeze
|
24
|
+
SPEND_OVERPAYMENT = "SPEND-OVERPAYMENT".freeze
|
25
|
+
SPEND_PREPAYMENT = "SPEND-PREPAYMENT".freeze
|
26
|
+
RECEIVE_TRANSFER = "RECEIVE-TRANSFER".freeze
|
27
|
+
SPEND_TRANSFER = "SPEND-TRANSFER".freeze
|
28
|
+
|
20
29
|
|
21
30
|
attr_accessor :contact
|
22
|
-
|
31
|
+
|
23
32
|
# See LineItems
|
24
33
|
attr_accessor :line_items
|
34
|
+
|
25
35
|
|
26
36
|
attr_accessor :bank_account
|
27
|
-
|
37
|
+
|
28
38
|
# Boolean to show if transaction is reconciled
|
29
39
|
attr_accessor :is_reconciled
|
30
|
-
|
40
|
+
|
31
41
|
# Date of transaction – YYYY-MM-DD
|
32
42
|
attr_accessor :date
|
33
|
-
|
43
|
+
|
34
44
|
# Reference for the transaction. Only supported for SPEND and RECEIVE transactions.
|
35
45
|
attr_accessor :reference
|
46
|
+
|
36
47
|
|
37
48
|
attr_accessor :currency_code
|
38
|
-
|
49
|
+
|
39
50
|
# Exchange rate to base currency when money is spent or received. e.g.0.7500 Only used for bank transactions in non base currency. If this isn’t specified for non base currency accounts then either the user-defined rate (preference) or the XE.com day rate will be used. Setting currency is only supported on overpayments.
|
40
51
|
attr_accessor :currency_rate
|
41
|
-
|
52
|
+
|
42
53
|
# URL link to a source document – shown as “Go to App Name”
|
43
54
|
attr_accessor :url
|
44
|
-
|
55
|
+
|
45
56
|
# See Bank Transaction Status Codes
|
46
57
|
attr_accessor :status
|
58
|
+
AUTHORISED = "AUTHORISED".freeze
|
59
|
+
DELETED = "DELETED".freeze
|
60
|
+
VOIDED = "VOIDED".freeze
|
61
|
+
|
47
62
|
|
48
63
|
attr_accessor :line_amount_types
|
49
|
-
|
64
|
+
|
50
65
|
# Total of bank transaction excluding taxes
|
51
66
|
attr_accessor :sub_total
|
52
|
-
|
67
|
+
|
53
68
|
# Total tax on bank transaction
|
54
69
|
attr_accessor :total_tax
|
55
|
-
|
70
|
+
|
56
71
|
# Total of bank transaction tax inclusive
|
57
72
|
attr_accessor :total
|
58
|
-
|
73
|
+
|
59
74
|
# Xero generated unique identifier for bank transaction
|
60
75
|
attr_accessor :bank_transaction_id
|
61
|
-
|
76
|
+
|
62
77
|
# Xero generated unique identifier for a Prepayment. This will be returned on BankTransactions with a Type of SPEND-PREPAYMENT or RECEIVE-PREPAYMENT
|
63
78
|
attr_accessor :prepayment_id
|
64
|
-
|
79
|
+
|
65
80
|
# Xero generated unique identifier for an Overpayment. This will be returned on BankTransactions with a Type of SPEND-OVERPAYMENT or RECEIVE-OVERPAYMENT
|
66
81
|
attr_accessor :overpayment_id
|
67
|
-
|
82
|
+
|
68
83
|
# Last modified date UTC format
|
69
84
|
attr_accessor :updated_date_utc
|
70
|
-
|
85
|
+
|
71
86
|
# Boolean to indicate if a bank transaction has an attachment
|
72
87
|
attr_accessor :has_attachments
|
73
|
-
|
88
|
+
|
74
89
|
# A string to indicate if a invoice status
|
75
90
|
attr_accessor :status_attribute_string
|
76
|
-
|
91
|
+
|
77
92
|
# Displays array of validation error messages from the API
|
78
93
|
attr_accessor :validation_errors
|
79
|
-
|
94
|
+
|
80
95
|
class EnumAttributeValidator
|
81
96
|
attr_reader :datatype
|
82
97
|
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 BankTransactions
|
18
|
-
attr_accessor :bank_transactions
|
19
18
|
|
19
|
+
attr_accessor :bank_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
|
|
@@ -15,37 +15,39 @@ require 'date'
|
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
17
|
class BankTransfer
|
18
|
+
|
18
19
|
attr_accessor :from_bank_account
|
20
|
+
|
19
21
|
|
20
22
|
attr_accessor :to_bank_account
|
21
|
-
|
23
|
+
|
22
24
|
# amount of the transaction
|
23
25
|
attr_accessor :amount
|
24
|
-
|
26
|
+
|
25
27
|
# The date of the Transfer YYYY-MM-DD
|
26
28
|
attr_accessor :date
|
27
|
-
|
29
|
+
|
28
30
|
# The identifier of the Bank Transfer
|
29
31
|
attr_accessor :bank_transfer_id
|
30
|
-
|
32
|
+
|
31
33
|
# The currency rate
|
32
34
|
attr_accessor :currency_rate
|
33
|
-
|
35
|
+
|
34
36
|
# The Bank Transaction ID for the source account
|
35
37
|
attr_accessor :from_bank_transaction_id
|
36
|
-
|
38
|
+
|
37
39
|
# The Bank Transaction ID for the destination account
|
38
40
|
attr_accessor :to_bank_transaction_id
|
39
|
-
|
41
|
+
|
40
42
|
# Boolean to indicate if a Bank Transfer has an attachment
|
41
43
|
attr_accessor :has_attachments
|
42
|
-
|
44
|
+
|
43
45
|
# UTC timestamp of creation date of bank transfer
|
44
46
|
attr_accessor :created_date_utc
|
45
|
-
|
47
|
+
|
46
48
|
# Displays array of validation error messages from the API
|
47
49
|
attr_accessor :validation_errors
|
48
|
-
|
50
|
+
|
49
51
|
# Attribute mapping from ruby-style variable name to JSON key.
|
50
52
|
def self.attribute_map
|
51
53
|
{
|
@@ -68,7 +70,7 @@ module XeroRuby::Accounting
|
|
68
70
|
{
|
69
71
|
:'from_bank_account' => :'Account',
|
70
72
|
:'to_bank_account' => :'Account',
|
71
|
-
:'amount' => :'
|
73
|
+
:'amount' => :'Float',
|
72
74
|
:'date' => :'Date',
|
73
75
|
:'bank_transfer_id' => :'String',
|
74
76
|
:'currency_rate' => :'Float',
|
@@ -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 BankTransfers
|
18
|
-
attr_accessor :bank_transfers
|
19
18
|
|
19
|
+
attr_accessor :bank_transfers
|
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,52 +15,58 @@ require 'date'
|
|
15
15
|
|
16
16
|
module XeroRuby::Accounting
|
17
17
|
class BatchPayment
|
18
|
-
attr_accessor :account
|
19
18
|
|
19
|
+
attr_accessor :account
|
20
|
+
|
20
21
|
# (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.
|
21
22
|
attr_accessor :reference
|
22
|
-
|
23
|
+
|
23
24
|
# (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.
|
24
25
|
attr_accessor :particulars
|
25
|
-
|
26
|
+
|
26
27
|
# (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.
|
27
28
|
attr_accessor :code
|
28
|
-
|
29
|
+
|
29
30
|
# (Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero. Maximum field length = 18
|
30
31
|
attr_accessor :details
|
31
|
-
|
32
|
+
|
32
33
|
# (UK Only) Only shows on the statement line in Xero. Max length =18
|
33
34
|
attr_accessor :narrative
|
34
|
-
|
35
|
+
|
35
36
|
# The Xero generated unique identifier for the bank transaction (read-only)
|
36
37
|
attr_accessor :batch_payment_id
|
37
|
-
|
38
|
+
|
38
39
|
# Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06
|
39
40
|
attr_accessor :date_string
|
40
|
-
|
41
|
+
|
41
42
|
# Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06
|
42
43
|
attr_accessor :date
|
43
|
-
|
44
|
+
|
44
45
|
# The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00
|
45
46
|
attr_accessor :amount
|
46
|
-
|
47
|
+
|
48
|
+
# An array of payments
|
47
49
|
attr_accessor :payments
|
48
|
-
|
50
|
+
|
49
51
|
# PAYBATCH for bill payments or RECBATCH for sales invoice payments (read-only)
|
50
52
|
attr_accessor :type
|
51
|
-
|
53
|
+
PAYBATCH = "PAYBATCH".freeze
|
54
|
+
RECBATCH = "RECBATCH".freeze
|
55
|
+
|
52
56
|
# AUTHORISED or DELETED (read-only). New batch payments will have a status of AUTHORISED. It is not possible to delete batch payments via the API.
|
53
57
|
attr_accessor :status
|
54
|
-
|
58
|
+
AUTHORISED = "AUTHORISED".freeze
|
59
|
+
DELETED = "DELETED".freeze
|
60
|
+
|
55
61
|
# The total of the payments that make up the batch (read-only)
|
56
62
|
attr_accessor :total_amount
|
57
|
-
|
63
|
+
|
58
64
|
# UTC timestamp of last update to the payment
|
59
65
|
attr_accessor :updated_date_utc
|
60
|
-
|
66
|
+
|
61
67
|
# Booelan that tells you if the batch payment has been reconciled (read-only)
|
62
68
|
attr_accessor :is_reconciled
|
63
|
-
|
69
|
+
|
64
70
|
class EnumAttributeValidator
|
65
71
|
attr_reader :datatype
|
66
72
|
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
|
|
@@ -18,19 +18,19 @@ module XeroRuby::Accounting
|
|
18
18
|
class BatchPaymentDetails
|
19
19
|
# Bank account number for use with Batch Payments
|
20
20
|
attr_accessor :bank_account_number
|
21
|
-
|
21
|
+
|
22
22
|
# Name of bank for use with Batch Payments
|
23
23
|
attr_accessor :bank_account_name
|
24
|
-
|
24
|
+
|
25
25
|
# (Non-NZ Only) These details are sent to the org’s bank as a reference for the batch payment transaction. They will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement imported into Xero. Maximum field length = 18
|
26
26
|
attr_accessor :details
|
27
|
-
|
27
|
+
|
28
28
|
# (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.
|
29
29
|
attr_accessor :code
|
30
|
-
|
30
|
+
|
31
31
|
# (NZ Only) Optional references for the batch payment transaction. It will also show with the batch payment transaction in the bank reconciliation Find & Match screen. Depending on your individual bank, the detail may also show on the bank statement you import into Xero.
|
32
32
|
attr_accessor :reference
|
33
|
-
|
33
|
+
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
35
|
def self.attribute_map
|
36
36
|
{
|