yellowgrid-api-ts 3.2.260 → 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
@@ -6035,6 +6035,9 @@ export const ReportRequestDTOReportEnum = {
6035
6035
  _8: '8',
6036
6036
  _9: '9',
6037
6037
  _10: '10',
6038
+ _11: '11',
6039
+ _12: '12',
6040
+ _13: '13',
6038
6041
  } as const;
6039
6042
 
6040
6043
  export type ReportRequestDTOReportEnum = typeof ReportRequestDTOReportEnum[keyof typeof ReportRequestDTOReportEnum];
@@ -13310,6 +13313,39 @@ export const BillingApiAxiosParamCreator = function (configuration?: Configurati
13310
13313
  options: localVarRequestOptions,
13311
13314
  };
13312
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
+ },
13313
13349
  /**
13314
13350
  * Delete Base Service
13315
13351
  * @param {number} baseServiceId Base Service Plan ID
@@ -15588,6 +15624,18 @@ export const BillingApiFp = function(configuration?: Configuration) {
15588
15624
  const localVarOperationServerBasePath = operationServerMap['BillingApi.deleteCloseAccount']?.[localVarOperationServerIndex]?.url;
15589
15625
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15590
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
+ },
15591
15639
  /**
15592
15640
  * Delete Base Service
15593
15641
  * @param {number} baseServiceId Base Service Plan ID
@@ -16397,6 +16445,15 @@ export const BillingApiFactory = function (configuration?: Configuration, basePa
16397
16445
  deleteCloseAccount(billCustomerId?: number, options?: RawAxiosRequestConfig): AxiosPromise<number> {
16398
16446
  return localVarFp.deleteCloseAccount(billCustomerId, options).then((request) => request(axios, basePath));
16399
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
+ },
16400
16457
  /**
16401
16458
  * Delete Base Service
16402
16459
  * @param {number} baseServiceId Base Service Plan ID
@@ -17022,6 +17079,16 @@ export class BillingApi extends BaseAPI {
17022
17079
  return BillingApiFp(this.configuration).deleteCloseAccount(billCustomerId, options).then((request) => request(this.axios, this.basePath));
17023
17080
  }
17024
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
+
17025
17092
  /**
17026
17093
  * Delete Base Service
17027
17094
  * @param {number} baseServiceId Base Service Plan ID
package/dist/api.d.ts CHANGED
@@ -5956,6 +5956,9 @@ export declare const ReportRequestDTOReportEnum: {
5956
5956
  readonly _8: "8";
5957
5957
  readonly _9: "9";
5958
5958
  readonly _10: "10";
5959
+ readonly _11: "11";
5960
+ readonly _12: "12";
5961
+ readonly _13: "13";
5959
5962
  };
5960
5963
  export type ReportRequestDTOReportEnum = typeof ReportRequestDTOReportEnum[keyof typeof ReportRequestDTOReportEnum];
5961
5964
  export declare const ReportRequestDTOGraphTypeEnum: {
@@ -11254,6 +11257,13 @@ export declare const BillingApiAxiosParamCreator: (configuration?: Configuration
11254
11257
  * @throws {RequiredError}
11255
11258
  */
11256
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>;
11257
11267
  /**
11258
11268
  * Delete Base Service
11259
11269
  * @param {number} baseServiceId Base Service Plan ID
@@ -11741,6 +11751,13 @@ export declare const BillingApiFp: (configuration?: Configuration) => {
11741
11751
  * @throws {RequiredError}
11742
11752
  */
11743
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>>;
11744
11761
  /**
11745
11762
  * Delete Base Service
11746
11763
  * @param {number} baseServiceId Base Service Plan ID
@@ -12232,6 +12249,13 @@ export declare const BillingApiFactory: (configuration?: Configuration, basePath
12232
12249
  * @throws {RequiredError}
12233
12250
  */
12234
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>;
12235
12259
  /**
12236
12260
  * Delete Base Service
12237
12261
  * @param {number} baseServiceId Base Service Plan ID
@@ -12723,6 +12747,13 @@ export declare class BillingApi extends BaseAPI {
12723
12747
  * @throws {RequiredError}
12724
12748
  */
