xero-ruby 0.1.1
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 +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +79 -0
- data/README.md +454 -0
- data/Rakefile +10 -0
- data/docs/Account.md +53 -0
- data/docs/AccountType.md +16 -0
- data/docs/AccountingApi.md +11269 -0
- data/docs/Accounts.md +17 -0
- data/docs/AccountsPayable.md +19 -0
- data/docs/AccountsReceivable.md +19 -0
- data/docs/Address.md +35 -0
- data/docs/Allocation.md +21 -0
- data/docs/Allocations.md +17 -0
- data/docs/Attachment.md +27 -0
- data/docs/Attachments.md +17 -0
- data/docs/Balances.md +19 -0
- data/docs/BankTransaction.md +59 -0
- data/docs/BankTransactions.md +17 -0
- data/docs/BankTransfer.md +37 -0
- data/docs/BankTransfers.md +17 -0
- data/docs/BatchPayment.md +47 -0
- data/docs/BatchPaymentDetails.md +25 -0
- data/docs/BatchPayments.md +17 -0
- data/docs/Bill.md +19 -0
- data/docs/BrandingTheme.md +23 -0
- data/docs/BrandingThemes.md +17 -0
- data/docs/CISOrgSetting.md +21 -0
- data/docs/CISSetting.md +19 -0
- data/docs/CISSettings.md +17 -0
- data/docs/Contact.md +91 -0
- data/docs/ContactGroup.md +23 -0
- data/docs/ContactGroups.md +17 -0
- data/docs/ContactPerson.md +23 -0
- data/docs/Contacts.md +17 -0
- data/docs/CountryCode.md +16 -0
- data/docs/CreditNote.md +61 -0
- data/docs/CreditNotes.md +17 -0
- data/docs/Currencies.md +17 -0
- data/docs/Currency.md +19 -0
- data/docs/CurrencyCode.md +16 -0
- data/docs/Element.md +17 -0
- data/docs/Employee.md +27 -0
- data/docs/Employees.md +17 -0
- data/docs/Error.md +23 -0
- data/docs/ExpenseClaim.md +39 -0
- data/docs/ExpenseClaims.md +17 -0
- data/docs/ExternalLink.md +21 -0
- data/docs/HistoryRecord.md +23 -0
- data/docs/HistoryRecords.md +17 -0
- data/docs/Invoice.md +89 -0
- data/docs/InvoiceReminder.md +17 -0
- data/docs/InvoiceReminders.md +17 -0
- data/docs/Invoices.md +17 -0
- data/docs/Item.md +45 -0
- data/docs/Items.md +17 -0
- data/docs/Journal.md +31 -0
- data/docs/JournalLine.md +39 -0
- data/docs/Journals.md +17 -0
- data/docs/LineAmountTypes.md +16 -0
- data/docs/LineItem.md +41 -0
- data/docs/LineItemTracking.md +21 -0
- data/docs/LinkedTransaction.md +37 -0
- data/docs/LinkedTransactions.md +17 -0
- data/docs/ManualJournal.md +41 -0
- data/docs/ManualJournalLine.md +29 -0
- data/docs/ManualJournals.md +17 -0
- data/docs/OnlineInvoice.md +17 -0
- data/docs/OnlineInvoices.md +17 -0
- data/docs/Organisation.md +79 -0
- data/docs/Organisations.md +17 -0
- data/docs/Overpayment.md +51 -0
- data/docs/Overpayments.md +17 -0
- data/docs/Payment.md +61 -0
- data/docs/PaymentService.md +27 -0
- data/docs/PaymentServices.md +17 -0
- data/docs/PaymentTerm.md +19 -0
- data/docs/PaymentTermType.md +16 -0
- data/docs/Payments.md +17 -0
- data/docs/Phone.md +23 -0
- data/docs/Prepayment.md +49 -0
- data/docs/Prepayments.md +17 -0
- data/docs/Purchase.md +23 -0
- data/docs/PurchaseOrder.md +71 -0
- data/docs/PurchaseOrders.md +17 -0
- data/docs/Receipt.md +49 -0
- data/docs/Receipts.md +17 -0
- data/docs/RepeatingInvoice.md +47 -0
- data/docs/RepeatingInvoices.md +17 -0
- data/docs/Report.md +29 -0
- data/docs/ReportAttribute.md +19 -0
- data/docs/ReportCell.md +19 -0
- data/docs/ReportFields.md +21 -0
- data/docs/ReportRow.md +21 -0
- data/docs/ReportRows.md +23 -0
- data/docs/ReportWithRow.md +33 -0
- data/docs/ReportWithRows.md +17 -0
- data/docs/Reports.md +17 -0
- data/docs/RequestEmpty.md +17 -0
- data/docs/RowType.md +16 -0
- data/docs/SalesTrackingCategory.md +19 -0
- data/docs/Schedule.md +29 -0
- data/docs/TaxComponent.md +23 -0
- data/docs/TaxRate.md +39 -0
- data/docs/TaxRates.md +17 -0
- data/docs/TaxType.md +16 -0
- data/docs/TenNinteyNineContact.md +59 -0
- data/docs/TimeZone.md +16 -0
- data/docs/TrackingCategories.md +17 -0
- data/docs/TrackingCategory.md +27 -0
- data/docs/TrackingOption.md +23 -0
- data/docs/TrackingOptions.md +17 -0
- data/docs/User.md +29 -0
- data/docs/Users.md +17 -0
- data/docs/ValidationError.md +17 -0
- data/git_push.sh +55 -0
- data/lib/.DS_Store +0 -0
- data/lib/xero-ruby.rb +149 -0
- data/lib/xero-ruby/api/accounting_api.rb +14686 -0
- data/lib/xero-ruby/api_client.rb +386 -0
- data/lib/xero-ruby/api_error.rb +57 -0
- data/lib/xero-ruby/configuration.rb +252 -0
- data/lib/xero-ruby/models/account.rb +484 -0
- data/lib/xero-ruby/models/account_type.rb +57 -0
- data/lib/xero-ruby/models/accounts.rb +205 -0
- data/lib/xero-ruby/models/accounts_payable.rb +212 -0
- data/lib/xero-ruby/models/accounts_receivable.rb +212 -0
- data/lib/xero-ruby/models/address.rb +463 -0
- data/lib/xero-ruby/models/allocation.rb +238 -0
- data/lib/xero-ruby/models/allocations.rb +205 -0
- data/lib/xero-ruby/models/attachment.rb +254 -0
- data/lib/xero-ruby/models/attachments.rb +205 -0
- data/lib/xero-ruby/models/balances.rb +213 -0
- data/lib/xero-ruby/models/bank_transaction.rb +480 -0
- data/lib/xero-ruby/models/bank_transactions.rb +205 -0
- data/lib/xero-ruby/models/bank_transfer.rb +319 -0
- data/lib/xero-ruby/models/bank_transfers.rb +205 -0
- data/lib/xero-ruby/models/batch_payment.rb +429 -0
- data/lib/xero-ruby/models/batch_payment_details.rb +290 -0
- data/lib/xero-ruby/models/batch_payments.rb +205 -0
- data/lib/xero-ruby/models/bill.rb +213 -0
- data/lib/xero-ruby/models/branding_theme.rb +234 -0
- data/lib/xero-ruby/models/branding_themes.rb +205 -0
- data/lib/xero-ruby/models/cis_org_setting.rb +224 -0
- data/lib/xero-ruby/models/cis_setting.rb +214 -0
- data/lib/xero-ruby/models/cis_settings.rb +205 -0
- data/lib/xero-ruby/models/contact.rb +724 -0
- data/lib/xero-ruby/models/contact_group.rb +270 -0
- data/lib/xero-ruby/models/contact_groups.rb +205 -0
- data/lib/xero-ruby/models/contact_person.rb +234 -0
- data/lib/xero-ruby/models/contacts.rb +205 -0
- data/lib/xero-ruby/models/country_code.rb +275 -0
- data/lib/xero-ruby/models/credit_note.rb +475 -0
- data/lib/xero-ruby/models/credit_notes.rb +205 -0
- data/lib/xero-ruby/models/currencies.rb +205 -0
- data/lib/xero-ruby/models/currency.rb +213 -0
- data/lib/xero-ruby/models/currency_code.rb +197 -0
- data/lib/xero-ruby/models/element.rb +206 -0
- data/lib/xero-ruby/models/employee.rb +316 -0
- data/lib/xero-ruby/models/employees.rb +205 -0
- data/lib/xero-ruby/models/error.rb +236 -0
- data/lib/xero-ruby/models/expense_claim.rb +350 -0
- data/lib/xero-ruby/models/expense_claims.rb +205 -0
- data/lib/xero-ruby/models/external_link.rb +257 -0
- data/lib/xero-ruby/models/history_record.rb +234 -0
- data/lib/xero-ruby/models/history_records.rb +205 -0
- data/lib/xero-ruby/models/invoice.rb +666 -0
- data/lib/xero-ruby/models/invoice_reminder.rb +204 -0
- data/lib/xero-ruby/models/invoice_reminders.rb +205 -0
- data/lib/xero-ruby/models/invoices.rb +205 -0
- data/lib/xero-ruby/models/item.rb +418 -0
- data/lib/xero-ruby/models/items.rb +205 -0
- data/lib/xero-ruby/models/journal.rb +310 -0
- data/lib/xero-ruby/models/journal_line.rb +315 -0
- data/lib/xero-ruby/models/journals.rb +205 -0
- data/lib/xero-ruby/models/line_amount_types.rb +38 -0
- data/lib/xero-ruby/models/line_item.rb +326 -0
- data/lib/xero-ruby/models/line_item_tracking.rb +239 -0
- data/lib/xero-ruby/models/linked_transaction.rb +369 -0
- data/lib/xero-ruby/models/linked_transactions.rb +205 -0
- data/lib/xero-ruby/models/manual_journal.rb +375 -0
- data/lib/xero-ruby/models/manual_journal_line.rb +266 -0
- data/lib/xero-ruby/models/manual_journals.rb +205 -0
- data/lib/xero-ruby/models/online_invoice.rb +204 -0
- data/lib/xero-ruby/models/online_invoices.rb +205 -0
- data/lib/xero-ruby/models/organisation.rb +622 -0
- data/lib/xero-ruby/models/organisations.rb +205 -0
- data/lib/xero-ruby/models/overpayment.rb +425 -0
- data/lib/xero-ruby/models/overpayments.rb +205 -0
- data/lib/xero-ruby/models/payment.rb +467 -0
- data/lib/xero-ruby/models/payment_service.rb +256 -0
- data/lib/xero-ruby/models/payment_services.rb +205 -0
- data/lib/xero-ruby/models/payment_term.rb +212 -0
- data/lib/xero-ruby/models/payment_term_type.rb +39 -0
- data/lib/xero-ruby/models/payments.rb +205 -0
- data/lib/xero-ruby/models/phone.rb +312 -0
- data/lib/xero-ruby/models/prepayment.rb +413 -0
- data/lib/xero-ruby/models/prepayments.rb +205 -0
- data/lib/xero-ruby/models/purchase.rb +234 -0
- data/lib/xero-ruby/models/purchase_order.rb +523 -0
- data/lib/xero-ruby/models/purchase_orders.rb +205 -0
- data/lib/xero-ruby/models/receipt.rb +420 -0
- data/lib/xero-ruby/models/receipts.rb +205 -0
- data/lib/xero-ruby/models/repeating_invoice.rb +400 -0
- data/lib/xero-ruby/models/repeating_invoices.rb +205 -0
- data/lib/xero-ruby/models/report.rb +299 -0
- data/lib/xero-ruby/models/report_attribute.rb +212 -0
- data/lib/xero-ruby/models/report_cell.rb +214 -0
- data/lib/xero-ruby/models/report_fields.rb +221 -0
- data/lib/xero-ruby/models/report_row.rb +223 -0
- data/lib/xero-ruby/models/report_rows.rb +234 -0
- data/lib/xero-ruby/models/report_with_row.rb +288 -0
- data/lib/xero-ruby/models/report_with_rows.rb +205 -0
- data/lib/xero-ruby/models/reports.rb +205 -0
- data/lib/xero-ruby/models/request_empty.rb +204 -0
- data/lib/xero-ruby/models/row_type.rb +39 -0
- data/lib/xero-ruby/models/sales_tracking_category.rb +214 -0
- data/lib/xero-ruby/models/schedule.rb +310 -0
- data/lib/xero-ruby/models/tax_component.rb +234 -0
- data/lib/xero-ruby/models/tax_rate.rb +367 -0
- data/lib/xero-ruby/models/tax_rates.rb +205 -0
- data/lib/xero-ruby/models/tax_type.rb +87 -0
- data/lib/xero-ruby/models/ten_nintey_nine_contact.rb +414 -0
- data/lib/xero-ruby/models/time_zone.rb +142 -0
- data/lib/xero-ruby/models/tracking_categories.rb +205 -0
- data/lib/xero-ruby/models/tracking_category.rb +320 -0
- data/lib/xero-ruby/models/tracking_option.rb +283 -0
- data/lib/xero-ruby/models/tracking_options.rb +205 -0
- data/lib/xero-ruby/models/user.rb +298 -0
- data/lib/xero-ruby/models/users.rb +205 -0
- data/lib/xero-ruby/models/validation_error.rb +204 -0
- data/lib/xero-ruby/version.rb +15 -0
- data/pkg/xero-ruby-0.1.0.gem +0 -0
- data/pkg/xero-ruby-1.0.0.gem +0 -0
- data/spec/api/accounting_api_spec.rb +2322 -0
- data/spec/api_client_spec.rb +226 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/account_spec.rb +165 -0
- data/spec/models/account_type_spec.rb +35 -0
- data/spec/models/accounts_payable_spec.rb +47 -0
- data/spec/models/accounts_receivable_spec.rb +47 -0
- data/spec/models/accounts_spec.rb +41 -0
- data/spec/models/address_spec.rb +99 -0
- data/spec/models/allocation_spec.rb +53 -0
- data/spec/models/allocations_spec.rb +41 -0
- data/spec/models/attachment_spec.rb +71 -0
- data/spec/models/attachments_spec.rb +41 -0
- data/spec/models/balances_spec.rb +47 -0
- data/spec/models/bank_transaction_spec.rb +175 -0
- data/spec/models/bank_transactions_spec.rb +41 -0
- data/spec/models/bank_transfer_spec.rb +101 -0
- data/spec/models/bank_transfers_spec.rb +41 -0
- data/spec/models/batch_payment_details_spec.rb +65 -0
- data/spec/models/batch_payment_spec.rb +131 -0
- data/spec/models/batch_payments_spec.rb +41 -0
- data/spec/models/bill_spec.rb +47 -0
- data/spec/models/branding_theme_spec.rb +59 -0
- data/spec/models/branding_themes_spec.rb +41 -0
- data/spec/models/cis_org_setting_spec.rb +53 -0
- data/spec/models/cis_setting_spec.rb +47 -0
- data/spec/models/cis_settings_spec.rb +41 -0
- data/spec/models/contact_group_spec.rb +63 -0
- data/spec/models/contact_groups_spec.rb +41 -0
- data/spec/models/contact_person_spec.rb +59 -0
- data/spec/models/contact_spec.rb +267 -0
- data/spec/models/contacts_spec.rb +41 -0
- data/spec/models/country_code_spec.rb +35 -0
- data/spec/models/credit_note_spec.rb +181 -0
- data/spec/models/credit_notes_spec.rb +41 -0
- data/spec/models/currencies_spec.rb +41 -0
- data/spec/models/currency_code_spec.rb +35 -0
- data/spec/models/currency_spec.rb +47 -0
- data/spec/models/element_spec.rb +41 -0
- data/spec/models/employee_spec.rb +75 -0
- data/spec/models/employees_spec.rb +41 -0
- data/spec/models/error_spec.rb +59 -0
- data/spec/models/expense_claim_spec.rb +111 -0
- data/spec/models/expense_claims_spec.rb +41 -0
- data/spec/models/external_link_spec.rb +57 -0
- data/spec/models/history_record_spec.rb +59 -0
- data/spec/models/history_records_spec.rb +41 -0
- data/spec/models/invoice_reminder_spec.rb +41 -0
- data/spec/models/invoice_reminders_spec.rb +41 -0
- data/spec/models/invoice_spec.rb +259 -0
- data/spec/models/invoices_spec.rb +41 -0
- data/spec/models/item_spec.rb +125 -0
- data/spec/models/items_spec.rb +41 -0
- data/spec/models/journal_line_spec.rb +107 -0
- data/spec/models/journal_spec.rb +87 -0
- data/spec/models/journals_spec.rb +41 -0
- data/spec/models/line_amount_types_spec.rb +35 -0
- data/spec/models/line_item_spec.rb +107 -0
- data/spec/models/line_item_tracking_spec.rb +53 -0
- data/spec/models/linked_transaction_spec.rb +113 -0
- data/spec/models/linked_transactions_spec.rb +41 -0
- data/spec/models/manual_journal_line_spec.rb +77 -0
- data/spec/models/manual_journal_spec.rb +117 -0
- data/spec/models/manual_journals_spec.rb +41 -0
- data/spec/models/online_invoice_spec.rb +41 -0
- data/spec/models/online_invoices_spec.rb +41 -0
- data/spec/models/organisation_spec.rb +255 -0
- data/spec/models/organisations_spec.rb +41 -0
- data/spec/models/overpayment_spec.rb +151 -0
- data/spec/models/overpayments_spec.rb +41 -0
- data/spec/models/payment_service_spec.rb +71 -0
- data/spec/models/payment_services_spec.rb +41 -0
- data/spec/models/payment_spec.rb +181 -0
- data/spec/models/payment_term_spec.rb +47 -0
- data/spec/models/payment_term_type_spec.rb +35 -0
- data/spec/models/payments_spec.rb +41 -0
- data/spec/models/phone_spec.rb +63 -0
- data/spec/models/prepayment_spec.rb +145 -0
- data/spec/models/prepayments_spec.rb +41 -0
- data/spec/models/purchase_order_spec.rb +207 -0
- data/spec/models/purchase_orders_spec.rb +41 -0
- data/spec/models/purchase_spec.rb +59 -0
- data/spec/models/receipt_spec.rb +141 -0
- data/spec/models/receipts_spec.rb +41 -0
- data/spec/models/repeating_invoice_spec.rb +139 -0
- data/spec/models/repeating_invoices_spec.rb +41 -0
- data/spec/models/report_attribute_spec.rb +47 -0
- data/spec/models/report_cell_spec.rb +47 -0
- data/spec/models/report_fields_spec.rb +53 -0
- data/spec/models/report_row_spec.rb +53 -0
- data/spec/models/report_rows_spec.rb +59 -0
- data/spec/models/report_spec.rb +81 -0
- data/spec/models/report_with_row_spec.rb +89 -0
- data/spec/models/report_with_rows_spec.rb +41 -0
- data/spec/models/reports_spec.rb +41 -0
- data/spec/models/request_empty_spec.rb +41 -0
- data/spec/models/row_type_spec.rb +35 -0
- data/spec/models/sales_tracking_category_spec.rb +47 -0
- data/spec/models/schedule_spec.rb +85 -0
- data/spec/models/tax_component_spec.rb +59 -0
- data/spec/models/tax_rate_spec.rb +115 -0
- data/spec/models/tax_rates_spec.rb +41 -0
- data/spec/models/tax_type_spec.rb +35 -0
- data/spec/models/ten_nintey_nine_contact_spec.rb +167 -0
- data/spec/models/time_zone_spec.rb +35 -0
- data/spec/models/tracking_categories_spec.rb +41 -0
- data/spec/models/tracking_category_spec.rb +75 -0
- data/spec/models/tracking_option_spec.rb +63 -0
- data/spec/models/tracking_options_spec.rb +41 -0
- data/spec/models/user_spec.rb +81 -0
- data/spec/models/users_spec.rb +41 -0
- data/spec/models/validation_error_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- data/xero-ruby.gemspec +39 -0
- metadata +563 -0
data/docs/Payment.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# XeroRuby::Payment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**invoice** | [**Invoice**](Invoice.md) | | [optional]
|
8
|
+
**credit_note** | [**CreditNote**](CreditNote.md) | | [optional]
|
9
|
+
**prepayment** | [**Prepayment**](Prepayment.md) | | [optional]
|
10
|
+
**overpayment** | [**Overpayment**](Overpayment.md) | | [optional]
|
11
|
+
**invoice_number** | **String** | Number of invoice or credit note you are applying payment to e.g.INV-4003 | [optional]
|
12
|
+
**credit_note_number** | **String** | Number of invoice or credit note you are applying payment to e.g. INV-4003 | [optional]
|
13
|
+
**account** | [**Account**](Account.md) | | [optional]
|
14
|
+
**code** | **String** | Code of account you are using to make the payment e.g. 001 (note- not all accounts have a code value) | [optional]
|
15
|
+
**date** | **Date** | Date the payment is being made (YYYY-MM-DD) e.g. 2009-09-06 | [optional]
|
16
|
+
**currency_rate** | **Float** | Exchange rate when payment is received. Only used for non base currency invoices and credit notes e.g. 0.7500 | [optional]
|
17
|
+
**amount** | **Float** | The amount of the payment. Must be less than or equal to the outstanding amount owing on the invoice e.g. 200.00 | [optional]
|
18
|
+
**reference** | **String** | An optional description for the payment e.g. Direct Debit | [optional]
|
19
|
+
**is_reconciled** | **Boolean** | An optional parameter for the payment. A boolean indicating whether you would like the payment to be created as reconciled when using PUT, or whether a payment has been reconciled when using GET | [optional]
|
20
|
+
**status** | **String** | The status of the payment. | [optional]
|
21
|
+
**payment_type** | **String** | See Payment Types. | [optional]
|
22
|
+
**updated_date_utc** | **DateTime** | UTC timestamp of last update to the payment | [optional]
|
23
|
+
**payment_id** | **String** | The Xero identifier for an Payment e.g. 297c2dc5-cc47-4afd-8ec8-74990b8761e9 | [optional]
|
24
|
+
**bank_account_number** | **String** | The suppliers bank account number the payment is being made to | [optional]
|
25
|
+
**particulars** | **String** | The suppliers bank account number the payment is being made to | [optional]
|
26
|
+
**details** | **String** | The information to appear on the supplier's bank account | [optional]
|
27
|
+
**has_account** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional]
|
28
|
+
**has_validation_errors** | **Boolean** | A boolean to indicate if a contact has an validation errors | [optional]
|
29
|
+
**validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
|
30
|
+
|
31
|
+
## Code Sample
|
32
|
+
|
33
|
+
```ruby
|
34
|
+
require 'XeroRuby'
|
35
|
+
|
36
|
+
instance = XeroRuby::Payment.new(invoice: null,
|
37
|
+
credit_note: null,
|
38
|
+
prepayment: null,
|
39
|
+
overpayment: null,
|
40
|
+
invoice_number: null,
|
41
|
+
credit_note_number: null,
|
42
|
+
account: null,
|
43
|
+
code: null,
|
44
|
+
date: null,
|
45
|
+
currency_rate: null,
|
46
|
+
amount: null,
|
47
|
+
reference: null,
|
48
|
+
is_reconciled: null,
|
49
|
+
status: null,
|
50
|
+
payment_type: null,
|
51
|
+
updated_date_utc: null,
|
52
|
+
payment_id: null,
|
53
|
+
bank_account_number: null,
|
54
|
+
particulars: null,
|
55
|
+
details: null,
|
56
|
+
has_account: null,
|
57
|
+
has_validation_errors: null,
|
58
|
+
validation_errors: null)
|
59
|
+
```
|
60
|
+
|
61
|
+
|
@@ -0,0 +1,27 @@
|
|
1
|
+
# XeroRuby::PaymentService
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**payment_service_id** | **String** | Xero identifier | [optional]
|
8
|
+
**payment_service_name** | **String** | Name of payment service | [optional]
|
9
|
+
**payment_service_url** | **String** | The custom payment URL | [optional]
|
10
|
+
**pay_now_text** | **String** | The text displayed on the Pay Now button in Xero Online Invoicing. If this is not set it will default to Pay by credit card | [optional]
|
11
|
+
**payment_service_type** | **String** | This will always be CUSTOM for payment services created via the API. | [optional]
|
12
|
+
**validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
|
13
|
+
|
14
|
+
## Code Sample
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'XeroRuby'
|
18
|
+
|
19
|
+
instance = XeroRuby::PaymentService.new(payment_service_id: null,
|
20
|
+
payment_service_name: null,
|
21
|
+
payment_service_url: null,
|
22
|
+
pay_now_text: null,
|
23
|
+
payment_service_type: null,
|
24
|
+
validation_errors: null)
|
25
|
+
```
|
26
|
+
|
27
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# XeroRuby::PaymentServices
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**payment_services** | [**Array<PaymentService>**](PaymentService.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'XeroRuby'
|
13
|
+
|
14
|
+
instance = XeroRuby::PaymentServices.new(payment_services: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/PaymentTerm.md
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# XeroRuby::PaymentTerm
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**bills** | [**Bill**](Bill.md) | | [optional]
|
8
|
+
**sales** | [**Bill**](Bill.md) | | [optional]
|
9
|
+
|
10
|
+
## Code Sample
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'XeroRuby'
|
14
|
+
|
15
|
+
instance = XeroRuby::PaymentTerm.new(bills: null,
|
16
|
+
sales: null)
|
17
|
+
```
|
18
|
+
|
19
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# XeroRuby::PaymentTermType
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
|
8
|
+
## Code Sample
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'XeroRuby'
|
12
|
+
|
13
|
+
instance = XeroRuby::PaymentTermType.new()
|
14
|
+
```
|
15
|
+
|
16
|
+
|
data/docs/Payments.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# XeroRuby::Payments
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**payments** | [**Array<Payment>**](Payment.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'XeroRuby'
|
13
|
+
|
14
|
+
instance = XeroRuby::Payments.new(payments: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/Phone.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# XeroRuby::Phone
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**phone_type** | **String** | | [optional]
|
8
|
+
**phone_number** | **String** | max length = 50 | [optional]
|
9
|
+
**phone_area_code** | **String** | max length = 10 | [optional]
|
10
|
+
**phone_country_code** | **String** | max length = 20 | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'XeroRuby'
|
16
|
+
|
17
|
+
instance = XeroRuby::Phone.new(phone_type: null,
|
18
|
+
phone_number: null,
|
19
|
+
phone_area_code: null,
|
20
|
+
phone_country_code: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
data/docs/Prepayment.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# XeroRuby::Prepayment
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**type** | **String** | See Prepayment Types | [optional]
|
8
|
+
**contact** | [**Contact**](Contact.md) | | [optional]
|
9
|
+
**date** | **Date** | The date the prepayment is created YYYY-MM-DD | [optional]
|
10
|
+
**status** | **String** | See Prepayment Status Codes | [optional]
|
11
|
+
**line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
|
12
|
+
**line_items** | [**Array<LineItem>**](LineItem.md) | See Prepayment Line Items | [optional]
|
13
|
+
**sub_total** | **Float** | The subtotal of the prepayment excluding taxes | [optional]
|
14
|
+
**total_tax** | **Float** | The total tax on the prepayment | [optional]
|
15
|
+
**total** | **Float** | The total of the prepayment(subtotal + total tax) | [optional]
|
16
|
+
**updated_date_utc** | **DateTime** | UTC timestamp of last update to the prepayment | [optional]
|
17
|
+
**currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
|
18
|
+
**prepayment_id** | **String** | Xero generated unique identifier | [optional]
|
19
|
+
**currency_rate** | **Float** | The currency rate for a multicurrency prepayment. If no rate is specified, the XE.com day rate is used | [optional]
|
20
|
+
**remaining_credit** | **Float** | The remaining credit balance on the prepayment | [optional]
|
21
|
+
**allocations** | [**Array<Allocation>**](Allocation.md) | See Allocations | [optional]
|
22
|
+
**has_attachments** | **Boolean** | boolean to indicate if a prepayment has an attachment | [optional]
|
23
|
+
**attachments** | [**Array<Attachment>**](Attachment.md) | See Attachments | [optional]
|
24
|
+
|
25
|
+
## Code Sample
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'XeroRuby'
|
29
|
+
|
30
|
+
instance = XeroRuby::Prepayment.new(type: null,
|
31
|
+
contact: null,
|
32
|
+
date: null,
|
33
|
+
status: null,
|
34
|
+
line_amount_types: null,
|
35
|
+
line_items: null,
|
36
|
+
sub_total: null,
|
37
|
+
total_tax: null,
|
38
|
+
total: null,
|
39
|
+
updated_date_utc: null,
|
40
|
+
currency_code: null,
|
41
|
+
prepayment_id: null,
|
42
|
+
currency_rate: null,
|
43
|
+
remaining_credit: null,
|
44
|
+
allocations: null,
|
45
|
+
has_attachments: null,
|
46
|
+
attachments: null)
|
47
|
+
```
|
48
|
+
|
49
|
+
|
data/docs/Prepayments.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# XeroRuby::Prepayments
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**prepayments** | [**Array<Prepayment>**](Prepayment.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'XeroRuby'
|
13
|
+
|
14
|
+
instance = XeroRuby::Prepayments.new(prepayments: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/Purchase.md
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
# XeroRuby::Purchase
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**unit_price** | **Float** | Unit Price of the item. By default UnitPrice is rounded to two decimal places. You can use 4 decimal places by adding the unitdp=4 querystring parameter to your request. | [optional]
|
8
|
+
**account_code** | **String** | Default account code to be used for purchased/sale. Not applicable to the purchase details of tracked items | [optional]
|
9
|
+
**cogs_account_code** | **String** | Cost of goods sold account. Only applicable to the purchase details of tracked items. | [optional]
|
10
|
+
**tax_type** | **String** | The tax type from TaxRates | [optional]
|
11
|
+
|
12
|
+
## Code Sample
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'XeroRuby'
|
16
|
+
|
17
|
+
instance = XeroRuby::Purchase.new(unit_price: null,
|
18
|
+
account_code: null,
|
19
|
+
cogs_account_code: null,
|
20
|
+
tax_type: null)
|
21
|
+
```
|
22
|
+
|
23
|
+
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# XeroRuby::PurchaseOrder
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**contact** | [**Contact**](Contact.md) | |
|
8
|
+
**line_items** | [**Array<LineItem>**](LineItem.md) | See LineItems |
|
9
|
+
**date** | **Date** | Date purchase order was issued – YYYY-MM-DD. If the Date element is not specified then it will default to the current date based on the timezone setting of the organisation | [optional]
|
10
|
+
**delivery_date** | **Date** | Date the goods are to be delivered – YYYY-MM-DD | [optional]
|
11
|
+
**line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
|
12
|
+
**purchase_order_number** | **String** | Unique alpha numeric code identifying purchase order (when missing will auto-generate from your Organisation Invoice Settings) | [optional]
|
13
|
+
**reference** | **String** | Additional reference number | [optional]
|
14
|
+
**branding_theme_id** | **String** | See BrandingThemes | [optional]
|
15
|
+
**currency_code** | [**CurrencyCode**](CurrencyCode.md) | | [optional]
|
16
|
+
**status** | **String** | See Purchase Order Status Codes | [optional]
|
17
|
+
**sent_to_contact** | **Boolean** | Boolean to set whether the purchase order should be marked as “sent”. This can be set only on purchase orders that have been approved or billed | [optional]
|
18
|
+
**delivery_address** | **String** | The address the goods are to be delivered to | [optional]
|
19
|
+
**attention_to** | **String** | The person that the delivery is going to | [optional]
|
20
|
+
**telephone** | **String** | The phone number for the person accepting the delivery | [optional]
|
21
|
+
**delivery_instructions** | **String** | A free text feild for instructions (500 characters max) | [optional]
|
22
|
+
**expected_arrival_date** | **Date** | The date the goods are expected to arrive. | [optional]
|
23
|
+
**purchase_order_id** | **String** | Xero generated unique identifier for purchase order | [optional]
|
24
|
+
**currency_rate** | **Float** | The currency rate for a multicurrency purchase order. As no rate can be specified, the XE.com day rate is used. | [optional]
|
25
|
+
**sub_total** | **Float** | Total of purchase order excluding taxes | [optional]
|
26
|
+
**total_tax** | **Float** | Total tax on purchase order | [optional]
|
27
|
+
**total** | **Float** | Total of Purchase Order tax inclusive (i.e. SubTotal + TotalTax) | [optional]
|
28
|
+
**total_discount** | **Float** | Total of discounts applied on the purchase order line items | [optional]
|
29
|
+
**has_attachments** | **Boolean** | boolean to indicate if a purchase order has an attachment | [optional]
|
30
|
+
**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
|
31
|
+
**status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
|
32
|
+
**validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
|
33
|
+
**warnings** | [**Array<ValidationError>**](ValidationError.md) | Displays array of warning messages from the API | [optional]
|
34
|
+
**attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional]
|
35
|
+
|
36
|
+
## Code Sample
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
require 'XeroRuby'
|
40
|
+
|
41
|
+
instance = XeroRuby::PurchaseOrder.new(contact: null,
|
42
|
+
line_items: null,
|
43
|
+
date: null,
|
44
|
+
delivery_date: null,
|
45
|
+
line_amount_types: null,
|
46
|
+
purchase_order_number: null,
|
47
|
+
reference: null,
|
48
|
+
branding_theme_id: null,
|
49
|
+
currency_code: null,
|
50
|
+
status: null,
|
51
|
+
sent_to_contact: null,
|
52
|
+
delivery_address: null,
|
53
|
+
attention_to: null,
|
54
|
+
telephone: null,
|
55
|
+
delivery_instructions: null,
|
56
|
+
expected_arrival_date: null,
|
57
|
+
purchase_order_id: null,
|
58
|
+
currency_rate: null,
|
59
|
+
sub_total: null,
|
60
|
+
total_tax: null,
|
61
|
+
total: null,
|
62
|
+
total_discount: null,
|
63
|
+
has_attachments: null,
|
64
|
+
updated_date_utc: null,
|
65
|
+
status_attribute_string: null,
|
66
|
+
validation_errors: null,
|
67
|
+
warnings: null,
|
68
|
+
attachments: null)
|
69
|
+
```
|
70
|
+
|
71
|
+
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# XeroRuby::PurchaseOrders
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**purchase_orders** | [**Array<PurchaseOrder>**](PurchaseOrder.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'XeroRuby'
|
13
|
+
|
14
|
+
instance = XeroRuby::PurchaseOrders.new(purchase_orders: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|
data/docs/Receipt.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# XeroRuby::Receipt
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**date** | **Date** | Date of receipt – YYYY-MM-DD |
|
8
|
+
**contact** | [**Contact**](Contact.md) | |
|
9
|
+
**line_items** | [**Array<LineItem>**](LineItem.md) | |
|
10
|
+
**user** | [**User**](User.md) | |
|
11
|
+
**reference** | **String** | Additional reference number | [optional]
|
12
|
+
**line_amount_types** | [**LineAmountTypes**](LineAmountTypes.md) | | [optional]
|
13
|
+
**sub_total** | **Float** | Total of receipt excluding taxes | [optional]
|
14
|
+
**total_tax** | **Float** | Total tax on receipt | [optional]
|
15
|
+
**total** | **Float** | Total of receipt tax inclusive (i.e. SubTotal + TotalTax) | [optional]
|
16
|
+
**receipt_id** | **String** | Xero generated unique identifier for receipt | [optional]
|
17
|
+
**status** | **String** | Current status of receipt – see status types | [optional]
|
18
|
+
**receipt_number** | **String** | Xero generated sequence number for receipt in current claim for a given user | [optional]
|
19
|
+
**updated_date_utc** | **DateTime** | Last modified date UTC format | [optional]
|
20
|
+
**has_attachments** | **Boolean** | boolean to indicate if a receipt has an attachment | [optional]
|
21
|
+
**url** | **String** | URL link to a source document – shown as “Go to [appName]” in the Xero app | [optional]
|
22
|
+
**validation_errors** | [**Array<ValidationError>**](ValidationError.md) | Displays array of validation error messages from the API | [optional]
|
23
|
+
**attachments** | [**Array<Attachment>**](Attachment.md) | Displays array of attachments from the API | [optional]
|
24
|
+
|
25
|
+
## Code Sample
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'XeroRuby'
|
29
|
+
|
30
|
+
instance = XeroRuby::Receipt.new(date: null,
|
31
|
+
contact: null,
|
32
|
+
line_items: null,
|
33
|
+
user: null,
|
34
|
+
reference: null,
|
35
|
+
line_amount_types: null,
|
36
|
+
sub_total: null,
|
37
|
+
total_tax: null,
|
38
|
+
total: null,
|
39
|
+
receipt_id: null,
|
40
|
+
status: null,
|
41
|
+
receipt_number: null,
|
42
|
+
updated_date_utc: null,
|
43
|
+
has_attachments: null,
|
44
|
+
url: null,
|
45
|
+
validation_errors: null,
|
46
|
+
attachments: null)
|
47
|
+
```
|
48
|
+
|
49
|
+
|
data/docs/Receipts.md
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
# XeroRuby::Receipts
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
Name | Type | Description | Notes
|
6
|
+
------------ | ------------- | ------------- | -------------
|
7
|
+
**receipts** | [**Array<Receipt>**](Receipt.md) | | [optional]
|
8
|
+
|
9
|
+
## Code Sample
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'XeroRuby'
|
13
|
+
|
14
|
+
instance = XeroRuby::Receipts.new(receipts: null)
|
15
|
+
```
|
16
|
+
|
17
|
+
|