yellowgrid-api-ts 3.2.261 → 3.2.262

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/README.md CHANGED
@@ -103,6 +103,7 @@ Class | Method | HTTP request | Description
103
103
  *BillingApi* | [**deleteAddRecurringCharge**](docs/BillingApi.md#deleteaddrecurringcharge) | **DELETE** /billing/customer/recurringCharges |
104
104
  *BillingApi* | [**deleteAddServiceToServicePlan**](docs/BillingApi.md#deleteaddservicetoserviceplan) | **DELETE** /billing/admin/servicePlan/service |
105
105
  *BillingApi* | [**deleteCloseAccount**](docs/BillingApi.md#deletecloseaccount) | **DELETE** /billing/customer/customer |
106
+ *BillingApi* | [**deleteDeleteCallTariffId**](docs/BillingApi.md#deletedeletecalltariffid) | **DELETE** /billing/admin/callTariffPlan/callTariff/{id} |
106
107
  *BillingApi* | [**deleteGetBaseServices**](docs/BillingApi.md#deletegetbaseservices) | **DELETE** /billing/admin/baseServices |
107
108
  *BillingApi* | [**deleteGetCallTariffPlan**](docs/BillingApi.md#deletegetcalltariffplan) | **DELETE** /billing/admin/callTariffPlan |
108
109
  *BillingApi* | [**deleteGetPriceGroups**](docs/BillingApi.md#deletegetpricegroups) | **DELETE** /billing/admin/priceGroups |
package/api.ts CHANGED
@@ -13313,6 +13313,39 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
13313
13313
  options: localVarRequestOptions,
13314
13314
  };
13315
13315
  },
13316
+ /**
13317
+ * Delete Call Tariff By ID
13318
+ * @param {number} id Call Tariff ID
13319
+ * @param {*} [options] Override http request option.
13320
+ * @throws {RequiredError}
13321
+ */
13322
+ deleteDeleteCallTariffId: async (id: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13323
+ // verify required parameter 'id' is not null or undefined
13324
+ assertParamExists('deleteDeleteCallTariffId', 'id', id)
13325
+ const localVarPath = `/billing/admin/callTariffPlan/callTariff/{id}`
13326
+ .replace('{id}', encodeURIComponent(String(id)));
13327
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13328
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13329
+ let baseOptions;
13330
+ if (configuration) {
13331
+ baseOptions = configuration.baseOptions;
13332
+ }
13333
+
13334
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
13335
+ const localVarHeaderParameter = {} as any;
13336
+ const localVarQueryParameter = {} as any;
13337
+
13338
+ localVarHeaderParameter['Accept'] = 'application/json';
13339
+
13340
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13341
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13342
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13343
+
13344
+ return {
13345
+ url: toPathString(localVarUrlObj),
13346
+ options: localVarRequestOptions,
13347
+ };
13348
+ },
13316
13349
  /**
13317
13350
  * Delete Base Service
13318
13351
  * @param {number} baseServiceId Base Service Plan ID
@@ -15591,6 +15624,18 @@ export const BillingApiFp = function(configuration?: Configuration) {
15591
15624
  const localVarOperationServerBasePath = operationServerMap['BillingApi.deleteCloseAccount']?.[localVarOperationServerIndex]?.url;
15592
15625
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15593
15626
  },
15627
+ /**
15628
+ * Delete Call Tariff By ID
15629
+ * @param {number} id Call Tariff ID
15630
+ * @param {*} [options] Override http request option.
15631
+ * @throws {RequiredError}
15632
+ */
15633
+ async deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
15634
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeleteCallTariffId(id, options);
15635
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15636
+ const localVarOperationServerBasePath = operationServerMap['BillingApi.deleteDeleteCallTariffId']?.[localVarOperationServerIndex]?.url;
15637
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15638
+ },
15594
15639
  /**
15595
15640
  * Delete Base Service
15596
15641
  * @param {number} baseServiceId Base Service Plan ID
@@ -16400,6 +16445,15 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
16400
16445
  deleteCloseAccount(billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<number> {
16401
16446
  return localVarFp.deleteCloseAccount(billCustomerId, options).then((request) => request(axios, basePath));
16402
16447
  },
16448
+ /**
16449
+ * Delete Call Tariff By ID
16450
+ * @param {number} id Call Tariff ID
16451
+ * @param {*} [options] Override http request option.
16452
+ * @throws {RequiredError}
16453
+ */
16454
+ deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig): AxiosPromise<boolean> {
16455
+ return localVarFp.deleteDeleteCallTariffId(id, options).then((request) => request(axios, basePath));
16456
+ },
16403
16457
  /**
16404
16458
  * Delete Base Service
16405
16459
  * @param {number} baseServiceId Base Service Plan ID
@@ -17025,6 +17079,16 @@ export class BillingApi extends BaseAPI {
17025
17079
  return BillingApiFp(this.configuration).deleteCloseAccount(billCustomerId, options).then((request) => request(this.axios, this.basePath));
17026
17080
  }
17027
17081
 
17082
+ /**
17083
+ * Delete Call Tariff By ID
17084
+ * @param {number} id Call Tariff ID
17085
+ * @param {*} [options] Override http request option.
17086
+ * @throws {RequiredError}
17087
+ */
17088
+ public deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig) {
17089
+ return BillingApiFp(this.configuration).deleteDeleteCallTariffId(id, options).then((request) => request(this.axios, this.basePath));
17090
+ }
17091
+
17028
17092
  /**
17029
17093
  * Delete Base Service
17030
17094
  * @param {number} baseServiceId Base Service Plan ID
package/dist/api.d.ts CHANGED
@@ -11257,6 +11257,13 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
11257
11257
  * @throws {RequiredError}
11258
11258
  */
11259
11259
  deleteCloseAccount: (billCustomerId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11260
+ /**
11261
+ * Delete Call Tariff By ID
11262
+ * @param {number} id Call Tariff ID
11263
+ * @param {*} [options] Override http request option.
11264
+ * @throws {RequiredError}
11265
+ */
11266
+ deleteDeleteCallTariffId: (id: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
11260
11267
  /**
11261
11268
  * Delete Base Service
11262
11269
  * @param {number} baseServiceId Base Service Plan ID
@@ -11744,6 +11751,13 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
11744
11751
  * @throws {RequiredError}
11745
11752
  */
11746
11753
  deleteCloseAccount(billCustomerId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<number>>;
11754
+ /**
11755
+ * Delete Call Tariff By ID
11756
+ * @param {number} id Call Tariff ID
11757
+ * @param {*} [options] Override http request option.
11758
+ * @throws {RequiredError}
11759
+ */
11760
+ deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
11747
11761
  /**
11748
11762
  * Delete Base Service
11749
11763
  * @param {number} baseServiceId Base Service Plan ID
@@ -12235,6 +12249,13 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
12235
12249
  * @throws {RequiredError}
12236
12250
  */
12237
12251
  deleteCloseAccount(billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<number>;
12252
+ /**
12253
+ * Delete Call Tariff By ID
12254
+ * @param {number} id Call Tariff ID
12255
+ * @param {*} [options] Override http request option.
12256
+ * @throws {RequiredError}
12257
+ */
12258
+ deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig): AxiosPromise<boolean>;
12238
12259
  /**
12239
12260
  * Delete Base Service
12240
12261
  * @param {number} baseServiceId Base Service Plan ID
@@ -12726,6 +12747,13 @@ export declare class BillingApi extends BaseAPI {
12726
12747
  * @throws {RequiredError}
12727
12748
  */
12728
12749
  deleteCloseAccount(billCustomerId?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<number, any, {}>>;
12750
+ /**
12751
+ * Delete Call Tariff By ID
12752
+ * @param {number} id Call Tariff ID
12753
+ * @param {*} [options] Override http request option.
12754
+ * @throws {RequiredError}
12755
+ */
12756
+ deleteDeleteCallTariffId(id: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any, {}>>;
12729
12757
  /**
12730
12758
  * Delete Base Service
12731
12759
  * @param {number} baseServiceId Base Service Plan ID
package/dist/api.js CHANGED
@@ -4748,6 +4748,43 @@ var BillingApiAxiosParamCreator = function (configuration) {
4748
4748
  });
4749
4749
  });
4750
4750
  },
4751
+ /**
4752
+ * Delete Call Tariff By ID
4753
+ * @param {number} id Call Tariff ID
4754
+ * @param {*} [options] Override http request option.
4755
+ * @throws {RequiredError}
4756
+ */
4757
+ deleteDeleteCallTariffId: function (id_1) {
4758
+ var args_1 = [];
4759
+ for (var _i = 1; _i < arguments.length; _i++) {
4760
+ args_1[_i - 1] = arguments[_i];
4761
+ }
4762
+ return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
4763
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4764
+ if (options === void 0) { options = {}; }
4765
+ return __generator(this, function (_a) {
4766
+ // verify required parameter 'id' is not null or undefined
4767
+ (0, common_1.assertParamExists)('deleteDeleteCallTariffId', 'id', id);
4768
+ localVarPath = "/billing/admin/callTariffPlan/callTariff/{id}"
4769
+ .replace('{id}', encodeURIComponent(String(id)));
4770
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4771
+ if (configuration) {
4772
+ baseOptions = configuration.baseOptions;
4773
+ }
4774
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
4775
+ localVarHeaderParameter = {};
4776
+ localVarQueryParameter = {};
4777
+ localVarHeaderParameter['Accept'] = 'application/json';
4778
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
4779
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4780
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4781
+ return [2 /*return*/, {
4782
+ url: (0, common_1.toPathString)(localVarUrlObj),
4783
+ options: localVarRequestOptions,
4784
+ }];
4785
+ });
4786
+ });
4787
+ },
4751
4788
  /**
4752
4789
  * Delete Base Service
4753
4790
  * @param {number} baseServiceId Base Service Plan ID
@@ -7260,6 +7297,28 @@ var BillingApiFp = function (configuration) {
7260
7297
  });
7261
7298
  });
7262
7299
  },
7300
+ /**
7301
+ * Delete Call Tariff By ID
7302
+ * @param {number} id Call Tariff ID
7303
+ * @param {*} [options] Override http request option.
7304
+ * @throws {RequiredError}
7305
+ */
7306
+ deleteDeleteCallTariffId: function (id, options) {
7307
+ return __awaiter(this, void 0, void 0, function () {
7308
+ var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
7309
+ var _a, _b, _c;
7310
+ return __generator(this, function (_d) {
7311
+ switch (_d.label) {
7312
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteDeleteCallTariffId(id, options)];
7313
+ case 1:
7314
+ localVarAxiosArgs = _d.sent();
7315
+ localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7316
+ localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['BillingApi.deleteDeleteCallTariffId']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7317
+ return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
7318
+ }
7319
+ });
7320
+ });
7321
+ },
7263
7322
  /**
7264
7323
  * Delete Base Service
7265
7324
  * @param {number} baseServiceId Base Service Plan ID
@@ -8689,6 +8748,15 @@ var BillingApiFactory = function (configuration, basePath, axios) {
8689
8748
  deleteCloseAccount: function (billCustomerId, options) {
8690
8749
  return localVarFp.deleteCloseAccount(billCustomerId, options).then(function (request) { return request(axios, basePath); });
8691
8750
  },
8751
+ /**
8752
+ * Delete Call Tariff By ID
8753
+ * @param {number} id Call Tariff ID
8754
+ * @param {*} [options] Override http request option.
8755
+ * @throws {RequiredError}
8756
+ */
8757
+ deleteDeleteCallTariffId: function (id, options) {
8758
+ return localVarFp.deleteDeleteCallTariffId(id, options).then(function (request) { return request(axios, basePath); });
8759
+ },
8692
8760
  /**
8693
8761
  * Delete Base Service
8694
8762
  * @param {number} baseServiceId Base Service Plan ID
@@ -9318,6 +9386,16 @@ var BillingApi = /** @class */ (function (_super) {
9318
9386
  var _this = this;
9319
9387
  return (0, exports.BillingApiFp)(this.configuration).deleteCloseAccount(billCustomerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9320
9388
  };
9389
+ /**
9390
+ * Delete Call Tariff By ID
9391
+ * @param {number} id Call Tariff ID
9392
+ * @param {*} [options] Override http request option.
9393
+ * @throws {RequiredError}
9394
+ */
9395
+ BillingApi.prototype.deleteDeleteCallTariffId = function (id, options) {
9396
+ var _this = this;
9397
+ return (0, exports.BillingApiFp)(this.configuration).deleteDeleteCallTariffId(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
9398
+ };
9321
9399
  /**
9322
9400
  * Delete Base Service
9323
9401
  * @param {number} baseServiceId Base Service Plan ID
@@ -8,6 +8,7 @@ All URIs are relative to *https://bitbucket.org*
8
8
  |[**deleteAddRecurringCharge**](#deleteaddrecurringcharge) | **DELETE** /billing/customer/recurringCharges | |
9
9
  |[**deleteAddServiceToServicePlan**](#deleteaddservicetoserviceplan) | **DELETE** /billing/admin/servicePlan/service | |
10
10
  |[**deleteCloseAccount**](#deletecloseaccount) | **DELETE** /billing/customer/customer | |
11
+ |[**deleteDeleteCallTariffId**](#deletedeletecalltariffid) | **DELETE** /billing/admin/callTariffPlan/callTariff/{id} | |
11
12
  |[**deleteGetBaseServices**](#deletegetbaseservices) | **DELETE** /billing/admin/baseServices | |
12
13
  |[**deleteGetCallTariffPlan**](#deletegetcalltariffplan) | **DELETE** /billing/admin/callTariffPlan | |
13
14
  |[**deleteGetPriceGroups**](#deletegetpricegroups) | **DELETE** /billing/admin/priceGroups | |
@@ -293,6 +294,60 @@ No authorization required
293
294
 
294
295
  [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
295
296
 
297
+ # **deleteDeleteCallTariffId**
298
+ > boolean deleteDeleteCallTariffId()
299
+
300
+ Delete Call Tariff By ID
301
+
302
+ ### Example
303
+
304
+ ```typescript
305
+ import {
306
+ BillingApi,
307
+ Configuration
308
+ } from 'yellowgrid-api-ts';
309
+
310
+ const configuration = new Configuration();
311
+ const apiInstance = new BillingApi(configuration);
312
+
313
+ let id: number; //Call Tariff ID (default to undefined)
314
+
315
+ const { status, data } = await apiInstance.deleteDeleteCallTariffId(
316
+ id
317
+ );
318
+ ```
319
+
320
+ ### Parameters
321
+
322
+ |Name | Type | Description | Notes|
323
+ |------------- | ------------- | ------------- | -------------|
324
+ | **id** | [**number**] | Call Tariff ID | defaults to undefined|
325
+
326
+
327
+ ### Return type
328
+
329
+ **boolean**
330
+
331
+ ### Authorization
332
+
333
+ No authorization required
334
+
335
+ ### HTTP request headers
336
+
337
+ - **Content-Type**: Not defined
338
+ - **Accept**: application/json
339
+
340
+
341
+ ### HTTP response details
342
+ | Status code | Description | Response headers |
343
+ |-------------|-------------|------------------|
344
+ |**200** | Successful | - |
345
+ |**400** | Bad Request | - |
346
+ |**401** | Unauthorised | - |
347
+ |**403** | Access Denied | - |
348
+
349
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
350
+
296
351
  # **deleteGetBaseServices**
297
352
  > boolean deleteGetBaseServices()
298
353
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.261",
3
+ "version": "3.2.262",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {