yellowgrid-api-ts 3.2.247-dev.0 → 3.2.249-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/dist/api.js CHANGED
@@ -87,8 +87,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
87
87
  exports.ShippingServiceDTOCourierEnum = exports.ShippingRequestDTOPrinterEnum = exports.ShippingRequestDTOCourierEnum = exports.ShipmentRequestDTOCourierEnum = exports.ShipmentDTOCourierEnum = exports.ServiceStatusDTOStatusEnum = exports.ServiceHealthDTOGlobalStatusEnum = exports.SeriesDTOTypeEnum = exports.SdrReferenceType = exports.RmaSummaryDTOStatusEnum = exports.RmaRequestDTORequestedResolutionEnum = exports.RmaRequestDTOReasonEnum = exports.RmaItemDTOStatusEnum = exports.RmaDTOStatusEnum = exports.RmaDTOResolutionEnum = exports.RmaDTOReasonEnum = exports.RmaCreditItemRequestDTORefundPercentageEnum = exports.ResolutionRequestModelResolutionEnum = exports.ReportRequestDTOGraphTypeEnum = exports.ReportRequestDTOReportEnum = exports.ReasonRequestModelReasonEnum = exports.ProspectDTOStatusEnum = exports.PostGetServicePlansRequestPlanGroupEnum = exports.PatchUpdateTcxHostingPriceListRequestPriceListEnum = exports.PatchUpdatePriceListRequestPriceListEnum = exports.PasswordSenderDTOIntervalTypeEnum = exports.OrderTotalModelCurrencyEnum = exports.OrderRequestModelSchoolTypeEnum = exports.OrderRequestModelLicenceTypeEnum = exports.MultiTenantChangeResponseModelTypeEnum = exports.ItemResolutionRequestModelResolutionEnum = exports.ItemDiscountEntityTypeEnum = exports.HostingRegionDTOCodeEnum = exports.HostingChangeResponseModelTypeEnum = exports.GraphDTOCurrencyEnum = exports.EventDTOStatusEnum = exports.DivertResponseModelStatusEnum = exports.CustomerRateType = exports.AxisDataDTOTypeEnum = exports.AuditLogEntityTypeEnum = exports.AuditLogEntityActionEnum = exports.AdminUserModelPermissionsEnum = exports.AdminUserModelRoleEnum = exports.AdminRmaSummaryDTOStatusEnum = exports.AdminRmaItemDTOResolutionEnum = exports.AdminRmaItemDTOStatusEnum = exports.AdminRmaDTOStatusEnum = exports.AdminRmaDTOResolutionEnum = exports.AdminRmaDTOReasonEnum = exports.AdminOrderRequestDTOPaymentMethodEnum = void 0;
88
88
  exports.GetGetInstallationsInstallTypeEnum = exports.GetGetInstallationsHostingEnum = exports.GetGetInstallationsStatusEnum = exports.Class3CXInstallationsApi = exports.Class3CXInstallationsApiFactory = exports.Class3CXInstallationsApiFp = exports.Class3CXInstallationsApiAxiosParamCreator = exports.Class3CXInstallationWizardApi = exports.Class3CXInstallationWizardApiFactory = exports.Class3CXInstallationWizardApiFp = exports.Class3CXInstallationWizardApiAxiosParamCreator = exports.Class3CXApi = exports.Class3CXApiFactory = exports.Class3CXApiFp = exports.Class3CXApiAxiosParamCreator = exports.GetGetCrmActivitiesTypeEnum = exports.CRMApi = exports.CRMApiFactory = exports.CRMApiFp = exports.CRMApiAxiosParamCreator = exports.GetGetServicesPlanDetailsTypeEnum = exports.GetGetConnectionsTypeEnum = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = exports.PatchSetPrizePromoStateEnum = exports.PatchSetPortalAccessStateEnum = exports.PatchSetOnHoldStateEnum = exports.PatchSetAccountStatusStateEnum = exports.AccountsApi = exports.AccountsApiFactory = exports.AccountsApiFp = exports.AccountsApiAxiosParamCreator = exports.UpgradeRequestModelSchoolTypeEnum = exports.UpgradeRequestModelLicenceTypeEnum = exports.TcxWizardModelInstallationStatusEnum = exports.TcxWizardModelInstallTypeEnum = exports.TcxSetupEntityRegionEnum = exports.TcxSetupEntityInstallTypeEnum = exports.TcxMultiTenantModelPackageEnum = exports.StockReportItemModelCurrencyEnum = exports.StockOrderModelPaidEnum = exports.StockOrderModelDeliveryMethodEnum = exports.SmsResponseModelEventTypeEnum = exports.SmsPhoneNumberModelStatusEnum = exports.SmsAccountRequestDTOTypeEnum = exports.SmsAccountRequestDTOProviderEnum = exports.SipTrunkChangeResponseModelTypeEnum = exports.ShippingServiceModelCourierEnum = void 0;
89
89
  exports.PostSendPriceListCategoryEnum = exports.PostSendPriceListFormatEnum = exports.PostSendPriceListTypeEnum = exports.GetGetPriceListCategoryEnum = exports.GetGetPriceListFormatEnum = exports.GetGetPriceListTypeEnum = exports.PricingApi = exports.PricingApiFactory = 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.MiscApi = exports.MiscApiFactory = exports.MiscApiFp = exports.MiscApiAxiosParamCreator = 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 = void 0;
90
- exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = exports.SystemApiAxiosParamCreator = exports.SuppliersApi = exports.SuppliersApiFactory = exports.SuppliersApiFp = exports.SuppliersApiAxiosParamCreator = 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.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.RMAApi = exports.RMAApiFactory = exports.RMAApiFp = exports.RMAApiAxiosParamCreator = 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 = void 0;
91
- exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = void 0;
90
+ exports.SystemApiAxiosParamCreator = exports.SuppliersApi = exports.SuppliersApiFactory = exports.SuppliersApiFp = exports.SuppliersApiAxiosParamCreator = 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.ReportsApi = exports.ReportsApiFactory = exports.ReportsApiFp = exports.ReportsApiAxiosParamCreator = exports.RMAApi = exports.RMAApiFactory = exports.RMAApiFp = exports.RMAApiAxiosParamCreator = exports.ProvisioningApi = exports.ProvisioningApiFactory = exports.ProvisioningApiFp = exports.ProvisioningApiAxiosParamCreator = exports.ProspectsApi = exports.ProspectsApiFactory = exports.ProspectsApiFp = exports.ProspectsApiAxiosParamCreator = exports.PromotionsApi = exports.PromotionsApiFactory = exports.PromotionsApiFp = exports.PromotionsApiAxiosParamCreator = exports.GetGetLegacyStockListFormatEnum = exports.ProductsApi = exports.ProductsApiFactory = exports.ProductsApiFp = exports.ProductsApiAxiosParamCreator = void 0;
91
+ exports.PostAddWebhookWebhookUriEnum = exports.WebhooksApi = exports.WebhooksApiFactory = exports.WebhooksApiFp = exports.WebhooksApiAxiosParamCreator = exports.TicketsApi = exports.TicketsApiFactory = exports.TicketsApiFp = exports.TicketsApiAxiosParamCreator = exports.SystemApi = exports.SystemApiFactory = exports.SystemApiFp = void 0;
92
92
  var axios_1 = require("axios");
