Skip to content

Commit f9c0ae7

Browse files
Merge pull request #382 from XeroAPI/18.1.0
Releasing 18.1.0 (OAS: 16.2.0)
2 parents 3c469e5 + 785ad4b commit f9c0ae7

16 files changed

Lines changed: 203 additions & 32 deletions

File tree

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
xero-ruby (18.0.0)
4+
xero-ruby (18.1.0)
55
faraday (>= 2.0, < 3.0)
66
json (~> 2.1, >= 2.1.0)
77
json-jwt (~> 1.16, >= 1.16.3)

docs/accounting/AccountingApi.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,9 @@ opts = {
20742074

20752075
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
20762076

2077-
idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
2077+
idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
2078+
2079+
allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
20782080
}
20792081

20802082
begin
@@ -2096,6 +2098,7 @@ Name | Type | Description | Notes
20962098
**summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
20972099
**unitdp** | **Integer**| e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
20982100
**idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional]
2101+
**allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional]
20992102

21002103
### Return type
21012104

@@ -5905,7 +5908,9 @@ opts = {
59055908

59065909
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
59075910

5908-
page_size: 100 # Integer | Number of records to retrieve per page
5911+
page_size: 100, # Integer | Number of records to retrieve per page
5912+
5913+
references: ['&quot;Ref1&quot;, &quot;Ref2&quot;'] # Array<String> | Filter by a comma-separated list of References
59095914
}
59105915

59115916
begin
@@ -5929,6 +5934,7 @@ Name | Type | Description | Notes
59295934
**page** | **Integer**| Up to 100 bank transactions will be returned in a single API call with line items details | [optional]
59305935
**unitdp** | **Integer**| e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
59315936
**page_size** | **Integer**| Number of records to retrieve per page | [optional]
5937+
**references** | [**Array&lt;String&gt;**](String.md)| Filter by a comma-separated list of References | [optional]
59325938

59335939
### Return type
59345940

@@ -10808,13 +10814,15 @@ opts = {
1080810814

1080910815
order: 'Reference ASC', # String | Order by an any element
1081010816

10811-
page: 1, # Integer | e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
10817+
page: 1, # Integer | e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment
1081210818

1081310819
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1081410820

1081510821
page_size: 100, # Integer | Number of records to retrieve per page
1081610822

10817-
invoice_numbers: ['&quot;INV-001&quot;, &quot;INV-002&quot;'] # Array<String> | Filter by a comma-separated list of InvoiceNumbers
10823+
invoice_numbers: ['&quot;INV-001&quot;, &quot;INV-002&quot;'], # Array<String> | Filter by a comma-separated list of InvoiceNumbers
10824+
10825+
references: ['&quot;Ref1&quot;, &quot;Ref2&quot;'] # Array<String> | Filter by a comma-separated list of References
1081810826
}
1081910827

1082010828
begin
@@ -10835,10 +10843,11 @@ Name | Type | Description | Notes
1083510843
**if_modified_since** | **DateTime**| Only records created or modified since this timestamp will be returned | [optional]
1083610844
**where** | **String**| Filter by an any element | [optional]
1083710845
**order** | **String**| Order by an any element | [optional]
10838-
**page** | **Integer**| e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment | [optional]
10846+
**page** | **Integer**| e.g. page&#x3D;1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment | [optional]
1083910847
**unitdp** | **Integer**| e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
1084010848
**page_size** | **Integer**| Number of records to retrieve per page | [optional]
1084110849
**invoice_numbers** | [**Array&lt;String&gt;**](String.md)| Filter by a comma-separated list of InvoiceNumbers | [optional]
10850+
**references** | [**Array&lt;String&gt;**](String.md)| Filter by a comma-separated list of References | [optional]
1084210851

1084310852
### Return type
1084410853

