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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0690938c815e6037f0e6307a5b85a7b081a9fdb1d277a37f106d3d6fbcae7488'
|
4
|
+
data.tar.gz: c2787624314dc766e1c31527ced0e658b1eef995ce5af5f2dfd801d018244d29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d1489944c743b6dcb8b576581d9d6080b1af7a9bc24333df213b889ea60d2ae175e70da63acfef995248c22c14123414f441ad59ad7c26d490467ba9e5df289
|
7
|
+
data.tar.gz: ff2dbd51b20fa0ad511cac7c4632d86c456bb622fdc1cae011574da5a4f07d772e4ea1f49b93bbbdb25ea6799847979fc4e820bb01c5c88ba1429e20db403767
|
data/README.md
CHANGED
@@ -6,8 +6,8 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
6
6
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
|
-
- API version: 2.0.
|
10
|
-
- Package version: 0.
|
9
|
+
- API version: 2.0.1
|
10
|
+
- Package version: 0.2.0
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [https://developer.xero.com](https://developer.xero.com)
|
13
13
|
|
@@ -24,22 +24,22 @@ gem build xero-ruby.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./xero-ruby-0.
|
27
|
+
gem install ./xero-ruby-0.2.0.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./xero-ruby-0.
|
30
|
+
(for development, run `gem install --dev ./xero-ruby-0.2.0.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'xero-ruby', '~> 0.
|
36
|
+
gem 'xero-ruby', '~> 0.2.0'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
40
|
-
If the Ruby gem is hosted at a git repository: https://github.com/
|
40
|
+
If the Ruby gem is hosted at a git repository: https://github.com/XeroAPI/xero-ruby, then add the following in the Gemfile:
|
41
41
|
|
42
|
-
gem 'xero-ruby', :git => 'https://github.com/
|
42
|
+
gem 'xero-ruby', :git => 'https://github.com/XeroAPI/xero-ruby.git'
|
43
43
|
|
44
44
|
### Include the Ruby code directly
|
45
45
|
|
@@ -64,8 +64,8 @@ XeroRuby.configure do |config|
|
|
64
64
|
end
|
65
65
|
|
66
66
|
api_instance = XeroRuby::AccountingApi.new
|
67
|
-
xero_tenant_id = '
|
68
|
-
account = {
|
67
|
+
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
|
68
|
+
account = { code: "123456", name: "Foobar", type: AccountType.EXPENSE, description: "Hello World" } # Account | Account object in body of request
|
69
69
|
|
70
70
|
begin
|
71
71
|
#Allows you to create a new chart of accounts
|
@@ -85,63 +85,54 @@ Class | Method | HTTP request | Description
|
|
85
85
|
------------ | ------------- | ------------- | -------------
|
86
86
|
*XeroRuby::AccountingApi* | [**create_account**](docs/AccountingApi.md#create_account) | **PUT** /Accounts | Allows you to create a new chart of accounts
|
87
87
|
*XeroRuby::AccountingApi* | [**create_account_attachment_by_file_name**](docs/AccountingApi.md#create_account_attachment_by_file_name) | **PUT** /Accounts/{AccountID}/Attachments/{FileName} | Allows you to create Attachment on Account
|
88
|
-
*XeroRuby::AccountingApi* | [**create_bank_transaction**](docs/AccountingApi.md#create_bank_transaction) | **PUT** /BankTransactions | Allows you to create a spend or receive money transaction
|
89
88
|
*XeroRuby::AccountingApi* | [**create_bank_transaction_attachment_by_file_name**](docs/AccountingApi.md#create_bank_transaction_attachment_by_file_name) | **PUT** /BankTransactions/{BankTransactionID}/Attachments/{FileName} | Allows you to createa an Attachment on BankTransaction by Filename
|
90
89
|
*XeroRuby::AccountingApi* | [**create_bank_transaction_history_record**](docs/AccountingApi.md#create_bank_transaction_history_record) | **PUT** /BankTransactions/{BankTransactionID}/History | Allows you to create history record for a bank transactions
|
91
|
-
*XeroRuby::AccountingApi* | [**create_bank_transactions**](docs/AccountingApi.md#create_bank_transactions) | **PUT** /BankTransactions
|
90
|
+
*XeroRuby::AccountingApi* | [**create_bank_transactions**](docs/AccountingApi.md#create_bank_transactions) | **PUT** /BankTransactions | Allows you to create one or more spend or receive money transaction
|
92
91
|
*XeroRuby::AccountingApi* | [**create_bank_transfer**](docs/AccountingApi.md#create_bank_transfer) | **PUT** /BankTransfers | Allows you to create a bank transfers
|
93
92
|
*XeroRuby::AccountingApi* | [**create_bank_transfer_attachment_by_file_name**](docs/AccountingApi.md#create_bank_transfer_attachment_by_file_name) | **PUT** /BankTransfers/{BankTransferID}/Attachments/{FileName} |
|
94
93
|
*XeroRuby::AccountingApi* | [**create_bank_transfer_history_record**](docs/AccountingApi.md#create_bank_transfer_history_record) | **PUT** /BankTransfers/{BankTransferID}/History |
|
95
94
|
*XeroRuby::AccountingApi* | [**create_batch_payment**](docs/AccountingApi.md#create_batch_payment) | **PUT** /BatchPayments | Create one or many BatchPayments for invoices
|
96
95
|
*XeroRuby::AccountingApi* | [**create_batch_payment_history_record**](docs/AccountingApi.md#create_batch_payment_history_record) | **PUT** /BatchPayments/{BatchPaymentID}/History | Allows you to create a history record for a Batch Payment
|
97
96
|
*XeroRuby::AccountingApi* | [**create_branding_theme_payment_services**](docs/AccountingApi.md#create_branding_theme_payment_services) | **POST** /BrandingThemes/{BrandingThemeID}/PaymentServices | Allow for the creation of new custom payment service for specified Branding Theme
|
98
|
-
*XeroRuby::AccountingApi* | [**create_contact**](docs/AccountingApi.md#create_contact) | **PUT** /Contacts |
|
99
97
|
*XeroRuby::AccountingApi* | [**create_contact_attachment_by_file_name**](docs/AccountingApi.md#create_contact_attachment_by_file_name) | **PUT** /Contacts/{ContactID}/Attachments/{FileName} |
|
100
98
|
*XeroRuby::AccountingApi* | [**create_contact_group**](docs/AccountingApi.md#create_contact_group) | **PUT** /ContactGroups | Allows you to create a contact group
|
101
99
|
*XeroRuby::AccountingApi* | [**create_contact_group_contacts**](docs/AccountingApi.md#create_contact_group_contacts) | **PUT** /ContactGroups/{ContactGroupID}/Contacts | Allows you to add Contacts to a Contract Group
|
102
100
|
*XeroRuby::AccountingApi* | [**create_contact_history**](docs/AccountingApi.md#create_contact_history) | **PUT** /Contacts/{ContactID}/History | Allows you to retrieve a history records of an Contact
|
103
|
-
*XeroRuby::AccountingApi* | [**create_contacts**](docs/AccountingApi.md#create_contacts) | **PUT** /Contacts
|
104
|
-
*XeroRuby::AccountingApi* | [**create_credit_note**](docs/AccountingApi.md#create_credit_note) | **PUT** /CreditNotes | Allows you to create a credit note
|
101
|
+
*XeroRuby::AccountingApi* | [**create_contacts**](docs/AccountingApi.md#create_contacts) | **PUT** /Contacts | Allows you to create a multiple contacts (bulk) in a Xero organisation
|
105
102
|
*XeroRuby::AccountingApi* | [**create_credit_note_allocation**](docs/AccountingApi.md#create_credit_note_allocation) | **PUT** /CreditNotes/{CreditNoteID}/Allocations | Allows you to create Allocation on CreditNote
|
106
103
|
*XeroRuby::AccountingApi* | [**create_credit_note_attachment_by_file_name**](docs/AccountingApi.md#create_credit_note_attachment_by_file_name) | **PUT** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to create Attachments on CreditNote by file name
|
107
104
|
*XeroRuby::AccountingApi* | [**create_credit_note_history**](docs/AccountingApi.md#create_credit_note_history) | **PUT** /CreditNotes/{CreditNoteID}/History | Allows you to retrieve a history records of an CreditNote
|
108
|
-
*XeroRuby::AccountingApi* | [**create_credit_notes**](docs/AccountingApi.md#create_credit_notes) | **PUT** /CreditNotes
|
105
|
+
*XeroRuby::AccountingApi* | [**create_credit_notes**](docs/AccountingApi.md#create_credit_notes) | **PUT** /CreditNotes | Allows you to create a credit note
|
109
106
|
*XeroRuby::AccountingApi* | [**create_currency**](docs/AccountingApi.md#create_currency) | **PUT** /Currencies |
|
110
|
-
*XeroRuby::AccountingApi* | [**
|
111
|
-
*XeroRuby::AccountingApi* | [**create_employees**](docs/AccountingApi.md#create_employees) | **PUT** /Employees#bulk | Allows you to create new employees used in Xero payrun
|
107
|
+
*XeroRuby::AccountingApi* | [**create_employees**](docs/AccountingApi.md#create_employees) | **PUT** /Employees | Allows you to create new employees used in Xero payrun
|
112
108
|
*XeroRuby::AccountingApi* | [**create_expense_claim_history**](docs/AccountingApi.md#create_expense_claim_history) | **PUT** /ExpenseClaims/{ExpenseClaimID}/History | Allows you to create a history records of an ExpenseClaim
|
113
109
|
*XeroRuby::AccountingApi* | [**create_expense_claims**](docs/AccountingApi.md#create_expense_claims) | **PUT** /ExpenseClaims | Allows you to retrieve expense claims
|
114
|
-
*XeroRuby::AccountingApi* | [**create_invoice**](docs/AccountingApi.md#create_invoice) | **PUT** /Invoices | Allows you to create any sales invoices or purchase bills
|
115
110
|
*XeroRuby::AccountingApi* | [**create_invoice_attachment_by_file_name**](docs/AccountingApi.md#create_invoice_attachment_by_file_name) | **PUT** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to create an Attachment on invoices or purchase bills by it's filename
|
116
111
|
*XeroRuby::AccountingApi* | [**create_invoice_history**](docs/AccountingApi.md#create_invoice_history) | **PUT** /Invoices/{InvoiceID}/History | Allows you to retrieve a history records of an invoice
|
117
|
-
*XeroRuby::AccountingApi* | [**create_invoices**](docs/AccountingApi.md#create_invoices) | **PUT** /Invoices
|
118
|
-
*XeroRuby::AccountingApi* | [**create_item**](docs/AccountingApi.md#create_item) | **PUT** /Items | Allows you to create an item
|
112
|
+
*XeroRuby::AccountingApi* | [**create_invoices**](docs/AccountingApi.md#create_invoices) | **PUT** /Invoices | Allows you to create one or more sales invoices or purchase bills
|
119
113
|
*XeroRuby::AccountingApi* | [**create_item_history**](docs/AccountingApi.md#create_item_history) | **PUT** /Items/{ItemID}/History | Allows you to create a history record for items
|
120
|
-
*XeroRuby::AccountingApi* | [**create_items**](docs/AccountingApi.md#create_items) | **PUT** /Items
|
114
|
+
*XeroRuby::AccountingApi* | [**create_items**](docs/AccountingApi.md#create_items) | **PUT** /Items | Allows you to create one or more items
|
121
115
|
*XeroRuby::AccountingApi* | [**create_linked_transaction**](docs/AccountingApi.md#create_linked_transaction) | **PUT** /LinkedTransactions | Allows you to create linked transactions (billable expenses)
|
122
|
-
*XeroRuby::AccountingApi* | [**create_linked_transactions**](docs/AccountingApi.md#create_linked_transactions) | **PUT** /LinkedTransactions#bulk | Allows you to create linked transactions (billable expenses)
|
123
|
-
*XeroRuby::AccountingApi* | [**create_manual_journal**](docs/AccountingApi.md#create_manual_journal) | **PUT** /ManualJournals | Allows you to create a manual journal
|
124
116
|
*XeroRuby::AccountingApi* | [**create_manual_journal_attachment_by_file_name**](docs/AccountingApi.md#create_manual_journal_attachment_by_file_name) | **PUT** /ManualJournals/{ManualJournalID}/Attachments/{FileName} | Allows you to create a specified Attachment on ManualJournal by file name
|
125
|
-
*XeroRuby::AccountingApi* | [**create_manual_journals**](docs/AccountingApi.md#create_manual_journals) | **PUT** /ManualJournals
|
126
|
-
*XeroRuby::AccountingApi* | [**
|
127
|
-
*XeroRuby::AccountingApi* | [**create_overpayment_allocations**](docs/AccountingApi.md#create_overpayment_allocations) | **PUT** /Overpayments/{OverpaymentID}/Allocations#bulk | Allows you to retrieve Allocations for overpayments
|
117
|
+
*XeroRuby::AccountingApi* | [**create_manual_journals**](docs/AccountingApi.md#create_manual_journals) | **PUT** /ManualJournals | Allows you to create one or more manual journals
|
118
|
+
*XeroRuby::AccountingApi* | [**create_overpayment_allocations**](docs/AccountingApi.md#create_overpayment_allocations) | **PUT** /Overpayments/{OverpaymentID}/Allocations | Allows you to create a single allocation for an overpayment
|
128
119
|
*XeroRuby::AccountingApi* | [**create_overpayment_history**](docs/AccountingApi.md#create_overpayment_history) | **PUT** /Overpayments/{OverpaymentID}/History | Allows you to create history records of an Overpayment
|
129
|
-
*XeroRuby::AccountingApi* | [**create_payment**](docs/AccountingApi.md#create_payment) | **
|
120
|
+
*XeroRuby::AccountingApi* | [**create_payment**](docs/AccountingApi.md#create_payment) | **POST** /Payments | Allows you to create a single payment for invoices or credit notes
|
130
121
|
*XeroRuby::AccountingApi* | [**create_payment_history**](docs/AccountingApi.md#create_payment_history) | **PUT** /Payments/{PaymentID}/History | Allows you to create a history record for a payment
|
131
122
|
*XeroRuby::AccountingApi* | [**create_payment_service**](docs/AccountingApi.md#create_payment_service) | **PUT** /PaymentServices | Allows you to create payment services
|
132
|
-
*XeroRuby::AccountingApi* | [**create_payments**](docs/AccountingApi.md#create_payments) | **PUT** /Payments
|
133
|
-
*XeroRuby::AccountingApi* | [**
|
123
|
+
*XeroRuby::AccountingApi* | [**create_payments**](docs/AccountingApi.md#create_payments) | **PUT** /Payments | Allows you to create multiple payments for invoices or credit notes
|
124
|
+
*XeroRuby::AccountingApi* | [**create_prepayment_allocations**](docs/AccountingApi.md#create_prepayment_allocations) | **PUT** /Prepayments/{PrepaymentID}/Allocations | Allows you to create an Allocation for prepayments
|
134
125
|
*XeroRuby::AccountingApi* | [**create_prepayment_history**](docs/AccountingApi.md#create_prepayment_history) | **PUT** /Prepayments/{PrepaymentID}/History | Allows you to create a history record for an Prepayment
|
135
|
-
*XeroRuby::AccountingApi* | [**create_purchase_order**](docs/AccountingApi.md#create_purchase_order) | **PUT** /PurchaseOrders | Allows you to create purchase orders
|
136
126
|
*XeroRuby::AccountingApi* | [**create_purchase_order_history**](docs/AccountingApi.md#create_purchase_order_history) | **PUT** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to create HistoryRecord for purchase orders
|
137
|
-
*XeroRuby::AccountingApi* | [**create_purchase_orders**](docs/AccountingApi.md#create_purchase_orders) | **PUT** /PurchaseOrders
|
127
|
+
*XeroRuby::AccountingApi* | [**create_purchase_orders**](docs/AccountingApi.md#create_purchase_orders) | **PUT** /PurchaseOrders | Allows you to create one or more purchase orders
|
128
|
+
*XeroRuby::AccountingApi* | [**create_quote_history**](docs/AccountingApi.md#create_quote_history) | **PUT** /Quotes/{QuoteID}/History | Allows you to retrieve a history records of an quote
|
129
|
+
*XeroRuby::AccountingApi* | [**create_quotes**](docs/AccountingApi.md#create_quotes) | **PUT** /Quotes | Allows you to create one or more quotes
|
138
130
|
*XeroRuby::AccountingApi* | [**create_receipt**](docs/AccountingApi.md#create_receipt) | **PUT** /Receipts | Allows you to create draft expense claim receipts for any user
|
139
131
|
*XeroRuby::AccountingApi* | [**create_receipt_attachment_by_file_name**](docs/AccountingApi.md#create_receipt_attachment_by_file_name) | **PUT** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to create Attachment on expense claim receipts by file name
|
140
132
|
*XeroRuby::AccountingApi* | [**create_receipt_history**](docs/AccountingApi.md#create_receipt_history) | **PUT** /Receipts/{ReceiptID}/History | Allows you to retrieve a history records of an Receipt
|
141
133
|
*XeroRuby::AccountingApi* | [**create_repeating_invoice_attachment_by_file_name**](docs/AccountingApi.md#create_repeating_invoice_attachment_by_file_name) | **PUT** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} | Allows you to create attachment on repeating invoices by file name
|
142
134
|
*XeroRuby::AccountingApi* | [**create_repeating_invoice_history**](docs/AccountingApi.md#create_repeating_invoice_history) | **PUT** /RepeatingInvoices/{RepeatingInvoiceID}/History | Allows you to create history for a repeating invoice
|
143
|
-
*XeroRuby::AccountingApi* | [**
|
144
|
-
*XeroRuby::AccountingApi* | [**create_tax_rates**](docs/AccountingApi.md#create_tax_rates) | **PUT** /TaxRates#bulk | Allows you to create Tax Rates
|
135
|
+
*XeroRuby::AccountingApi* | [**create_tax_rates**](docs/AccountingApi.md#create_tax_rates) | **PUT** /TaxRates | Allows you to create one or more Tax Rates
|
145
136
|
*XeroRuby::AccountingApi* | [**create_tracking_category**](docs/AccountingApi.md#create_tracking_category) | **PUT** /TrackingCategories | Allows you to create tracking categories
|
146
137
|
*XeroRuby::AccountingApi* | [**create_tracking_options**](docs/AccountingApi.md#create_tracking_options) | **PUT** /TrackingCategories/{TrackingCategoryID}/Options | Allows you to create options for a specified tracking category
|
147
138
|
*XeroRuby::AccountingApi* | [**delete_account**](docs/AccountingApi.md#delete_account) | **DELETE** /Accounts/{AccountID} | Allows you to delete a chart of accounts
|
@@ -233,6 +224,9 @@ Class | Method | HTTP request | Description
|
|
233
224
|
*XeroRuby::AccountingApi* | [**get_purchase_order**](docs/AccountingApi.md#get_purchase_order) | **GET** /PurchaseOrders/{PurchaseOrderID} | Allows you to retrieve a specified purchase orders
|
234
225
|
*XeroRuby::AccountingApi* | [**get_purchase_order_history**](docs/AccountingApi.md#get_purchase_order_history) | **GET** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to retrieve history for PurchaseOrder
|
235
226
|
*XeroRuby::AccountingApi* | [**get_purchase_orders**](docs/AccountingApi.md#get_purchase_orders) | **GET** /PurchaseOrders | Allows you to retrieve purchase orders
|
227
|
+
*XeroRuby::AccountingApi* | [**get_quote**](docs/AccountingApi.md#get_quote) | **GET** /Quotes/{QuoteID} | Allows you to retrieve a specified quote
|
228
|
+
*XeroRuby::AccountingApi* | [**get_quote_history**](docs/AccountingApi.md#get_quote_history) | **GET** /Quotes/{QuoteID}/History | Allows you to retrieve a history records of an quote
|
229
|
+
*XeroRuby::AccountingApi* | [**get_quotes**](docs/AccountingApi.md#get_quotes) | **GET** /Quotes | Allows you to retrieve any sales quotes
|
236
230
|
*XeroRuby::AccountingApi* | [**get_receipt**](docs/AccountingApi.md#get_receipt) | **GET** /Receipts/{ReceiptID} | Allows you to retrieve a specified draft expense claim receipts
|
237
231
|
*XeroRuby::AccountingApi* | [**get_receipt_attachment_by_file_name**](docs/AccountingApi.md#get_receipt_attachment_by_file_name) | **GET** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to retrieve Attachments on expense claim receipts by file name
|
238
232
|
*XeroRuby::AccountingApi* | [**get_receipt_attachment_by_id**](docs/AccountingApi.md#get_receipt_attachment_by_id) | **GET** /Receipts/{ReceiptID}/Attachments/{AttachmentID} | Allows you to retrieve Attachments on expense claim receipts by ID
|
@@ -275,11 +269,21 @@ Class | Method | HTTP request | Description
|
|
275
269
|
*XeroRuby::AccountingApi* | [**update_expense_claim**](docs/AccountingApi.md#update_expense_claim) | **POST** /ExpenseClaims/{ExpenseClaimID} | Allows you to update specified expense claims
|
276
270
|
*XeroRuby::AccountingApi* | [**update_invoice**](docs/AccountingApi.md#update_invoice) | **POST** /Invoices/{InvoiceID} | Allows you to update a specified sales invoices or purchase bills
|
277
271
|
*XeroRuby::AccountingApi* | [**update_invoice_attachment_by_file_name**](docs/AccountingApi.md#update_invoice_attachment_by_file_name) | **POST** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to update Attachment on invoices or purchase bills by it's filename
|
278
|
-
*XeroRuby::AccountingApi* | [**update_item**](docs/AccountingApi.md#update_item) | **POST** /Items/{ItemID} | Allows you to
|
272
|
+
*XeroRuby::AccountingApi* | [**update_item**](docs/AccountingApi.md#update_item) | **POST** /Items/{ItemID} | Allows you to update a specified item
|
279
273
|
*XeroRuby::AccountingApi* | [**update_linked_transaction**](docs/AccountingApi.md#update_linked_transaction) | **POST** /LinkedTransactions/{LinkedTransactionID} | Allows you to update a specified linked transactions (billable expenses)
|
280
274
|
*XeroRuby::AccountingApi* | [**update_manual_journal**](docs/AccountingApi.md#update_manual_journal) | **POST** /ManualJournals/{ManualJournalID} | Allows you to update a specified manual journal
|
281
275
|
*XeroRuby::AccountingApi* | [**update_manual_journal_attachment_by_file_name**](docs/AccountingApi.md#update_manual_journal_attachment_by_file_name) | **POST** /ManualJournals/{ManualJournalID}/Attachments/{FileName} | Allows you to update a specified Attachment on ManualJournal by file name
|
276
|
+
*XeroRuby::AccountingApi* | [**update_or_create_bank_transactions**](docs/AccountingApi.md#update_or_create_bank_transactions) | **POST** /BankTransactions | Allows you to update or create one or more spend or receive money transaction
|
277
|
+
*XeroRuby::AccountingApi* | [**update_or_create_contacts**](docs/AccountingApi.md#update_or_create_contacts) | **POST** /Contacts | Allows you to update OR create one or more contacts in a Xero organisation
|
278
|
+
*XeroRuby::AccountingApi* | [**update_or_create_credit_notes**](docs/AccountingApi.md#update_or_create_credit_notes) | **POST** /CreditNotes | Allows you to update OR create one or more credit notes
|
279
|
+
*XeroRuby::AccountingApi* | [**update_or_create_employees**](docs/AccountingApi.md#update_or_create_employees) | **POST** /Employees | Allows you to create a single new employees used in Xero payrun
|
280
|
+
*XeroRuby::AccountingApi* | [**update_or_create_invoices**](docs/AccountingApi.md#update_or_create_invoices) | **POST** /Invoices | Allows you to update OR create one or more sales invoices or purchase bills
|
281
|
+
*XeroRuby::AccountingApi* | [**update_or_create_items**](docs/AccountingApi.md#update_or_create_items) | **POST** /Items | Allows you to update or create one or more items
|
282
|
+
*XeroRuby::AccountingApi* | [**update_or_create_manual_journals**](docs/AccountingApi.md#update_or_create_manual_journals) | **POST** /ManualJournals | Allows you to create a single manual journal
|
283
|
+
*XeroRuby::AccountingApi* | [**update_or_create_purchase_orders**](docs/AccountingApi.md#update_or_create_purchase_orders) | **POST** /PurchaseOrders | Allows you to update or create one or more purchase orders
|
284
|
+
*XeroRuby::AccountingApi* | [**update_or_create_quotes**](docs/AccountingApi.md#update_or_create_quotes) | **POST** /Quotes | Allows you to update OR create one or more quotes
|
282
285
|
*XeroRuby::AccountingApi* | [**update_purchase_order**](docs/AccountingApi.md#update_purchase_order) | **POST** /PurchaseOrders/{PurchaseOrderID} | Allows you to update a specified purchase order
|
286
|
+
*XeroRuby::AccountingApi* | [**update_quote**](docs/AccountingApi.md#update_quote) | **POST** /Quotes/{QuoteID} | Allows you to update a specified quote
|
283
287
|
*XeroRuby::AccountingApi* | [**update_receipt**](docs/AccountingApi.md#update_receipt) | **POST** /Receipts/{ReceiptID} | Allows you to retrieve a specified draft expense claim receipts
|
284
288
|
*XeroRuby::AccountingApi* | [**update_receipt_attachment_by_file_name**](docs/AccountingApi.md#update_receipt_attachment_by_file_name) | **POST** /Receipts/{ReceiptID}/Attachments/{FileName} | Allows you to update Attachment on expense claim receipts by file name
|
285
289
|
*XeroRuby::AccountingApi* | [**update_repeating_invoice_attachment_by_file_name**](docs/AccountingApi.md#update_repeating_invoice_attachment_by_file_name) | **POST** /RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName} | Allows you to update specified attachment on repeating invoices by file name
|
@@ -369,6 +373,10 @@ Class | Method | HTTP request | Description
|
|
369
373
|
- [XeroRuby::Purchase](docs/Purchase.md)
|
370
374
|
- [XeroRuby::PurchaseOrder](docs/PurchaseOrder.md)
|
371
375
|
- [XeroRuby::PurchaseOrders](docs/PurchaseOrders.md)
|
376
|
+
- [XeroRuby::Quote](docs/Quote.md)
|
377
|
+
- [XeroRuby::QuoteLineAmountTypes](docs/QuoteLineAmountTypes.md)
|
378
|
+
- [XeroRuby::QuoteStatusCodes](docs/QuoteStatusCodes.md)
|
379
|
+
- [XeroRuby::Quotes](docs/Quotes.md)
|
372
380
|
- [XeroRuby::Receipt](docs/Receipt.md)
|
373
381
|
- [XeroRuby::Receipts](docs/Receipts.md)
|
374
382
|
- [XeroRuby::RepeatingInvoice](docs/RepeatingInvoice.md)
|
@@ -424,7 +432,8 @@ Class | Method | HTTP request | Description
|
|
424
432
|
- accounting.contacts.read: Grant read-only access to contacts and contact groups
|
425
433
|
- accounting.attachments: Grant read-write access to attachments
|
426
434
|
- accounting.attachments.read: Grant read-only access to attachments
|
427
|
-
- assets
|
435
|
+
- assets: Grant read-write access to assets
|
436
|
+
- assets.read: Grant read-only access to fixed assets
|
428
437
|
- bankfeeds: Grant read-write access to bankfeeds
|
429
438
|
- files: Grant read-write access to files and folders
|
430
439
|
- files.read: Grant read-only access to files and folders
|
data/docs/Account.md
CHANGED
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
|
|
22
22
|
**reporting_code_name** | **String** | Shown if set | [optional]
|
23
23
|
**has_attachments** | **Boolean** | boolean to indicate if an account has an attachment (read only) | [optional]
|
24
24
|
**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
|
25
|
+
**add_to_watchlist** | **Boolean** | Boolean – describes whether the account is shown in the watchlist widget on the dashboard | [optional]
|
25
26
|
**validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
|
26
27
|
|
27
28
|
## Code Sample
|
@@ -31,7 +32,7 @@ require 'XeroRuby'
|
|
31
32
|
|
32
33
|
instance = XeroRuby::Account.new(code: 4400,
|
33
34
|
name: Food Sales,
|
34
|
-
account_id:
|
35
|
+
account_id: 00000000-0000-0000-0000-000000000000,
|
35
36
|
type: null,
|
36
37
|
bank_account_number: null,
|
37
38
|
status: null,
|
@@ -47,6 +48,7 @@ instance = XeroRuby::Account.new(code: 4400,
|
|
47
48
|
reporting_code_name: null,
|
48
49
|
has_attachments: null,
|
49
50
|
updated_date_utc: null,
|
51
|
+
add_to_watchlist: null,
|
50
52
|
validation_errors: null)
|
51
53
|
```
|
52
54
|
|