93
93
  // Some imports not used depending on template conditions
94
94
  // @ts-ignore
@@ -103,7 +103,6 @@ exports.AdminRmaDTOReasonEnum = {
103
103
  NUMBER_1: 1,
104
104
  NUMBER_2: 2,
105
105
  NUMBER_3: 3,
106
- NUMBER_4: 4,
107
106
  };
108
107
  exports.AdminRmaDTOResolutionEnum = {
109
108
  NUMBER_1: 1,
@@ -414,8 +413,10 @@ exports.PostGetServicePlansRequestPlanGroupEnum = {
414
413
  Hosting: 'Hosting',
415
414
  Crm: 'CRM',
416
415
  StarterBundle: 'Starter Bundle',
417
- Other: 'Other',
418
416
  RecurringCharges: 'Recurring Charges',
417
+ Sms: 'SMS',
418
+ Cfd: 'CFD',
419
+ EdTechPro: 'EdTechPro',
419
420
  };
420
421
  exports.ProspectDTOStatusEnum = {
421
422
  NoCallBackSet: 'No Call Back Set',
@@ -429,7 +430,6 @@ exports.ReasonRequestModelReasonEnum = {
429
430
  NUMBER_1: 1,
430
431
  NUMBER_2: 2,
431
432
  NUMBER_3: 3,
432
- NUMBER_4: 4,
433
433
  };
434
434
  exports.ReportRequestDTOReportEnum = {
435
435
  _1: '1',
@@ -463,7 +463,6 @@ exports.RmaDTOReasonEnum = {
463
463
  NUMBER_1: 1,
464
464
  NUMBER_2: 2,
465
465
  NUMBER_3: 3,
466
- NUMBER_4: 4,
467
466
  };
468
467
  exports.RmaDTOResolutionEnum = {
469
468
  NUMBER_1: 1,
@@ -486,7 +485,6 @@ exports.RmaRequestDTOReasonEnum = {
486
485
  NUMBER_1: 1,
487
486
  NUMBER_2: 2,
488
487
  NUMBER_3: 3,
489
- NUMBER_4: 4,
490
488
  };
491
489
  exports.RmaRequestDTORequestedResolutionEnum = {
492
490
  NUMBER_1: 1,
@@ -1219,6 +1217,39 @@ var AccountsApiAxiosParamCreator = function (configuration) {
1219
1217
  });
1220
1218
  });
1221
1219
  },
1220
+ /**
1221
+ * Get account delivery addresses
1222
+ * @param {*} [options] Override http request option.
1223
+ * @throws {RequiredError}
1224
+ */
1225
+ getGetDeliveryAddresses: function () {
1226
+ var args_1 = [];
1227
+ for (var _i = 0; _i < arguments.length; _i++) {
1228
+ args_1[_i] = arguments[_i];
1229
+ }
1230
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
1231
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1232
+ if (options === void 0) { options = {}; }
1233
+ return __generator(this, function (_a) {
1234
+ localVarPath = "/accounts/addresses/delivery";
1235
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1236
+ if (configuration) {
1237
+ baseOptions = configuration.baseOptions;
1238
+ }
1239
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1240
+ localVarHeaderParameter = {};
1241
+ localVarQueryParameter = {};
1242
+ localVarHeaderParameter['Accept'] = 'application/json';
1243
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1244
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1245
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1246
+ return [2 /*return*/, {
1247
+ url: (0, common_1.toPathString)(localVarUrlObj),
1248
+ options: localVarRequestOptions,
1249
+ }];
1250
+ });
1251
+ });
1252
+ },
1222
1253
  /**
1223
1254
  * Get Account Finance
1224
1255
  * @param {string} id Account Xero ID
@@ -2867,6 +2898,27 @@ var AccountsApiFp = function (configuration) {
2867
2898
  });
2868
2899
  });
2869
2900
  },
2901
+ /**
2902
+ * Get account delivery addresses
2903
+ * @param {*} [options] Override http request option.
2904
+ * @throws {RequiredError}
2905
+ */
2906
+ getGetDeliveryAddresses: function (options) {
2907
+ return __awaiter(this, void 0, void 0, function () {
2908
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
2909
+ var _a, _b, _c;
2910
+ return __generator(this, function (_d) {
2911
+ switch (_d.label) {
2912
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetDeliveryAddresses(options)];
2913
+ case 1:
2914
+ localVarAxiosArgs = _d.sent();
2915
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2916
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AccountsApi.getGetDeliveryAddresses']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2917
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
2918
+ }
2919
+ });
2920
+ });
2921
+ },
2870
2922
  /**
2871
2923
  * Get Account Finance
2872
2924
  * @param {string} id Account Xero ID
@@ -3791,6 +3843,14 @@ var AccountsApiFactory = function (configuration, basePath, axios) {
3791
3843
  getGetCustomerMap: function (options) {
3792
3844
  return localVarFp.getGetCustomerMap(options).then(function (request) { return request(axios, basePath); });
3793
3845
  },
3846
+ /**
3847
+ * Get account delivery addresses
3848
+ * @param {*} [options] Override http request option.
3849
+ * @throws {RequiredError}
3850
+ */
3851
+ getGetDeliveryAddresses: function (options) {
3852
+ return localVarFp.getGetDeliveryAddresses(options).then(function (request) { return request(axios, basePath); });
3853
+ },
3794
3854
  /**
3795
3855
  * Get Account Finance
3796
3856
  * @param {string} id Account Xero ID
@@ -4289,6 +4349,15 @@ var AccountsApi = /** @class */ (function (_super) {
4289
4349
  var _this = this;
4290
4350
  return (0, exports.AccountsApiFp)(this.configuration).getGetCustomerMap(options).then(function (request) { return request(_this.axios, _this.basePath); });
4291
4351
  };
4352
+ /**
4353
+ * Get account delivery addresses
4354
+ * @param {*} [options] Override http request option.
4355
+ * @throws {RequiredError}
4356
+ */
4357
+ AccountsApi.prototype.getGetDeliveryAddresses = function (options) {
4358
+ var _this = this;
4359
+ return (0, exports.AccountsApiFp)(this.configuration).getGetDeliveryAddresses(options).then(function (request) { return request(_this.axios, _this.basePath); });
4360
+ };
4292
4361
  /**
4293
4362
  * Get Account Finance
4294
4363
  * @param {string} id Account Xero ID
@@ -4852,6 +4921,43 @@ var BillingApiAxiosParamCreator = function (configuration) {
4852
4921
  });
4853
4922
  });
4854
4923
  },
4924
+ /**
4925
+ * Delete Call Tariff By ID
4926
+ * @param {number} id Call Tariff ID
4927
+ * @param {*} [options] Override http request option.
4928
+ * @throws {RequiredError}
4929
+ */
4930
+ deleteDeleteCallTariffId: function (id_1) {
4931
+ var args_1 = [];
4932
+ for (var _i = 1; _i < arguments.length; _i++) {
4933
+ args_1[_i - 1] = arguments[_i];
4934
+ }
4935
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
4936
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4937
+ if (options === void 0) { options = {}; }
4938
+ return __generator(this, function (_a) {
4939
+ // verify required parameter 'id' is not null or undefined
4940
+ (0, common_1.assertParamExists)('deleteDeleteCallTariffId', 'id', id);
4941
+ localVarPath = "/billing/admin/callTariffPlan/callTariff/{id}"
4942
+ .replace('{id}', encodeURIComponent(String(id)));
4943
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4944
+ if (configuration) {
4945
+ baseOptions = configuration.baseOptions;
4946
+ }
4947
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
4948
+ localVarHeaderParameter = {};
4949
+ localVarQueryParameter = {};
4950
+ localVarHeaderParameter['Accept'] = 'application/json';
4951
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4952
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4953
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4954
+ return [2 /*return*/, {
4955
+ url: (0, common_1.toPathString)(localVarUrlObj),
4956
+ options: localVarRequestOptions,
4957
+ }];
4958
+ });
4959
+ });
4960
+ },
4855
4961
  /**
4856
4962
  * Delete Base Service
4857
4963
  * @param {number} baseServiceId Base Service Plan ID
@@ -5307,7 +5413,7 @@ var BillingApiAxiosParamCreator = function (configuration) {
5307
5413
  },
5308
5414
  /**
5309
5415
  * Get Customer
5310
- * @param {number} [billCustomerId] Customer ID
5416
+ * @param {string} [billCustomerId] Customer ID
5311
5417
  * @param {*} [options] Override http request option.
5312
5418
  * @throws {RequiredError}
5313
5419
  */
