xero-ruby 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- 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
@@ -0,0 +1,204 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: api@xero.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'time'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
module XeroRuby
|
17
|
+
class ValidationError
|
18
|
+
# Validation error message
|
19
|
+
attr_accessor :message
|
20
|
+
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
22
|
+
def self.attribute_map
|
23
|
+
{
|
24
|
+
:'message' => :'Message'
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
# Attribute type mapping.
|
29
|
+
def self.openapi_types
|
30
|
+
{
|
31
|
+
:'message' => :'String'
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
# Initializes the object
|
36
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
37
|
+
def initialize(attributes = {})
|
38
|
+
if (!attributes.is_a?(Hash))
|
39
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `XeroRuby::ValidationError` initialize method"
|
40
|
+
end
|
41
|
+
|
42
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
43
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
44
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
45
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `XeroRuby::ValidationError`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
46
|
+
end
|
47
|
+
h[k.to_sym] = v
|
48
|
+
}
|
49
|
+
|
50
|
+
if attributes.key?(:'message')
|
51
|
+
self.message = attributes[:'message']
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
56
|
+
# @return Array for valid properties with the reasons
|
57
|
+
def list_invalid_properties
|
58
|
+
invalid_properties = Array.new
|
59
|
+
invalid_properties
|
60
|
+
end
|
61
|
+
|
62
|
+
# Check to see if the all the properties in the model are valid
|
63
|
+
# @return true if the model is valid
|
64
|
+
def valid?
|
65
|
+
true
|
66
|
+
end
|
67
|
+
|
68
|
+
# Checks equality by comparing each attribute.
|
69
|
+
# @param [Object] Object to be compared
|
70
|
+
def ==(o)
|
71
|
+
return true if self.equal?(o)
|
72
|
+
self.class == o.class &&
|
73
|
+
message == o.message
|
74
|
+
end
|
75
|
+
|
76
|
+
# @see the `==` method
|
77
|
+
# @param [Object] Object to be compared
|
78
|
+
def eql?(o)
|
79
|
+
self == o
|
80
|
+
end
|
81
|
+
|
82
|
+
# Calculates hash code according to all attributes.
|
83
|
+
# @return [Integer] Hash code
|
84
|
+
def hash
|
85
|
+
[message].hash
|
86
|
+
end
|
87
|
+
|
88
|
+
# Builds the object from hash
|
89
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
90
|
+
# @return [Object] Returns the model itself
|
91
|
+
def self.build_from_hash(attributes)
|
92
|
+
new.build_from_hash(attributes)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Builds the object from hash
|
96
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
97
|
+
# @return [Object] Returns the model itself
|
98
|
+
def build_from_hash(attributes)
|
99
|
+
return nil unless attributes.is_a?(Hash)
|
100
|
+
self.class.openapi_types.each_pair do |key, type|
|
101
|
+
if type =~ /\AArray<(.*)>/i
|
102
|
+
# check to ensure the input is an array given that the attribute
|
103
|
+
# is documented as an array but the input is not
|
104
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
105
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
106
|
+
end
|
107
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
108
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
109
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
110
|
+
end
|
111
|
+
|
112
|
+
self
|
113
|
+
end
|
114
|
+
|
115
|
+
# Deserializes the data based on type
|
116
|
+
# @param string type Data type
|
117
|
+
# @param string value Value to be deserialized
|
118
|
+
# @return [Object] Deserialized data
|
119
|
+
def _deserialize(type, value)
|
120
|
+
case type.to_sym
|
121
|
+
when :DateTime
|
122
|
+
DateTime.parse(parse_date(value))
|
123
|
+
when :Date
|
124
|
+
Date._iso8601(parse_date(value))
|
125
|
+
when :String
|
126
|
+
value.to_s
|
127
|
+
when :Integer
|
128
|
+
value.to_i
|
129
|
+
when :Float
|
130
|
+
value.to_f
|
131
|
+
when :Boolean
|
132
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
133
|
+
true
|
134
|
+
else
|
135
|
+
false
|
136
|
+
end
|
137
|
+
when :Object
|
138
|
+
# generic object (usually a Hash), return directly
|
139
|
+
value
|
140
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
141
|
+
inner_type = Regexp.last_match[:inner_type]
|
142
|
+
value.map { |v| _deserialize(inner_type, v) }
|
143
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
144
|
+
k_type = Regexp.last_match[:k_type]
|
145
|
+
v_type = Regexp.last_match[:v_type]
|
146
|
+
{}.tap do |hash|
|
147
|
+
value.each do |k, v|
|
148
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
149
|
+
end
|
150
|
+
end
|
151
|
+
else # model
|
152
|
+
XeroRuby.const_get(type).build_from_hash(value)
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
# Returns the string representation of the object
|
157
|
+
# @return [String] String presentation of the object
|
158
|
+
def to_s
|
159
|
+
to_hash.to_s
|
160
|
+
end
|
161
|
+
|
162
|
+
# to_body is an alias to to_hash (backward compatibility)
|
163
|
+
# @return [Hash] Returns the object in the form of hash
|
164
|
+
def to_body
|
165
|
+
to_hash
|
166
|
+
end
|
167
|
+
|
168
|
+
# Returns the object in the form of hash
|
169
|
+
# @return [Hash] Returns the object in the form of hash
|
170
|
+
def to_hash
|
171
|
+
hash = {}
|
172
|
+
self.class.attribute_map.each_pair do |attr, param|
|
173
|
+
value = self.send(attr)
|
174
|
+
next if value.nil?
|
175
|
+
hash[param] = _to_hash(value)
|
176
|
+
end
|
177
|
+
hash
|
178
|
+
end
|
179
|
+
|
180
|
+
# Outputs non-array value in the form of hash
|
181
|
+
# For object, use to_hash. Otherwise, just return the value
|
182
|
+
# @param [Object] value Any valid value
|
183
|
+
# @return [Hash] Returns the value in the form of hash
|
184
|
+
def _to_hash(value)
|
185
|
+
if value.is_a?(Array)
|
186
|
+
value.compact.map { |v| _to_hash(v) }
|
187
|
+
elsif value.is_a?(Hash)
|
188
|
+
{}.tap do |hash|
|
189
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
190
|
+
end
|
191
|
+
elsif value.respond_to? :to_hash
|
192
|
+
value.to_hash
|
193
|
+
else
|
194
|
+
value
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# customized data_parser
|
199
|
+
def parse_date(datestring)
|
200
|
+
seconds_since_epoch = datestring.scan(/[0-9]+/)[0].to_i / 1000.0
|
201
|
+
return Time.at(seconds_since_epoch).to_s
|
202
|
+
end
|
203
|
+
end
|
204
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 2.0.0
|
7
|
+
Contact: api@xero.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.0.3
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
module XeroRuby
|
14
|
+
VERSION = '0.1.1'
|
15
|
+
end
|
Binary file
|
Binary file
|
@@ -0,0 +1,2322 @@
|
|
1
|
+
=begin
|
2
|
+
#Accounting API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: api@xero.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 3.3.4
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for Petstore::AccountingApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'AccountingApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = Petstore::AccountingApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of AccountingApi' do
|
30
|
+
it 'should create an instance of AccountingApi' do
|
31
|
+
expect(@instance).to be_instance_of(Petstore::AccountingApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_account
|
36
|
+
# Allows you to create a new chart of accounts
|
37
|
+
# @param account Request of type Account
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [Accounts]
|
40
|
+
describe 'create_account test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for create_account_attachment_by_file_name
|
47
|
+
# Allows you to create Attachment on Account
|
48
|
+
# @param account_id Unique identifier for Account object
|
49
|
+
# @param file_name Name of the attachment
|
50
|
+
# @param body Byte array of file in body of request
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [Attachments]
|
53
|
+
describe 'create_account_attachment_by_file_name test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for create_bank_transaction
|
60
|
+
# Allows you to create a spend or receive money transaction
|
61
|
+
# @param bank_transactions
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [BOOLEAN] :summarize_errors response format that shows validation errors for each bank transaction
|
64
|
+
# @return [BankTransactions]
|
65
|
+
describe 'create_bank_transaction test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for create_bank_transaction_attachment_by_file_name
|
72
|
+
# Allows you to createa an Attachment on BankTransaction by Filename
|
73
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
74
|
+
# @param file_name The name of the file being attached
|
75
|
+
# @param body Byte array of file in body of request
|
76
|
+
# @param [Hash] opts the optional parameters
|
77
|
+
# @return [Attachments]
|
78
|
+
describe 'create_bank_transaction_attachment_by_file_name test' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# unit tests for create_bank_transaction_history_record
|
85
|
+
# Allows you to create history record for a bank transactions
|
86
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
87
|
+
# @param history_records
|
88
|
+
# @param [Hash] opts the optional parameters
|
89
|
+
# @return [HistoryRecords]
|
90
|
+
describe 'create_bank_transaction_history_record test' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
# unit tests for create_bank_transfer
|
97
|
+
# Allows you to create a bank transfers
|
98
|
+
# @param bank_transfers
|
99
|
+
# @param [Hash] opts the optional parameters
|
100
|
+
# @return [BankTransfers]
|
101
|
+
describe 'create_bank_transfer test' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
107
|
+
# unit tests for create_bank_transfer_attachment_by_file_name
|
108
|
+
# @param bank_transfer_id Xero generated unique identifier for a bank transfer
|
109
|
+
# @param file_name The name of the file being attached to a Bank Transfer
|
110
|
+
# @param body Byte array of file in body of request
|
111
|
+
# @param [Hash] opts the optional parameters
|
112
|
+
# @return [Attachments]
|
113
|
+
describe 'create_bank_transfer_attachment_by_file_name test' do
|
114
|
+
it 'should work' do
|
115
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
|
+
end
|
117
|
+
end
|
118
|
+
|
119
|
+
# unit tests for create_bank_transfer_history_record
|
120
|
+
# @param bank_transfer_id Xero generated unique identifier for a bank transfer
|
121
|
+
# @param history_records
|
122
|
+
# @param [Hash] opts the optional parameters
|
123
|
+
# @return [HistoryRecords]
|
124
|
+
describe 'create_bank_transfer_history_record test' do
|
125
|
+
it 'should work' do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
# unit tests for create_batch_payment
|
131
|
+
# Create one or many BatchPayments for invoices
|
132
|
+
# @param batch_payments Request of type BatchPayments containing a Payments array with one or more Payment objects
|
133
|
+
# @param [Hash] opts the optional parameters
|
134
|
+
# @return [BatchPayments]
|
135
|
+
describe 'create_batch_payment test' do
|
136
|
+
it 'should work' do
|
137
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# unit tests for create_batch_payment_history_record
|
142
|
+
# Allows you to create a history record for a Batch Payment
|
143
|
+
# @param batch_payment_id Unique identifier for BatchPayment
|
144
|
+
# @param history_records
|
145
|
+
# @param [Hash] opts the optional parameters
|
146
|
+
# @return [HistoryRecords]
|
147
|
+
describe 'create_batch_payment_history_record test' do
|
148
|
+
it 'should work' do
|
149
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
# unit tests for create_branding_theme_payment_services
|
154
|
+
# Allow for the creation of new custom payment service for specified Branding Theme
|
155
|
+
# @param branding_theme_id Unique identifier for a Branding Theme
|
156
|
+
# @param payment_service
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @return [PaymentServices]
|
159
|
+
describe 'create_branding_theme_payment_services test' do
|
160
|
+
it 'should work' do
|
161
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
# unit tests for create_contact
|
166
|
+
# @param contact
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @return [Contacts]
|
169
|
+
describe 'create_contact test' do
|
170
|
+
it 'should work' do
|
171
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# unit tests for create_contact_attachment_by_file_name
|
176
|
+
# @param contact_id Unique identifier for a Contact
|
177
|
+
# @param file_name Name for the file you are attaching
|
178
|
+
# @param body Byte array of file in body of request
|
179
|
+
# @param [Hash] opts the optional parameters
|
180
|
+
# @return [Attachments]
|
181
|
+
describe 'create_contact_attachment_by_file_name test' do
|
182
|
+
it 'should work' do
|
183
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
187
|
+
# unit tests for create_contact_group
|
188
|
+
# Allows you to create a contact group
|
189
|
+
# @param [Hash] opts the optional parameters
|
190
|
+
# @option opts [ContactGroups] :contact_groups
|
191
|
+
# @return [ContactGroups]
|
192
|
+
describe 'create_contact_group test' do
|
193
|
+
it 'should work' do
|
194
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
# unit tests for create_contact_group_contacts
|
199
|
+
# Allows you to add Contacts to a Contract Group
|
200
|
+
# @param contact_group_id Unique identifier for a Contact Group
|
201
|
+
# @param [Hash] opts the optional parameters
|
202
|
+
# @option opts [Contacts] :contacts
|
203
|
+
# @return [Contacts]
|
204
|
+
describe 'create_contact_group_contacts test' do
|
205
|
+
it 'should work' do
|
206
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# unit tests for create_contact_history
|
211
|
+
# Allows you to retrieve a history records of an Contact
|
212
|
+
# @param contact_id Unique identifier for a Contact
|
213
|
+
# @param history_records
|
214
|
+
# @param [Hash] opts the optional parameters
|
215
|
+
# @return [HistoryRecords]
|
216
|
+
describe 'create_contact_history test' do
|
217
|
+
it 'should work' do
|
218
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# unit tests for create_credit_note
|
223
|
+
# Allows you to create a credit note
|
224
|
+
# @param [Hash] opts the optional parameters
|
225
|
+
# @option opts [BOOLEAN] :summarize_errors shows validation errors for each credit note
|
226
|
+
# @option opts [CreditNotes] :credit_notes
|
227
|
+
# @return [CreditNotes]
|
228
|
+
describe 'create_credit_note test' do
|
229
|
+
it 'should work' do
|
230
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
231
|
+
end
|
232
|
+
end
|
233
|
+
|
234
|
+
# unit tests for create_credit_note_allocation
|
235
|
+
# Allows you to create Allocation on CreditNote
|
236
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
237
|
+
# @param [Hash] opts the optional parameters
|
238
|
+
# @option opts [Allocations] :allocations
|
239
|
+
# @return [Allocations]
|
240
|
+
describe 'create_credit_note_allocation test' do
|
241
|
+
it 'should work' do
|
242
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
243
|
+
end
|
244
|
+
end
|
245
|
+
|
246
|
+
# unit tests for create_credit_note_attachment_by_file_name
|
247
|
+
# Allows you to create Attachments on CreditNote by file name
|
248
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
249
|
+
# @param file_name Name of the file you are attaching to Credit Note
|
250
|
+
# @param body Byte array of file in body of request
|
251
|
+
# @param [Hash] opts the optional parameters
|
252
|
+
# @return [Attachments]
|
253
|
+
describe 'create_credit_note_attachment_by_file_name test' do
|
254
|
+
it 'should work' do
|
255
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
256
|
+
end
|
257
|
+
end
|
258
|
+
|
259
|
+
# unit tests for create_credit_note_history
|
260
|
+
# Allows you to retrieve a history records of an CreditNote
|
261
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
262
|
+
# @param history_records
|
263
|
+
# @param [Hash] opts the optional parameters
|
264
|
+
# @return [HistoryRecords]
|
265
|
+
describe 'create_credit_note_history test' do
|
266
|
+
it 'should work' do
|
267
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
268
|
+
end
|
269
|
+
end
|
270
|
+
|
271
|
+
# unit tests for create_currency
|
272
|
+
# @param currencies
|
273
|
+
# @param [Hash] opts the optional parameters
|
274
|
+
# @return [Currencies]
|
275
|
+
describe 'create_currency test' do
|
276
|
+
it 'should work' do
|
277
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
278
|
+
end
|
279
|
+
end
|
280
|
+
|
281
|
+
# unit tests for create_employee
|
282
|
+
# Allows you to create new employees used in Xero payrun
|
283
|
+
# @param employees
|
284
|
+
# @param [Hash] opts the optional parameters
|
285
|
+
# @return [Employees]
|
286
|
+
describe 'create_employee test' do
|
287
|
+
it 'should work' do
|
288
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
289
|
+
end
|
290
|
+
end
|
291
|
+
|
292
|
+
# unit tests for create_expense_claim
|
293
|
+
# Allows you to retrieve expense claims
|
294
|
+
# @param expense_claims
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @option opts [BOOLEAN] :summarize_errors shows validation errors for each expense claim
|
297
|
+
# @return [ExpenseClaims]
|
298
|
+
describe 'create_expense_claim test' do
|
299
|
+
it 'should work' do
|
300
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
301
|
+
end
|
302
|
+
end
|
303
|
+
|
304
|
+
# unit tests for create_expense_claim_history
|
305
|
+
# Allows you to create a history records of an ExpenseClaim
|
306
|
+
# @param expense_claim_id Unique identifier for a ExpenseClaim
|
307
|
+
# @param history_records
|
308
|
+
# @param [Hash] opts the optional parameters
|
309
|
+
# @return [HistoryRecords]
|
310
|
+
describe 'create_expense_claim_history test' do
|
311
|
+
it 'should work' do
|
312
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
316
|
+
# unit tests for create_invoice
|
317
|
+
# Allows you to create any sales invoices or purchase bills
|
318
|
+
# @param invoices
|
319
|
+
# @param [Hash] opts the optional parameters
|
320
|
+
# @option opts [BOOLEAN] :summarize_errors shows validation errors for each invoice
|
321
|
+
# @return [Invoices]
|
322
|
+
describe 'create_invoice test' do
|
323
|
+
it 'should work' do
|
324
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
325
|
+
end
|
326
|
+
end
|
327
|
+
|
328
|
+
# unit tests for create_invoice_attachment_by_file_name
|
329
|
+
# Allows you to create an Attachment on invoices or purchase bills by it's filename
|
330
|
+
# @param invoice_id Unique identifier for an Invoice
|
331
|
+
# @param file_name Name of the file you are attaching
|
332
|
+
# @param body Byte array of file in body of request
|
333
|
+
# @param [Hash] opts the optional parameters
|
334
|
+
# @return [Attachments]
|
335
|
+
describe 'create_invoice_attachment_by_file_name test' do
|
336
|
+
it 'should work' do
|
337
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
338
|
+
end
|
339
|
+
end
|
340
|
+
|
341
|
+
# unit tests for create_invoice_history
|
342
|
+
# Allows you to retrieve a history records of an invoice
|
343
|
+
# @param invoice_id Unique identifier for an Invoice
|
344
|
+
# @param history_records
|
345
|
+
# @param [Hash] opts the optional parameters
|
346
|
+
# @return [HistoryRecords]
|
347
|
+
describe 'create_invoice_history test' do
|
348
|
+
it 'should work' do
|
349
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
350
|
+
end
|
351
|
+
end
|
352
|
+
|
353
|
+
# unit tests for create_item
|
354
|
+
# Allows you to create an item
|
355
|
+
# @param items
|
356
|
+
# @param [Hash] opts the optional parameters
|
357
|
+
# @return [Items]
|
358
|
+
describe 'create_item test' do
|
359
|
+
it 'should work' do
|
360
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
364
|
+
# unit tests for create_item_history
|
365
|
+
# Allows you to create a history record for items
|
366
|
+
# @param item_id Unique identifier for an Item
|
367
|
+
# @param history_records
|
368
|
+
# @param [Hash] opts the optional parameters
|
369
|
+
# @return [HistoryRecords]
|
370
|
+
describe 'create_item_history test' do
|
371
|
+
it 'should work' do
|
372
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
373
|
+
end
|
374
|
+
end
|
375
|
+
|
376
|
+
# unit tests for create_linked_transaction
|
377
|
+
# Allows you to create linked transactions (billable expenses)
|
378
|
+
# @param linked_transactions
|
379
|
+
# @param [Hash] opts the optional parameters
|
380
|
+
# @return [LinkedTransactions]
|
381
|
+
describe 'create_linked_transaction test' do
|
382
|
+
it 'should work' do
|
383
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
384
|
+
end
|
385
|
+
end
|
386
|
+
|
387
|
+
# unit tests for create_manual_journal
|
388
|
+
# Allows you to create a manual journal
|
389
|
+
# @param manual_journals
|
390
|
+
# @param [Hash] opts the optional parameters
|
391
|
+
# @return [ManualJournals]
|
392
|
+
describe 'create_manual_journal test' do
|
393
|
+
it 'should work' do
|
394
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
395
|
+
end
|
396
|
+
end
|
397
|
+
|
398
|
+
# unit tests for create_manual_journal_attachment_by_file_name
|
399
|
+
# Allows you to create a specified Attachment on ManualJournal by file name
|
400
|
+
# @param manual_journal_id Unique identifier for a ManualJournal
|
401
|
+
# @param file_name The name of the file being attached to a ManualJournal
|
402
|
+
# @param body Byte array of file in body of request
|
403
|
+
# @param [Hash] opts the optional parameters
|
404
|
+
# @return [Attachments]
|
405
|
+
describe 'create_manual_journal_attachment_by_file_name test' do
|
406
|
+
it 'should work' do
|
407
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
408
|
+
end
|
409
|
+
end
|
410
|
+
|
411
|
+
# unit tests for create_overpayment_allocation
|
412
|
+
# Allows you to retrieve Allocations for overpayments
|
413
|
+
# @param overpayment_id Unique identifier for a Overpayment
|
414
|
+
# @param allocations
|
415
|
+
# @param [Hash] opts the optional parameters
|
416
|
+
# @return [Allocations]
|
417
|
+
describe 'create_overpayment_allocation test' do
|
418
|
+
it 'should work' do
|
419
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
420
|
+
end
|
421
|
+
end
|
422
|
+
|
423
|
+
# unit tests for create_overpayment_history
|
424
|
+
# Allows you to create history records of an Overpayment
|
425
|
+
# @param overpayment_id Unique identifier for a Overpayment
|
426
|
+
# @param history_records
|
427
|
+
# @param [Hash] opts the optional parameters
|
428
|
+
# @return [HistoryRecords]
|
429
|
+
describe 'create_overpayment_history test' do
|
430
|
+
it 'should work' do
|
431
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
435
|
+
# unit tests for create_payment
|
436
|
+
# Allows you to create payments for invoices and credit notes
|
437
|
+
# @param payments
|
438
|
+
# @param [Hash] opts the optional parameters
|
439
|
+
# @return [Payments]
|
440
|
+
describe 'create_payment test' do
|
441
|
+
it 'should work' do
|
442
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
443
|
+
end
|
444
|
+
end
|
445
|
+
|
446
|
+
# unit tests for create_payment_history
|
447
|
+
# Allows you to create a history record for a payment
|
448
|
+
# @param payment_id Unique identifier for a Payment
|
449
|
+
# @param history_records
|
450
|
+
# @param [Hash] opts the optional parameters
|
451
|
+
# @return [HistoryRecords]
|
452
|
+
describe 'create_payment_history test' do
|
453
|
+
it 'should work' do
|
454
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
# unit tests for create_payment_service
|
459
|
+
# Allows you to create payment services
|
460
|
+
# @param payment_services
|
461
|
+
# @param [Hash] opts the optional parameters
|
462
|
+
# @return [PaymentServices]
|
463
|
+
describe 'create_payment_service test' do
|
464
|
+
it 'should work' do
|
465
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
466
|
+
end
|
467
|
+
end
|
468
|
+
|
469
|
+
# unit tests for create_prepayment_allocation
|
470
|
+
# Allows you to create an Allocation for prepayments
|
471
|
+
# @param prepayment_id
|
472
|
+
# @param allocations
|
473
|
+
# @param [Hash] opts the optional parameters
|
474
|
+
# @return [Allocations]
|
475
|
+
describe 'create_prepayment_allocation test' do
|
476
|
+
it 'should work' do
|
477
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
478
|
+
end
|
479
|
+
end
|
480
|
+
|
481
|
+
# unit tests for create_prepayment_history
|
482
|
+
# Allows you to create a history record for an Prepayment
|
483
|
+
# @param prepayment_id Unique identifier for a PrePayment
|
484
|
+
# @param history_records
|
485
|
+
# @param [Hash] opts the optional parameters
|
486
|
+
# @return [HistoryRecords]
|
487
|
+
describe 'create_prepayment_history test' do
|
488
|
+
it 'should work' do
|
489
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
490
|
+
end
|
491
|
+
end
|
492
|
+
|
493
|
+
# unit tests for create_purchase_order
|
494
|
+
# Allows you to create purchase orders
|
495
|
+
# @param purchase_orders
|
496
|
+
# @param [Hash] opts the optional parameters
|
497
|
+
# @option opts [BOOLEAN] :summarize_errors shows validation errors for each purchase order.
|
498
|
+
# @return [PurchaseOrders]
|
499
|
+
describe 'create_purchase_order test' do
|
500
|
+
it 'should work' do
|
501
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
502
|
+
end
|
503
|
+
end
|
504
|
+
|
505
|
+
# unit tests for create_purchase_order_history
|
506
|
+
# Allows you to create HistoryRecord for purchase orders
|
507
|
+
# @param purchase_order_id Unique identifier for a PurchaseOrder
|
508
|
+
# @param history_records
|
509
|
+
# @param [Hash] opts the optional parameters
|
510
|
+
# @return [HistoryRecords]
|
511
|
+
describe 'create_purchase_order_history test' do
|
512
|
+
it 'should work' do
|
513
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
514
|
+
end
|
515
|
+
end
|
516
|
+
|
517
|
+
# unit tests for create_receipt
|
518
|
+
# Allows you to create draft expense claim receipts for any user
|
519
|
+
# @param receipts
|
520
|
+
# @param [Hash] opts the optional parameters
|
521
|
+
# @return [Receipts]
|
522
|
+
describe 'create_receipt test' do
|
523
|
+
it 'should work' do
|
524
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
525
|
+
end
|
526
|
+
end
|
527
|
+
|
528
|
+
# unit tests for create_receipt_attachment_by_file_name
|
529
|
+
# Allows you to create Attachment on expense claim receipts by file name
|
530
|
+
# @param receipt_id Unique identifier for a Receipt
|
531
|
+
# @param file_name The name of the file being attached to the Receipt
|
532
|
+
# @param body Byte array of file in body of request
|
533
|
+
# @param [Hash] opts the optional parameters
|
534
|
+
# @return [Attachments]
|
535
|
+
describe 'create_receipt_attachment_by_file_name test' do
|
536
|
+
it 'should work' do
|
537
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
538
|
+
end
|
539
|
+
end
|
540
|
+
|
541
|
+
# unit tests for create_receipt_history
|
542
|
+
# Allows you to retrieve a history records of an Receipt
|
543
|
+
# @param receipt_id Unique identifier for a Receipt
|
544
|
+
# @param history_records
|
545
|
+
# @param [Hash] opts the optional parameters
|
546
|
+
# @return [HistoryRecords]
|
547
|
+
describe 'create_receipt_history test' do
|
548
|
+
it 'should work' do
|
549
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
550
|
+
end
|
551
|
+
end
|
552
|
+
|
553
|
+
# unit tests for create_repeating_invoice_attachment_by_file_name
|
554
|
+
# Allows you to create attachment on repeating invoices by file name
|
555
|
+
# @param repeating_invoice_id Unique identifier for a Repeating Invoice
|
556
|
+
# @param file_name The name of the file being attached to a Repeating Invoice
|
557
|
+
# @param body Byte array of file in body of request
|
558
|
+
# @param [Hash] opts the optional parameters
|
559
|
+
# @return [Attachments]
|
560
|
+
describe 'create_repeating_invoice_attachment_by_file_name test' do
|
561
|
+
it 'should work' do
|
562
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
563
|
+
end
|
564
|
+
end
|
565
|
+
|
566
|
+
# unit tests for create_repeating_invoice_history
|
567
|
+
# Allows you to create history for a repeating invoice
|
568
|
+
# @param repeating_invoice_id Unique identifier for a Repeating Invoice
|
569
|
+
# @param history_records
|
570
|
+
# @param [Hash] opts the optional parameters
|
571
|
+
# @return [HistoryRecords]
|
572
|
+
describe 'create_repeating_invoice_history test' do
|
573
|
+
it 'should work' do
|
574
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
575
|
+
end
|
576
|
+
end
|
577
|
+
|
578
|
+
# unit tests for create_tax_rate
|
579
|
+
# Allows you to create Tax Rates
|
580
|
+
# @param tax_rates
|
581
|
+
# @param [Hash] opts the optional parameters
|
582
|
+
# @return [TaxRates]
|
583
|
+
describe 'create_tax_rate test' do
|
584
|
+
it 'should work' do
|
585
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
# unit tests for create_tracking_category
|
590
|
+
# Allows you to create tracking categories
|
591
|
+
# @param tracking_category
|
592
|
+
# @param [Hash] opts the optional parameters
|
593
|
+
# @return [TrackingCategories]
|
594
|
+
describe 'create_tracking_category test' do
|
595
|
+
it 'should work' do
|
596
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
597
|
+
end
|
598
|
+
end
|
599
|
+
|
600
|
+
# unit tests for create_tracking_options
|
601
|
+
# Allows you to create options for a specified tracking category
|
602
|
+
# @param tracking_category_id Unique identifier for a TrackingCategory
|
603
|
+
# @param tracking_option
|
604
|
+
# @param [Hash] opts the optional parameters
|
605
|
+
# @return [TrackingOptions]
|
606
|
+
describe 'create_tracking_options test' do
|
607
|
+
it 'should work' do
|
608
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
609
|
+
end
|
610
|
+
end
|
611
|
+
|
612
|
+
# unit tests for delete_account
|
613
|
+
# Allows you to delete a chart of accounts
|
614
|
+
# @param account_id Unique identifier for retrieving single object
|
615
|
+
# @param [Hash] opts the optional parameters
|
616
|
+
# @return [Accounts]
|
617
|
+
describe 'delete_account test' do
|
618
|
+
it 'should work' do
|
619
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
620
|
+
end
|
621
|
+
end
|
622
|
+
|
623
|
+
# unit tests for delete_contact_group_contact
|
624
|
+
# Allows you to delete a specific Contact from a Contract Group
|
625
|
+
# @param contact_group_id Unique identifier for a Contact Group
|
626
|
+
# @param contact_id Unique identifier for a Contact
|
627
|
+
# @param [Hash] opts the optional parameters
|
628
|
+
# @return [nil]
|
629
|
+
describe 'delete_contact_group_contact test' do
|
630
|
+
it 'should work' do
|
631
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
635
|
+
# unit tests for delete_contact_group_contacts
|
636
|
+
# Allows you to delete all Contacts from a Contract Group
|
637
|
+
# @param contact_group_id Unique identifier for a Contact Group
|
638
|
+
# @param [Hash] opts the optional parameters
|
639
|
+
# @return [nil]
|
640
|
+
describe 'delete_contact_group_contacts test' do
|
641
|
+
it 'should work' do
|
642
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
643
|
+
end
|
644
|
+
end
|
645
|
+
|
646
|
+
# unit tests for delete_item
|
647
|
+
# Allows you to delete a specified item
|
648
|
+
# @param item_id Unique identifier for an Item
|
649
|
+
# @param [Hash] opts the optional parameters
|
650
|
+
# @return [nil]
|
651
|
+
describe 'delete_item test' do
|
652
|
+
it 'should work' do
|
653
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
654
|
+
end
|
655
|
+
end
|
656
|
+
|
657
|
+
# unit tests for delete_linked_transaction
|
658
|
+
# Allows you to delete a specified linked transactions (billable expenses)
|
659
|
+
# @param linked_transaction_id Unique identifier for a LinkedTransaction
|
660
|
+
# @param [Hash] opts the optional parameters
|
661
|
+
# @return [nil]
|
662
|
+
describe 'delete_linked_transaction test' do
|
663
|
+
it 'should work' do
|
664
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
665
|
+
end
|
666
|
+
end
|
667
|
+
|
668
|
+
# unit tests for delete_payment
|
669
|
+
# Allows you to update a specified payment for invoices and credit notes
|
670
|
+
# @param payment_id Unique identifier for a Payment
|
671
|
+
# @param payments
|
672
|
+
# @param [Hash] opts the optional parameters
|
673
|
+
# @return [Payments]
|
674
|
+
describe 'delete_payment test' do
|
675
|
+
it 'should work' do
|
676
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
677
|
+
end
|
678
|
+
end
|
679
|
+
|
680
|
+
# unit tests for delete_tracking_category
|
681
|
+
# Allows you to delete tracking categories
|
682
|
+
# @param tracking_category_id Unique identifier for a TrackingCategory
|
683
|
+
# @param [Hash] opts the optional parameters
|
684
|
+
# @return [TrackingCategories]
|
685
|
+
describe 'delete_tracking_category test' do
|
686
|
+
it 'should work' do
|
687
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
688
|
+
end
|
689
|
+
end
|
690
|
+
|
691
|
+
# unit tests for delete_tracking_options
|
692
|
+
# Allows you to delete a specified option for a specified tracking category
|
693
|
+
# @param tracking_category_id Unique identifier for a TrackingCategory
|
694
|
+
# @param tracking_option_id Unique identifier for a Tracking Option
|
695
|
+
# @param [Hash] opts the optional parameters
|
696
|
+
# @return [TrackingOptions]
|
697
|
+
describe 'delete_tracking_options test' do
|
698
|
+
it 'should work' do
|
699
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
700
|
+
end
|
701
|
+
end
|
702
|
+
|
703
|
+
# unit tests for email_invoice
|
704
|
+
# Allows you to email a copy of invoice to related Contact
|
705
|
+
# @param invoice_id Unique identifier for an Invoice
|
706
|
+
# @param request_empty
|
707
|
+
# @param [Hash] opts the optional parameters
|
708
|
+
# @return [nil]
|
709
|
+
describe 'email_invoice test' do
|
710
|
+
it 'should work' do
|
711
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
712
|
+
end
|
713
|
+
end
|
714
|
+
|
715
|
+
# unit tests for get_account
|
716
|
+
# Allows you to retrieve a single chart of accounts
|
717
|
+
# @param account_id Unique identifier for retrieving single object
|
718
|
+
# @param [Hash] opts the optional parameters
|
719
|
+
# @return [Accounts]
|
720
|
+
describe 'get_account test' do
|
721
|
+
it 'should work' do
|
722
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
723
|
+
end
|
724
|
+
end
|
725
|
+
|
726
|
+
# unit tests for get_account_attachment_by_file_name
|
727
|
+
# Allows you to retrieve Attachment on Account by Filename
|
728
|
+
# @param account_id Unique identifier for Account object
|
729
|
+
# @param file_name Name of the attachment
|
730
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
731
|
+
# @param [Hash] opts the optional parameters
|
732
|
+
# @return [File]
|
733
|
+
describe 'get_account_attachment_by_file_name test' do
|
734
|
+
it 'should work' do
|
735
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
736
|
+
end
|
737
|
+
end
|
738
|
+
|
739
|
+
# unit tests for get_account_attachment_by_id
|
740
|
+
# Allows you to retrieve specific Attachment on Account
|
741
|
+
# @param account_id Unique identifier for Account object
|
742
|
+
# @param attachment_id Unique identifier for Attachment object
|
743
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
744
|
+
# @param [Hash] opts the optional parameters
|
745
|
+
# @return [File]
|
746
|
+
describe 'get_account_attachment_by_id test' do
|
747
|
+
it 'should work' do
|
748
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
749
|
+
end
|
750
|
+
end
|
751
|
+
|
752
|
+
# unit tests for get_account_attachments
|
753
|
+
# Allows you to retrieve Attachments for accounts
|
754
|
+
# @param account_id Unique identifier for Account object
|
755
|
+
# @param [Hash] opts the optional parameters
|
756
|
+
# @return [Attachments]
|
757
|
+
describe 'get_account_attachments test' do
|
758
|
+
it 'should work' do
|
759
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
760
|
+
end
|
761
|
+
end
|
762
|
+
|
763
|
+
# unit tests for get_accounts
|
764
|
+
# Allows you to retrieve the full chart of accounts
|
765
|
+
# @param [Hash] opts the optional parameters
|
766
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
767
|
+
# @option opts [String] :where Filter by an any element
|
768
|
+
# @option opts [String] :order Order by an any element
|
769
|
+
# @return [Accounts]
|
770
|
+
describe 'get_accounts test' do
|
771
|
+
it 'should work' do
|
772
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
773
|
+
end
|
774
|
+
end
|
775
|
+
|
776
|
+
# unit tests for get_bank_transaction
|
777
|
+
# Allows you to retrieve a single spend or receive money transaction
|
778
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
779
|
+
# @param [Hash] opts the optional parameters
|
780
|
+
# @return [BankTransactions]
|
781
|
+
describe 'get_bank_transaction test' do
|
782
|
+
it 'should work' do
|
783
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
784
|
+
end
|
785
|
+
end
|
786
|
+
|
787
|
+
# unit tests for get_bank_transaction_attachment_by_file_name
|
788
|
+
# Allows you to retrieve Attachments on BankTransaction by Filename
|
789
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
790
|
+
# @param file_name The name of the file being attached
|
791
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
792
|
+
# @param [Hash] opts the optional parameters
|
793
|
+
# @return [File]
|
794
|
+
describe 'get_bank_transaction_attachment_by_file_name test' do
|
795
|
+
it 'should work' do
|
796
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
797
|
+
end
|
798
|
+
end
|
799
|
+
|
800
|
+
# unit tests for get_bank_transaction_attachment_by_id
|
801
|
+
# Allows you to retrieve Attachments on a specific BankTransaction
|
802
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
803
|
+
# @param attachment_id Xero generated unique identifier for an attachment
|
804
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
805
|
+
# @param [Hash] opts the optional parameters
|
806
|
+
# @return [File]
|
807
|
+
describe 'get_bank_transaction_attachment_by_id test' do
|
808
|
+
it 'should work' do
|
809
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
810
|
+
end
|
811
|
+
end
|
812
|
+
|
813
|
+
# unit tests for get_bank_transaction_attachments
|
814
|
+
# Allows you to retrieve any attachments to bank transactions
|
815
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
816
|
+
# @param [Hash] opts the optional parameters
|
817
|
+
# @return [Attachments]
|
818
|
+
describe 'get_bank_transaction_attachments test' do
|
819
|
+
it 'should work' do
|
820
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
821
|
+
end
|
822
|
+
end
|
823
|
+
|
824
|
+
# unit tests for get_bank_transactions
|
825
|
+
# Allows you to retrieve any spend or receive money transactions
|
826
|
+
# @param [Hash] opts the optional parameters
|
827
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
828
|
+
# @option opts [String] :where Filter by an any element
|
829
|
+
# @option opts [String] :order Order by an any element
|
830
|
+
# @option opts [Integer] :page e.g. page=1 – Up to 100 bank transactions will be returned in a single API call with line items shown for each bank transaction
|
831
|
+
# @return [BankTransactions]
|
832
|
+
describe 'get_bank_transactions test' do
|
833
|
+
it 'should work' do
|
834
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
835
|
+
end
|
836
|
+
end
|
837
|
+
|
838
|
+
# unit tests for get_bank_transactions_history
|
839
|
+
# Allows you to retrieve history from a bank transactions
|
840
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
841
|
+
# @param [Hash] opts the optional parameters
|
842
|
+
# @return [HistoryRecords]
|
843
|
+
describe 'get_bank_transactions_history test' do
|
844
|
+
it 'should work' do
|
845
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
846
|
+
end
|
847
|
+
end
|
848
|
+
|
849
|
+
# unit tests for get_bank_transfer
|
850
|
+
# Allows you to retrieve any bank transfers
|
851
|
+
# @param bank_transfer_id Xero generated unique identifier for a bank transfer
|
852
|
+
# @param [Hash] opts the optional parameters
|
853
|
+
# @return [BankTransfers]
|
854
|
+
describe 'get_bank_transfer test' do
|
855
|
+
it 'should work' do
|
856
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
857
|
+
end
|
858
|
+
end
|
859
|
+
|
860
|
+
# unit tests for get_bank_transfer_attachment_by_file_name
|
861
|
+
# Allows you to retrieve Attachments on BankTransfer by file name
|
862
|
+
# @param bank_transfer_id Xero generated unique identifier for a bank transfer
|
863
|
+
# @param file_name The name of the file being attached to a Bank Transfer
|
864
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
865
|
+
# @param [Hash] opts the optional parameters
|
866
|
+
# @return [File]
|
867
|
+
describe 'get_bank_transfer_attachment_by_file_name test' do
|
868
|
+
it 'should work' do
|
869
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
870
|
+
end
|
871
|
+
end
|
872
|
+
|
873
|
+
# unit tests for get_bank_transfer_attachment_by_id
|
874
|
+
# Allows you to retrieve Attachments on BankTransfer
|
875
|
+
# @param bank_transfer_id Xero generated unique identifier for a bank transfer
|
876
|
+
# @param attachment_id Xero generated unique identifier for an Attachment to a bank transfer
|
877
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
878
|
+
# @param [Hash] opts the optional parameters
|
879
|
+
# @return [File]
|
880
|
+
describe 'get_bank_transfer_attachment_by_id test' do
|
881
|
+
it 'should work' do
|
882
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
883
|
+
end
|
884
|
+
end
|
885
|
+
|
886
|
+
# unit tests for get_bank_transfer_attachments
|
887
|
+
# Allows you to retrieve Attachments from bank transfers
|
888
|
+
# @param bank_transfer_id Xero generated unique identifier for a bank transfer
|
889
|
+
# @param [Hash] opts the optional parameters
|
890
|
+
# @return [Attachments]
|
891
|
+
describe 'get_bank_transfer_attachments test' do
|
892
|
+
it 'should work' do
|
893
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
894
|
+
end
|
895
|
+
end
|
896
|
+
|
897
|
+
# unit tests for get_bank_transfer_history
|
898
|
+
# Allows you to retrieve history from a bank transfers
|
899
|
+
# @param bank_transfer_id Xero generated unique identifier for a bank transfer
|
900
|
+
# @param [Hash] opts the optional parameters
|
901
|
+
# @return [HistoryRecords]
|
902
|
+
describe 'get_bank_transfer_history test' do
|
903
|
+
it 'should work' do
|
904
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
908
|
+
# unit tests for get_bank_transfers
|
909
|
+
# Allows you to retrieve all bank transfers
|
910
|
+
# @param [Hash] opts the optional parameters
|
911
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
912
|
+
# @option opts [String] :where Filter by an any element
|
913
|
+
# @option opts [String] :order Order by an any element
|
914
|
+
# @return [BankTransfers]
|
915
|
+
describe 'get_bank_transfers test' do
|
916
|
+
it 'should work' do
|
917
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
921
|
+
# unit tests for get_batch_payment_history
|
922
|
+
# Allows you to retrieve history from a Batch Payment
|
923
|
+
# @param batch_payment_id Unique identifier for BatchPayment
|
924
|
+
# @param [Hash] opts the optional parameters
|
925
|
+
# @return [HistoryRecords]
|
926
|
+
describe 'get_batch_payment_history test' do
|
927
|
+
it 'should work' do
|
928
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
929
|
+
end
|
930
|
+
end
|
931
|
+
|
932
|
+
# unit tests for get_batch_payments
|
933
|
+
# Retrieve either one or many BatchPayments for invoices
|
934
|
+
# @param [Hash] opts the optional parameters
|
935
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
936
|
+
# @option opts [String] :where Filter by an any element
|
937
|
+
# @option opts [String] :order Order by an any element
|
938
|
+
# @return [BatchPayments]
|
939
|
+
describe 'get_batch_payments test' do
|
940
|
+
it 'should work' do
|
941
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
942
|
+
end
|
943
|
+
end
|
944
|
+
|
945
|
+
# unit tests for get_branding_theme
|
946
|
+
# Allows you to retrieve a specific BrandingThemes
|
947
|
+
# @param branding_theme_id Unique identifier for a Branding Theme
|
948
|
+
# @param [Hash] opts the optional parameters
|
949
|
+
# @return [BrandingThemes]
|
950
|
+
describe 'get_branding_theme test' do
|
951
|
+
it 'should work' do
|
952
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
953
|
+
end
|
954
|
+
end
|
955
|
+
|
956
|
+
# unit tests for get_branding_theme_payment_services
|
957
|
+
# Allows you to retrieve the Payment services for a Branding Theme
|
958
|
+
# @param branding_theme_id Unique identifier for a Branding Theme
|
959
|
+
# @param [Hash] opts the optional parameters
|
960
|
+
# @return [PaymentServices]
|
961
|
+
describe 'get_branding_theme_payment_services test' do
|
962
|
+
it 'should work' do
|
963
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
964
|
+
end
|
965
|
+
end
|
966
|
+
|
967
|
+
# unit tests for get_branding_themes
|
968
|
+
# Allows you to retrieve all the BrandingThemes
|
969
|
+
# @param [Hash] opts the optional parameters
|
970
|
+
# @return [BrandingThemes]
|
971
|
+
describe 'get_branding_themes test' do
|
972
|
+
it 'should work' do
|
973
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
974
|
+
end
|
975
|
+
end
|
976
|
+
|
977
|
+
# unit tests for get_contact
|
978
|
+
# Allows you to retrieve, add and update contacts in a Xero organisation
|
979
|
+
# @param contact_id Unique identifier for a Contact
|
980
|
+
# @param [Hash] opts the optional parameters
|
981
|
+
# @return [Contacts]
|
982
|
+
describe 'get_contact test' do
|
983
|
+
it 'should work' do
|
984
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
985
|
+
end
|
986
|
+
end
|
987
|
+
|
988
|
+
# unit tests for get_contact_attachment_by_file_name
|
989
|
+
# Allows you to retrieve Attachments on Contacts by file name
|
990
|
+
# @param contact_id Unique identifier for a Contact
|
991
|
+
# @param file_name Name for the file you are attaching
|
992
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
993
|
+
# @param [Hash] opts the optional parameters
|
994
|
+
# @return [File]
|
995
|
+
describe 'get_contact_attachment_by_file_name test' do
|
996
|
+
it 'should work' do
|
997
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
998
|
+
end
|
999
|
+
end
|
1000
|
+
|
1001
|
+
# unit tests for get_contact_attachment_by_id
|
1002
|
+
# Allows you to retrieve Attachments on Contacts
|
1003
|
+
# @param contact_id Unique identifier for a Contact
|
1004
|
+
# @param attachment_id Unique identifier for a Attachment
|
1005
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1006
|
+
# @param [Hash] opts the optional parameters
|
1007
|
+
# @return [File]
|
1008
|
+
describe 'get_contact_attachment_by_id test' do
|
1009
|
+
it 'should work' do
|
1010
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1011
|
+
end
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
# unit tests for get_contact_attachments
|
1015
|
+
# Allows you to retrieve, add and update contacts in a Xero organisation
|
1016
|
+
# @param contact_id Unique identifier for a Contact
|
1017
|
+
# @param [Hash] opts the optional parameters
|
1018
|
+
# @return [Attachments]
|
1019
|
+
describe 'get_contact_attachments test' do
|
1020
|
+
it 'should work' do
|
1021
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1022
|
+
end
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
# unit tests for get_contact_cis_settings
|
1026
|
+
# Allows you to retrieve CISSettings for a contact in a Xero organisation
|
1027
|
+
# @param contact_id Unique identifier for a Contact
|
1028
|
+
# @param [Hash] opts the optional parameters
|
1029
|
+
# @return [CISSettings]
|
1030
|
+
describe 'get_contact_cis_settings test' do
|
1031
|
+
it 'should work' do
|
1032
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1033
|
+
end
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# unit tests for get_contact_group
|
1037
|
+
# Allows you to retrieve a unique Contract Group by ID
|
1038
|
+
# @param contact_group_id Unique identifier for a Contact Group
|
1039
|
+
# @param [Hash] opts the optional parameters
|
1040
|
+
# @return [ContactGroups]
|
1041
|
+
describe 'get_contact_group test' do
|
1042
|
+
it 'should work' do
|
1043
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1044
|
+
end
|
1045
|
+
end
|
1046
|
+
|
1047
|
+
# unit tests for get_contact_groups
|
1048
|
+
# Allows you to retrieve the ContactID and Name of all the contacts in a contact group
|
1049
|
+
# @param [Hash] opts the optional parameters
|
1050
|
+
# @option opts [String] :where Filter by an any element
|
1051
|
+
# @option opts [String] :order Order by an any element
|
1052
|
+
# @return [ContactGroups]
|
1053
|
+
describe 'get_contact_groups test' do
|
1054
|
+
it 'should work' do
|
1055
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1056
|
+
end
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# unit tests for get_contact_history
|
1060
|
+
# Allows you to retrieve a history records of an Contact
|
1061
|
+
# @param contact_id Unique identifier for a Contact
|
1062
|
+
# @param [Hash] opts the optional parameters
|
1063
|
+
# @return [HistoryRecords]
|
1064
|
+
describe 'get_contact_history test' do
|
1065
|
+
it 'should work' do
|
1066
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1067
|
+
end
|
1068
|
+
end
|
1069
|
+
|
1070
|
+
# unit tests for get_contacts
|
1071
|
+
# Allows you to retrieve, add and update contacts in a Xero organisation
|
1072
|
+
# @param [Hash] opts the optional parameters
|
1073
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1074
|
+
# @option opts [String] :where Filter by an any element
|
1075
|
+
# @option opts [String] :order Order by an any element
|
1076
|
+
# @option opts [String] :i_ds Filter by a comma separated list of ContactIDs. Allows you to retrieve a specific set of contacts in a single call.
|
1077
|
+
# @option opts [Integer] :page e.g. page=1 - Up to 100 contacts will be returned in a single API call.
|
1078
|
+
# @option opts [BOOLEAN] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
|
1079
|
+
# @return [Contacts]
|
1080
|
+
describe 'get_contacts test' do
|
1081
|
+
it 'should work' do
|
1082
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1083
|
+
end
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
# unit tests for get_credit_note
|
1087
|
+
# Allows you to retrieve a specific credit note
|
1088
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
1089
|
+
# @param [Hash] opts the optional parameters
|
1090
|
+
# @return [CreditNotes]
|
1091
|
+
describe 'get_credit_note test' do
|
1092
|
+
it 'should work' do
|
1093
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1094
|
+
end
|
1095
|
+
end
|
1096
|
+
|
1097
|
+
# unit tests for get_credit_note_as_pdf
|
1098
|
+
# Allows you to retrieve Credit Note as PDF files
|
1099
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
1100
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1101
|
+
# @param [Hash] opts the optional parameters
|
1102
|
+
# @return [File]
|
1103
|
+
describe 'get_credit_note_as_pdf test' do
|
1104
|
+
it 'should work' do
|
1105
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1106
|
+
end
|
1107
|
+
end
|
1108
|
+
|
1109
|
+
# unit tests for get_credit_note_attachment_by_file_name
|
1110
|
+
# Allows you to retrieve Attachments on CreditNote by file name
|
1111
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
1112
|
+
# @param file_name Name of the file you are attaching to Credit Note
|
1113
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1114
|
+
# @param [Hash] opts the optional parameters
|
1115
|
+
# @return [File]
|
1116
|
+
describe 'get_credit_note_attachment_by_file_name test' do
|
1117
|
+
it 'should work' do
|
1118
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1119
|
+
end
|
1120
|
+
end
|
1121
|
+
|
1122
|
+
# unit tests for get_credit_note_attachment_by_id
|
1123
|
+
# Allows you to retrieve Attachments on CreditNote
|
1124
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
1125
|
+
# @param attachment_id Unique identifier for a Attachment
|
1126
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1127
|
+
# @param [Hash] opts the optional parameters
|
1128
|
+
# @return [File]
|
1129
|
+
describe 'get_credit_note_attachment_by_id test' do
|
1130
|
+
it 'should work' do
|
1131
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1132
|
+
end
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
# unit tests for get_credit_note_attachments
|
1136
|
+
# Allows you to retrieve Attachments for credit notes
|
1137
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
1138
|
+
# @param [Hash] opts the optional parameters
|
1139
|
+
# @return [Attachments]
|
1140
|
+
describe 'get_credit_note_attachments test' do
|
1141
|
+
it 'should work' do
|
1142
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1143
|
+
end
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
# unit tests for get_credit_note_history
|
1147
|
+
# Allows you to retrieve a history records of an CreditNote
|
1148
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
1149
|
+
# @param [Hash] opts the optional parameters
|
1150
|
+
# @return [HistoryRecords]
|
1151
|
+
describe 'get_credit_note_history test' do
|
1152
|
+
it 'should work' do
|
1153
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1154
|
+
end
|
1155
|
+
end
|
1156
|
+
|
1157
|
+
# unit tests for get_credit_notes
|
1158
|
+
# Allows you to retrieve any credit notes
|
1159
|
+
# @param [Hash] opts the optional parameters
|
1160
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1161
|
+
# @option opts [String] :where Filter by an any element
|
1162
|
+
# @option opts [String] :order Order by an any element
|
1163
|
+
# @option opts [Integer] :page e.g. page=1 – Up to 100 credit notes will be returned in a single API call with line items shown for each credit note
|
1164
|
+
# @return [CreditNotes]
|
1165
|
+
describe 'get_credit_notes test' do
|
1166
|
+
it 'should work' do
|
1167
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1168
|
+
end
|
1169
|
+
end
|
1170
|
+
|
1171
|
+
# unit tests for get_currencies
|
1172
|
+
# Allows you to retrieve currencies for your organisation
|
1173
|
+
# @param [Hash] opts the optional parameters
|
1174
|
+
# @option opts [String] :where Filter by an any element
|
1175
|
+
# @option opts [String] :order Order by an any element
|
1176
|
+
# @return [Currencies]
|
1177
|
+
describe 'get_currencies test' do
|
1178
|
+
it 'should work' do
|
1179
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1180
|
+
end
|
1181
|
+
end
|
1182
|
+
|
1183
|
+
# unit tests for get_employee
|
1184
|
+
# Allows you to retrieve a specific employee used in Xero payrun
|
1185
|
+
# @param employee_id Unique identifier for a Employee
|
1186
|
+
# @param [Hash] opts the optional parameters
|
1187
|
+
# @return [Employees]
|
1188
|
+
describe 'get_employee test' do
|
1189
|
+
it 'should work' do
|
1190
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1191
|
+
end
|
1192
|
+
end
|
1193
|
+
|
1194
|
+
# unit tests for get_employees
|
1195
|
+
# Allows you to retrieve employees used in Xero payrun
|
1196
|
+
# @param [Hash] opts the optional parameters
|
1197
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1198
|
+
# @option opts [String] :where Filter by an any element
|
1199
|
+
# @option opts [String] :order Order by an any element
|
1200
|
+
# @return [Employees]
|
1201
|
+
describe 'get_employees test' do
|
1202
|
+
it 'should work' do
|
1203
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1204
|
+
end
|
1205
|
+
end
|
1206
|
+
|
1207
|
+
# unit tests for get_expense_claim
|
1208
|
+
# Allows you to retrieve a specified expense claim
|
1209
|
+
# @param expense_claim_id Unique identifier for a ExpenseClaim
|
1210
|
+
# @param [Hash] opts the optional parameters
|
1211
|
+
# @return [ExpenseClaims]
|
1212
|
+
describe 'get_expense_claim test' do
|
1213
|
+
it 'should work' do
|
1214
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1215
|
+
end
|
1216
|
+
end
|
1217
|
+
|
1218
|
+
# unit tests for get_expense_claim_history
|
1219
|
+
# Allows you to retrieve a history records of an ExpenseClaim
|
1220
|
+
# @param expense_claim_id Unique identifier for a ExpenseClaim
|
1221
|
+
# @param [Hash] opts the optional parameters
|
1222
|
+
# @return [HistoryRecords]
|
1223
|
+
describe 'get_expense_claim_history test' do
|
1224
|
+
it 'should work' do
|
1225
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
|
1229
|
+
# unit tests for get_expense_claims
|
1230
|
+
# Allows you to retrieve expense claims
|
1231
|
+
# @param [Hash] opts the optional parameters
|
1232
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1233
|
+
# @option opts [String] :where Filter by an any element
|
1234
|
+
# @option opts [String] :order Order by an any element
|
1235
|
+
# @return [ExpenseClaims]
|
1236
|
+
describe 'get_expense_claims test' do
|
1237
|
+
it 'should work' do
|
1238
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1239
|
+
end
|
1240
|
+
end
|
1241
|
+
|
1242
|
+
# unit tests for get_invoice
|
1243
|
+
# Allows you to retrieve a specified sales invoice or purchase bill
|
1244
|
+
# @param invoice_id Unique identifier for an Invoice
|
1245
|
+
# @param [Hash] opts the optional parameters
|
1246
|
+
# @return [Invoices]
|
1247
|
+
describe 'get_invoice test' do
|
1248
|
+
it 'should work' do
|
1249
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1250
|
+
end
|
1251
|
+
end
|
1252
|
+
|
1253
|
+
# unit tests for get_invoice_as_pdf
|
1254
|
+
# Allows you to retrieve invoices or purchase bills as PDF files
|
1255
|
+
# @param invoice_id Unique identifier for an Invoice
|
1256
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1257
|
+
# @param [Hash] opts the optional parameters
|
1258
|
+
# @return [File]
|
1259
|
+
describe 'get_invoice_as_pdf test' do
|
1260
|
+
it 'should work' do
|
1261
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1262
|
+
end
|
1263
|
+
end
|
1264
|
+
|
1265
|
+
# unit tests for get_invoice_attachment_by_file_name
|
1266
|
+
# Allows you to retrieve Attachment on invoices or purchase bills by it's filename
|
1267
|
+
# @param invoice_id Unique identifier for an Invoice
|
1268
|
+
# @param file_name Name of the file you are attaching
|
1269
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1270
|
+
# @param [Hash] opts the optional parameters
|
1271
|
+
# @return [File]
|
1272
|
+
describe 'get_invoice_attachment_by_file_name test' do
|
1273
|
+
it 'should work' do
|
1274
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1275
|
+
end
|
1276
|
+
end
|
1277
|
+
|
1278
|
+
# unit tests for get_invoice_attachment_by_id
|
1279
|
+
# Allows you to retrieve a specified Attachment on invoices or purchase bills by it's ID
|
1280
|
+
# @param invoice_id Unique identifier for an Invoice
|
1281
|
+
# @param attachment_id Unique identifier for an Attachment
|
1282
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1283
|
+
# @param [Hash] opts the optional parameters
|
1284
|
+
# @return [File]
|
1285
|
+
describe 'get_invoice_attachment_by_id test' do
|
1286
|
+
it 'should work' do
|
1287
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1288
|
+
end
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
# unit tests for get_invoice_attachments
|
1292
|
+
# Allows you to retrieve Attachments on invoices or purchase bills
|
1293
|
+
# @param invoice_id Unique identifier for an Invoice
|
1294
|
+
# @param [Hash] opts the optional parameters
|
1295
|
+
# @return [Attachments]
|
1296
|
+
describe 'get_invoice_attachments test' do
|
1297
|
+
it 'should work' do
|
1298
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1299
|
+
end
|
1300
|
+
end
|
1301
|
+
|
1302
|
+
# unit tests for get_invoice_history
|
1303
|
+
# Allows you to retrieve a history records of an invoice
|
1304
|
+
# @param invoice_id Unique identifier for an Invoice
|
1305
|
+
# @param [Hash] opts the optional parameters
|
1306
|
+
# @return [HistoryRecords]
|
1307
|
+
describe 'get_invoice_history test' do
|
1308
|
+
it 'should work' do
|
1309
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1310
|
+
end
|
1311
|
+
end
|
1312
|
+
|
1313
|
+
# unit tests for get_invoice_reminders
|
1314
|
+
# Allows you to retrieve invoice reminder settings
|
1315
|
+
# @param [Hash] opts the optional parameters
|
1316
|
+
# @return [InvoiceReminders]
|
1317
|
+
describe 'get_invoice_reminders test' do
|
1318
|
+
it 'should work' do
|
1319
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1320
|
+
end
|
1321
|
+
end
|
1322
|
+
|
1323
|
+
# unit tests for get_invoices
|
1324
|
+
# Allows you to retrieve any sales invoices or purchase bills
|
1325
|
+
# @param [Hash] opts the optional parameters
|
1326
|
+
# @option opts [String] :xero_tenant_id Xero identifier for Tenant
|
1327
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1328
|
+
# @option opts [String] :where Filter by an any element
|
1329
|
+
# @option opts [String] :order Order by an any element
|
1330
|
+
# @option opts [String] :i_ds Filter by a comma-separated list of InvoicesIDs. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
|
1331
|
+
# @option opts [String] :invoice_numbers Filter by a comma-separated list of InvoiceNumbers. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
|
1332
|
+
# @option opts [String] :contact_i_ds Filter by a comma-separated list of ContactIDs. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
|
1333
|
+
# @option opts [String] :statuses Filter by a comma-separated list Statuses. For faster response times we recommend using these explicit parameters instead of passing OR conditions into the Where filter.
|
1334
|
+
# @option opts [Integer] :page e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
|
1335
|
+
# @option opts [BOOLEAN] :include_archived e.g. includeArchived=true - Contacts with a status of ARCHIVED will be included in the response
|
1336
|
+
# @option opts [BOOLEAN] :created_by_my_app When set to true you'll only retrieve Invoices created by your app
|
1337
|
+
# @return [Invoices]
|
1338
|
+
describe 'get_invoices test' do
|
1339
|
+
it 'should work' do
|
1340
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1341
|
+
end
|
1342
|
+
end
|
1343
|
+
|
1344
|
+
# unit tests for get_item
|
1345
|
+
# Allows you to retrieve a specified item
|
1346
|
+
# @param item_id Unique identifier for an Item
|
1347
|
+
# @param [Hash] opts the optional parameters
|
1348
|
+
# @return [Items]
|
1349
|
+
describe 'get_item test' do
|
1350
|
+
it 'should work' do
|
1351
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1352
|
+
end
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
# unit tests for get_item_history
|
1356
|
+
# Allows you to retrieve history for items
|
1357
|
+
# @param item_id Unique identifier for an Item
|
1358
|
+
# @param [Hash] opts the optional parameters
|
1359
|
+
# @return [HistoryRecords]
|
1360
|
+
describe 'get_item_history test' do
|
1361
|
+
it 'should work' do
|
1362
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1363
|
+
end
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
# unit tests for get_items
|
1367
|
+
# Allows you to retrieve any items
|
1368
|
+
# @param [Hash] opts the optional parameters
|
1369
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1370
|
+
# @option opts [String] :where Filter by an any element
|
1371
|
+
# @option opts [String] :order Order by an any element
|
1372
|
+
# @return [Items]
|
1373
|
+
describe 'get_items test' do
|
1374
|
+
it 'should work' do
|
1375
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1376
|
+
end
|
1377
|
+
end
|
1378
|
+
|
1379
|
+
# unit tests for get_journal
|
1380
|
+
# Allows you to retrieve a specified journals.
|
1381
|
+
# @param journal_id Unique identifier for a Journal
|
1382
|
+
# @param [Hash] opts the optional parameters
|
1383
|
+
# @return [Journals]
|
1384
|
+
describe 'get_journal test' do
|
1385
|
+
it 'should work' do
|
1386
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1387
|
+
end
|
1388
|
+
end
|
1389
|
+
|
1390
|
+
# unit tests for get_journals
|
1391
|
+
# Allows you to retrieve any journals.
|
1392
|
+
# @param [Hash] opts the optional parameters
|
1393
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1394
|
+
# @option opts [Integer] :offset Offset by a specified journal number. e.g. journals with a JournalNumber greater than the offset will be returned
|
1395
|
+
# @option opts [BOOLEAN] :payments_only Filter to retrieve journals on a cash basis. Journals are returned on an accrual basis by default.
|
1396
|
+
# @return [Journals]
|
1397
|
+
describe 'get_journals test' do
|
1398
|
+
it 'should work' do
|
1399
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1400
|
+
end
|
1401
|
+
end
|
1402
|
+
|
1403
|
+
# unit tests for get_linked_transaction
|
1404
|
+
# Allows you to retrieve a specified linked transactions (billable expenses)
|
1405
|
+
# @param linked_transaction_id Unique identifier for a LinkedTransaction
|
1406
|
+
# @param [Hash] opts the optional parameters
|
1407
|
+
# @return [LinkedTransactions]
|
1408
|
+
describe 'get_linked_transaction test' do
|
1409
|
+
it 'should work' do
|
1410
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1411
|
+
end
|
1412
|
+
end
|
1413
|
+
|
1414
|
+
# unit tests for get_linked_transactions
|
1415
|
+
# Retrieve linked transactions (billable expenses)
|
1416
|
+
# @param [Hash] opts the optional parameters
|
1417
|
+
# @option opts [Integer] :page Up to 100 linked transactions will be returned in a single API call. Use the page parameter to specify the page to be returned e.g. page=1.
|
1418
|
+
# @option opts [String] :linked_transaction_id The Xero identifier for an Linked Transaction
|
1419
|
+
# @option opts [String] :source_transaction_id Filter by the SourceTransactionID. Get all the linked transactions created from a particular ACCPAY invoice
|
1420
|
+
# @option opts [String] :contact_id Filter by the ContactID. Get all the linked transactions that have been assigned to a particular customer.
|
1421
|
+
# @option opts [String] :status Filter by the combination of ContactID and Status. Get all the linked transactions that have been assigned to a particular customer and have a particular status e.g. GET /LinkedTransactions?ContactID=4bb34b03-3378-4bb2-a0ed-6345abf3224e&Status=APPROVED.
|
1422
|
+
# @option opts [String] :target_transaction_id Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice
|
1423
|
+
# @return [LinkedTransactions]
|
1424
|
+
describe 'get_linked_transactions test' do
|
1425
|
+
it 'should work' do
|
1426
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1427
|
+
end
|
1428
|
+
end
|
1429
|
+
|
1430
|
+
# unit tests for get_manual_journal
|
1431
|
+
# Allows you to retrieve a specified manual journals
|
1432
|
+
# @param manual_journal_id Unique identifier for a ManualJournal
|
1433
|
+
# @param [Hash] opts the optional parameters
|
1434
|
+
# @return [ManualJournals]
|
1435
|
+
describe 'get_manual_journal test' do
|
1436
|
+
it 'should work' do
|
1437
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1438
|
+
end
|
1439
|
+
end
|
1440
|
+
|
1441
|
+
# unit tests for get_manual_journal_attachment_by_file_name
|
1442
|
+
# Allows you to retrieve specified Attachment on ManualJournal by file name
|
1443
|
+
# @param manual_journal_id Unique identifier for a ManualJournal
|
1444
|
+
# @param file_name The name of the file being attached to a ManualJournal
|
1445
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1446
|
+
# @param [Hash] opts the optional parameters
|
1447
|
+
# @return [File]
|
1448
|
+
describe 'get_manual_journal_attachment_by_file_name test' do
|
1449
|
+
it 'should work' do
|
1450
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1451
|
+
end
|
1452
|
+
end
|
1453
|
+
|
1454
|
+
# unit tests for get_manual_journal_attachment_by_id
|
1455
|
+
# Allows you to retrieve specified Attachment on ManualJournals
|
1456
|
+
# @param manual_journal_id Unique identifier for a ManualJournal
|
1457
|
+
# @param attachment_id Unique identifier for a Attachment
|
1458
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1459
|
+
# @param [Hash] opts the optional parameters
|
1460
|
+
# @return [File]
|
1461
|
+
describe 'get_manual_journal_attachment_by_id test' do
|
1462
|
+
it 'should work' do
|
1463
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1464
|
+
end
|
1465
|
+
end
|
1466
|
+
|
1467
|
+
# unit tests for get_manual_journal_attachments
|
1468
|
+
# Allows you to retrieve Attachment for manual journals
|
1469
|
+
# @param manual_journal_id Unique identifier for a ManualJournal
|
1470
|
+
# @param [Hash] opts the optional parameters
|
1471
|
+
# @return [Attachments]
|
1472
|
+
describe 'get_manual_journal_attachments test' do
|
1473
|
+
it 'should work' do
|
1474
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1475
|
+
end
|
1476
|
+
end
|
1477
|
+
|
1478
|
+
# unit tests for get_manual_journals
|
1479
|
+
# Allows you to retrieve any manual journals
|
1480
|
+
# @param [Hash] opts the optional parameters
|
1481
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1482
|
+
# @option opts [String] :where Filter by an any element
|
1483
|
+
# @option opts [String] :order Order by an any element
|
1484
|
+
# @option opts [Integer] :page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
|
1485
|
+
# @return [ManualJournals]
|
1486
|
+
describe 'get_manual_journals test' do
|
1487
|
+
it 'should work' do
|
1488
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1489
|
+
end
|
1490
|
+
end
|
1491
|
+
|
1492
|
+
# unit tests for get_online_invoice
|
1493
|
+
# Allows you to retrieve a URL to an online invoice
|
1494
|
+
# @param invoice_id Unique identifier for an Invoice
|
1495
|
+
# @param [Hash] opts the optional parameters
|
1496
|
+
# @return [OnlineInvoices]
|
1497
|
+
describe 'get_online_invoice test' do
|
1498
|
+
it 'should work' do
|
1499
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1500
|
+
end
|
1501
|
+
end
|
1502
|
+
|
1503
|
+
# unit tests for get_organisation_cis_settings
|
1504
|
+
# Allows you To verify if an organisation is using contruction industry scheme, you can retrieve the CIS settings for the organistaion.
|
1505
|
+
# @param organisation_id
|
1506
|
+
# @param [Hash] opts the optional parameters
|
1507
|
+
# @return [CISOrgSetting]
|
1508
|
+
describe 'get_organisation_cis_settings test' do
|
1509
|
+
it 'should work' do
|
1510
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1511
|
+
end
|
1512
|
+
end
|
1513
|
+
|
1514
|
+
# unit tests for get_organisations
|
1515
|
+
# Allows you to retrieve Organisation details
|
1516
|
+
# @param [Hash] opts the optional parameters
|
1517
|
+
# @return [Organisations]
|
1518
|
+
describe 'get_organisations test' do
|
1519
|
+
it 'should work' do
|
1520
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1521
|
+
end
|
1522
|
+
end
|
1523
|
+
|
1524
|
+
# unit tests for get_overpayment
|
1525
|
+
# Allows you to retrieve a specified overpayments
|
1526
|
+
# @param overpayment_id Unique identifier for a Overpayment
|
1527
|
+
# @param [Hash] opts the optional parameters
|
1528
|
+
# @return [Overpayments]
|
1529
|
+
describe 'get_overpayment test' do
|
1530
|
+
it 'should work' do
|
1531
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1532
|
+
end
|
1533
|
+
end
|
1534
|
+
|
1535
|
+
# unit tests for get_overpayment_history
|
1536
|
+
# Allows you to retrieve a history records of an Overpayment
|
1537
|
+
# @param overpayment_id Unique identifier for a Overpayment
|
1538
|
+
# @param [Hash] opts the optional parameters
|
1539
|
+
# @return [HistoryRecords]
|
1540
|
+
describe 'get_overpayment_history test' do
|
1541
|
+
it 'should work' do
|
1542
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1543
|
+
end
|
1544
|
+
end
|
1545
|
+
|
1546
|
+
# unit tests for get_overpayments
|
1547
|
+
# Allows you to retrieve overpayments
|
1548
|
+
# @param [Hash] opts the optional parameters
|
1549
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1550
|
+
# @option opts [String] :where Filter by an any element
|
1551
|
+
# @option opts [String] :order Order by an any element
|
1552
|
+
# @option opts [Integer] :page e.g. page=1 – Up to 100 overpayments will be returned in a single API call with line items shown for each overpayment
|
1553
|
+
# @return [Overpayments]
|
1554
|
+
describe 'get_overpayments test' do
|
1555
|
+
it 'should work' do
|
1556
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1557
|
+
end
|
1558
|
+
end
|
1559
|
+
|
1560
|
+
# unit tests for get_payment
|
1561
|
+
# Allows you to retrieve a specified payment for invoices and credit notes
|
1562
|
+
# @param payment_id Unique identifier for a Payment
|
1563
|
+
# @param [Hash] opts the optional parameters
|
1564
|
+
# @return [Payments]
|
1565
|
+
describe 'get_payment test' do
|
1566
|
+
it 'should work' do
|
1567
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1568
|
+
end
|
1569
|
+
end
|
1570
|
+
|
1571
|
+
# unit tests for get_payment_history
|
1572
|
+
# Allows you to retrieve history records of a payment
|
1573
|
+
# @param payment_id Unique identifier for a Payment
|
1574
|
+
# @param [Hash] opts the optional parameters
|
1575
|
+
# @return [HistoryRecords]
|
1576
|
+
describe 'get_payment_history test' do
|
1577
|
+
it 'should work' do
|
1578
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1579
|
+
end
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
# unit tests for get_payment_services
|
1583
|
+
# Allows you to retrieve payment services
|
1584
|
+
# @param [Hash] opts the optional parameters
|
1585
|
+
# @return [PaymentServices]
|
1586
|
+
describe 'get_payment_services test' do
|
1587
|
+
it 'should work' do
|
1588
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1589
|
+
end
|
1590
|
+
end
|
1591
|
+
|
1592
|
+
# unit tests for get_payments
|
1593
|
+
# Allows you to retrieve payments for invoices and credit notes
|
1594
|
+
# @param [Hash] opts the optional parameters
|
1595
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1596
|
+
# @option opts [String] :where Filter by an any element
|
1597
|
+
# @option opts [String] :order Order by an any element
|
1598
|
+
# @return [Payments]
|
1599
|
+
describe 'get_payments test' do
|
1600
|
+
it 'should work' do
|
1601
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1602
|
+
end
|
1603
|
+
end
|
1604
|
+
|
1605
|
+
# unit tests for get_prepayment
|
1606
|
+
# Allows you to retrieve a specified prepayments
|
1607
|
+
# @param prepayment_id Unique identifier for a PrePayment
|
1608
|
+
# @param [Hash] opts the optional parameters
|
1609
|
+
# @return [Prepayments]
|
1610
|
+
describe 'get_prepayment test' do
|
1611
|
+
it 'should work' do
|
1612
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1613
|
+
end
|
1614
|
+
end
|
1615
|
+
|
1616
|
+
# unit tests for get_prepayment_history
|
1617
|
+
# Allows you to retrieve a history records of an Prepayment
|
1618
|
+
# @param prepayment_id Unique identifier for a PrePayment
|
1619
|
+
# @param [Hash] opts the optional parameters
|
1620
|
+
# @return [HistoryRecords]
|
1621
|
+
describe 'get_prepayment_history test' do
|
1622
|
+
it 'should work' do
|
1623
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1624
|
+
end
|
1625
|
+
end
|
1626
|
+
|
1627
|
+
# unit tests for get_prepayments
|
1628
|
+
# Allows you to retrieve prepayments
|
1629
|
+
# @param [Hash] opts the optional parameters
|
1630
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1631
|
+
# @option opts [String] :where Filter by an any element
|
1632
|
+
# @option opts [String] :order Order by an any element
|
1633
|
+
# @option opts [Integer] :page e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
|
1634
|
+
# @return [Prepayments]
|
1635
|
+
describe 'get_prepayments test' do
|
1636
|
+
it 'should work' do
|
1637
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1638
|
+
end
|
1639
|
+
end
|
1640
|
+
|
1641
|
+
# unit tests for get_purchase_order
|
1642
|
+
# Allows you to retrieve a specified purchase orders
|
1643
|
+
# @param purchase_order_id Unique identifier for a PurchaseOrder
|
1644
|
+
# @param [Hash] opts the optional parameters
|
1645
|
+
# @return [PurchaseOrders]
|
1646
|
+
describe 'get_purchase_order test' do
|
1647
|
+
it 'should work' do
|
1648
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1649
|
+
end
|
1650
|
+
end
|
1651
|
+
|
1652
|
+
# unit tests for get_purchase_order_history
|
1653
|
+
# Allows you to retrieve history for PurchaseOrder
|
1654
|
+
# @param purchase_order_id Unique identifier for a PurchaseOrder
|
1655
|
+
# @param [Hash] opts the optional parameters
|
1656
|
+
# @return [HistoryRecords]
|
1657
|
+
describe 'get_purchase_order_history test' do
|
1658
|
+
it 'should work' do
|
1659
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1660
|
+
end
|
1661
|
+
end
|
1662
|
+
|
1663
|
+
# unit tests for get_purchase_orders
|
1664
|
+
# Allows you to retrieve purchase orders
|
1665
|
+
# @param [Hash] opts the optional parameters
|
1666
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1667
|
+
# @option opts [String] :status Filter by purchase order status
|
1668
|
+
# @option opts [String] :date_from Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31
|
1669
|
+
# @option opts [String] :date_to Filter by purchase order date (e.g. GET https://.../PurchaseOrders?DateFrom=2015-12-01&DateTo=2015-12-31
|
1670
|
+
# @option opts [String] :order Order by an any element
|
1671
|
+
# @option opts [Integer] :page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.
|
1672
|
+
# @return [PurchaseOrders]
|
1673
|
+
describe 'get_purchase_orders test' do
|
1674
|
+
it 'should work' do
|
1675
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1676
|
+
end
|
1677
|
+
end
|
1678
|
+
|
1679
|
+
# unit tests for get_receipt
|
1680
|
+
# Allows you to retrieve a specified draft expense claim receipts
|
1681
|
+
# @param receipt_id Unique identifier for a Receipt
|
1682
|
+
# @param [Hash] opts the optional parameters
|
1683
|
+
# @return [Receipts]
|
1684
|
+
describe 'get_receipt test' do
|
1685
|
+
it 'should work' do
|
1686
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1687
|
+
end
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# unit tests for get_receipt_attachment_by_file_name
|
1691
|
+
# Allows you to retrieve Attachments on expense claim receipts by file name
|
1692
|
+
# @param receipt_id Unique identifier for a Receipt
|
1693
|
+
# @param file_name The name of the file being attached to the Receipt
|
1694
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1695
|
+
# @param [Hash] opts the optional parameters
|
1696
|
+
# @return [File]
|
1697
|
+
describe 'get_receipt_attachment_by_file_name test' do
|
1698
|
+
it 'should work' do
|
1699
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1700
|
+
end
|
1701
|
+
end
|
1702
|
+
|
1703
|
+
# unit tests for get_receipt_attachment_by_id
|
1704
|
+
# Allows you to retrieve Attachments on expense claim receipts by ID
|
1705
|
+
# @param receipt_id Unique identifier for a Receipt
|
1706
|
+
# @param attachment_id Unique identifier for a Attachment
|
1707
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1708
|
+
# @param [Hash] opts the optional parameters
|
1709
|
+
# @return [File]
|
1710
|
+
describe 'get_receipt_attachment_by_id test' do
|
1711
|
+
it 'should work' do
|
1712
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1713
|
+
end
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
# unit tests for get_receipt_attachments
|
1717
|
+
# Allows you to retrieve Attachments for expense claim receipts
|
1718
|
+
# @param receipt_id Unique identifier for a Receipt
|
1719
|
+
# @param [Hash] opts the optional parameters
|
1720
|
+
# @return [Attachments]
|
1721
|
+
describe 'get_receipt_attachments test' do
|
1722
|
+
it 'should work' do
|
1723
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1724
|
+
end
|
1725
|
+
end
|
1726
|
+
|
1727
|
+
# unit tests for get_receipt_history
|
1728
|
+
# Allows you to retrieve a history records of an Receipt
|
1729
|
+
# @param receipt_id Unique identifier for a Receipt
|
1730
|
+
# @param [Hash] opts the optional parameters
|
1731
|
+
# @return [HistoryRecords]
|
1732
|
+
describe 'get_receipt_history test' do
|
1733
|
+
it 'should work' do
|
1734
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1735
|
+
end
|
1736
|
+
end
|
1737
|
+
|
1738
|
+
# unit tests for get_receipts
|
1739
|
+
# Allows you to retrieve draft expense claim receipts for any user
|
1740
|
+
# @param [Hash] opts the optional parameters
|
1741
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
1742
|
+
# @option opts [String] :where Filter by an any element
|
1743
|
+
# @option opts [String] :order Order by an any element
|
1744
|
+
# @return [Receipts]
|
1745
|
+
describe 'get_receipts test' do
|
1746
|
+
it 'should work' do
|
1747
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1748
|
+
end
|
1749
|
+
end
|
1750
|
+
|
1751
|
+
# unit tests for get_repeating_invoice
|
1752
|
+
# Allows you to retrieve a specified repeating invoice
|
1753
|
+
# @param repeating_invoice_id Unique identifier for a Repeating Invoice
|
1754
|
+
# @param [Hash] opts the optional parameters
|
1755
|
+
# @return [RepeatingInvoices]
|
1756
|
+
describe 'get_repeating_invoice test' do
|
1757
|
+
it 'should work' do
|
1758
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1759
|
+
end
|
1760
|
+
end
|
1761
|
+
|
1762
|
+
# unit tests for get_repeating_invoice_attachment_by_file_name
|
1763
|
+
# Allows you to retrieve specified attachment on repeating invoices by file name
|
1764
|
+
# @param repeating_invoice_id Unique identifier for a Repeating Invoice
|
1765
|
+
# @param file_name The name of the file being attached to a Repeating Invoice
|
1766
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1767
|
+
# @param [Hash] opts the optional parameters
|
1768
|
+
# @return [File]
|
1769
|
+
describe 'get_repeating_invoice_attachment_by_file_name test' do
|
1770
|
+
it 'should work' do
|
1771
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1772
|
+
end
|
1773
|
+
end
|
1774
|
+
|
1775
|
+
# unit tests for get_repeating_invoice_attachment_by_id
|
1776
|
+
# Allows you to retrieve a specified Attachments on repeating invoices
|
1777
|
+
# @param repeating_invoice_id Unique identifier for a Repeating Invoice
|
1778
|
+
# @param attachment_id Unique identifier for a Attachment
|
1779
|
+
# @param content_type The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
1780
|
+
# @param [Hash] opts the optional parameters
|
1781
|
+
# @return [File]
|
1782
|
+
describe 'get_repeating_invoice_attachment_by_id test' do
|
1783
|
+
it 'should work' do
|
1784
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1785
|
+
end
|
1786
|
+
end
|
1787
|
+
|
1788
|
+
# unit tests for get_repeating_invoice_attachments
|
1789
|
+
# Allows you to retrieve Attachments on repeating invoice
|
1790
|
+
# @param repeating_invoice_id Unique identifier for a Repeating Invoice
|
1791
|
+
# @param [Hash] opts the optional parameters
|
1792
|
+
# @return [Attachments]
|
1793
|
+
describe 'get_repeating_invoice_attachments test' do
|
1794
|
+
it 'should work' do
|
1795
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1796
|
+
end
|
1797
|
+
end
|
1798
|
+
|
1799
|
+
# unit tests for get_repeating_invoice_history
|
1800
|
+
# Allows you to retrieve history for a repeating invoice
|
1801
|
+
# @param repeating_invoice_id Unique identifier for a Repeating Invoice
|
1802
|
+
# @param [Hash] opts the optional parameters
|
1803
|
+
# @return [HistoryRecords]
|
1804
|
+
describe 'get_repeating_invoice_history test' do
|
1805
|
+
it 'should work' do
|
1806
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1807
|
+
end
|
1808
|
+
end
|
1809
|
+
|
1810
|
+
# unit tests for get_repeating_invoices
|
1811
|
+
# Allows you to retrieve any repeating invoices
|
1812
|
+
# @param [Hash] opts the optional parameters
|
1813
|
+
# @option opts [String] :where Filter by an any element
|
1814
|
+
# @option opts [String] :order Order by an any element
|
1815
|
+
# @return [RepeatingInvoices]
|
1816
|
+
describe 'get_repeating_invoices test' do
|
1817
|
+
it 'should work' do
|
1818
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1819
|
+
end
|
1820
|
+
end
|
1821
|
+
|
1822
|
+
# unit tests for get_report_aged_payables_by_contact
|
1823
|
+
# Allows you to retrieve report for AgedPayablesByContact
|
1824
|
+
# @param contact_id Unique identifier for a Contact
|
1825
|
+
# @param [Hash] opts the optional parameters
|
1826
|
+
# @option opts [Date] :date The date of the Aged Payables By Contact report
|
1827
|
+
# @option opts [Date] :from_date The from date of the Aged Payables By Contact report
|
1828
|
+
# @option opts [Date] :to_date The to date of the Aged Payables By Contact report
|
1829
|
+
# @return [ReportWithRows]
|
1830
|
+
describe 'get_report_aged_payables_by_contact test' do
|
1831
|
+
it 'should work' do
|
1832
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1833
|
+
end
|
1834
|
+
end
|
1835
|
+
|
1836
|
+
# unit tests for get_report_aged_receivables_by_contact
|
1837
|
+
# Allows you to retrieve report for AgedReceivablesByContact
|
1838
|
+
# @param contact_id Unique identifier for a Contact
|
1839
|
+
# @param [Hash] opts the optional parameters
|
1840
|
+
# @option opts [String] :date The date of the Aged Receivables By Contact report
|
1841
|
+
# @option opts [String] :from_date The from date of the Aged Receivables By Contact report
|
1842
|
+
# @option opts [String] :to_date The to date of the Aged Receivables By Contact report
|
1843
|
+
# @return [ReportWithRows]
|
1844
|
+
describe 'get_report_aged_receivables_by_contact test' do
|
1845
|
+
it 'should work' do
|
1846
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1847
|
+
end
|
1848
|
+
end
|
1849
|
+
|
1850
|
+
# unit tests for get_report_ba_sor_gst
|
1851
|
+
# Allows you to retrieve report for BAS only valid for AU orgs
|
1852
|
+
# @param report_id Unique identifier for a Report
|
1853
|
+
# @param [Hash] opts the optional parameters
|
1854
|
+
# @return [ReportWithRows]
|
1855
|
+
describe 'get_report_ba_sor_gst test' do
|
1856
|
+
it 'should work' do
|
1857
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1858
|
+
end
|
1859
|
+
end
|
1860
|
+
|
1861
|
+
# unit tests for get_report_ba_sor_gst_list
|
1862
|
+
# Allows you to retrieve report for BAS only valid for AU orgs
|
1863
|
+
# @param [Hash] opts the optional parameters
|
1864
|
+
# @return [ReportWithRows]
|
1865
|
+
describe 'get_report_ba_sor_gst_list test' do
|
1866
|
+
it 'should work' do
|
1867
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1868
|
+
end
|
1869
|
+
end
|
1870
|
+
|
1871
|
+
# unit tests for get_report_balance_sheet
|
1872
|
+
# Allows you to retrieve report for BalanceSheet
|
1873
|
+
# @param [Hash] opts the optional parameters
|
1874
|
+
# @option opts [String] :date The date of the Balance Sheet report
|
1875
|
+
# @option opts [Integer] :periods The number of periods for the Balance Sheet report
|
1876
|
+
# @option opts [String] :timeframe The period size to compare to (MONTH, QUARTER, YEAR)
|
1877
|
+
# @option opts [String] :tracking_option_id1 The tracking option 1 for the Balance Sheet report
|
1878
|
+
# @option opts [String] :tracking_option_id2 The tracking option 2 for the Balance Sheet report
|
1879
|
+
# @option opts [BOOLEAN] :standard_layout The standard layout boolean for the Balance Sheet report
|
1880
|
+
# @option opts [BOOLEAN] :payments_only return a cash basis for the Balance Sheet report
|
1881
|
+
# @return [ReportWithRows]
|
1882
|
+
describe 'get_report_balance_sheet test' do
|
1883
|
+
it 'should work' do
|
1884
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1885
|
+
end
|
1886
|
+
end
|
1887
|
+
|
1888
|
+
# unit tests for get_report_bank_summary
|
1889
|
+
# Allows you to retrieve report for BankSummary
|
1890
|
+
# @param [Hash] opts the optional parameters
|
1891
|
+
# @option opts [String] :date The date for the Bank Summary report e.g. 2018-03-31
|
1892
|
+
# @option opts [Integer] :period The number of periods to compare (integer between 1 and 12)
|
1893
|
+
# @option opts [Integer] :timeframe The period size to compare to (1=month, 3=quarter, 12=year)
|
1894
|
+
# @return [ReportWithRows]
|
1895
|
+
describe 'get_report_bank_summary test' do
|
1896
|
+
it 'should work' do
|
1897
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1898
|
+
end
|
1899
|
+
end
|
1900
|
+
|
1901
|
+
# unit tests for get_report_budget_summary
|
1902
|
+
# Allows you to retrieve report for Budget Summary
|
1903
|
+
# @param [Hash] opts the optional parameters
|
1904
|
+
# @option opts [String] :date The date for the Bank Summary report e.g. 2018-03-31
|
1905
|
+
# @option opts [Integer] :period The number of periods to compare (integer between 1 and 12)
|
1906
|
+
# @option opts [Integer] :timeframe The period size to compare to (1=month, 3=quarter, 12=year)
|
1907
|
+
# @return [ReportWithRows]
|
1908
|
+
describe 'get_report_budget_summary test' do
|
1909
|
+
it 'should work' do
|
1910
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1911
|
+
end
|
1912
|
+
end
|
1913
|
+
|
1914
|
+
# unit tests for get_report_executive_summary
|
1915
|
+
# Allows you to retrieve report for ExecutiveSummary
|
1916
|
+
# @param [Hash] opts the optional parameters
|
1917
|
+
# @option opts [String] :date The date for the Bank Summary report e.g. 2018-03-31
|
1918
|
+
# @return [ReportWithRows]
|
1919
|
+
describe 'get_report_executive_summary test' do
|
1920
|
+
it 'should work' do
|
1921
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1922
|
+
end
|
1923
|
+
end
|
1924
|
+
|
1925
|
+
# unit tests for get_report_profit_and_loss
|
1926
|
+
# Allows you to retrieve report for ProfitAndLoss
|
1927
|
+
# @param [Hash] opts the optional parameters
|
1928
|
+
# @option opts [String] :from_date The from date for the ProfitAndLoss report e.g. 2018-03-31
|
1929
|
+
# @option opts [String] :to_date The to date for the ProfitAndLoss report e.g. 2018-03-31
|
1930
|
+
# @option opts [Integer] :periods The number of periods to compare (integer between 1 and 12)
|
1931
|
+
# @option opts [String] :timeframe The period size to compare to (MONTH, QUARTER, YEAR)
|
1932
|
+
# @option opts [String] :tracking_category_id The trackingCategory 1 for the ProfitAndLoss report
|
1933
|
+
# @option opts [String] :tracking_category_id2 The trackingCategory 2 for the ProfitAndLoss report
|
1934
|
+
# @option opts [String] :tracking_option_id The tracking option 1 for the ProfitAndLoss report
|
1935
|
+
# @option opts [String] :tracking_option_id2 The tracking option 2 for the ProfitAndLoss report
|
1936
|
+
# @option opts [BOOLEAN] :standard_layout Return the standard layout for the ProfitAndLoss report
|
1937
|
+
# @option opts [BOOLEAN] :payments_only Return cash only basis for the ProfitAndLoss report
|
1938
|
+
# @return [ReportWithRows]
|
1939
|
+
describe 'get_report_profit_and_loss test' do
|
1940
|
+
it 'should work' do
|
1941
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1942
|
+
end
|
1943
|
+
end
|
1944
|
+
|
1945
|
+
# unit tests for get_report_ten_ninety_nine
|
1946
|
+
# Allows you to retrieve report for TenNinetyNine
|
1947
|
+
# @param [Hash] opts the optional parameters
|
1948
|
+
# @option opts [String] :report_year The year of the 1099 report
|
1949
|
+
# @return [Reports]
|
1950
|
+
describe 'get_report_ten_ninety_nine test' do
|
1951
|
+
it 'should work' do
|
1952
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1953
|
+
end
|
1954
|
+
end
|
1955
|
+
|
1956
|
+
# unit tests for get_report_trial_balance
|
1957
|
+
# Allows you to retrieve report for TrialBalance
|
1958
|
+
# @param [Hash] opts the optional parameters
|
1959
|
+
# @option opts [String] :date The date for the Trial Balance report e.g. 2018-03-31
|
1960
|
+
# @option opts [BOOLEAN] :payments_only Return cash only basis for the Trial Balance report
|
1961
|
+
# @return [ReportWithRows]
|
1962
|
+
describe 'get_report_trial_balance test' do
|
1963
|
+
it 'should work' do
|
1964
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1965
|
+
end
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
# unit tests for get_tax_rates
|
1969
|
+
# Allows you to retrieve Tax Rates
|
1970
|
+
# @param [Hash] opts the optional parameters
|
1971
|
+
# @option opts [String] :where Filter by an any element
|
1972
|
+
# @option opts [String] :order Order by an any element
|
1973
|
+
# @option opts [String] :tax_type Filter by tax type
|
1974
|
+
# @return [TaxRates]
|
1975
|
+
describe 'get_tax_rates test' do
|
1976
|
+
it 'should work' do
|
1977
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1978
|
+
end
|
1979
|
+
end
|
1980
|
+
|
1981
|
+
# unit tests for get_tracking_categories
|
1982
|
+
# Allows you to retrieve tracking categories and options
|
1983
|
+
# @param [Hash] opts the optional parameters
|
1984
|
+
# @option opts [String] :where Filter by an any element
|
1985
|
+
# @option opts [String] :order Order by an any element
|
1986
|
+
# @option opts [BOOLEAN] :include_archived e.g. includeArchived=true - Categories and options with a status of ARCHIVED will be included in the response
|
1987
|
+
# @return [TrackingCategories]
|
1988
|
+
describe 'get_tracking_categories test' do
|
1989
|
+
it 'should work' do
|
1990
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
1991
|
+
end
|
1992
|
+
end
|
1993
|
+
|
1994
|
+
# unit tests for get_tracking_category
|
1995
|
+
# Allows you to retrieve tracking categories and options for specified category
|
1996
|
+
# @param tracking_category_id Unique identifier for a TrackingCategory
|
1997
|
+
# @param [Hash] opts the optional parameters
|
1998
|
+
# @return [TrackingCategories]
|
1999
|
+
describe 'get_tracking_category test' do
|
2000
|
+
it 'should work' do
|
2001
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2002
|
+
end
|
2003
|
+
end
|
2004
|
+
|
2005
|
+
# unit tests for get_user
|
2006
|
+
# Allows you to retrieve a specified user
|
2007
|
+
# @param user_id Unique identifier for a User
|
2008
|
+
# @param [Hash] opts the optional parameters
|
2009
|
+
# @return [Users]
|
2010
|
+
describe 'get_user test' do
|
2011
|
+
it 'should work' do
|
2012
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2013
|
+
end
|
2014
|
+
end
|
2015
|
+
|
2016
|
+
# unit tests for get_users
|
2017
|
+
# Allows you to retrieve users
|
2018
|
+
# @param [Hash] opts the optional parameters
|
2019
|
+
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned
|
2020
|
+
# @option opts [String] :where Filter by an any element
|
2021
|
+
# @option opts [String] :order Order by an any element
|
2022
|
+
# @return [Users]
|
2023
|
+
describe 'get_users test' do
|
2024
|
+
it 'should work' do
|
2025
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2026
|
+
end
|
2027
|
+
end
|
2028
|
+
|
2029
|
+
# unit tests for update_account
|
2030
|
+
# Allows you to update a chart of accounts
|
2031
|
+
# @param account_id Unique identifier for retrieving single object
|
2032
|
+
# @param accounts Request of type Accounts array with one Account
|
2033
|
+
# @param [Hash] opts the optional parameters
|
2034
|
+
# @return [Accounts]
|
2035
|
+
describe 'update_account test' do
|
2036
|
+
it 'should work' do
|
2037
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2038
|
+
end
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
# unit tests for update_account_attachment_by_file_name
|
2042
|
+
# Allows you to update Attachment on Account by Filename
|
2043
|
+
# @param account_id Unique identifier for Account object
|
2044
|
+
# @param file_name Name of the attachment
|
2045
|
+
# @param body Byte array of file in body of request
|
2046
|
+
# @param [Hash] opts the optional parameters
|
2047
|
+
# @return [Attachments]
|
2048
|
+
describe 'update_account_attachment_by_file_name test' do
|
2049
|
+
it 'should work' do
|
2050
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2051
|
+
end
|
2052
|
+
end
|
2053
|
+
|
2054
|
+
# unit tests for update_bank_transaction
|
2055
|
+
# Allows you to update a single spend or receive money transaction
|
2056
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
2057
|
+
# @param bank_transactions
|
2058
|
+
# @param [Hash] opts the optional parameters
|
2059
|
+
# @return [BankTransactions]
|
2060
|
+
describe 'update_bank_transaction test' do
|
2061
|
+
it 'should work' do
|
2062
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2063
|
+
end
|
2064
|
+
end
|
2065
|
+
|
2066
|
+
# unit tests for update_bank_transaction_attachment_by_file_name
|
2067
|
+
# Allows you to update an Attachment on BankTransaction by Filename
|
2068
|
+
# @param bank_transaction_id Xero generated unique identifier for a bank transaction
|
2069
|
+
# @param file_name The name of the file being attached
|
2070
|
+
# @param body Byte array of file in body of request
|
2071
|
+
# @param [Hash] opts the optional parameters
|
2072
|
+
# @return [Attachments]
|
2073
|
+
describe 'update_bank_transaction_attachment_by_file_name test' do
|
2074
|
+
it 'should work' do
|
2075
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2076
|
+
end
|
2077
|
+
end
|
2078
|
+
|
2079
|
+
# unit tests for update_bank_transfer_attachment_by_file_name
|
2080
|
+
# @param bank_transfer_id Xero generated unique identifier for a bank transfer
|
2081
|
+
# @param file_name The name of the file being attached to a Bank Transfer
|
2082
|
+
# @param body Byte array of file in body of request
|
2083
|
+
# @param [Hash] opts the optional parameters
|
2084
|
+
# @return [Attachments]
|
2085
|
+
describe 'update_bank_transfer_attachment_by_file_name test' do
|
2086
|
+
it 'should work' do
|
2087
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2088
|
+
end
|
2089
|
+
end
|
2090
|
+
|
2091
|
+
# unit tests for update_contact
|
2092
|
+
# @param contact_id Unique identifier for a Contact
|
2093
|
+
# @param [Hash] opts the optional parameters
|
2094
|
+
# @option opts [Contacts] :contacts
|
2095
|
+
# @return [Contacts]
|
2096
|
+
describe 'update_contact test' do
|
2097
|
+
it 'should work' do
|
2098
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2099
|
+
end
|
2100
|
+
end
|
2101
|
+
|
2102
|
+
# unit tests for update_contact_attachment_by_file_name
|
2103
|
+
# @param contact_id Unique identifier for a Contact
|
2104
|
+
# @param file_name Name for the file you are attaching
|
2105
|
+
# @param body Byte array of file in body of request
|
2106
|
+
# @param [Hash] opts the optional parameters
|
2107
|
+
# @return [Attachments]
|
2108
|
+
describe 'update_contact_attachment_by_file_name test' do
|
2109
|
+
it 'should work' do
|
2110
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2111
|
+
end
|
2112
|
+
end
|
2113
|
+
|
2114
|
+
# unit tests for update_contact_group
|
2115
|
+
# Allows you to update a Contract Group
|
2116
|
+
# @param contact_group_id Unique identifier for a Contact Group
|
2117
|
+
# @param [Hash] opts the optional parameters
|
2118
|
+
# @option opts [ContactGroups] :contact_groups
|
2119
|
+
# @return [ContactGroups]
|
2120
|
+
describe 'update_contact_group test' do
|
2121
|
+
it 'should work' do
|
2122
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2123
|
+
end
|
2124
|
+
end
|
2125
|
+
|
2126
|
+
# unit tests for update_credit_note
|
2127
|
+
# Allows you to update a specific credit note
|
2128
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
2129
|
+
# @param [Hash] opts the optional parameters
|
2130
|
+
# @option opts [CreditNotes] :credit_notes
|
2131
|
+
# @return [CreditNotes]
|
2132
|
+
describe 'update_credit_note test' do
|
2133
|
+
it 'should work' do
|
2134
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2135
|
+
end
|
2136
|
+
end
|
2137
|
+
|
2138
|
+
# unit tests for update_credit_note_attachment_by_file_name
|
2139
|
+
# Allows you to update Attachments on CreditNote by file name
|
2140
|
+
# @param credit_note_id Unique identifier for a Credit Note
|
2141
|
+
# @param file_name Name of the file you are attaching to Credit Note
|
2142
|
+
# @param body Byte array of file in body of request
|
2143
|
+
# @param [Hash] opts the optional parameters
|
2144
|
+
# @return [Attachments]
|
2145
|
+
describe 'update_credit_note_attachment_by_file_name test' do
|
2146
|
+
it 'should work' do
|
2147
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2148
|
+
end
|
2149
|
+
end
|
2150
|
+
|
2151
|
+
# unit tests for update_employee
|
2152
|
+
# Allows you to update a specific employee used in Xero payrun
|
2153
|
+
# @param employee_id Unique identifier for a Employee
|
2154
|
+
# @param employees
|
2155
|
+
# @param [Hash] opts the optional parameters
|
2156
|
+
# @return [Employees]
|
2157
|
+
describe 'update_employee test' do
|
2158
|
+
it 'should work' do
|
2159
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2160
|
+
end
|
2161
|
+
end
|
2162
|
+
|
2163
|
+
# unit tests for update_expense_claim
|
2164
|
+
# Allows you to update specified expense claims
|
2165
|
+
# @param expense_claim_id Unique identifier for a ExpenseClaim
|
2166
|
+
# @param expense_claims
|
2167
|
+
# @param [Hash] opts the optional parameters
|
2168
|
+
# @return [ExpenseClaims]
|
2169
|
+
describe 'update_expense_claim test' do
|
2170
|
+
it 'should work' do
|
2171
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2172
|
+
end
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
# unit tests for update_invoice
|
2176
|
+
# Allows you to update a specified sales invoices or purchase bills
|
2177
|
+
# @param invoice_id Unique identifier for an Invoice
|
2178
|
+
# @param invoices
|
2179
|
+
# @param [Hash] opts the optional parameters
|
2180
|
+
# @return [Invoices]
|
2181
|
+
describe 'update_invoice test' do
|
2182
|
+
it 'should work' do
|
2183
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2184
|
+
end
|
2185
|
+
end
|
2186
|
+
|
2187
|
+
# unit tests for update_invoice_attachment_by_file_name
|
2188
|
+
# Allows you to update Attachment on invoices or purchase bills by it's filename
|
2189
|
+
# @param invoice_id Unique identifier for an Invoice
|
2190
|
+
# @param file_name Name of the file you are attaching
|
2191
|
+
# @param body Byte array of file in body of request
|
2192
|
+
# @param [Hash] opts the optional parameters
|
2193
|
+
# @return [Attachments]
|
2194
|
+
describe 'update_invoice_attachment_by_file_name test' do
|
2195
|
+
it 'should work' do
|
2196
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2197
|
+
end
|
2198
|
+
end
|
2199
|
+
|
2200
|
+
# unit tests for update_item
|
2201
|
+
# Allows you to udpate a specified item
|
2202
|
+
# @param item_id Unique identifier for an Item
|
2203
|
+
# @param items
|
2204
|
+
# @param [Hash] opts the optional parameters
|
2205
|
+
# @return [Items]
|
2206
|
+
describe 'update_item test' do
|
2207
|
+
it 'should work' do
|
2208
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2209
|
+
end
|
2210
|
+
end
|
2211
|
+
|
2212
|
+
# unit tests for update_linked_transaction
|
2213
|
+
# Allows you to update a specified linked transactions (billable expenses)
|
2214
|
+
# @param linked_transaction_id Unique identifier for a LinkedTransaction
|
2215
|
+
# @param linked_transactions
|
2216
|
+
# @param [Hash] opts the optional parameters
|
2217
|
+
# @return [LinkedTransactions]
|
2218
|
+
describe 'update_linked_transaction test' do
|
2219
|
+
it 'should work' do
|
2220
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2221
|
+
end
|
2222
|
+
end
|
2223
|
+
|
2224
|
+
# unit tests for update_manual_journal
|
2225
|
+
# Allows you to update a specified manual journal
|
2226
|
+
# @param manual_journal_id Unique identifier for a ManualJournal
|
2227
|
+
# @param manual_journals
|
2228
|
+
# @param [Hash] opts the optional parameters
|
2229
|
+
# @return [ManualJournals]
|
2230
|
+
describe 'update_manual_journal test' do
|
2231
|
+
it 'should work' do
|
2232
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2233
|
+
end
|
2234
|
+
end
|
2235
|
+
|
2236
|
+
# unit tests for update_manual_journal_attachment_by_file_name
|
2237
|
+
# Allows you to update a specified Attachment on ManualJournal by file name
|
2238
|
+
# @param manual_journal_id Unique identifier for a ManualJournal
|
2239
|
+
# @param file_name The name of the file being attached to a ManualJournal
|
2240
|
+
# @param body Byte array of file in body of request
|
2241
|
+
# @param [Hash] opts the optional parameters
|
2242
|
+
# @return [Attachments]
|
2243
|
+
describe 'update_manual_journal_attachment_by_file_name test' do
|
2244
|
+
it 'should work' do
|
2245
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2246
|
+
end
|
2247
|
+
end
|
2248
|
+
|
2249
|
+
# unit tests for update_purchase_order
|
2250
|
+
# Allows you to update a specified purchase order
|
2251
|
+
# @param purchase_order_id Unique identifier for a PurchaseOrder
|
2252
|
+
# @param purchase_orders
|
2253
|
+
# @param [Hash] opts the optional parameters
|
2254
|
+
# @return [PurchaseOrders]
|
2255
|
+
describe 'update_purchase_order test' do
|
2256
|
+
it 'should work' do
|
2257
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2258
|
+
end
|
2259
|
+
end
|
2260
|
+
|
2261
|
+
# unit tests for update_receipt
|
2262
|
+
# Allows you to retrieve a specified draft expense claim receipts
|
2263
|
+
# @param receipt_id Unique identifier for a Receipt
|
2264
|
+
# @param receipts
|
2265
|
+
# @param [Hash] opts the optional parameters
|
2266
|
+
# @return [Receipts]
|
2267
|
+
describe 'update_receipt test' do
|
2268
|
+
it 'should work' do
|
2269
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2270
|
+
end
|
2271
|
+
end
|
2272
|
+
|
2273
|
+
# unit tests for update_receipt_attachment_by_file_name
|
2274
|
+
# Allows you to update Attachment on expense claim receipts by file name
|
2275
|
+
# @param receipt_id Unique identifier for a Receipt
|
2276
|
+
# @param file_name The name of the file being attached to the Receipt
|
2277
|
+
# @param body Byte array of file in body of request
|
2278
|
+
# @param [Hash] opts the optional parameters
|
2279
|
+
# @return [Attachments]
|
2280
|
+
describe 'update_receipt_attachment_by_file_name test' do
|
2281
|
+
it 'should work' do
|
2282
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2283
|
+
end
|
2284
|
+
end
|
2285
|
+
|
2286
|
+
# unit tests for update_repeating_invoice_attachment_by_file_name
|
2287
|
+
# Allows you to update specified attachment on repeating invoices by file name
|
2288
|
+
# @param repeating_invoice_id Unique identifier for a Repeating Invoice
|
2289
|
+
# @param file_name The name of the file being attached to a Repeating Invoice
|
2290
|
+
# @param body Byte array of file in body of request
|
2291
|
+
# @param [Hash] opts the optional parameters
|
2292
|
+
# @return [Attachments]
|
2293
|
+
describe 'update_repeating_invoice_attachment_by_file_name test' do
|
2294
|
+
it 'should work' do
|
2295
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2296
|
+
end
|
2297
|
+
end
|
2298
|
+
|
2299
|
+
# unit tests for update_tax_rate
|
2300
|
+
# Allows you to update Tax Rates
|
2301
|
+
# @param tax_rates
|
2302
|
+
# @param [Hash] opts the optional parameters
|
2303
|
+
# @return [TaxRates]
|
2304
|
+
describe 'update_tax_rate test' do
|
2305
|
+
it 'should work' do
|
2306
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2307
|
+
end
|
2308
|
+
end
|
2309
|
+
|
2310
|
+
# unit tests for update_tracking_category
|
2311
|
+
# Allows you to update tracking categories
|
2312
|
+
# @param tracking_category_id Unique identifier for a TrackingCategory
|
2313
|
+
# @param tracking_category
|
2314
|
+
# @param [Hash] opts the optional parameters
|
2315
|
+
# @return [TrackingCategories]
|
2316
|
+
describe 'update_tracking_category test' do
|
2317
|
+
it 'should work' do
|
2318
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
2319
|
+
end
|
2320
|
+
end
|
2321
|
+
|
2322
|
+
end
|