@lcdp/api-react-rest-client 2.0.1-develop.3986187393 → 2.0.2-LDS-2812-contingenter-les-annonces.3987046606
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/magic-cart/src/models/Stock.d.ts +6 -0
- package/magic-cart/src/models/Stock.js +2 -0
- package/package.json +1 -1
- package/sale-offer/src/apis/SearchSaleOfferApi.d.ts +2 -0
- package/sale-offer/src/apis/SearchSaleOfferApi.js +2 -0
- package/sale-offer/src/models/Stock.d.ts +6 -0
- package/sale-offer/src/models/Stock.js +2 -0
- package/shopping-cart/src/models/Stock.d.ts +6 -0
- package/shopping-cart/src/models/Stock.js +2 -0
|
@@ -33,6 +33,12 @@ export interface Stock {
|
|
|
33
33
|
* @memberof Stock
|
|
34
34
|
*/
|
|
35
35
|
batch?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by remainingQuantity)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Stock
|
|
40
|
+
*/
|
|
41
|
+
maxBuyableQuantity?: number | null;
|
|
36
42
|
}
|
|
37
43
|
export declare function StockFromJSON(json: any): Stock;
|
|
38
44
|
export declare function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock;
|
|
@@ -27,6 +27,7 @@ function StockFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'remainingQuantity': !(0, runtime_1.exists)(json, 'remainingQuantity') ? json['remainingQuantity'] : json['remainingQuantity'],
|
|
28
28
|
'lapsingDate': !(0, runtime_1.exists)(json, 'lapsingDate') ? json['lapsingDate'] : (new Date(json['lapsingDate'])),
|
|
29
29
|
'batch': !(0, runtime_1.exists)(json, 'batch') ? json['batch'] : json['batch'],
|
|
30
|
+
'maxBuyableQuantity': !(0, runtime_1.exists)(json, 'maxBuyableQuantity') ? json['maxBuyableQuantity'] : json['maxBuyableQuantity'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
exports.StockFromJSONTyped = StockFromJSONTyped;
|
|
@@ -41,6 +42,7 @@ function StockToJSON(value) {
|
|
|
41
42
|
'remainingQuantity': value.remainingQuantity,
|
|
42
43
|
'lapsingDate': value.lapsingDate === undefined ? undefined : (value.lapsingDate === null ? null : (0, runtime_1.toDateISOString)(value.lapsingDate)),
|
|
43
44
|
'batch': value.batch,
|
|
45
|
+
'maxBuyableQuantity': value.maxBuyableQuantity,
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.StockToJSON = StockToJSON;
|
package/package.json
CHANGED
|
@@ -77,6 +77,8 @@ export declare enum GetSaleOffersOrderByEnum {
|
|
|
77
77
|
STOCKBATCHdesc = "STOCK_BATCH:desc",
|
|
78
78
|
STOCKREMAININGQUANTITYasc = "STOCK_REMAINING_QUANTITY:asc",
|
|
79
79
|
STOCKREMAININGQUANTITYdesc = "STOCK_REMAINING_QUANTITY:desc",
|
|
80
|
+
MAXBUYABLEQUANTITYasc = "MAX_BUYABLE_QUANTITY:asc",
|
|
81
|
+
MAXBUYABLEQUANTITYdesc = "MAX_BUYABLE_QUANTITY:desc",
|
|
80
82
|
MINIMALQUANTITYasc = "MINIMAL_QUANTITY:asc",
|
|
81
83
|
MINIMALQUANTITYdesc = "MINIMAL_QUANTITY:desc",
|
|
82
84
|
STATUSasc = "STATUS:asc",
|
|
@@ -304,6 +304,8 @@ var GetSaleOffersOrderByEnum;
|
|
|
304
304
|
GetSaleOffersOrderByEnum["STOCKBATCHdesc"] = "STOCK_BATCH:desc";
|
|
305
305
|
GetSaleOffersOrderByEnum["STOCKREMAININGQUANTITYasc"] = "STOCK_REMAINING_QUANTITY:asc";
|
|
306
306
|
GetSaleOffersOrderByEnum["STOCKREMAININGQUANTITYdesc"] = "STOCK_REMAINING_QUANTITY:desc";
|
|
307
|
+
GetSaleOffersOrderByEnum["MAXBUYABLEQUANTITYasc"] = "MAX_BUYABLE_QUANTITY:asc";
|
|
308
|
+
GetSaleOffersOrderByEnum["MAXBUYABLEQUANTITYdesc"] = "MAX_BUYABLE_QUANTITY:desc";
|
|
307
309
|
GetSaleOffersOrderByEnum["MINIMALQUANTITYasc"] = "MINIMAL_QUANTITY:asc";
|
|
308
310
|
GetSaleOffersOrderByEnum["MINIMALQUANTITYdesc"] = "MINIMAL_QUANTITY:desc";
|
|
309
311
|
GetSaleOffersOrderByEnum["STATUSasc"] = "STATUS:asc";
|
|
@@ -33,6 +33,12 @@ export interface Stock {
|
|
|
33
33
|
* @memberof Stock
|
|
34
34
|
*/
|
|
35
35
|
batch?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by remainingQuantity)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Stock
|
|
40
|
+
*/
|
|
41
|
+
maxBuyableQuantity?: number | null;
|
|
36
42
|
}
|
|
37
43
|
export declare function StockFromJSON(json: any): Stock;
|
|
38
44
|
export declare function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock;
|
|
@@ -27,6 +27,7 @@ function StockFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'remainingQuantity': !(0, runtime_1.exists)(json, 'remainingQuantity') ? json['remainingQuantity'] : json['remainingQuantity'],
|
|
28
28
|
'lapsingDate': !(0, runtime_1.exists)(json, 'lapsingDate') ? json['lapsingDate'] : (new Date(json['lapsingDate'])),
|
|
29
29
|
'batch': !(0, runtime_1.exists)(json, 'batch') ? json['batch'] : json['batch'],
|
|
30
|
+
'maxBuyableQuantity': !(0, runtime_1.exists)(json, 'maxBuyableQuantity') ? json['maxBuyableQuantity'] : json['maxBuyableQuantity'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
exports.StockFromJSONTyped = StockFromJSONTyped;
|
|
@@ -41,6 +42,7 @@ function StockToJSON(value) {
|
|
|
41
42
|
'remainingQuantity': value.remainingQuantity,
|
|
42
43
|
'lapsingDate': value.lapsingDate === undefined ? undefined : (value.lapsingDate === null ? null : (0, runtime_1.toDateISOString)(value.lapsingDate)),
|
|
43
44
|
'batch': value.batch,
|
|
45
|
+
'maxBuyableQuantity': value.maxBuyableQuantity,
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.StockToJSON = StockToJSON;
|
|
@@ -33,6 +33,12 @@ export interface Stock {
|
|
|
33
33
|
* @memberof Stock
|
|
34
34
|
*/
|
|
35
35
|
batch?: string | null;
|
|
36
|
+
/**
|
|
37
|
+
* Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by remainingQuantity)
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof Stock
|
|
40
|
+
*/
|
|
41
|
+
maxBuyableQuantity?: number | null;
|
|
36
42
|
}
|
|
37
43
|
export declare function StockFromJSON(json: any): Stock;
|
|
38
44
|
export declare function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock;
|
|
@@ -27,6 +27,7 @@ function StockFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
27
27
|
'remainingQuantity': !(0, runtime_1.exists)(json, 'remainingQuantity') ? json['remainingQuantity'] : json['remainingQuantity'],
|
|
28
28
|
'lapsingDate': !(0, runtime_1.exists)(json, 'lapsingDate') ? json['lapsingDate'] : (new Date(json['lapsingDate'])),
|
|
29
29
|
'batch': !(0, runtime_1.exists)(json, 'batch') ? json['batch'] : json['batch'],
|
|
30
|
+
'maxBuyableQuantity': !(0, runtime_1.exists)(json, 'maxBuyableQuantity') ? json['maxBuyableQuantity'] : json['maxBuyableQuantity'],
|
|
30
31
|
};
|
|
31
32
|
}
|
|
32
33
|
exports.StockFromJSONTyped = StockFromJSONTyped;
|
|
@@ -41,6 +42,7 @@ function StockToJSON(value) {
|
|
|
41
42
|
'remainingQuantity': value.remainingQuantity,
|
|
42
43
|
'lapsingDate': value.lapsingDate === undefined ? undefined : (value.lapsingDate === null ? null : (0, runtime_1.toDateISOString)(value.lapsingDate)),
|
|
43
44
|
'batch': value.batch,
|
|
45
|
+
'maxBuyableQuantity': value.maxBuyableQuantity,
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
exports.StockToJSON = StockToJSON;
|