@@ -7364,6 +7470,28 @@ var BillingApiFp = function (configuration) {
7364
7470
  });
7365
7471
  });
7366
7472
  },
7473
+ /**
7474
+ * Delete Call Tariff By ID
7475
+ * @param {number} id Call Tariff ID
7476
+ * @param {*} [options] Override http request option.
7477
+ * @throws {RequiredError}
7478
+ */
7479
+ deleteDeleteCallTariffId: function (id, options) {
7480
+ return __awaiter(this, void 0, void 0, function () {
7481
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
7482
+ var _a, _b, _c;
7483
+ return __generator(this, function (_d) {
7484
+ switch (_d.label) {
7485
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteCallTariffId(id, options)];
7486
+ case 1:
7487
+ localVarAxiosArgs = _d.sent();
7488
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7489
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.deleteDeleteCallTariffId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7490
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
7491
+ }
7492
+ });
7493
+ });
7494
+ },
7367
7495
  /**
7368
7496
  * Delete Base Service
7369
7497
  * @param {number} baseServiceId Base Service Plan ID
@@ -7630,7 +7758,7 @@ var BillingApiFp = function (configuration) {
7630
7758
  },
7631
7759
  /**
7632
7760
  * Get Customer
7633
- * @param {number} [billCustomerId] Customer ID
7761
+ * @param {string} [billCustomerId] Customer ID
7634
7762
  * @param {*} [options] Override http request option.
7635
7763
  * @throws {RequiredError}
7636
7764
  */
