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/v4/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3517,10 +3517,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 @@ -6490,7 +6502,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>18.0.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>18.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 @@ -12419,6 +12431,7 @@ <h3>Usage and SDK Samples</h3>
Boolean summarizeErrors = true;
Integer unitdp = 4;
String idempotencyKey = 'KEY_VALUE';
Boolean allowBackorders = true;
LocalDate dateValue = LocalDate.of(2020, Month.OCTOBER, 10);
LocalDate dueDateValue = LocalDate.of(2020, Month.OCTOBER, 28);

Expand Down Expand Up @@ -12455,7 +12468,7 @@ <h3>Usage and SDK Samples</h3>
invoices.addInvoicesItem(invoice);

try {
Invoices result = apiInstance.createInvoices(accessToken, xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey);
Invoices result = apiInstance.createInvoices(accessToken, xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey, allowBackorders);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AccountingApi#createInvoices");
Expand Down Expand Up @@ -12625,6 +12638,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 @@ -22455,9 +22488,10 @@ <h3>Usage and SDK Samples</h3>
Integer page = 1;
Integer unitdp = 4;
Integer pageSize = 100;
array[String] references = &quot;Ref1&quot;, &quot;Ref2&quot;;

try {
BankTransactions result = apiInstance.getBankTransactions(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize);
BankTransactions result = apiInstance.getBankTransactions(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, references);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AccountingApi#getBankTransactions");
Expand Down Expand Up @@ -22639,6 +22673,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 @@ -33737,9 +33791,10 @@ <h3>Usage and SDK Samples</h3>
Integer unitdp = 4;
Integer pageSize = 100;
array[String] invoiceNumbers = &quot;INV-001&quot;, &quot;INV-002&quot;;
array[String] references = &quot;Ref1&quot;, &quot;Ref2&quot;;

try {
Prepayments result = apiInstance.getPrepayments(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers);
Prepayments result = apiInstance.getPrepayments(accessToken, xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, invoiceNumbers, references);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AccountingApi#getPrepayments");
Expand Down Expand Up @@ -33875,7 +33930,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 @@ -33941,6 +33996,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 @@ -43774,6 +43849,7 @@ <h3>Usage and SDK Samples</h3>
UUID invoiceID = '00000000-0000-0000-0000-000000000000';
Integer unitdp = 4;
String idempotencyKey = 'KEY_VALUE';
Boolean allowBackorders = true;

Invoice invoice = new Invoice();
invoice.setReference("I am Iron man");
Expand All @@ -43782,7 +43858,7 @@ <h3>Usage and SDK Samples</h3>
invoices.addInvoicesItem(invoice);

try {
Invoices result = apiInstance.updateInvoice(accessToken, xeroTenantId, invoiceID, invoices, unitdp, idempotencyKey);
Invoices result = apiInstance.updateInvoice(accessToken, xeroTenantId, invoiceID, invoices, unitdp, idempotencyKey, allowBackorders);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AccountingApi#updateInvoice");
Expand Down Expand Up @@ -43953,6 +44029,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 @@ -45747,6 +45843,7 @@ <h3>Usage and SDK Samples</h3>
Boolean summarizeErrors = true;
Integer unitdp = 4;
String idempotencyKey = 'KEY_VALUE';
Boolean allowBackorders = true;
LocalDate dateValue = LocalDate.of(2020, Month.OCTOBER, 10);
LocalDate dueDateValue = LocalDate.of(2020, Month.OCTOBER, 28);

Expand Down Expand Up @@ -45775,7 +45872,7 @@ <h3>Usage and SDK Samples</h3>
invoices.addInvoicesItem(invoice);

try {
Invoices result = apiInstance.updateOrCreateInvoices(accessToken, xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey);
Invoices result = apiInstance.updateOrCreateInvoices(accessToken, xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey, allowBackorders);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AccountingApi#updateOrCreateInvoices");
Expand Down Expand Up @@ -45944,6 +46041,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/v4/appstore/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1238,7 +1238,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>18.0.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>18.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/v4/assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1416,7 +1416,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>18.0.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>18.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/v4/files/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,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>18.0.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>18.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/v4/finance/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2372,7 +2372,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>18.0.0</li>
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>18.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/v4/payroll-au-v2/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,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>18.0.0</li>
<li class="nav-header" data-group="PayrollAuV2"><strong>VSN: </strong>18.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/v4/payroll-au/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3449,7 +3449,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>18.0.0</li>
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>18.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/v4/payroll-nz/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4064,7 +4064,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>18.0.0</li>
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>18.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/v4/payroll-uk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3697,7 +3697,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>18.0.0</li>
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>18.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 pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>xero-java</artifactId>
<packaging>jar</packaging>
<name>xero-java</name>
<version>18.0.0</version>
<version>18.1.0</version>
<url>https://github.com/XeroAPI/Xero-Java</url>
<description>This is the official Java SDK for Xero API</description>
<licenses>
Expand Down
Loading
Loading