Skip to content

Commit 36a532c

Browse files
authored
Merge pull request #433 from XeroAPI/docker-test
adds user agent, built using 2.2.6 spec, bump to 4.7.4
2 parents 1bad0d5 + b8e0fc7 commit 36a532c

File tree

338 files changed

+2047
-500
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+2047
-500
lines changed

docs/v4/accounting/index.html

Lines changed: 1063 additions & 93 deletions
Large diffs are not rendered by default.

docs/v4/assets/index.html

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@
914914
};
915915
defs["AssetType"] = {
916916
"title" : "",
917-
"required" : [ "assetTypeId", "assetTypeName", "bookDepreciationSetting" ],
917+
"required" : [ "assetTypeName", "bookDepreciationSetting" ],
918918
"type" : "object",
919919
"properties" : {
920920
"assetTypeId" : {
@@ -1299,7 +1299,7 @@ <h1>Xero Assets API</h1>
12991299
<h2 id="welcome-to-apidoc">API and SDK Documentation</h2>
13001300
<div class="app-desc">Version: 1.0.0</div>
13011301
<!--
1302-
<div class="app-desc">Version: 2.2.4</div>
1302+
<div class="app-desc">Version: 2.2.6</div>
13031303
<hr>
13041304
<div id="app-description" class="app-desc">
13051305
This is the Xero Assets API
@@ -1658,7 +1658,18 @@ <h2>Parameters</h2>
16581658
<!--p class="marked">Fixed asset you are creating</p-->
16591659
<script>
16601660
$(document).ready(function() {
1661-
var schemaWrapper = {} ;
1661+
var schemaWrapper = {} {
1662+
"description" : "Fixed asset you are creating",
1663+
"content" : {
1664+
"application/json" : {
1665+
"schema" : {
1666+
"$ref" : "#/components/schemas/Asset"
1667+
},
1668+
"example" : "{ \"assetName\":\"Computer74863\", \"assetNumber\":\"123477544\", \"purchaseDate\":\"2020-01-01\", \"purchasePrice\":100.0, \"disposalPrice\":23.23, \"assetStatus\":\"Draft\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"StraightLine\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.5, \"depreciationCalculationMethod\":\"None\" }, \"bookDepreciationDetail\":{ \"currentCapitalGain\":5.32, \"currentGainLoss\":3.88, \"depreciationStartDate\":\"2020-01-02\", \"costLimit\":100.0, \"currentAccumDepreciationAmount\":2.25 }, \"AccountingBookValue\":99.5 }"
1669+
}
1670+
},
1671+
"required" : true
1672+
} {} ;
16621673
var schema = schemaWrapper.schema;
16631674
if (schema.$ref != null) {
16641675
schema = defsParser.$refs.get(schema.$ref);
@@ -2128,7 +2139,17 @@ <h2>Parameters</h2>
21282139
<!--p class="marked">Asset type to add</p-->
21292140
<script>
21302141
$(document).ready(function() {
2131-
var schemaWrapper = {} ;
2142+
var schemaWrapper = {} {
2143+
"description" : "Asset type to add",
2144+
"content" : {
2145+
"application/json" : {
2146+
"schema" : {
2147+
"$ref" : "#/components/schemas/AssetType"
2148+
},
2149+
"example" : "{ \"assetTypeName\":\"Machinery11004\", \"fixedAssetAccountId\":\"3d8d063a-c148-4bb8-8b3c-a5e2ad3b1e82\", \"depreciationExpenseAccountId\":\"d1602f69-f900-4616-8d34-90af393fa368\", \"accumulatedDepreciationAccountId\":\"9195cadd-8645-41e6-9f67-7bcd421defe8\", \"bookDepreciationSetting\":{ \"depreciationMethod\":\"DiminishingValue100\", \"averagingMethod\":\"ActualDays\", \"depreciationRate\":0.05, \"depreciationCalculationMethod\":\"None\" } }"
2150+
}
2151+
}
2152+
} {} ;
21322153
var schema = schemaWrapper.schema;
21332154
if (schema.$ref != null) {
21342155
schema = defsParser.$refs.get(schema.$ref);

docs/v4/bankfeeds/index.html

Lines changed: 94 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1185,7 +1185,7 @@ <h1>Bank Feeds API</h1>
11851185
<h2 id="welcome-to-apidoc">API and SDK Documentation</h2>
11861186
<div class="app-desc">Version: 1.0.0</div>
11871187
<!--
1188-
<div class="app-desc">Version: 2.2.4</div>
1188+
<div class="app-desc">Version: 2.2.6</div>
11891189
<hr>
11901190
<div id="app-description" class="app-desc">
11911191
This specifing endpoints Xero Bank feeds API
@@ -1544,7 +1544,26 @@ <h2>Parameters</h2>
15441544
<!--p class="marked">Feed Connection(s) array object in the body</p-->
15451545
<script>
15461546
$(document).ready(function() {
1547-
var schemaWrapper = {} ;
1547+
var schemaWrapper = {} {
1548+
"description" : "Feed Connection(s) array object in the body",
1549+
"content" : {
1550+
"application/json" : {
1551+
"schema" : {
1552+
"$ref" : "#/components/schemas/FeedConnections"
1553+
},
1554+
"example" : {
1555+
"items" : [ {
1556+
"accountToken" : "foobar71760",
1557+
"accountNumber" : "123458637",
1558+
"accountName" : "SDK Bank 90861",
1559+
"accountType" : "BANK",
1560+
"currency" : "GBP"
1561+
} ]
1562+
}
1563+
}
1564+
},
1565+
"required" : true
1566+
} {} ;
15481567
var schema = schemaWrapper.schema;
15491568
if (schema.$ref != null) {
15501569
schema = defsParser.$refs.get(schema.$ref);
@@ -2089,7 +2108,63 @@ <h2>Parameters</h2>
20892108
<!--p class="marked">Statements array of objects in the body</p-->
20902109
<script>
20912110
$(document).ready(function() {
2092-
var schemaWrapper = {} ;
2111+
var schemaWrapper = {} {
2112+
"description" : "Statements array of objects in the body",
2113+
"content" : {
2114+
"application/json" : {
2115+
"schema" : {
2116+
"$ref" : "#/components/schemas/Statements"
2117+
},
2118+
"example" : {
2119+
"items" : [ {
2120+
"feedConnectionId" : "6a4b9ff5-3a5f-4321-936b-4796163550f6",
2121+
"startDate" : "2019-08-11",
2122+
"endDate" : "2019-08-11",
2123+
"startBalance" : {
2124+
"amount" : "100",
2125+
"creditDebitIndicator" : "CREDIT"
2126+
},
2127+
"endBalance" : {
2128+
"amount" : "150",
2129+
"creditDebitIndicator" : "CREDIT"
2130+
},
2131+
"statementLines" : [ {
2132+
"postedDate" : "2019-08-11",
2133+
"description" : "My new line",
2134+
"amount" : "50",
2135+
"creditDebitIndicator" : "CREDIT",
2136+
"transactionId" : "123446422",
2137+
"payeeName" : "StarLord90315",
2138+
"reference" : "Foobar95578",
2139+
"chequeNumber" : "12379009"
2140+
} ]
2141+
}, {
2142+
"feedConnectionId" : "2ebe6393-f3bb-48ab-9a0e-b04fa8585a70",
2143+
"startDate" : "2019-08-11",
2144+
"endDate" : "2019-08-11",
2145+
"startBalance" : {
2146+
"amount" : "100",
2147+
"creditDebitIndicator" : "CREDIT"
2148+
},
2149+
"endBalance" : {
2150+
"amount" : "150",
2151+
"creditDebitIndicator" : "CREDIT"
2152+
},
2153+
"statementLines" : [ {
2154+
"postedDate" : "2019-08-11",
2155+
"description" : "My new line",
2156+
"amount" : "50",
2157+
"creditDebitIndicator" : "CREDIT",
2158+
"transactionId" : "123449402",
2159+
"payeeName" : "StarLord56705",
2160+
"reference" : "Foobar67355",
2161+
"chequeNumber" : "12379350"
2162+
} ]
2163+
} ]
2164+
}
2165+
}
2166+
}
2167+
} {} ;
20932168
var schema = schemaWrapper.schema;
20942169
if (schema.$ref != null) {
20952170
schema = defsParser.$refs.get(schema.$ref);
@@ -3004,7 +3079,22 @@ <h2>Parameters</h2>
30043079
<!--p class="marked">Feed Connections array object in the body</p-->
30053080
<script>
30063081
$(document).ready(function() {
3007-
var schemaWrapper = {} ;
3082+
var schemaWrapper = {} {
3083+
"description" : "Feed Connections array object in the body",
3084+
"content" : {
3085+
"application/json" : {
3086+
"schema" : {
3087+
"$ref" : "#/components/schemas/FeedConnections"
3088+
},
3089+
"example" : {
3090+
"items" : [ {
3091+
"id" : "b4cc693b-24d9-42ec-a6d4-2943d253ff63"
3092+
} ]
3093+
}
3094+
}
3095+
},
3096+
"required" : true
3097+
} {} ;
30083098
var schema = schemaWrapper.schema;
30093099
if (schema.$ref != null) {
30103100
schema = defsParser.$refs.get(schema.$ref);

0 commit comments

Comments
 (0)