Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 125 additions & 8 deletions docs/v1/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3519,10 +3519,22 @@
},
"QuantityOnHand" : {
"type" : "number",
"description" : "The quantity of the item on hand",
"description" : "The quantity of the item on hand. This will be 0 if `QuantityOnBackOrder` is greater than 0.",
"format" : "double",
"x-is-money" : true
},
"QuantityAvailable" : {
"type" : "number",
"description" : "The quantity of the item available. This is equal to `QuantityOnHand` - `QuantityOnBackOrder`. This value will be negative if `QuantityOnBackOrder` is greater than 0.",
"format" : "double",
"readOnly" : true
},
"QuantityOnBackOrder" : {
"type" : "number",
"description" : "The quantity of the item on backorder. This will be 0 if `QuantityOnHand` is greater than 0.",
"format" : "double",
"readOnly" : true
},
"UpdatedDateUTC" : {
"type" : "string",
"description" : "Last modified date in UTC format",
Expand Down Expand Up @@ -6494,7 +6506,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
<li data-group="Accounting" data-name="createAccount" class="">
<a href="#api-Accounting-createAccount">createAccount</a>
Expand Down Expand Up @@ -12350,6 +12362,7 @@ <h3>Usage and SDK Samples</h3>
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
summarize_errors = 'True'
idempotency_key = 'KEY_VALUE'
allow_backorders = 'true'
date_value = dateutil.parser.parse('2020-10-10T00:00:00Z')
due_date_value = dateutil.parser.parse('2020-10-28T00:00:00Z')

Expand Down Expand Up @@ -12386,7 +12399,7 @@ <h3>Usage and SDK Samples</h3>
invoices = [invoice])

try:
api_response = api_instance.create_invoices(xero_tenant_id, invoices, summarize_errors, unitdp, idempotency_key)
api_response = api_instance.create_invoices(xero_tenant_id, invoices, summarize_errors, unitdp, idempotency_key, allow_backorders)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->createInvoices: %s\n" % e)</code></pre>
Expand Down Expand Up @@ -12552,6 +12565,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


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

<div class="inner description marked">
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
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -22217,9 +22250,10 @@ <h3>Usage and SDK Samples</h3>
if_modified_since = dateutil.parser.parse("2020-02-06T12:17:43.202-08:00")
where = 'Status=="AUTHORISED"'
order = 'Type ASC'
references = [&quot;Ref1&quot;, &quot;Ref2&quot;]

try:
api_response = api_instance.get_bank_transactions(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize)
api_response = api_instance.get_bank_transactions(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, references)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->getBankTransactions: %s\n" % e)</code></pre>
Expand Down Expand Up @@ -22397,6 +22431,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_getBankTransactions_references">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
array[String]
</span>

<div class="inner description marked">
Filter by a comma-separated list of References
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -33260,9 +33314,10 @@ <h3>Usage and SDK Samples</h3>
where = 'Status=="AUTHORISED"'
order = 'Reference ASC'
invoice_numbers = [&quot;INV-001&quot;, &quot;INV-002&quot;]
references = [&quot;Ref1&quot;, &quot;Ref2&quot;]

try:
api_response = api_instance.get_prepayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, invoice_numbers)
api_response = api_instance.get_prepayments(xero_tenant_id, if_modified_since, where, order, page, unitdp, pageSize, invoice_numbers, references)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->getPrepayments: %s\n" % e)</code></pre>
Expand Down Expand Up @@ -33394,7 +33449,7 @@ <h2>Parameters</h2>
</span>

<div class="inner description marked">
e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each overpayment
e.g. page=1 – Up to 100 prepayments will be returned in a single API call with line items shown for each prepayment
</div>
</div>
</div>
Expand Down Expand Up @@ -33460,6 +33515,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_getPrepayments_references">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
array[String]
</span>

<div class="inner description marked">
Filter by a comma-separated list of References
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -43119,6 +43194,7 @@ <h3>Usage and SDK Samples</h3>
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
invoice_id = '00000000-0000-0000-0000-000000000000'
idempotency_key = 'KEY_VALUE'
allow_backorders = 'true'