@@ -8793,6 +8921,15 @@ var BillingApiFactory = function (configuration, basePath, axios) {
8793
8921
  deleteCloseAccount: function (billCustomerId, options) {
8794
8922
  return localVarFp.deleteCloseAccount(billCustomerId, options).then(function (request) { return request(axios, basePath); });
8795
8923
  },
8924
+ /**
8925
+ * Delete Call Tariff By ID
8926
+ * @param {number} id Call Tariff ID
8927
+ * @param {*} [options] Override http request option.
8928
+ * @throws {RequiredError}
8929
+ */
8930
+ deleteDeleteCallTariffId: function (id, options) {
8931
+ return localVarFp.deleteDeleteCallTariffId(id, options).then(function (request) { return request(axios, basePath); });
8932
+ },
8796
8933
  /**
8797
8934
  * Delete Base Service
8798
8935
  * @param {number} baseServiceId Base Service Plan ID
@@ -8903,7 +9040,7 @@ var BillingApiFactory = function (configuration, basePath, axios) {
8903
9040
  },
8904
9041
  /**
8905
9042
  * Get Customer
8906
- * @param {number} [billCustomerId] Customer ID
9043
+ * @param {string} [billCustomerId] Customer ID
8907
9044
  * @param {*} [options] Override http request option.
8908
9045
  * @throws {RequiredError}
8909
9046
  */
@@ -9422,6 +9559,16 @@ var BillingApi = /** @class */ (function (_super) {
9422
9559
  var _this = this;
9423
9560
  return (0, exports.BillingApiFp)(this.configuration).deleteCloseAccount(billCustomerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9424
9561
  };
9562
+ /**
9563
+ * Delete Call Tariff By ID
9564
+ * @param {number} id Call Tariff ID
9565
+ * @param {*} [options] Override http request option.
9566
+ * @throws {RequiredError}
9567
+ */
9568
+ BillingApi.prototype.deleteDeleteCallTariffId = function (id, options) {
9569
+ var _this = this;
9570
+ return (0, exports.BillingApiFp)(this.configuration).deleteDeleteCallTariffId(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
9571
+ };
9425
9572
  /**
9426
9573
  * Delete Base Service
9427
9574
  * @param {number} baseServiceId Base Service Plan ID
@@ -9544,7 +9691,7 @@ var BillingApi = /** @class */ (function (_super) {
9544
9691
  };
9545
9692
  /**
9546
9693
  * Get Customer
9547
- * @param {number} [billCustomerId] Customer ID
9694
+ * @param {string} [billCustomerId] Customer ID
9548
9695
  * @param {*} [options] Override http request option.
9549
9696
  * @throws {RequiredError}
9550
9697
  */
@@ -10074,8 +10221,10 @@ exports.GetGetConnectionsTypeEnum = {
10074
10221
  Hosting: 'Hosting',
10075
10222
  Crm: 'CRM',
10076
10223
  StarterBundle: 'Starter Bundle',
10077
- Other: 'Other',
10078
10224
  RecurringCharges: 'Recurring Charges',
10225
+ Sms: 'SMS',
10226
+ Cfd: 'CFD',
10227
+ EdTechPro: 'EdTechPro',
10079
10228
  };
10080
10229
  exports.GetGetServicesPlanDetailsTypeEnum = {
10081
10230
  SipTrunks: 'SIP Trunks',
@@ -10088,8 +10237,10 @@ exports.GetGetServicesPlanDetailsTypeEnum = {
10088
10237
  Hosting: 'Hosting',
10089
10238
  Crm: 'CRM',
10090
10239
  StarterBundle: 'Starter Bundle',
10091
- Other: 'Other',
10092
10240
  RecurringCharges: 'Recurring Charges',
10241
+ Sms: 'SMS',
10242
+ Cfd: 'CFD',
10243
+ EdTechPro: 'EdTechPro',
10093
10244
  };
10094
10245
  /**
10095
10246
  * CRMApi - axios parameter creator
@@ -19423,6 +19574,43 @@ var OrdersApiAxiosParamCreator = function (configuration) {
19423
19574
  });
19424
19575
  });
19425
19576
  },
19577
+ /**
19578
+ * Get Order
19579
+ * @param {number} id Order ID
19580
+ * @param {*} [options] Override http request option.
19581
+ * @throws {RequiredError}
19582
+ */
19583
+ getGetCustomerOrderSummary: function (id_1) {
19584
+ var args_1 = [];
19585
+ for (var _i = 1; _i < arguments.length; _i++) {
19586
+ args_1[_i - 1] = arguments[_i];
19587
+ }
19588
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
19589
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
19590
+ if (options === void 0) { options = {}; }
19591
+ return __generator(this, function (_a) {
19592
+ // verify required parameter 'id' is not null or undefined
19593
+ (0, common_1.assertParamExists)('getGetCustomerOrderSummary', 'id', id);
19594
+ localVarPath = "/orders/{id}/summary"
19595
+ .replace('{id}', encodeURIComponent(String(id)));
19596
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
19597
+ if (configuration) {
19598
+ baseOptions = configuration.baseOptions;
19599
+ }
19600
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
19601
+ localVarHeaderParameter = {};
19602
+ localVarQueryParameter = {};
19603
+ localVarHeaderParameter['Accept'] = 'application/json';
19604
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
19605
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19606
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19607
+ return [2 /*return*/, {
19608
+ url: (0, common_1.toPathString)(localVarUrlObj),
19609
+ options: localVarRequestOptions,
19610
+ }];
19611
+ });
19612
+ });
19613
+ },
19426
19614
  /**
19427
19615
  * Get Editable Order (Beta)
19428
19616
  * @summary Get Editable Order (Beta)
@@ -20672,6 +20860,28 @@ var OrdersApiFp = function (configuration) {
20672
20860
  });
20673
20861
  });
20674
20862
  },
20863
+ /**
20864
+ * Get Order
20865
+ * @param {number} id Order ID
20866
+ * @param {*} [options] Override http request option.
20867
+ * @throws {RequiredError}
20868
+ */
20869
+ getGetCustomerOrderSummary: function (id, options) {
20870
+ return __awaiter(this, void 0, void 0, function () {
20871
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
20872
+ var _a, _b, _c;
20873
+ return __generator(this, function (_d) {
20874
+ switch (_d.label) {
20875
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetCustomerOrderSummary(id, options)];
20876
+ case 1:
20877
+ localVarAxiosArgs = _d.sent();
20878
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
20879
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrdersApi.getGetCustomerOrderSummary']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
20880
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
20881
+ }
20882
+ });
20883
+ });
20884
+ },
20675
20885
  /**
20676
20886
  * Get Editable Order (Beta)
20677
20887
  * @summary Get Editable Order (Beta)
@@ -21358,6 +21568,15 @@ var OrdersApiFactory = function (configuration, basePath, axios) {
21358
21568
  getGetCommercialInvoice: function (id, batchId, shipmentId, options) {
21359
21569
  return localVarFp.getGetCommercialInvoice(id, batchId, shipmentId, options).then(function (request) { return request(axios, basePath); });
21360
21570
  },
21571
+ /**
21572
+ * Get Order
21573
+ * @param {number} id Order ID
21574
+ * @param {*} [options] Override http request option.
21575
+ * @throws {RequiredError}
21576
+ */
21577
+ getGetCustomerOrderSummary: function (id, options) {
21578
+ return localVarFp.getGetCustomerOrderSummary(id, options).then(function (request) { return request(axios, basePath); });
21579
+ },
21361
21580
  /**
21362
21581
  * Get Editable Order (Beta)
21363
21582
  * @summary Get Editable Order (Beta)
@@ -21727,6 +21946,16 @@ var OrdersApi = /** @class */ (function (_super) {
21727
21946
  var _this = this;
21728
21947
  return (0, exports.OrdersApiFp)(this.configuration).getGetCommercialInvoice(id, batchId, shipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
21729
21948
  };
21949
+ /**
21950
+ * Get Order
21951
+ * @param {number} id Order ID
21952
+ * @param {*} [options] Override http request option.
21953
+ * @throws {RequiredError}
21954
+ */
21955
+ OrdersApi.prototype.getGetCustomerOrderSummary = function (id, options) {
21956
+ var _this = this;
21957
+ return (0, exports.OrdersApiFp)(this.configuration).getGetCustomerOrderSummary(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
21958
+ };
21730
21959
  /**
21731
21960
  * Get Editable Order (Beta)
21732
21961
  * @summary Get Editable Order (Beta)
@@ -23299,31 +23528,30 @@ exports.GetGetLegacyStockListFormatEnum = {
23299
23528
  Csv: 'CSV',
23300
23529
  };
23301
23530
  /**
23302
- * ProspectsApi - axios parameter creator
23531
+ * PromotionsApi - axios parameter creator
23303
23532
  */
23304
- var ProspectsApiAxiosParamCreator = function (configuration) {
23533
+ var PromotionsApiAxiosParamCreator = function (configuration) {
23305
23534
  var _this = this;
23306
23535
  return {
23307
23536
  /**
23308
- * Get Prospect
23309
- * @summary Get Prospect
23310
- * @param {string} xeroId Xero ID
23537
+ * Get a promotion
23538
+ * @param {number} id Promo ID
23311
23539
  * @param {*} [options] Override http request option.
23312
23540
  * @throws {RequiredError}
23313
23541
  */
23314
- getGetProspect: function (xeroId_1) {
23542
+ getGetPromo: function (id_1) {
23315
23543
  var args_1 = [];
23316
23544
  for (var _i = 1; _i < arguments.length; _i++) {
23317
23545
  args_1[_i - 1] = arguments[_i];
23318
23546
  }
23319
- return __awaiter(_this, __spreadArray([xeroId_1], args_1, true), void 0, function (xeroId, options) {
23547
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
23320
23548
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
23321
23549
  if (options === void 0) { options = {}; }
23322
23550
  return __generator(this, function (_a) {
23323
- // verify required parameter 'xeroId' is not null or undefined
23324
- (0, common_1.assertParamExists)('getGetProspect', 'xeroId', xeroId);
23325
- localVarPath = "/accounts/prospects/{xero_id}"
23326
- .replace('{xero_id}', encodeURIComponent(String(xeroId)));
23551
+ // verify required parameter 'id' is not null or undefined
23552
+ (0, common_1.assertParamExists)('getGetPromo', 'id', id);
23553
+ localVarPath = "/marketing/promos/{id}"
23554
+ .replace('{id}', encodeURIComponent(String(id)));
23327
23555
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23328
23556
  if (configuration) {
23329
23557
  baseOptions = configuration.baseOptions;
@@ -23343,21 +23571,24 @@ var ProspectsApiAxiosParamCreator = function (configuration) {
23343
23571
  });
23344
23572
  },
23345
23573
  /**
23346
- * Get Prospects
23347
- * @summary Get Prospects
23574
+ * Get Promos
23575
+ * @param {number} [pageSize] Number Of Results
23576
+ * @param {number} [page] Page Number
23577
+ * @param {string} [search] Search
23578
+ * @param {boolean} [expired] Expired
23348
23579
  * @param {*} [options] Override http request option.
23349
23580
  * @throws {RequiredError}
23350
23581
  */
23351
- getGetProspects: function () {
23582
+ getGetPromos: function (pageSize_1, page_1, search_1, expired_1) {
23352
23583
  var args_1 = [];
23353
- for (var _i = 0; _i < arguments.length; _i++) {
23354
- args_1[_i] = arguments[_i];
23584
+ for (var _i = 4; _i < arguments.length; _i++) {
23585
+ args_1[_i - 4] = arguments[_i];
23355
23586
  }
23356
- return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
23587
+ return __awaiter(_this, __spreadArray([pageSize_1, page_1, search_1, expired_1], args_1, true), void 0, function (pageSize, page, search, expired, options) {
23357
23588
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
23358
23589
  if (options === void 0) { options = {}; }
23359
23590
  return __generator(this, function (_a) {
23360
- localVarPath = "/accounts/prospects";
23591
+ localVarPath = "/marketing/promos";
23361
23592
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23362
23593
  if (configuration) {
23363
23594
  baseOptions = configuration.baseOptions;
@@ -23365,6 +23596,18 @@ var ProspectsApiAxiosParamCreator = function (configuration) {
23365
23596
  localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
23366
23597
  localVarHeaderParameter = {};
23367
23598
  localVarQueryParameter = {};
23599
+ if (pageSize !== undefined) {
23600
+ localVarQueryParameter['pageSize'] = pageSize;
23601
+ }
23602
+ if (page !== undefined) {
23603
+ localVarQueryParameter['page'] = page;
23604
+ }
23605
+ if (search !== undefined) {
23606
+ localVarQueryParameter['search'] = search;
23607
+ }
23608
+ if (expired !== undefined) {
23609
+ localVarQueryParameter['expired'] = expired;
23610
+ }
23368
23611
  localVarHeaderParameter['Accept'] = 'application/json';
23369
23612
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23370
23613
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -23377,42 +23620,34 @@ var ProspectsApiAxiosParamCreator = function (configuration) {
23377
23620
  });
23378
23621
  },
23379
23622
  /**
23380
- * Remove From Prospect
23381
- * @summary Remove From Prospects
23382
- * @param {string} xeroId Xero ID
23383
- * @param {boolean} status Status
23623
+ * Create a promotion
23624
+ * @param {PromoModel} [promoModel] Promotion
23384
23625
  * @param {*} [options] Override http request option.
23385
23626
  * @throws {RequiredError}
23386
23627
  */
23387
- getRemoveFromProspects: function (xeroId_1, status_1) {
23628
+ postGetPromos: function (promoModel_1) {
23388
23629
  var args_1 = [];
23389
- for (var _i = 2; _i < arguments.length; _i++) {
23390
- args_1[_i - 2] = arguments[_i];
23630
+ for (var _i = 1; _i < arguments.length; _i++) {
23631
+ args_1[_i - 1] = arguments[_i];
23391
23632
  }
23392
- return __awaiter(_this, __spreadArray([xeroId_1, status_1], args_1, true), void 0, function (xeroId, status, options) {
23633
+ return __awaiter(_this, __spreadArray([promoModel_1], args_1, true), void 0, function (promoModel, options) {
23393
23634
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
23394
23635
  if (options === void 0) { options = {}; }
23395
23636
  return __generator(this, function (_a) {
23396
- // verify required parameter 'xeroId' is not null or undefined
23397
- (0, common_1.assertParamExists)('getRemoveFromProspects', 'xeroId', xeroId);
23398
- // verify required parameter 'status' is not null or undefined
23399
- (0, common_1.assertParamExists)('getRemoveFromProspects', 'status', status);
23400
- localVarPath = "/accounts/prospects/{xero_id}/remove"
23401
- .replace('{xero_id}', encodeURIComponent(String(xeroId)));
23637
+ localVarPath = "/marketing/promos";
23402
23638
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23403
23639
  if (configuration) {
23404
23640
  baseOptions = configuration.baseOptions;
23405
23641
  }
23406
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
23642
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
23407
23643
  localVarHeaderParameter = {};
23408
23644
  localVarQueryParameter = {};
23409
- if (status !== undefined) {
23410
- localVarQueryParameter['status'] = status;
23411
- }
23645
+ localVarHeaderParameter['Content-Type'] = 'application/json';
23412
23646
  localVarHeaderParameter['Accept'] = 'application/json';
23413
23647
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23414
23648
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23415
23649
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23650
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(promoModel, localVarRequestOptions, configuration);
23416
23651
  return [2 /*return*/, {
23417
23652
  url: (0, common_1.toPathString)(localVarUrlObj),
23418
23653
  options: localVarRequestOptions,
@@ -23421,8 +23656,378 @@ var ProspectsApiAxiosParamCreator = function (configuration) {
23421
23656
  });
23422
23657
  },
23423
23658
  /**
23424
- * Set Call Back Date
23425
- * @summary Set Call Back Date
23659
+ * Update a promotion
23660
+ * @param {number} id Promo ID
23661
+ * @param {PromoModel} [promoModel] Promotion
23662
+ * @param {*} [options] Override http request option.
23663
+ * @throws {RequiredError}
23664
+ */
23665
+ putGetPromo: function (id_1, promoModel_1) {
23666
+ var args_1 = [];
23667
+ for (var _i = 2; _i < arguments.length; _i++) {
23668
+ args_1[_i - 2] = arguments[_i];
23669
+ }
23670
+ return __awaiter(_this, __spreadArray([id_1, promoModel_1], args_1, true), void 0, function (id, promoModel, options) {
23671
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
23672
+ if (options === void 0) { options = {}; }
23673
+ return __generator(this, function (_a) {
23674
+ // verify required parameter 'id' is not null or undefined
23675
+ (0, common_1.assertParamExists)('putGetPromo', 'id', id);
23676
+ localVarPath = "/marketing/promos/{id}"
23677
+ .replace('{id}', encodeURIComponent(String(id)));
23678
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23679
+ if (configuration) {
23680
+ baseOptions = configuration.baseOptions;
23681
+ }
23682
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
23683
+ localVarHeaderParameter = {};
23684
+ localVarQueryParameter = {};
23685
+ localVarHeaderParameter['Content-Type'] = 'application/json';
23686
+ localVarHeaderParameter['Accept'] = 'application/json';
23687
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23688
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23689
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23690
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(promoModel, localVarRequestOptions, configuration);
23691
+ return [2 /*return*/, {
23692
+ url: (0, common_1.toPathString)(localVarUrlObj),
23693
+ options: localVarRequestOptions,
23694
+ }];
23695
+ });
23696
+ });
23697
+ },
23698
+ };
23699
+ };
23700
+ exports.PromotionsApiAxiosParamCreator = PromotionsApiAxiosParamCreator;
23701
+ /**
23702
+ * PromotionsApi - functional programming interface
23703
+ */
23704
+ var PromotionsApiFp = function (configuration) {
23705
+ var localVarAxiosParamCreator = (0, exports.PromotionsApiAxiosParamCreator)(configuration);
23706
+ return {
23707
+ /**
23708
+ * Get a promotion
23709
+ * @param {number} id Promo ID
23710
+ * @param {*} [options] Override http request option.
23711
+ * @throws {RequiredError}
23712
+ */
23713
+ getGetPromo: function (id, options) {
23714
+ return __awaiter(this, void 0, void 0, function () {
23715
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
23716
+ var _a, _b, _c;
23717
+ return __generator(this, function (_d) {
23718
+ switch (_d.label) {
23719
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPromo(id, options)];
23720
+ case 1:
23721
+ localVarAxiosArgs = _d.sent();
23722
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23723
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PromotionsApi.getGetPromo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23724
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
23725
+ }
23726
+ });
23727
+ });
23728
+ },
23729
+ /**
23730
+ * Get Promos
23731
+ * @param {number} [pageSize] Number Of Results
23732
+ * @param {number} [page] Page Number
23733
+ * @param {string} [search] Search
23734
+ * @param {boolean} [expired] Expired
23735
+ * @param {*} [options] Override http request option.
23736
+ * @throws {RequiredError}
23737
+ */
23738
+ getGetPromos: function (pageSize, page, search, expired, options) {
23739
+ return __awaiter(this, void 0, void 0, function () {
23740
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
23741
+ var _a, _b, _c;
23742
+ return __generator(this, function (_d) {
23743
+ switch (_d.label) {
23744
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getGetPromos(pageSize, page, search, expired, options)];
23745
+ case 1:
23746
+ localVarAxiosArgs = _d.sent();
23747
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23748
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PromotionsApi.getGetPromos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23749
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
23750
+ }
23751
+ });
23752
+ });
23753
+ },
23754
+ /**
23755
+ * Create a promotion
23756
+ * @param {PromoModel} [promoModel] Promotion
23757
+ * @param {*} [options] Override http request option.
23758
+ * @throws {RequiredError}
23759
+ */
23760
+ postGetPromos: function (promoModel, options) {
23761
+ return __awaiter(this, void 0, void 0, function () {
23762
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
23763
+ var _a, _b, _c;
23764
+ return __generator(this, function (_d) {
23765
+ switch (_d.label) {
23766
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetPromos(promoModel, options)];
23767
+ case 1:
23768
+ localVarAxiosArgs = _d.sent();
23769
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23770
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PromotionsApi.postGetPromos']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23771
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
23772
+ }
23773
+ });
23774
+ });
23775
+ },
23776
+ /**
23777
+ * Update a promotion
23778
+ * @param {number} id Promo ID
23779
+ * @param {PromoModel} [promoModel] Promotion
23780
+ * @param {*} [options] Override http request option.
23781
+ * @throws {RequiredError}
23782
+ */
23783
+ putGetPromo: function (id, promoModel, options) {
23784
+ return __awaiter(this, void 0, void 0, function () {
23785
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
23786
+ var _a, _b, _c;
23787
+ return __generator(this, function (_d) {
23788
+ switch (_d.label) {
23789
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.putGetPromo(id, promoModel, options)];
23790
+ case 1:
23791
+ localVarAxiosArgs = _d.sent();
23792
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
23793
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PromotionsApi.putGetPromo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
23794
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
23795
+ }
23796
+ });
23797
+ });
23798
+ },
23799
+ };
23800
+ };
23801
+ exports.PromotionsApiFp = PromotionsApiFp;
23802
+ /**
23803
+ * PromotionsApi - factory interface
23804
+ */
23805
+ var PromotionsApiFactory = function (configuration, basePath, axios) {
23806
+ var localVarFp = (0, exports.PromotionsApiFp)(configuration);
23807
+ return {
23808
+ /**
23809
+ * Get a promotion
23810
+ * @param {number} id Promo ID
23811
+ * @param {*} [options] Override http request option.
23812
+ * @throws {RequiredError}
23813
+ */
23814
+ getGetPromo: function (id, options) {
23815
+ return localVarFp.getGetPromo(id, options).then(function (request) { return request(axios, basePath); });
23816
+ },
23817
+ /**
23818
+ * Get Promos
23819
+ * @param {number} [pageSize] Number Of Results
23820
+ * @param {number} [page] Page Number
23821
+ * @param {string} [search] Search
23822
+ * @param {boolean} [expired] Expired
23823
+ * @param {*} [options] Override http request option.
23824
+ * @throws {RequiredError}
23825
+ */
23826
+ getGetPromos: function (pageSize, page, search, expired, options) {
23827
+ return localVarFp.getGetPromos(pageSize, page, search, expired, options).then(function (request) { return request(axios, basePath); });
23828
+ },
23829
+ /**
23830
+ * Create a promotion
23831
+ * @param {PromoModel} [promoModel] Promotion
23832
+ * @param {*} [options] Override http request option.
23833
+ * @throws {RequiredError}
23834
+ */
23835
+ postGetPromos: function (promoModel, options) {
23836
+ return localVarFp.postGetPromos(promoModel, options).then(function (request) { return request(axios, basePath); });
23837
+ },
23838
+ /**
23839
+ * Update a promotion
23840
+ * @param {number} id Promo ID
23841
+ * @param {PromoModel} [promoModel] Promotion
23842
+ * @param {*} [options] Override http request option.
23843
+ * @throws {RequiredError}
23844
+ */
23845
+ putGetPromo: function (id, promoModel, options) {
23846
+ return localVarFp.putGetPromo(id, promoModel, options).then(function (request) { return request(axios, basePath); });
23847
+ },
23848
+ };
23849
+ };
23850
+ exports.PromotionsApiFactory = PromotionsApiFactory;
23851
+ /**
23852
+ * PromotionsApi - object-oriented interface
23853
+ */
23854
+ var PromotionsApi = /** @class */ (function (_super) {
23855
+ __extends(PromotionsApi, _super);
23856
+ function PromotionsApi() {
23857
+ return _super !== null && _super.apply(this, arguments) || this;
23858
+ }
23859
+ /**
23860
+ * Get a promotion
23861
+ * @param {number} id Promo ID
23862
+ * @param {*} [options] Override http request option.
23863
+ * @throws {RequiredError}
23864
+ */
23865
+ PromotionsApi.prototype.getGetPromo = function (id, options) {
23866
+ var _this = this;
23867
+ return (0, exports.PromotionsApiFp)(this.configuration).getGetPromo(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
23868
+ };
23869
+ /**
23870
+ * Get Promos
23871
+ * @param {number} [pageSize] Number Of Results
23872
+ * @param {number} [page] Page Number
23873
+ * @param {string} [search] Search
23874
+ * @param {boolean} [expired] Expired
23875
+ * @param {*} [options] Override http request option.
23876
+ * @throws {RequiredError}
23877
+ */
23878
+ PromotionsApi.prototype.getGetPromos = function (pageSize, page, search, expired, options) {
23879
+ var _this = this;
23880
+ return (0, exports.PromotionsApiFp)(this.configuration).getGetPromos(pageSize, page, search, expired, options).then(function (request) { return request(_this.axios, _this.basePath); });
23881
+ };
23882
+ /**
23883
+ * Create a promotion
23884
+ * @param {PromoModel} [promoModel] Promotion
23885
+ * @param {*} [options] Override http request option.
23886
+ * @throws {RequiredError}
23887
+ */
23888
+ PromotionsApi.prototype.postGetPromos = function (promoModel, options) {
23889
+ var _this = this;
23890
+ return (0, exports.PromotionsApiFp)(this.configuration).postGetPromos(promoModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
23891
+ };
23892
+ /**
23893
+ * Update a promotion
23894
+ * @param {number} id Promo ID
23895
+ * @param {PromoModel} [promoModel] Promotion
23896
+ * @param {*} [options] Override http request option.
23897
+ * @throws {RequiredError}
23898
+ */
23899
+ PromotionsApi.prototype.putGetPromo = function (id, promoModel, options) {
23900
+ var _this = this;
23901
+ return (0, exports.PromotionsApiFp)(this.configuration).putGetPromo(id, promoModel, options).then(function (request) { return request(_this.axios, _this.basePath); });
23902
+ };
23903
+ return PromotionsApi;
23904
+ }(base_1.BaseAPI));
23905
+ exports.PromotionsApi = PromotionsApi;
23906
+ /**
23907
+ * ProspectsApi - axios parameter creator
23908
+ */
23909
+ var ProspectsApiAxiosParamCreator = function (configuration) {
23910
+ var _this = this;
23911
+ return {
23912
+ /**
23913
+ * Get Prospect
23914
+ * @summary Get Prospect
23915
+ * @param {string} xeroId Xero ID
23916
+ * @param {*} [options] Override http request option.
23917
+ * @throws {RequiredError}
23918
+ */
23919
+ getGetProspect: function (xeroId_1) {
23920
+ var args_1 = [];
23921
+ for (var _i = 1; _i < arguments.length; _i++) {
23922
+ args_1[_i - 1] = arguments[_i];
23923
+ }
23924
+ return __awaiter(_this, __spreadArray([xeroId_1], args_1, true), void 0, function (xeroId, options) {
23925
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
23926
+ if (options === void 0) { options = {}; }
23927
+ return __generator(this, function (_a) {
23928
+ // verify required parameter 'xeroId' is not null or undefined
23929
+ (0, common_1.assertParamExists)('getGetProspect', 'xeroId', xeroId);
23930
+ localVarPath = "/accounts/prospects/{xero_id}"
23931
+ .replace('{xero_id}', encodeURIComponent(String(xeroId)));
23932
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23933
+ if (configuration) {
23934
+ baseOptions = configuration.baseOptions;
23935
+ }
23936
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
23937
+ localVarHeaderParameter = {};
23938
+ localVarQueryParameter = {};
23939
+ localVarHeaderParameter['Accept'] = 'application/json';
23940
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23941
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23942
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23943
+ return [2 /*return*/, {
23944
+ url: (0, common_1.toPathString)(localVarUrlObj),
23945
+ options: localVarRequestOptions,
23946
+ }];
23947
+ });
23948
+ });
23949
+ },
23950
+ /**
23951
+ * Get Prospects
23952
+ * @summary Get Prospects
23953
+ * @param {*} [options] Override http request option.
23954
+ * @throws {RequiredError}
23955
+ */
23956
+ getGetProspects: function () {
23957
+ var args_1 = [];
23958
+ for (var _i = 0; _i < arguments.length; _i++) {
23959
+ args_1[_i] = arguments[_i];
23960
+ }
23961
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
23962
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
23963
+ if (options === void 0) { options = {}; }
23964
+ return __generator(this, function (_a) {
23965
+ localVarPath = "/accounts/prospects";
23966
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
23967
+ if (configuration) {
23968
+ baseOptions = configuration.baseOptions;
23969
+ }
23970
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
23971
+ localVarHeaderParameter = {};
23972
+ localVarQueryParameter = {};
23973
+ localVarHeaderParameter['Accept'] = 'application/json';
23974
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
23975
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
23976
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
23977
+ return [2 /*return*/, {
23978
+ url: (0, common_1.toPathString)(localVarUrlObj),
23979
+ options: localVarRequestOptions,
23980
+ }];
23981
+ });
23982
+ });
23983
+ },
23984
+ /**
23985
+ * Remove From Prospect
23986
+ * @summary Remove From Prospects
23987
+ * @param {string} xeroId Xero ID
23988
+ * @param {boolean} status Status
23989
+ * @param {*} [options] Override http request option.
23990
+ * @throws {RequiredError}
23991
+ */
23992
+ getRemoveFromProspects: function (xeroId_1, status_1) {
23993
+ var args_1 = [];
23994
+ for (var _i = 2; _i < arguments.length; _i++) {
23995
+ args_1[_i - 2] = arguments[_i];
23996
+ }
23997
+ return __awaiter(_this, __spreadArray([xeroId_1, status_1], args_1, true), void 0, function (xeroId, status, options) {
23998
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
23999
+ if (options === void 0) { options = {}; }
24000
+ return __generator(this, function (_a) {
24001
+ // verify required parameter 'xeroId' is not null or undefined
24002
+ (0, common_1.assertParamExists)('getRemoveFromProspects', 'xeroId', xeroId);
24003
+ // verify required parameter 'status' is not null or undefined
24004
+ (0, common_1.assertParamExists)('getRemoveFromProspects', 'status', status);
24005
+ localVarPath = "/accounts/prospects/{xero_id}/remove"
24006
+ .replace('{xero_id}', encodeURIComponent(String(xeroId)));
24007
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
24008
+ if (configuration) {
24009
+ baseOptions = configuration.baseOptions;
24010
+ }
24011
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
24012
+ localVarHeaderParameter = {};
24013
+ localVarQueryParameter = {};
24014
+ if (status !== undefined) {
24015
+ localVarQueryParameter['status'] = status;
24016
+ }
24017
+ localVarHeaderParameter['Accept'] = 'application/json';
24018
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
24019
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24020
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
24021
+ return [2 /*return*/, {
24022
+ url: (0, common_1.toPathString)(localVarUrlObj),
24023
+ options: localVarRequestOptions,
24024
+ }];
24025
+ });
24026
+ });
24027
+ },
24028
+ /**
24029
+ * Set Call Back Date
24030
+ * @summary Set Call Back Date
23426
24031
  * @param {string} xeroId Xero ID
23427
24032
  * @param {string} date Callback Date
23428
24033
  * @param {*} [options] Override http request option.
@@ -24856,6 +25461,51 @@ var RMAApiAxiosParamCreator = function (configuration) {
24856
25461
  });
24857
25462
  });
24858
25463
  },
25464
+ /**
25465
+ * Get suitable advance replacment orders
25466
+ * @param {string} sku Item SKU
25467
+ * @param {number} orderId Order ID
25468
+ * @param {*} [options] Override http request option.
25469
+ * @throws {RequiredError}
25470
+ */
25471
+ getSearchAdvanceReplacementOrders: function (sku_1, orderId_1) {
25472
+ var args_1 = [];
25473
+ for (var _i = 2; _i < arguments.length; _i++) {
25474
+ args_1[_i - 2] = arguments[_i];
25475
+ }
25476
+ return __awaiter(_this, __spreadArray([sku_1, orderId_1], args_1, true), void 0, function (sku, orderId, options) {
25477
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
25478
+ if (options === void 0) { options = {}; }
25479
+ return __generator(this, function (_a) {
25480
+ // verify required parameter 'sku' is not null or undefined
25481
+ (0, common_1.assertParamExists)('getSearchAdvanceReplacementOrders', 'sku', sku);
25482
+ // verify required parameter 'orderId' is not null or undefined
25483
+ (0, common_1.assertParamExists)('getSearchAdvanceReplacementOrders', 'orderId', orderId);
25484
+ localVarPath = "/rma/advance_replacement/orders";
25485
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
25486
+ if (configuration) {
25487
+ baseOptions = configuration.baseOptions;
25488
+ }
25489
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
25490
+ localVarHeaderParameter = {};
25491
+ localVarQueryParameter = {};
25492
+ if (sku !== undefined) {
25493
+ localVarQueryParameter['sku'] = sku;
25494
+ }
25495
+ if (orderId !== undefined) {
25496
+ localVarQueryParameter['orderId'] = orderId;
25497
+ }
25498
+ localVarHeaderParameter['Accept'] = 'application/json';
25499
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
25500
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25501
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25502
+ return [2 /*return*/, {
25503
+ url: (0, common_1.toPathString)(localVarUrlObj),
25504
+ options: localVarRequestOptions,
25505
+ }];
25506
+ });
25507
+ });
25508
+ },
24859
25509
  /**
24860
25510
  * Search for Orders to create an RMA
24861
25511
  * @param {string} [search] Search
@@ -25874,6 +26524,29 @@ var RMAApiFp = function (configuration) {
25874
26524
  });
25875
26525
  });
25876
26526
  },
26527
+ /**
26528
+ * Get suitable advance replacment orders
26529
+ * @param {string} sku Item SKU
26530
+ * @param {number} orderId Order ID
26531
+ * @param {*} [options] Override http request option.
26532
+ * @throws {RequiredError}
26533
+ */
26534
+ getSearchAdvanceReplacementOrders: function (sku, orderId, options) {
26535
+ return __awaiter(this, void 0, void 0, function () {
26536
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
26537
+ var _a, _b, _c;
26538
+ return __generator(this, function (_d) {
26539
+ switch (_d.label) {
26540
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getSearchAdvanceReplacementOrders(sku, orderId, options)];
26541
+ case 1:
26542
+ localVarAxiosArgs = _d.sent();
26543
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
26544
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RMAApi.getSearchAdvanceReplacementOrders']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
26545
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
26546
+ }
26547
+ });
26548
+ });
26549
+ },
25877
26550
  /**
25878
26551
  * Search for Orders to create an RMA
25879
26552
  * @param {string} [search] Search
@@ -26442,6 +27115,16 @@ var RMAApiFactory = function (configuration, basePath, axios) {
26442
27115
  getGetRmaOrder: function (id, options) {
26443
27116
  return localVarFp.getGetRmaOrder(id, options).then(function (request) { return request(axios, basePath); });
26444
27117
  },
27118
+ /**
27119
+ * Get suitable advance replacment orders
27120
+ * @param {string} sku Item SKU
27121
+ * @param {number} orderId Order ID
27122
+ * @param {*} [options] Override http request option.
27123
+ * @throws {RequiredError}
27124
+ */
27125
+ getSearchAdvanceReplacementOrders: function (sku, orderId, options) {
27126
+ return localVarFp.getSearchAdvanceReplacementOrders(sku, orderId, options).then(function (request) { return request(axios, basePath); });
27127
+ },
26445
27128
  /**
26446
27129
  * Search for Orders to create an RMA
26447
27130
  * @param {string} [search] Search
@@ -26747,6 +27430,17 @@ var RMAApi = /** @class */ (function (_super) {
26747
27430
  var _this = this;
26748
27431
  return (0, exports.RMAApiFp)(this.configuration).getGetRmaOrder(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
26749
27432
  };
27433
+ /**
27434
+ * Get suitable advance replacment orders
27435
+ * @param {string} sku Item SKU
27436
+ * @param {number} orderId Order ID
27437
+ * @param {*} [options] Override http request option.
27438
+ * @throws {RequiredError}
27439
+ */
27440
+ RMAApi.prototype.getSearchAdvanceReplacementOrders = function (sku, orderId, options) {
27441
+ var _this = this;
27442
+ return (0, exports.RMAApiFp)(this.configuration).getSearchAdvanceReplacementOrders(sku, orderId, options).then(function (request) { return request(_this.axios, _this.basePath); });
27443
+ };
26750
27444
  /**
26751
27445
  * Search for Orders to create an RMA
26752
27446
  * @param {string} [search] Search