-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from XeroAPI/regen
gem publish 1.1.0
- Loading branch information
Showing
269 changed files
with
462 additions
and
289 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
The version of the OpenAPI document: 2.1.0 | ||
The version of the OpenAPI document: 2.1.3 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 4.3.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
|
||
The version of the OpenAPI document: 2.1.0 | ||
The version of the OpenAPI document: 2.1.3 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 4.3.0 | ||
|
@@ -2781,6 +2781,7 @@ def create_payment_service_with_http_info(xero_tenant_id, payment_services, opts | |
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param payments [Payments] Payments array with Payment object in body of request | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors (default to false) | ||
# @return [Payments] | ||
def create_payments(xero_tenant_id, payments, opts = {}) | ||
data, _status_code, _headers = create_payments_with_http_info(xero_tenant_id, payments, opts) | ||
|
@@ -2791,6 +2792,7 @@ def create_payments(xero_tenant_id, payments, opts = {}) | |
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param payments [Payments] Payments array with Payment object in body of request | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [Boolean] :summarize_errors If false return 200 OK and mix of successfully created obejcts and any with validation errors | ||
# @return [Array<(Payments, Integer, Hash)>] Payments data, response status code and response headers | ||
def create_payments_with_http_info(xero_tenant_id, payments, opts = {}) | ||
if @api_client.config.debugging | ||
|
@@ -2809,6 +2811,7 @@ def create_payments_with_http_info(xero_tenant_id, payments, opts = {}) | |
|
||
# query parameters | ||
query_params = opts[:query_params] || {} | ||
query_params[:'summarizeErrors'] = opts[:'summarize_errors'] if !opts[:'summarize_errors'].nil? | ||
|
||
# header parameters | ||
header_params = opts[:header_params] || {} | ||
|
@@ -6167,7 +6170,7 @@ def get_branding_themes_with_http_info(xero_tenant_id, opts = {}) | |
return data, status_code, headers | ||
end | ||
|
||
# Allows you to retrieve, add and update contacts in a Xero organisation | ||
# Allows you to retrieve a single contacts in a Xero organisation | ||
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param contact_id [String] Unique identifier for a Contact | ||
# @param [Hash] opts the optional parameters | ||
|
@@ -6177,7 +6180,7 @@ def get_contact(xero_tenant_id, contact_id, opts = {}) | |
data | ||
end | ||
|
||
# Allows you to retrieve, add and update contacts in a Xero organisation | ||
# Allows you to retrieve a single contacts in a Xero organisation | ||
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param contact_id [String] Unique identifier for a Contact | ||
# @param [Hash] opts the optional parameters | ||
|
@@ -6729,7 +6732,7 @@ def get_contact_history_with_http_info(xero_tenant_id, contact_id, opts = {}) | |
return data, status_code, headers | ||
end | ||
|
||
# Allows you to retrieve, add and update contacts in a Xero organisation | ||
# Allows you to retrieve all contacts in a Xero organisation | ||
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned | ||
|
@@ -6744,7 +6747,7 @@ def get_contacts(xero_tenant_id, opts = {}) | |
data | ||
end | ||
|
||
# Allows you to retrieve, add and update contacts in a Xero organisation | ||
# Allows you to retrieve all contacts in a Xero organisation | ||
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param [Hash] opts the optional parameters | ||
# @option opts [DateTime] :if_modified_since Only records created or modified since this timestamp will be returned | ||
|
@@ -9906,6 +9909,73 @@ def get_prepayment_with_http_info(xero_tenant_id, prepayment_id, opts = {}) | |
return data, status_code, headers | ||
end | ||
|
||
# Allows you to retrieve prepayments as PDF files | ||
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param prepayment_id [String] Unique identifier for a PrePayment | ||
# @param [Hash] opts the optional parameters | ||
# @return [File] | ||
def get_prepayment_as_pdf(xero_tenant_id, prepayment_id, opts = {}) | ||
data, _status_code, _headers = get_prepayment_as_pdf_with_http_info(xero_tenant_id, prepayment_id, opts) | ||
data | ||
end | ||
|
||
# Allows you to retrieve prepayments as PDF files | ||
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param prepayment_id [String] Unique identifier for a PrePayment | ||
# @param [Hash] opts the optional parameters | ||
# @return [Array<(File, Integer, Hash)>] File data, response status code and response headers | ||
def get_prepayment_as_pdf_with_http_info(xero_tenant_id, prepayment_id, opts = {}) | ||
if @api_client.config.debugging | ||
@api_client.config.logger.debug 'Calling API: AccountingApi.get_prepayment_as_pdf ...' | ||
end | ||
# verify the required parameter 'xero_tenant_id' is set | ||
if @api_client.config.client_side_validation && xero_tenant_id.nil? | ||
fail ArgumentError, "Missing the required parameter 'xero_tenant_id' when calling AccountingApi.get_prepayment_as_pdf" | ||
end | ||
# verify the required parameter 'prepayment_id' is set | ||
if @api_client.config.client_side_validation && prepayment_id.nil? | ||
fail ArgumentError, "Missing the required parameter 'prepayment_id' when calling AccountingApi.get_prepayment_as_pdf" | ||
end | ||
# resource path | ||
local_var_path = '/Prepayments/{PrepaymentID}'.sub('{' + 'PrepaymentID' + '}', prepayment_id.to_s) | ||
|
||
# query parameters | ||
query_params = opts[:query_params] || {} | ||
|
||
# header parameters | ||
header_params = opts[:header_params] || {} | ||
# HTTP header 'Accept' (if needed) | ||
header_params['Accept'] = @api_client.select_header_accept(['application/pdf']) | ||
header_params[:'xero-tenant-id'] = xero_tenant_id | ||
|
||
# form parameters | ||
form_params = opts[:form_params] || {} | ||
|
||
# http body (model) | ||
post_body = opts[:body] | ||
|
||
# return_type | ||
return_type = opts[:return_type] || 'File' | ||
|
||
# auth_names | ||
auth_names = opts[:auth_names] || ['OAuth2'] | ||
|
||
new_options = opts.merge( | ||
:header_params => header_params, | ||
:query_params => query_params, | ||
:form_params => form_params, | ||
:body => post_body, | ||
:auth_names => auth_names, | ||
:return_type => return_type | ||
) | ||
|
||
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) | ||
if @api_client.config.debugging | ||
@api_client.config.logger.debug "API called: AccountingApi#get_prepayment_as_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" | ||
end | ||
return data, status_code, headers | ||
end | ||
|
||
# Allows you to retrieve a history records of an Prepayment | ||
# @param xero_tenant_id [String] Xero identifier for Tenant | ||
# @param prepayment_id [String] Unique identifier for a PrePayment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
#This is the Xero Assets API | ||
The version of the OpenAPI document: 2.1.0 | ||
The version of the OpenAPI document: 2.1.3 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 4.3.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
The version of the OpenAPI document: 2.1.0 | ||
The version of the OpenAPI document: 2.1.3 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 4.3.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
The version of the OpenAPI document: 2.1.0 | ||
The version of the OpenAPI document: 2.1.3 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 4.3.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
The version of the OpenAPI document: 2.1.0 | ||
The version of the OpenAPI document: 2.1.3 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 4.3.0 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
The version of the OpenAPI document: 2.1.0 | ||
The version of the OpenAPI document: 2.1.3 | ||
Contact: [email protected] | ||
Generated by: https://openapi-generator.tech | ||
OpenAPI Generator version: 4.3.0 | ||
|
Oops, something went wrong.