yellowgrid-api-ts 3.2.139-dev.0 → 3.2.141-dev.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/.openapi-generator/FILES +4 -0
- package/README.md +9 -0
- package/api.ts +420 -0
- package/dist/api.d.ts +230 -0
- package/dist/api.js +420 -4
- package/docs/AccountFinanceDTO.md +35 -0
- package/docs/AccountsApi.md +287 -0
- package/docs/CustomerItemRequestDTO.md +2 -0
- package/docs/DetailedItemRequestDTO.md +2 -0
- package/docs/ItemDTO.md +2 -0
- package/docs/OrderItemDTO.md +2 -0
- package/docs/PatchUpdateCreditLimitRequest.md +20 -0
- package/docs/PatchUpdatePriceListRequest.md +20 -0
- package/docs/PatchUpdateSipChannelCostRequest.md +20 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -84,10 +84,10 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
84
84
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
85
|
};
|
|
86
86
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
87
|
-
exports.
|
|
88
|
-
exports.
|
|
89
|
-
exports.
|
|
90
|
-
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = void 0;
|
|
87
|
+
exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.ProspectDTOStatusEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelRoleEnum = void 0;
|
|
88
|
+
exports.PricingApiFp = exports.PricingApiAxiosParamCreator = exports.PostPrintShippingLabelPrinterEnum = exports.GetGetOrdersFilterEnum = exports.GetGetOrdersStatusEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.PostAuthoriseScopeEnum = exports.PostAccessTokenTokenExchangeTypeEnum = exports.PostAccessTokenScopeEnum = exports.PostAccessTokenGrantTypeEnum = exports.OAuth20Api = exports.OAuth20ApiFactory = exports.OAuth20ApiFp = exports.OAuth20ApiAxiosParamCreator = exports.NumberPortingApi = exports.NumberPortingApiFactory = exports.NumberPortingApiFp = exports.NumberPortingApiAxiosParamCreator = exports.MyPBXToolsApi = exports.MyPBXToolsApiFactory = exports.MyPBXToolsApiFp = exports.MyPBXToolsApiAxiosParamCreator = exports.GetGetTenantsStatusEnum = exports.Class3CXMultiTenantApi = exports.Class3CXMultiTenantApiFactory = exports.Class3CXMultiTenantApiFp = exports.Class3CXMultiTenantApiAxiosParamCreator = exports.GetGetPriceSchoolTypeEnum = exports.GetGetPriceLicenceTypeEnum = exports.Class3CXIntegrationsApi = exports.Class3CXIntegrationsApiFactory = exports.Class3CXIntegrationsApiFp = exports.Class3CXIntegrationsApiAxiosParamCreator = exports.PostResizeInstanceSizeEnum = exports.PostFailoverInstanceTypeEnum = exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = void 0;
|
|
89
|
+
exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.StockManagementApi = exports.StockManagementApiFactory = exports.StockManagementApiFp = exports.StockManagementApiAxiosParamCreator = exports.ShippingApi = exports.ShippingApiFactory = exports.ShippingApiFp = exports.ShippingApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.SMSApi = exports.SMSApiFactory = exports.SMSApiFp = exports.SMSApiAxiosParamCreator = exports.SIPTrunksApi = exports.SIPTrunksApiFactory = exports.SIPTrunksApiFp = exports.SIPTrunksApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = void 0;
|
|
90
|
+
exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = void 0;
|
|
91
91
|
var axios_1 = require("axios");
|
|
92
92
|
// Some imports not used depending on template conditions
|
|
93
93
|
// @ts-ignore
|
|
@@ -273,6 +273,15 @@ exports.OrderTotalModelCurrencyEnum = {
|
|
|
273
273
|
Thb: 'THB',
|
|
274
274
|
Zar: 'ZAR'
|
|
275
275
|
};
|
|
276
|
+
exports.PatchUpdatePriceListRequestPriceListEnum = {
|
|
277
|
+
Rrp: 'RRP',
|
|
278
|
+
Trade: 'Trade',
|
|
279
|
+
Wholesale: 'Wholesale',
|
|
280
|
+
Itsp: 'ITSP',
|
|
281
|
+
SubDisti: 'Sub Disti',
|
|
282
|
+
Distributor: 'Distributor',
|
|
283
|
+
HotelDisti: 'Hotel Disti'
|
|
284
|
+
};
|
|
276
285
|
exports.ProspectDTOStatusEnum = {
|
|
277
286
|
NoCallBackSet: 'No Call Back Set',
|
|
278
287
|
CallBackDue: 'Call Back Due',
|
|
@@ -469,6 +478,42 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
469
478
|
});
|
|
470
479
|
});
|
|
471
480
|
},
|
|
481
|
+
/**
|
|
482
|
+
* Delete Account
|
|
483
|
+
* @param {string} id Account Xero ID
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
*/
|
|
487
|
+
deleteArchiveAccount: function (id_1) {
|
|
488
|
+
var args_1 = [];
|
|
489
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
490
|
+
args_1[_i - 1] = arguments[_i];
|
|
491
|
+
}
|
|
492
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
493
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
494
|
+
if (options === void 0) { options = {}; }
|
|
495
|
+
return __generator(this, function (_a) {
|
|
496
|
+
// verify required parameter 'id' is not null or undefined
|
|
497
|
+
(0, common_1.assertParamExists)('deleteArchiveAccount', 'id', id);
|
|
498
|
+
localVarPath = "/admin/accounts/{id}/archive"
|
|
499
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
500
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
501
|
+
if (configuration) {
|
|
502
|
+
baseOptions = configuration.baseOptions;
|
|
503
|
+
}
|
|
504
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
505
|
+
localVarHeaderParameter = {};
|
|
506
|
+
localVarQueryParameter = {};
|
|
507
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
508
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
509
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
510
|
+
return [2 /*return*/, {
|
|
511
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
512
|
+
options: localVarRequestOptions,
|
|
513
|
+
}];
|
|
514
|
+
});
|
|
515
|
+
});
|
|
516
|
+
},
|
|
472
517
|
/**
|
|
473
518
|
* Delete client credentials
|
|
474
519
|
* @summary Delete client credentials
|
|
@@ -506,6 +551,43 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
506
551
|
});
|
|
507
552
|
});
|
|
508
553
|
},
|
|
554
|
+
/**
|
|
555
|
+
* Get Account Finance
|
|
556
|
+
* @param {string} id Account Xero ID
|
|
557
|
+
* @param {*} [options] Override http request option.
|
|
558
|
+
* @throws {RequiredError}
|
|
559
|
+
*/
|
|
560
|
+
deleteGetFinanceSettings: function (id_1) {
|
|
561
|
+
var args_1 = [];
|
|
562
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
563
|
+
args_1[_i - 1] = arguments[_i];
|
|
564
|
+
}
|
|
565
|
+
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
566
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
567
|
+
if (options === void 0) { options = {}; }
|
|
568
|
+
return __generator(this, function (_a) {
|
|
569
|
+
// verify required parameter 'id' is not null or undefined
|
|
570
|
+
(0, common_1.assertParamExists)('deleteGetFinanceSettings', 'id', id);
|
|
571
|
+
localVarPath = "/admin/accounts/{id}/finance"
|
|
572
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
573
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
574
|
+
if (configuration) {
|
|
575
|
+
baseOptions = configuration.baseOptions;
|
|
576
|
+
}
|
|
577
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
578
|
+
localVarHeaderParameter = {};
|
|
579
|
+
localVarQueryParameter = {};
|
|
580
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
581
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
582
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
583
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
584
|
+
return [2 /*return*/, {
|
|
585
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
586
|
+
options: localVarRequestOptions,
|
|
587
|
+
}];
|
|
588
|
+
});
|
|
589
|
+
});
|
|
590
|
+
},
|
|
509
591
|
/**
|
|
510
592
|
* Delete Account Contacts
|
|
511
593
|
* @summary Delete Account Contact
|
|
@@ -1197,6 +1279,126 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1197
1279
|
});
|
|
1198
1280
|
});
|
|
1199
1281
|
},
|
|
1282
|
+
/**
|
|
1283
|
+
* Set Account Credit Limit
|
|
1284
|
+
* @param {string} id Xero ID
|
|
1285
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
1286
|
+
* @param {*} [options] Override http request option.
|
|
1287
|
+
* @throws {RequiredError}
|
|
1288
|
+
*/
|
|
1289
|
+
patchUpdateCreditLimit: function (id_1, patchUpdateCreditLimitRequest_1) {
|
|
1290
|
+
var args_1 = [];
|
|
1291
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1292
|
+
args_1[_i - 2] = arguments[_i];
|
|
1293
|
+
}
|
|
1294
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateCreditLimitRequest_1], args_1, true), void 0, function (id, patchUpdateCreditLimitRequest, options) {
|
|
1295
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1296
|
+
if (options === void 0) { options = {}; }
|
|
1297
|
+
return __generator(this, function (_a) {
|
|
1298
|
+
// verify required parameter 'id' is not null or undefined
|
|
1299
|
+
(0, common_1.assertParamExists)('patchUpdateCreditLimit', 'id', id);
|
|
1300
|
+
localVarPath = "/admin/accounts/{id}/creditLimit"
|
|
1301
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1302
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1303
|
+
if (configuration) {
|
|
1304
|
+
baseOptions = configuration.baseOptions;
|
|
1305
|
+
}
|
|
1306
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1307
|
+
localVarHeaderParameter = {};
|
|
1308
|
+
localVarQueryParameter = {};
|
|
1309
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1310
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1311
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1312
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1313
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1314
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateCreditLimitRequest, localVarRequestOptions, configuration);
|
|
1315
|
+
return [2 /*return*/, {
|
|
1316
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1317
|
+
options: localVarRequestOptions,
|
|
1318
|
+
}];
|
|
1319
|
+
});
|
|
1320
|
+
});
|
|
1321
|
+
},
|
|
1322
|
+
/**
|
|
1323
|
+
* Set Account Price List
|
|
1324
|
+
* @param {string} id Xero ID
|
|
1325
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
1326
|
+
* @param {*} [options] Override http request option.
|
|
1327
|
+
* @throws {RequiredError}
|
|
1328
|
+
*/
|
|
1329
|
+
patchUpdatePriceList: function (id_1, patchUpdatePriceListRequest_1) {
|
|
1330
|
+
var args_1 = [];
|
|
1331
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1332
|
+
args_1[_i - 2] = arguments[_i];
|
|
1333
|
+
}
|
|
1334
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdatePriceListRequest_1], args_1, true), void 0, function (id, patchUpdatePriceListRequest, options) {
|
|
1335
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1336
|
+
if (options === void 0) { options = {}; }
|
|
1337
|
+
return __generator(this, function (_a) {
|
|
1338
|
+
// verify required parameter 'id' is not null or undefined
|
|
1339
|
+
(0, common_1.assertParamExists)('patchUpdatePriceList', 'id', id);
|
|
1340
|
+
localVarPath = "/admin/accounts/{id}/priceList"
|
|
1341
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1342
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1343
|
+
if (configuration) {
|
|
1344
|
+
baseOptions = configuration.baseOptions;
|
|
1345
|
+
}
|
|
1346
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1347
|
+
localVarHeaderParameter = {};
|
|
1348
|
+
localVarQueryParameter = {};
|
|
1349
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1350
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1351
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1352
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1353
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1354
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdatePriceListRequest, localVarRequestOptions, configuration);
|
|
1355
|
+
return [2 /*return*/, {
|
|
1356
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1357
|
+
options: localVarRequestOptions,
|
|
1358
|
+
}];
|
|
1359
|
+
});
|
|
1360
|
+
});
|
|
1361
|
+
},
|
|
1362
|
+
/**
|
|
1363
|
+
* Set Account SIP Channel Cost
|
|
1364
|
+
* @param {string} id Xero ID
|
|
1365
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
1366
|
+
* @param {*} [options] Override http request option.
|
|
1367
|
+
* @throws {RequiredError}
|
|
1368
|
+
*/
|
|
1369
|
+
patchUpdateSipChannelCost: function (id_1, patchUpdateSipChannelCostRequest_1) {
|
|
1370
|
+
var args_1 = [];
|
|
1371
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1372
|
+
args_1[_i - 2] = arguments[_i];
|
|
1373
|
+
}
|
|
1374
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateSipChannelCostRequest_1], args_1, true), void 0, function (id, patchUpdateSipChannelCostRequest, options) {
|
|
1375
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1376
|
+
if (options === void 0) { options = {}; }
|
|
1377
|
+
return __generator(this, function (_a) {
|
|
1378
|
+
// verify required parameter 'id' is not null or undefined
|
|
1379
|
+
(0, common_1.assertParamExists)('patchUpdateSipChannelCost', 'id', id);
|
|
1380
|
+
localVarPath = "/admin/accounts/{id}/channelCost"
|
|
1381
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1382
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1383
|
+
if (configuration) {
|
|
1384
|
+
baseOptions = configuration.baseOptions;
|
|
1385
|
+
}
|
|
1386
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1387
|
+
localVarHeaderParameter = {};
|
|
1388
|
+
localVarQueryParameter = {};
|
|
1389
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1390
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1391
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1392
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1393
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1394
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateSipChannelCostRequest, localVarRequestOptions, configuration);
|
|
1395
|
+
return [2 /*return*/, {
|
|
1396
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1397
|
+
options: localVarRequestOptions,
|
|
1398
|
+
}];
|
|
1399
|
+
});
|
|
1400
|
+
});
|
|
1401
|
+
},
|
|
1200
1402
|
/**
|
|
1201
1403
|
* Create Account Contact
|
|
1202
1404
|
* @param {string} id Account Xero ID
|
|
@@ -1733,6 +1935,28 @@ var AccountsApiFp = function (configuration) {
|
|
|
1733
1935
|
});
|
|
1734
1936
|
});
|
|
1735
1937
|
},
|
|
1938
|
+
/**
|
|
1939
|
+
* Delete Account
|
|
1940
|
+
* @param {string} id Account Xero ID
|
|
1941
|
+
* @param {*} [options] Override http request option.
|
|
1942
|
+
* @throws {RequiredError}
|
|
1943
|
+
*/
|
|
1944
|
+
deleteArchiveAccount: function (id, options) {
|
|
1945
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1946
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1947
|
+
var _a, _b, _c;
|
|
1948
|
+
return __generator(this, function (_d) {
|
|
1949
|
+
switch (_d.label) {
|
|
1950
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteArchiveAccount(id, options)];
|
|
1951
|
+
case 1:
|
|
1952
|
+
localVarAxiosArgs = _d.sent();
|
|
1953
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1954
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteArchiveAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1955
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1956
|
+
}
|
|
1957
|
+
});
|
|
1958
|
+
});
|
|
1959
|
+
},
|
|
1736
1960
|
/**
|
|
1737
1961
|
* Delete client credentials
|
|
1738
1962
|
* @summary Delete client credentials
|
|
@@ -1756,6 +1980,28 @@ var AccountsApiFp = function (configuration) {
|
|
|
1756
1980
|
});
|
|
1757
1981
|
});
|
|
1758
1982
|
},
|
|
1983
|
+
/**
|
|
1984
|
+
* Get Account Finance
|
|
1985
|
+
* @param {string} id Account Xero ID
|
|
1986
|
+
* @param {*} [options] Override http request option.
|
|
1987
|
+
* @throws {RequiredError}
|
|
1988
|
+
*/
|
|
1989
|
+
deleteGetFinanceSettings: function (id, options) {
|
|
1990
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1991
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1992
|
+
var _a, _b, _c;
|
|
1993
|
+
return __generator(this, function (_d) {
|
|
1994
|
+
switch (_d.label) {
|
|
1995
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteGetFinanceSettings(id, options)];
|
|
1996
|
+
case 1:
|
|
1997
|
+
localVarAxiosArgs = _d.sent();
|
|
1998
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1999
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteGetFinanceSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2000
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2001
|
+
}
|
|
2002
|
+
});
|
|
2003
|
+
});
|
|
2004
|
+
},
|
|
1759
2005
|
/**
|
|
1760
2006
|
* Delete Account Contacts
|
|
1761
2007
|
* @summary Delete Account Contact
|
|
@@ -2168,6 +2414,75 @@ var AccountsApiFp = function (configuration) {
|
|
|
2168
2414
|
});
|
|
2169
2415
|
});
|
|
2170
2416
|
},
|
|
2417
|
+
/**
|
|
2418
|
+
* Set Account Credit Limit
|
|
2419
|
+
* @param {string} id Xero ID
|
|
2420
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
2421
|
+
* @param {*} [options] Override http request option.
|
|
2422
|
+
* @throws {RequiredError}
|
|
2423
|
+
*/
|
|
2424
|
+
patchUpdateCreditLimit: function (id, patchUpdateCreditLimitRequest, options) {
|
|
2425
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2426
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2427
|
+
var _a, _b, _c;
|
|
2428
|
+
return __generator(this, function (_d) {
|
|
2429
|
+
switch (_d.label) {
|
|
2430
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options)];
|
|
2431
|
+
case 1:
|
|
2432
|
+
localVarAxiosArgs = _d.sent();
|
|
2433
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2434
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateCreditLimit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2435
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2436
|
+
}
|
|
2437
|
+
});
|
|
2438
|
+
});
|
|
2439
|
+
},
|
|
2440
|
+
/**
|
|
2441
|
+
* Set Account Price List
|
|
2442
|
+
* @param {string} id Xero ID
|
|
2443
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
2444
|
+
* @param {*} [options] Override http request option.
|
|
2445
|
+
* @throws {RequiredError}
|
|
2446
|
+
*/
|
|
2447
|
+
patchUpdatePriceList: function (id, patchUpdatePriceListRequest, options) {
|
|
2448
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2449
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2450
|
+
var _a, _b, _c;
|
|
2451
|
+
return __generator(this, function (_d) {
|
|
2452
|
+
switch (_d.label) {
|
|
2453
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdatePriceList(id, patchUpdatePriceListRequest, options)];
|
|
2454
|
+
case 1:
|
|
2455
|
+
localVarAxiosArgs = _d.sent();
|
|
2456
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2457
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdatePriceList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2458
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2459
|
+
}
|
|
2460
|
+
});
|
|
2461
|
+
});
|
|
2462
|
+
},
|
|
2463
|
+
/**
|
|
2464
|
+
* Set Account SIP Channel Cost
|
|
2465
|
+
* @param {string} id Xero ID
|
|
2466
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
2467
|
+
* @param {*} [options] Override http request option.
|
|
2468
|
+
* @throws {RequiredError}
|
|
2469
|
+
*/
|
|
2470
|
+
patchUpdateSipChannelCost: function (id, patchUpdateSipChannelCostRequest, options) {
|
|
2471
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2472
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2473
|
+
var _a, _b, _c;
|
|
2474
|
+
return __generator(this, function (_d) {
|
|
2475
|
+
switch (_d.label) {
|
|
2476
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options)];
|
|
2477
|
+
case 1:
|
|
2478
|
+
localVarAxiosArgs = _d.sent();
|
|
2479
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2480
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateSipChannelCost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2481
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2482
|
+
}
|
|
2483
|
+
});
|
|
2484
|
+
});
|
|
2485
|
+
},
|
|
2171
2486
|
/**
|
|
2172
2487
|
* Create Account Contact
|
|
2173
2488
|
* @param {string} id Account Xero ID
|
|
@@ -2489,6 +2804,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2489
2804
|
deleteAdminUpdateAccountContact: function (id, contactId, options) {
|
|
2490
2805
|
return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
|
|
2491
2806
|
},
|
|
2807
|
+
/**
|
|
2808
|
+
* Delete Account
|
|
2809
|
+
* @param {string} id Account Xero ID
|
|
2810
|
+
* @param {*} [options] Override http request option.
|
|
2811
|
+
* @throws {RequiredError}
|
|
2812
|
+
*/
|
|
2813
|
+
deleteArchiveAccount: function (id, options) {
|
|
2814
|
+
return localVarFp.deleteArchiveAccount(id, options).then(function (request) { return request(axios, basePath); });
|
|
2815
|
+
},
|
|
2492
2816
|
/**
|
|
2493
2817
|
* Delete client credentials
|
|
2494
2818
|
* @summary Delete client credentials
|
|
@@ -2499,6 +2823,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2499
2823
|
deleteDeleteClientCredentials: function (id, options) {
|
|
2500
2824
|
return localVarFp.deleteDeleteClientCredentials(id, options).then(function (request) { return request(axios, basePath); });
|
|
2501
2825
|
},
|
|
2826
|
+
/**
|
|
2827
|
+
* Get Account Finance
|
|
2828
|
+
* @param {string} id Account Xero ID
|
|
2829
|
+
* @param {*} [options] Override http request option.
|
|
2830
|
+
* @throws {RequiredError}
|
|
2831
|
+
*/
|
|
2832
|
+
deleteGetFinanceSettings: function (id, options) {
|
|
2833
|
+
return localVarFp.deleteGetFinanceSettings(id, options).then(function (request) { return request(axios, basePath); });
|
|
2834
|
+
},
|
|
2502
2835
|
/**
|
|
2503
2836
|
* Delete Account Contacts
|
|
2504
2837
|
* @summary Delete Account Contact
|
|
@@ -2677,6 +3010,36 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2677
3010
|
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
2678
3011
|
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2679
3012
|
},
|
|
3013
|
+
/**
|
|
3014
|
+
* Set Account Credit Limit
|
|
3015
|
+
* @param {string} id Xero ID
|
|
3016
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
3017
|
+
* @param {*} [options] Override http request option.
|
|
3018
|
+
* @throws {RequiredError}
|
|
3019
|
+
*/
|
|
3020
|
+
patchUpdateCreditLimit: function (id, patchUpdateCreditLimitRequest, options) {
|
|
3021
|
+
return localVarFp.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3022
|
+
},
|
|
3023
|
+
/**
|
|
3024
|
+
* Set Account Price List
|
|
3025
|
+
* @param {string} id Xero ID
|
|
3026
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
3027
|
+
* @param {*} [options] Override http request option.
|
|
3028
|
+
* @throws {RequiredError}
|
|
3029
|
+
*/
|
|
3030
|
+
patchUpdatePriceList: function (id, patchUpdatePriceListRequest, options) {
|
|
3031
|
+
return localVarFp.patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3032
|
+
},
|
|
3033
|
+
/**
|
|
3034
|
+
* Set Account SIP Channel Cost
|
|
3035
|
+
* @param {string} id Xero ID
|
|
3036
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
3037
|
+
* @param {*} [options] Override http request option.
|
|
3038
|
+
* @throws {RequiredError}
|
|
3039
|
+
*/
|
|
3040
|
+
patchUpdateSipChannelCost: function (id, patchUpdateSipChannelCostRequest, options) {
|
|
3041
|
+
return localVarFp.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then(function (request) { return request(axios, basePath); });
|
|
3042
|
+
},
|
|
2680
3043
|
/**
|
|
2681
3044
|
* Create Account Contact
|
|
2682
3045
|
* @param {string} id Account Xero ID
|
|
@@ -2832,6 +3195,16 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2832
3195
|
var _this = this;
|
|
2833
3196
|
return (0, exports.AccountsApiFp)(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2834
3197
|
};
|
|
3198
|
+
/**
|
|
3199
|
+
* Delete Account
|
|
3200
|
+
* @param {string} id Account Xero ID
|
|
3201
|
+
* @param {*} [options] Override http request option.
|
|
3202
|
+
* @throws {RequiredError}
|
|
3203
|
+
*/
|
|
3204
|
+
AccountsApi.prototype.deleteArchiveAccount = function (id, options) {
|
|
3205
|
+
var _this = this;
|
|
3206
|
+
return (0, exports.AccountsApiFp)(this.configuration).deleteArchiveAccount(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3207
|
+
};
|
|
2835
3208
|
/**
|
|
2836
3209
|
* Delete client credentials
|
|
2837
3210
|
* @summary Delete client credentials
|
|
@@ -2843,6 +3216,16 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2843
3216
|
var _this = this;
|
|
2844
3217
|
return (0, exports.AccountsApiFp)(this.configuration).deleteDeleteClientCredentials(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2845
3218
|
};
|
|
3219
|
+
/**
|
|
3220
|
+
* Get Account Finance
|
|
3221
|
+
* @param {string} id Account Xero ID
|
|
3222
|
+
* @param {*} [options] Override http request option.
|
|
3223
|
+
* @throws {RequiredError}
|
|
3224
|
+
*/
|
|
3225
|
+
AccountsApi.prototype.deleteGetFinanceSettings = function (id, options) {
|
|
3226
|
+
var _this = this;
|
|
3227
|
+
return (0, exports.AccountsApiFp)(this.configuration).deleteGetFinanceSettings(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3228
|
+
};
|
|
2846
3229
|
/**
|
|
2847
3230
|
* Delete Account Contacts
|
|
2848
3231
|
* @summary Delete Account Contact
|
|
@@ -3039,6 +3422,39 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
3039
3422
|
var _this = this;
|
|
3040
3423
|
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3041
3424
|
};
|
|
3425
|
+
/**
|
|
3426
|
+
* Set Account Credit Limit
|
|
3427
|
+
* @param {string} id Xero ID
|
|
3428
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
3429
|
+
* @param {*} [options] Override http request option.
|
|
3430
|
+
* @throws {RequiredError}
|
|
3431
|
+
*/
|
|
3432
|
+
AccountsApi.prototype.patchUpdateCreditLimit = function (id, patchUpdateCreditLimitRequest, options) {
|
|
3433
|
+
var _this = this;
|
|
3434
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3435
|
+
};
|
|
3436
|
+
/**
|
|
3437
|
+
* Set Account Price List
|
|
3438
|
+
* @param {string} id Xero ID
|
|
3439
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
3440
|
+
* @param {*} [options] Override http request option.
|
|
3441
|
+
* @throws {RequiredError}
|
|
3442
|
+
*/
|
|
3443
|
+
AccountsApi.prototype.patchUpdatePriceList = function (id, patchUpdatePriceListRequest, options) {
|
|
3444
|
+
var _this = this;
|
|
3445
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3446
|
+
};
|
|
3447
|
+
/**
|
|
3448
|
+
* Set Account SIP Channel Cost
|
|
3449
|
+
* @param {string} id Xero ID
|
|
3450
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
3451
|
+
* @param {*} [options] Override http request option.
|
|
3452
|
+
* @throws {RequiredError}
|
|
3453
|
+
*/
|
|
3454
|
+
AccountsApi.prototype.patchUpdateSipChannelCost = function (id, patchUpdateSipChannelCostRequest, options) {
|
|
3455
|
+
var _this = this;
|
|
3456
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3457
|
+
};
|
|
3042
3458
|
/**
|
|
3043
3459
|
* Create Account Contact
|
|
3044
3460
|
* @param {string} id Account Xero ID
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# AccountFinanceDTO
|
|
2
|
+
|
|
3
|
+
Account Finance DTO
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**id** | **number** | Account ID | [optional] [default to undefined]
|
|
10
|
+
**xeroId** | **string** | Account Xero ID | [optional] [default to undefined]
|
|
11
|
+
**creditLimit** | **number** | Credit Limit | [optional] [default to undefined]
|
|
12
|
+
**balance** | **number** | Balance Used | [optional] [default to undefined]
|
|
13
|
+
**overdue** | **number** | Overdue Amount | [optional] [default to undefined]
|
|
14
|
+
**priceList** | [**CustomerPriceListEnum**](CustomerPriceListEnum.md) | | [optional] [default to undefined]
|
|
15
|
+
**sipChannelCost** | **number** | SIP Trunk Channel Cost | [optional] [default to undefined]
|
|
16
|
+
**xeroUrl** | **string** | Xero Contact URL | [optional] [default to undefined]
|
|
17
|
+
|
|
18
|
+
## Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import { AccountFinanceDTO } from 'yellowgrid-api-ts';
|
|
22
|
+
|
|
23
|
+
const instance: AccountFinanceDTO = {
|
|
24
|
+
id,
|
|
25
|
+
xeroId,
|
|
26
|
+
creditLimit,
|
|
27
|
+
balance,
|
|
28
|
+
overdue,
|
|
29
|
+
priceList,
|
|
30
|
+
sipChannelCost,
|
|
31
|
+
xeroUrl,
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|