Skip to content

Commit b722201

Browse files
authored
Merge pull request #619 from XeroAPI/xero-node-4.32.0
generate xero-node 4.32.0 from OAS 2.34.1
2 parents fc76e2d + ec241e3 commit b722201

26 files changed

+127
-48
lines changed

docs/accounting/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6075,7 +6075,7 @@
60756075
<nav id="scrollingNav">
60766076
<ul class="sidenav nav nav-list">
60776077
<li class="nav-header" data-group="Accounting"><strong>SDK: </strong><span id='sdk-name'></span></li>
6078-
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.31.0</li>
6078+
<li class="nav-header" data-group="Accounting"><strong>VSN: </strong>4.32.0</li>
60796079
<li class="nav-header" data-group="Accounting"><a href="#api-Accounting">Methods</a></li>
60806080
<li data-group="Accounting" data-name="createAccount" class="">
60816081
<a href="#api-Accounting-createAccount">createAccount</a>

docs/appstore/index.html

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,8 @@
875875
"timestamp" : {
876876
"type" : "string",
877877
"description" : "DateTime in UTC of when the the product was consumed/used",
878-
"format" : "date-time"
878+
"format" : "date-time",
879+
"x-is-datetime" : true
879880
}
880881
},
881882
"description" : "Data transfer object for public create usage end point"
@@ -993,12 +994,14 @@
993994
"currentPeriodEnd" : {
994995
"type" : "string",
995996
"description" : "End of the current period that the subscription has been invoiced for.\n",
996-
"format" : "date-time"
997+
"format" : "date-time",
998+
"x-is-datetime" : true
997999
},
9981000
"endDate" : {
9991001
"type" : "string",
10001002
"description" : "If the subscription has been canceled, this is the date when the subscription ends. If null, the subscription is active and has not been cancelled",
1001-
"format" : "date-time"
1003+
"format" : "date-time",
1004+
"x-is-datetime" : true
10021005
},
10031006
"id" : {
10041007
"type" : "string",
@@ -1020,7 +1023,8 @@
10201023
"startDate" : {
10211024
"type" : "string",
10221025
"description" : "Date when the subscription was first created.",
1023-
"format" : "date-time"
1026+
"format" : "date-time",
1027+
"x-is-datetime" : true
10241028
},
10251029
"status" : {
10261030
"type" : "string",
@@ -1042,7 +1046,8 @@
10421046
"endDate" : {
10431047
"type" : "string",
10441048
"description" : "Date when the subscription to this product will end",
1045-
"format" : "date-time"
1049+
"format" : "date-time",
1050+
"x-is-datetime" : true
10461051
},
10471052
"id" : {
10481053
"type" : "string",
@@ -1062,7 +1067,8 @@
10621067
"startDate" : {
10631068
"type" : "string",
10641069
"description" : "Date the subscription started, or will start. Note: this could be in\nthe future for downgrades or reduced number of seats that haven't taken effect yet.\n",
1065-
"format" : "date-time"
1070+
"format" : "date-time",
1071+
"x-is-datetime" : true
10661072
},
10671073
"status" : {
10681074
"type" : "string",
@@ -1116,7 +1122,8 @@
11161122
"recordedAt" : {
11171123
"type" : "string",
11181124
"description" : "The time when this usage was recorded in UTC",
1119-
"format" : "date-time"
1125+
"format" : "date-time",
1126+
"x-is-datetime" : true
11201127
},
11211128
"usageRecordId" : {
11221129
"type" : "string",
@@ -1235,7 +1242,7 @@
12351242
<nav id="scrollingNav">
12361243
<ul class="sidenav nav nav-list">
12371244
<li class="nav-header" data-group="AppStore"><strong>SDK: </strong><span id='sdk-name'></span></li>
1238-
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.31.0</li>
1245+
<li class="nav-header" data-group="AppStore"><strong>VSN: </strong>4.32.0</li>
12391246
<li class="nav-header" data-group="AppStore"><a href="#api-AppStore">Methods</a></li>
12401247
<li data-group="AppStore" data-name="getSubscription" class="">
12411248
<a href="#api-AppStore-getSubscription">getSubscription</a>
@@ -1567,7 +1574,7 @@ <h2>Parameters</h2>
15671574
"schema" : {
15681575
"$ref" : "#/components/schemas/CreateUsageRecord"
15691576
},
1570-
"example" : "{ \"timestamp\": \"2022-01-21T13:01:00Z\", \"quantity\": 10 }"
1577+
"example" : "{ \"timestamp\": \"2022-01-21T13:01:00\", \"quantity\": 10 }"
15711578
}
15721579
},
15731580
"required" : true

docs/assets/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@
13931393
<nav id="scrollingNav">
13941394
<ul class="sidenav nav nav-list">
13951395
<li class="nav-header" data-group="Asset"><strong>SDK: </strong><span id='sdk-name'></span></li>
1396-
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.31.0</li>
1396+
<li class="nav-header" data-group="Asset"><strong>VSN: </strong>4.32.0</li>
13971397
<li class="nav-header" data-group="Asset"><a href="#api-Asset">Methods</a></li>
13981398
<li data-group="Asset" data-name="createAsset" class="">
13991399
<a href="#api-Asset-createAsset">createAsset</a>

docs/bankfeeds/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1269,7 +1269,7 @@
12691269
<nav id="scrollingNav">
12701270
<ul class="sidenav nav nav-list">
12711271
<li class="nav-header" data-group="BankFeeds"><strong>SDK: </strong><span id='sdk-name'></span></li>
1272-
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>4.31.0</li>
1272+
<li class="nav-header" data-group="BankFeeds"><strong>VSN: </strong>4.32.0</li>
12731273
<li class="nav-header" data-group="BankFeeds"><a href="#api-BankFeeds">Methods</a></li>
12741274
<li data-group="BankFeeds" data-name="createFeedConnections" class="">
12751275
<a href="#api-BankFeeds-createFeedConnections">createFeedConnections</a>

docs/files/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@
11561156
<nav id="scrollingNav">
11571157
<ul class="sidenav nav nav-list">
11581158
<li class="nav-header" data-group="Files"><strong>SDK: </strong><span id='sdk-name'></span></li>
1159-
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.31.0</li>
1159+
<li class="nav-header" data-group="Files"><strong>VSN: </strong>4.32.0</li>
11601160
<li class="nav-header" data-group="Files"><a href="#api-Files">Methods</a></li>
11611161
<li data-group="Files" data-name="createFileAssociation" class="">
11621162
<a href="#api-Files-createFileAssociation">createFileAssociation</a>

docs/finance/index.html

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2161,6 +2161,10 @@
21612161
"description" : "Date of when statement line was posted",
21622162
"format" : "date"
21632163
},
2164+
"payee" : {
2165+
"type" : "string",
2166+
"description" : "Payee description of statement line"
2167+
},
21642168
"reference" : {
21652169
"type" : "string",
21662170
"description" : "Reference description of statement line"
@@ -2349,13 +2353,25 @@
23492353
},
23502354
"startBalance" : {
23512355
"type" : "number",
2352-
"description" : "Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied.",
2356+
"description" : "Opening balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0.",
23532357
"format" : "double",
23542358
"x-is-money" : true
23552359
},
23562360
"endBalance" : {
23572361
"type" : "number",
2358-
"description" : "Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied.",
2362+
"description" : "Closing balance sourced from imported bank statements (if supplied). Note, for manually uploaded statements, this balance is also manual and usually not supplied. Where not supplied, the value will be 0.",
2363+
"format" : "double",
2364+
"x-is-money" : true
2365+
},
2366+
"indicativeStartBalance" : {
2367+
"type" : "number",
2368+
"description" : "Opening statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true\n",
2369+
"format" : "double",
2370+
"x-is-money" : true
2371+
},
2372+
"indicativeEndBalance" : {
2373+
"type" : "number",
2374+
"description" : "Closing statement balance calculated in Xero (= bank account conversion balance plus sum of imported bank statement lines). Note: If indicative statement balance doesn't match imported statement balance for the same date, either the conversion (opening at inception) balance in Xero is wrong or there's an error in the bank statement lines in Xero. Ref: https://central.xero.com/s/article/Compare-the-statement-balance-in-Xero-to-your-actual-bank-balance?userregion=true \n",
23592375
"format" : "double",
23602376
"x-is-money" : true
23612377
},
@@ -2719,7 +2735,7 @@
27192735
<nav id="scrollingNav">
27202736
<ul class="sidenav nav nav-list">
27212737
<li class="nav-header" data-group="Finance"><strong>SDK: </strong><span id='sdk-name'></span></li>
2722-
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>4.31.0</li>
2738+
<li class="nav-header" data-group="Finance"><strong>VSN: </strong>4.32.0</li>
27232739
<li class="nav-header" data-group="Finance"><a href="#api-Finance">Methods</a></li>
27242740
<li data-group="Finance" data-name="getAccountingActivityAccountUsage" class="">
27252741
<a href="#api-Finance-getAccountingActivityAccountUsage">getAccountingActivityAccountUsage</a>

docs/payroll-au/index.html

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,16 @@
11821182
"description" : "Boolean to determine if the earnings rate is reportable or exempt from W1",
11831183
"example" : false
11841184
},
1185+
"AllowanceContributesToAnnualLeaveRate" : {
1186+
"type" : "boolean",
1187+
"description" : "Boolean to determine if the allowance earnings rate contributes towards annual leave rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT",
1188+
"example" : false
1189+
},
1190+
"AllowanceContributesToOvertimeRate" : {
1191+
"type" : "boolean",
1192+
"description" : "Boolean to determine if the allowance earnings rate contributes towards overtime allowance rate. Only applicable if EarningsType is ALLOWANCE and RateType is RATEPERUNIT",
1193+
"example" : false
1194+
},
11851195
"EarningsType" : {
11861196
"$ref" : "#/components/schemas/EarningsType"
11871197
},
@@ -3345,7 +3355,7 @@
33453355
<nav id="scrollingNav">
33463356
<ul class="sidenav nav nav-list">
33473357
<li class="nav-header" data-group="PayrollAu"><strong>SDK: </strong><span id='sdk-name'></span></li>
3348-
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>4.31.0</li>
3358+
<li class="nav-header" data-group="PayrollAu"><strong>VSN: </strong>4.32.0</li>
33493359
<li class="nav-header" data-group="PayrollAu"><a href="#api-PayrollAu">Methods</a></li>
33503360
<li data-group="PayrollAu" data-name="createEmployee" class="">
33513361
<a href="#api-PayrollAu-createEmployee">createEmployee</a>
@@ -3860,7 +3870,7 @@ <h2>Parameters</h2>
38603870
"schema" : {
38613871
"$ref" : "#/components/schemas/PayItem"
38623872
},
3863-
"example" : "{ \"EarningsRates\": [ { \"Name\": \"MyRate\", \"AccountCode\": \"400\", \"TypeOfUnits\": \"4.00\", \"IsExemptFromTax\": true, \"IsExemptFromSuper\": true, \"IsReportableAsW1\": false, \"EarningsType\": \"ORDINARYTIMEEARNINGS\", \"EarningsRateID\": \"1fa4e226-b711-46ba-a8a7-4344c9c5fb87\", \"RateType\": \"MULTIPLE\", \"RatePerUnit\": \"10.0\", \"Multiplier\": 1.5, \"Amount\": 5, \"EmploymentTerminationPaymentType\": \"O\" } ] }"
3873+
"example" : "{ \"EarningsRates\": [ { \"Name\": \"MyRate\", \"AccountCode\": \"400\", \"TypeOfUnits\": \"4.00\", \"IsExemptFromTax\": true, \"IsExemptFromSuper\": true, \"IsReportableAsW1\": false, \"AllowanceContributesToAnnualLeaveRate\": false, \"AllowanceContributesToOvertimeRate\": false, \"EarningsType\": \"ORDINARYTIMEEARNINGS\", \"EarningsRateID\": \"1fa4e226-b711-46ba-a8a7-4344c9c5fb87\", \"RateType\": \"MULTIPLE\", \"RatePerUnit\": \"10.0\", \"Multiplier\": 1.5, \"Amount\": 5, \"EmploymentTerminationPaymentType\": \"O\" } ] }"
38643874
}
38653875
},
38663876
"required" : true

