Skip to content

Commit

Permalink
re order new param, non breaking
Browse files Browse the repository at this point in the history
  • Loading branch information
SerKnight committed Jun 1, 2021
1 parent a146487 commit ecdbcdc
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
6 changes: 3 additions & 3 deletions docs/accounting/AccountingApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -8200,9 +8200,9 @@ opts = {

created_by_my_app: false, # Boolean | When set to true you'll only retrieve Invoices created by your app

summary_only: false, # Boolean | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts

unitdp: 4 # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
summary_only: false # Boolean | Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
}

begin
Expand Down Expand Up @@ -8230,8 +8230,8 @@ Name | Type | Description | Notes
**page** | **Integer**| e.g. page=1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice | [optional]
**include_archived** | **Boolean**| e.g. includeArchived=true - Invoices with a status of ARCHIVED will be included in the response | [optional]
**created_by_my_app** | **Boolean**| When set to true you'll only retrieve Invoices created by your app | [optional]
**summary_only** | **Boolean**| Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. | [optional] [default to false]
**unitdp** | **Integer**| e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
**summary_only** | **Boolean**| Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. | [optional] [default to false]

### Return type

Expand Down
20 changes: 10 additions & 10 deletions docs/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23977,11 +23977,11 @@ <h3>Usage and SDK Samples</h3>
page = 1
include_archived = true
created_by_my_app = false
summary_only = true
unitdp = 4
summary_only = true

begin
response = xero_client.accounting_api.get_invoices(xero_tenant_id, if_modified_since, where, order, ids, invoice_numbers, contact_ids, statuses, page, include_archived, created_by_my_app, summary_only, unitdp)
response = xero_client.accounting_api.get_invoices(xero_tenant_id, if_modified_since, where, order, ids, invoice_numbers, contact_ids, statuses, page, include_archived, created_by_my_app, unitdp, summary_only)
return response
rescue XeroRuby::ApiError => e
puts "Exception when calling get_invoices: #{e}"
Expand Down Expand Up @@ -24244,39 +24244,39 @@ <h2>Parameters</h2>
</td>
</tr>

<tr><td style="width:150px;">summaryOnly</td>
<tr><td style="width:150px;">unitdp</td>
<td>


<div id="d2e199_getInvoices_summaryOnly">
<div id="d2e199_getInvoices_unitdp">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Boolean
Integer
</span>

<div class="inner description marked">
Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
</div>
</div>
</div>
</div>
</td>
</tr>

<tr><td style="width:150px;">unitdp</td>
<tr><td style="width:150px;">summaryOnly</td>
<td>


<div id="d2e199_getInvoices_unitdp">
<div id="d2e199_getInvoices_summaryOnly">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
Integer
Boolean
</span>

<div class="inner description marked">
e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
Use summaryOnly=true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
</div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions lib/xero-ruby/api/accounting_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9542,8 +9542,8 @@ def get_invoice_reminders_with_http_info(xero_tenant_id, options = {})
# @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
# @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Invoices with a status of ARCHIVED will be included in the response
# @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
# @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (default to false)
# @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
# @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient. (default to false)
# @return [Invoices]
def get_invoices(xero_tenant_id, opts = {})
data, _status_code, _headers = get_invoices_with_http_info(xero_tenant_id, opts)
Expand All @@ -9563,8 +9563,8 @@ def get_invoices(xero_tenant_id, opts = {})
# @option opts [Integer] :page e.g. page&#x3D;1 – Up to 100 invoices will be returned in a single API call with line items shown for each invoice
# @option opts [Boolean] :include_archived e.g. includeArchived&#x3D;true - Invoices with a status of ARCHIVED will be included in the response
# @option opts [Boolean] :created_by_my_app When set to true you&#39;ll only retrieve Invoices created by your app
# @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
# @option opts [Integer] :unitdp e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
# @option opts [Boolean] :summary_only Use summaryOnly&#x3D;true in GET Contacts and Invoices endpoint to retrieve a smaller version of the response object. This returns only lightweight fields, excluding computation-heavy fields from the response, making the API calls quick and efficient.
# @return [Array<(Invoices, Integer, Hash)>] Invoices data, response status code and response headers
def get_invoices_with_http_info(xero_tenant_id, options = {})
opts = options.dup
Expand Down Expand Up @@ -9592,8 +9592,8 @@ def get_invoices_with_http_info(xero_tenant_id, options = {})
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
query_params[:'includeArchived'] = opts[:'include_archived'] if !opts[:'include_archived'].nil?
query_params[:'createdByMyApp'] = opts[:'created_by_my_app'] if !opts[:'created_by_my_app'].nil?
query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?
query_params[:'unitdp'] = opts[:'unitdp'] if !opts[:'unitdp'].nil?
query_params[:'summaryOnly'] = opts[:'summary_only'] if !opts[:'summary_only'].nil?

# XeroAPI's `IDs` convention openapi-generator does not snake_case properly.. manual over-riding `i_ds` malformations:
query_params[:'IDs'] = @api_client.build_collection_param(opts[:'ids'], :csv) if !opts[:'ids'].nil?
Expand Down
4 changes: 2 additions & 2 deletions lib/xero-ruby/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
Generated by: https://openapi-generator.tech
OpenAPI Generator version: 4.3.1
The version of the XeroOpenAPI document: 2.13.1
The version of the XeroOpenAPI document: 2.13.2
=end

module XeroRuby
VERSION = '3.1.0'
VERSION = '3.1.1'
end

0 comments on commit ecdbcdc

Please sign in to comment.