-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #310 from XeroAPI/minor-spec-updates
minor updates to finance, payrollUK, and appStore apis
- Loading branch information
Showing
25 changed files
with
550 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6004,7 +6004,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.15.1</li> | ||
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.16.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> | ||
|
@@ -6375,6 +6375,9 @@ | |
<li data-group="Accounting" data-name="getJournal" class=""> | ||
<a href="#api-Accounting-getJournal">getJournal</a> | ||
</li> | ||
<li data-group="Accounting" data-name="getJournalByNumber" class=""> | ||
<a href="#api-Accounting-getJournalByNumber">getJournalByNumber</a> | ||
</li> | ||
<li data-group="Accounting" data-name="getJournals" class=""> | ||
<a href="#api-Accounting-getJournals">getJournals</a> | ||
</li> | ||
|
@@ -9419,7 +9422,7 @@ <h2>Parameters</h2> | |
"schema" : { | ||
"$ref" : "#/components/schemas/Contacts" | ||
}, | ||
"example" : "{ \"Id\": \"e997d6d7-6dad-4458-beb8-d9c1bf7f2edf\", \"Status\": \"OK\", \"ProviderName\": \"Xero API Partner\", \"DateTimeUTC\": \"/Date(1551399321121)/\", \"Contacts\": [ { \"ContactID\": \"3ff6d40c-af9a-40a3-89ce-3c1556a25591\", \"ContactStatus\": \"ACTIVE\", \"Name\": \"Foo9987\", \"EmailAddress\": \"[email protected]\", \"BankAccountDetails\": \"\", \"Addresses\": [ { \"AddressType\": \"STREET\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" }, { \"AddressType\": \"POBOX\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" } ], \"Phones\": [ { \"PhoneType\": \"DEFAULT\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"DDI\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"FAX\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"MOBILE\", \"PhoneNumber\": \"555-1212\", \"PhoneAreaCode\": \"415\", \"PhoneCountryCode\": \"\" } ], \"UpdatedDateUTC\": \"/Date(1551399321043+0000)/\", \"ContactGroups\": [], \"IsSupplier\": false, \"IsCustomer\": false, \"SalesTrackingCategories\": [], \"PurchasesTrackingCategories\": [], \"PaymentTerms\": { \"Bills\": { \"Day\": 15, \"Type\": \"OFCURRENTMONTH\" }, \"Sales\": { \"Day\": 10, \"Type\": \"DAYSAFTERBILLMONTH\" } }, \"ContactPersons\": [], \"HasValidationErrors\": false } ] }" | ||
"example" : "{ \"Contacts\": [ { \"ContactID\": \"3ff6d40c-af9a-40a3-89ce-3c1556a25591\", \"ContactStatus\": \"ACTIVE\", \"Name\": \"Foo9987\", \"EmailAddress\": \"[email protected]\", \"BankAccountDetails\": \"\", \"Addresses\": [ { \"AddressType\": \"STREET\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" }, { \"AddressType\": \"POBOX\", \"City\": \"\", \"Region\": \"\", \"PostalCode\": \"\", \"Country\": \"\" } ], \"Phones\": [ { \"PhoneType\": \"DEFAULT\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"DDI\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"FAX\", \"PhoneNumber\": \"\", \"PhoneAreaCode\": \"\", \"PhoneCountryCode\": \"\" }, { \"PhoneType\": \"MOBILE\", \"PhoneNumber\": \"555-1212\", \"PhoneAreaCode\": \"415\", \"PhoneCountryCode\": \"\" } ], \"UpdatedDateUTC\": \"/Date(1551399321043+0000)/\", \"ContactGroups\": [], \"IsSupplier\": false, \"IsCustomer\": false, \"SalesTrackingCategories\": [], \"PurchasesTrackingCategories\": [], \"PaymentTerms\": { \"Bills\": { \"Day\": 15, \"Type\": \"OFCURRENTMONTH\" }, \"Sales\": { \"Day\": 10, \"Type\": \"DAYSAFTERBILLMONTH\" } }, \"ContactPersons\": [] } ] }" | ||
} | ||
}, | ||
"required" : true | ||
|
@@ -26824,6 +26827,129 @@ <h2>Parameters</h2> | |
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
|
||
</table> | ||
</article> | ||
</div> | ||
<hr> | ||
<div id="api-Accounting-getJournalByNumber"> | ||
<article id="api-Accounting-getJournalByNumber-0" data-group="User" data-name="getJournalByNumber" data-version="0"> | ||
<div class="pull-left"> | ||
<h1>getJournalByNumber</h1> | ||
<p>Retrieves a specific journal using a unique journal number.</p> | ||
</div> | ||
<div class="pull-right"></div> | ||
<div class="clearfix"></div> | ||
<p></p> | ||
<p class="marked"></p> | ||
<p></p> | ||
<br /> | ||
<pre class="prettyprint language-html prettyprinted" data-type="get"><code><span class="pln">/Journals/{JournalNumber}</span></code></pre> | ||
<p> | ||
<h3>Usage and SDK Samples</h3> | ||
</p> | ||
<ul class="nav nav-tabs nav-tabs-examples"> | ||
<li class=""><a href="#examples-Accounting-getJournalByNumber-0-java">Java</a></li> | ||
</ul> | ||
<div class="tab-content"> | ||
<div class="tab-pane" id="examples-Accounting-getJournalByNumber-0-java"> | ||
<pre class="prettyprint"><code class="language-java">import org.openapitools.client.api.*; | ||
import org.openapitools.client.api.client.AccountingApi; | ||
import org.openapitools.client.models.accounting.*; | ||
|
||
import java.io.File; | ||
import java.util.*; | ||
|
||
public class AccountingApiExample { | ||
private AccountingApi apiInstance; | ||
|
||
public static void main(String[] args) { | ||
String accessToken = "YOUR_ACCESS_TOKEN"; | ||
ApiClient defaultClient = new ApiClient(); | ||
|
||
apiInstance = AccountingApi.getInstance(defaultClient); | ||
String xeroTenantId = 'YOUR_XERO_TENANT_ID'; | ||
Integer journalNumber = 1000; | ||
|
||
try { | ||
Journals result = apiInstance.getJournalByNumber(accessToken, xeroTenantId, journalNumber); | ||
System.out.println(result); | ||
} catch (XeroException e) { | ||
System.err.println("Exception when calling AccountingApi#getJournalByNumber"); | ||
e.printStackTrace(); | ||
} | ||
} | ||
}</code></pre> | ||
</div> | ||
</div> | ||
<h2>Scopes</h2> | ||
<table> | ||
|
||
<tr> | ||
<td>accounting.journals.read</td> | ||
<td>Grant read-only access to journals</td> | ||
</tr> | ||
|
||
</table> | ||
<h2>Parameters</h2> | ||
<div class="methodsubtabletitle">Path parameters</div> | ||
<table id="methodsubtable"> | ||
<tr> | ||
<th width="150px">Name</th> | ||
<th>Description</th> | ||
</tr> | ||
<tr><td style="width:150px;">JournalNumber<span style="color:red;">*</span></td> | ||
<td> | ||
|
||
|
||
<div id="d2e199_getJournalByNumber_journalNumber"> | ||
<div class="json-schema-view"> | ||
<div class="primitive"> | ||
<span class="type"> | ||
Integer | ||
</span> | ||
|
||
<div class="inner description marked"> | ||
Number of a Journal | ||
</div> | ||
</div> | ||
<div class="inner required"> | ||
Required | ||
</div> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
|
||
</table> | ||
<div class="methodsubtabletitle">Header parameters</div> | ||
<table id="methodsubtable"> | ||
<tr> | ||
<th width="150px">Name</th> | ||
<th>Description</th> | ||
</tr> | ||
<tr><td style="width:150px;">xero-tenant-id<span style="color:red;">*</span></td> | ||
<td> | ||
|
||
|
||
<div id="d2e199_getJournalByNumber_xeroTenantId"> | ||
<div class="json-schema-view"> | ||
<div class="primitive"> | ||
<span class="type"> | ||
String | ||
</span> | ||
|
||
<div class="inner description marked"> | ||
Xero identifier for Tenant | ||
</div> | ||
</div> | ||
<div class="inner required"> | ||
Required | ||
</div> | ||
</div> | ||
</div> | ||
</td> | ||
</tr> | ||
|
||
</table> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.