12725
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, {}>>;
12726
12757
  /**
12727
12758
  * Delete Base Service
12728
12759
  * @param {number} baseServiceId Base Service Plan ID
package/dist/api.js CHANGED
@@ -388,6 +388,9 @@ exports.ReportRequestDTOReportEnum = {
388
388
  _8: '8',
389
389
  _9: '9',
390
390
  _10: '10',
391
+ _11: '11',
392
+ _12: '12',
393
+ _13: '13',
391
394
  };
392
395
  exports.ReportRequestDTOGraphTypeEnum = {
393
396
  StackedArea: 'stacked-area',
@@ -4745,6 +4748,43 @@ var BillingApiAxiosParamCreator = function (configuration) {
4745
4748
  });
4746
4749
  });
4747
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
+ },
4748
4788
  /**
4749
4789
  * Delete Base Service
4750
4790
  * @param {number} baseServiceId Base Service Plan ID
@@ -7257,6 +7297,28 @@ var BillingApiFp = function (configuration) {
7257
7297
  });
7258
7298
  });
7259
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
+ },
7260
7322
  /**
7261
7323
  * Delete Base Service
7262
7324
  * @param {number} baseServiceId Base Service Plan ID
@@ -8686,6 +8748,15 @@ var BillingApiFactory = function (configuration, basePath, axios) {
8686
8748
  deleteCloseAccount: function (billCustomerId, options) {
8687
8749
  return localVarFp.deleteCloseAccount(billCustomerId, options).then(function (request) { return request(axios, basePath); });
8688
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
+ },
8689
8760
  /**
8690
8761
  * Delete Base Service
8691
8762
  * @param {number} baseServiceId Base Service Plan ID
@@ -9315,6 +9386,16 @@ var BillingApi = /** @class */ (function (_super) {
9315
9386
  var _this = this;
9316
9387
  return (0, exports.BillingApiFp)(this.configuration).deleteCloseAccount(billCustomerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
9317
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
+ };
9318
9399
  /**
9319
9400
  * Delete Base Service
9320
9401
  * @param {number} baseServiceId Base Service Plan ID
@@ -49,5 +49,20 @@ export declare const ReportEnum: {
49
49
  readonly value: 10;
50
50
  readonly publicValue: "Tech Support Customers";
51
51
  };
52
+ readonly BILLING_BUNDLE_CALLS: {
53
+ readonly name: "BILLING_BUNDLE_CALLS";
54
+ readonly value: 11;
55
+ readonly publicValue: "Billing - Bundle Calls With Cost";
56
+ };
57
+ readonly BILLING_UNCONNECTED_CALLS: {
58
+ readonly name: "BILLING_UNCONNECTED_CALLS";
59
+ readonly value: 12;
60
+ readonly publicValue: "Billing - Unconnected Calls";
61
+ };
62
+ readonly BILLING_UNCONNECTED_SERVICES: {
63
+ readonly name: "BILLING_UNCONNECTED_SERVICES";
64
+ readonly value: 13;
65
+ readonly publicValue: "Billing - Unconnected Services";
66
+ };
52
67
  };
53
68
  export type ReportEnum = typeof ReportEnum;
@@ -51,5 +51,20 @@ exports.ReportEnum = {
51
51
  "name": "TECH_SUPPORT_CUSTOMERS",
52
52
  "value": 10,
53
53
  "publicValue": "Tech Support Customers"
54
+ },
55
+ "BILLING_BUNDLE_CALLS": {
56
+ "name": "BILLING_BUNDLE_CALLS",
57
+ "value": 11,
58
+ "publicValue": "Billing - Bundle Calls With Cost"
59
+ },
60
+ "BILLING_UNCONNECTED_CALLS": {
61
+ "name": "BILLING_UNCONNECTED_CALLS",
62
+ "value": 12,
63
+ "publicValue": "Billing - Unconnected Calls"
64
+ },
65
+ "BILLING_UNCONNECTED_SERVICES": {
66
+ "name": "BILLING_UNCONNECTED_SERVICES",
67
+ "value": 13,
68
+ "publicValue": "Billing - Unconnected Services"
54
69
  }
55
70
  };
@@ -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
 
@@ -48,6 +48,21 @@ export const ReportEnum = {
48
48
  "name": "TECH_SUPPORT_CUSTOMERS",
49
49
  "value": 10,
50
50
  "publicValue": "Tech Support Customers"
51
+ },
52
+ "BILLING_BUNDLE_CALLS": {
53
+ "name": "BILLING_BUNDLE_CALLS",
54
+ "value": 11,
55
+ "publicValue": "Billing - Bundle Calls With Cost"
56
+ },
57
+ "BILLING_UNCONNECTED_CALLS": {
58
+ "name": "BILLING_UNCONNECTED_CALLS",
59
+ "value": 12,
60
+ "publicValue": "Billing - Unconnected Calls"
61
+ },
62
+ "BILLING_UNCONNECTED_SERVICES": {
63
+ "name": "BILLING_UNCONNECTED_SERVICES",
64
+ "value": 13,
65
+ "publicValue": "Billing - Unconnected Services"
51
66
  }
52
67
  } as const;
53
68
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yellowgrid-api-ts",
3
- "version": "3.2.260",
3
+ "version": "3.2.262",
4
4
  "description": "OpenAPI client for yellowgrid-api-ts",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {