@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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.0.1-develop.3986187393",
3
+ "version": "2.0.2-LDS-2812-contingenter-les-annonces.3987046606",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -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;