Skip to content

Commit

Permalink
Merge pull request #25 from XeroAPI/regenerated-against-OAS-v2-0-6
Browse files Browse the repository at this point in the history
generated against OAS 2.0.6
  • Loading branch information
jenksguo authored Mar 26, 2020
2 parents 5083ad4 + fcfaefe commit 5278009
Show file tree
Hide file tree
Showing 126 changed files with 536 additions and 273 deletions.
2 changes: 1 addition & 1 deletion accounting/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ script:
- bundle install --path vendor/bundle
- bundle exec rspec
- gem build xero-ruby.gemspec
- gem install ./xero-ruby-0.2.2.gem
- gem install ./xero-ruby-0.2.3.gem
13 changes: 7 additions & 6 deletions accounting/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ No description provided (generated by Openapi Generator https://github.com/opena

This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 2.0.4
- Package version: 0.2.2
- API version: 2.0.6
- Package version: 0.2.3
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
For more information, please visit [https://developer.xero.com](https://developer.xero.com)

Expand All @@ -24,16 +24,16 @@ gem build xero-ruby.gemspec
Then either install the gem locally:

```shell
gem install ./xero-ruby-0.2.2.gem
gem install ./xero-ruby-0.2.3.gem
```

(for development, run `gem install --dev ./xero-ruby-0.2.2.gem` to install the development dependencies)
(for development, run `gem install --dev ./xero-ruby-0.2.3.gem` to install the development dependencies)

or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).

Finally add this to the Gemfile:

gem 'xero-ruby', '~> 0.2.2'
gem 'xero-ruby', '~> 0.2.3'

### Install from Git

Expand Down Expand Up @@ -227,6 +227,7 @@ Class | Method | HTTP request | Description
*XeroRuby::AccountingApi* | [**get_purchase_order_history**](docs/AccountingApi.md#get_purchase_order_history) | **GET** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to retrieve history for PurchaseOrder
*XeroRuby::AccountingApi* | [**get_purchase_orders**](docs/AccountingApi.md#get_purchase_orders) | **GET** /PurchaseOrders | Allows you to retrieve purchase orders
*XeroRuby::AccountingApi* | [**get_quote**](docs/AccountingApi.md#get_quote) | **GET** /Quotes/{QuoteID} | Allows you to retrieve a specified quote
*XeroRuby::AccountingApi* | [**get_quote_as_pdf**](docs/AccountingApi.md#get_quote_as_pdf) | **GET** /Quotes/{QuotesID}/pdf | Allows you to retrieve quotes as PDF files
*XeroRuby::AccountingApi* | [**get_quote_attachment_by_file_name**](docs/AccountingApi.md#get_quote_attachment_by_file_name) | **GET** /Quotes/{QuoteID}/Attachments/{FileName} | Allows you to retrieve Attachment on Quote by Filename
*XeroRuby::AccountingApi* | [**get_quote_attachment_by_id**](docs/AccountingApi.md#get_quote_attachment_by_id) | **GET** /Quotes/{QuoteID}/Attachments/{AttachmentID} | Allows you to retrieve specific Attachment on Quote
*XeroRuby::AccountingApi* | [**get_quote_attachments**](docs/AccountingApi.md#get_quote_attachments) | **GET** /Quotes/{QuoteID}/Attachments | Allows you to retrieve Attachments for Quotes
Expand Down Expand Up @@ -270,7 +271,6 @@ Class | Method | HTTP request | Description
*XeroRuby::AccountingApi* | [**update_contact_group**](docs/AccountingApi.md#update_contact_group) | **POST** /ContactGroups/{ContactGroupID} | Allows you to update a Contact Group
*XeroRuby::AccountingApi* | [**update_credit_note**](docs/AccountingApi.md#update_credit_note) | **POST** /CreditNotes/{CreditNoteID} | Allows you to update a specific credit note
*XeroRuby::AccountingApi* | [**update_credit_note_attachment_by_file_name**](docs/AccountingApi.md#update_credit_note_attachment_by_file_name) | **POST** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to update Attachments on CreditNote by file name
*XeroRuby::AccountingApi* | [**update_employee**](docs/AccountingApi.md#update_employee) | **POST** /Employees/{EmployeeID} | Allows you to update a specific employee used in Xero payrun
*XeroRuby::AccountingApi* | [**update_expense_claim**](docs/AccountingApi.md#update_expense_claim) | **POST** /ExpenseClaims/{ExpenseClaimID} | Allows you to update specified expense claims
*XeroRuby::AccountingApi* | [**update_invoice**](docs/AccountingApi.md#update_invoice) | **POST** /Invoices/{InvoiceID} | Allows you to update a specified sales invoices or purchase bills
*XeroRuby::AccountingApi* | [**update_invoice_attachment_by_file_name**](docs/AccountingApi.md#update_invoice_attachment_by_file_name) | **POST** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to update Attachment on invoices or purchase bills by it's filename
Expand Down Expand Up @@ -368,6 +368,7 @@ Class | Method | HTTP request | Description
- [XeroRuby::Overpayment](docs/Overpayment.md)
- [XeroRuby::Overpayments](docs/Overpayments.md)
- [XeroRuby::Payment](docs/Payment.md)
- [XeroRuby::PaymentDelete](docs/PaymentDelete.md)
- [XeroRuby::PaymentService](docs/PaymentService.md)
- [XeroRuby::PaymentServices](docs/PaymentServices.md)
- [XeroRuby::PaymentTerm](docs/PaymentTerm.md)
Expand Down
116 changes: 57 additions & 59 deletions accounting/docs/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ Method | HTTP request | Description
[**get_purchase_order_history**](AccountingApi.md#get_purchase_order_history) | **GET** /PurchaseOrders/{PurchaseOrderID}/History | Allows you to retrieve history for PurchaseOrder
[**get_purchase_orders**](AccountingApi.md#get_purchase_orders) | **GET** /PurchaseOrders | Allows you to retrieve purchase orders
[**get_quote**](AccountingApi.md#get_quote) | **GET** /Quotes/{QuoteID} | Allows you to retrieve a specified quote
[**get_quote_as_pdf**](AccountingApi.md#get_quote_as_pdf) | **GET** /Quotes/{QuotesID}/pdf | Allows you to retrieve quotes as PDF files
[**get_quote_attachment_by_file_name**](AccountingApi.md#get_quote_attachment_by_file_name) | **GET** /Quotes/{QuoteID}/Attachments/{FileName} | Allows you to retrieve Attachment on Quote by Filename
[**get_quote_attachment_by_id**](AccountingApi.md#get_quote_attachment_by_id) | **GET** /Quotes/{QuoteID}/Attachments/{AttachmentID} | Allows you to retrieve specific Attachment on Quote
[**get_quote_attachments**](AccountingApi.md#get_quote_attachments) | **GET** /Quotes/{QuoteID}/Attachments | Allows you to retrieve Attachments for Quotes
Expand Down Expand Up @@ -191,7 +192,6 @@ Method | HTTP request | Description
[**update_contact_group**](AccountingApi.md#update_contact_group) | **POST** /ContactGroups/{ContactGroupID} | Allows you to update a Contact Group
[**update_credit_note**](AccountingApi.md#update_credit_note) | **POST** /CreditNotes/{CreditNoteID} | Allows you to update a specific credit note
[**update_credit_note_attachment_by_file_name**](AccountingApi.md#update_credit_note_attachment_by_file_name) | **POST** /CreditNotes/{CreditNoteID}/Attachments/{FileName} | Allows you to update Attachments on CreditNote by file name
[**update_employee**](AccountingApi.md#update_employee) | **POST** /Employees/{EmployeeID} | Allows you to update a specific employee used in Xero payrun
[**update_expense_claim**](AccountingApi.md#update_expense_claim) | **POST** /ExpenseClaims/{ExpenseClaimID} | Allows you to update specified expense claims
[**update_invoice**](AccountingApi.md#update_invoice) | **POST** /Invoices/{InvoiceID} | Allows you to update a specified sales invoices or purchase bills
[**update_invoice_attachment_by_file_name**](AccountingApi.md#update_invoice_attachment_by_file_name) | **POST** /Invoices/{InvoiceID}/Attachments/{FileName} | Allows you to update Attachment on invoices or purchase bills by it's filename
Expand Down Expand Up @@ -3378,7 +3378,7 @@ nil (empty response body)

## delete_payment

> Payments delete_payment(xero_tenant_id, payment_id, payments)
> Payments delete_payment(xero_tenant_id, payment_id, payment_delete)
Allows you to update a specified payment for invoices and credit notes

Expand All @@ -3396,11 +3396,11 @@ end
api_instance = XeroRuby::AccountingApi.new
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
payment_id = '00000000-0000-0000-000-000000000000' # String | Unique identifier for a Payment
payments = { payments:[ { status:"DELETED" } ] } # Payments |
payment_delete = { status:"DELETED" } # PaymentDelete |

begin
#Allows you to update a specified payment for invoices and credit notes
result = api_instance.delete_payment(xero_tenant_id, payment_id, payments)
result = api_instance.delete_payment(xero_tenant_id, payment_id, payment_delete)
p result
rescue XeroRuby::ApiError => e
puts "Exception when calling AccountingApi->delete_payment: #{e}"
Expand All @@ -3414,7 +3414,7 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**xero_tenant_id** | **String**| Xero identifier for Tenant |
**payment_id** | [**String**](.md)| Unique identifier for a Payment |
**payments** | [**Payments**](Payments.md)| |
**payment_delete** | [**PaymentDelete**](PaymentDelete.md)| |

### Return type

Expand Down Expand Up @@ -8081,6 +8081,58 @@ Name | Type | Description | Notes
- **Accept**: application/json


## get_quote_as_pdf

> File get_quote_as_pdf(xero_tenant_id, quote_id)
Allows you to retrieve quotes as PDF files

### Example

```ruby
# load the gem
require 'xero-ruby'
# setup authorization
XeroRuby.configure do |config|
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = XeroRuby::AccountingApi.new
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
quote_id = '00000000-0000-0000-000-000000000000' # String | Unique identifier for an Quote

begin
#Allows you to retrieve quotes as PDF files
result = api_instance.get_quote_as_pdf(xero_tenant_id, quote_id)
p result
rescue XeroRuby::ApiError => e
puts "Exception when calling AccountingApi->get_quote_as_pdf: #{e}"
end
```

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**xero_tenant_id** | **String**| Xero identifier for Tenant |
**quote_id** | [**String**](.md)| Unique identifier for an Quote |

### Return type

**File**

### Authorization

[OAuth2](../README.md#OAuth2)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/pdf


## get_quote_attachment_by_file_name

> File get_quote_attachment_by_file_name(xero_tenant_id, quote_id, file_name, content_type)
Expand Down Expand Up @@ -10494,60 +10546,6 @@ Name | Type | Description | Notes
- **Accept**: application/json


## update_employee

> Employees update_employee(xero_tenant_id, employee_id, employees)
Allows you to update a specific employee used in Xero payrun

### Example

```ruby
# load the gem
require 'xero-ruby'
# setup authorization
XeroRuby.configure do |config|
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end

api_instance = XeroRuby::AccountingApi.new
xero_tenant_id = 'YOUR_XERO_TENANT_ID' # String | Xero identifier for Tenant
employee_id = '00000000-0000-0000-000-000000000000' # String | Unique identifier for a Employee
employees = { employees:[ { employeeID:"00000000-0000-0000-000-000000000000", firstName:"Natasha", lastName:"Romanoff" } ] } # Employees |

begin
#Allows you to update a specific employee used in Xero payrun
result = api_instance.update_employee(xero_tenant_id, employee_id, employees)
p result
rescue XeroRuby::ApiError => e
puts "Exception when calling AccountingApi->update_employee: #{e}"
end
```

### Parameters


Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**xero_tenant_id** | **String**| Xero identifier for Tenant |
**employee_id** | [**String**](.md)| Unique identifier for a Employee |
**employees** | [**Employees**](Employees.md)| |

### Return type

[**Employees**](Employees.md)

### Authorization

[OAuth2](../README.md#OAuth2)

### HTTP request headers

- **Content-Type**: application/json
- **Accept**: application/json


## update_expense_claim

> ExpenseClaims update_expense_claim(xero_tenant_id, expense_claim_id, expense_claims)
Expand Down
17 changes: 17 additions & 0 deletions accounting/docs/PaymentDelete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# XeroRuby::PaymentDelete

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**status** | **String** | The status of the payment. | [default to 'DELETED']

## Code Sample

```ruby
require 'XeroRuby'

instance = XeroRuby::PaymentDelete.new(status: null)
```


3 changes: 2 additions & 1 deletion accounting/lib/xero-ruby.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
The version of the OpenAPI document: 2.0.4
The version of the OpenAPI document: 2.0.6
Contact: [email protected]
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.2.0
Expand Down Expand Up @@ -85,6 +85,7 @@
require 'xero-ruby/models/overpayment'
require 'xero-ruby/models/overpayments'
require 'xero-ruby/models/payment'
require 'xero-ruby/models/payment_delete'
require 'xero-ruby/models/payment_service'
require 'xero-ruby/models/payment_services'
require 'xero-ruby/models/payment_term'
Expand Down
Loading

0 comments on commit 5278009

Please sign in to comment.