@@ -14799,7 +14808,9 @@ invoices = {"Invoices":[{"Reference":"May the force be with you","InvoiceID":"00
1479914808
opts = {
1480014809
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1480114810

14802-
idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
14811+
idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
14812+
14813+
allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
1480314814
}
1480414815

1480514816
begin
@@ -14821,6 +14832,7 @@ Name | Type | Description | Notes
1482114832
**invoices** | [**Invoices**](Invoices.md)| |
1482214833
**unitdp** | **Integer**| e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
1482314834
**idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional]
14835+
**allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional]
1482414836

1482514837
### Return type
1482614838

@@ -15458,7 +15470,9 @@ opts = {
1545815470

1545915471
unitdp: 4, # Integer | e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
1546015472

15461-
idempotency_key: 'KEY_VALUE' # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
15473+
idempotency_key: 'KEY_VALUE', # String | This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
15474+
15475+
allow_backorders: true # Boolean | Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
1546215476
}
1546315477

1546415478
begin
@@ -15480,6 +15494,7 @@ Name | Type | Description | Notes
1548015494
**summarize_errors** | **Boolean**| If false return 200 OK and mix of successfully created objects and any with validation errors | [optional] [default to false]
1548115495
**unitdp** | **Integer**| e.g. unitdp&#x3D;4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts | [optional]
1548215496
**idempotency_key** | **String**| This allows you to safely retry requests without the risk of duplicate processing. 128 character max. | [optional]
15497+
**allow_backorders** | **Boolean**| Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative | [optional]
1548315498

1548415499
### Return type
1548515500

docs/accounting/Item.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ Name | Type | Description | Notes
1515
**sales_details** | [**Purchase**](Purchase.md) | | [optional]
1616
**is_tracked_as_inventory** | **Boolean** | True for items that are tracked as inventory. An item will be tracked as inventory if the InventoryAssetAccountCode and COGSAccountCode are set. | [optional]
1717
**total_cost_pool** | **BigDecimal** | The value of the item on hand. Calculated using average cost accounting. | [optional]
18-
**quantity_on_hand** | **BigDecimal** | The quantity of the item on hand | [optional]
18+
**quantity_on_hand** | **BigDecimal** | The quantity of the item on hand. This will be 0 if &#x60;QuantityOnBackOrder&#x60; is greater than 0. | [optional]
19+
**quantity_available** | **Float** | The quantity of the item available. This is equal to &#x60;QuantityOnHand&#x60; - &#x60;QuantityOnBackOrder&#x60;. This value will be negative if &#x60;QuantityOnBackOrder&#x60; is greater than 0. | [optional]
20+
**quantity_on_back_order** | **Float** | The quantity of the item on backorder. This will be 0 if &#x60;QuantityOnHand&#x60; is greater than 0. | [optional]
1921
**updated_date_utc** | **DateTime** | Last modified date in UTC format | [optional]
2022
**item_id** | **String** | The Xero identifier for an Item | [optional]
2123
**status_attribute_string** | **String** | Status of object | [optional]
@@ -38,6 +40,8 @@ instance = XeroRuby::Accounting::Item.new(code: null,
3840
is_tracked_as_inventory: null,
3941
total_cost_pool: null,
4042
quantity_on_hand: null,
43+
quantity_available: null,
44+
quantity_on_back_order: null,
4145
updated_date_utc: /Date(1573755038314)/,
4246
item_id: null,
4347
status_attribute_string: null,

docs/accounting/index.html

Lines changed: 125 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3519,10 +3519,22 @@
35193519
},
35203520
"QuantityOnHand" : {
35213521
"type" : "number",
3522-
"description" : "The quantity of the item on hand",
3522+
"description" : "The quantity of the item on hand. This will be 0 if `QuantityOnBackOrder` is greater than 0.",
35233523
"format" : "double",
35243524
"x-is-money" : true
35253525
},
3526+
"QuantityAvailable" : {
3527+
"type" : "number",
3528+
"description" : "The quantity of the item available. This is equal to `QuantityOnHand` - `QuantityOnBackOrder`. This value will be negative if `QuantityOnBackOrder` is greater than 0.",
3529+
"format" : "double",
3530+
"readOnly" : true
3531+
},
3532+
"QuantityOnBackOrder" : {
3533+
"type" : "number",
3534+
"description" : "The quantity of the item on backorder. This will be 0 if `QuantityOnHand` is greater than 0.",
3535+
"format" : "double",
3536+
"readOnly" : true
3537+
},
35263538
"UpdatedDateUTC" : {
35273539
"type" : "string",
35283540
"description" : "Last modified date in UTC format",
@@ -6494,7 +6506,7 @@
64946506
<nav id="scrollingNav">
64956507
<ul class="sidenav nav nav-list">
64966508
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6497-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>18.0.0</li>
6509+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>18.1.0</li>
64986510
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
64996511
<li data-group="Accounting" data-name="createAccount" class="">
65006512
<a href="#api-Accounting-createAccount">createAccount</a>
@@ -12087,6 +12099,7 @@ <h3>Usage and SDK Samples</h3>
1208712099
summarize_errors = true
1208812100
unitdp = 4
1208912101
idempotency_key = 'KEY_VALUE'
12102+
allow_backorders = true
1209012103
date_value = 'YYYY-MM-DD'
1209112104
due_date_value = 'YYYY-MM-DD'
1209212105

@@ -12126,7 +12139,7 @@ <h3>Usage and SDK Samples</h3>
1212612139
}
1212712140

1212812141
begin
12129-
response = xero_client.accounting_api.create_invoices(xero_tenant_id, invoices, summarize_errors, unitdp, idempotency_key)
12142+
response = xero_client.accounting_api.create_invoices(xero_tenant_id, invoices, summarize_errors, unitdp, idempotency_key, allow_backorders)
1213012143
return response
1213112144
rescue XeroRuby::ApiError => e
1213212145
puts "Exception when calling create_invoices: #{e}"
@@ -12294,6 +12307,26 @@ <h2>Parameters</h2>
1229412307
</div>
1229512308
</div>
1229612309
</td>
12310+
</tr>
12311+
12312+
<tr><td style="width:150px;">allowBackorders</td>
12313+
<td>
12314+
12315+
12316+
<div id="d2e199_createInvoices_allowBackorders">
12317+
<div class="json-schema-view">
12318+
<div class="primitive">
12319+
<span class="type">
12320+
Boolean
12321+
</span>
12322+
12323+
<div class="inner description marked">
12324+
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
12325+
</div>
12326+
</div>
12327+
</div>
12328+
</div>
12329+
</td>
1229712330
</tr>
1229812331

1229912332
</table>
@@ -21403,9 +21436,10 @@ <h3>Usage and SDK Samples</h3>
2140321436
page = 1
2140421437
unitdp = 4
2140521438
pageSize = 100
21439+
references = [&quot;Ref1&quot;, &quot;Ref2&quot;]
2140621440

2140721441
begin
21408-
response = xero_client.accounting_api.get_bank_transactions(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize)
21442+
response = xero_client.accounting_api.get_bank_transactions(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, references)
2140921443
return response
2141021444
rescue XeroRuby::ApiError => e
2141121445
puts "Exception when calling get_bank_transactions: #{e}"
@@ -21585,6 +21619,26 @@ <h2>Parameters</h2>
2158521619
</div>
2158621620
</div>
2158721621
</td>
21622+
</tr>
21623+
21624+
<tr><td style="width:150px;">References</td>
21625+
<td>
21626+
21627+
21628+
<div id="d2e199_getBankTransactions_references">
21629+
<div class="json-schema-view">
21630+
<div class="primitive">
21631+
<span class="type">
21632+
array[String]
21633+
</span>
21634+
21635+
<div class="inner description marked">
21636+
Filter by a comma-separated list of References
21637+
</div>
21638+
</div>
21639+
</div>
21640+
</div>
21641+
</td>
2158821642
</tr>
2158921643

2159021644
</table>
@@ -31679,9 +31733,10 @@ <h3>Usage and SDK Samples</h3>
3167931733
unitdp = 4
3168031734
pageSize = 100
3168131735
invoice_numbers = [&quot;INV-001&quot;, &quot;INV-002&quot;]
31736+
references = [&quot;Ref1&quot;, &quot;Ref2&quot;]
3168231737

3168331738
begin
31684-
response = xero_client.accounting_api.get_prepayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, invoice_numbers)
31739+
response = xero_client.accounting_api.get_prepayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, invoice_numbers, references)
3168531740
return response
3168631741
rescue XeroRuby::ApiError => e
3168731742
puts "Exception when calling get_prepayments: #{e}"
@@ -31815,7 +31870,7 @@ <h2>Parameters</h2>
3181531870
</span>
3181631871