docs/payroll-nz/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3839,7 +3839,7 @@
38393839
<nav id="scrollingNav">
38403840
<ul class="sidenav nav nav-list">
38413841
<li class="nav-header" data-group="PayrollNz"><strong>SDK: </strong><span id='sdk-name'></span></li>
3842-
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>4.31.0</li>
3842+
<li class="nav-header" data-group="PayrollNz"><strong>VSN: </strong>4.32.0</li>
38433843
<li class="nav-header" data-group="PayrollNz"><a href="#api-PayrollNz">Methods</a></li>
38443844
<li data-group="PayrollNz" data-name="approveTimesheet" class="">
38453845
<a href="#api-PayrollNz-approveTimesheet">approveTimesheet</a>

docs/payroll-uk/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,7 +1381,7 @@
13811381
"earningsType" : {
13821382
"type" : "string",
13831383
"description" : "Indicates how an employee will be paid when taking this type of earning",
1384-
"enum" : [ "Allowance", "Backpay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay" ]
1384+
"enum" : [ "Allowance", "BackPay", "Bonus", "Commission", "LumpSum", "OtherEarnings", "OvertimeEarnings", "RegularEarnings", "StatutoryAdoptionPay", "StatutoryAdoptionPayNonPensionable", "StatutoryBereavementPay", "StatutoryMaternityPay", "StatutoryMaternityPayNonPensionable", "StatutoryPaternityPay", "StatutoryPaternityPayNonPensionable", "StatutoryParentalBereavementPayNonPensionable", "StatutorySharedParentalPay", "StatutorySharedParentalPayNonPensionable", "StatutorySickPay", "StatutorySickPayNonPensionable", "TipsNonDirect", "TipsDirect", "TerminationPay" ]
13851385
},
13861386
"rateType" : {
13871387
"type" : "string",
@@ -3511,7 +3511,7 @@
35113511
<nav id="scrollingNav">
35123512
<ul class="sidenav nav nav-list">
35133513
<li class="nav-header" data-group="PayrollUk"><strong>SDK: </strong><span id='sdk-name'></span></li>
3514-
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>4.31.0</li>
3514+
<li class="nav-header" data-group="PayrollUk"><strong>VSN: </strong>4.32.0</li>
35153515
<li class="nav-header" data-group="PayrollUk"><a href="#api-PayrollUk">Methods</a></li>
35163516
<li data-group="PayrollUk" data-name="approveTimesheet" class="">
35173517
<a href="#api-PayrollUk-approveTimesheet">approveTimesheet</a>

docs/projects/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1463,7 +1463,7 @@
14631463
<nav id="scrollingNav">
14641464
<ul class="sidenav nav nav-list">
14651465
<li class="nav-header" data-group="Project"><strong>SDK: </strong><span id='sdk-name'></span></li>
1466-
<li class="nav-header" data-group="Project"><strong>VSN: </strong>4.31.0</li>
1466+
<li class="nav-header" data-group="Project"><strong>VSN: </strong>4.32.0</li>
14671467
<li class="nav-header" data-group="Project"><a href="#api-Project">Methods</a></li>
14681468
<li data-group="Project" data-name="createProject" class="">
14691469
<a href="#api-Project-createProject">createProject</a>

package-lock.json

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "xero-node",
3-
"version": "4.31.0",
3+
"version": "4.32.0",
44
"description": "Xero NodeJS OAuth 2.0 client for xero-node",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

src/gen/api/accountingApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Accounting API
33
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
44
*
5-
* The version of the OpenAPI document: 2.33.1
5+
* The version of the OpenAPI document: 2.35.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -82,7 +82,7 @@ export enum AccountingApiApiKeys {
8282

8383
export class AccountingApi {
8484
protected _basePath = defaultBasePath;
85-
protected defaultHeaders : any = {'user-agent': 'xero-node-4.31.0'};
85+
protected defaultHeaders : any = {'user-agent': 'xero-node-4.32.0'};
8686
protected _useQuerystring : boolean = false;
8787
protected binaryHeaders : any = {};
8888

src/gen/api/appStoreApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero AppStore API
33
* These endpoints are for Xero Partners to interact with the App Store Billing platform
44
*
5-
* The version of the OpenAPI document: 2.33.1
5+
* The version of the OpenAPI document: 2.35.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -36,7 +36,7 @@ export enum AppStoreApiApiKeys {
3636

3737
export class AppStoreApi {
3838
protected _basePath = defaultBasePath;
39-
protected defaultHeaders : any = {'user-agent': 'xero-node-4.31.0'};
39+
protected defaultHeaders : any = {'user-agent': 'xero-node-4.32.0'};
4040
protected _useQuerystring : boolean = false;
4141
protected binaryHeaders : any = {};
4242

src/gen/api/assetApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Assets API
33
* The Assets API exposes fixed asset related functions of the Xero Accounting application and can be used for a variety of purposes such as creating assets, retrieving asset valuations etc.
44
*
5-
* The version of the OpenAPI document: 2.33.1
5+
* The version of the OpenAPI document: 2.35.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -35,7 +35,7 @@ export enum AssetApiApiKeys {
3535

3636
export class AssetApi {
3737
protected _basePath = defaultBasePath;
38-
protected defaultHeaders : any = {'user-agent': 'xero-node-4.31.0'};
38+
protected defaultHeaders : any = {'user-agent': 'xero-node-4.32.0'};
3939
protected _useQuerystring : boolean = false;
4040
protected binaryHeaders : any = {};
4141

src/gen/api/bankfeedsApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Bank Feeds API
33
* The Bank Feeds API is a closed API that is only available to financial institutions that have an established financial services partnership with Xero. If you\'re an existing financial services partner that wants access, contact your local Partner Manager. If you\'re a financial institution who wants to provide bank feeds to your business customers, contact us to become a financial services partner.
44
*
5-
* The version of the OpenAPI document: 2.33.1
5+
* The version of the OpenAPI document: 2.35.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ export enum BankFeedsApiApiKeys {
3434

3535
export class BankFeedsApi {
3636
protected _basePath = defaultBasePath;
37-
protected defaultHeaders : any = {'user-agent': 'xero-node-4.31.0'};
37+
protected defaultHeaders : any = {'user-agent': 'xero-node-4.32.0'};
3838
protected _useQuerystring : boolean = false;
3939
protected binaryHeaders : any = {};
4040

src/gen/api/filesApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Xero Files API
33
* These endpoints are specific to Xero Files API
44
*
5-
* The version of the OpenAPI document: 2.33.1
5+
* The version of the OpenAPI document: 2.35.0
66
* Contact: api@xero.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -34,7 +34,7 @@ export enum FilesApiApiKeys {
3434

3535
export class FilesApi {
3636
protected _basePath = defaultBasePath;
37-
protected defaultHeaders : any = {'user-agent': 'xero-node-4.31.0'};
37+
protected defaultHeaders : any = {'user-agent': 'xero-node-4.32.0'};
3838
protected _useQuerystring : boolean = false;
3939
protected binaryHeaders : any = {};
4040

0 commit comments

Comments
 (0)