Skip to content

Commit

Permalink
Adds two new finance endpoints and some minor enhancements
Browse files Browse the repository at this point in the history
  • Loading branch information
rdemarco-xero committed Nov 23, 2021
1 parent 20af852 commit 3039e8a
Show file tree
Hide file tree
Showing 31 changed files with 2,926 additions and 39 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ This SDK supports full method coverage for the following Xero API sets:
| [`Accounting`](https://xeroapi.github.io/Xero-Java/v4/accounting/index.html) | The Accounting API exposes accounting functions of the main Xero application *(most commonly used)*
| [Assets](https://xeroapi.github.io/Xero-Java/v4/assets/index.html) | The Assets API exposes fixed asset related functions of the Xero Accounting application |
| [Files](https://xeroapi.github.io/Xero-Java/v4/files/index.html) | The Files API provides access to the files, folders, and the association of files within a Xero organisation |
| [Finance](https://xeroapi.github.io/Xero-Java/v4/finance/index.html) | The Finance API exposes finacial functions that may help lenders gain the confidence they need to provide capital |
| [Projects](https://xeroapi.github.io/Xero-Java/v4/projects/index.html) | Xero Projects allows businesses to track time and costs on projects/jobs and report on profitability |
| [Payroll (AU)](https://xeroapi.github.io/Xero-Java/v4/payroll_au/index.html) | The (AU) Payroll API exposes payroll related functions of the payroll Xero application |
| [Payroll (UK)](https://xeroapi.github.io/Xero-Java/v4/payroll_uk/index.html) | The (UK) Payroll API exposes payroll related functions of the payroll Xero application |
Expand Down
45 changes: 43 additions & 2 deletions docs/v4/accounting/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1982,6 +1982,11 @@
"description" : "Xero identifier",
"format" : "uuid"
},
"MergedToContactID" : {
"type" : "string",
"description" : "ID for the destination of a merged contact. Only returned when using paging or when fetching a contact by ContactId or ContactNumber.",
"format" : "uuid"
},
"ContactNumber" : {
"maxLength" : 50,
"type" : "string",
Expand Down Expand Up @@ -2012,6 +2017,11 @@
"type" : "string",
"description" : "Last name of contact person (max length = 255)"
},
"CompanyNumber" : {
"maxLength" : 50,
"type" : "string",
"description" : "Company registration number (max length = 50)"
},
"EmailAddress" : {
"maxLength" : 255,
"type" : "string",
Expand Down Expand Up @@ -2067,6 +2077,16 @@
"type" : "boolean",
"description" : "true or false – Boolean that describes if a contact has any AR invoices entered against them. Cannot be set via PUT or POST – it is automatically set when an accounts receivable invoice is generated against this contact."
},
"SalesDefaultLineAmountType" : {
"type" : "string",
"description" : "The default sales line amount type for a contact. Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.",
"enum" : [ "INCLUSIVE", "EXCLUSIVE", "NONE" ]
},
"PurchasesDefaultLineAmountType" : {
"type" : "string",
"description" : "The default purchases line amount type for a contact Only available when summaryOnly parameter or paging is used, or when fetch by ContactId or ContactNumber.",
"enum" : [ "INCLUSIVE", "EXCLUSIVE", "NONE" ]
},
"DefaultCurrency" : {
"$ref" : "#/components/schemas/CurrencyCode"
},
Expand Down Expand Up @@ -5960,7 +5980,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>4.13.0</li>
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.14.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 @@ -22561,9 +22581,10 @@ <h3>Usage and SDK Samples</h3>
Integer page = 1;
Boolean includeArchived = true;
Boolean summaryOnly = true;
String searchTerm = 'searchTerm=Joe Bloggs';

try {
Contacts result = apiInstance.getContacts(accessToken, xeroTenantId, ifModifiedSince, where, order, iDs, page, includeArchived, summaryOnly);
Contacts result = apiInstance.getContacts(accessToken, xeroTenantId, ifModifiedSince, where, order, iDs, page, includeArchived, summaryOnly, searchTerm);
System.out.println(result);
} catch (XeroException e) {
System.err.println("Exception when calling AccountingApi#getContacts");
Expand Down Expand Up @@ -22768,6 +22789,26 @@ <h2>Parameters</h2>
</div>
</div>
</td>
</tr>

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


<div id="d2e199_getContacts_searchTerm">
<div class="json-schema-view">
<div class="primitive">
<span class="type">
String
</span>

<div class="inner description marked">
Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
</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 @@ -1123,7 +1123,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>4.13.0</li>
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.14.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 @@ -1387,7 +1387,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>4.13.0</li>
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.14.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 @@ -1151,7 +1151,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>4.13.0</li>
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.14.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
Loading

0 comments on commit 3039e8a

Please sign in to comment.