yellowgrid-api-ts 3.2.139-dev.0 → 3.2.140-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 +8 -0
- package/api.ts +356 -0
- package/dist/api.d.ts +202 -0
- package/dist/api.js +342 -4
- package/docs/AccountFinanceDTO.md +35 -0
- package/docs/AccountsApi.md +232 -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
|
|
@@ -1197,6 +1242,126 @@ var AccountsApiAxiosParamCreator = function (configuration) {
|
|
|
1197
1242
|
});
|
|
1198
1243
|
});
|
|
1199
1244
|
},
|
|
1245
|
+
/**
|
|
1246
|
+
* Set Account Credit Limit
|
|
1247
|
+
* @param {string} id Xero ID
|
|
1248
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
1249
|
+
* @param {*} [options] Override http request option.
|
|
1250
|
+
* @throws {RequiredError}
|
|
1251
|
+
*/
|
|
1252
|
+
patchUpdateCreditLimit: function (id_1, patchUpdateCreditLimitRequest_1) {
|
|
1253
|
+
var args_1 = [];
|
|
1254
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1255
|
+
args_1[_i - 2] = arguments[_i];
|
|
1256
|
+
}
|
|
1257
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateCreditLimitRequest_1], args_1, true), void 0, function (id, patchUpdateCreditLimitRequest, options) {
|
|
1258
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1259
|
+
if (options === void 0) { options = {}; }
|
|
1260
|
+
return __generator(this, function (_a) {
|
|
1261
|
+
// verify required parameter 'id' is not null or undefined
|
|
1262
|
+
(0, common_1.assertParamExists)('patchUpdateCreditLimit', 'id', id);
|
|
1263
|
+
localVarPath = "/admin/accounts/{id}/creditLimit"
|
|
1264
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1265
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1266
|
+
if (configuration) {
|
|
1267
|
+
baseOptions = configuration.baseOptions;
|
|
1268
|
+
}
|
|
1269
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1270
|
+
localVarHeaderParameter = {};
|
|
1271
|
+
localVarQueryParameter = {};
|
|
1272
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1273
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1274
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1275
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1276
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1277
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateCreditLimitRequest, localVarRequestOptions, configuration);
|
|
1278
|
+
return [2 /*return*/, {
|
|
1279
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1280
|
+
options: localVarRequestOptions,
|
|
1281
|
+
}];
|
|
1282
|
+
});
|
|
1283
|
+
});
|
|
1284
|
+
},
|
|
1285
|
+
/**
|
|
1286
|
+
* Set Account Price List
|
|
1287
|
+
* @param {string} id Xero ID
|
|
1288
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
1289
|
+
* @param {*} [options] Override http request option.
|
|
1290
|
+
* @throws {RequiredError}
|
|
1291
|
+
*/
|
|
1292
|
+
patchUpdatePriceList: function (id_1, patchUpdatePriceListRequest_1) {
|
|
1293
|
+
var args_1 = [];
|
|
1294
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1295
|
+
args_1[_i - 2] = arguments[_i];
|
|
1296
|
+
}
|
|
1297
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdatePriceListRequest_1], args_1, true), void 0, function (id, patchUpdatePriceListRequest, options) {
|
|
1298
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1299
|
+
if (options === void 0) { options = {}; }
|
|
1300
|
+
return __generator(this, function (_a) {
|
|
1301
|
+
// verify required parameter 'id' is not null or undefined
|
|
1302
|
+
(0, common_1.assertParamExists)('patchUpdatePriceList', 'id', id);
|
|
1303
|
+
localVarPath = "/admin/accounts/{id}/priceList"
|
|
1304
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1305
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1306
|
+
if (configuration) {
|
|
1307
|
+
baseOptions = configuration.baseOptions;
|
|
1308
|
+
}
|
|
1309
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1310
|
+
localVarHeaderParameter = {};
|
|
1311
|
+
localVarQueryParameter = {};
|
|
1312
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1313
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1314
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1315
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1316
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1317
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdatePriceListRequest, localVarRequestOptions, configuration);
|
|
1318
|
+
return [2 /*return*/, {
|
|
1319
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1320
|
+
options: localVarRequestOptions,
|
|
1321
|
+
}];
|
|
1322
|
+
});
|
|
1323
|
+
});
|
|
1324
|
+
},
|
|
1325
|
+
/**
|
|
1326
|
+
* Set Account SIP Channel Cost
|
|
1327
|
+
* @param {string} id Xero ID
|
|
1328
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
1329
|
+
* @param {*} [options] Override http request option.
|
|
1330
|
+
* @throws {RequiredError}
|
|
1331
|
+
*/
|
|
1332
|
+
patchUpdateSipChannelCost: function (id_1, patchUpdateSipChannelCostRequest_1) {
|
|
1333
|
+
var args_1 = [];
|
|
1334
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
1335
|
+
args_1[_i - 2] = arguments[_i];
|
|
1336
|
+
}
|
|
1337
|
+
return __awaiter(_this, __spreadArray([id_1, patchUpdateSipChannelCostRequest_1], args_1, true), void 0, function (id, patchUpdateSipChannelCostRequest, options) {
|
|
1338
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1339
|
+
if (options === void 0) { options = {}; }
|
|
1340
|
+
return __generator(this, function (_a) {
|
|
1341
|
+
// verify required parameter 'id' is not null or undefined
|
|
1342
|
+
(0, common_1.assertParamExists)('patchUpdateSipChannelCost', 'id', id);
|
|
1343
|
+
localVarPath = "/admin/accounts/{id}/channelCost"
|
|
1344
|
+
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
1345
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1346
|
+
if (configuration) {
|
|
1347
|
+
baseOptions = configuration.baseOptions;
|
|
1348
|
+
}
|
|
1349
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
1350
|
+
localVarHeaderParameter = {};
|
|
1351
|
+
localVarQueryParameter = {};
|
|
1352
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1353
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
1354
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1355
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1356
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1357
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchUpdateSipChannelCostRequest, localVarRequestOptions, configuration);
|
|
1358
|
+
return [2 /*return*/, {
|
|
1359
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1360
|
+
options: localVarRequestOptions,
|
|
1361
|
+
}];
|
|
1362
|
+
});
|
|
1363
|
+
});
|
|
1364
|
+
},
|
|
1200
1365
|
/**
|
|
1201
1366
|
* Create Account Contact
|
|
1202
1367
|
* @param {string} id Account Xero ID
|
|
@@ -1733,6 +1898,28 @@ var AccountsApiFp = function (configuration) {
|
|
|
1733
1898
|
});
|
|
1734
1899
|
});
|
|
1735
1900
|
},
|
|
1901
|
+
/**
|
|
1902
|
+
* Delete Account
|
|
1903
|
+
* @param {string} id Account Xero ID
|
|
1904
|
+
* @param {*} [options] Override http request option.
|
|
1905
|
+
* @throws {RequiredError}
|
|
1906
|
+
*/
|
|
1907
|
+
deleteArchiveAccount: function (id, options) {
|
|
1908
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1909
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
1910
|
+
var _a, _b, _c;
|
|
1911
|
+
return __generator(this, function (_d) {
|
|
1912
|
+
switch (_d.label) {
|
|
1913
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteArchiveAccount(id, options)];
|
|
1914
|
+
case 1:
|
|
1915
|
+
localVarAxiosArgs = _d.sent();
|
|
1916
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1917
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.deleteArchiveAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1918
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
1919
|
+
}
|
|
1920
|
+
});
|
|
1921
|
+
});
|
|
1922
|
+
},
|
|
1736
1923
|
/**
|
|
1737
1924
|
* Delete client credentials
|
|
1738
1925
|
* @summary Delete client credentials
|
|
@@ -2168,6 +2355,75 @@ var AccountsApiFp = function (configuration) {
|
|
|
2168
2355
|
});
|
|
2169
2356
|
});
|
|
2170
2357
|
},
|
|
2358
|
+
/**
|
|
2359
|
+
* Set Account Credit Limit
|
|
2360
|
+
* @param {string} id Xero ID
|
|
2361
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
2362
|
+
* @param {*} [options] Override http request option.
|
|
2363
|
+
* @throws {RequiredError}
|
|
2364
|
+
*/
|
|
2365
|
+
patchUpdateCreditLimit: function (id, patchUpdateCreditLimitRequest, options) {
|
|
2366
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2367
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2368
|
+
var _a, _b, _c;
|
|
2369
|
+
return __generator(this, function (_d) {
|
|
2370
|
+
switch (_d.label) {
|
|
2371
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options)];
|
|
2372
|
+
case 1:
|
|
2373
|
+
localVarAxiosArgs = _d.sent();
|
|
2374
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2375
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateCreditLimit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2376
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2377
|
+
}
|
|
2378
|
+
});
|
|
2379
|
+
});
|
|
2380
|
+
},
|
|
2381
|
+
/**
|
|
2382
|
+
* Set Account Price List
|
|
2383
|
+
* @param {string} id Xero ID
|
|
2384
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
2385
|
+
* @param {*} [options] Override http request option.
|
|
2386
|
+
* @throws {RequiredError}
|
|
2387
|
+
*/
|
|
2388
|
+
patchUpdatePriceList: function (id, patchUpdatePriceListRequest, options) {
|
|
2389
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2390
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2391
|
+
var _a, _b, _c;
|
|
2392
|
+
return __generator(this, function (_d) {
|
|
2393
|
+
switch (_d.label) {
|
|
2394
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdatePriceList(id, patchUpdatePriceListRequest, options)];
|
|
2395
|
+
case 1:
|
|
2396
|
+
localVarAxiosArgs = _d.sent();
|
|
2397
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2398
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdatePriceList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2399
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2400
|
+
}
|
|
2401
|
+
});
|
|
2402
|
+
});
|
|
2403
|
+
},
|
|
2404
|
+
/**
|
|
2405
|
+
* Set Account SIP Channel Cost
|
|
2406
|
+
* @param {string} id Xero ID
|
|
2407
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
2408
|
+
* @param {*} [options] Override http request option.
|
|
2409
|
+
* @throws {RequiredError}
|
|
2410
|
+
*/
|
|
2411
|
+
patchUpdateSipChannelCost: function (id, patchUpdateSipChannelCostRequest, options) {
|
|
2412
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2413
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
2414
|
+
var _a, _b, _c;
|
|
2415
|
+
return __generator(this, function (_d) {
|
|
2416
|
+
switch (_d.label) {
|
|
2417
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options)];
|
|
2418
|
+
case 1:
|
|
2419
|
+
localVarAxiosArgs = _d.sent();
|
|
2420
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2421
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.patchUpdateSipChannelCost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2422
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
2423
|
+
}
|
|
2424
|
+
});
|
|
2425
|
+
});
|
|
2426
|
+
},
|
|
2171
2427
|
/**
|
|
2172
2428
|
* Create Account Contact
|
|
2173
2429
|
* @param {string} id Account Xero ID
|
|
@@ -2489,6 +2745,15 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2489
2745
|
deleteAdminUpdateAccountContact: function (id, contactId, options) {
|
|
2490
2746
|
return localVarFp.deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(axios, basePath); });
|
|
2491
2747
|
},
|
|
2748
|
+
/**
|
|
2749
|
+
* Delete Account
|
|
2750
|
+
* @param {string} id Account Xero ID
|
|
2751
|
+
* @param {*} [options] Override http request option.
|
|
2752
|
+
* @throws {RequiredError}
|
|
2753
|
+
*/
|
|
2754
|
+
deleteArchiveAccount: function (id, options) {
|
|
2755
|
+
return localVarFp.deleteArchiveAccount(id, options).then(function (request) { return request(axios, basePath); });
|
|
2756
|
+
},
|
|
2492
2757
|
/**
|
|
2493
2758
|
* Delete client credentials
|
|
2494
2759
|
* @summary Delete client credentials
|
|
@@ -2677,6 +2942,36 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
2677
2942
|
patchUpdateAccountVatNumber: function (id, patchUpdateAccountVatNumberRequest, options) {
|
|
2678
2943
|
return localVarFp.patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2679
2944
|
},
|
|
2945
|
+
/**
|
|
2946
|
+
* Set Account Credit Limit
|
|
2947
|
+
* @param {string} id Xero ID
|
|
2948
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
2949
|
+
* @param {*} [options] Override http request option.
|
|
2950
|
+
* @throws {RequiredError}
|
|
2951
|
+
*/
|
|
2952
|
+
patchUpdateCreditLimit: function (id, patchUpdateCreditLimitRequest, options) {
|
|
2953
|
+
return localVarFp.patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2954
|
+
},
|
|
2955
|
+
/**
|
|
2956
|
+
* Set Account Price List
|
|
2957
|
+
* @param {string} id Xero ID
|
|
2958
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
2959
|
+
* @param {*} [options] Override http request option.
|
|
2960
|
+
* @throws {RequiredError}
|
|
2961
|
+
*/
|
|
2962
|
+
patchUpdatePriceList: function (id, patchUpdatePriceListRequest, options) {
|
|
2963
|
+
return localVarFp.patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2964
|
+
},
|
|
2965
|
+
/**
|
|
2966
|
+
* Set Account SIP Channel Cost
|
|
2967
|
+
* @param {string} id Xero ID
|
|
2968
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
2969
|
+
* @param {*} [options] Override http request option.
|
|
2970
|
+
* @throws {RequiredError}
|
|
2971
|
+
*/
|
|
2972
|
+
patchUpdateSipChannelCost: function (id, patchUpdateSipChannelCostRequest, options) {
|
|
2973
|
+
return localVarFp.patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then(function (request) { return request(axios, basePath); });
|
|
2974
|
+
},
|
|
2680
2975
|
/**
|
|
2681
2976
|
* Create Account Contact
|
|
2682
2977
|
* @param {string} id Account Xero ID
|
|
@@ -2832,6 +3127,16 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
2832
3127
|
var _this = this;
|
|
2833
3128
|
return (0, exports.AccountsApiFp)(this.configuration).deleteAdminUpdateAccountContact(id, contactId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2834
3129
|
};
|
|
3130
|
+
/**
|
|
3131
|
+
* Delete Account
|
|
3132
|
+
* @param {string} id Account Xero ID
|
|
3133
|
+
* @param {*} [options] Override http request option.
|
|
3134
|
+
* @throws {RequiredError}
|
|
3135
|
+
*/
|
|
3136
|
+
AccountsApi.prototype.deleteArchiveAccount = function (id, options) {
|
|
3137
|
+
var _this = this;
|
|
3138
|
+
return (0, exports.AccountsApiFp)(this.configuration).deleteArchiveAccount(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3139
|
+
};
|
|
2835
3140
|
/**
|
|
2836
3141
|
* Delete client credentials
|
|
2837
3142
|
* @summary Delete client credentials
|
|
@@ -3039,6 +3344,39 @@ var AccountsApi = /** @class */ (function (_super) {
|
|
|
3039
3344
|
var _this = this;
|
|
3040
3345
|
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateAccountVatNumber(id, patchUpdateAccountVatNumberRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3041
3346
|
};
|
|
3347
|
+
/**
|
|
3348
|
+
* Set Account Credit Limit
|
|
3349
|
+
* @param {string} id Xero ID
|
|
3350
|
+
* @param {PatchUpdateCreditLimitRequest} [patchUpdateCreditLimitRequest] Credit Limit Request
|
|
3351
|
+
* @param {*} [options] Override http request option.
|
|
3352
|
+
* @throws {RequiredError}
|
|
3353
|
+
*/
|
|
3354
|
+
AccountsApi.prototype.patchUpdateCreditLimit = function (id, patchUpdateCreditLimitRequest, options) {
|
|
3355
|
+
var _this = this;
|
|
3356
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateCreditLimit(id, patchUpdateCreditLimitRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3357
|
+
};
|
|
3358
|
+
/**
|
|
3359
|
+
* Set Account Price List
|
|
3360
|
+
* @param {string} id Xero ID
|
|
3361
|
+
* @param {PatchUpdatePriceListRequest} [patchUpdatePriceListRequest] Price List Request
|
|
3362
|
+
* @param {*} [options] Override http request option.
|
|
3363
|
+
* @throws {RequiredError}
|
|
3364
|
+
*/
|
|
3365
|
+
AccountsApi.prototype.patchUpdatePriceList = function (id, patchUpdatePriceListRequest, options) {
|
|
3366
|
+
var _this = this;
|
|
3367
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdatePriceList(id, patchUpdatePriceListRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3368
|
+
};
|
|
3369
|
+
/**
|
|
3370
|
+
* Set Account SIP Channel Cost
|
|
3371
|
+
* @param {string} id Xero ID
|
|
3372
|
+
* @param {PatchUpdateSipChannelCostRequest} [patchUpdateSipChannelCostRequest] SIP Channel Cost Request
|
|
3373
|
+
* @param {*} [options] Override http request option.
|
|
3374
|
+
* @throws {RequiredError}
|
|
3375
|
+
*/
|
|
3376
|
+
AccountsApi.prototype.patchUpdateSipChannelCost = function (id, patchUpdateSipChannelCostRequest, options) {
|
|
3377
|
+
var _this = this;
|
|
3378
|
+
return (0, exports.AccountsApiFp)(this.configuration).patchUpdateSipChannelCost(id, patchUpdateSipChannelCostRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3379
|
+
};
|
|
3042
3380
|
/**
|
|
3043
3381
|
* Create Account Contact
|
|
3044
3382
|
* @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)
|