3181731872
<div class="inner description marked">
31818-
e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
31873+
e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment
3181931874
</div>
3182031875
</div>
3182131876
</div>
@@ -31881,6 +31936,26 @@ <h2>Parameters</h2>
3188131936
</div>
3188231937
</div>
3188331938
</td>
31939+
</tr>
31940+
31941+
<tr><td style="width:150px;">References</td>
31942+
<td>
31943+
31944+
31945+
<div id="d2e199_getPrepayments_references">
31946+
<div class="json-schema-view">
31947+
<div class="primitive">
31948+
<span class="type">
31949+
array[String]
31950+
</span>
31951+
31952+
<div class="inner description marked">
31953+
Filter by a comma-separated list of References
31954+
</div>
31955+
</div>
31956+
</div>
31957+
</div>
31958+
</td>
3188431959
</tr>
3188531960

3188631961
</table>
@@ -40920,6 +40995,7 @@ <h3>Usage and SDK Samples</h3>
4092040995
invoice_id = '00000000-0000-0000-0000-000000000000'
4092140996
unitdp = 4
4092240997
idempotency_key = 'KEY_VALUE'
40998+
allow_backorders = true
4092340999

4092441000
invoice = {
4092541001
reference: "I am Iron man"
@@ -40930,7 +41006,7 @@ <h3>Usage and SDK Samples</h3>
4093041006
}
4093141007

4093241008
begin
40933-
response = xero_client.accounting_api.update_invoice(xero_tenant_id, invoice_id, invoices, unitdp, idempotency_key)
41009+
response = xero_client.accounting_api.update_invoice(xero_tenant_id, invoice_id, invoices, unitdp, idempotency_key, allow_backorders)
4093441010
return response
4093541011
rescue XeroRuby::ApiError => e
4093641012
puts "Exception when calling update_invoice: #{e}"
@@ -41099,6 +41175,26 @@ <h2>Parameters</h2>
4109941175
</div>
4110041176
</div>
4110141177
</td>
41178+
</tr>
41179+
41180+
<tr><td style="width:150px;">allowBackorders</td>
41181+
<td>
41182+
41183+
41184+
<div id="d2e199_updateInvoice_allowBackorders">
41185+
<div class="json-schema-view">
41186+
<div class="primitive">
41187+
<span class="type">
41188+
Boolean
41189+
</span>
41190+
41191+
<div class="inner description marked">
41192+
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
41193+
</div>
41194+
</div>
41195+
</div>
41196+
</div>
41197+
</td>
4110241198
</tr>
4110341199

4110441200
</table>
@@ -42779,6 +42875,7 @@ <h3>Usage and SDK Samples</h3>
4277942875
summarize_errors = true
4278042876
unitdp = 4
4278142877
idempotency_key = 'KEY_VALUE'
42878+
allow_backorders = true
4278242879
date_value = 'YYYY-MM-DD'
4278342880
due_date_value = 'YYYY-MM-DD'
4278442881

@@ -42810,7 +42907,7 @@ <h3>Usage and SDK Samples</h3>
4281042907
}
4281142908

4281242909
begin
42813-
response = xero_client.accounting_api.update_or_create_invoices(xero_tenant_id, invoices, summarize_errors, unitdp, idempotency_key)
42910+
response = xero_client.accounting_api.update_or_create_invoices(xero_tenant_id, invoices, summarize_errors, unitdp, idempotency_key, allow_backorders)
4281442911
return response
4281542912
rescue XeroRuby::ApiError => e
4281642913
puts "Exception when calling update_or_create_invoices: #{e}"
@@ -42977,6 +43074,26 @@ <h2>Parameters</h2>
4297743074
</div>
4297843075
</div>
4297943076
</td>
43077+
</tr>
43078+
43079+
<tr><td style="width:150px;">allowBackorders</td>
43080+
<td>
43081+
43082+
43083+
<div id="d2e199_updateOrCreateInvoices_allowBackorders">
43084+
<div class="json-schema-view">
43085+
<div class="primitive">
43086+
<span class="type">
43087+
Boolean
43088+
</span>
43089+
43090+
<div class="inner description marked">
43091+
Allows an invoice to be created even when one or more line items contain tracked inventory where the invoice quantity would cause the available quantity to go negative
43092+
</div>
43093+
</div>
43094+
</div>
43095+
</div>
43096+
</td>
4298043097
</tr>
4298143098

4298243099
</table>

docs/app_store/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1242,7 +1242,7 @@
12421242
<nav id="scrollingNav">
12431243
<ul class="sidenav nav nav-list">
12441244
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1245-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>18.0.0</li>
1245+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>18.1.0</li>
12461246
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12471247
<li data-group="AppStore" data-name="getSubscription" class="">
12481248
<a href="#api-AppStore-getSubscription">getSubscription</a>

0 commit comments

Comments
 (0)