Skip to content

Commit

Permalink
Merge pull request #272 from XeroAPI/xero-ruby-5.0.0
Browse files Browse the repository at this point in the history
Build from OpenAPI v2.39.0-v3.0.0
  • Loading branch information
manishT72 authored Feb 2, 2024
2 parents 57d8b44 + aa55b93 commit 51be1d7
Show file tree
Hide file tree
Showing 45 changed files with 7,766 additions and 1,203 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7'
ruby-version: '3.0.0'
- name: Build and run tests
run: |
gem install bundler
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
PATH
remote: .
specs:
xero-ruby (4.0.0)
xero-ruby (5.0.0)
faraday (>= 2.0, < 3.0)
json (~> 2.1, >= 2.1.0)
json-jwt (~> 1.5, >= 1.5.2)
json-jwt (~> 1.16, >= 1.16.3)

GEM
remote: https://rubygems.org/
Expand Down
960 changes: 795 additions & 165 deletions docs/accounting/AccountingApi.md

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion docs/accounting/Allocation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**allocation_id** | **String** | Xero generated unique identifier | [optional]
**invoice** | [**Invoice**](Invoice.md) | |
**overpayment** | [**Overpayment**](Overpayment.md) | | [optional]
**prepayment** | [**Prepayment**](Prepayment.md) | | [optional]
**credit_note** | [**CreditNote**](CreditNote.md) | | [optional]
**amount** | **BigDecimal** | the amount being applied to the invoice |
**date** | **Date** | the date the allocation is applied YYYY-MM-DD. |
**is_deleted** | **Boolean** | A flag that returns true when the allocation is succesfully deleted | [optional]
**status_attribute_string** | **String** | A string to indicate if a invoice status | [optional]
**validation_errors** | [**Array&lt;ValidationError&gt;**](ValidationError.md) | Displays array of validation error messages from the API | [optional]

Expand All @@ -18,12 +20,14 @@ Name | Type | Description | Notes
```ruby
require 'XeroRuby::Accounting'

instance = XeroRuby::Accounting::Allocation.new(invoice: null,
instance = XeroRuby::Accounting::Allocation.new(allocation_id: null,
invoice: null,
overpayment: null,
prepayment: null,
credit_note: null,
amount: null,
date: null,
is_deleted: null,
status_attribute_string: null,
validation_errors: null)
```
Expand Down
2 changes: 0 additions & 2 deletions docs/accounting/Contact.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ Name | Type | Description | Notes
**last_name** | **String** | Last name of contact person (max length &#x3D; 255) | [optional]
**company_number** | **String** | Company registration number (max length &#x3D; 50) | [optional]
**email_address** | **String** | Email address of contact person (umlauts not supported) (max length &#x3D; 255) | [optional]
**skype_user_name** | **String** | Skype user name of contact | [optional]
**contact_persons** | [**Array&lt;ContactPerson&gt;**](ContactPerson.md) | See contact persons | [optional]
**bank_account_details** | **String** | Bank account number of contact | [optional]
**tax_number** | **String** | Tax number of contact – this is also known as the ABN (Australia), GST Number (New Zealand), VAT Number (UK) or Tax ID Number (US and global) in the Xero UI depending on which regionalized version of Xero you are using (max length &#x3D; 50) | [optional]
Expand Down Expand Up @@ -63,7 +62,6 @@ instance = XeroRuby::Accounting::Contact.new(contact_id: null,
last_name: null,
company_number: null,
email_address: null,
skype_user_name: null,
contact_persons: null,
bank_account_details: null,
tax_number: null,
Expand Down
8 changes: 7 additions & 1 deletion docs/accounting/TenNinetyNineContact.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ Name | Type | Description | Notes
**street_address** | **String** | Contact address on 1099 Form | [optional]
**tax_id** | **String** | Contact tax id on 1099 Form | [optional]
**contact_id** | **String** | Contact contact id | [optional]
**legal_name** | **String** | Contact legal name | [optional]
**business_name** | **String** | Contact business name | [optional]
**federal_tax_classification** | **String** | Contact federal tax classification | [optional]

## Code Sample

Expand Down Expand Up @@ -53,7 +56,10 @@ instance = XeroRuby::Accounting::TenNinetyNineContact.new(box1: null,
email: null,
street_address: null,
tax_id: null,
contact_id: null)
contact_id: null,
legal_name: null,
business_name: null,
federal_tax_classification: null)
```


Loading

0 comments on commit 51be1d7

Please sign in to comment.