yellowgrid-api-ts 3.2.106 → 3.2.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -1
- package/README.md +0 -1
- package/api.ts +16 -26
- package/dist/api.d.ts +10 -20
- package/dist/api.js +15 -15
- package/docs/PostGetProductForCustomerRequest.md +2 -0
- package/docs/ProductsApi.md +5 -5
- package/package.json +1 -1
- package/docs/PostGetProductRequest.md +0 -24
package/.openapi-generator/FILES
CHANGED
|
@@ -129,7 +129,6 @@ docs/PostAddOrderNoteRequest.md
|
|
|
129
129
|
docs/PostAddWebhook200Response.md
|
|
130
130
|
docs/PostGetClientCredentialsRequest.md
|
|
131
131
|
docs/PostGetProductForCustomerRequest.md
|
|
132
|
-
docs/PostGetProductRequest.md
|
|
133
132
|
docs/PostSplitOrderRequest.md
|
|
134
133
|
docs/PriceListItemModel.md
|
|
135
134
|
docs/PricingApi.md
|
package/README.md
CHANGED
|
@@ -394,7 +394,6 @@ Class | Method | HTTP request | Description
|
|
|
394
394
|
- [PostAddWebhook200Response](docs/PostAddWebhook200Response.md)
|
|
395
395
|
- [PostGetClientCredentialsRequest](docs/PostGetClientCredentialsRequest.md)
|
|
396
396
|
- [PostGetProductForCustomerRequest](docs/PostGetProductForCustomerRequest.md)
|
|
397
|
-
- [PostGetProductRequest](docs/PostGetProductRequest.md)
|
|
398
397
|
- [PostSplitOrderRequest](docs/PostSplitOrderRequest.md)
|
|
399
398
|
- [PriceListItemModel](docs/PriceListItemModel.md)
|
|
400
399
|
- [PrinterEntity](docs/PrinterEntity.md)
|
package/api.ts
CHANGED
|
@@ -4105,20 +4105,10 @@ export interface PostGetProductForCustomerRequest {
|
|
|
4105
4105
|
* 3CX Sales Code
|
|
4106
4106
|
*/
|
|
4107
4107
|
'tcxSalesCode'?: string | null;
|
|
4108
|
-
}
|
|
4109
|
-
export interface PostGetProductRequest {
|
|
4110
|
-
/**
|
|
4111
|
-
* Quantity
|
|
4112
|
-
*/
|
|
4113
|
-
'quantity'?: number | null;
|
|
4114
|
-
/**
|
|
4115
|
-
* 3CX Licence Key
|
|
4116
|
-
*/
|
|
4117
|
-
'licenceKey'?: string | null;
|
|
4118
4108
|
/**
|
|
4119
|
-
* 3CX
|
|
4109
|
+
* 3CX Renewal Years (Upgrade Only)
|
|
4120
4110
|
*/
|
|
4121
|
-
'
|
|
4111
|
+
'renewalYears'?: number | null;
|
|
4122
4112
|
}
|
|
4123
4113
|
export interface PostSplitOrderRequest {
|
|
4124
4114
|
/**
|
|
@@ -19454,15 +19444,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
19454
19444
|
* Get Product
|
|
19455
19445
|
* @summary Get Product
|
|
19456
19446
|
* @param {string} sku Product SKU
|
|
19457
|
-
* @param {
|
|
19447
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
19458
19448
|
* @param {*} [options] Override http request option.
|
|
19459
19449
|
* @throws {RequiredError}
|
|
19460
19450
|
*/
|
|
19461
|
-
postGetProduct: async (sku: string,
|
|
19451
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
19462
19452
|
// verify required parameter 'sku' is not null or undefined
|
|
19463
19453
|
assertParamExists('postGetProduct', 'sku', sku)
|
|
19464
|
-
// verify required parameter '
|
|
19465
|
-
assertParamExists('postGetProduct', '
|
|
19454
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
19455
|
+
assertParamExists('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest)
|
|
19466
19456
|
const localVarPath = `/products/{sku}`
|
|
19467
19457
|
.replace(`{${"sku"}}`, encodeURIComponent(String(sku)));
|
|
19468
19458
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -19482,7 +19472,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
19482
19472
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19483
19473
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19484
19474
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
19485
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
19475
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postGetProductForCustomerRequest, localVarRequestOptions, configuration)
|
|
19486
19476
|
|
|
19487
19477
|
return {
|
|
19488
19478
|
url: toPathString(localVarUrlObj),
|
|
@@ -19651,12 +19641,12 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
19651
19641
|
* Get Product
|
|
19652
19642
|
* @summary Get Product
|
|
19653
19643
|
* @param {string} sku Product SKU
|
|
19654
|
-
* @param {
|
|
19644
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
19655
19645
|
* @param {*} [options] Override http request option.
|
|
19656
19646
|
* @throws {RequiredError}
|
|
19657
19647
|
*/
|
|
19658
|
-
async postGetProduct(sku: string,
|
|
19659
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku,
|
|
19648
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
19649
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
19660
19650
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
19661
19651
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
19662
19652
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -19768,12 +19758,12 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
19768
19758
|
* Get Product
|
|
19769
19759
|
* @summary Get Product
|
|
19770
19760
|
* @param {string} sku Product SKU
|
|
19771
|
-
* @param {
|
|
19761
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
19772
19762
|
* @param {*} [options] Override http request option.
|
|
19773
19763
|
* @throws {RequiredError}
|
|
19774
19764
|
*/
|
|
19775
|
-
postGetProduct(sku: string,
|
|
19776
|
-
return localVarFp.postGetProduct(sku,
|
|
19765
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
19766
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
19777
19767
|
},
|
|
19778
19768
|
/**
|
|
19779
19769
|
* Get Product For Customer
|
|
@@ -19885,12 +19875,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
19885
19875
|
* Get Product
|
|
19886
19876
|
* @summary Get Product
|
|
19887
19877
|
* @param {string} sku Product SKU
|
|
19888
|
-
* @param {
|
|
19878
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
19889
19879
|
* @param {*} [options] Override http request option.
|
|
19890
19880
|
* @throws {RequiredError}
|
|
19891
19881
|
*/
|
|
19892
|
-
public postGetProduct(sku: string,
|
|
19893
|
-
return ProductsApiFp(this.configuration).postGetProduct(sku,
|
|
19882
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
19883
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19894
19884
|
}
|
|
19895
19885
|
|
|
19896
19886
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -4063,20 +4063,10 @@ export interface PostGetProductForCustomerRequest {
|
|
|
4063
4063
|
* 3CX Sales Code
|
|
4064
4064
|
*/
|
|
4065
4065
|
'tcxSalesCode'?: string | null;
|
|
4066
|
-
}
|
|
4067
|
-
export interface PostGetProductRequest {
|
|
4068
|
-
/**
|
|
4069
|
-
* Quantity
|
|
4070
|
-
*/
|
|
4071
|
-
'quantity'?: number | null;
|
|
4072
|
-
/**
|
|
4073
|
-
* 3CX Licence Key
|
|
4074
|
-
*/
|
|
4075
|
-
'licenceKey'?: string | null;
|
|
4076
4066
|
/**
|
|
4077
|
-
* 3CX
|
|
4067
|
+
* 3CX Renewal Years (Upgrade Only)
|
|
4078
4068
|
*/
|
|
4079
|
-
'
|
|
4069
|
+
'renewalYears'?: number | null;
|
|
4080
4070
|
}
|
|
4081
4071
|
export interface PostSplitOrderRequest {
|
|
4082
4072
|
/**
|
|
@@ -13359,11 +13349,11 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
13359
13349
|
* Get Product
|
|
13360
13350
|
* @summary Get Product
|
|
13361
13351
|
* @param {string} sku Product SKU
|
|
13362
|
-
* @param {
|
|
13352
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
13363
13353
|
* @param {*} [options] Override http request option.
|
|
13364
13354
|
* @throws {RequiredError}
|
|
13365
13355
|
*/
|
|
13366
|
-
postGetProduct: (sku: string,
|
|
13356
|
+
postGetProduct: (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
13367
13357
|
/**
|
|
13368
13358
|
* Get Product For Customer
|
|
13369
13359
|
* @summary Get Product For Customer
|
|
@@ -13446,11 +13436,11 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
13446
13436
|
* Get Product
|
|
13447
13437
|
* @summary Get Product
|
|
13448
13438
|
* @param {string} sku Product SKU
|
|
13449
|
-
* @param {
|
|
13439
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
13450
13440
|
* @param {*} [options] Override http request option.
|
|
13451
13441
|
* @throws {RequiredError}
|
|
13452
13442
|
*/
|
|
13453
|
-
postGetProduct(sku: string,
|
|
13443
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>>;
|
|
13454
13444
|
/**
|
|
13455
13445
|
* Get Product For Customer
|
|
13456
13446
|
* @summary Get Product For Customer
|
|
@@ -13533,11 +13523,11 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
13533
13523
|
* Get Product
|
|
13534
13524
|
* @summary Get Product
|
|
13535
13525
|
* @param {string} sku Product SKU
|
|
13536
|
-
* @param {
|
|
13526
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
13537
13527
|
* @param {*} [options] Override http request option.
|
|
13538
13528
|
* @throws {RequiredError}
|
|
13539
13529
|
*/
|
|
13540
|
-
postGetProduct(sku: string,
|
|
13530
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO>;
|
|
13541
13531
|
/**
|
|
13542
13532
|
* Get Product For Customer
|
|
13543
13533
|
* @summary Get Product For Customer
|
|
@@ -13620,11 +13610,11 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
13620
13610
|
* Get Product
|
|
13621
13611
|
* @summary Get Product
|
|
13622
13612
|
* @param {string} sku Product SKU
|
|
13623
|
-
* @param {
|
|
13613
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
13624
13614
|
* @param {*} [options] Override http request option.
|
|
13625
13615
|
* @throws {RequiredError}
|
|
13626
13616
|
*/
|
|
13627
|
-
postGetProduct(sku: string,
|
|
13617
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSummaryDTO, any, {}>>;
|
|
13628
13618
|
/**
|
|
13629
13619
|
* Get Product For Customer
|
|
13630
13620
|
* @summary Get Product For Customer
|
package/dist/api.js
CHANGED
|
@@ -13787,23 +13787,23 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
13787
13787
|
* Get Product
|
|
13788
13788
|
* @summary Get Product
|
|
13789
13789
|
* @param {string} sku Product SKU
|
|
13790
|
-
* @param {
|
|
13790
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
13791
13791
|
* @param {*} [options] Override http request option.
|
|
13792
13792
|
* @throws {RequiredError}
|
|
13793
13793
|
*/
|
|
13794
|
-
postGetProduct: function (sku_1,
|
|
13794
|
+
postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
|
|
13795
13795
|
var args_1 = [];
|
|
13796
13796
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
13797
13797
|
args_1[_i - 2] = arguments[_i];
|
|
13798
13798
|
}
|
|
13799
|
-
return __awaiter(_this, __spreadArray([sku_1,
|
|
13799
|
+
return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
|
|
13800
13800
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
13801
13801
|
if (options === void 0) { options = {}; }
|
|
13802
13802
|
return __generator(this, function (_a) {
|
|
13803
13803
|
// verify required parameter 'sku' is not null or undefined
|
|
13804
13804
|
(0, common_1.assertParamExists)('postGetProduct', 'sku', sku);
|
|
13805
|
-
// verify required parameter '
|
|
13806
|
-
(0, common_1.assertParamExists)('postGetProduct', '
|
|
13805
|
+
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
13806
|
+
(0, common_1.assertParamExists)('postGetProduct', 'postGetProductForCustomerRequest', postGetProductForCustomerRequest);
|
|
13807
13807
|
localVarPath = "/products/{sku}"
|
|
13808
13808
|
.replace("{".concat("sku", "}"), encodeURIComponent(String(sku)));
|
|
13809
13809
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -13818,7 +13818,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
13818
13818
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13819
13819
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13820
13820
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13821
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
13821
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postGetProductForCustomerRequest, localVarRequestOptions, configuration);
|
|
13822
13822
|
return [2 /*return*/, {
|
|
13823
13823
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13824
13824
|
options: localVarRequestOptions,
|
|
@@ -14071,17 +14071,17 @@ var ProductsApiFp = function (configuration) {
|
|
|
14071
14071
|
* Get Product
|
|
14072
14072
|
* @summary Get Product
|
|
14073
14073
|
* @param {string} sku Product SKU
|
|
14074
|
-
* @param {
|
|
14074
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
14075
14075
|
* @param {*} [options] Override http request option.
|
|
14076
14076
|
* @throws {RequiredError}
|
|
14077
14077
|
*/
|
|
14078
|
-
postGetProduct: function (sku,
|
|
14078
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
14079
14079
|
return __awaiter(this, void 0, void 0, function () {
|
|
14080
14080
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
14081
14081
|
var _a, _b, _c;
|
|
14082
14082
|
return __generator(this, function (_d) {
|
|
14083
14083
|
switch (_d.label) {
|
|
14084
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku,
|
|
14084
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
|
|
14085
14085
|
case 1:
|
|
14086
14086
|
localVarAxiosArgs = _d.sent();
|
|
14087
14087
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -14208,12 +14208,12 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
14208
14208
|
* Get Product
|
|
14209
14209
|
* @summary Get Product
|
|
14210
14210
|
* @param {string} sku Product SKU
|
|
14211
|
-
* @param {
|
|
14211
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
14212
14212
|
* @param {*} [options] Override http request option.
|
|
14213
14213
|
* @throws {RequiredError}
|
|
14214
14214
|
*/
|
|
14215
|
-
postGetProduct: function (sku,
|
|
14216
|
-
return localVarFp.postGetProduct(sku,
|
|
14215
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
14216
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
14217
14217
|
},
|
|
14218
14218
|
/**
|
|
14219
14219
|
* Get Product For Customer
|
|
@@ -14329,13 +14329,13 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
14329
14329
|
* Get Product
|
|
14330
14330
|
* @summary Get Product
|
|
14331
14331
|
* @param {string} sku Product SKU
|
|
14332
|
-
* @param {
|
|
14332
|
+
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
14333
14333
|
* @param {*} [options] Override http request option.
|
|
14334
14334
|
* @throws {RequiredError}
|
|
14335
14335
|
*/
|
|
14336
|
-
ProductsApi.prototype.postGetProduct = function (sku,
|
|
14336
|
+
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
14337
14337
|
var _this = this;
|
|
14338
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku,
|
|
14338
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14339
14339
|
};
|
|
14340
14340
|
/**
|
|
14341
14341
|
* Get Product For Customer
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**licenceKey** | **string** | 3CX Licence Key | [optional] [default to undefined]
|
|
10
10
|
**hosting** | **boolean** | 3CX Hosting | [optional] [default to undefined]
|
|
11
11
|
**tcxSalesCode** | **string** | 3CX Sales Code | [optional] [default to undefined]
|
|
12
|
+
**renewalYears** | **number** | 3CX Renewal Years (Upgrade Only) | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: PostGetProductForCustomerRequest = {
|
|
|
20
21
|
licenceKey,
|
|
21
22
|
hosting,
|
|
22
23
|
tcxSalesCode,
|
|
24
|
+
renewalYears,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
package/docs/ProductsApi.md
CHANGED
|
@@ -422,7 +422,7 @@ No authorization required
|
|
|
422
422
|
[[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)
|
|
423
423
|
|
|
424
424
|
# **postGetProduct**
|
|
425
|
-
> ProductSummaryDTO postGetProduct(
|
|
425
|
+
> ProductSummaryDTO postGetProduct(postGetProductForCustomerRequest)
|
|
426
426
|
|
|
427
427
|
Get Product
|
|
428
428
|
|
|
@@ -432,18 +432,18 @@ Get Product
|
|
|
432
432
|
import {
|
|
433
433
|
ProductsApi,
|
|
434
434
|
Configuration,
|
|
435
|
-
|
|
435
|
+
PostGetProductForCustomerRequest
|
|
436
436
|
} from 'yellowgrid-api-ts';
|
|
437
437
|
|
|
438
438
|
const configuration = new Configuration();
|
|
439
439
|
const apiInstance = new ProductsApi(configuration);
|
|
440
440
|
|
|
441
441
|
let sku: string; //Product SKU (default to undefined)
|
|
442
|
-
let
|
|
442
|
+
let postGetProductForCustomerRequest: PostGetProductForCustomerRequest; //Product search criteria
|
|
443
443
|
|
|
444
444
|
const { status, data } = await apiInstance.postGetProduct(
|
|
445
445
|
sku,
|
|
446
|
-
|
|
446
|
+
postGetProductForCustomerRequest
|
|
447
447
|
);
|
|
448
448
|
```
|
|
449
449
|
|
|
@@ -451,7 +451,7 @@ const { status, data } = await apiInstance.postGetProduct(
|
|
|
451
451
|
|
|
452
452
|
|Name | Type | Description | Notes|
|
|
453
453
|
|------------- | ------------- | ------------- | -------------|
|
|
454
|
-
| **
|
|
454
|
+
| **postGetProductForCustomerRequest** | **PostGetProductForCustomerRequest**| Product search criteria | |
|
|
455
455
|
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
456
456
|
|
|
457
457
|
|
package/package.json
CHANGED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
# PostGetProductRequest
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**quantity** | **number** | Quantity | [optional] [default to undefined]
|
|
9
|
-
**licenceKey** | **string** | 3CX Licence Key | [optional] [default to undefined]
|
|
10
|
-
**hosting** | **boolean** | 3CX Hosting | [optional] [default to undefined]
|
|
11
|
-
|
|
12
|
-
## Example
|
|
13
|
-
|
|
14
|
-
```typescript
|
|
15
|
-
import { PostGetProductRequest } from 'yellowgrid-api-ts';
|
|
16
|
-
|
|
17
|
-
const instance: PostGetProductRequest = {
|
|
18
|
-
quantity,
|
|
19
|
-
licenceKey,
|
|
20
|
-
hosting,
|
|
21
|
-
};
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|