invoice = Invoice(
reference = "I am Iron man")
Expand All @@ -43127,7 +43203,7 @@ <h3>Usage and SDK Samples</h3>
invoices = [invoice])

try:
api_response = api_instance.update_invoice(xero_tenant_id, invoice_id, invoices, unitdp, idempotency_key)
api_response = api_instance.update_invoice(xero_tenant_id, invoice_id, invoices, unitdp, idempotency_key, allow_backorders)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->updateInvoice: %s\n" % e)</code></pre>
Expand Down Expand Up @@ -43294,6 +43370,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


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

<div class="inner description marked">
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
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down Expand Up @@ -45063,6 +45159,7 @@ <h3>Usage and SDK Samples</h3>
xero_tenant_id = 'YOUR_XERO_TENANT_ID'
summarize_errors = 'True'
idempotency_key = 'KEY_VALUE'
allow_backorders = 'true'
date_value = dateutil.parser.parse('2020-10-10T00:00:00Z')
due_date_value = dateutil.parser.parse('2020-10-28T00:00:00Z')

Expand Down Expand Up @@ -45091,7 +45188,7 @@ <h3>Usage and SDK Samples</h3>
invoices = [invoice])

try:
api_response = api_instance.update_or_create_invoices(xero_tenant_id, invoices, summarize_errors, unitdp, idempotency_key)
api_response = api_instance.update_or_create_invoices(xero_tenant_id, invoices, summarize_errors, unitdp, idempotency_key, allow_backorders)
print(api_response)
except AccountingBadRequestException as e:
print("Exception when calling AccountingApi->updateOrCreateInvoices: %s\n" % e)</code></pre>
Expand Down Expand Up @@ -45256,6 +45353,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


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

<div class="inner description marked">
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
</div>
</div>
</div>
</div>
</td>
</tr>

</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1242,7 +1242,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
<li data-group="AppStore" data-name="getSubscription" class="">
<a href="#api-AppStore-getSubscription">getSubscription</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1420,7 +1420,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
<li data-group="Asset" data-name="createAsset" class="">
<a href="#api-Asset-createAsset">createAsset</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
<li data-group="Files" data-name="createFileAssociation" class="">
<a href="#api-Files-createFileAssociation">createFileAssociation</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
<li data-group="Finance" data-name="getBankStatementAccounting" class="">
<a href="#api-Finance-getBankStatementAccounting">getBankStatementAccounting</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-au-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1160,7 +1160,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAuV2"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAuV2"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="PayrollAuV2"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="PayrollAuV2"><a href="#api-PayrollAuV2">Methods</a></li>
<li data-group="PayrollAuV2" data-name="approveTimesheet" class="">
<a href="#api-PayrollAuV2-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-au/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3450,7 +3450,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
<li data-group="PayrollAu" data-name="approveLeaveApplication" class="">
<a href="#api-PayrollAu-approveLeaveApplication">approveLeaveApplication</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4068,7 +4068,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3701,7 +3701,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>
Expand Down
2 changes: 1 addition & 1 deletion docs/v1/projects/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1463,7 +1463,7 @@
<nav id="scrollingNav">
<ul class="sidenav nav nav-list">
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>15.0.0</li>
<li class="nav-header" data-group="Project"><strong>VSN: </strong>15.1.0</li>
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
<li data-group="Project" data-name="createProject" class="">
<a href="#api-Project-createProject">createProject</a>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ def read_file(filename):
keywords="xero python sdk API oAuth",
name="xero_python",
packages=find_packages(include=["xero_python", "xero_python.*"]),
version="15.0.0",
version="15.1.0",
)
2 changes: 1 addition & 1 deletion xero_python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

__author__ = """Xero Developer API"""
__email__ = "api@xero.com"
__version__ = "15.0.0"
__version__ = "15.1.0"
Loading
Loading