xero-node 4.28.1 → 4.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gen/api/accountingApi.d.ts +3 -4
- package/dist/gen/api/accountingApi.js +8 -8
- package/dist/gen/api/accountingApi.js.map +1 -1
- package/dist/gen/api/appStoreApi.d.ts +49 -1
- package/dist/gen/api/appStoreApi.js +203 -2
- package/dist/gen/api/appStoreApi.js.map +1 -1
- package/dist/gen/api/assetApi.d.ts +1 -1
- package/dist/gen/api/assetApi.js +2 -2
- package/dist/gen/api/bankfeedsApi.d.ts +1 -1
- package/dist/gen/api/bankfeedsApi.js +2 -2
- package/dist/gen/api/filesApi.d.ts +1 -1
- package/dist/gen/api/filesApi.js +2 -2
- package/dist/gen/api/financeApi.d.ts +1 -1
- package/dist/gen/api/financeApi.js +2 -2
- package/dist/gen/api/payrollAUApi.d.ts +1 -1
- package/dist/gen/api/payrollAUApi.js +2 -2
- package/dist/gen/api/payrollNZApi.d.ts +1 -1
- package/dist/gen/api/payrollNZApi.js +2 -2
- package/dist/gen/api/payrollUKApi.d.ts +1 -1
- package/dist/gen/api/payrollUKApi.js +2 -2
- package/dist/gen/api/projectApi.d.ts +2 -2
- package/dist/gen/api/projectApi.js +3 -3
- package/dist/gen/model/accounting/batchPayment.d.ts +2 -2
- package/dist/gen/model/accounting/batchPayment.js +2 -2
- package/dist/gen/model/accounting/batchPayment.js.map +1 -1
- package/dist/gen/model/accounting/lineItem.d.ts +2 -2
- package/dist/gen/model/accounting/payment.d.ts +2 -0
- package/dist/gen/model/accounting/payment.js +5 -0
- package/dist/gen/model/accounting/payment.js.map +1 -1
- package/dist/gen/model/accounting/taxRate.d.ts +4 -1
- package/dist/gen/model/accounting/taxRate.js +3 -0
- package/dist/gen/model/accounting/taxRate.js.map +1 -1
- package/dist/gen/model/accounting/taxType.d.ts +16 -1
- package/dist/gen/model/accounting/taxType.js +15 -0
- package/dist/gen/model/accounting/taxType.js.map +1 -1
- package/dist/gen/model/appstore/createUsageRecord.d.ts +24 -0
- package/dist/gen/model/appstore/createUsageRecord.js +26 -0
- package/dist/gen/model/appstore/createUsageRecord.js.map +1 -0
- package/dist/gen/model/appstore/models.d.ts +4 -0
- package/dist/gen/model/appstore/models.js +12 -0
- package/dist/gen/model/appstore/models.js.map +1 -1
- package/dist/gen/model/appstore/updateUsageRecord.d.ts +20 -0
- package/dist/gen/model/appstore/updateUsageRecord.js +21 -0
- package/dist/gen/model/appstore/updateUsageRecord.js.map +1 -0
- package/dist/gen/model/appstore/usageRecord.d.ts +45 -0
- package/dist/gen/model/appstore/usageRecord.js +53 -0
- package/dist/gen/model/appstore/usageRecord.js.map +1 -0
- package/dist/gen/model/appstore/usageRecordsList.d.ts +21 -0
- package/dist/gen/model/appstore/usageRecordsList.js +21 -0
- package/dist/gen/model/appstore/usageRecordsList.js.map +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero AppStore API
|
|
3
3
|
* These endpoints are for Xero Partners to interact with the App Store Billing platform
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -11,7 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/// <reference types="node" />
|
|
13
13
|
import http = require('http');
|
|
14
|
+
import { CreateUsageRecord } from '../model/appstore/createUsageRecord';
|
|
14
15
|
import { Subscription } from '../model/appstore/subscription';
|
|
16
|
+
import { UpdateUsageRecord } from '../model/appstore/updateUsageRecord';
|
|
17
|
+
import { UsageRecord } from '../model/appstore/usageRecord';
|
|
18
|
+
import { UsageRecordsList } from '../model/appstore/usageRecordsList';
|
|
15
19
|
import { Authentication } from '../model/appstore/models';
|
|
16
20
|
import { OAuth } from '../model/appstore/models';
|
|
17
21
|
export declare enum AppStoreApiApiKeys {
|
|
@@ -45,4 +49,48 @@ export declare class AppStoreApi {
|
|
|
45
49
|
response: http.IncomingMessage;
|
|
46
50
|
body: Subscription;
|
|
47
51
|
}>;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Gets all usage records related to the subscription
|
|
55
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
56
|
+
*/
|
|
57
|
+
getUsageRecords(subscriptionId: string, options?: {
|
|
58
|
+
headers: {
|
|
59
|
+
[name: string]: string;
|
|
60
|
+
};
|
|
61
|
+
}): Promise<{
|
|
62
|
+
response: http.IncomingMessage;
|
|
63
|
+
body: UsageRecordsList;
|
|
64
|
+
}>;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @summary Send metered usage belonging to this subscription and subscription item
|
|
68
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
69
|
+
* @param subscriptionItemId The unique identifier of the subscriptionItem
|
|
70
|
+
* @param createUsageRecord Contains the quantity for the usage record to create
|
|
71
|
+
*/
|
|
72
|
+
postUsageRecords(subscriptionId: string, subscriptionItemId: string, createUsageRecord: CreateUsageRecord, options?: {
|
|
73
|
+
headers: {
|
|
74
|
+
[name: string]: string;
|
|
75
|
+
};
|
|
76
|
+
}): Promise<{
|
|
77
|
+
response: http.IncomingMessage;
|
|
78
|
+
body: UsageRecord;
|
|
79
|
+
}>;
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @summary Update and existing metered usage belonging to this subscription and subscription item
|
|
83
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
84
|
+
* @param subscriptionItemId The unique identifier of the subscriptionItem
|
|
85
|
+
* @param usageRecordId The unique identifier of the usage record
|
|
86
|
+
* @param updateUsageRecord Contains the quantity for the usage record to update
|
|
87
|
+
*/
|
|
88
|
+
putUsageRecords(subscriptionId: string, subscriptionItemId: string, usageRecordId: string, updateUsageRecord: UpdateUsageRecord, options?: {
|
|
89
|
+
headers: {
|
|
90
|
+
[name: string]: string;
|
|
91
|
+
};
|
|
92
|
+
}): Promise<{
|
|
93
|
+
response: http.IncomingMessage;
|
|
94
|
+
body: UsageRecord;
|
|
95
|
+
}>;
|
|
48
96
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero AppStore API
|
|
4
4
|
* These endpoints are for Xero Partners to interact with the App Store Billing platform
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var AppStoreApiApiKeys;
|
|
|
34
34
|
class AppStoreApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -127,6 +127,207 @@ class AppStoreApi {
|
|
|
127
127
|
});
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @summary Gets all usage records related to the subscription
|
|
133
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
134
|
+
*/
|
|
135
|
+
getUsageRecords(subscriptionId, options = { headers: {} }) {
|
|
136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
137
|
+
const localVarPath = this.basePath + '/subscriptions/{subscriptionId}/usage-records'
|
|
138
|
+
.replace('{' + 'subscriptionId' + '}', encodeURIComponent(String(subscriptionId)));
|
|
139
|
+
let localVarQueryParameters = {};
|
|
140
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
141
|
+
let localVarFormParams = {};
|
|
142
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
143
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
144
|
+
throw new Error('Required parameter subscriptionId was null or undefined when calling getUsageRecords.');
|
|
145
|
+
}
|
|
146
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
147
|
+
let localVarUseFormData = false;
|
|
148
|
+
let localVarRequestOptions = {
|
|
149
|
+
method: 'GET',
|
|
150
|
+
qs: localVarQueryParameters,
|
|
151
|
+
headers: localVarHeaderParams,
|
|
152
|
+
uri: localVarPath,
|
|
153
|
+
useQuerystring: this._useQuerystring,
|
|
154
|
+
json: true,
|
|
155
|
+
};
|
|
156
|
+
let authenticationPromise = Promise.resolve();
|
|
157
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
158
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
159
|
+
return authenticationPromise.then(() => {
|
|
160
|
+
if (Object.keys(localVarFormParams).length) {
|
|
161
|
+
if (localVarUseFormData) {
|
|
162
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
return new Promise((resolve, reject) => {
|
|
169
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
170
|
+
if (error) {
|
|
171
|
+
reject(error);
|
|
172
|
+
}
|
|
173
|
+
else {
|
|
174
|
+
body = models_1.ObjectSerializer.deserialize(body, "UsageRecordsList");
|
|
175
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
176
|
+
resolve({ response: response, body: body });
|
|
177
|
+
}
|
|
178
|
+
else {
|
|
179
|
+
reject({ response: response, body: body });
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
*
|
|
189
|
+
* @summary Send metered usage belonging to this subscription and subscription item
|
|
190
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
191
|
+
* @param subscriptionItemId The unique identifier of the subscriptionItem
|
|
192
|
+
* @param createUsageRecord Contains the quantity for the usage record to create
|
|
193
|
+
*/
|
|
194
|
+
postUsageRecords(subscriptionId, subscriptionItemId, createUsageRecord, options = { headers: {} }) {
|
|
195
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
196
|
+
const localVarPath = this.basePath + '/subscriptions/{subscriptionId}/items/{subscriptionItemId}/usage-records'
|
|
197
|
+
.replace('{' + 'subscriptionId' + '}', encodeURIComponent(String(subscriptionId)))
|
|
198
|
+
.replace('{' + 'subscriptionItemId' + '}', encodeURIComponent(String(subscriptionItemId)));
|
|
199
|
+
let localVarQueryParameters = {};
|
|
200
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
201
|
+
let localVarFormParams = {};
|
|
202
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
203
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
204
|
+
throw new Error('Required parameter subscriptionId was null or undefined when calling postUsageRecords.');
|
|
205
|
+
}
|
|
206
|
+
// verify required parameter 'subscriptionItemId' is not null or undefined
|
|
207
|
+
if (subscriptionItemId === null || subscriptionItemId === undefined) {
|
|
208
|
+
throw new Error('Required parameter subscriptionItemId was null or undefined when calling postUsageRecords.');
|
|
209
|
+
}
|
|
210
|
+
// verify required parameter 'createUsageRecord' is not null or undefined
|
|
211
|
+
if (createUsageRecord === null || createUsageRecord === undefined) {
|
|
212
|
+
throw new Error('Required parameter createUsageRecord was null or undefined when calling postUsageRecords.');
|
|
213
|
+
}
|
|
214
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
215
|
+
let localVarUseFormData = false;
|
|
216
|
+
let localVarRequestOptions = {
|
|
217
|
+
method: 'POST',
|
|
218
|
+
qs: localVarQueryParameters,
|
|
219
|
+
headers: localVarHeaderParams,
|
|
220
|
+
uri: localVarPath,
|
|
221
|
+
useQuerystring: this._useQuerystring,
|
|
222
|
+
json: true,
|
|
223
|
+
body: models_1.ObjectSerializer.serialize(createUsageRecord, "CreateUsageRecord")
|
|
224
|
+
};
|
|
225
|
+
let authenticationPromise = Promise.resolve();
|
|
226
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
227
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
228
|
+
return authenticationPromise.then(() => {
|
|
229
|
+
if (Object.keys(localVarFormParams).length) {
|
|
230
|
+
if (localVarUseFormData) {
|
|
231
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
232
|
+
}
|
|
233
|
+
else {
|
|
234
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return new Promise((resolve, reject) => {
|
|
238
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
239
|
+
if (error) {
|
|
240
|
+
reject(error);
|
|
241
|
+
}
|
|
242
|
+
else {
|
|
243
|
+
body = models_1.ObjectSerializer.deserialize(body, "UsageRecord");
|
|
244
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
245
|
+
resolve({ response: response, body: body });
|
|
246
|
+
}
|
|
247
|
+
else {
|
|
248
|
+
reject({ response: response, body: body });
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
});
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
*
|
|
258
|
+
* @summary Update and existing metered usage belonging to this subscription and subscription item
|
|
259
|
+
* @param subscriptionId Unique identifier for Subscription object
|
|
260
|
+
* @param subscriptionItemId The unique identifier of the subscriptionItem
|
|
261
|
+
* @param usageRecordId The unique identifier of the usage record
|
|
262
|
+
* @param updateUsageRecord Contains the quantity for the usage record to update
|
|
263
|
+
*/
|
|
264
|
+
putUsageRecords(subscriptionId, subscriptionItemId, usageRecordId, updateUsageRecord, options = { headers: {} }) {
|
|
265
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
266
|
+
const localVarPath = this.basePath + '/subscriptions/{subscriptionId}/items/{subscriptionItemId}/usage-records/{usageRecordId}'
|
|
267
|
+
.replace('{' + 'subscriptionId' + '}', encodeURIComponent(String(subscriptionId)))
|
|
268
|
+
.replace('{' + 'subscriptionItemId' + '}', encodeURIComponent(String(subscriptionItemId)))
|
|
269
|
+
.replace('{' + 'usageRecordId' + '}', encodeURIComponent(String(usageRecordId)));
|
|
270
|
+
let localVarQueryParameters = {};
|
|
271
|
+
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
272
|
+
let localVarFormParams = {};
|
|
273
|
+
// verify required parameter 'subscriptionId' is not null or undefined
|
|
274
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
275
|
+
throw new Error('Required parameter subscriptionId was null or undefined when calling putUsageRecords.');
|
|
276
|
+
}
|
|
277
|
+
// verify required parameter 'subscriptionItemId' is not null or undefined
|
|
278
|
+
if (subscriptionItemId === null || subscriptionItemId === undefined) {
|
|
279
|
+
throw new Error('Required parameter subscriptionItemId was null or undefined when calling putUsageRecords.');
|
|
280
|
+
}
|
|
281
|
+
// verify required parameter 'usageRecordId' is not null or undefined
|
|
282
|
+
if (usageRecordId === null || usageRecordId === undefined) {
|
|
283
|
+
throw new Error('Required parameter usageRecordId was null or undefined when calling putUsageRecords.');
|
|
284
|
+
}
|
|
285
|
+
// verify required parameter 'updateUsageRecord' is not null or undefined
|
|
286
|
+
if (updateUsageRecord === null || updateUsageRecord === undefined) {
|
|
287
|
+
throw new Error('Required parameter updateUsageRecord was null or undefined when calling putUsageRecords.');
|
|
288
|
+
}
|
|
289
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
290
|
+
let localVarUseFormData = false;
|
|
291
|
+
let localVarRequestOptions = {
|
|
292
|
+
method: 'PUT',
|
|
293
|
+
qs: localVarQueryParameters,
|
|
294
|
+
headers: localVarHeaderParams,
|
|
295
|
+
uri: localVarPath,
|
|
296
|
+
useQuerystring: this._useQuerystring,
|
|
297
|
+
json: true,
|
|
298
|
+
body: models_1.ObjectSerializer.serialize(updateUsageRecord, "UpdateUsageRecord")
|
|
299
|
+
};
|
|
300
|
+
let authenticationPromise = Promise.resolve();
|
|
301
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.OAuth2.applyToRequest(localVarRequestOptions));
|
|
302
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
303
|
+
return authenticationPromise.then(() => {
|
|
304
|
+
if (Object.keys(localVarFormParams).length) {
|
|
305
|
+
if (localVarUseFormData) {
|
|
306
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
return new Promise((resolve, reject) => {
|
|
313
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
314
|
+
if (error) {
|
|
315
|
+
reject(error);
|
|
316
|
+
}
|
|
317
|
+
else {
|
|
318
|
+
body = models_1.ObjectSerializer.deserialize(body, "UsageRecord");
|
|
319
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
320
|
+
resolve({ response: response, body: body });
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
reject({ response: response, body: body });
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
});
|
|
327
|
+
});
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
}
|
|
130
331
|
}
|
|
131
332
|
exports.AppStoreApi = AppStoreApi;
|
|
132
333
|
//# sourceMappingURL=appStoreApi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appStoreApi.js","sourceRoot":"","sources":["../../../src/gen/api/appStoreApi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;AAEH,2CAA4C;
|
|
1
|
+
{"version":3,"file":"appStoreApi.js","sourceRoot":"","sources":["../../../src/gen/api/appStoreApi.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;;;;;;;;;;;AAEH,2CAA4C;AAY5C,qDAAsF;AACtF,qDAAiD;AAEjD,IAAI,eAAe,GAAG,mCAAmC,CAAC;AAE1D,kDAAkD;AAClD,kDAAkD;AAClD,kDAAkD;AAElD,IAAY,kBACX;AADD,WAAY,kBAAkB;AAC9B,CAAC,EADW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAC7B;AAED,MAAa,WAAW;IAYpB,YAAY,kBAA0B,EAAE,QAAiB,EAAE,QAAiB;QAXlE,cAAS,GAAG,eAAe,CAAC;QAC5B,mBAAc,GAAS,EAAC,YAAY,EAAE,kBAAkB,EAAC,CAAC;QAC1D,oBAAe,GAAa,KAAK,CAAC;QAClC,kBAAa,GAAS,EAAE,CAAC;QAEzB,oBAAe,GAAG;YACxB,SAAS,EAAkB,IAAI,iBAAQ,EAAE;YACzC,QAAQ,EAAE,IAAI,cAAK,EAAE;SACxB,CAAA;QAIG,IAAI,QAAQ,EAAE;YACV,IAAI,QAAQ,EAAE;gBACV,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;aAC5B;SACJ;aAAM;YACH,IAAI,kBAAkB,EAAE;gBACpB,IAAI,CAAC,QAAQ,GAAG,kBAAkB,CAAA;aACrC;SACJ;IACL,CAAC;IAED,IAAI,cAAc,CAAC,KAAc;QAC7B,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IACjC,CAAC;IAED,IAAI,QAAQ,CAAC,QAAgB;QACzB,IAAI,CAAC,SAAS,GAAG,QAAQ,CAAC;IAC9B,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IAC1B,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EAAE,IAAI,EAAE,EAAE;wBAC9D,IAAI,KAAK,EAAE;4BACP,MAAM,CAAC,KAAK,CAAC,CAAC;yBACjB;6BAAM;4BACH,IAAI,GAAG,yBAAgB,CAAC,WAAW,CAAC,IAAI,EAAE,aAAa,CAAC,CAAC;4BACzD,IAAI,QAAQ,CAAC,UAAU,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,IAAI,QAAQ,CAAC,UAAU,IAAI,GAAG,EAAE;gCACjF,OAAO,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;6BAC/C;iCAAM;gCACH,MAAM,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;6BAC9C;yBACJ;oBACL,CAAC,CAAC,CAAC;gBACP,CAAC,CAAC,CAAC;YACP,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AA3TD,kCA2TC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Assets API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/gen/api/assetApi.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Assets API
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var AssetApiApiKeys;
|
|
|
34
34
|
class AssetApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Bank Feeds API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Bank Feeds API
|
|
4
4
|
* 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.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var BankFeedsApiApiKeys;
|
|
|
34
34
|
class BankFeedsApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Files API
|
|
3
3
|
* These endpoints are specific to Xero Files API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/gen/api/filesApi.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Files API
|
|
4
4
|
* These endpoints are specific to Xero Files API
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var FilesApiApiKeys;
|
|
|
34
34
|
class FilesApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Finance API
|
|
3
3
|
* The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Finance API
|
|
4
4
|
* The Finance API is a collection of endpoints which customers can use in the course of a loan application, which may assist lenders to gain the confidence they need to provide capital.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var FinanceApiApiKeys;
|
|
|
34
34
|
class FinanceApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Payroll AU API
|
|
3
3
|
* This is the Xero Payroll API for orgs in Australia region.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Payroll AU API
|
|
4
4
|
* This is the Xero Payroll API for orgs in Australia region.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var PayrollAuApiApiKeys;
|
|
|
34
34
|
class PayrollAuApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Payroll NZ
|
|
3
3
|
* This is the Xero Payroll API for orgs in the NZ region.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Payroll NZ
|
|
4
4
|
* This is the Xero Payroll API for orgs in the NZ region.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var PayrollNzApiApiKeys;
|
|
|
34
34
|
class PayrollNzApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Payroll UK
|
|
3
3
|
* This is the Xero Payroll API for orgs in the UK region.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Payroll UK
|
|
4
4
|
* This is the Xero Payroll API for orgs in the UK region.
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var PayrollUkApiApiKeys;
|
|
|
34
34
|
class PayrollUkApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Xero Projects API
|
|
3
3
|
* This is the Xero Projects API
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 2.
|
|
5
|
+
* The version of the OpenAPI document: 2.33.1
|
|
6
6
|
* Contact: api@xero.com
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -186,7 +186,7 @@ export declare class ProjectApi {
|
|
|
186
186
|
* @param projectId You can specify an individual project by appending the projectId to the endpoint
|
|
187
187
|
* @param page Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
|
|
188
188
|
* @param pageSize Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
|
|
189
|
-
* @param taskIds
|
|
189
|
+
* @param taskIds Search for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID}
|
|
190
190
|
* @param chargeType
|
|
191
191
|
*/
|
|
192
192
|
getTasks(xeroTenantId: string, projectId: string, page?: number, pageSize?: number, taskIds?: string, chargeType?: ChargeType, options?: {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Projects API
|
|
4
4
|
* This is the Xero Projects API
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document: 2.
|
|
6
|
+
* The version of the OpenAPI document: 2.33.1
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -34,7 +34,7 @@ var ProjectApiApiKeys;
|
|
|
34
34
|
class ProjectApi {
|
|
35
35
|
constructor(basePathOrUsername, password, basePath) {
|
|
36
36
|
this._basePath = defaultBasePath;
|
|
37
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-4.
|
|
37
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-4.30.0' };
|
|
38
38
|
this._useQuerystring = false;
|
|
39
39
|
this.binaryHeaders = {};
|
|
40
40
|
this.authentications = {
|
|
@@ -688,7 +688,7 @@ class ProjectApi {
|
|
|
688
688
|
* @param projectId You can specify an individual project by appending the projectId to the endpoint
|
|
689
689
|
* @param page Set to 1 by default. The requested number of the page in paged response - Must be a number greater than 0.
|
|
690
690
|
* @param pageSize Optional, it is set to 50 by default. The number of items to return per page in a paged response - Must be a number between 1 and 500.
|
|
691
|
-
* @param taskIds
|
|
691
|
+
* @param taskIds Search for all tasks that match a comma separated list of taskIds, i.e. GET https://.../tasks?taskIds={taskID},{taskID}
|
|
692
692
|
* @param chargeType
|
|
693
693
|
*/
|
|
694
694
|
getTasks(xeroTenantId, projectId, page, pageSize, taskIds, chargeType, options = { headers: {} }) {
|
|
@@ -54,7 +54,7 @@ export declare class BatchPayment {
|
|
|
54
54
|
/**
|
|
55
55
|
* The total of the payments that make up the batch (read-only)
|
|
56
56
|
*/
|
|
57
|
-
'totalAmount'?:
|
|
57
|
+
'totalAmount'?: number;
|
|
58
58
|
/**
|
|
59
59
|
* UTC timestamp of last update to the payment
|
|
60
60
|
*/
|
|
@@ -62,7 +62,7 @@ export declare class BatchPayment {
|
|
|
62
62
|
/**
|
|
63
63
|
* Booelan that tells you if the batch payment has been reconciled (read-only)
|
|
64
64
|
*/
|
|
65
|
-
'isReconciled'?:
|
|
65
|
+
'isReconciled'?: boolean;
|
|
66
66
|
/**
|
|
67
67
|
* Displays array of validation error messages from the API
|
|
68
68
|
*/
|
|
@@ -77,7 +77,7 @@ BatchPayment.attributeTypeMap = [
|
|
|
77
77
|
{
|
|
78
78
|
"name": "totalAmount",
|
|
79
79
|
"baseName": "TotalAmount",
|
|
80
|
-
"type": "
|
|
80
|
+
"type": "number"
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
83
|
"name": "updatedDateUTC",
|
|
@@ -87,7 +87,7 @@ BatchPayment.attributeTypeMap = [
|
|
|
87
87
|
{
|
|
88
88
|
"name": "isReconciled",
|
|
89
89
|
"baseName": "IsReconciled",
|
|
90
|
-
"type": "
|
|
90
|
+
"type": "boolean"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"name": "validationErrors",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batchPayment.js","sourceRoot":"","sources":["../../../../src/gen/model/accounting/batchPayment.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAY;IA4JrB,MAAM,CAAC,mBAAmB;QACtB,OAAO,YAAY,CAAC,gBAAgB,CAAC;IACzC,CAAC;;AA9JL,oCA+JC;AA5FU,0BAAa,GAAuB,SAAS,CAAC;AAE9C,6BAAgB,GAA0D;IAC7E;QACI,MAAM,EAAE,SAAS;QACjB,UAAU,EA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M,EAAE,cAAc;QACtB,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"batchPayment.js","sourceRoot":"","sources":["../../../../src/gen/model/accounting/batchPayment.ts"],"names":[],"mappings":";;;AAIA,MAAa,YAAY;IA4JrB,MAAM,CAAC,mBAAmB;QACtB,OAAO,YAAY,CAAC,gBAAgB,CAAC;IACzC,CAAC;;AA9JL,oCA+JC;AA5FU,0BAAa,GAAuB,SAAS,CAAC;AAE9C,6BAAgB,GAA0D;IAC7E;QACI,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,SAAS;KACpB;IACD;QACI,MAAM,EAAE,WAAW;QACnB,UAAU,EAAE,WAAW;QACvB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,aAAa;QACrB,UAAU,EAAE,aAAa;QACzB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,SAAS;QACjB,UAAU,EAAE,SAAS;QACrB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,WAAW;QACnB,UAAU,EAAE,WAAW;QACvB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,gBAAgB;QACxB,UAAU,EAAE,gBAAgB;QAC5B,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,YAAY;QACpB,UAAU,EAAE,YAAY;QACxB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,UAAU;QAClB,UAAU,EAAE,UAAU;QACtB,MAAM,EAAE,gBAAgB;KAC3B;IACD;QACI,MAAM,EAAE,MAAM;QACd,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,uBAAuB;KAClC;IACD;QACI,MAAM,EAAE,QAAQ;QAChB,UAAU,EAAE,QAAQ;QACpB,MAAM,EAAE,yBAAyB;KACpC;IACD;QACI,MAAM,EAAE,aAAa;QACrB,UAAU,EAAE,aAAa;QACzB,MAAM,EAAE,QAAQ;KACnB;IACD;QACI,MAAM,EAAE,gBAAgB;QACxB,UAAU,EAAE,gBAAgB;QAC5B,MAAM,EAAE,MAAM;KACjB;IACD;QACI,MAAM,EAAE,cAAc;QACtB,UAAU,EAAE,cAAc;QAC1B,MAAM,EAAE,SAAS;KACpB;IACD;QACI,MAAM,EAAE,kBAAkB;QAC1B,UAAU,EAAE,kBAAkB;QAC9B,MAAM,EAAE,wBAAwB;KACnC;CAAK,CAAC;AAOf,WAAiB,YAAY;IACzB,IAAY,QAGX;IAHD,WAAY,QAAQ;QAChB,gCAAiB,UAAU,cAAA,CAAA;QAC3B,gCAAiB,UAAU,cAAA,CAAA;IAC/B,CAAC,EAHW,QAAQ,GAAR,qBAAQ,KAAR,qBAAQ,QAGnB;IACD,IAAY,UAGX;IAHD,WAAY,UAAU;QAClB,sCAAmB,YAAY,gBAAA,CAAA;QAC/B,mCAAgB,SAAS,aAAA,CAAA;IAC7B,CAAC,EAHW,UAAU,GAAV,uBAAU,KAAV,uBAAU,QAGrB;AACL,CAAC,EATgB,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAS5B"}
|
|
@@ -39,7 +39,7 @@ export declare class LineItem {
|
|
|
39
39
|
'taxAmount'?: number;
|
|
40
40
|
'item'?: LineItemItem;
|
|
41
41
|
/**
|
|
42
|
-
* If you wish to omit either
|
|
42
|
+
* If you wish to omit either the Quantity or UnitAmount you can provide a LineAmount and Xero will calculate the missing amount for you. The line amount reflects the discounted price if either a DiscountRate or DiscountAmount has been used i.e. LineAmount = Quantity * Unit Amount * ((100 - DiscountRate)/100) or LineAmount = (Quantity * UnitAmount) - DiscountAmount
|
|
43
43
|
*/
|
|
44
44
|
'lineAmount'?: number;
|
|
45
45
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class LineItem {
|
|
|
51
51
|
*/
|
|
52
52
|
'discountRate'?: number;
|
|
53
53
|
/**
|
|
54
|
-
* Discount amount being applied to a line item. Only supported on ACCREC invoices
|
|
54
|
+
* Discount amount being applied to a line item. Only supported on ACCREC invoices and quotes. ACCPAY invoices and credit notes in Xero do not support discounts.
|
|
55
55
|
*/
|
|
56
56
|
'discountAmount'?: number;
|
|
57
57
|
/**
|