yellowgrid-api-ts 3.2.197 → 3.2.198
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/api.ts +30 -14
- package/dist/api.d.ts +16 -8
- package/dist/api.js +34 -20
- package/docs/ProductsApi.md +8 -2
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -22752,10 +22752,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
22752
22752
|
* @summary Get Product
|
|
22753
22753
|
* @param {string} sku Product SKU
|
|
22754
22754
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
22755
|
+
* @param {number} [orderId] Order ID
|
|
22755
22756
|
* @param {*} [options] Override http request option.
|
|
22756
22757
|
* @throws {RequiredError}
|
|
22757
22758
|
*/
|
|
22758
|
-
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22759
|
+
postGetProduct: async (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22759
22760
|
// verify required parameter 'sku' is not null or undefined
|
|
22760
22761
|
assertParamExists('postGetProduct', 'sku', sku)
|
|
22761
22762
|
// verify required parameter 'postGetProductForCustomerRequest' is not null or undefined
|
|
@@ -22773,6 +22774,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
22773
22774
|
const localVarHeaderParameter = {} as any;
|
|
22774
22775
|
const localVarQueryParameter = {} as any;
|
|
22775
22776
|
|
|
22777
|
+
if (orderId !== undefined) {
|
|
22778
|
+
localVarQueryParameter['orderId'] = orderId;
|
|
22779
|
+
}
|
|
22780
|
+
|
|
22776
22781
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22777
22782
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
22778
22783
|
|
|
@@ -22792,10 +22797,11 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
22792
22797
|
* @param {number} customerId Customer ID
|
|
22793
22798
|
* @param {string} sku Product SKU
|
|
22794
22799
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
22800
|
+
* @param {number} [orderId] Order ID
|
|
22795
22801
|
* @param {*} [options] Override http request option.
|
|
22796
22802
|
* @throws {RequiredError}
|
|
22797
22803
|
*/
|
|
22798
|
-
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22804
|
+
postGetProductForCustomer: async (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
22799
22805
|
// verify required parameter 'customerId' is not null or undefined
|
|
22800
22806
|
assertParamExists('postGetProductForCustomer', 'customerId', customerId)
|
|
22801
22807
|
// verify required parameter 'sku' is not null or undefined
|
|
@@ -22819,6 +22825,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
22819
22825
|
localVarQueryParameter['customerId'] = customerId;
|
|
22820
22826
|
}
|
|
22821
22827
|
|
|
22828
|
+
if (orderId !== undefined) {
|
|
22829
|
+
localVarQueryParameter['orderId'] = orderId;
|
|
22830
|
+
}
|
|
22831
|
+
|
|
22822
22832
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
22823
22833
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
22824
22834
|
|
|
@@ -22949,11 +22959,12 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
22949
22959
|
* @summary Get Product
|
|
22950
22960
|
* @param {string} sku Product SKU
|
|
22951
22961
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
22962
|
+
* @param {number} [orderId] Order ID
|
|
22952
22963
|
* @param {*} [options] Override http request option.
|
|
22953
22964
|
* @throws {RequiredError}
|
|
22954
22965
|
*/
|
|
22955
|
-
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
22956
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options);
|
|
22966
|
+
async postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
22967
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, orderId, options);
|
|
22957
22968
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22958
22969
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProduct']?.[localVarOperationServerIndex]?.url;
|
|
22959
22970
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -22964,11 +22975,12 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
22964
22975
|
* @param {number} customerId Customer ID
|
|
22965
22976
|
* @param {string} sku Product SKU
|
|
22966
22977
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
22978
|
+
* @param {number} [orderId] Order ID
|
|
22967
22979
|
* @param {*} [options] Override http request option.
|
|
22968
22980
|
* @throws {RequiredError}
|
|
22969
22981
|
*/
|
|
22970
|
-
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
22971
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options);
|
|
22982
|
+
async postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>> {
|
|
22983
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options);
|
|
22972
22984
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
22973
22985
|
const localVarOperationServerBasePath = operationServerMap['ProductsApi.postGetProductForCustomer']?.[localVarOperationServerIndex]?.url;
|
|
22974
22986
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -23066,11 +23078,12 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
23066
23078
|
* @summary Get Product
|
|
23067
23079
|
* @param {string} sku Product SKU
|
|
23068
23080
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
23081
|
+
* @param {number} [orderId] Order ID
|
|
23069
23082
|
* @param {*} [options] Override http request option.
|
|
23070
23083
|
* @throws {RequiredError}
|
|
23071
23084
|
*/
|
|
23072
|
-
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
23073
|
-
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
23085
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
23086
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, orderId, options).then((request) => request(axios, basePath));
|
|
23074
23087
|
},
|
|
23075
23088
|
/**
|
|
23076
23089
|
* Get Product For Customer
|
|
@@ -23078,11 +23091,12 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
23078
23091
|
* @param {number} customerId Customer ID
|
|
23079
23092
|
* @param {string} sku Product SKU
|
|
23080
23093
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
23094
|
+
* @param {number} [orderId] Order ID
|
|
23081
23095
|
* @param {*} [options] Override http request option.
|
|
23082
23096
|
* @throws {RequiredError}
|
|
23083
23097
|
*/
|
|
23084
|
-
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
23085
|
-
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(axios, basePath));
|
|
23098
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO> {
|
|
23099
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options).then((request) => request(axios, basePath));
|
|
23086
23100
|
},
|
|
23087
23101
|
};
|
|
23088
23102
|
};
|
|
@@ -23183,11 +23197,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
23183
23197
|
* @summary Get Product
|
|
23184
23198
|
* @param {string} sku Product SKU
|
|
23185
23199
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
23200
|
+
* @param {number} [orderId] Order ID
|
|
23186
23201
|
* @param {*} [options] Override http request option.
|
|
23187
23202
|
* @throws {RequiredError}
|
|
23188
23203
|
*/
|
|
23189
|
-
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
23190
|
-
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
23204
|
+
public postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig) {
|
|
23205
|
+
return ProductsApiFp(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, orderId, options).then((request) => request(this.axios, this.basePath));
|
|
23191
23206
|
}
|
|
23192
23207
|
|
|
23193
23208
|
/**
|
|
@@ -23196,11 +23211,12 @@ export class ProductsApi extends BaseAPI {
|
|
|
23196
23211
|
* @param {number} customerId Customer ID
|
|
23197
23212
|
* @param {string} sku Product SKU
|
|
23198
23213
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
23214
|
+
* @param {number} [orderId] Order ID
|
|
23199
23215
|
* @param {*} [options] Override http request option.
|
|
23200
23216
|
* @throws {RequiredError}
|
|
23201
23217
|
*/
|
|
23202
|
-
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) {
|
|
23203
|
-
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then((request) => request(this.axios, this.basePath));
|
|
23218
|
+
public postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig) {
|
|
23219
|
+
return ProductsApiFp(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options).then((request) => request(this.axios, this.basePath));
|
|
23204
23220
|
}
|
|
23205
23221
|
}
|
|
23206
23222
|
|
package/dist/api.d.ts
CHANGED
|
@@ -15277,20 +15277,22 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
15277
15277
|
* @summary Get Product
|
|
15278
15278
|
* @param {string} sku Product SKU
|
|
15279
15279
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15280
|
+
* @param {number} [orderId] Order ID
|
|
15280
15281
|
* @param {*} [options] Override http request option.
|
|
15281
15282
|
* @throws {RequiredError}
|
|
15282
15283
|
*/
|
|
15283
|
-
postGetProduct: (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15284
|
+
postGetProduct: (sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15284
15285
|
/**
|
|
15285
15286
|
* Get Product For Customer
|
|
15286
15287
|
* @summary Get Product For Customer
|
|
15287
15288
|
* @param {number} customerId Customer ID
|
|
15288
15289
|
* @param {string} sku Product SKU
|
|
15289
15290
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15291
|
+
* @param {number} [orderId] Order ID
|
|
15290
15292
|
* @param {*} [options] Override http request option.
|
|
15291
15293
|
* @throws {RequiredError}
|
|
15292
15294
|
*/
|
|
15293
|
-
postGetProductForCustomer: (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15295
|
+
postGetProductForCustomer: (customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
15294
15296
|
};
|
|
15295
15297
|
/**
|
|
15296
15298
|
* ProductsApi - functional programming interface
|
|
@@ -15364,20 +15366,22 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
|
|
|
15364
15366
|
* @summary Get Product
|
|
15365
15367
|
* @param {string} sku Product SKU
|
|
15366
15368
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15369
|
+
* @param {number} [orderId] Order ID
|
|
15367
15370
|
* @param {*} [options] Override http request option.
|
|
15368
15371
|
* @throws {RequiredError}
|
|
15369
15372
|
*/
|
|
15370
|
-
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>>;
|
|
15373
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>>;
|
|
15371
15374
|
/**
|
|
15372
15375
|
* Get Product For Customer
|
|
15373
15376
|
* @summary Get Product For Customer
|
|
15374
15377
|
* @param {number} customerId Customer ID
|
|
15375
15378
|
* @param {string} sku Product SKU
|
|
15376
15379
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15380
|
+
* @param {number} [orderId] Order ID
|
|
15377
15381
|
* @param {*} [options] Override http request option.
|
|
15378
15382
|
* @throws {RequiredError}
|
|
15379
15383
|
*/
|
|
15380
|
-
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>>;
|
|
15384
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductSummaryDTO>>;
|
|
15381
15385
|
};
|
|
15382
15386
|
/**
|
|
15383
15387
|
* ProductsApi - factory interface
|
|
@@ -15451,20 +15455,22 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
|
|
|
15451
15455
|
* @summary Get Product
|
|
15452
15456
|
* @param {string} sku Product SKU
|
|
15453
15457
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15458
|
+
* @param {number} [orderId] Order ID
|
|
15454
15459
|
* @param {*} [options] Override http request option.
|
|
15455
15460
|
* @throws {RequiredError}
|
|
15456
15461
|
*/
|
|
15457
|
-
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO>;
|
|
15462
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO>;
|
|
15458
15463
|
/**
|
|
15459
15464
|
* Get Product For Customer
|
|
15460
15465
|
* @summary Get Product For Customer
|
|
15461
15466
|
* @param {number} customerId Customer ID
|
|
15462
15467
|
* @param {string} sku Product SKU
|
|
15463
15468
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15469
|
+
* @param {number} [orderId] Order ID
|
|
15464
15470
|
* @param {*} [options] Override http request option.
|
|
15465
15471
|
* @throws {RequiredError}
|
|
15466
15472
|
*/
|
|
15467
|
-
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO>;
|
|
15473
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): AxiosPromise<ProductSummaryDTO>;
|
|
15468
15474
|
};
|
|
15469
15475
|
/**
|
|
15470
15476
|
* ProductsApi - object-oriented interface
|
|
@@ -15538,20 +15544,22 @@ export declare class ProductsApi extends BaseAPI {
|
|
|
15538
15544
|
* @summary Get Product
|
|
15539
15545
|
* @param {string} sku Product SKU
|
|
15540
15546
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15547
|
+
* @param {number} [orderId] Order ID
|
|
15541
15548
|
* @param {*} [options] Override http request option.
|
|
15542
15549
|
* @throws {RequiredError}
|
|
15543
15550
|
*/
|
|
15544
|
-
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSummaryDTO, any, {}>>;
|
|
15551
|
+
postGetProduct(sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSummaryDTO, any, {}>>;
|
|
15545
15552
|
/**
|
|
15546
15553
|
* Get Product For Customer
|
|
15547
15554
|
* @summary Get Product For Customer
|
|
15548
15555
|
* @param {number} customerId Customer ID
|
|
15549
15556
|
* @param {string} sku Product SKU
|
|
15550
15557
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
15558
|
+
* @param {number} [orderId] Order ID
|
|
15551
15559
|
* @param {*} [options] Override http request option.
|
|
15552
15560
|
* @throws {RequiredError}
|
|
15553
15561
|
*/
|
|
15554
|
-
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSummaryDTO, any, {}>>;
|
|
15562
|
+
postGetProductForCustomer(customerId: number, sku: string, postGetProductForCustomerRequest: PostGetProductForCustomerRequest, orderId?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductSummaryDTO, any, {}>>;
|
|
15555
15563
|
}
|
|
15556
15564
|
export declare const GetGetLegacyStockListFormatEnum: {
|
|
15557
15565
|
readonly Xml: "XML";
|
package/dist/api.js
CHANGED
|
@@ -16914,15 +16914,16 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
16914
16914
|
* @summary Get Product
|
|
16915
16915
|
* @param {string} sku Product SKU
|
|
16916
16916
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16917
|
+
* @param {number} [orderId] Order ID
|
|
16917
16918
|
* @param {*} [options] Override http request option.
|
|
16918
16919
|
* @throws {RequiredError}
|
|
16919
16920
|
*/
|
|
16920
|
-
postGetProduct: function (sku_1, postGetProductForCustomerRequest_1) {
|
|
16921
|
+
postGetProduct: function (sku_1, postGetProductForCustomerRequest_1, orderId_1) {
|
|
16921
16922
|
var args_1 = [];
|
|
16922
|
-
for (var _i =
|
|
16923
|
-
args_1[_i -
|
|
16923
|
+
for (var _i = 3; _i < arguments.length; _i++) {
|
|
16924
|
+
args_1[_i - 3] = arguments[_i];
|
|
16924
16925
|
}
|
|
16925
|
-
return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, options) {
|
|
16926
|
+
return __awaiter(_this, __spreadArray([sku_1, postGetProductForCustomerRequest_1, orderId_1], args_1, true), void 0, function (sku, postGetProductForCustomerRequest, orderId, options) {
|
|
16926
16927
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16927
16928
|
if (options === void 0) { options = {}; }
|
|
16928
16929
|
return __generator(this, function (_a) {
|
|
@@ -16939,6 +16940,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
16939
16940
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
16940
16941
|
localVarHeaderParameter = {};
|
|
16941
16942
|
localVarQueryParameter = {};
|
|
16943
|
+
if (orderId !== undefined) {
|
|
16944
|
+
localVarQueryParameter['orderId'] = orderId;
|
|
16945
|
+
}
|
|
16942
16946
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16943
16947
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
16944
16948
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -16958,15 +16962,16 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
16958
16962
|
* @param {number} customerId Customer ID
|
|
16959
16963
|
* @param {string} sku Product SKU
|
|
16960
16964
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
16965
|
+
* @param {number} [orderId] Order ID
|
|
16961
16966
|
* @param {*} [options] Override http request option.
|
|
16962
16967
|
* @throws {RequiredError}
|
|
16963
16968
|
*/
|
|
16964
|
-
postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1) {
|
|
16969
|
+
postGetProductForCustomer: function (customerId_1, sku_1, postGetProductForCustomerRequest_1, orderId_1) {
|
|
16965
16970
|
var args_1 = [];
|
|
16966
|
-
for (var _i =
|
|
16967
|
-
args_1[_i -
|
|
16971
|
+
for (var _i = 4; _i < arguments.length; _i++) {
|
|
16972
|
+
args_1[_i - 4] = arguments[_i];
|
|
16968
16973
|
}
|
|
16969
|
-
return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
16974
|
+
return __awaiter(_this, __spreadArray([customerId_1, sku_1, postGetProductForCustomerRequest_1, orderId_1], args_1, true), void 0, function (customerId, sku, postGetProductForCustomerRequest, orderId, options) {
|
|
16970
16975
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
16971
16976
|
if (options === void 0) { options = {}; }
|
|
16972
16977
|
return __generator(this, function (_a) {
|
|
@@ -16988,6 +16993,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
|
|
|
16988
16993
|
if (customerId !== undefined) {
|
|
16989
16994
|
localVarQueryParameter['customerId'] = customerId;
|
|
16990
16995
|
}
|
|
16996
|
+
if (orderId !== undefined) {
|
|
16997
|
+
localVarQueryParameter['orderId'] = orderId;
|
|
16998
|
+
}
|
|
16991
16999
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16992
17000
|
localVarHeaderParameter['Accept'] = 'application/json';
|
|
16993
17001
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -17198,16 +17206,17 @@ var ProductsApiFp = function (configuration) {
|
|
|
17198
17206
|
* @summary Get Product
|
|
17199
17207
|
* @param {string} sku Product SKU
|
|
17200
17208
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17209
|
+
* @param {number} [orderId] Order ID
|
|
17201
17210
|
* @param {*} [options] Override http request option.
|
|
17202
17211
|
* @throws {RequiredError}
|
|
17203
17212
|
*/
|
|
17204
|
-
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
17213
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, orderId, options) {
|
|
17205
17214
|
return __awaiter(this, void 0, void 0, function () {
|
|
17206
17215
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
17207
17216
|
var _a, _b, _c;
|
|
17208
17217
|
return __generator(this, function (_d) {
|
|
17209
17218
|
switch (_d.label) {
|
|
17210
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, options)];
|
|
17219
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProduct(sku, postGetProductForCustomerRequest, orderId, options)];
|
|
17211
17220
|
case 1:
|
|
17212
17221
|
localVarAxiosArgs = _d.sent();
|
|
17213
17222
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -17223,16 +17232,17 @@ var ProductsApiFp = function (configuration) {
|
|
|
17223
17232
|
* @param {number} customerId Customer ID
|
|
17224
17233
|
* @param {string} sku Product SKU
|
|
17225
17234
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17235
|
+
* @param {number} [orderId] Order ID
|
|
17226
17236
|
* @param {*} [options] Override http request option.
|
|
17227
17237
|
* @throws {RequiredError}
|
|
17228
17238
|
*/
|
|
17229
|
-
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
17239
|
+
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, orderId, options) {
|
|
17230
17240
|
return __awaiter(this, void 0, void 0, function () {
|
|
17231
17241
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
17232
17242
|
var _a, _b, _c;
|
|
17233
17243
|
return __generator(this, function (_d) {
|
|
17234
17244
|
switch (_d.label) {
|
|
17235
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options)];
|
|
17245
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options)];
|
|
17236
17246
|
case 1:
|
|
17237
17247
|
localVarAxiosArgs = _d.sent();
|
|
17238
17248
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -17335,11 +17345,12 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
17335
17345
|
* @summary Get Product
|
|
17336
17346
|
* @param {string} sku Product SKU
|
|
17337
17347
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17348
|
+
* @param {number} [orderId] Order ID
|
|
17338
17349
|
* @param {*} [options] Override http request option.
|
|
17339
17350
|
* @throws {RequiredError}
|
|
17340
17351
|
*/
|
|
17341
|
-
postGetProduct: function (sku, postGetProductForCustomerRequest, options) {
|
|
17342
|
-
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
17352
|
+
postGetProduct: function (sku, postGetProductForCustomerRequest, orderId, options) {
|
|
17353
|
+
return localVarFp.postGetProduct(sku, postGetProductForCustomerRequest, orderId, options).then(function (request) { return request(axios, basePath); });
|
|
17343
17354
|
},
|
|
17344
17355
|
/**
|
|
17345
17356
|
* Get Product For Customer
|
|
@@ -17347,11 +17358,12 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
|
|
|
17347
17358
|
* @param {number} customerId Customer ID
|
|
17348
17359
|
* @param {string} sku Product SKU
|
|
17349
17360
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17361
|
+
* @param {number} [orderId] Order ID
|
|
17350
17362
|
* @param {*} [options] Override http request option.
|
|
17351
17363
|
* @throws {RequiredError}
|
|
17352
17364
|
*/
|
|
17353
|
-
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
17354
|
-
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(axios, basePath); });
|
|
17365
|
+
postGetProductForCustomer: function (customerId, sku, postGetProductForCustomerRequest, orderId, options) {
|
|
17366
|
+
return localVarFp.postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options).then(function (request) { return request(axios, basePath); });
|
|
17355
17367
|
},
|
|
17356
17368
|
};
|
|
17357
17369
|
};
|
|
@@ -17456,12 +17468,13 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
17456
17468
|
* @summary Get Product
|
|
17457
17469
|
* @param {string} sku Product SKU
|
|
17458
17470
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17471
|
+
* @param {number} [orderId] Order ID
|
|
17459
17472
|
* @param {*} [options] Override http request option.
|
|
17460
17473
|
* @throws {RequiredError}
|
|
17461
17474
|
*/
|
|
17462
|
-
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, options) {
|
|
17475
|
+
ProductsApi.prototype.postGetProduct = function (sku, postGetProductForCustomerRequest, orderId, options) {
|
|
17463
17476
|
var _this = this;
|
|
17464
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17477
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProduct(sku, postGetProductForCustomerRequest, orderId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17465
17478
|
};
|
|
17466
17479
|
/**
|
|
17467
17480
|
* Get Product For Customer
|
|
@@ -17469,12 +17482,13 @@ var ProductsApi = /** @class */ (function (_super) {
|
|
|
17469
17482
|
* @param {number} customerId Customer ID
|
|
17470
17483
|
* @param {string} sku Product SKU
|
|
17471
17484
|
* @param {PostGetProductForCustomerRequest} postGetProductForCustomerRequest Product search criteria
|
|
17485
|
+
* @param {number} [orderId] Order ID
|
|
17472
17486
|
* @param {*} [options] Override http request option.
|
|
17473
17487
|
* @throws {RequiredError}
|
|
17474
17488
|
*/
|
|
17475
|
-
ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, options) {
|
|
17489
|
+
ProductsApi.prototype.postGetProductForCustomer = function (customerId, sku, postGetProductForCustomerRequest, orderId, options) {
|
|
17476
17490
|
var _this = this;
|
|
17477
|
-
return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17491
|
+
return (0, exports.ProductsApiFp)(this.configuration).postGetProductForCustomer(customerId, sku, postGetProductForCustomerRequest, orderId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17478
17492
|
};
|
|
17479
17493
|
return ProductsApi;
|
|
17480
17494
|
}(base_1.BaseAPI));
|
package/docs/ProductsApi.md
CHANGED
|
@@ -440,10 +440,12 @@ const apiInstance = new ProductsApi(configuration);
|
|
|
440
440
|
|
|
441
441
|
let sku: string; //Product SKU (default to undefined)
|
|
442
442
|
let postGetProductForCustomerRequest: PostGetProductForCustomerRequest; //Product search criteria
|
|
443
|
+
let orderId: number; //Order ID (optional) (default to undefined)
|
|
443
444
|
|
|
444
445
|
const { status, data } = await apiInstance.postGetProduct(
|
|
445
446
|
sku,
|
|
446
|
-
postGetProductForCustomerRequest
|
|
447
|
+
postGetProductForCustomerRequest,
|
|
448
|
+
orderId
|
|
447
449
|
);
|
|
448
450
|
```
|
|
449
451
|
|
|
@@ -453,6 +455,7 @@ const { status, data } = await apiInstance.postGetProduct(
|
|
|
453
455
|
|------------- | ------------- | ------------- | -------------|
|
|
454
456
|
| **postGetProductForCustomerRequest** | **PostGetProductForCustomerRequest**| Product search criteria | |
|
|
455
457
|
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
458
|
+
| **orderId** | [**number**] | Order ID | (optional) defaults to undefined|
|
|
456
459
|
|
|
457
460
|
|
|
458
461
|
### Return type
|
|
@@ -499,11 +502,13 @@ const apiInstance = new ProductsApi(configuration);
|
|
|
499
502
|
let customerId: number; //Customer ID (default to undefined)
|
|
500
503
|
let sku: string; //Product SKU (default to undefined)
|
|
501
504
|
let postGetProductForCustomerRequest: PostGetProductForCustomerRequest; //Product search criteria
|
|
505
|
+
let orderId: number; //Order ID (optional) (default to undefined)
|
|
502
506
|
|
|
503
507
|
const { status, data } = await apiInstance.postGetProductForCustomer(
|
|
504
508
|
customerId,
|
|
505
509
|
sku,
|
|
506
|
-
postGetProductForCustomerRequest
|
|
510
|
+
postGetProductForCustomerRequest,
|
|
511
|
+
orderId
|
|
507
512
|
);
|
|
508
513
|
```
|
|
509
514
|
|
|
@@ -514,6 +519,7 @@ const { status, data } = await apiInstance.postGetProductForCustomer(
|
|
|
514
519
|
| **postGetProductForCustomerRequest** | **PostGetProductForCustomerRequest**| Product search criteria | |
|
|
515
520
|
| **customerId** | [**number**] | Customer ID | defaults to undefined|
|
|
516
521
|
| **sku** | [**string**] | Product SKU | defaults to undefined|
|
|
522
|
+
| **orderId** | [**number**] | Order ID | (optional) defaults to undefined|
|
|
517
523
|
|
|
518
524
|
|
|
519
525
|
### Return type
|