xero-node 9.3.0-alpha.5 → 10.0.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/XeroClient.js +2 -2
- package/dist/XeroClient.js.map +1 -1
- package/dist/gen/api/accountingApi.d.ts +4 -1
- package/dist/gen/api/accountingApi.js +476 -476
- package/dist/gen/api/accountingApi.js.map +1 -1
- package/dist/gen/api/appStoreApi.d.ts +1 -1
- package/dist/gen/api/appStoreApi.js +10 -10
- package/dist/gen/api/appStoreApi.js.map +1 -1
- package/dist/gen/api/assetApi.d.ts +1 -1
- package/dist/gen/api/assetApi.js +14 -14
- package/dist/gen/api/assetApi.js.map +1 -1
- package/dist/gen/api/bankfeedsApi.d.ts +1 -1
- package/dist/gen/api/bankfeedsApi.js +16 -16
- package/dist/gen/api/bankfeedsApi.js.map +1 -1
- package/dist/gen/api/filesApi.d.ts +4 -1
- package/dist/gen/api/filesApi.js +38 -38
- package/dist/gen/api/filesApi.js.map +1 -1
- package/dist/gen/api/financeApi.d.ts +1 -1
- package/dist/gen/api/financeApi.js +26 -26
- package/dist/gen/api/financeApi.js.map +1 -1
- package/dist/gen/api/payrollAUApi.d.ts +1 -1
- package/dist/gen/api/payrollAUApi.js +66 -66
- package/dist/gen/api/payrollAUApi.js.map +1 -1
- package/dist/gen/api/payrollNZApi.d.ts +1 -1
- package/dist/gen/api/payrollNZApi.js +146 -146
- package/dist/gen/api/payrollNZApi.js.map +1 -1
- package/dist/gen/api/payrollUKApi.d.ts +1 -1
- package/dist/gen/api/payrollUKApi.js +142 -142
- package/dist/gen/api/payrollUKApi.js.map +1 -1
- package/dist/gen/api/projectApi.d.ts +1 -1
- package/dist/gen/api/projectApi.js +34 -34
- package/dist/gen/api/projectApi.js.map +1 -1
- package/dist/gen/model/finance/currentStatementResponse.d.ts +1 -1
- package/dist/gen/model/finance/dataSourceResponse.d.ts +0 -12
- package/dist/gen/model/finance/dataSourceResponse.js +0 -15
- package/dist/gen/model/finance/dataSourceResponse.js.map +1 -1
- package/dist/gen/model/payroll-nz/employeeLeaveSetup.d.ts +15 -3
- package/dist/gen/model/payroll-nz/employeeLeaveSetup.js +15 -0
- package/dist/gen/model/payroll-nz/employeeLeaveSetup.js.map +1 -1
- package/dist/gen/model/payroll-nz/employeeLeaveType.d.ts +15 -3
- package/dist/gen/model/payroll-nz/employeeLeaveType.js +15 -0
- package/dist/gen/model/payroll-nz/employeeLeaveType.js.map +1 -1
- package/dist/gen/model/payroll-nz/leavePeriod.d.ts +15 -2
- package/dist/gen/model/payroll-nz/leavePeriod.js +16 -0
- package/dist/gen/model/payroll-nz/leavePeriod.js.map +1 -1
- package/dist/gen/model/payroll-nz/leaveType.d.ts +8 -0
- package/dist/gen/model/payroll-nz/leaveType.js +10 -0
- package/dist/gen/model/payroll-nz/leaveType.js.map +1 -1
- package/package.json +6 -6
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Xero Accounting API
|
|
4
4
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
5
5
|
*
|
|
6
|
-
* The version of the OpenAPI document:
|
|
6
|
+
* The version of the OpenAPI document: 7.0.0
|
|
7
7
|
* Contact: api@xero.com
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -39,7 +39,7 @@ var AccountingApiApiKeys;
|
|
|
39
39
|
class AccountingApi {
|
|
40
40
|
constructor(basePathOrUsername, password, basePath) {
|
|
41
41
|
this._basePath = defaultBasePath;
|
|
42
|
-
this.defaultHeaders = { 'user-agent': 'xero-node-
|
|
42
|
+
this.defaultHeaders = { 'user-agent': 'xero-node-10.0.0' };
|
|
43
43
|
this._useQuerystring = false;
|
|
44
44
|
this.binaryHeaders = {};
|
|
45
45
|
this.authentications = {
|
|
@@ -82,8 +82,8 @@ class AccountingApi {
|
|
|
82
82
|
* @param account Account object in body of request
|
|
83
83
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
84
84
|
*/
|
|
85
|
-
createAccount(
|
|
86
|
-
return __awaiter(this,
|
|
85
|
+
createAccount(xeroTenantId, account, idempotencyKey, options = { headers: {} }) {
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
87
|
const localVarPath = this.basePath + '/Accounts';
|
|
88
88
|
let localVarQueryParameters = {};
|
|
89
89
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -157,8 +157,8 @@ class AccountingApi {
|
|
|
157
157
|
* @param body Byte array of file in body of request
|
|
158
158
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
159
159
|
*/
|
|
160
|
-
createAccountAttachmentByFileName(
|
|
161
|
-
return __awaiter(this,
|
|
160
|
+
createAccountAttachmentByFileName(xeroTenantId, accountID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
162
|
const localVarPath = this.basePath + '/Accounts/{AccountID}/Attachments/{FileName}'
|
|
163
163
|
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)))
|
|
164
164
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -264,8 +264,8 @@ class AccountingApi {
|
|
|
264
264
|
* @param body Byte array of file in body of request
|
|
265
265
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
266
266
|
*/
|
|
267
|
-
createBankTransactionAttachmentByFileName(
|
|
268
|
-
return __awaiter(this,
|
|
267
|
+
createBankTransactionAttachmentByFileName(xeroTenantId, bankTransactionID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
269
269
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'
|
|
270
270
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)))
|
|
271
271
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -370,8 +370,8 @@ class AccountingApi {
|
|
|
370
370
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
371
371
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
372
372
|
*/
|
|
373
|
-
createBankTransactionHistoryRecord(
|
|
374
|
-
return __awaiter(this,
|
|
373
|
+
createBankTransactionHistoryRecord(xeroTenantId, bankTransactionID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
375
375
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/History'
|
|
376
376
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)));
|
|
377
377
|
let localVarQueryParameters = {};
|
|
@@ -450,8 +450,8 @@ class AccountingApi {
|
|
|
450
450
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
451
451
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
452
452
|
*/
|
|
453
|
-
createBankTransactions(
|
|
454
|
-
return __awaiter(this,
|
|
453
|
+
createBankTransactions(xeroTenantId, bankTransactions, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
454
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
455
455
|
const localVarPath = this.basePath + '/BankTransactions';
|
|
456
456
|
let localVarQueryParameters = {};
|
|
457
457
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -529,8 +529,8 @@ class AccountingApi {
|
|
|
529
529
|
* @param bankTransfers BankTransfers with array of BankTransfer objects in request body
|
|
530
530
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
531
531
|
*/
|
|
532
|
-
createBankTransfer(
|
|
533
|
-
return __awaiter(this,
|
|
532
|
+
createBankTransfer(xeroTenantId, bankTransfers, idempotencyKey, options = { headers: {} }) {
|
|
533
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
534
534
|
const localVarPath = this.basePath + '/BankTransfers';
|
|
535
535
|
let localVarQueryParameters = {};
|
|
536
536
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -603,8 +603,8 @@ class AccountingApi {
|
|
|
603
603
|
* @param body Byte array of file in body of request
|
|
604
604
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
605
605
|
*/
|
|
606
|
-
createBankTransferAttachmentByFileName(
|
|
607
|
-
return __awaiter(this,
|
|
606
|
+
createBankTransferAttachmentByFileName(xeroTenantId, bankTransferID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
608
608
|
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/Attachments/{FileName}'
|
|
609
609
|
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)))
|
|
610
610
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -709,8 +709,8 @@ class AccountingApi {
|
|
|
709
709
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
710
710
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
711
711
|
*/
|
|
712
|
-
createBankTransferHistoryRecord(
|
|
713
|
-
return __awaiter(this,
|
|
712
|
+
createBankTransferHistoryRecord(xeroTenantId, bankTransferID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
713
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
714
714
|
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/History'
|
|
715
715
|
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)));
|
|
716
716
|
let localVarQueryParameters = {};
|
|
@@ -788,8 +788,8 @@ class AccountingApi {
|
|
|
788
788
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
789
789
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
790
790
|
*/
|
|
791
|
-
createBatchPayment(
|
|
792
|
-
return __awaiter(this,
|
|
791
|
+
createBatchPayment(xeroTenantId, batchPayments, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
792
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
793
793
|
const localVarPath = this.basePath + '/BatchPayments';
|
|
794
794
|
let localVarQueryParameters = {};
|
|
795
795
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -865,8 +865,8 @@ class AccountingApi {
|
|
|
865
865
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
866
866
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
867
867
|
*/
|
|
868
|
-
createBatchPaymentHistoryRecord(
|
|
869
|
-
return __awaiter(this,
|
|
868
|
+
createBatchPaymentHistoryRecord(xeroTenantId, batchPaymentID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
870
870
|
const localVarPath = this.basePath + '/BatchPayments/{BatchPaymentID}/History'
|
|
871
871
|
.replace('{' + 'BatchPaymentID' + '}', encodeURIComponent(String(batchPaymentID)));
|
|
872
872
|
let localVarQueryParameters = {};
|
|
@@ -944,8 +944,8 @@ class AccountingApi {
|
|
|
944
944
|
* @param paymentServices PaymentServices array with PaymentService object in body of request
|
|
945
945
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
946
946
|
*/
|
|
947
|
-
createBrandingThemePaymentServices(
|
|
948
|
-
return __awaiter(this,
|
|
947
|
+
createBrandingThemePaymentServices(xeroTenantId, brandingThemeID, paymentServices, idempotencyKey, options = { headers: {} }) {
|
|
948
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
949
949
|
const localVarPath = this.basePath + '/BrandingThemes/{BrandingThemeID}/PaymentServices'
|
|
950
950
|
.replace('{' + 'BrandingThemeID' + '}', encodeURIComponent(String(brandingThemeID)));
|
|
951
951
|
let localVarQueryParameters = {};
|
|
@@ -1023,8 +1023,8 @@ class AccountingApi {
|
|
|
1023
1023
|
* @param body Byte array of file in body of request
|
|
1024
1024
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1025
1025
|
*/
|
|
1026
|
-
createContactAttachmentByFileName(
|
|
1027
|
-
return __awaiter(this,
|
|
1026
|
+
createContactAttachmentByFileName(xeroTenantId, contactID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
1027
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1028
1028
|
const localVarPath = this.basePath + '/Contacts/{ContactID}/Attachments/{FileName}'
|
|
1029
1029
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)))
|
|
1030
1030
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -1128,8 +1128,8 @@ class AccountingApi {
|
|
|
1128
1128
|
* @param contactGroups ContactGroups with an array of names in request body
|
|
1129
1129
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1130
1130
|
*/
|
|
1131
|
-
createContactGroup(
|
|
1132
|
-
return __awaiter(this,
|
|
1131
|
+
createContactGroup(xeroTenantId, contactGroups, idempotencyKey, options = { headers: {} }) {
|
|
1132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1133
1133
|
const localVarPath = this.basePath + '/ContactGroups';
|
|
1134
1134
|
let localVarQueryParameters = {};
|
|
1135
1135
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -1202,8 +1202,8 @@ class AccountingApi {
|
|
|
1202
1202
|
* @param contacts Contacts with array of contacts specifying the ContactID to be added to ContactGroup in body of request
|
|
1203
1203
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1204
1204
|
*/
|
|
1205
|
-
createContactGroupContacts(
|
|
1206
|
-
return __awaiter(this,
|
|
1205
|
+
createContactGroupContacts(xeroTenantId, contactGroupID, contacts, idempotencyKey, options = { headers: {} }) {
|
|
1206
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1207
1207
|
const localVarPath = this.basePath + '/ContactGroups/{ContactGroupID}/Contacts'
|
|
1208
1208
|
.replace('{' + 'ContactGroupID' + '}', encodeURIComponent(String(contactGroupID)));
|
|
1209
1209
|
let localVarQueryParameters = {};
|
|
@@ -1281,8 +1281,8 @@ class AccountingApi {
|
|
|
1281
1281
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1282
1282
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1283
1283
|
*/
|
|
1284
|
-
createContactHistory(
|
|
1285
|
-
return __awaiter(this,
|
|
1284
|
+
createContactHistory(xeroTenantId, contactID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
1285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1286
1286
|
const localVarPath = this.basePath + '/Contacts/{ContactID}/History'
|
|
1287
1287
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)));
|
|
1288
1288
|
let localVarQueryParameters = {};
|
|
@@ -1360,8 +1360,8 @@ class AccountingApi {
|
|
|
1360
1360
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1361
1361
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1362
1362
|
*/
|
|
1363
|
-
createContacts(
|
|
1364
|
-
return __awaiter(this,
|
|
1363
|
+
createContacts(xeroTenantId, contacts, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
1364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1365
1365
|
const localVarPath = this.basePath + '/Contacts';
|
|
1366
1366
|
let localVarQueryParameters = {};
|
|
1367
1367
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -1438,8 +1438,8 @@ class AccountingApi {
|
|
|
1438
1438
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1439
1439
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1440
1440
|
*/
|
|
1441
|
-
createCreditNoteAllocation(
|
|
1442
|
-
return __awaiter(this,
|
|
1441
|
+
createCreditNoteAllocation(xeroTenantId, creditNoteID, allocations, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
1442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1443
1443
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Allocations'
|
|
1444
1444
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)));
|
|
1445
1445
|
let localVarQueryParameters = {};
|
|
@@ -1522,8 +1522,8 @@ class AccountingApi {
|
|
|
1522
1522
|
* @param includeOnline Allows an attachment to be seen by the end customer within their online invoice
|
|
1523
1523
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1524
1524
|
*/
|
|
1525
|
-
createCreditNoteAttachmentByFileName(
|
|
1526
|
-
return __awaiter(this,
|
|
1525
|
+
createCreditNoteAttachmentByFileName(xeroTenantId, creditNoteID, fileName, body, includeOnline, idempotencyKey, options = { headers: {} }) {
|
|
1526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1527
1527
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'
|
|
1528
1528
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)))
|
|
1529
1529
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -1631,8 +1631,8 @@ class AccountingApi {
|
|
|
1631
1631
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1632
1632
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1633
1633
|
*/
|
|
1634
|
-
createCreditNoteHistory(
|
|
1635
|
-
return __awaiter(this,
|
|
1634
|
+
createCreditNoteHistory(xeroTenantId, creditNoteID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
1635
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1636
1636
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/History'
|
|
1637
1637
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)));
|
|
1638
1638
|
let localVarQueryParameters = {};
|
|
@@ -1711,8 +1711,8 @@ class AccountingApi {
|
|
|
1711
1711
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
1712
1712
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1713
1713
|
*/
|
|
1714
|
-
createCreditNotes(
|
|
1715
|
-
return __awaiter(this,
|
|
1714
|
+
createCreditNotes(xeroTenantId, creditNotes, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
1715
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1716
1716
|
const localVarPath = this.basePath + '/CreditNotes';
|
|
1717
1717
|
let localVarQueryParameters = {};
|
|
1718
1718
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -1790,8 +1790,8 @@ class AccountingApi {
|
|
|
1790
1790
|
* @param currency Currency object in the body of request
|
|
1791
1791
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1792
1792
|
*/
|
|
1793
|
-
createCurrency(
|
|
1794
|
-
return __awaiter(this,
|
|
1793
|
+
createCurrency(xeroTenantId, currency, idempotencyKey, options = { headers: {} }) {
|
|
1794
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1795
1795
|
const localVarPath = this.basePath + '/Currencies';
|
|
1796
1796
|
let localVarQueryParameters = {};
|
|
1797
1797
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -1864,8 +1864,8 @@ class AccountingApi {
|
|
|
1864
1864
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
1865
1865
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1866
1866
|
*/
|
|
1867
|
-
createEmployees(
|
|
1868
|
-
return __awaiter(this,
|
|
1867
|
+
createEmployees(xeroTenantId, employees, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
1868
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1869
1869
|
const localVarPath = this.basePath + '/Employees';
|
|
1870
1870
|
let localVarQueryParameters = {};
|
|
1871
1871
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -1941,8 +1941,8 @@ class AccountingApi {
|
|
|
1941
1941
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
1942
1942
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
1943
1943
|
*/
|
|
1944
|
-
createExpenseClaimHistory(
|
|
1945
|
-
return __awaiter(this,
|
|
1944
|
+
createExpenseClaimHistory(xeroTenantId, expenseClaimID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
1945
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1946
1946
|
const localVarPath = this.basePath + '/ExpenseClaims/{ExpenseClaimID}/History'
|
|
1947
1947
|
.replace('{' + 'ExpenseClaimID' + '}', encodeURIComponent(String(expenseClaimID)));
|
|
1948
1948
|
let localVarQueryParameters = {};
|
|
@@ -2019,8 +2019,8 @@ class AccountingApi {
|
|
|
2019
2019
|
* @param expenseClaims ExpenseClaims with array of ExpenseClaim object in body of request
|
|
2020
2020
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2021
2021
|
*/
|
|
2022
|
-
createExpenseClaims(
|
|
2023
|
-
return __awaiter(this,
|
|
2022
|
+
createExpenseClaims(xeroTenantId, expenseClaims, idempotencyKey, options = { headers: {} }) {
|
|
2023
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2024
2024
|
const localVarPath = this.basePath + '/ExpenseClaims';
|
|
2025
2025
|
let localVarQueryParameters = {};
|
|
2026
2026
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -2095,8 +2095,8 @@ class AccountingApi {
|
|
|
2095
2095
|
* @param includeOnline Allows an attachment to be seen by the end customer within their online invoice
|
|
2096
2096
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2097
2097
|
*/
|
|
2098
|
-
createInvoiceAttachmentByFileName(
|
|
2099
|
-
return __awaiter(this,
|
|
2098
|
+
createInvoiceAttachmentByFileName(xeroTenantId, invoiceID, fileName, body, includeOnline, idempotencyKey, options = { headers: {} }) {
|
|
2099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2100
2100
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/Attachments/{FileName}'
|
|
2101
2101
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)))
|
|
2102
2102
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -2204,8 +2204,8 @@ class AccountingApi {
|
|
|
2204
2204
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2205
2205
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2206
2206
|
*/
|
|
2207
|
-
createInvoiceHistory(
|
|
2208
|
-
return __awaiter(this,
|
|
2207
|
+
createInvoiceHistory(xeroTenantId, invoiceID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
2208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2209
2209
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/History'
|
|
2210
2210
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
2211
2211
|
let localVarQueryParameters = {};
|
|
@@ -2284,8 +2284,8 @@ class AccountingApi {
|
|
|
2284
2284
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2285
2285
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2286
2286
|
*/
|
|
2287
|
-
createInvoices(
|
|
2288
|
-
return __awaiter(this,
|
|
2287
|
+
createInvoices(xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
2288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2289
2289
|
const localVarPath = this.basePath + '/Invoices';
|
|
2290
2290
|
let localVarQueryParameters = {};
|
|
2291
2291
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -2364,8 +2364,8 @@ class AccountingApi {
|
|
|
2364
2364
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2365
2365
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2366
2366
|
*/
|
|
2367
|
-
createItemHistory(
|
|
2368
|
-
return __awaiter(this,
|
|
2367
|
+
createItemHistory(xeroTenantId, itemID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
2368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2369
2369
|
const localVarPath = this.basePath + '/Items/{ItemID}/History'
|
|
2370
2370
|
.replace('{' + 'ItemID' + '}', encodeURIComponent(String(itemID)));
|
|
2371
2371
|
let localVarQueryParameters = {};
|
|
@@ -2444,8 +2444,8 @@ class AccountingApi {
|
|
|
2444
2444
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
2445
2445
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2446
2446
|
*/
|
|
2447
|
-
createItems(
|
|
2448
|
-
return __awaiter(this,
|
|
2447
|
+
createItems(xeroTenantId, items, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
2448
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2449
2449
|
const localVarPath = this.basePath + '/Items';
|
|
2450
2450
|
let localVarQueryParameters = {};
|
|
2451
2451
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -2523,8 +2523,8 @@ class AccountingApi {
|
|
|
2523
2523
|
* @param linkedTransaction LinkedTransaction object in body of request
|
|
2524
2524
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2525
2525
|
*/
|
|
2526
|
-
createLinkedTransaction(
|
|
2527
|
-
return __awaiter(this,
|
|
2526
|
+
createLinkedTransaction(xeroTenantId, linkedTransaction, idempotencyKey, options = { headers: {} }) {
|
|
2527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2528
2528
|
const localVarPath = this.basePath + '/LinkedTransactions';
|
|
2529
2529
|
let localVarQueryParameters = {};
|
|
2530
2530
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -2598,8 +2598,8 @@ class AccountingApi {
|
|
|
2598
2598
|
* @param body Byte array of file in body of request
|
|
2599
2599
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2600
2600
|
*/
|
|
2601
|
-
createManualJournalAttachmentByFileName(
|
|
2602
|
-
return __awaiter(this,
|
|
2601
|
+
createManualJournalAttachmentByFileName(xeroTenantId, manualJournalID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
2602
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2603
2603
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'
|
|
2604
2604
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)))
|
|
2605
2605
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -2704,8 +2704,8 @@ class AccountingApi {
|
|
|
2704
2704
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2705
2705
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2706
2706
|
*/
|
|
2707
|
-
createManualJournalHistoryRecord(
|
|
2708
|
-
return __awaiter(this,
|
|
2707
|
+
createManualJournalHistoryRecord(xeroTenantId, manualJournalID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
2708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2709
2709
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/History'
|
|
2710
2710
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)));
|
|
2711
2711
|
let localVarQueryParameters = {};
|
|
@@ -2783,8 +2783,8 @@ class AccountingApi {
|
|
|
2783
2783
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2784
2784
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2785
2785
|
*/
|
|
2786
|
-
createManualJournals(
|
|
2787
|
-
return __awaiter(this,
|
|
2786
|
+
createManualJournals(xeroTenantId, manualJournals, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
2787
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2788
2788
|
const localVarPath = this.basePath + '/ManualJournals';
|
|
2789
2789
|
let localVarQueryParameters = {};
|
|
2790
2790
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -2861,8 +2861,8 @@ class AccountingApi {
|
|
|
2861
2861
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
2862
2862
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2863
2863
|
*/
|
|
2864
|
-
createOverpaymentAllocations(
|
|
2865
|
-
return __awaiter(this,
|
|
2864
|
+
createOverpaymentAllocations(xeroTenantId, overpaymentID, allocations, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
2865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2866
2866
|
const localVarPath = this.basePath + '/Overpayments/{OverpaymentID}/Allocations'
|
|
2867
2867
|
.replace('{' + 'OverpaymentID' + '}', encodeURIComponent(String(overpaymentID)));
|
|
2868
2868
|
let localVarQueryParameters = {};
|
|
@@ -2943,8 +2943,8 @@ class AccountingApi {
|
|
|
2943
2943
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
2944
2944
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
2945
2945
|
*/
|
|
2946
|
-
createOverpaymentHistory(
|
|
2947
|
-
return __awaiter(this,
|
|
2946
|
+
createOverpaymentHistory(xeroTenantId, overpaymentID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
2947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2948
2948
|
const localVarPath = this.basePath + '/Overpayments/{OverpaymentID}/History'
|
|
2949
2949
|
.replace('{' + 'OverpaymentID' + '}', encodeURIComponent(String(overpaymentID)));
|
|
2950
2950
|
let localVarQueryParameters = {};
|
|
@@ -3021,8 +3021,8 @@ class AccountingApi {
|
|
|
3021
3021
|
* @param payment Request body with a single Payment object
|
|
3022
3022
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3023
3023
|
*/
|
|
3024
|
-
createPayment(
|
|
3025
|
-
return __awaiter(this,
|
|
3024
|
+
createPayment(xeroTenantId, payment, idempotencyKey, options = { headers: {} }) {
|
|
3025
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3026
3026
|
const localVarPath = this.basePath + '/Payments';
|
|
3027
3027
|
let localVarQueryParameters = {};
|
|
3028
3028
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -3095,8 +3095,8 @@ class AccountingApi {
|
|
|
3095
3095
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3096
3096
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3097
3097
|
*/
|
|
3098
|
-
createPaymentHistory(
|
|
3099
|
-
return __awaiter(this,
|
|
3098
|
+
createPaymentHistory(xeroTenantId, paymentID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
3099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3100
3100
|
const localVarPath = this.basePath + '/Payments/{PaymentID}/History'
|
|
3101
3101
|
.replace('{' + 'PaymentID' + '}', encodeURIComponent(String(paymentID)));
|
|
3102
3102
|
let localVarQueryParameters = {};
|
|
@@ -3173,8 +3173,8 @@ class AccountingApi {
|
|
|
3173
3173
|
* @param paymentServices PaymentServices array with PaymentService object in body of request
|
|
3174
3174
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3175
3175
|
*/
|
|
3176
|
-
createPaymentService(
|
|
3177
|
-
return __awaiter(this,
|
|
3176
|
+
createPaymentService(xeroTenantId, paymentServices, idempotencyKey, options = { headers: {} }) {
|
|
3177
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3178
3178
|
const localVarPath = this.basePath + '/PaymentServices';
|
|
3179
3179
|
let localVarQueryParameters = {};
|
|
3180
3180
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -3247,8 +3247,8 @@ class AccountingApi {
|
|
|
3247
3247
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3248
3248
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3249
3249
|
*/
|
|
3250
|
-
createPayments(
|
|
3251
|
-
return __awaiter(this,
|
|
3250
|
+
createPayments(xeroTenantId, payments, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
3251
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3252
3252
|
const localVarPath = this.basePath + '/Payments';
|
|
3253
3253
|
let localVarQueryParameters = {};
|
|
3254
3254
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -3325,8 +3325,8 @@ class AccountingApi {
|
|
|
3325
3325
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3326
3326
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3327
3327
|
*/
|
|
3328
|
-
createPrepaymentAllocations(
|
|
3329
|
-
return __awaiter(this,
|
|
3328
|
+
createPrepaymentAllocations(xeroTenantId, prepaymentID, allocations, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
3329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3330
3330
|
const localVarPath = this.basePath + '/Prepayments/{PrepaymentID}/Allocations'
|
|
3331
3331
|
.replace('{' + 'PrepaymentID' + '}', encodeURIComponent(String(prepaymentID)));
|
|
3332
3332
|
let localVarQueryParameters = {};
|
|
@@ -3407,8 +3407,8 @@ class AccountingApi {
|
|
|
3407
3407
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3408
3408
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3409
3409
|
*/
|
|
3410
|
-
createPrepaymentHistory(
|
|
3411
|
-
return __awaiter(this,
|
|
3410
|
+
createPrepaymentHistory(xeroTenantId, prepaymentID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
3411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3412
3412
|
const localVarPath = this.basePath + '/Prepayments/{PrepaymentID}/History'
|
|
3413
3413
|
.replace('{' + 'PrepaymentID' + '}', encodeURIComponent(String(prepaymentID)));
|
|
3414
3414
|
let localVarQueryParameters = {};
|
|
@@ -3487,8 +3487,8 @@ class AccountingApi {
|
|
|
3487
3487
|
* @param body Byte array of file in body of request
|
|
3488
3488
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3489
3489
|
*/
|
|
3490
|
-
createPurchaseOrderAttachmentByFileName(
|
|
3491
|
-
return __awaiter(this,
|
|
3490
|
+
createPurchaseOrderAttachmentByFileName(xeroTenantId, purchaseOrderID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
3491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3492
3492
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'
|
|
3493
3493
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)))
|
|
3494
3494
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -3593,8 +3593,8 @@ class AccountingApi {
|
|
|
3593
3593
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3594
3594
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3595
3595
|
*/
|
|
3596
|
-
createPurchaseOrderHistory(
|
|
3597
|
-
return __awaiter(this,
|
|
3596
|
+
createPurchaseOrderHistory(xeroTenantId, purchaseOrderID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
3597
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3598
3598
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/History'
|
|
3599
3599
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)));
|
|
3600
3600
|
let localVarQueryParameters = {};
|
|
@@ -3672,8 +3672,8 @@ class AccountingApi {
|
|
|
3672
3672
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3673
3673
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3674
3674
|
*/
|
|
3675
|
-
createPurchaseOrders(
|
|
3676
|
-
return __awaiter(this,
|
|
3675
|
+
createPurchaseOrders(xeroTenantId, purchaseOrders, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
3676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3677
3677
|
const localVarPath = this.basePath + '/PurchaseOrders';
|
|
3678
3678
|
let localVarQueryParameters = {};
|
|
3679
3679
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -3750,8 +3750,8 @@ class AccountingApi {
|
|
|
3750
3750
|
* @param body Byte array of file in body of request
|
|
3751
3751
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3752
3752
|
*/
|
|
3753
|
-
createQuoteAttachmentByFileName(
|
|
3754
|
-
return __awaiter(this,
|
|
3753
|
+
createQuoteAttachmentByFileName(xeroTenantId, quoteID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
3754
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3755
3755
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}/Attachments/{FileName}'
|
|
3756
3756
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)))
|
|
3757
3757
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -3856,8 +3856,8 @@ class AccountingApi {
|
|
|
3856
3856
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
3857
3857
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3858
3858
|
*/
|
|
3859
|
-
createQuoteHistory(
|
|
3860
|
-
return __awaiter(this,
|
|
3859
|
+
createQuoteHistory(xeroTenantId, quoteID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
3860
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3861
3861
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}/History'
|
|
3862
3862
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)));
|
|
3863
3863
|
let localVarQueryParameters = {};
|
|
@@ -3935,8 +3935,8 @@ class AccountingApi {
|
|
|
3935
3935
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
3936
3936
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
3937
3937
|
*/
|
|
3938
|
-
createQuotes(
|
|
3939
|
-
return __awaiter(this,
|
|
3938
|
+
createQuotes(xeroTenantId, quotes, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
3939
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3940
3940
|
const localVarPath = this.basePath + '/Quotes';
|
|
3941
3941
|
let localVarQueryParameters = {};
|
|
3942
3942
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4012,8 +4012,8 @@ class AccountingApi {
|
|
|
4012
4012
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
4013
4013
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4014
4014
|
*/
|
|
4015
|
-
createReceipt(
|
|
4016
|
-
return __awaiter(this,
|
|
4015
|
+
createReceipt(xeroTenantId, receipts, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
4016
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4017
4017
|
const localVarPath = this.basePath + '/Receipts';
|
|
4018
4018
|
let localVarQueryParameters = {};
|
|
4019
4019
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4090,8 +4090,8 @@ class AccountingApi {
|
|
|
4090
4090
|
* @param body Byte array of file in body of request
|
|
4091
4091
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4092
4092
|
*/
|
|
4093
|
-
createReceiptAttachmentByFileName(
|
|
4094
|
-
return __awaiter(this,
|
|
4093
|
+
createReceiptAttachmentByFileName(xeroTenantId, receiptID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
4094
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4095
4095
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/Attachments/{FileName}'
|
|
4096
4096
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)))
|
|
4097
4097
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -4196,8 +4196,8 @@ class AccountingApi {
|
|
|
4196
4196
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
4197
4197
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4198
4198
|
*/
|
|
4199
|
-
createReceiptHistory(
|
|
4200
|
-
return __awaiter(this,
|
|
4199
|
+
createReceiptHistory(xeroTenantId, receiptID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
4200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4201
4201
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/History'
|
|
4202
4202
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)));
|
|
4203
4203
|
let localVarQueryParameters = {};
|
|
@@ -4276,8 +4276,8 @@ class AccountingApi {
|
|
|
4276
4276
|
* @param body Byte array of file in body of request
|
|
4277
4277
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4278
4278
|
*/
|
|
4279
|
-
createRepeatingInvoiceAttachmentByFileName(
|
|
4280
|
-
return __awaiter(this,
|
|
4279
|
+
createRepeatingInvoiceAttachmentByFileName(xeroTenantId, repeatingInvoiceID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
4280
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4281
4281
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'
|
|
4282
4282
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)))
|
|
4283
4283
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -4382,8 +4382,8 @@ class AccountingApi {
|
|
|
4382
4382
|
* @param historyRecords HistoryRecords containing an array of HistoryRecord objects in body of request
|
|
4383
4383
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4384
4384
|
*/
|
|
4385
|
-
createRepeatingInvoiceHistory(
|
|
4386
|
-
return __awaiter(this,
|
|
4385
|
+
createRepeatingInvoiceHistory(xeroTenantId, repeatingInvoiceID, historyRecords, idempotencyKey, options = { headers: {} }) {
|
|
4386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4387
4387
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/History'
|
|
4388
4388
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)));
|
|
4389
4389
|
let localVarQueryParameters = {};
|
|
@@ -4461,8 +4461,8 @@ class AccountingApi {
|
|
|
4461
4461
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
4462
4462
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4463
4463
|
*/
|
|
4464
|
-
createRepeatingInvoices(
|
|
4465
|
-
return __awaiter(this,
|
|
4464
|
+
createRepeatingInvoices(xeroTenantId, repeatingInvoices, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
4465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4466
4466
|
const localVarPath = this.basePath + '/RepeatingInvoices';
|
|
4467
4467
|
let localVarQueryParameters = {};
|
|
4468
4468
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4537,8 +4537,8 @@ class AccountingApi {
|
|
|
4537
4537
|
* @param taxRates TaxRates array with TaxRate object in body of request
|
|
4538
4538
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4539
4539
|
*/
|
|
4540
|
-
createTaxRates(
|
|
4541
|
-
return __awaiter(this,
|
|
4540
|
+
createTaxRates(xeroTenantId, taxRates, idempotencyKey, options = { headers: {} }) {
|
|
4541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4542
4542
|
const localVarPath = this.basePath + '/TaxRates';
|
|
4543
4543
|
let localVarQueryParameters = {};
|
|
4544
4544
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4610,8 +4610,8 @@ class AccountingApi {
|
|
|
4610
4610
|
* @param trackingCategory TrackingCategory object in body of request
|
|
4611
4611
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4612
4612
|
*/
|
|
4613
|
-
createTrackingCategory(
|
|
4614
|
-
return __awaiter(this,
|
|
4613
|
+
createTrackingCategory(xeroTenantId, trackingCategory, idempotencyKey, options = { headers: {} }) {
|
|
4614
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4615
4615
|
const localVarPath = this.basePath + '/TrackingCategories';
|
|
4616
4616
|
let localVarQueryParameters = {};
|
|
4617
4617
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4684,8 +4684,8 @@ class AccountingApi {
|
|
|
4684
4684
|
* @param trackingOption TrackingOption object in body of request
|
|
4685
4685
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4686
4686
|
*/
|
|
4687
|
-
createTrackingOptions(
|
|
4688
|
-
return __awaiter(this,
|
|
4687
|
+
createTrackingOptions(xeroTenantId, trackingCategoryID, trackingOption, idempotencyKey, options = { headers: {} }) {
|
|
4688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4689
4689
|
const localVarPath = this.basePath + '/TrackingCategories/{TrackingCategoryID}/Options'
|
|
4690
4690
|
.replace('{' + 'TrackingCategoryID' + '}', encodeURIComponent(String(trackingCategoryID)));
|
|
4691
4691
|
let localVarQueryParameters = {};
|
|
@@ -4761,8 +4761,8 @@ class AccountingApi {
|
|
|
4761
4761
|
* @param xeroTenantId Xero identifier for Tenant
|
|
4762
4762
|
* @param accountID Unique identifier for Account object
|
|
4763
4763
|
*/
|
|
4764
|
-
deleteAccount(
|
|
4765
|
-
return __awaiter(this,
|
|
4764
|
+
deleteAccount(xeroTenantId, accountID, options = { headers: {} }) {
|
|
4765
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4766
4766
|
const localVarPath = this.basePath + '/Accounts/{AccountID}'
|
|
4767
4767
|
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)));
|
|
4768
4768
|
let localVarQueryParameters = {};
|
|
@@ -4834,8 +4834,8 @@ class AccountingApi {
|
|
|
4834
4834
|
* @param batchPaymentDelete
|
|
4835
4835
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4836
4836
|
*/
|
|
4837
|
-
deleteBatchPayment(
|
|
4838
|
-
return __awaiter(this,
|
|
4837
|
+
deleteBatchPayment(xeroTenantId, batchPaymentDelete, idempotencyKey, options = { headers: {} }) {
|
|
4838
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4839
4839
|
const localVarPath = this.basePath + '/BatchPayments';
|
|
4840
4840
|
let localVarQueryParameters = {};
|
|
4841
4841
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -4908,8 +4908,8 @@ class AccountingApi {
|
|
|
4908
4908
|
* @param batchPaymentDeleteByUrlParam
|
|
4909
4909
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
4910
4910
|
*/
|
|
4911
|
-
deleteBatchPaymentByUrlParam(
|
|
4912
|
-
return __awaiter(this,
|
|
4911
|
+
deleteBatchPaymentByUrlParam(xeroTenantId, batchPaymentID, batchPaymentDeleteByUrlParam, idempotencyKey, options = { headers: {} }) {
|
|
4912
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4913
4913
|
const localVarPath = this.basePath + '/BatchPayments/{BatchPaymentID}'
|
|
4914
4914
|
.replace('{' + 'BatchPaymentID' + '}', encodeURIComponent(String(batchPaymentID)));
|
|
4915
4915
|
let localVarQueryParameters = {};
|
|
@@ -4986,8 +4986,8 @@ class AccountingApi {
|
|
|
4986
4986
|
* @param contactGroupID Unique identifier for a Contact Group
|
|
4987
4987
|
* @param contactID Unique identifier for a Contact
|
|
4988
4988
|
*/
|
|
4989
|
-
deleteContactGroupContact(
|
|
4990
|
-
return __awaiter(this,
|
|
4989
|
+
deleteContactGroupContact(xeroTenantId, contactGroupID, contactID, options = { headers: {} }) {
|
|
4990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4991
4991
|
const localVarPath = this.basePath + '/ContactGroups/{ContactGroupID}/Contacts/{ContactID}'
|
|
4992
4992
|
.replace('{' + 'ContactGroupID' + '}', encodeURIComponent(String(contactGroupID)))
|
|
4993
4993
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)));
|
|
@@ -5062,8 +5062,8 @@ class AccountingApi {
|
|
|
5062
5062
|
* @param xeroTenantId Xero identifier for Tenant
|
|
5063
5063
|
* @param contactGroupID Unique identifier for a Contact Group
|
|
5064
5064
|
*/
|
|
5065
|
-
deleteContactGroupContacts(
|
|
5066
|
-
return __awaiter(this,
|
|
5065
|
+
deleteContactGroupContacts(xeroTenantId, contactGroupID, options = { headers: {} }) {
|
|
5066
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5067
5067
|
const localVarPath = this.basePath + '/ContactGroups/{ContactGroupID}/Contacts'
|
|
5068
5068
|
.replace('{' + 'ContactGroupID' + '}', encodeURIComponent(String(contactGroupID)));
|
|
5069
5069
|
let localVarQueryParameters = {};
|
|
@@ -5132,8 +5132,8 @@ class AccountingApi {
|
|
|
5132
5132
|
* @param creditNoteID Unique identifier for a Credit Note
|
|
5133
5133
|
* @param allocationID Unique identifier for Allocation object
|
|
5134
5134
|
*/
|
|
5135
|
-
deleteCreditNoteAllocations(
|
|
5136
|
-
return __awaiter(this,
|
|
5135
|
+
deleteCreditNoteAllocations(xeroTenantId, creditNoteID, allocationID, options = { headers: {} }) {
|
|
5136
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5137
5137
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Allocations/{AllocationID}'
|
|
5138
5138
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)))
|
|
5139
5139
|
.replace('{' + 'AllocationID' + '}', encodeURIComponent(String(allocationID)));
|
|
@@ -5209,8 +5209,8 @@ class AccountingApi {
|
|
|
5209
5209
|
* @param xeroTenantId Xero identifier for Tenant
|
|
5210
5210
|
* @param itemID Unique identifier for an Item
|
|
5211
5211
|
*/
|
|
5212
|
-
deleteItem(
|
|
5213
|
-
return __awaiter(this,
|
|
5212
|
+
deleteItem(xeroTenantId, itemID, options = { headers: {} }) {
|
|
5213
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5214
5214
|
const localVarPath = this.basePath + '/Items/{ItemID}'
|
|
5215
5215
|
.replace('{' + 'ItemID' + '}', encodeURIComponent(String(itemID)));
|
|
5216
5216
|
let localVarQueryParameters = {};
|
|
@@ -5280,8 +5280,8 @@ class AccountingApi {
|
|
|
5280
5280
|
* @param xeroTenantId Xero identifier for Tenant
|
|
5281
5281
|
* @param linkedTransactionID Unique identifier for a LinkedTransaction
|
|
5282
5282
|
*/
|
|
5283
|
-
deleteLinkedTransaction(
|
|
5284
|
-
return __awaiter(this,
|
|
5283
|
+
deleteLinkedTransaction(xeroTenantId, linkedTransactionID, options = { headers: {} }) {
|
|
5284
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5285
5285
|
const localVarPath = this.basePath + '/LinkedTransactions/{LinkedTransactionID}'
|
|
5286
5286
|
.replace('{' + 'LinkedTransactionID' + '}', encodeURIComponent(String(linkedTransactionID)));
|
|
5287
5287
|
let localVarQueryParameters = {};
|
|
@@ -5352,8 +5352,8 @@ class AccountingApi {
|
|
|
5352
5352
|
* @param overpaymentID Unique identifier for a Overpayment
|
|
5353
5353
|
* @param allocationID Unique identifier for Allocation object
|
|
5354
5354
|
*/
|
|
5355
|
-
deleteOverpaymentAllocations(
|
|
5356
|
-
return __awaiter(this,
|
|
5355
|
+
deleteOverpaymentAllocations(xeroTenantId, overpaymentID, allocationID, options = { headers: {} }) {
|
|
5356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5357
5357
|
const localVarPath = this.basePath + '/Overpayments/{OverpaymentID}/Allocations/{AllocationID}'
|
|
5358
5358
|
.replace('{' + 'OverpaymentID' + '}', encodeURIComponent(String(overpaymentID)))
|
|
5359
5359
|
.replace('{' + 'AllocationID' + '}', encodeURIComponent(String(allocationID)));
|
|
@@ -5431,8 +5431,8 @@ class AccountingApi {
|
|
|
5431
5431
|
* @param paymentDelete
|
|
5432
5432
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
5433
5433
|
*/
|
|
5434
|
-
deletePayment(
|
|
5435
|
-
return __awaiter(this,
|
|
5434
|
+
deletePayment(xeroTenantId, paymentID, paymentDelete, idempotencyKey, options = { headers: {} }) {
|
|
5435
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5436
5436
|
const localVarPath = this.basePath + '/Payments/{PaymentID}'
|
|
5437
5437
|
.replace('{' + 'PaymentID' + '}', encodeURIComponent(String(paymentID)));
|
|
5438
5438
|
let localVarQueryParameters = {};
|
|
@@ -5509,8 +5509,8 @@ class AccountingApi {
|
|
|
5509
5509
|
* @param prepaymentID Unique identifier for a PrePayment
|
|
5510
5510
|
* @param allocationID Unique identifier for Allocation object
|
|
5511
5511
|
*/
|
|
5512
|
-
deletePrepaymentAllocations(
|
|
5513
|
-
return __awaiter(this,
|
|
5512
|
+
deletePrepaymentAllocations(xeroTenantId, prepaymentID, allocationID, options = { headers: {} }) {
|
|
5513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5514
5514
|
const localVarPath = this.basePath + '/Prepayments/{PrepaymentID}/Allocations/{AllocationID}'
|
|
5515
5515
|
.replace('{' + 'PrepaymentID' + '}', encodeURIComponent(String(prepaymentID)))
|
|
5516
5516
|
.replace('{' + 'AllocationID' + '}', encodeURIComponent(String(allocationID)));
|
|
@@ -5586,8 +5586,8 @@ class AccountingApi {
|
|
|
5586
5586
|
* @param xeroTenantId Xero identifier for Tenant
|
|
5587
5587
|
* @param trackingCategoryID Unique identifier for a TrackingCategory
|
|
5588
5588
|
*/
|
|
5589
|
-
deleteTrackingCategory(
|
|
5590
|
-
return __awaiter(this,
|
|
5589
|
+
deleteTrackingCategory(xeroTenantId, trackingCategoryID, options = { headers: {} }) {
|
|
5590
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5591
5591
|
const localVarPath = this.basePath + '/TrackingCategories/{TrackingCategoryID}'
|
|
5592
5592
|
.replace('{' + 'TrackingCategoryID' + '}', encodeURIComponent(String(trackingCategoryID)));
|
|
5593
5593
|
let localVarQueryParameters = {};
|
|
@@ -5659,8 +5659,8 @@ class AccountingApi {
|
|
|
5659
5659
|
* @param trackingCategoryID Unique identifier for a TrackingCategory
|
|
5660
5660
|
* @param trackingOptionID Unique identifier for a Tracking Option
|
|
5661
5661
|
*/
|
|
5662
|
-
deleteTrackingOptions(
|
|
5663
|
-
return __awaiter(this,
|
|
5662
|
+
deleteTrackingOptions(xeroTenantId, trackingCategoryID, trackingOptionID, options = { headers: {} }) {
|
|
5663
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5664
5664
|
const localVarPath = this.basePath + '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'
|
|
5665
5665
|
.replace('{' + 'TrackingCategoryID' + '}', encodeURIComponent(String(trackingCategoryID)))
|
|
5666
5666
|
.replace('{' + 'TrackingOptionID' + '}', encodeURIComponent(String(trackingOptionID)));
|
|
@@ -5738,8 +5738,8 @@ class AccountingApi {
|
|
|
5738
5738
|
* @param requestEmpty
|
|
5739
5739
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
5740
5740
|
*/
|
|
5741
|
-
emailInvoice(
|
|
5742
|
-
return __awaiter(this,
|
|
5741
|
+
emailInvoice(xeroTenantId, invoiceID, requestEmpty, idempotencyKey, options = { headers: {} }) {
|
|
5742
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5743
5743
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/Email'
|
|
5744
5744
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
5745
5745
|
let localVarQueryParameters = {};
|
|
@@ -5814,8 +5814,8 @@ class AccountingApi {
|
|
|
5814
5814
|
* @param xeroTenantId Xero identifier for Tenant
|
|
5815
5815
|
* @param accountID Unique identifier for Account object
|
|
5816
5816
|
*/
|
|
5817
|
-
getAccount(
|
|
5818
|
-
return __awaiter(this,
|
|
5817
|
+
getAccount(xeroTenantId, accountID, options = { headers: {} }) {
|
|
5818
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5819
5819
|
const localVarPath = this.basePath + '/Accounts/{AccountID}'
|
|
5820
5820
|
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)));
|
|
5821
5821
|
let localVarQueryParameters = {};
|
|
@@ -5888,8 +5888,8 @@ class AccountingApi {
|
|
|
5888
5888
|
* @param fileName Name of the attachment
|
|
5889
5889
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
5890
5890
|
*/
|
|
5891
|
-
getAccountAttachmentByFileName(
|
|
5892
|
-
return __awaiter(this,
|
|
5891
|
+
getAccountAttachmentByFileName(xeroTenantId, accountID, fileName, contentType, options = { headers: {} }) {
|
|
5892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5893
5893
|
const localVarPath = this.basePath + '/Accounts/{AccountID}/Attachments/{FileName}'
|
|
5894
5894
|
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)))
|
|
5895
5895
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -5972,8 +5972,8 @@ class AccountingApi {
|
|
|
5972
5972
|
* @param attachmentID Unique identifier for Attachment object
|
|
5973
5973
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
5974
5974
|
*/
|
|
5975
|
-
getAccountAttachmentById(
|
|
5976
|
-
return __awaiter(this,
|
|
5975
|
+
getAccountAttachmentById(xeroTenantId, accountID, attachmentID, contentType, options = { headers: {} }) {
|
|
5976
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5977
5977
|
const localVarPath = this.basePath + '/Accounts/{AccountID}/Attachments/{AttachmentID}'
|
|
5978
5978
|
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)))
|
|
5979
5979
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -6054,8 +6054,8 @@ class AccountingApi {
|
|
|
6054
6054
|
* @param xeroTenantId Xero identifier for Tenant
|
|
6055
6055
|
* @param accountID Unique identifier for Account object
|
|
6056
6056
|
*/
|
|
6057
|
-
getAccountAttachments(
|
|
6058
|
-
return __awaiter(this,
|
|
6057
|
+
getAccountAttachments(xeroTenantId, accountID, options = { headers: {} }) {
|
|
6058
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6059
6059
|
const localVarPath = this.basePath + '/Accounts/{AccountID}/Attachments'
|
|
6060
6060
|
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)));
|
|
6061
6061
|
let localVarQueryParameters = {};
|
|
@@ -6128,8 +6128,8 @@ class AccountingApi {
|
|
|
6128
6128
|
* @param where Filter by an any element
|
|
6129
6129
|
* @param order Order by an any element
|
|
6130
6130
|
*/
|
|
6131
|
-
getAccounts(
|
|
6132
|
-
return __awaiter(this,
|
|
6131
|
+
getAccounts(xeroTenantId, ifModifiedSince, where, order, options = { headers: {} }) {
|
|
6132
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6133
6133
|
const localVarPath = this.basePath + '/Accounts';
|
|
6134
6134
|
let localVarQueryParameters = {};
|
|
6135
6135
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -6203,8 +6203,8 @@ class AccountingApi {
|
|
|
6203
6203
|
* @param bankTransactionID Xero generated unique identifier for a bank transaction
|
|
6204
6204
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
6205
6205
|
*/
|
|
6206
|
-
getBankTransaction(
|
|
6207
|
-
return __awaiter(this,
|
|
6206
|
+
getBankTransaction(xeroTenantId, bankTransactionID, unitdp, options = { headers: {} }) {
|
|
6207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6208
6208
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}'
|
|
6209
6209
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)));
|
|
6210
6210
|
let localVarQueryParameters = {};
|
|
@@ -6280,8 +6280,8 @@ class AccountingApi {
|
|
|
6280
6280
|
* @param fileName Name of the attachment
|
|
6281
6281
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
6282
6282
|
*/
|
|
6283
|
-
getBankTransactionAttachmentByFileName(
|
|
6284
|
-
return __awaiter(this,
|
|
6283
|
+
getBankTransactionAttachmentByFileName(xeroTenantId, bankTransactionID, fileName, contentType, options = { headers: {} }) {
|
|
6284
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6285
6285
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'
|
|
6286
6286
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)))
|
|
6287
6287
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -6364,8 +6364,8 @@ class AccountingApi {
|
|
|
6364
6364
|
* @param attachmentID Unique identifier for Attachment object
|
|
6365
6365
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
6366
6366
|
*/
|
|
6367
|
-
getBankTransactionAttachmentById(
|
|
6368
|
-
return __awaiter(this,
|
|
6367
|
+
getBankTransactionAttachmentById(xeroTenantId, bankTransactionID, attachmentID, contentType, options = { headers: {} }) {
|
|
6368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6369
6369
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/Attachments/{AttachmentID}'
|
|
6370
6370
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)))
|
|
6371
6371
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -6446,8 +6446,8 @@ class AccountingApi {
|
|
|
6446
6446
|
* @param xeroTenantId Xero identifier for Tenant
|
|
6447
6447
|
* @param bankTransactionID Xero generated unique identifier for a bank transaction
|
|
6448
6448
|
*/
|
|
6449
|
-
getBankTransactionAttachments(
|
|
6450
|
-
return __awaiter(this,
|
|
6449
|
+
getBankTransactionAttachments(xeroTenantId, bankTransactionID, options = { headers: {} }) {
|
|
6450
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6451
6451
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/Attachments'
|
|
6452
6452
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)));
|
|
6453
6453
|
let localVarQueryParameters = {};
|
|
@@ -6523,8 +6523,8 @@ class AccountingApi {
|
|
|
6523
6523
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
6524
6524
|
* @param pageSize Number of records to retrieve per page
|
|
6525
6525
|
*/
|
|
6526
|
-
getBankTransactions(
|
|
6527
|
-
return __awaiter(this,
|
|
6526
|
+
getBankTransactions(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, options = { headers: {} }) {
|
|
6527
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6528
6528
|
const localVarPath = this.basePath + '/BankTransactions';
|
|
6529
6529
|
let localVarQueryParameters = {};
|
|
6530
6530
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -6606,8 +6606,8 @@ class AccountingApi {
|
|
|
6606
6606
|
* @param xeroTenantId Xero identifier for Tenant
|
|
6607
6607
|
* @param bankTransactionID Xero generated unique identifier for a bank transaction
|
|
6608
6608
|
*/
|
|
6609
|
-
getBankTransactionsHistory(
|
|
6610
|
-
return __awaiter(this,
|
|
6609
|
+
getBankTransactionsHistory(xeroTenantId, bankTransactionID, options = { headers: {} }) {
|
|
6610
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6611
6611
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/History'
|
|
6612
6612
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)));
|
|
6613
6613
|
let localVarQueryParameters = {};
|
|
@@ -6678,8 +6678,8 @@ class AccountingApi {
|
|
|
6678
6678
|
* @param xeroTenantId Xero identifier for Tenant
|
|
6679
6679
|
* @param bankTransferID Xero generated unique identifier for a bank transfer
|
|
6680
6680
|
*/
|
|
6681
|
-
getBankTransfer(
|
|
6682
|
-
return __awaiter(this,
|
|
6681
|
+
getBankTransfer(xeroTenantId, bankTransferID, options = { headers: {} }) {
|
|
6682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6683
6683
|
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}'
|
|
6684
6684
|
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)));
|
|
6685
6685
|
let localVarQueryParameters = {};
|
|
@@ -6752,8 +6752,8 @@ class AccountingApi {
|
|
|
6752
6752
|
* @param fileName Name of the attachment
|
|
6753
6753
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
6754
6754
|
*/
|
|
6755
|
-
getBankTransferAttachmentByFileName(
|
|
6756
|
-
return __awaiter(this,
|
|
6755
|
+
getBankTransferAttachmentByFileName(xeroTenantId, bankTransferID, fileName, contentType, options = { headers: {} }) {
|
|
6756
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6757
6757
|
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/Attachments/{FileName}'
|
|
6758
6758
|
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)))
|
|
6759
6759
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -6836,8 +6836,8 @@ class AccountingApi {
|
|
|
6836
6836
|
* @param attachmentID Unique identifier for Attachment object
|
|
6837
6837
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
6838
6838
|
*/
|
|
6839
|
-
getBankTransferAttachmentById(
|
|
6840
|
-
return __awaiter(this,
|
|
6839
|
+
getBankTransferAttachmentById(xeroTenantId, bankTransferID, attachmentID, contentType, options = { headers: {} }) {
|
|
6840
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6841
6841
|
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/Attachments/{AttachmentID}'
|
|
6842
6842
|
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)))
|
|
6843
6843
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -6918,8 +6918,8 @@ class AccountingApi {
|
|
|
6918
6918
|
* @param xeroTenantId Xero identifier for Tenant
|
|
6919
6919
|
* @param bankTransferID Xero generated unique identifier for a bank transfer
|
|
6920
6920
|
*/
|
|
6921
|
-
getBankTransferAttachments(
|
|
6922
|
-
return __awaiter(this,
|
|
6921
|
+
getBankTransferAttachments(xeroTenantId, bankTransferID, options = { headers: {} }) {
|
|
6922
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6923
6923
|
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/Attachments'
|
|
6924
6924
|
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)));
|
|
6925
6925
|
let localVarQueryParameters = {};
|
|
@@ -6990,8 +6990,8 @@ class AccountingApi {
|
|
|
6990
6990
|
* @param xeroTenantId Xero identifier for Tenant
|
|
6991
6991
|
* @param bankTransferID Xero generated unique identifier for a bank transfer
|
|
6992
6992
|
*/
|
|
6993
|
-
getBankTransferHistory(
|
|
6994
|
-
return __awaiter(this,
|
|
6993
|
+
getBankTransferHistory(xeroTenantId, bankTransferID, options = { headers: {} }) {
|
|
6994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
6995
6995
|
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/History'
|
|
6996
6996
|
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)));
|
|
6997
6997
|
let localVarQueryParameters = {};
|
|
@@ -7064,8 +7064,8 @@ class AccountingApi {
|
|
|
7064
7064
|
* @param where Filter by an any element
|
|
7065
7065
|
* @param order Order by an any element
|
|
7066
7066
|
*/
|
|
7067
|
-
getBankTransfers(
|
|
7068
|
-
return __awaiter(this,
|
|
7067
|
+
getBankTransfers(xeroTenantId, ifModifiedSince, where, order, options = { headers: {} }) {
|
|
7068
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7069
7069
|
const localVarPath = this.basePath + '/BankTransfers';
|
|
7070
7070
|
let localVarQueryParameters = {};
|
|
7071
7071
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -7138,8 +7138,8 @@ class AccountingApi {
|
|
|
7138
7138
|
* @param xeroTenantId Xero identifier for Tenant
|
|
7139
7139
|
* @param batchPaymentID Unique identifier for BatchPayment
|
|
7140
7140
|
*/
|
|
7141
|
-
getBatchPayment(
|
|
7142
|
-
return __awaiter(this,
|
|
7141
|
+
getBatchPayment(xeroTenantId, batchPaymentID, options = { headers: {} }) {
|
|
7142
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7143
7143
|
const localVarPath = this.basePath + '/BatchPayments/{BatchPaymentID}'
|
|
7144
7144
|
.replace('{' + 'BatchPaymentID' + '}', encodeURIComponent(String(batchPaymentID)));
|
|
7145
7145
|
let localVarQueryParameters = {};
|
|
@@ -7210,8 +7210,8 @@ class AccountingApi {
|
|
|
7210
7210
|
* @param xeroTenantId Xero identifier for Tenant
|
|
7211
7211
|
* @param batchPaymentID Unique identifier for BatchPayment
|
|
7212
7212
|
*/
|
|
7213
|
-
getBatchPaymentHistory(
|
|
7214
|
-
return __awaiter(this,
|
|
7213
|
+
getBatchPaymentHistory(xeroTenantId, batchPaymentID, options = { headers: {} }) {
|
|
7214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7215
7215
|
const localVarPath = this.basePath + '/BatchPayments/{BatchPaymentID}/History'
|
|
7216
7216
|
.replace('{' + 'BatchPaymentID' + '}', encodeURIComponent(String(batchPaymentID)));
|
|
7217
7217
|
let localVarQueryParameters = {};
|
|
@@ -7284,8 +7284,8 @@ class AccountingApi {
|
|
|
7284
7284
|
* @param where Filter by an any element
|
|
7285
7285
|
* @param order Order by an any element
|
|
7286
7286
|
*/
|
|
7287
|
-
getBatchPayments(
|
|
7288
|
-
return __awaiter(this,
|
|
7287
|
+
getBatchPayments(xeroTenantId, ifModifiedSince, where, order, options = { headers: {} }) {
|
|
7288
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7289
7289
|
const localVarPath = this.basePath + '/BatchPayments';
|
|
7290
7290
|
let localVarQueryParameters = {};
|
|
7291
7291
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -7358,8 +7358,8 @@ class AccountingApi {
|
|
|
7358
7358
|
* @param xeroTenantId Xero identifier for Tenant
|
|
7359
7359
|
* @param brandingThemeID Unique identifier for a Branding Theme
|
|
7360
7360
|
*/
|
|
7361
|
-
getBrandingTheme(
|
|
7362
|
-
return __awaiter(this,
|
|
7361
|
+
getBrandingTheme(xeroTenantId, brandingThemeID, options = { headers: {} }) {
|
|
7362
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7363
7363
|
const localVarPath = this.basePath + '/BrandingThemes/{BrandingThemeID}'
|
|
7364
7364
|
.replace('{' + 'BrandingThemeID' + '}', encodeURIComponent(String(brandingThemeID)));
|
|
7365
7365
|
let localVarQueryParameters = {};
|
|
@@ -7430,8 +7430,8 @@ class AccountingApi {
|
|
|
7430
7430
|
* @param xeroTenantId Xero identifier for Tenant
|
|
7431
7431
|
* @param brandingThemeID Unique identifier for a Branding Theme
|
|
7432
7432
|
*/
|
|
7433
|
-
getBrandingThemePaymentServices(
|
|
7434
|
-
return __awaiter(this,
|
|
7433
|
+
getBrandingThemePaymentServices(xeroTenantId, brandingThemeID, options = { headers: {} }) {
|
|
7434
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7435
7435
|
const localVarPath = this.basePath + '/BrandingThemes/{BrandingThemeID}/PaymentServices'
|
|
7436
7436
|
.replace('{' + 'BrandingThemeID' + '}', encodeURIComponent(String(brandingThemeID)));
|
|
7437
7437
|
let localVarQueryParameters = {};
|
|
@@ -7501,8 +7501,8 @@ class AccountingApi {
|
|
|
7501
7501
|
* @summary Retrieves all the branding themes
|
|
7502
7502
|
* @param xeroTenantId Xero identifier for Tenant
|
|
7503
7503
|
*/
|
|
7504
|
-
getBrandingThemes(
|
|
7505
|
-
return __awaiter(this,
|
|
7504
|
+
getBrandingThemes(xeroTenantId, options = { headers: {} }) {
|
|
7505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7506
7506
|
const localVarPath = this.basePath + '/BrandingThemes';
|
|
7507
7507
|
let localVarQueryParameters = {};
|
|
7508
7508
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -7570,8 +7570,8 @@ class AccountingApi {
|
|
|
7570
7570
|
* @param dateTo Filter by start date
|
|
7571
7571
|
* @param dateFrom Filter by end date
|
|
7572
7572
|
*/
|
|
7573
|
-
getBudget(
|
|
7574
|
-
return __awaiter(this,
|
|
7573
|
+
getBudget(xeroTenantId, budgetID, dateTo, dateFrom, options = { headers: {} }) {
|
|
7574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7575
7575
|
const localVarPath = this.basePath + '/Budgets/{BudgetID}'
|
|
7576
7576
|
.replace('{' + 'BudgetID' + '}', encodeURIComponent(String(budgetID)));
|
|
7577
7577
|
let localVarQueryParameters = {};
|
|
@@ -7650,8 +7650,8 @@ class AccountingApi {
|
|
|
7650
7650
|
* @param dateTo Filter by start date
|
|
7651
7651
|
* @param dateFrom Filter by end date
|
|
7652
7652
|
*/
|
|
7653
|
-
getBudgets(
|
|
7654
|
-
return __awaiter(this,
|
|
7653
|
+
getBudgets(xeroTenantId, iDs, dateTo, dateFrom, options = { headers: {} }) {
|
|
7654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7655
7655
|
const localVarPath = this.basePath + '/Budgets';
|
|
7656
7656
|
let localVarQueryParameters = {};
|
|
7657
7657
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -7726,8 +7726,8 @@ class AccountingApi {
|
|
|
7726
7726
|
* @param xeroTenantId Xero identifier for Tenant
|
|
7727
7727
|
* @param contactID Unique identifier for a Contact
|
|
7728
7728
|
*/
|
|
7729
|
-
getContact(
|
|
7730
|
-
return __awaiter(this,
|
|
7729
|
+
getContact(xeroTenantId, contactID, options = { headers: {} }) {
|
|
7730
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7731
7731
|
const localVarPath = this.basePath + '/Contacts/{ContactID}'
|
|
7732
7732
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)));
|
|
7733
7733
|
let localVarQueryParameters = {};
|
|
@@ -7800,8 +7800,8 @@ class AccountingApi {
|
|
|
7800
7800
|
* @param fileName Name of the attachment
|
|
7801
7801
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
7802
7802
|
*/
|
|
7803
|
-
getContactAttachmentByFileName(
|
|
7804
|
-
return __awaiter(this,
|
|
7803
|
+
getContactAttachmentByFileName(xeroTenantId, contactID, fileName, contentType, options = { headers: {} }) {
|
|
7804
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7805
7805
|
const localVarPath = this.basePath + '/Contacts/{ContactID}/Attachments/{FileName}'
|
|
7806
7806
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)))
|
|
7807
7807
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -7884,8 +7884,8 @@ class AccountingApi {
|
|
|
7884
7884
|
* @param attachmentID Unique identifier for Attachment object
|
|
7885
7885
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
7886
7886
|
*/
|
|
7887
|
-
getContactAttachmentById(
|
|
7888
|
-
return __awaiter(this,
|
|
7887
|
+
getContactAttachmentById(xeroTenantId, contactID, attachmentID, contentType, options = { headers: {} }) {
|
|
7888
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7889
7889
|
const localVarPath = this.basePath + '/Contacts/{ContactID}/Attachments/{AttachmentID}'
|
|
7890
7890
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)))
|
|
7891
7891
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -7966,8 +7966,8 @@ class AccountingApi {
|
|
|
7966
7966
|
* @param xeroTenantId Xero identifier for Tenant
|
|
7967
7967
|
* @param contactID Unique identifier for a Contact
|
|
7968
7968
|
*/
|
|
7969
|
-
getContactAttachments(
|
|
7970
|
-
return __awaiter(this,
|
|
7969
|
+
getContactAttachments(xeroTenantId, contactID, options = { headers: {} }) {
|
|
7970
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7971
7971
|
const localVarPath = this.basePath + '/Contacts/{ContactID}/Attachments'
|
|
7972
7972
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)));
|
|
7973
7973
|
let localVarQueryParameters = {};
|
|
@@ -8038,8 +8038,8 @@ class AccountingApi {
|
|
|
8038
8038
|
* @param xeroTenantId Xero identifier for Tenant
|
|
8039
8039
|
* @param contactNumber This field is read only on the Xero contact screen, used to identify contacts in external systems (max length = 50).
|
|
8040
8040
|
*/
|
|
8041
|
-
getContactByContactNumber(
|
|
8042
|
-
return __awaiter(this,
|
|
8041
|
+
getContactByContactNumber(xeroTenantId, contactNumber, options = { headers: {} }) {
|
|
8042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8043
8043
|
const localVarPath = this.basePath + '/Contacts/{ContactNumber}'
|
|
8044
8044
|
.replace('{' + 'ContactNumber' + '}', encodeURIComponent(String(contactNumber)));
|
|
8045
8045
|
let localVarQueryParameters = {};
|
|
@@ -8110,8 +8110,8 @@ class AccountingApi {
|
|
|
8110
8110
|
* @param xeroTenantId Xero identifier for Tenant
|
|
8111
8111
|
* @param contactID Unique identifier for a Contact
|
|
8112
8112
|
*/
|
|
8113
|
-
getContactCISSettings(
|
|
8114
|
-
return __awaiter(this,
|
|
8113
|
+
getContactCISSettings(xeroTenantId, contactID, options = { headers: {} }) {
|
|
8114
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8115
8115
|
const localVarPath = this.basePath + '/Contacts/{ContactID}/CISSettings'
|
|
8116
8116
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)));
|
|
8117
8117
|
let localVarQueryParameters = {};
|
|
@@ -8182,8 +8182,8 @@ class AccountingApi {
|
|
|
8182
8182
|
* @param xeroTenantId Xero identifier for Tenant
|
|
8183
8183
|
* @param contactGroupID Unique identifier for a Contact Group
|
|
8184
8184
|
*/
|
|
8185
|
-
getContactGroup(
|
|
8186
|
-
return __awaiter(this,
|
|
8185
|
+
getContactGroup(xeroTenantId, contactGroupID, options = { headers: {} }) {
|
|
8186
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8187
8187
|
const localVarPath = this.basePath + '/ContactGroups/{ContactGroupID}'
|
|
8188
8188
|
.replace('{' + 'ContactGroupID' + '}', encodeURIComponent(String(contactGroupID)));
|
|
8189
8189
|
let localVarQueryParameters = {};
|
|
@@ -8255,8 +8255,8 @@ class AccountingApi {
|
|
|
8255
8255
|
* @param where Filter by an any element
|
|
8256
8256
|
* @param order Order by an any element
|
|
8257
8257
|
*/
|
|
8258
|
-
getContactGroups(
|
|
8259
|
-
return __awaiter(this,
|
|
8258
|
+
getContactGroups(xeroTenantId, where, order, options = { headers: {} }) {
|
|
8259
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8260
8260
|
const localVarPath = this.basePath + '/ContactGroups';
|
|
8261
8261
|
let localVarQueryParameters = {};
|
|
8262
8262
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -8328,8 +8328,8 @@ class AccountingApi {
|
|
|
8328
8328
|
* @param xeroTenantId Xero identifier for Tenant
|
|
8329
8329
|
* @param contactID Unique identifier for a Contact
|
|
8330
8330
|
*/
|
|
8331
|
-
getContactHistory(
|
|
8332
|
-
return __awaiter(this,
|
|
8331
|
+
getContactHistory(xeroTenantId, contactID, options = { headers: {} }) {
|
|
8332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8333
8333
|
const localVarPath = this.basePath + '/Contacts/{ContactID}/History'
|
|
8334
8334
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)));
|
|
8335
8335
|
let localVarQueryParameters = {};
|
|
@@ -8408,8 +8408,8 @@ class AccountingApi {
|
|
|
8408
8408
|
* @param searchTerm Search parameter that performs a case-insensitive text search across the Name, FirstName, LastName, ContactNumber and EmailAddress fields.
|
|
8409
8409
|
* @param pageSize Number of records to retrieve per page
|
|
8410
8410
|
*/
|
|
8411
|
-
getContacts(
|
|
8412
|
-
return __awaiter(this,
|
|
8411
|
+
getContacts(xeroTenantId, ifModifiedSince, where, order, iDs, page, includeArchived, summaryOnly, searchTerm, pageSize, options = { headers: {} }) {
|
|
8412
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8413
8413
|
const localVarPath = this.basePath + '/Contacts';
|
|
8414
8414
|
let localVarQueryParameters = {};
|
|
8415
8415
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -8501,8 +8501,8 @@ class AccountingApi {
|
|
|
8501
8501
|
* @param creditNoteID Unique identifier for a Credit Note
|
|
8502
8502
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
8503
8503
|
*/
|
|
8504
|
-
getCreditNote(
|
|
8505
|
-
return __awaiter(this,
|
|
8504
|
+
getCreditNote(xeroTenantId, creditNoteID, unitdp, options = { headers: {} }) {
|
|
8505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8506
8506
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}'
|
|
8507
8507
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)));
|
|
8508
8508
|
let localVarQueryParameters = {};
|
|
@@ -8576,8 +8576,8 @@ class AccountingApi {
|
|
|
8576
8576
|
* @param xeroTenantId Xero identifier for Tenant
|
|
8577
8577
|
* @param creditNoteID Unique identifier for a Credit Note
|
|
8578
8578
|
*/
|
|
8579
|
-
getCreditNoteAsPdf(
|
|
8580
|
-
return __awaiter(this,
|
|
8579
|
+
getCreditNoteAsPdf(xeroTenantId, creditNoteID, options = { headers: {} }) {
|
|
8580
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8581
8581
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}'
|
|
8582
8582
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)));
|
|
8583
8583
|
let localVarQueryParameters = {};
|
|
@@ -8650,8 +8650,8 @@ class AccountingApi {
|
|
|
8650
8650
|
* @param fileName Name of the attachment
|
|
8651
8651
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
8652
8652
|
*/
|
|
8653
|
-
getCreditNoteAttachmentByFileName(
|
|
8654
|
-
return __awaiter(this,
|
|
8653
|
+
getCreditNoteAttachmentByFileName(xeroTenantId, creditNoteID, fileName, contentType, options = { headers: {} }) {
|
|
8654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8655
8655
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'
|
|
8656
8656
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)))
|
|
8657
8657
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -8734,8 +8734,8 @@ class AccountingApi {
|
|
|
8734
8734
|
* @param attachmentID Unique identifier for Attachment object
|
|
8735
8735
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
8736
8736
|
*/
|
|
8737
|
-
getCreditNoteAttachmentById(
|
|
8738
|
-
return __awaiter(this,
|
|
8737
|
+
getCreditNoteAttachmentById(xeroTenantId, creditNoteID, attachmentID, contentType, options = { headers: {} }) {
|
|
8738
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8739
8739
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Attachments/{AttachmentID}'
|
|
8740
8740
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)))
|
|
8741
8741
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -8816,8 +8816,8 @@ class AccountingApi {
|
|
|
8816
8816
|
* @param xeroTenantId Xero identifier for Tenant
|
|
8817
8817
|
* @param creditNoteID Unique identifier for a Credit Note
|
|
8818
8818
|
*/
|
|
8819
|
-
getCreditNoteAttachments(
|
|
8820
|
-
return __awaiter(this,
|
|
8819
|
+
getCreditNoteAttachments(xeroTenantId, creditNoteID, options = { headers: {} }) {
|
|
8820
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8821
8821
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Attachments'
|
|
8822
8822
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)));
|
|
8823
8823
|
let localVarQueryParameters = {};
|
|
@@ -8888,8 +8888,8 @@ class AccountingApi {
|
|
|
8888
8888
|
* @param xeroTenantId Xero identifier for Tenant
|
|
8889
8889
|
* @param creditNoteID Unique identifier for a Credit Note
|
|
8890
8890
|
*/
|
|
8891
|
-
getCreditNoteHistory(
|
|
8892
|
-
return __awaiter(this,
|
|
8891
|
+
getCreditNoteHistory(xeroTenantId, creditNoteID, options = { headers: {} }) {
|
|
8892
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8893
8893
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/History'
|
|
8894
8894
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)));
|
|
8895
8895
|
let localVarQueryParameters = {};
|
|
@@ -8965,8 +8965,8 @@ class AccountingApi {
|
|
|
8965
8965
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
8966
8966
|
* @param pageSize Number of records to retrieve per page
|
|
8967
8967
|
*/
|
|
8968
|
-
getCreditNotes(
|
|
8969
|
-
return __awaiter(this,
|
|
8968
|
+
getCreditNotes(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, options = { headers: {} }) {
|
|
8969
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8970
8970
|
const localVarPath = this.basePath + '/CreditNotes';
|
|
8971
8971
|
let localVarQueryParameters = {};
|
|
8972
8972
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -9049,8 +9049,8 @@ class AccountingApi {
|
|
|
9049
9049
|
* @param where Filter by an any element
|
|
9050
9050
|
* @param order Order by an any element
|
|
9051
9051
|
*/
|
|
9052
|
-
getCurrencies(
|
|
9053
|
-
return __awaiter(this,
|
|
9052
|
+
getCurrencies(xeroTenantId, where, order, options = { headers: {} }) {
|
|
9053
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9054
9054
|
const localVarPath = this.basePath + '/Currencies';
|
|
9055
9055
|
let localVarQueryParameters = {};
|
|
9056
9056
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -9122,8 +9122,8 @@ class AccountingApi {
|
|
|
9122
9122
|
* @param xeroTenantId Xero identifier for Tenant
|
|
9123
9123
|
* @param employeeID Unique identifier for a Employee
|
|
9124
9124
|
*/
|
|
9125
|
-
getEmployee(
|
|
9126
|
-
return __awaiter(this,
|
|
9125
|
+
getEmployee(xeroTenantId, employeeID, options = { headers: {} }) {
|
|
9126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9127
9127
|
const localVarPath = this.basePath + '/Employees/{EmployeeID}'
|
|
9128
9128
|
.replace('{' + 'EmployeeID' + '}', encodeURIComponent(String(employeeID)));
|
|
9129
9129
|
let localVarQueryParameters = {};
|
|
@@ -9196,8 +9196,8 @@ class AccountingApi {
|
|
|
9196
9196
|
* @param where Filter by an any element
|
|
9197
9197
|
* @param order Order by an any element
|
|
9198
9198
|
*/
|
|
9199
|
-
getEmployees(
|
|
9200
|
-
return __awaiter(this,
|
|
9199
|
+
getEmployees(xeroTenantId, ifModifiedSince, where, order, options = { headers: {} }) {
|
|
9200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9201
9201
|
const localVarPath = this.basePath + '/Employees';
|
|
9202
9202
|
let localVarQueryParameters = {};
|
|
9203
9203
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -9270,8 +9270,8 @@ class AccountingApi {
|
|
|
9270
9270
|
* @param xeroTenantId Xero identifier for Tenant
|
|
9271
9271
|
* @param expenseClaimID Unique identifier for a ExpenseClaim
|
|
9272
9272
|
*/
|
|
9273
|
-
getExpenseClaim(
|
|
9274
|
-
return __awaiter(this,
|
|
9273
|
+
getExpenseClaim(xeroTenantId, expenseClaimID, options = { headers: {} }) {
|
|
9274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9275
9275
|
const localVarPath = this.basePath + '/ExpenseClaims/{ExpenseClaimID}'
|
|
9276
9276
|
.replace('{' + 'ExpenseClaimID' + '}', encodeURIComponent(String(expenseClaimID)));
|
|
9277
9277
|
let localVarQueryParameters = {};
|
|
@@ -9342,8 +9342,8 @@ class AccountingApi {
|
|
|
9342
9342
|
* @param xeroTenantId Xero identifier for Tenant
|
|
9343
9343
|
* @param expenseClaimID Unique identifier for a ExpenseClaim
|
|
9344
9344
|
*/
|
|
9345
|
-
getExpenseClaimHistory(
|
|
9346
|
-
return __awaiter(this,
|
|
9345
|
+
getExpenseClaimHistory(xeroTenantId, expenseClaimID, options = { headers: {} }) {
|
|
9346
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9347
9347
|
const localVarPath = this.basePath + '/ExpenseClaims/{ExpenseClaimID}/History'
|
|
9348
9348
|
.replace('{' + 'ExpenseClaimID' + '}', encodeURIComponent(String(expenseClaimID)));
|
|
9349
9349
|
let localVarQueryParameters = {};
|
|
@@ -9416,8 +9416,8 @@ class AccountingApi {
|
|
|
9416
9416
|
* @param where Filter by an any element
|
|
9417
9417
|
* @param order Order by an any element
|
|
9418
9418
|
*/
|
|
9419
|
-
getExpenseClaims(
|
|
9420
|
-
return __awaiter(this,
|
|
9419
|
+
getExpenseClaims(xeroTenantId, ifModifiedSince, where, order, options = { headers: {} }) {
|
|
9420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9421
9421
|
const localVarPath = this.basePath + '/ExpenseClaims';
|
|
9422
9422
|
let localVarQueryParameters = {};
|
|
9423
9423
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -9491,8 +9491,8 @@ class AccountingApi {
|
|
|
9491
9491
|
* @param invoiceID Unique identifier for an Invoice
|
|
9492
9492
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
9493
9493
|
*/
|
|
9494
|
-
getInvoice(
|
|
9495
|
-
return __awaiter(this,
|
|
9494
|
+
getInvoice(xeroTenantId, invoiceID, unitdp, options = { headers: {} }) {
|
|
9495
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9496
9496
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}'
|
|
9497
9497
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
9498
9498
|
let localVarQueryParameters = {};
|
|
@@ -9566,8 +9566,8 @@ class AccountingApi {
|
|
|
9566
9566
|
* @param xeroTenantId Xero identifier for Tenant
|
|
9567
9567
|
* @param invoiceID Unique identifier for an Invoice
|
|
9568
9568
|
*/
|
|
9569
|
-
getInvoiceAsPdf(
|
|
9570
|
-
return __awaiter(this,
|
|
9569
|
+
getInvoiceAsPdf(xeroTenantId, invoiceID, options = { headers: {} }) {
|
|
9570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9571
9571
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}'
|
|
9572
9572
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
9573
9573
|
let localVarQueryParameters = {};
|
|
@@ -9640,8 +9640,8 @@ class AccountingApi {
|
|
|
9640
9640
|
* @param fileName Name of the attachment
|
|
9641
9641
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
9642
9642
|
*/
|
|
9643
|
-
getInvoiceAttachmentByFileName(
|
|
9644
|
-
return __awaiter(this,
|
|
9643
|
+
getInvoiceAttachmentByFileName(xeroTenantId, invoiceID, fileName, contentType, options = { headers: {} }) {
|
|
9644
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9645
9645
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/Attachments/{FileName}'
|
|
9646
9646
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)))
|
|
9647
9647
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -9724,8 +9724,8 @@ class AccountingApi {
|
|
|
9724
9724
|
* @param attachmentID Unique identifier for Attachment object
|
|
9725
9725
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
9726
9726
|
*/
|
|
9727
|
-
getInvoiceAttachmentById(
|
|
9728
|
-
return __awaiter(this,
|
|
9727
|
+
getInvoiceAttachmentById(xeroTenantId, invoiceID, attachmentID, contentType, options = { headers: {} }) {
|
|
9728
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9729
9729
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/Attachments/{AttachmentID}'
|
|
9730
9730
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)))
|
|
9731
9731
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -9806,8 +9806,8 @@ class AccountingApi {
|
|
|
9806
9806
|
* @param xeroTenantId Xero identifier for Tenant
|
|
9807
9807
|
* @param invoiceID Unique identifier for an Invoice
|
|
9808
9808
|
*/
|
|
9809
|
-
getInvoiceAttachments(
|
|
9810
|
-
return __awaiter(this,
|
|
9809
|
+
getInvoiceAttachments(xeroTenantId, invoiceID, options = { headers: {} }) {
|
|
9810
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9811
9811
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/Attachments'
|
|
9812
9812
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
9813
9813
|
let localVarQueryParameters = {};
|
|
@@ -9878,8 +9878,8 @@ class AccountingApi {
|
|
|
9878
9878
|
* @param xeroTenantId Xero identifier for Tenant
|
|
9879
9879
|
* @param invoiceID Unique identifier for an Invoice
|
|
9880
9880
|
*/
|
|
9881
|
-
getInvoiceHistory(
|
|
9882
|
-
return __awaiter(this,
|
|
9881
|
+
getInvoiceHistory(xeroTenantId, invoiceID, options = { headers: {} }) {
|
|
9882
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9883
9883
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/History'
|
|
9884
9884
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
9885
9885
|
let localVarQueryParameters = {};
|
|
@@ -9949,8 +9949,8 @@ class AccountingApi {
|
|
|
9949
9949
|
* @summary Retrieves invoice reminder settings
|
|
9950
9950
|
* @param xeroTenantId Xero identifier for Tenant
|
|
9951
9951
|
*/
|
|
9952
|
-
getInvoiceReminders(
|
|
9953
|
-
return __awaiter(this,
|
|
9952
|
+
getInvoiceReminders(xeroTenantId, options = { headers: {} }) {
|
|
9953
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9954
9954
|
const localVarPath = this.basePath + '/InvoiceReminders/Settings';
|
|
9955
9955
|
let localVarQueryParameters = {};
|
|
9956
9956
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -10029,8 +10029,8 @@ class AccountingApi {
|
|
|
10029
10029
|
* @param pageSize Number of records to retrieve per page
|
|
10030
10030
|
* @param searchTerm Search parameter that performs a case-insensitive text search across the fields e.g. InvoiceNumber, Reference.
|
|
10031
10031
|
*/
|
|
10032
|
-
getInvoices(
|
|
10033
|
-
return __awaiter(this,
|
|
10032
|
+
getInvoices(xeroTenantId, ifModifiedSince, where, order, iDs, invoiceNumbers, contactIDs, statuses, page, includeArchived, createdByMyApp, unitdp, summaryOnly, pageSize, searchTerm, options = { headers: {} }) {
|
|
10033
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10034
10034
|
const localVarPath = this.basePath + '/Invoices';
|
|
10035
10035
|
let localVarQueryParameters = {};
|
|
10036
10036
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -10137,8 +10137,8 @@ class AccountingApi {
|
|
|
10137
10137
|
* @param itemID Unique identifier for an Item
|
|
10138
10138
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
10139
10139
|
*/
|
|
10140
|
-
getItem(
|
|
10141
|
-
return __awaiter(this,
|
|
10140
|
+
getItem(xeroTenantId, itemID, unitdp, options = { headers: {} }) {
|
|
10141
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10142
10142
|
const localVarPath = this.basePath + '/Items/{ItemID}'
|
|
10143
10143
|
.replace('{' + 'ItemID' + '}', encodeURIComponent(String(itemID)));
|
|
10144
10144
|
let localVarQueryParameters = {};
|
|
@@ -10212,8 +10212,8 @@ class AccountingApi {
|
|
|
10212
10212
|
* @param xeroTenantId Xero identifier for Tenant
|
|
10213
10213
|
* @param itemID Unique identifier for an Item
|
|
10214
10214
|
*/
|
|
10215
|
-
getItemHistory(
|
|
10216
|
-
return __awaiter(this,
|
|
10215
|
+
getItemHistory(xeroTenantId, itemID, options = { headers: {} }) {
|
|
10216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10217
10217
|
const localVarPath = this.basePath + '/Items/{ItemID}/History'
|
|
10218
10218
|
.replace('{' + 'ItemID' + '}', encodeURIComponent(String(itemID)));
|
|
10219
10219
|
let localVarQueryParameters = {};
|
|
@@ -10287,8 +10287,8 @@ class AccountingApi {
|
|
|
10287
10287
|
* @param order Order by an any element
|
|
10288
10288
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
10289
10289
|
*/
|
|
10290
|
-
getItems(
|
|
10291
|
-
return __awaiter(this,
|
|
10290
|
+
getItems(xeroTenantId, ifModifiedSince, where, order, unitdp, options = { headers: {} }) {
|
|
10291
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10292
10292
|
const localVarPath = this.basePath + '/Items';
|
|
10293
10293
|
let localVarQueryParameters = {};
|
|
10294
10294
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -10364,8 +10364,8 @@ class AccountingApi {
|
|
|
10364
10364
|
* @param xeroTenantId Xero identifier for Tenant
|
|
10365
10365
|
* @param journalID Unique identifier for a Journal
|
|
10366
10366
|
*/
|
|
10367
|
-
getJournal(
|
|
10368
|
-
return __awaiter(this,
|
|
10367
|
+
getJournal(xeroTenantId, journalID, options = { headers: {} }) {
|
|
10368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10369
10369
|
const localVarPath = this.basePath + '/Journals/{JournalID}'
|
|
10370
10370
|
.replace('{' + 'JournalID' + '}', encodeURIComponent(String(journalID)));
|
|
10371
10371
|
let localVarQueryParameters = {};
|
|
@@ -10436,8 +10436,8 @@ class AccountingApi {
|
|
|
10436
10436
|
* @param xeroTenantId Xero identifier for Tenant
|
|
10437
10437
|
* @param journalNumber Number of a Journal
|
|
10438
10438
|
*/
|
|
10439
|
-
getJournalByNumber(
|
|
10440
|
-
return __awaiter(this,
|
|
10439
|
+
getJournalByNumber(xeroTenantId, journalNumber, options = { headers: {} }) {
|
|
10440
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10441
10441
|
const localVarPath = this.basePath + '/Journals/{JournalNumber}'
|
|
10442
10442
|
.replace('{' + 'JournalNumber' + '}', encodeURIComponent(String(journalNumber)));
|
|
10443
10443
|
let localVarQueryParameters = {};
|
|
@@ -10510,8 +10510,8 @@ class AccountingApi {
|
|
|
10510
10510
|
* @param offset Offset by a specified journal number. e.g. journals with a JournalNumber greater than the offset will be returned
|
|
10511
10511
|
* @param paymentsOnly Filter to retrieve journals on a cash basis. Journals are returned on an accrual basis by default.
|
|
10512
10512
|
*/
|
|
10513
|
-
getJournals(
|
|
10514
|
-
return __awaiter(this,
|
|
10513
|
+
getJournals(xeroTenantId, ifModifiedSince, offset, paymentsOnly, options = { headers: {} }) {
|
|
10514
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10515
10515
|
const localVarPath = this.basePath + '/Journals';
|
|
10516
10516
|
let localVarQueryParameters = {};
|
|
10517
10517
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -10584,8 +10584,8 @@ class AccountingApi {
|
|
|
10584
10584
|
* @param xeroTenantId Xero identifier for Tenant
|
|
10585
10585
|
* @param linkedTransactionID Unique identifier for a LinkedTransaction
|
|
10586
10586
|
*/
|
|
10587
|
-
getLinkedTransaction(
|
|
10588
|
-
return __awaiter(this,
|
|
10587
|
+
getLinkedTransaction(xeroTenantId, linkedTransactionID, options = { headers: {} }) {
|
|
10588
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10589
10589
|
const localVarPath = this.basePath + '/LinkedTransactions/{LinkedTransactionID}'
|
|
10590
10590
|
.replace('{' + 'LinkedTransactionID' + '}', encodeURIComponent(String(linkedTransactionID)));
|
|
10591
10591
|
let localVarQueryParameters = {};
|
|
@@ -10661,8 +10661,8 @@ class AccountingApi {
|
|
|
10661
10661
|
* @param status Filter by the combination of ContactID and Status. Get the linked transactions associated to a customer and with a status
|
|
10662
10662
|
* @param targetTransactionID Filter by the TargetTransactionID. Get all the linked transactions allocated to a particular ACCREC invoice
|
|
10663
10663
|
*/
|
|
10664
|
-
getLinkedTransactions(
|
|
10665
|
-
return __awaiter(this,
|
|
10664
|
+
getLinkedTransactions(xeroTenantId, page, linkedTransactionID, sourceTransactionID, contactID, status, targetTransactionID, options = { headers: {} }) {
|
|
10665
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10666
10666
|
const localVarPath = this.basePath + '/LinkedTransactions';
|
|
10667
10667
|
let localVarQueryParameters = {};
|
|
10668
10668
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -10746,8 +10746,8 @@ class AccountingApi {
|
|
|
10746
10746
|
* @param xeroTenantId Xero identifier for Tenant
|
|
10747
10747
|
* @param manualJournalID Unique identifier for a ManualJournal
|
|
10748
10748
|
*/
|
|
10749
|
-
getManualJournal(
|
|
10750
|
-
return __awaiter(this,
|
|
10749
|
+
getManualJournal(xeroTenantId, manualJournalID, options = { headers: {} }) {
|
|
10750
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10751
10751
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}'
|
|
10752
10752
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)));
|
|
10753
10753
|
let localVarQueryParameters = {};
|
|
@@ -10820,8 +10820,8 @@ class AccountingApi {
|
|
|
10820
10820
|
* @param fileName Name of the attachment
|
|
10821
10821
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
10822
10822
|
*/
|
|
10823
|
-
getManualJournalAttachmentByFileName(
|
|
10824
|
-
return __awaiter(this,
|
|
10823
|
+
getManualJournalAttachmentByFileName(xeroTenantId, manualJournalID, fileName, contentType, options = { headers: {} }) {
|
|
10824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10825
10825
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'
|
|
10826
10826
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)))
|
|
10827
10827
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -10904,8 +10904,8 @@ class AccountingApi {
|
|
|
10904
10904
|
* @param attachmentID Unique identifier for Attachment object
|
|
10905
10905
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
10906
10906
|
*/
|
|
10907
|
-
getManualJournalAttachmentById(
|
|
10908
|
-
return __awaiter(this,
|
|
10907
|
+
getManualJournalAttachmentById(xeroTenantId, manualJournalID, attachmentID, contentType, options = { headers: {} }) {
|
|
10908
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10909
10909
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/Attachments/{AttachmentID}'
|
|
10910
10910
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)))
|
|
10911
10911
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -10986,8 +10986,8 @@ class AccountingApi {
|
|
|
10986
10986
|
* @param xeroTenantId Xero identifier for Tenant
|
|
10987
10987
|
* @param manualJournalID Unique identifier for a ManualJournal
|
|
10988
10988
|
*/
|
|
10989
|
-
getManualJournalAttachments(
|
|
10990
|
-
return __awaiter(this,
|
|
10989
|
+
getManualJournalAttachments(xeroTenantId, manualJournalID, options = { headers: {} }) {
|
|
10990
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10991
10991
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/Attachments'
|
|
10992
10992
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)));
|
|
10993
10993
|
let localVarQueryParameters = {};
|
|
@@ -11062,8 +11062,8 @@ class AccountingApi {
|
|
|
11062
11062
|
* @param page e.g. page=1 – Up to 100 manual journals will be returned in a single API call with line items shown for each overpayment
|
|
11063
11063
|
* @param pageSize Number of records to retrieve per page
|
|
11064
11064
|
*/
|
|
11065
|
-
getManualJournals(
|
|
11066
|
-
return __awaiter(this,
|
|
11065
|
+
getManualJournals(xeroTenantId, ifModifiedSince, where, order, page, pageSize, options = { headers: {} }) {
|
|
11066
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11067
11067
|
const localVarPath = this.basePath + '/ManualJournals';
|
|
11068
11068
|
let localVarQueryParameters = {};
|
|
11069
11069
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -11142,8 +11142,8 @@ class AccountingApi {
|
|
|
11142
11142
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11143
11143
|
* @param manualJournalID Unique identifier for a ManualJournal
|
|
11144
11144
|
*/
|
|
11145
|
-
getManualJournalsHistory(
|
|
11146
|
-
return __awaiter(this,
|
|
11145
|
+
getManualJournalsHistory(xeroTenantId, manualJournalID, options = { headers: {} }) {
|
|
11146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11147
11147
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/History'
|
|
11148
11148
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)));
|
|
11149
11149
|
let localVarQueryParameters = {};
|
|
@@ -11214,8 +11214,8 @@ class AccountingApi {
|
|
|
11214
11214
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11215
11215
|
* @param invoiceID Unique identifier for an Invoice
|
|
11216
11216
|
*/
|
|
11217
|
-
getOnlineInvoice(
|
|
11218
|
-
return __awaiter(this,
|
|
11217
|
+
getOnlineInvoice(xeroTenantId, invoiceID, options = { headers: {} }) {
|
|
11218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11219
11219
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/OnlineInvoice'
|
|
11220
11220
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
11221
11221
|
let localVarQueryParameters = {};
|
|
@@ -11285,8 +11285,8 @@ class AccountingApi {
|
|
|
11285
11285
|
* @summary Retrieves a list of the key actions your app has permission to perform in the connected Xero organisation.
|
|
11286
11286
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11287
11287
|
*/
|
|
11288
|
-
getOrganisationActions(
|
|
11289
|
-
return __awaiter(this,
|
|
11288
|
+
getOrganisationActions(xeroTenantId, options = { headers: {} }) {
|
|
11289
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11290
11290
|
const localVarPath = this.basePath + '/Organisation/Actions';
|
|
11291
11291
|
let localVarQueryParameters = {};
|
|
11292
11292
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -11352,8 +11352,8 @@ class AccountingApi {
|
|
|
11352
11352
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11353
11353
|
* @param organisationID The unique Xero identifier for an organisation
|
|
11354
11354
|
*/
|
|
11355
|
-
getOrganisationCISSettings(
|
|
11356
|
-
return __awaiter(this,
|
|
11355
|
+
getOrganisationCISSettings(xeroTenantId, organisationID, options = { headers: {} }) {
|
|
11356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11357
11357
|
const localVarPath = this.basePath + '/Organisation/{OrganisationID}/CISSettings'
|
|
11358
11358
|
.replace('{' + 'OrganisationID' + '}', encodeURIComponent(String(organisationID)));
|
|
11359
11359
|
let localVarQueryParameters = {};
|
|
@@ -11423,8 +11423,8 @@ class AccountingApi {
|
|
|
11423
11423
|
* @summary Retrieves Xero organisation details
|
|
11424
11424
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11425
11425
|
*/
|
|
11426
|
-
getOrganisations(
|
|
11427
|
-
return __awaiter(this,
|
|
11426
|
+
getOrganisations(xeroTenantId, options = { headers: {} }) {
|
|
11427
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11428
11428
|
const localVarPath = this.basePath + '/Organisation';
|
|
11429
11429
|
let localVarQueryParameters = {};
|
|
11430
11430
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -11490,8 +11490,8 @@ class AccountingApi {
|
|
|
11490
11490
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11491
11491
|
* @param overpaymentID Unique identifier for a Overpayment
|
|
11492
11492
|
*/
|
|
11493
|
-
getOverpayment(
|
|
11494
|
-
return __awaiter(this,
|
|
11493
|
+
getOverpayment(xeroTenantId, overpaymentID, options = { headers: {} }) {
|
|
11494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11495
11495
|
const localVarPath = this.basePath + '/Overpayments/{OverpaymentID}'
|
|
11496
11496
|
.replace('{' + 'OverpaymentID' + '}', encodeURIComponent(String(overpaymentID)));
|
|
11497
11497
|
let localVarQueryParameters = {};
|
|
@@ -11562,8 +11562,8 @@ class AccountingApi {
|
|
|
11562
11562
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11563
11563
|
* @param overpaymentID Unique identifier for a Overpayment
|
|
11564
11564
|
*/
|
|
11565
|
-
getOverpaymentHistory(
|
|
11566
|
-
return __awaiter(this,
|
|
11565
|
+
getOverpaymentHistory(xeroTenantId, overpaymentID, options = { headers: {} }) {
|
|
11566
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11567
11567
|
const localVarPath = this.basePath + '/Overpayments/{OverpaymentID}/History'
|
|
11568
11568
|
.replace('{' + 'OverpaymentID' + '}', encodeURIComponent(String(overpaymentID)));
|
|
11569
11569
|
let localVarQueryParameters = {};
|
|
@@ -11639,8 +11639,8 @@ class AccountingApi {
|
|
|
11639
11639
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
11640
11640
|
* @param pageSize Number of records to retrieve per page
|
|
11641
11641
|
*/
|
|
11642
|
-
getOverpayments(
|
|
11643
|
-
return __awaiter(this,
|
|
11642
|
+
getOverpayments(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, options = { headers: {} }) {
|
|
11643
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11644
11644
|
const localVarPath = this.basePath + '/Overpayments';
|
|
11645
11645
|
let localVarQueryParameters = {};
|
|
11646
11646
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -11722,8 +11722,8 @@ class AccountingApi {
|
|
|
11722
11722
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11723
11723
|
* @param paymentID Unique identifier for a Payment
|
|
11724
11724
|
*/
|
|
11725
|
-
getPayment(
|
|
11726
|
-
return __awaiter(this,
|
|
11725
|
+
getPayment(xeroTenantId, paymentID, options = { headers: {} }) {
|
|
11726
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11727
11727
|
const localVarPath = this.basePath + '/Payments/{PaymentID}'
|
|
11728
11728
|
.replace('{' + 'PaymentID' + '}', encodeURIComponent(String(paymentID)));
|
|
11729
11729
|
let localVarQueryParameters = {};
|
|
@@ -11794,8 +11794,8 @@ class AccountingApi {
|
|
|
11794
11794
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11795
11795
|
* @param paymentID Unique identifier for a Payment
|
|
11796
11796
|
*/
|
|
11797
|
-
getPaymentHistory(
|
|
11798
|
-
return __awaiter(this,
|
|
11797
|
+
getPaymentHistory(xeroTenantId, paymentID, options = { headers: {} }) {
|
|
11798
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11799
11799
|
const localVarPath = this.basePath + '/Payments/{PaymentID}/History'
|
|
11800
11800
|
.replace('{' + 'PaymentID' + '}', encodeURIComponent(String(paymentID)));
|
|
11801
11801
|
let localVarQueryParameters = {};
|
|
@@ -11865,8 +11865,8 @@ class AccountingApi {
|
|
|
11865
11865
|
* @summary Retrieves payment services
|
|
11866
11866
|
* @param xeroTenantId Xero identifier for Tenant
|
|
11867
11867
|
*/
|
|
11868
|
-
getPaymentServices(
|
|
11869
|
-
return __awaiter(this,
|
|
11868
|
+
getPaymentServices(xeroTenantId, options = { headers: {} }) {
|
|
11869
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11870
11870
|
const localVarPath = this.basePath + '/PaymentServices';
|
|
11871
11871
|
let localVarQueryParameters = {};
|
|
11872
11872
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -11936,8 +11936,8 @@ class AccountingApi {
|
|
|
11936
11936
|
* @param page Up to 100 payments will be returned in a single API call
|
|
11937
11937
|
* @param pageSize Number of records to retrieve per page
|
|
11938
11938
|
*/
|
|
11939
|
-
getPayments(
|
|
11940
|
-
return __awaiter(this,
|
|
11939
|
+
getPayments(xeroTenantId, ifModifiedSince, where, order, page, pageSize, options = { headers: {} }) {
|
|
11940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
11941
11941
|
const localVarPath = this.basePath + '/Payments';
|
|
11942
11942
|
let localVarQueryParameters = {};
|
|
11943
11943
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -12016,8 +12016,8 @@ class AccountingApi {
|
|
|
12016
12016
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12017
12017
|
* @param prepaymentID Unique identifier for a PrePayment
|
|
12018
12018
|
*/
|
|
12019
|
-
getPrepayment(
|
|
12020
|
-
return __awaiter(this,
|
|
12019
|
+
getPrepayment(xeroTenantId, prepaymentID, options = { headers: {} }) {
|
|
12020
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12021
12021
|
const localVarPath = this.basePath + '/Prepayments/{PrepaymentID}'
|
|
12022
12022
|
.replace('{' + 'PrepaymentID' + '}', encodeURIComponent(String(prepaymentID)));
|
|
12023
12023
|
let localVarQueryParameters = {};
|
|
@@ -12088,8 +12088,8 @@ class AccountingApi {
|
|
|
12088
12088
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12089
12089
|
* @param prepaymentID Unique identifier for a PrePayment
|
|
12090
12090
|
*/
|
|
12091
|
-
getPrepaymentHistory(
|
|
12092
|
-
return __awaiter(this,
|
|
12091
|
+
getPrepaymentHistory(xeroTenantId, prepaymentID, options = { headers: {} }) {
|
|
12092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12093
12093
|
const localVarPath = this.basePath + '/Prepayments/{PrepaymentID}/History'
|
|
12094
12094
|
.replace('{' + 'PrepaymentID' + '}', encodeURIComponent(String(prepaymentID)));
|
|
12095
12095
|
let localVarQueryParameters = {};
|
|
@@ -12165,8 +12165,8 @@ class AccountingApi {
|
|
|
12165
12165
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
12166
12166
|
* @param pageSize Number of records to retrieve per page
|
|
12167
12167
|
*/
|
|
12168
|
-
getPrepayments(
|
|
12169
|
-
return __awaiter(this,
|
|
12168
|
+
getPrepayments(xeroTenantId, ifModifiedSince, where, order, page, unitdp, pageSize, options = { headers: {} }) {
|
|
12169
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12170
12170
|
const localVarPath = this.basePath + '/Prepayments';
|
|
12171
12171
|
let localVarQueryParameters = {};
|
|
12172
12172
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -12248,8 +12248,8 @@ class AccountingApi {
|
|
|
12248
12248
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12249
12249
|
* @param purchaseOrderID Unique identifier for an Purchase Order
|
|
12250
12250
|
*/
|
|
12251
|
-
getPurchaseOrder(
|
|
12252
|
-
return __awaiter(this,
|
|
12251
|
+
getPurchaseOrder(xeroTenantId, purchaseOrderID, options = { headers: {} }) {
|
|
12252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12253
12253
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}'
|
|
12254
12254
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)));
|
|
12255
12255
|
let localVarQueryParameters = {};
|
|
@@ -12320,8 +12320,8 @@ class AccountingApi {
|
|
|
12320
12320
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12321
12321
|
* @param purchaseOrderID Unique identifier for an Purchase Order
|
|
12322
12322
|
*/
|
|
12323
|
-
getPurchaseOrderAsPdf(
|
|
12324
|
-
return __awaiter(this,
|
|
12323
|
+
getPurchaseOrderAsPdf(xeroTenantId, purchaseOrderID, options = { headers: {} }) {
|
|
12324
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12325
12325
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}'
|
|
12326
12326
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)));
|
|
12327
12327
|
let localVarQueryParameters = {};
|
|
@@ -12394,8 +12394,8 @@ class AccountingApi {
|
|
|
12394
12394
|
* @param fileName Name of the attachment
|
|
12395
12395
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
12396
12396
|
*/
|
|
12397
|
-
getPurchaseOrderAttachmentByFileName(
|
|
12398
|
-
return __awaiter(this,
|
|
12397
|
+
getPurchaseOrderAttachmentByFileName(xeroTenantId, purchaseOrderID, fileName, contentType, options = { headers: {} }) {
|
|
12398
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12399
12399
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'
|
|
12400
12400
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)))
|
|
12401
12401
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -12478,8 +12478,8 @@ class AccountingApi {
|
|
|
12478
12478
|
* @param attachmentID Unique identifier for Attachment object
|
|
12479
12479
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
12480
12480
|
*/
|
|
12481
|
-
getPurchaseOrderAttachmentById(
|
|
12482
|
-
return __awaiter(this,
|
|
12481
|
+
getPurchaseOrderAttachmentById(xeroTenantId, purchaseOrderID, attachmentID, contentType, options = { headers: {} }) {
|
|
12482
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12483
12483
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/Attachments/{AttachmentID}'
|
|
12484
12484
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)))
|
|
12485
12485
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -12560,8 +12560,8 @@ class AccountingApi {
|
|
|
12560
12560
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12561
12561
|
* @param purchaseOrderID Unique identifier for an Purchase Order
|
|
12562
12562
|
*/
|
|
12563
|
-
getPurchaseOrderAttachments(
|
|
12564
|
-
return __awaiter(this,
|
|
12563
|
+
getPurchaseOrderAttachments(xeroTenantId, purchaseOrderID, options = { headers: {} }) {
|
|
12564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12565
12565
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/Attachments'
|
|
12566
12566
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)));
|
|
12567
12567
|
let localVarQueryParameters = {};
|
|
@@ -12632,8 +12632,8 @@ class AccountingApi {
|
|
|
12632
12632
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12633
12633
|
* @param purchaseOrderNumber Unique identifier for a PurchaseOrder
|
|
12634
12634
|
*/
|
|
12635
|
-
getPurchaseOrderByNumber(
|
|
12636
|
-
return __awaiter(this,
|
|
12635
|
+
getPurchaseOrderByNumber(xeroTenantId, purchaseOrderNumber, options = { headers: {} }) {
|
|
12636
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12637
12637
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderNumber}'
|
|
12638
12638
|
.replace('{' + 'PurchaseOrderNumber' + '}', encodeURIComponent(String(purchaseOrderNumber)));
|
|
12639
12639
|
let localVarQueryParameters = {};
|
|
@@ -12704,8 +12704,8 @@ class AccountingApi {
|
|
|
12704
12704
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12705
12705
|
* @param purchaseOrderID Unique identifier for an Purchase Order
|
|
12706
12706
|
*/
|
|
12707
|
-
getPurchaseOrderHistory(
|
|
12708
|
-
return __awaiter(this,
|
|
12707
|
+
getPurchaseOrderHistory(xeroTenantId, purchaseOrderID, options = { headers: {} }) {
|
|
12708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12709
12709
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/History'
|
|
12710
12710
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)));
|
|
12711
12711
|
let localVarQueryParameters = {};
|
|
@@ -12782,8 +12782,8 @@ class AccountingApi {
|
|
|
12782
12782
|
* @param page To specify a page, append the page parameter to the URL e.g. ?page=1. If there are 100 records in the response you will need to check if there is any more data by fetching the next page e.g ?page=2 and continuing this process until no more results are returned.
|
|
12783
12783
|
* @param pageSize Number of records to retrieve per page
|
|
12784
12784
|
*/
|
|
12785
|
-
getPurchaseOrders(
|
|
12786
|
-
return __awaiter(this,
|
|
12785
|
+
getPurchaseOrders(xeroTenantId, ifModifiedSince, status, dateFrom, dateTo, order, page, pageSize, options = { headers: {} }) {
|
|
12786
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12787
12787
|
const localVarPath = this.basePath + '/PurchaseOrders';
|
|
12788
12788
|
let localVarQueryParameters = {};
|
|
12789
12789
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -12868,8 +12868,8 @@ class AccountingApi {
|
|
|
12868
12868
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12869
12869
|
* @param quoteID Unique identifier for an Quote
|
|
12870
12870
|
*/
|
|
12871
|
-
getQuote(
|
|
12872
|
-
return __awaiter(this,
|
|
12871
|
+
getQuote(xeroTenantId, quoteID, options = { headers: {} }) {
|
|
12872
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12873
12873
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}'
|
|
12874
12874
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)));
|
|
12875
12875
|
let localVarQueryParameters = {};
|
|
@@ -12940,8 +12940,8 @@ class AccountingApi {
|
|
|
12940
12940
|
* @param xeroTenantId Xero identifier for Tenant
|
|
12941
12941
|
* @param quoteID Unique identifier for an Quote
|
|
12942
12942
|
*/
|
|
12943
|
-
getQuoteAsPdf(
|
|
12944
|
-
return __awaiter(this,
|
|
12943
|
+
getQuoteAsPdf(xeroTenantId, quoteID, options = { headers: {} }) {
|
|
12944
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12945
12945
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}'
|
|
12946
12946
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)));
|
|
12947
12947
|
let localVarQueryParameters = {};
|
|
@@ -13014,8 +13014,8 @@ class AccountingApi {
|
|
|
13014
13014
|
* @param fileName Name of the attachment
|
|
13015
13015
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
13016
13016
|
*/
|
|
13017
|
-
getQuoteAttachmentByFileName(
|
|
13018
|
-
return __awaiter(this,
|
|
13017
|
+
getQuoteAttachmentByFileName(xeroTenantId, quoteID, fileName, contentType, options = { headers: {} }) {
|
|
13018
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13019
13019
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}/Attachments/{FileName}'
|
|
13020
13020
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)))
|
|
13021
13021
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -13098,8 +13098,8 @@ class AccountingApi {
|
|
|
13098
13098
|
* @param attachmentID Unique identifier for Attachment object
|
|
13099
13099
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
13100
13100
|
*/
|
|
13101
|
-
getQuoteAttachmentById(
|
|
13102
|
-
return __awaiter(this,
|
|
13101
|
+
getQuoteAttachmentById(xeroTenantId, quoteID, attachmentID, contentType, options = { headers: {} }) {
|
|
13102
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13103
13103
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}/Attachments/{AttachmentID}'
|
|
13104
13104
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)))
|
|
13105
13105
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -13180,8 +13180,8 @@ class AccountingApi {
|
|
|
13180
13180
|
* @param xeroTenantId Xero identifier for Tenant
|
|
13181
13181
|
* @param quoteID Unique identifier for an Quote
|
|
13182
13182
|
*/
|
|
13183
|
-
getQuoteAttachments(
|
|
13184
|
-
return __awaiter(this,
|
|
13183
|
+
getQuoteAttachments(xeroTenantId, quoteID, options = { headers: {} }) {
|
|
13184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13185
13185
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}/Attachments'
|
|
13186
13186
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)));
|
|
13187
13187
|
let localVarQueryParameters = {};
|
|
@@ -13252,8 +13252,8 @@ class AccountingApi {
|
|
|
13252
13252
|
* @param xeroTenantId Xero identifier for Tenant
|
|
13253
13253
|
* @param quoteID Unique identifier for an Quote
|
|
13254
13254
|
*/
|
|
13255
|
-
getQuoteHistory(
|
|
13256
|
-
return __awaiter(this,
|
|
13255
|
+
getQuoteHistory(xeroTenantId, quoteID, options = { headers: {} }) {
|
|
13256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13257
13257
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}/History'
|
|
13258
13258
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)));
|
|
13259
13259
|
let localVarQueryParameters = {};
|
|
@@ -13333,8 +13333,8 @@ class AccountingApi {
|
|
|
13333
13333
|
* @param order Order by an any element
|
|
13334
13334
|
* @param quoteNumber Filter by quote number (e.g. GET https://.../Quotes?QuoteNumber=QU-0001)
|
|
13335
13335
|
*/
|
|
13336
|
-
getQuotes(
|
|
13337
|
-
return __awaiter(this,
|
|
13336
|
+
getQuotes(xeroTenantId, ifModifiedSince, dateFrom, dateTo, expiryDateFrom, expiryDateTo, contactID, status, page, order, quoteNumber, options = { headers: {} }) {
|
|
13337
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13338
13338
|
const localVarPath = this.basePath + '/Quotes';
|
|
13339
13339
|
let localVarQueryParameters = {};
|
|
13340
13340
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -13429,8 +13429,8 @@ class AccountingApi {
|
|
|
13429
13429
|
* @param receiptID Unique identifier for a Receipt
|
|
13430
13430
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
13431
13431
|
*/
|
|
13432
|
-
getReceipt(
|
|
13433
|
-
return __awaiter(this,
|
|
13432
|
+
getReceipt(xeroTenantId, receiptID, unitdp, options = { headers: {} }) {
|
|
13433
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13434
13434
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}'
|
|
13435
13435
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)));
|
|
13436
13436
|
let localVarQueryParameters = {};
|
|
@@ -13506,8 +13506,8 @@ class AccountingApi {
|
|
|
13506
13506
|
* @param fileName Name of the attachment
|
|
13507
13507
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
13508
13508
|
*/
|
|
13509
|
-
getReceiptAttachmentByFileName(
|
|
13510
|
-
return __awaiter(this,
|
|
13509
|
+
getReceiptAttachmentByFileName(xeroTenantId, receiptID, fileName, contentType, options = { headers: {} }) {
|
|
13510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13511
13511
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/Attachments/{FileName}'
|
|
13512
13512
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)))
|
|
13513
13513
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -13590,8 +13590,8 @@ class AccountingApi {
|
|
|
13590
13590
|
* @param attachmentID Unique identifier for Attachment object
|
|
13591
13591
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
13592
13592
|
*/
|
|
13593
|
-
getReceiptAttachmentById(
|
|
13594
|
-
return __awaiter(this,
|
|
13593
|
+
getReceiptAttachmentById(xeroTenantId, receiptID, attachmentID, contentType, options = { headers: {} }) {
|
|
13594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13595
13595
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/Attachments/{AttachmentID}'
|
|
13596
13596
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)))
|
|
13597
13597
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -13672,8 +13672,8 @@ class AccountingApi {
|
|
|
13672
13672
|
* @param xeroTenantId Xero identifier for Tenant
|
|
13673
13673
|
* @param receiptID Unique identifier for a Receipt
|
|
13674
13674
|
*/
|
|
13675
|
-
getReceiptAttachments(
|
|
13676
|
-
return __awaiter(this,
|
|
13675
|
+
getReceiptAttachments(xeroTenantId, receiptID, options = { headers: {} }) {
|
|
13676
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13677
13677
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/Attachments'
|
|
13678
13678
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)));
|
|
13679
13679
|
let localVarQueryParameters = {};
|
|
@@ -13744,8 +13744,8 @@ class AccountingApi {
|
|
|
13744
13744
|
* @param xeroTenantId Xero identifier for Tenant
|
|
13745
13745
|
* @param receiptID Unique identifier for a Receipt
|
|
13746
13746
|
*/
|
|
13747
|
-
getReceiptHistory(
|
|
13748
|
-
return __awaiter(this,
|
|
13747
|
+
getReceiptHistory(xeroTenantId, receiptID, options = { headers: {} }) {
|
|
13748
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13749
13749
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/History'
|
|
13750
13750
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)));
|
|
13751
13751
|
let localVarQueryParameters = {};
|
|
@@ -13819,8 +13819,8 @@ class AccountingApi {
|
|
|
13819
13819
|
* @param order Order by an any element
|
|
13820
13820
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
13821
13821
|
*/
|
|
13822
|
-
getReceipts(
|
|
13823
|
-
return __awaiter(this,
|
|
13822
|
+
getReceipts(xeroTenantId, ifModifiedSince, where, order, unitdp, options = { headers: {} }) {
|
|
13823
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13824
13824
|
const localVarPath = this.basePath + '/Receipts';
|
|
13825
13825
|
let localVarQueryParameters = {};
|
|
13826
13826
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -13896,8 +13896,8 @@ class AccountingApi {
|
|
|
13896
13896
|
* @param xeroTenantId Xero identifier for Tenant
|
|
13897
13897
|
* @param repeatingInvoiceID Unique identifier for a Repeating Invoice
|
|
13898
13898
|
*/
|
|
13899
|
-
getRepeatingInvoice(
|
|
13900
|
-
return __awaiter(this,
|
|
13899
|
+
getRepeatingInvoice(xeroTenantId, repeatingInvoiceID, options = { headers: {} }) {
|
|
13900
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13901
13901
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}'
|
|
13902
13902
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)));
|
|
13903
13903
|
let localVarQueryParameters = {};
|
|
@@ -13970,8 +13970,8 @@ class AccountingApi {
|
|
|
13970
13970
|
* @param fileName Name of the attachment
|
|
13971
13971
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
13972
13972
|
*/
|
|
13973
|
-
getRepeatingInvoiceAttachmentByFileName(
|
|
13974
|
-
return __awaiter(this,
|
|
13973
|
+
getRepeatingInvoiceAttachmentByFileName(xeroTenantId, repeatingInvoiceID, fileName, contentType, options = { headers: {} }) {
|
|
13974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
13975
13975
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'
|
|
13976
13976
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)))
|
|
13977
13977
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -14054,8 +14054,8 @@ class AccountingApi {
|
|
|
14054
14054
|
* @param attachmentID Unique identifier for Attachment object
|
|
14055
14055
|
* @param contentType The mime type of the attachment file you are retrieving i.e image/jpg, application/pdf
|
|
14056
14056
|
*/
|
|
14057
|
-
getRepeatingInvoiceAttachmentById(
|
|
14058
|
-
return __awaiter(this,
|
|
14057
|
+
getRepeatingInvoiceAttachmentById(xeroTenantId, repeatingInvoiceID, attachmentID, contentType, options = { headers: {} }) {
|
|
14058
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14059
14059
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{AttachmentID}'
|
|
14060
14060
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)))
|
|
14061
14061
|
.replace('{' + 'AttachmentID' + '}', encodeURIComponent(String(attachmentID)));
|
|
@@ -14136,8 +14136,8 @@ class AccountingApi {
|
|
|
14136
14136
|
* @param xeroTenantId Xero identifier for Tenant
|
|
14137
14137
|
* @param repeatingInvoiceID Unique identifier for a Repeating Invoice
|
|
14138
14138
|
*/
|
|
14139
|
-
getRepeatingInvoiceAttachments(
|
|
14140
|
-
return __awaiter(this,
|
|
14139
|
+
getRepeatingInvoiceAttachments(xeroTenantId, repeatingInvoiceID, options = { headers: {} }) {
|
|
14140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14141
14141
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments'
|
|
14142
14142
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)));
|
|
14143
14143
|
let localVarQueryParameters = {};
|
|
@@ -14208,8 +14208,8 @@ class AccountingApi {
|
|
|
14208
14208
|
* @param xeroTenantId Xero identifier for Tenant
|
|
14209
14209
|
* @param repeatingInvoiceID Unique identifier for a Repeating Invoice
|
|
14210
14210
|
*/
|
|
14211
|
-
getRepeatingInvoiceHistory(
|
|
14212
|
-
return __awaiter(this,
|
|
14211
|
+
getRepeatingInvoiceHistory(xeroTenantId, repeatingInvoiceID, options = { headers: {} }) {
|
|
14212
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14213
14213
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/History'
|
|
14214
14214
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)));
|
|
14215
14215
|
let localVarQueryParameters = {};
|
|
@@ -14281,8 +14281,8 @@ class AccountingApi {
|
|
|
14281
14281
|
* @param where Filter by an any element
|
|
14282
14282
|
* @param order Order by an any element
|
|
14283
14283
|
*/
|
|
14284
|
-
getRepeatingInvoices(
|
|
14285
|
-
return __awaiter(this,
|
|
14284
|
+
getRepeatingInvoices(xeroTenantId, where, order, options = { headers: {} }) {
|
|
14285
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14286
14286
|
const localVarPath = this.basePath + '/RepeatingInvoices';
|
|
14287
14287
|
let localVarQueryParameters = {};
|
|
14288
14288
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -14357,8 +14357,8 @@ class AccountingApi {
|
|
|
14357
14357
|
* @param fromDate filter by the from date of the report e.g. 2021-02-01
|
|
14358
14358
|
* @param toDate filter by the to date of the report e.g. 2021-02-28
|
|
14359
14359
|
*/
|
|
14360
|
-
getReportAgedPayablesByContact(
|
|
14361
|
-
return __awaiter(this,
|
|
14360
|
+
getReportAgedPayablesByContact(xeroTenantId, contactId, date, fromDate, toDate, options = { headers: {} }) {
|
|
14361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14362
14362
|
const localVarPath = this.basePath + '/Reports/AgedPayablesByContact';
|
|
14363
14363
|
let localVarQueryParameters = {};
|
|
14364
14364
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -14443,8 +14443,8 @@ class AccountingApi {
|
|
|
14443
14443
|
* @param fromDate filter by the from date of the report e.g. 2021-02-01
|
|
14444
14444
|
* @param toDate filter by the to date of the report e.g. 2021-02-28
|
|
14445
14445
|
*/
|
|
14446
|
-
getReportAgedReceivablesByContact(
|
|
14447
|
-
return __awaiter(this,
|
|
14446
|
+
getReportAgedReceivablesByContact(xeroTenantId, contactId, date, fromDate, toDate, options = { headers: {} }) {
|
|
14447
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14448
14448
|
const localVarPath = this.basePath + '/Reports/AgedReceivablesByContact';
|
|
14449
14449
|
let localVarQueryParameters = {};
|
|
14450
14450
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -14532,8 +14532,8 @@ class AccountingApi {
|
|
|
14532
14532
|
* @param standardLayout The standard layout boolean for the Balance Sheet report
|
|
14533
14533
|
* @param paymentsOnly return a cash basis for the Balance Sheet report
|
|
14534
14534
|
*/
|
|
14535
|
-
getReportBalanceSheet(
|
|
14536
|
-
return __awaiter(this,
|
|
14535
|
+
getReportBalanceSheet(xeroTenantId, date, periods, timeframe, trackingOptionID1, trackingOptionID2, standardLayout, paymentsOnly, options = { headers: {} }) {
|
|
14536
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14537
14537
|
const localVarPath = this.basePath + '/Reports/BalanceSheet';
|
|
14538
14538
|
let localVarQueryParameters = {};
|
|
14539
14539
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -14621,8 +14621,8 @@ class AccountingApi {
|
|
|
14621
14621
|
* @param fromDate filter by the from date of the report e.g. 2021-02-01
|
|
14622
14622
|
* @param toDate filter by the to date of the report e.g. 2021-02-28
|
|
14623
14623
|
*/
|
|
14624
|
-
getReportBankSummary(
|
|
14625
|
-
return __awaiter(this,
|
|
14624
|
+
getReportBankSummary(xeroTenantId, fromDate, toDate, options = { headers: {} }) {
|
|
14625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14626
14626
|
const localVarPath = this.basePath + '/Reports/BankSummary';
|
|
14627
14627
|
let localVarQueryParameters = {};
|
|
14628
14628
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -14696,8 +14696,8 @@ class AccountingApi {
|
|
|
14696
14696
|
* @param periods The number of periods to compare (integer between 1 and 12)
|
|
14697
14697
|
* @param timeframe The period size to compare to (1=month, 3=quarter, 12=year)
|
|
14698
14698
|
*/
|
|
14699
|
-
getReportBudgetSummary(
|
|
14700
|
-
return __awaiter(this,
|
|
14699
|
+
getReportBudgetSummary(xeroTenantId, date, periods, timeframe, options = { headers: {} }) {
|
|
14700
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14701
14701
|
const localVarPath = this.basePath + '/Reports/BudgetSummary';
|
|
14702
14702
|
let localVarQueryParameters = {};
|
|
14703
14703
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -14772,8 +14772,8 @@ class AccountingApi {
|
|
|
14772
14772
|
* @param xeroTenantId Xero identifier for Tenant
|
|
14773
14773
|
* @param date The date for the Bank Summary report e.g. 2018-03-31
|
|
14774
14774
|
*/
|
|
14775
|
-
getReportExecutiveSummary(
|
|
14776
|
-
return __awaiter(this,
|
|
14775
|
+
getReportExecutiveSummary(xeroTenantId, date, options = { headers: {} }) {
|
|
14776
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14777
14777
|
const localVarPath = this.basePath + '/Reports/ExecutiveSummary';
|
|
14778
14778
|
let localVarQueryParameters = {};
|
|
14779
14779
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -14842,8 +14842,8 @@ class AccountingApi {
|
|
|
14842
14842
|
* @param xeroTenantId Xero identifier for Tenant
|
|
14843
14843
|
* @param reportID Unique identifier for a Report
|
|
14844
14844
|
*/
|
|
14845
|
-
getReportFromId(
|
|
14846
|
-
return __awaiter(this,
|
|
14845
|
+
getReportFromId(xeroTenantId, reportID, options = { headers: {} }) {
|
|
14846
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14847
14847
|
const localVarPath = this.basePath + '/Reports/{ReportID}'
|
|
14848
14848
|
.replace('{' + 'ReportID' + '}', encodeURIComponent(String(reportID)));
|
|
14849
14849
|
let localVarQueryParameters = {};
|
|
@@ -14923,8 +14923,8 @@ class AccountingApi {
|
|
|
14923
14923
|
* @param standardLayout Return the standard layout for the ProfitAndLoss report
|
|
14924
14924
|
* @param paymentsOnly Return cash only basis for the ProfitAndLoss report
|
|
14925
14925
|
*/
|
|
14926
|
-
getReportProfitAndLoss(
|
|
14927
|
-
return __awaiter(this,
|
|
14926
|
+
getReportProfitAndLoss(xeroTenantId, fromDate, toDate, periods, timeframe, trackingCategoryID, trackingCategoryID2, trackingOptionID, trackingOptionID2, standardLayout, paymentsOnly, options = { headers: {} }) {
|
|
14927
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14928
14928
|
const localVarPath = this.basePath + '/Reports/ProfitAndLoss';
|
|
14929
14929
|
let localVarQueryParameters = {};
|
|
14930
14930
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -15020,8 +15020,8 @@ class AccountingApi {
|
|
|
15020
15020
|
* @param xeroTenantId Xero identifier for Tenant
|
|
15021
15021
|
* @param reportYear The year of the 1099 report
|
|
15022
15022
|
*/
|
|
15023
|
-
getReportTenNinetyNine(
|
|
15024
|
-
return __awaiter(this,
|
|
15023
|
+
getReportTenNinetyNine(xeroTenantId, reportYear, options = { headers: {} }) {
|
|
15024
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15025
15025
|
const localVarPath = this.basePath + '/Reports/TenNinetyNine';
|
|
15026
15026
|
let localVarQueryParameters = {};
|
|
15027
15027
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -15091,8 +15091,8 @@ class AccountingApi {
|
|
|
15091
15091
|
* @param date The date for the Trial Balance report e.g. 2018-03-31
|
|
15092
15092
|
* @param paymentsOnly Return cash only basis for the Trial Balance report
|
|
15093
15093
|
*/
|
|
15094
|
-
getReportTrialBalance(
|
|
15095
|
-
return __awaiter(this,
|
|
15094
|
+
getReportTrialBalance(xeroTenantId, date, paymentsOnly, options = { headers: {} }) {
|
|
15095
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15096
15096
|
const localVarPath = this.basePath + '/Reports/TrialBalance';
|
|
15097
15097
|
let localVarQueryParameters = {};
|
|
15098
15098
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -15163,8 +15163,8 @@ class AccountingApi {
|
|
|
15163
15163
|
* @summary Retrieves a list of the organistaions unique reports that require a uuid to fetch
|
|
15164
15164
|
* @param xeroTenantId Xero identifier for Tenant
|
|
15165
15165
|
*/
|
|
15166
|
-
getReportsList(
|
|
15167
|
-
return __awaiter(this,
|
|
15166
|
+
getReportsList(xeroTenantId, options = { headers: {} }) {
|
|
15167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15168
15168
|
const localVarPath = this.basePath + '/Reports';
|
|
15169
15169
|
let localVarQueryParameters = {};
|
|
15170
15170
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -15230,8 +15230,8 @@ class AccountingApi {
|
|
|
15230
15230
|
* @param xeroTenantId Xero identifier for Tenant
|
|
15231
15231
|
* @param taxType A valid TaxType code
|
|
15232
15232
|
*/
|
|
15233
|
-
getTaxRateByTaxType(
|
|
15234
|
-
return __awaiter(this,
|
|
15233
|
+
getTaxRateByTaxType(xeroTenantId, taxType, options = { headers: {} }) {
|
|
15234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15235
15235
|
const localVarPath = this.basePath + '/TaxRates/{TaxType}'
|
|
15236
15236
|
.replace('{' + 'TaxType' + '}', encodeURIComponent(String(taxType)));
|
|
15237
15237
|
let localVarQueryParameters = {};
|
|
@@ -15303,8 +15303,8 @@ class AccountingApi {
|
|
|
15303
15303
|
* @param where Filter by an any element
|
|
15304
15304
|
* @param order Order by an any element
|
|
15305
15305
|
*/
|
|
15306
|
-
getTaxRates(
|
|
15307
|
-
return __awaiter(this,
|
|
15306
|
+
getTaxRates(xeroTenantId, where, order, options = { headers: {} }) {
|
|
15307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15308
15308
|
const localVarPath = this.basePath + '/TaxRates';
|
|
15309
15309
|
let localVarQueryParameters = {};
|
|
15310
15310
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -15378,8 +15378,8 @@ class AccountingApi {
|
|
|
15378
15378
|
* @param order Order by an any element
|
|
15379
15379
|
* @param includeArchived e.g. includeArchived=true - Categories and options with a status of ARCHIVED will be included in the response
|
|
15380
15380
|
*/
|
|
15381
|
-
getTrackingCategories(
|
|
15382
|
-
return __awaiter(this,
|
|
15381
|
+
getTrackingCategories(xeroTenantId, where, order, includeArchived, options = { headers: {} }) {
|
|
15382
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15383
15383
|
const localVarPath = this.basePath + '/TrackingCategories';
|
|
15384
15384
|
let localVarQueryParameters = {};
|
|
15385
15385
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -15454,8 +15454,8 @@ class AccountingApi {
|
|
|
15454
15454
|
* @param xeroTenantId Xero identifier for Tenant
|
|
15455
15455
|
* @param trackingCategoryID Unique identifier for a TrackingCategory
|
|
15456
15456
|
*/
|
|
15457
|
-
getTrackingCategory(
|
|
15458
|
-
return __awaiter(this,
|
|
15457
|
+
getTrackingCategory(xeroTenantId, trackingCategoryID, options = { headers: {} }) {
|
|
15458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15459
15459
|
const localVarPath = this.basePath + '/TrackingCategories/{TrackingCategoryID}'
|
|
15460
15460
|
.replace('{' + 'TrackingCategoryID' + '}', encodeURIComponent(String(trackingCategoryID)));
|
|
15461
15461
|
let localVarQueryParameters = {};
|
|
@@ -15526,8 +15526,8 @@ class AccountingApi {
|
|
|
15526
15526
|
* @param xeroTenantId Xero identifier for Tenant
|
|
15527
15527
|
* @param userID Unique identifier for a User
|
|
15528
15528
|
*/
|
|
15529
|
-
getUser(
|
|
15530
|
-
return __awaiter(this,
|
|
15529
|
+
getUser(xeroTenantId, userID, options = { headers: {} }) {
|
|
15530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15531
15531
|
const localVarPath = this.basePath + '/Users/{UserID}'
|
|
15532
15532
|
.replace('{' + 'UserID' + '}', encodeURIComponent(String(userID)));
|
|
15533
15533
|
let localVarQueryParameters = {};
|
|
@@ -15600,8 +15600,8 @@ class AccountingApi {
|
|
|
15600
15600
|
* @param where Filter by an any element
|
|
15601
15601
|
* @param order Order by an any element
|
|
15602
15602
|
*/
|
|
15603
|
-
getUsers(
|
|
15604
|
-
return __awaiter(this,
|
|
15603
|
+
getUsers(xeroTenantId, ifModifiedSince, where, order, options = { headers: {} }) {
|
|
15604
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15605
15605
|
const localVarPath = this.basePath + '/Users';
|
|
15606
15606
|
let localVarQueryParameters = {};
|
|
15607
15607
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -15675,8 +15675,8 @@ class AccountingApi {
|
|
|
15675
15675
|
* @param setup Object including an accounts array, a conversion balances array and a conversion date object in body of request
|
|
15676
15676
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15677
15677
|
*/
|
|
15678
|
-
postSetup(
|
|
15679
|
-
return __awaiter(this,
|
|
15678
|
+
postSetup(xeroTenantId, setup, idempotencyKey, options = { headers: {} }) {
|
|
15679
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15680
15680
|
const localVarPath = this.basePath + '/Setup';
|
|
15681
15681
|
let localVarQueryParameters = {};
|
|
15682
15682
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -15749,8 +15749,8 @@ class AccountingApi {
|
|
|
15749
15749
|
* @param accounts Request of type Accounts array with one Account
|
|
15750
15750
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15751
15751
|
*/
|
|
15752
|
-
updateAccount(
|
|
15753
|
-
return __awaiter(this,
|
|
15752
|
+
updateAccount(xeroTenantId, accountID, accounts, idempotencyKey, options = { headers: {} }) {
|
|
15753
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15754
15754
|
const localVarPath = this.basePath + '/Accounts/{AccountID}'
|
|
15755
15755
|
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)));
|
|
15756
15756
|
let localVarQueryParameters = {};
|
|
@@ -15829,8 +15829,8 @@ class AccountingApi {
|
|
|
15829
15829
|
* @param body Byte array of file in body of request
|
|
15830
15830
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15831
15831
|
*/
|
|
15832
|
-
updateAccountAttachmentByFileName(
|
|
15833
|
-
return __awaiter(this,
|
|
15832
|
+
updateAccountAttachmentByFileName(xeroTenantId, accountID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
15833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15834
15834
|
const localVarPath = this.basePath + '/Accounts/{AccountID}/Attachments/{FileName}'
|
|
15835
15835
|
.replace('{' + 'AccountID' + '}', encodeURIComponent(String(accountID)))
|
|
15836
15836
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -15936,8 +15936,8 @@ class AccountingApi {
|
|
|
15936
15936
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
15937
15937
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
15938
15938
|
*/
|
|
15939
|
-
updateBankTransaction(
|
|
15940
|
-
return __awaiter(this,
|
|
15939
|
+
updateBankTransaction(xeroTenantId, bankTransactionID, bankTransactions, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
15940
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15941
15941
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}'
|
|
15942
15942
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)));
|
|
15943
15943
|
let localVarQueryParameters = {};
|
|
@@ -16019,8 +16019,8 @@ class AccountingApi {
|
|
|
16019
16019
|
* @param body Byte array of file in body of request
|
|
16020
16020
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16021
16021
|
*/
|
|
16022
|
-
updateBankTransactionAttachmentByFileName(
|
|
16023
|
-
return __awaiter(this,
|
|
16022
|
+
updateBankTransactionAttachmentByFileName(xeroTenantId, bankTransactionID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
16023
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16024
16024
|
const localVarPath = this.basePath + '/BankTransactions/{BankTransactionID}/Attachments/{FileName}'
|
|
16025
16025
|
.replace('{' + 'BankTransactionID' + '}', encodeURIComponent(String(bankTransactionID)))
|
|
16026
16026
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -16125,8 +16125,8 @@ class AccountingApi {
|
|
|
16125
16125
|
* @param body Byte array of file in body of request
|
|
16126
16126
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16127
16127
|
*/
|
|
16128
|
-
updateBankTransferAttachmentByFileName(
|
|
16129
|
-
return __awaiter(this,
|
|
16128
|
+
updateBankTransferAttachmentByFileName(xeroTenantId, bankTransferID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
16129
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16130
16130
|
const localVarPath = this.basePath + '/BankTransfers/{BankTransferID}/Attachments/{FileName}'
|
|
16131
16131
|
.replace('{' + 'BankTransferID' + '}', encodeURIComponent(String(bankTransferID)))
|
|
16132
16132
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -16231,8 +16231,8 @@ class AccountingApi {
|
|
|
16231
16231
|
* @param contacts an array of Contacts containing single Contact object with properties to update
|
|
16232
16232
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16233
16233
|
*/
|
|
16234
|
-
updateContact(
|
|
16235
|
-
return __awaiter(this,
|
|
16234
|
+
updateContact(xeroTenantId, contactID, contacts, idempotencyKey, options = { headers: {} }) {
|
|
16235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16236
16236
|
const localVarPath = this.basePath + '/Contacts/{ContactID}'
|
|
16237
16237
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)));
|
|
16238
16238
|
let localVarQueryParameters = {};
|
|
@@ -16310,8 +16310,8 @@ class AccountingApi {
|
|
|
16310
16310
|
* @param body Byte array of file in body of request
|
|
16311
16311
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16312
16312
|
*/
|
|
16313
|
-
updateContactAttachmentByFileName(
|
|
16314
|
-
return __awaiter(this,
|
|
16313
|
+
updateContactAttachmentByFileName(xeroTenantId, contactID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
16314
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16315
16315
|
const localVarPath = this.basePath + '/Contacts/{ContactID}/Attachments/{FileName}'
|
|
16316
16316
|
.replace('{' + 'ContactID' + '}', encodeURIComponent(String(contactID)))
|
|
16317
16317
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -16416,8 +16416,8 @@ class AccountingApi {
|
|
|
16416
16416
|
* @param contactGroups an array of Contact groups with Name of specific group to update
|
|
16417
16417
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16418
16418
|
*/
|
|
16419
|
-
updateContactGroup(
|
|
16420
|
-
return __awaiter(this,
|
|
16419
|
+
updateContactGroup(xeroTenantId, contactGroupID, contactGroups, idempotencyKey, options = { headers: {} }) {
|
|
16420
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16421
16421
|
const localVarPath = this.basePath + '/ContactGroups/{ContactGroupID}'
|
|
16422
16422
|
.replace('{' + 'ContactGroupID' + '}', encodeURIComponent(String(contactGroupID)));
|
|
16423
16423
|
let localVarQueryParameters = {};
|
|
@@ -16496,8 +16496,8 @@ class AccountingApi {
|
|
|
16496
16496
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16497
16497
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16498
16498
|
*/
|
|
16499
|
-
updateCreditNote(
|
|
16500
|
-
return __awaiter(this,
|
|
16499
|
+
updateCreditNote(xeroTenantId, creditNoteID, creditNotes, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
16500
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16501
16501
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}'
|
|
16502
16502
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)));
|
|
16503
16503
|
let localVarQueryParameters = {};
|
|
@@ -16579,8 +16579,8 @@ class AccountingApi {
|
|
|
16579
16579
|
* @param body Byte array of file in body of request
|
|
16580
16580
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16581
16581
|
*/
|
|
16582
|
-
updateCreditNoteAttachmentByFileName(
|
|
16583
|
-
return __awaiter(this,
|
|
16582
|
+
updateCreditNoteAttachmentByFileName(xeroTenantId, creditNoteID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
16583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16584
16584
|
const localVarPath = this.basePath + '/CreditNotes/{CreditNoteID}/Attachments/{FileName}'
|
|
16585
16585
|
.replace('{' + 'CreditNoteID' + '}', encodeURIComponent(String(creditNoteID)))
|
|
16586
16586
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -16685,8 +16685,8 @@ class AccountingApi {
|
|
|
16685
16685
|
* @param expenseClaims
|
|
16686
16686
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16687
16687
|
*/
|
|
16688
|
-
updateExpenseClaim(
|
|
16689
|
-
return __awaiter(this,
|
|
16688
|
+
updateExpenseClaim(xeroTenantId, expenseClaimID, expenseClaims, idempotencyKey, options = { headers: {} }) {
|
|
16689
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16690
16690
|
const localVarPath = this.basePath + '/ExpenseClaims/{ExpenseClaimID}'
|
|
16691
16691
|
.replace('{' + 'ExpenseClaimID' + '}', encodeURIComponent(String(expenseClaimID)));
|
|
16692
16692
|
let localVarQueryParameters = {};
|
|
@@ -16765,8 +16765,8 @@ class AccountingApi {
|
|
|
16765
16765
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16766
16766
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16767
16767
|
*/
|
|
16768
|
-
updateInvoice(
|
|
16769
|
-
return __awaiter(this,
|
|
16768
|
+
updateInvoice(xeroTenantId, invoiceID, invoices, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
16769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16770
16770
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}'
|
|
16771
16771
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)));
|
|
16772
16772
|
let localVarQueryParameters = {};
|
|
@@ -16848,8 +16848,8 @@ class AccountingApi {
|
|
|
16848
16848
|
* @param body Byte array of file in body of request
|
|
16849
16849
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16850
16850
|
*/
|
|
16851
|
-
updateInvoiceAttachmentByFileName(
|
|
16852
|
-
return __awaiter(this,
|
|
16851
|
+
updateInvoiceAttachmentByFileName(xeroTenantId, invoiceID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
16852
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16853
16853
|
const localVarPath = this.basePath + '/Invoices/{InvoiceID}/Attachments/{FileName}'
|
|
16854
16854
|
.replace('{' + 'InvoiceID' + '}', encodeURIComponent(String(invoiceID)))
|
|
16855
16855
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -16955,8 +16955,8 @@ class AccountingApi {
|
|
|
16955
16955
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
16956
16956
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
16957
16957
|
*/
|
|
16958
|
-
updateItem(
|
|
16959
|
-
return __awaiter(this,
|
|
16958
|
+
updateItem(xeroTenantId, itemID, items, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
16959
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16960
16960
|
const localVarPath = this.basePath + '/Items/{ItemID}'
|
|
16961
16961
|
.replace('{' + 'ItemID' + '}', encodeURIComponent(String(itemID)));
|
|
16962
16962
|
let localVarQueryParameters = {};
|
|
@@ -17037,8 +17037,8 @@ class AccountingApi {
|
|
|
17037
17037
|
* @param linkedTransactions
|
|
17038
17038
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17039
17039
|
*/
|
|
17040
|
-
updateLinkedTransaction(
|
|
17041
|
-
return __awaiter(this,
|
|
17040
|
+
updateLinkedTransaction(xeroTenantId, linkedTransactionID, linkedTransactions, idempotencyKey, options = { headers: {} }) {
|
|
17041
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17042
17042
|
const localVarPath = this.basePath + '/LinkedTransactions/{LinkedTransactionID}'
|
|
17043
17043
|
.replace('{' + 'LinkedTransactionID' + '}', encodeURIComponent(String(linkedTransactionID)));
|
|
17044
17044
|
let localVarQueryParameters = {};
|
|
@@ -17116,8 +17116,8 @@ class AccountingApi {
|
|
|
17116
17116
|
* @param manualJournals
|
|
17117
17117
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17118
17118
|
*/
|
|
17119
|
-
updateManualJournal(
|
|
17120
|
-
return __awaiter(this,
|
|
17119
|
+
updateManualJournal(xeroTenantId, manualJournalID, manualJournals, idempotencyKey, options = { headers: {} }) {
|
|
17120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17121
17121
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}'
|
|
17122
17122
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)));
|
|
17123
17123
|
let localVarQueryParameters = {};
|
|
@@ -17196,8 +17196,8 @@ class AccountingApi {
|
|
|
17196
17196
|
* @param body Byte array of file in body of request
|
|
17197
17197
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17198
17198
|
*/
|
|
17199
|
-
updateManualJournalAttachmentByFileName(
|
|
17200
|
-
return __awaiter(this,
|
|
17199
|
+
updateManualJournalAttachmentByFileName(xeroTenantId, manualJournalID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
17200
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17201
17201
|
const localVarPath = this.basePath + '/ManualJournals/{ManualJournalID}/Attachments/{FileName}'
|
|
17202
17202
|
.replace('{' + 'ManualJournalID' + '}', encodeURIComponent(String(manualJournalID)))
|
|
17203
17203
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -17303,8 +17303,8 @@ class AccountingApi {
|
|
|
17303
17303
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17304
17304
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17305
17305
|
*/
|
|
17306
|
-
updateOrCreateBankTransactions(
|
|
17307
|
-
return __awaiter(this,
|
|
17306
|
+
updateOrCreateBankTransactions(xeroTenantId, bankTransactions, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
17307
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17308
17308
|
const localVarPath = this.basePath + '/BankTransactions';
|
|
17309
17309
|
let localVarQueryParameters = {};
|
|
17310
17310
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17383,8 +17383,8 @@ class AccountingApi {
|
|
|
17383
17383
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17384
17384
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17385
17385
|
*/
|
|
17386
|
-
updateOrCreateContacts(
|
|
17387
|
-
return __awaiter(this,
|
|
17386
|
+
updateOrCreateContacts(xeroTenantId, contacts, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
17387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17388
17388
|
const localVarPath = this.basePath + '/Contacts';
|
|
17389
17389
|
let localVarQueryParameters = {};
|
|
17390
17390
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17461,8 +17461,8 @@ class AccountingApi {
|
|
|
17461
17461
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17462
17462
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17463
17463
|
*/
|
|
17464
|
-
updateOrCreateCreditNotes(
|
|
17465
|
-
return __awaiter(this,
|
|
17464
|
+
updateOrCreateCreditNotes(xeroTenantId, creditNotes, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
17465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17466
17466
|
const localVarPath = this.basePath + '/CreditNotes';
|
|
17467
17467
|
let localVarQueryParameters = {};
|
|
17468
17468
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17541,8 +17541,8 @@ class AccountingApi {
|
|
|
17541
17541
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17542
17542
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17543
17543
|
*/
|
|
17544
|
-
updateOrCreateEmployees(
|
|
17545
|
-
return __awaiter(this,
|
|
17544
|
+
updateOrCreateEmployees(xeroTenantId, employees, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
17545
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17546
17546
|
const localVarPath = this.basePath + '/Employees';
|
|
17547
17547
|
let localVarQueryParameters = {};
|
|
17548
17548
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17619,8 +17619,8 @@ class AccountingApi {
|
|
|
17619
17619
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17620
17620
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17621
17621
|
*/
|
|
17622
|
-
updateOrCreateInvoices(
|
|
17623
|
-
return __awaiter(this,
|
|
17622
|
+
updateOrCreateInvoices(xeroTenantId, invoices, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
17623
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17624
17624
|
const localVarPath = this.basePath + '/Invoices';
|
|
17625
17625
|
let localVarQueryParameters = {};
|
|
17626
17626
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17700,8 +17700,8 @@ class AccountingApi {
|
|
|
17700
17700
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
17701
17701
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17702
17702
|
*/
|
|
17703
|
-
updateOrCreateItems(
|
|
17704
|
-
return __awaiter(this,
|
|
17703
|
+
updateOrCreateItems(xeroTenantId, items, summarizeErrors, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
17704
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17705
17705
|
const localVarPath = this.basePath + '/Items';
|
|
17706
17706
|
let localVarQueryParameters = {};
|
|
17707
17707
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17780,8 +17780,8 @@ class AccountingApi {
|
|
|
17780
17780
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17781
17781
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17782
17782
|
*/
|
|
17783
|
-
updateOrCreateManualJournals(
|
|
17784
|
-
return __awaiter(this,
|
|
17783
|
+
updateOrCreateManualJournals(xeroTenantId, manualJournals, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
17784
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17785
17785
|
const localVarPath = this.basePath + '/ManualJournals';
|
|
17786
17786
|
let localVarQueryParameters = {};
|
|
17787
17787
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17857,8 +17857,8 @@ class AccountingApi {
|
|
|
17857
17857
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17858
17858
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17859
17859
|
*/
|
|
17860
|
-
updateOrCreatePurchaseOrders(
|
|
17861
|
-
return __awaiter(this,
|
|
17860
|
+
updateOrCreatePurchaseOrders(xeroTenantId, purchaseOrders, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
17861
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17862
17862
|
const localVarPath = this.basePath + '/PurchaseOrders';
|
|
17863
17863
|
let localVarQueryParameters = {};
|
|
17864
17864
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -17934,8 +17934,8 @@ class AccountingApi {
|
|
|
17934
17934
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
17935
17935
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
17936
17936
|
*/
|
|
17937
|
-
updateOrCreateQuotes(
|
|
17938
|
-
return __awaiter(this,
|
|
17937
|
+
updateOrCreateQuotes(xeroTenantId, quotes, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
17938
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17939
17939
|
const localVarPath = this.basePath + '/Quotes';
|
|
17940
17940
|
let localVarQueryParameters = {};
|
|
17941
17941
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -18011,8 +18011,8 @@ class AccountingApi {
|
|
|
18011
18011
|
* @param summarizeErrors If false return 200 OK and mix of successfully created objects and any with validation errors
|
|
18012
18012
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18013
18013
|
*/
|
|
18014
|
-
updateOrCreateRepeatingInvoices(
|
|
18015
|
-
return __awaiter(this,
|
|
18014
|
+
updateOrCreateRepeatingInvoices(xeroTenantId, repeatingInvoices, summarizeErrors, idempotencyKey, options = { headers: {} }) {
|
|
18015
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18016
18016
|
const localVarPath = this.basePath + '/RepeatingInvoices';
|
|
18017
18017
|
let localVarQueryParameters = {};
|
|
18018
18018
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -18088,8 +18088,8 @@ class AccountingApi {
|
|
|
18088
18088
|
* @param purchaseOrders
|
|
18089
18089
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18090
18090
|
*/
|
|
18091
|
-
updatePurchaseOrder(
|
|
18092
|
-
return __awaiter(this,
|
|
18091
|
+
updatePurchaseOrder(xeroTenantId, purchaseOrderID, purchaseOrders, idempotencyKey, options = { headers: {} }) {
|
|
18092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18093
18093
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}'
|
|
18094
18094
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)));
|
|
18095
18095
|
let localVarQueryParameters = {};
|
|
@@ -18168,8 +18168,8 @@ class AccountingApi {
|
|
|
18168
18168
|
* @param body Byte array of file in body of request
|
|
18169
18169
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18170
18170
|
*/
|
|
18171
|
-
updatePurchaseOrderAttachmentByFileName(
|
|
18172
|
-
return __awaiter(this,
|
|
18171
|
+
updatePurchaseOrderAttachmentByFileName(xeroTenantId, purchaseOrderID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
18172
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18173
18173
|
const localVarPath = this.basePath + '/PurchaseOrders/{PurchaseOrderID}/Attachments/{FileName}'
|
|
18174
18174
|
.replace('{' + 'PurchaseOrderID' + '}', encodeURIComponent(String(purchaseOrderID)))
|
|
18175
18175
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -18274,8 +18274,8 @@ class AccountingApi {
|
|
|
18274
18274
|
* @param quotes
|
|
18275
18275
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18276
18276
|
*/
|
|
18277
|
-
updateQuote(
|
|
18278
|
-
return __awaiter(this,
|
|
18277
|
+
updateQuote(xeroTenantId, quoteID, quotes, idempotencyKey, options = { headers: {} }) {
|
|
18278
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18279
18279
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}'
|
|
18280
18280
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)));
|
|
18281
18281
|
let localVarQueryParameters = {};
|
|
@@ -18354,8 +18354,8 @@ class AccountingApi {
|
|
|
18354
18354
|
* @param body Byte array of file in body of request
|
|
18355
18355
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18356
18356
|
*/
|
|
18357
|
-
updateQuoteAttachmentByFileName(
|
|
18358
|
-
return __awaiter(this,
|
|
18357
|
+
updateQuoteAttachmentByFileName(xeroTenantId, quoteID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
18358
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18359
18359
|
const localVarPath = this.basePath + '/Quotes/{QuoteID}/Attachments/{FileName}'
|
|
18360
18360
|
.replace('{' + 'QuoteID' + '}', encodeURIComponent(String(quoteID)))
|
|
18361
18361
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -18461,8 +18461,8 @@ class AccountingApi {
|
|
|
18461
18461
|
* @param unitdp e.g. unitdp=4 – (Unit Decimal Places) You can opt in to use four decimal places for unit amounts
|
|
18462
18462
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18463
18463
|
*/
|
|
18464
|
-
updateReceipt(
|
|
18465
|
-
return __awaiter(this,
|
|
18464
|
+
updateReceipt(xeroTenantId, receiptID, receipts, unitdp, idempotencyKey, options = { headers: {} }) {
|
|
18465
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18466
18466
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}'
|
|
18467
18467
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)));
|
|
18468
18468
|
let localVarQueryParameters = {};
|
|
@@ -18544,8 +18544,8 @@ class AccountingApi {
|
|
|
18544
18544
|
* @param body Byte array of file in body of request
|
|
18545
18545
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18546
18546
|
*/
|
|
18547
|
-
updateReceiptAttachmentByFileName(
|
|
18548
|
-
return __awaiter(this,
|
|
18547
|
+
updateReceiptAttachmentByFileName(xeroTenantId, receiptID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
18548
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18549
18549
|
const localVarPath = this.basePath + '/Receipts/{ReceiptID}/Attachments/{FileName}'
|
|
18550
18550
|
.replace('{' + 'ReceiptID' + '}', encodeURIComponent(String(receiptID)))
|
|
18551
18551
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -18650,8 +18650,8 @@ class AccountingApi {
|
|
|
18650
18650
|
* @param repeatingInvoices
|
|
18651
18651
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18652
18652
|
*/
|
|
18653
|
-
updateRepeatingInvoice(
|
|
18654
|
-
return __awaiter(this,
|
|
18653
|
+
updateRepeatingInvoice(xeroTenantId, repeatingInvoiceID, repeatingInvoices, idempotencyKey, options = { headers: {} }) {
|
|
18654
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18655
18655
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}'
|
|
18656
18656
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)));
|
|
18657
18657
|
let localVarQueryParameters = {};
|
|
@@ -18730,8 +18730,8 @@ class AccountingApi {
|
|
|
18730
18730
|
* @param body Byte array of file in body of request
|
|
18731
18731
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18732
18732
|
*/
|
|
18733
|
-
updateRepeatingInvoiceAttachmentByFileName(
|
|
18734
|
-
return __awaiter(this,
|
|
18733
|
+
updateRepeatingInvoiceAttachmentByFileName(xeroTenantId, repeatingInvoiceID, fileName, body, idempotencyKey, options = { headers: {} }) {
|
|
18734
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18735
18735
|
const localVarPath = this.basePath + '/RepeatingInvoices/{RepeatingInvoiceID}/Attachments/{FileName}'
|
|
18736
18736
|
.replace('{' + 'RepeatingInvoiceID' + '}', encodeURIComponent(String(repeatingInvoiceID)))
|
|
18737
18737
|
.replace('{' + 'FileName' + '}', encodeURIComponent(String(fileName)));
|
|
@@ -18835,8 +18835,8 @@ class AccountingApi {
|
|
|
18835
18835
|
* @param taxRates
|
|
18836
18836
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18837
18837
|
*/
|
|
18838
|
-
updateTaxRate(
|
|
18839
|
-
return __awaiter(this,
|
|
18838
|
+
updateTaxRate(xeroTenantId, taxRates, idempotencyKey, options = { headers: {} }) {
|
|
18839
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18840
18840
|
const localVarPath = this.basePath + '/TaxRates';
|
|
18841
18841
|
let localVarQueryParameters = {};
|
|
18842
18842
|
let localVarHeaderParams = Object.assign({}, this.defaultHeaders);
|
|
@@ -18909,8 +18909,8 @@ class AccountingApi {
|
|
|
18909
18909
|
* @param trackingCategory
|
|
18910
18910
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18911
18911
|
*/
|
|
18912
|
-
updateTrackingCategory(
|
|
18913
|
-
return __awaiter(this,
|
|
18912
|
+
updateTrackingCategory(xeroTenantId, trackingCategoryID, trackingCategory, idempotencyKey, options = { headers: {} }) {
|
|
18913
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18914
18914
|
const localVarPath = this.basePath + '/TrackingCategories/{TrackingCategoryID}'
|
|
18915
18915
|
.replace('{' + 'TrackingCategoryID' + '}', encodeURIComponent(String(trackingCategoryID)));
|
|
18916
18916
|
let localVarQueryParameters = {};
|
|
@@ -18989,8 +18989,8 @@ class AccountingApi {
|
|
|
18989
18989
|
* @param trackingOption
|
|
18990
18990
|
* @param idempotencyKey This allows you to safely retry requests without the risk of duplicate processing. 128 character max.
|
|
18991
18991
|
*/
|
|
18992
|
-
updateTrackingOptions(
|
|
18993
|
-
return __awaiter(this,
|
|
18992
|
+
updateTrackingOptions(xeroTenantId, trackingCategoryID, trackingOptionID, trackingOption, idempotencyKey, options = { headers: {} }) {
|
|
18993
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
18994
18994
|
const localVarPath = this.basePath + '/TrackingCategories/{TrackingCategoryID}/Options/{TrackingOptionID}'
|
|
18995
18995
|
.replace('{' + 'TrackingCategoryID' + '}', encodeURIComponent(String(trackingCategoryID)))
|
|
18996
18996
|
.replace('{' + 'TrackingOptionID' + '}', encodeURIComponent(String(trackingOptionID)));
|