@lcdp/api-react-rest-client 2.0.4 → 2.1.0-LDS-2846-non-synchronized-user-on-offisa.4193457010

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.
Files changed (47) hide show
  1. package/magic-cart/src/models/DistributionMode.d.ts +12 -0
  2. package/magic-cart/src/models/DistributionMode.js +4 -0
  3. package/magic-cart/src/models/QuotationDistributionMode.d.ts +6 -0
  4. package/magic-cart/src/models/QuotationDistributionMode.js +23 -2
  5. package/magic-cart/src/models/QuotationDistributionModeAllOf.d.ts +27 -0
  6. package/magic-cart/src/models/QuotationDistributionModeAllOf.js +41 -0
  7. package/magic-cart/src/models/SaleOfferLink.d.ts +0 -6
  8. package/magic-cart/src/models/SaleOfferLink.js +2 -2
  9. package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +0 -6
  10. package/magic-cart/src/models/SaleOfferLinkAllOf.js +0 -2
  11. package/magic-cart/src/models/UnitaryDistributionMode.d.ts +2 -2
  12. package/magic-cart/src/models/UnitaryDistributionMode.js +2 -2
  13. package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +2 -2
  14. package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +2 -2
  15. package/magic-cart/src/models/index.d.ts +1 -0
  16. package/magic-cart/src/models/index.js +1 -0
  17. package/package.json +1 -1
  18. package/sale-offer/src/apis/SearchSaleOfferApi.d.ts +6 -2
  19. package/sale-offer/src/apis/SearchSaleOfferApi.js +6 -2
  20. package/sale-offer/src/models/DistributionMode.d.ts +12 -0
  21. package/sale-offer/src/models/DistributionMode.js +4 -0
  22. package/sale-offer/src/models/QuotationDistributionMode.d.ts +6 -0
  23. package/sale-offer/src/models/QuotationDistributionMode.js +23 -2
  24. package/sale-offer/src/models/QuotationDistributionModeAllOf.d.ts +27 -0
  25. package/sale-offer/src/models/QuotationDistributionModeAllOf.js +41 -0
  26. package/sale-offer/src/models/UnitaryDistributionMode.d.ts +2 -2
  27. package/sale-offer/src/models/UnitaryDistributionMode.js +2 -2
  28. package/sale-offer/src/models/UnitaryDistributionModeAllOf.d.ts +2 -2
  29. package/sale-offer/src/models/UnitaryDistributionModeAllOf.js +2 -2
  30. package/sale-offer/src/models/index.d.ts +1 -0
  31. package/sale-offer/src/models/index.js +1 -0
  32. package/shopping-cart/src/models/CartSubCartLine.d.ts +0 -6
  33. package/shopping-cart/src/models/CartSubCartLine.js +0 -2
  34. package/shopping-cart/src/models/DistributionMode.d.ts +12 -0
  35. package/shopping-cart/src/models/DistributionMode.js +4 -0
  36. package/shopping-cart/src/models/QuotationDistributionMode.d.ts +6 -0
  37. package/shopping-cart/src/models/QuotationDistributionMode.js +23 -2
  38. package/shopping-cart/src/models/QuotationDistributionModeAllOf.d.ts +27 -0
  39. package/shopping-cart/src/models/QuotationDistributionModeAllOf.js +41 -0
  40. package/shopping-cart/src/models/UnitaryDistributionMode.d.ts +2 -2
  41. package/shopping-cart/src/models/UnitaryDistributionMode.js +2 -2
  42. package/shopping-cart/src/models/UnitaryDistributionModeAllOf.d.ts +2 -2
  43. package/shopping-cart/src/models/UnitaryDistributionModeAllOf.js +2 -2
  44. package/shopping-cart/src/models/index.d.ts +1 -0
  45. package/shopping-cart/src/models/index.js +1 -0
  46. package/statistic/src/apis/SearchSaleOfferStatisticsApi.d.ts +12 -1
  47. package/statistic/src/apis/SearchSaleOfferStatisticsApi.js +77 -4
@@ -21,6 +21,18 @@ export interface DistributionMode {
21
21
  * @memberof DistributionMode
22
22
  */
23
23
  type: string;
24
+ /**
25
+ * Minimum buyable quantity for each order
26
+ * @type {number}
27
+ * @memberof DistributionMode
28
+ */
29
+ minimalQuantity: number;
30
+ /**
31
+ * Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by Stock.remainingQuantity)
32
+ * @type {number}
33
+ * @memberof DistributionMode
34
+ */
35
+ maximalQuantity: number | null;
24
36
  }
25
37
  export declare function DistributionModeFromJSON(json: any): DistributionMode;
26
38
  export declare function DistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DistributionMode;
@@ -24,6 +24,8 @@ function DistributionModeFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  return {
26
26
  'type': json['type'],
27
+ 'minimalQuantity': json['minimalQuantity'],
28
+ 'maximalQuantity': json['maximalQuantity'],
27
29
  };
28
30
  }
29
31
  exports.DistributionModeFromJSONTyped = DistributionModeFromJSONTyped;
@@ -36,6 +38,8 @@ function DistributionModeToJSON(value) {
36
38
  }
37
39
  return {
38
40
  'type': value.type,
41
+ 'minimalQuantity': value.minimalQuantity,
42
+ 'maximalQuantity': value.maximalQuantity,
39
43
  };
40
44
  }
41
45
  exports.DistributionModeToJSON = DistributionModeToJSON;
@@ -16,6 +16,12 @@ import { DistributionMode } from './DistributionMode';
16
16
  * @interface QuotationDistributionMode
17
17
  */
18
18
  export interface QuotationDistributionMode extends DistributionMode {
19
+ /**
20
+ * Sold by this step value
21
+ * @type {number}
22
+ * @memberof QuotationDistributionMode
23
+ */
24
+ soldBy: number;
19
25
  }
20
26
  export declare function QuotationDistributionModeFromJSON(json: any): QuotationDistributionMode;
21
27
  export declare function QuotationDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionMode;
@@ -12,17 +12,38 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
16
27
  exports.QuotationDistributionModeToJSON = exports.QuotationDistributionModeFromJSONTyped = exports.QuotationDistributionModeFromJSON = void 0;
28
+ var DistributionMode_1 = require("./DistributionMode");
17
29
  function QuotationDistributionModeFromJSON(json) {
18
30
  return QuotationDistributionModeFromJSONTyped(json, false);
19
31
  }
20
32
  exports.QuotationDistributionModeFromJSON = QuotationDistributionModeFromJSON;
21
33
  function QuotationDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
22
- return json;
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'soldBy': json['soldBy'] });
23
38
  }
24
39
  exports.QuotationDistributionModeFromJSONTyped = QuotationDistributionModeFromJSONTyped;
25
40
  function QuotationDistributionModeToJSON(value) {
26
- return value;
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'soldBy': value.soldBy });
27
48
  }
28
49
  exports.QuotationDistributionModeToJSON = QuotationDistributionModeToJSON;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * lcdp-magic-cart
3
+ * This is the REST API of Magic cart
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface QuotationDistributionModeAllOf
16
+ */
17
+ export interface QuotationDistributionModeAllOf {
18
+ /**
19
+ * Sold by this step value
20
+ * @type {number}
21
+ * @memberof QuotationDistributionModeAllOf
22
+ */
23
+ soldBy: number;
24
+ }
25
+ export declare function QuotationDistributionModeAllOfFromJSON(json: any): QuotationDistributionModeAllOf;
26
+ export declare function QuotationDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionModeAllOf;
27
+ export declare function QuotationDistributionModeAllOfToJSON(value?: QuotationDistributionModeAllOf | null): any;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-magic-cart
6
+ * This is the REST API of Magic cart
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.QuotationDistributionModeAllOfToJSON = exports.QuotationDistributionModeAllOfFromJSONTyped = exports.QuotationDistributionModeAllOfFromJSON = void 0;
17
+ function QuotationDistributionModeAllOfFromJSON(json) {
18
+ return QuotationDistributionModeAllOfFromJSONTyped(json, false);
19
+ }
20
+ exports.QuotationDistributionModeAllOfFromJSON = QuotationDistributionModeAllOfFromJSON;
21
+ function QuotationDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'soldBy': json['soldBy'],
27
+ };
28
+ }
29
+ exports.QuotationDistributionModeAllOfFromJSONTyped = QuotationDistributionModeAllOfFromJSONTyped;
30
+ function QuotationDistributionModeAllOfToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'soldBy': value.soldBy,
39
+ };
40
+ }
41
+ exports.QuotationDistributionModeAllOfToJSON = QuotationDistributionModeAllOfToJSON;
@@ -36,12 +36,6 @@ export interface SaleOfferLink extends HttpLink {
36
36
  * @memberof SaleOfferLink
37
37
  */
38
38
  stock: Stock;
39
- /**
40
- *
41
- * @type {number}
42
- * @memberof SaleOfferLink
43
- */
44
- minimalQuantity: number;
45
39
  /**
46
40
  * Best Rebate for this sale offer
47
41
  * @type {number}
@@ -37,7 +37,7 @@ function SaleOfferLinkFromJSONTyped(json, ignoreDiscriminator) {
37
37
  if ((json === undefined) || (json === null)) {
38
38
  return json;
39
39
  }
40
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'reference': json['reference'], 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']), 'stock': (0, Stock_1.StockFromJSON)(json['stock']), 'minimalQuantity': json['minimalQuantity'], 'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'] });
40
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'reference': json['reference'], 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']), 'stock': (0, Stock_1.StockFromJSON)(json['stock']), 'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'] });
41
41
  }
42
42
  exports.SaleOfferLinkFromJSONTyped = SaleOfferLinkFromJSONTyped;
43
43
  function SaleOfferLinkToJSON(value) {
@@ -47,6 +47,6 @@ function SaleOfferLinkToJSON(value) {
47
47
  if (value === null) {
48
48
  return null;
49
49
  }
50
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'reference': value.reference, 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode), 'stock': (0, Stock_1.StockToJSON)(value.stock), 'minimalQuantity': value.minimalQuantity, 'bestRebate': value.bestRebate });
50
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'reference': value.reference, 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode), 'stock': (0, Stock_1.StockToJSON)(value.stock), 'bestRebate': value.bestRebate });
51
51
  }
52
52
  exports.SaleOfferLinkToJSON = SaleOfferLinkToJSON;
@@ -35,12 +35,6 @@ export interface SaleOfferLinkAllOf {
35
35
  * @memberof SaleOfferLinkAllOf
36
36
  */
37
37
  stock: Stock;
38
- /**
39
- *
40
- * @type {number}
41
- * @memberof SaleOfferLinkAllOf
42
- */
43
- minimalQuantity: number;
44
38
  /**
45
39
  * Best Rebate for this sale offer
46
40
  * @type {number}
@@ -29,7 +29,6 @@ function SaleOfferLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
29
29
  'reference': json['reference'],
30
30
  'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
31
31
  'stock': (0, Stock_1.StockFromJSON)(json['stock']),
32
- 'minimalQuantity': json['minimalQuantity'],
33
32
  'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'],
34
33
  };
35
34
  }
@@ -45,7 +44,6 @@ function SaleOfferLinkAllOfToJSON(value) {
45
44
  'reference': value.reference,
46
45
  'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode),
47
46
  'stock': (0, Stock_1.StockToJSON)(value.stock),
48
- 'minimalQuantity': value.minimalQuantity,
49
47
  'bestRebate': value.bestRebate,
50
48
  };
51
49
  }
@@ -23,11 +23,11 @@ export interface UnitaryDistributionMode extends DistributionMode {
23
23
  */
24
24
  unitPrice: number;
25
25
  /**
26
- * Minimal quantity.
26
+ * Sold by this step value
27
27
  * @type {number}
28
28
  * @memberof UnitaryDistributionMode
29
29
  */
30
- minimalQuantity: number;
30
+ soldBy: number;
31
31
  }
32
32
  export declare function UnitaryDistributionModeFromJSON(json: any): UnitaryDistributionMode;
33
33
  export declare function UnitaryDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionMode;
@@ -34,7 +34,7 @@ function UnitaryDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
34
34
  if ((json === undefined) || (json === null)) {
35
35
  return json;
36
36
  }
37
- return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'unitPrice': json['unitPrice'], 'minimalQuantity': json['minimalQuantity'] });
37
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'unitPrice': json['unitPrice'], 'soldBy': json['soldBy'] });
38
38
  }
39
39
  exports.UnitaryDistributionModeFromJSONTyped = UnitaryDistributionModeFromJSONTyped;
40
40
  function UnitaryDistributionModeToJSON(value) {
@@ -44,6 +44,6 @@ function UnitaryDistributionModeToJSON(value) {
44
44
  if (value === null) {
45
45
  return null;
46
46
  }
47
- return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'unitPrice': value.unitPrice, 'minimalQuantity': value.minimalQuantity });
47
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'unitPrice': value.unitPrice, 'soldBy': value.soldBy });
48
48
  }
49
49
  exports.UnitaryDistributionModeToJSON = UnitaryDistributionModeToJSON;
@@ -22,11 +22,11 @@ export interface UnitaryDistributionModeAllOf {
22
22
  */
23
23
  unitPrice: number;
24
24
  /**
25
- * Minimal quantity.
25
+ * Sold by this step value
26
26
  * @type {number}
27
27
  * @memberof UnitaryDistributionModeAllOf
28
28
  */
29
- minimalQuantity: number;
29
+ soldBy: number;
30
30
  }
31
31
  export declare function UnitaryDistributionModeAllOfFromJSON(json: any): UnitaryDistributionModeAllOf;
32
32
  export declare function UnitaryDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionModeAllOf;
@@ -24,7 +24,7 @@ function UnitaryDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  return {
26
26
  'unitPrice': json['unitPrice'],
27
- 'minimalQuantity': json['minimalQuantity'],
27
+ 'soldBy': json['soldBy'],
28
28
  };
29
29
  }
30
30
  exports.UnitaryDistributionModeAllOfFromJSONTyped = UnitaryDistributionModeAllOfFromJSONTyped;
@@ -37,7 +37,7 @@ function UnitaryDistributionModeAllOfToJSON(value) {
37
37
  }
38
38
  return {
39
39
  'unitPrice': value.unitPrice,
40
- 'minimalQuantity': value.minimalQuantity,
40
+ 'soldBy': value.soldBy,
41
41
  };
42
42
  }
43
43
  exports.UnitaryDistributionModeAllOfToJSON = UnitaryDistributionModeAllOfToJSON;
@@ -13,6 +13,7 @@ export * from './IdentifiedRangeDistributionModeAllOf';
13
13
  export * from './ProductLink';
14
14
  export * from './ProductLinkAllOf';
15
15
  export * from './QuotationDistributionMode';
16
+ export * from './QuotationDistributionModeAllOf';
16
17
  export * from './SaleOfferLink';
17
18
  export * from './SaleOfferLinkAllOf';
18
19
  export * from './SaleOfferProposal';
@@ -29,6 +29,7 @@ __exportStar(require("./IdentifiedRangeDistributionModeAllOf"), exports);
29
29
  __exportStar(require("./ProductLink"), exports);
30
30
  __exportStar(require("./ProductLinkAllOf"), exports);
31
31
  __exportStar(require("./QuotationDistributionMode"), exports);
32
+ __exportStar(require("./QuotationDistributionModeAllOf"), exports);
32
33
  __exportStar(require("./SaleOfferLink"), exports);
33
34
  __exportStar(require("./SaleOfferLinkAllOf"), exports);
34
35
  __exportStar(require("./SaleOfferProposal"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "2.0.4",
3
+ "version": "2.1.0-LDS-2846-non-synchronized-user-on-offisa.4193457010",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },
@@ -77,12 +77,16 @@ 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
- MINIMALQUANTITYasc = "MINIMAL_QUANTITY:asc",
81
- MINIMALQUANTITYdesc = "MINIMAL_QUANTITY:desc",
82
80
  STATUSasc = "STATUS:asc",
83
81
  STATUSdesc = "STATUS:desc",
84
82
  DISTRIBUTIONMODETYPEasc = "DISTRIBUTION_MODE_TYPE:asc",
85
83
  DISTRIBUTIONMODETYPEdesc = "DISTRIBUTION_MODE_TYPE:desc",
84
+ DISTRIBUTIONMODEMAXIMALQUANTITYasc = "DISTRIBUTION_MODE_MAXIMAL_QUANTITY:asc",
85
+ DISTRIBUTIONMODEMAXIMALQUANTITYdesc = "DISTRIBUTION_MODE_MAXIMAL_QUANTITY:desc",
86
+ DISTRIBUTIONMODEMINIMALQUANTITYasc = "DISTRIBUTION_MODE_MINIMAL_QUANTITY:asc",
87
+ DISTRIBUTIONMODEMINIMALQUANTITYdesc = "DISTRIBUTION_MODE_MINIMAL_QUANTITY:desc",
88
+ DISTRIBUTIONMODESOLDBYasc = "DISTRIBUTION_MODE_SOLD_BY:asc",
89
+ DISTRIBUTIONMODESOLDBYdesc = "DISTRIBUTION_MODE_SOLD_BY:desc",
86
90
  OWNERCOMPANYLEGALNAMEasc = "OWNER_COMPANY_LEGAL_NAME:asc",
87
91
  OWNERCOMPANYLEGALNAMEdesc = "OWNER_COMPANY_LEGAL_NAME:desc",
88
92
  CREATEDATdesc = "CREATED_AT:desc",
@@ -304,12 +304,16 @@ 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["MINIMALQUANTITYasc"] = "MINIMAL_QUANTITY:asc";
308
- GetSaleOffersOrderByEnum["MINIMALQUANTITYdesc"] = "MINIMAL_QUANTITY:desc";
309
307
  GetSaleOffersOrderByEnum["STATUSasc"] = "STATUS:asc";
310
308
  GetSaleOffersOrderByEnum["STATUSdesc"] = "STATUS:desc";
311
309
  GetSaleOffersOrderByEnum["DISTRIBUTIONMODETYPEasc"] = "DISTRIBUTION_MODE_TYPE:asc";
312
310
  GetSaleOffersOrderByEnum["DISTRIBUTIONMODETYPEdesc"] = "DISTRIBUTION_MODE_TYPE:desc";
311
+ GetSaleOffersOrderByEnum["DISTRIBUTIONMODEMAXIMALQUANTITYasc"] = "DISTRIBUTION_MODE_MAXIMAL_QUANTITY:asc";
312
+ GetSaleOffersOrderByEnum["DISTRIBUTIONMODEMAXIMALQUANTITYdesc"] = "DISTRIBUTION_MODE_MAXIMAL_QUANTITY:desc";
313
+ GetSaleOffersOrderByEnum["DISTRIBUTIONMODEMINIMALQUANTITYasc"] = "DISTRIBUTION_MODE_MINIMAL_QUANTITY:asc";
314
+ GetSaleOffersOrderByEnum["DISTRIBUTIONMODEMINIMALQUANTITYdesc"] = "DISTRIBUTION_MODE_MINIMAL_QUANTITY:desc";
315
+ GetSaleOffersOrderByEnum["DISTRIBUTIONMODESOLDBYasc"] = "DISTRIBUTION_MODE_SOLD_BY:asc";
316
+ GetSaleOffersOrderByEnum["DISTRIBUTIONMODESOLDBYdesc"] = "DISTRIBUTION_MODE_SOLD_BY:desc";
313
317
  GetSaleOffersOrderByEnum["OWNERCOMPANYLEGALNAMEasc"] = "OWNER_COMPANY_LEGAL_NAME:asc";
314
318
  GetSaleOffersOrderByEnum["OWNERCOMPANYLEGALNAMEdesc"] = "OWNER_COMPANY_LEGAL_NAME:desc";
315
319
  GetSaleOffersOrderByEnum["CREATEDATdesc"] = "CREATED_AT:desc";
@@ -21,6 +21,18 @@ export interface DistributionMode {
21
21
  * @memberof DistributionMode
22
22
  */
23
23
  type: string;
24
+ /**
25
+ * Minimum buyable quantity for each order
26
+ * @type {number}
27
+ * @memberof DistributionMode
28
+ */
29
+ minimalQuantity: number;
30
+ /**
31
+ * Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by Stock.remainingQuantity)
32
+ * @type {number}
33
+ * @memberof DistributionMode
34
+ */
35
+ maximalQuantity: number | null;
24
36
  }
25
37
  export declare function DistributionModeFromJSON(json: any): DistributionMode;
26
38
  export declare function DistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DistributionMode;
@@ -24,6 +24,8 @@ function DistributionModeFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  return {
26
26
  'type': json['type'],
27
+ 'minimalQuantity': json['minimalQuantity'],
28
+ 'maximalQuantity': json['maximalQuantity'],
27
29
  };
28
30
  }
29
31
  exports.DistributionModeFromJSONTyped = DistributionModeFromJSONTyped;
@@ -36,6 +38,8 @@ function DistributionModeToJSON(value) {
36
38
  }
37
39
  return {
38
40
  'type': value.type,
41
+ 'minimalQuantity': value.minimalQuantity,
42
+ 'maximalQuantity': value.maximalQuantity,
39
43
  };
40
44
  }
41
45
  exports.DistributionModeToJSON = DistributionModeToJSON;
@@ -16,6 +16,12 @@ import { DistributionMode } from './DistributionMode';
16
16
  * @interface QuotationDistributionMode
17
17
  */
18
18
  export interface QuotationDistributionMode extends DistributionMode {
19
+ /**
20
+ * Sold by this step value
21
+ * @type {number}
22
+ * @memberof QuotationDistributionMode
23
+ */
24
+ soldBy: number;
19
25
  }
20
26
  export declare function QuotationDistributionModeFromJSON(json: any): QuotationDistributionMode;
21
27
  export declare function QuotationDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionMode;
@@ -12,17 +12,38 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
16
27
  exports.QuotationDistributionModeToJSON = exports.QuotationDistributionModeFromJSONTyped = exports.QuotationDistributionModeFromJSON = void 0;
28
+ var DistributionMode_1 = require("./DistributionMode");
17
29
  function QuotationDistributionModeFromJSON(json) {
18
30
  return QuotationDistributionModeFromJSONTyped(json, false);
19
31
  }
20
32
  exports.QuotationDistributionModeFromJSON = QuotationDistributionModeFromJSON;
21
33
  function QuotationDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
22
- return json;
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'soldBy': json['soldBy'] });
23
38
  }
24
39
  exports.QuotationDistributionModeFromJSONTyped = QuotationDistributionModeFromJSONTyped;
25
40
  function QuotationDistributionModeToJSON(value) {
26
- return value;
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'soldBy': value.soldBy });
27
48
  }
28
49
  exports.QuotationDistributionModeToJSON = QuotationDistributionModeToJSON;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface QuotationDistributionModeAllOf
16
+ */
17
+ export interface QuotationDistributionModeAllOf {
18
+ /**
19
+ * Sold by this step value
20
+ * @type {number}
21
+ * @memberof QuotationDistributionModeAllOf
22
+ */
23
+ soldBy: number;
24
+ }
25
+ export declare function QuotationDistributionModeAllOfFromJSON(json: any): QuotationDistributionModeAllOf;
26
+ export declare function QuotationDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionModeAllOf;
27
+ export declare function QuotationDistributionModeAllOfToJSON(value?: QuotationDistributionModeAllOf | null): any;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.QuotationDistributionModeAllOfToJSON = exports.QuotationDistributionModeAllOfFromJSONTyped = exports.QuotationDistributionModeAllOfFromJSON = void 0;
17
+ function QuotationDistributionModeAllOfFromJSON(json) {
18
+ return QuotationDistributionModeAllOfFromJSONTyped(json, false);
19
+ }
20
+ exports.QuotationDistributionModeAllOfFromJSON = QuotationDistributionModeAllOfFromJSON;
21
+ function QuotationDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'soldBy': json['soldBy'],
27
+ };
28
+ }
29
+ exports.QuotationDistributionModeAllOfFromJSONTyped = QuotationDistributionModeAllOfFromJSONTyped;
30
+ function QuotationDistributionModeAllOfToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'soldBy': value.soldBy,
39
+ };
40
+ }
41
+ exports.QuotationDistributionModeAllOfToJSON = QuotationDistributionModeAllOfToJSON;
@@ -23,11 +23,11 @@ export interface UnitaryDistributionMode extends DistributionMode {
23
23
  */
24
24
  unitPrice: number;
25
25
  /**
26
- * Minimal quantity.
26
+ * Sold by this step value
27
27
  * @type {number}
28
28
  * @memberof UnitaryDistributionMode
29
29
  */
30
- minimalQuantity: number;
30
+ soldBy: number;
31
31
  }
32
32
  export declare function UnitaryDistributionModeFromJSON(json: any): UnitaryDistributionMode;
33
33
  export declare function UnitaryDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionMode;
@@ -34,7 +34,7 @@ function UnitaryDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
34
34
  if ((json === undefined) || (json === null)) {
35
35
  return json;
36
36
  }
37
- return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'unitPrice': json['unitPrice'], 'minimalQuantity': json['minimalQuantity'] });
37
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'unitPrice': json['unitPrice'], 'soldBy': json['soldBy'] });
38
38
  }
39
39
  exports.UnitaryDistributionModeFromJSONTyped = UnitaryDistributionModeFromJSONTyped;
40
40
  function UnitaryDistributionModeToJSON(value) {
@@ -44,6 +44,6 @@ function UnitaryDistributionModeToJSON(value) {
44
44
  if (value === null) {
45
45
  return null;
46
46
  }
47
- return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'unitPrice': value.unitPrice, 'minimalQuantity': value.minimalQuantity });
47
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'unitPrice': value.unitPrice, 'soldBy': value.soldBy });
48
48
  }
49
49
  exports.UnitaryDistributionModeToJSON = UnitaryDistributionModeToJSON;
@@ -22,11 +22,11 @@ export interface UnitaryDistributionModeAllOf {
22
22
  */
23
23
  unitPrice: number;
24
24
  /**
25
- * Minimal quantity.
25
+ * Sold by this step value
26
26
  * @type {number}
27
27
  * @memberof UnitaryDistributionModeAllOf
28
28
  */
29
- minimalQuantity: number;
29
+ soldBy: number;
30
30
  }
31
31
  export declare function UnitaryDistributionModeAllOfFromJSON(json: any): UnitaryDistributionModeAllOf;
32
32
  export declare function UnitaryDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionModeAllOf;
@@ -24,7 +24,7 @@ function UnitaryDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  return {
26
26
  'unitPrice': json['unitPrice'],
27
- 'minimalQuantity': json['minimalQuantity'],
27
+ 'soldBy': json['soldBy'],
28
28
  };
29
29
  }
30
30
  exports.UnitaryDistributionModeAllOfFromJSONTyped = UnitaryDistributionModeAllOfFromJSONTyped;
@@ -37,7 +37,7 @@ function UnitaryDistributionModeAllOfToJSON(value) {
37
37
  }
38
38
  return {
39
39
  'unitPrice': value.unitPrice,
40
- 'minimalQuantity': value.minimalQuantity,
40
+ 'soldBy': value.soldBy,
41
41
  };
42
42
  }
43
43
  exports.UnitaryDistributionModeAllOfToJSON = UnitaryDistributionModeAllOfToJSON;
@@ -22,6 +22,7 @@ export * from './ProductImageLinkAllOf';
22
22
  export * from './ProductLink';
23
23
  export * from './ProductLinkAllOf';
24
24
  export * from './QuotationDistributionMode';
25
+ export * from './QuotationDistributionModeAllOf';
25
26
  export * from './RangeDistributionMode';
26
27
  export * from './RangeDistributionModeAllOf';
27
28
  export * from './RestError';
@@ -38,6 +38,7 @@ __exportStar(require("./ProductImageLinkAllOf"), exports);
38
38
  __exportStar(require("./ProductLink"), exports);
39
39
  __exportStar(require("./ProductLinkAllOf"), exports);
40
40
  __exportStar(require("./QuotationDistributionMode"), exports);
41
+ __exportStar(require("./QuotationDistributionModeAllOf"), exports);
41
42
  __exportStar(require("./RangeDistributionMode"), exports);
42
43
  __exportStar(require("./RangeDistributionModeAllOf"), exports);
43
44
  __exportStar(require("./RestError"), exports);
@@ -41,12 +41,6 @@ export interface CartSubCartLine {
41
41
  * @memberof CartSubCartLine
42
42
  */
43
43
  saleOffer?: SaleOfferLink;
44
- /**
45
- * Indicate if the line has a good quantity
46
- * @type {boolean}
47
- * @memberof CartSubCartLine
48
- */
49
- goodQuantity?: boolean;
50
44
  /**
51
45
  *
52
46
  * @type {number}
@@ -30,7 +30,6 @@ function CartSubCartLineFromJSONTyped(json, ignoreDiscriminator) {
30
30
  'quantity': !(0, runtime_1.exists)(json, 'quantity') ? undefined : json['quantity'],
31
31
  'product': !(0, runtime_1.exists)(json, 'product') ? undefined : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
32
32
  'saleOffer': !(0, runtime_1.exists)(json, 'saleOffer') ? undefined : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
33
- 'goodQuantity': !(0, runtime_1.exists)(json, 'goodQuantity') ? undefined : json['goodQuantity'],
34
33
  'distributionRangeId': !(0, runtime_1.exists)(json, 'distributionRangeId') ? undefined : json['distributionRangeId'],
35
34
  'totalExcludingTaxes': !(0, runtime_1.exists)(json, 'totalExcludingTaxes') ? undefined : json['totalExcludingTaxes'],
36
35
  };
@@ -48,7 +47,6 @@ function CartSubCartLineToJSON(value) {
48
47
  'quantity': value.quantity,
49
48
  'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
50
49
  'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value.saleOffer),
51
- 'goodQuantity': value.goodQuantity,
52
50
  'distributionRangeId': value.distributionRangeId,
53
51
  'totalExcludingTaxes': value.totalExcludingTaxes,
54
52
  };
@@ -21,6 +21,18 @@ export interface DistributionMode {
21
21
  * @memberof DistributionMode
22
22
  */
23
23
  type: string;
24
+ /**
25
+ * Minimum buyable quantity for each order
26
+ * @type {number}
27
+ * @memberof DistributionMode
28
+ */
29
+ minimalQuantity: number;
30
+ /**
31
+ * Maximum buyable quantity for each order Null value signify there is no limit of buyable quantity (just limited by Stock.remainingQuantity)
32
+ * @type {number}
33
+ * @memberof DistributionMode
34
+ */
35
+ maximalQuantity: number | null;
24
36
  }
25
37
  export declare function DistributionModeFromJSON(json: any): DistributionMode;
26
38
  export declare function DistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DistributionMode;
@@ -24,6 +24,8 @@ function DistributionModeFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  return {
26
26
  'type': json['type'],
27
+ 'minimalQuantity': json['minimalQuantity'],
28
+ 'maximalQuantity': json['maximalQuantity'],
27
29
  };
28
30
  }
29
31
  exports.DistributionModeFromJSONTyped = DistributionModeFromJSONTyped;
@@ -36,6 +38,8 @@ function DistributionModeToJSON(value) {
36
38
  }
37
39
  return {
38
40
  'type': value.type,
41
+ 'minimalQuantity': value.minimalQuantity,
42
+ 'maximalQuantity': value.maximalQuantity,
39
43
  };
40
44
  }
41
45
  exports.DistributionModeToJSON = DistributionModeToJSON;
@@ -16,6 +16,12 @@ import { DistributionMode } from './DistributionMode';
16
16
  * @interface QuotationDistributionMode
17
17
  */
18
18
  export interface QuotationDistributionMode extends DistributionMode {
19
+ /**
20
+ * Sold by this step value
21
+ * @type {number}
22
+ * @memberof QuotationDistributionMode
23
+ */
24
+ soldBy: number;
19
25
  }
20
26
  export declare function QuotationDistributionModeFromJSON(json: any): QuotationDistributionMode;
21
27
  export declare function QuotationDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionMode;
@@ -12,17 +12,38 @@
12
12
  * https://openapi-generator.tech
13
13
  * Do not edit the class manually.
14
14
  */
15
+ var __assign = (this && this.__assign) || function () {
16
+ __assign = Object.assign || function(t) {
17
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
18
+ s = arguments[i];
19
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
20
+ t[p] = s[p];
21
+ }
22
+ return t;
23
+ };
24
+ return __assign.apply(this, arguments);
25
+ };
15
26
  Object.defineProperty(exports, "__esModule", { value: true });
16
27
  exports.QuotationDistributionModeToJSON = exports.QuotationDistributionModeFromJSONTyped = exports.QuotationDistributionModeFromJSON = void 0;
28
+ var DistributionMode_1 = require("./DistributionMode");
17
29
  function QuotationDistributionModeFromJSON(json) {
18
30
  return QuotationDistributionModeFromJSONTyped(json, false);
19
31
  }
20
32
  exports.QuotationDistributionModeFromJSON = QuotationDistributionModeFromJSON;
21
33
  function QuotationDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
22
- return json;
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'soldBy': json['soldBy'] });
23
38
  }
24
39
  exports.QuotationDistributionModeFromJSONTyped = QuotationDistributionModeFromJSONTyped;
25
40
  function QuotationDistributionModeToJSON(value) {
26
- return value;
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'soldBy': value.soldBy });
27
48
  }
28
49
  exports.QuotationDistributionModeToJSON = QuotationDistributionModeToJSON;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * lcdp-monolith-service
3
+ * This is the REST API of LCDP products
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ * Contact: contact@lecomptoirdespharmacies.fr
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface QuotationDistributionModeAllOf
16
+ */
17
+ export interface QuotationDistributionModeAllOf {
18
+ /**
19
+ * Sold by this step value
20
+ * @type {number}
21
+ * @memberof QuotationDistributionModeAllOf
22
+ */
23
+ soldBy: number;
24
+ }
25
+ export declare function QuotationDistributionModeAllOfFromJSON(json: any): QuotationDistributionModeAllOf;
26
+ export declare function QuotationDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionModeAllOf;
27
+ export declare function QuotationDistributionModeAllOfToJSON(value?: QuotationDistributionModeAllOf | null): any;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * lcdp-monolith-service
6
+ * This is the REST API of LCDP products
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ * Contact: contact@lecomptoirdespharmacies.fr
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.QuotationDistributionModeAllOfToJSON = exports.QuotationDistributionModeAllOfFromJSONTyped = exports.QuotationDistributionModeAllOfFromJSON = void 0;
17
+ function QuotationDistributionModeAllOfFromJSON(json) {
18
+ return QuotationDistributionModeAllOfFromJSONTyped(json, false);
19
+ }
20
+ exports.QuotationDistributionModeAllOfFromJSON = QuotationDistributionModeAllOfFromJSON;
21
+ function QuotationDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
22
+ if ((json === undefined) || (json === null)) {
23
+ return json;
24
+ }
25
+ return {
26
+ 'soldBy': json['soldBy'],
27
+ };
28
+ }
29
+ exports.QuotationDistributionModeAllOfFromJSONTyped = QuotationDistributionModeAllOfFromJSONTyped;
30
+ function QuotationDistributionModeAllOfToJSON(value) {
31
+ if (value === undefined) {
32
+ return undefined;
33
+ }
34
+ if (value === null) {
35
+ return null;
36
+ }
37
+ return {
38
+ 'soldBy': value.soldBy,
39
+ };
40
+ }
41
+ exports.QuotationDistributionModeAllOfToJSON = QuotationDistributionModeAllOfToJSON;
@@ -23,11 +23,11 @@ export interface UnitaryDistributionMode extends DistributionMode {
23
23
  */
24
24
  unitPrice: number;
25
25
  /**
26
- * Minimal quantity.
26
+ * Sold by this step value
27
27
  * @type {number}
28
28
  * @memberof UnitaryDistributionMode
29
29
  */
30
- minimalQuantity: number;
30
+ soldBy: number;
31
31
  }
32
32
  export declare function UnitaryDistributionModeFromJSON(json: any): UnitaryDistributionMode;
33
33
  export declare function UnitaryDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionMode;
@@ -34,7 +34,7 @@ function UnitaryDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
34
34
  if ((json === undefined) || (json === null)) {
35
35
  return json;
36
36
  }
37
- return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'unitPrice': json['unitPrice'], 'minimalQuantity': json['minimalQuantity'] });
37
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'unitPrice': json['unitPrice'], 'soldBy': json['soldBy'] });
38
38
  }
39
39
  exports.UnitaryDistributionModeFromJSONTyped = UnitaryDistributionModeFromJSONTyped;
40
40
  function UnitaryDistributionModeToJSON(value) {
@@ -44,6 +44,6 @@ function UnitaryDistributionModeToJSON(value) {
44
44
  if (value === null) {
45
45
  return null;
46
46
  }
47
- return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'unitPrice': value.unitPrice, 'minimalQuantity': value.minimalQuantity });
47
+ return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'unitPrice': value.unitPrice, 'soldBy': value.soldBy });
48
48
  }
49
49
  exports.UnitaryDistributionModeToJSON = UnitaryDistributionModeToJSON;
@@ -22,11 +22,11 @@ export interface UnitaryDistributionModeAllOf {
22
22
  */
23
23
  unitPrice: number;
24
24
  /**
25
- * Minimal quantity.
25
+ * Sold by this step value
26
26
  * @type {number}
27
27
  * @memberof UnitaryDistributionModeAllOf
28
28
  */
29
- minimalQuantity: number;
29
+ soldBy: number;
30
30
  }
31
31
  export declare function UnitaryDistributionModeAllOfFromJSON(json: any): UnitaryDistributionModeAllOf;
32
32
  export declare function UnitaryDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionModeAllOf;
@@ -24,7 +24,7 @@ function UnitaryDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
24
24
  }
25
25
  return {
26
26
  'unitPrice': json['unitPrice'],
27
- 'minimalQuantity': json['minimalQuantity'],
27
+ 'soldBy': json['soldBy'],
28
28
  };
29
29
  }
30
30
  exports.UnitaryDistributionModeAllOfFromJSONTyped = UnitaryDistributionModeAllOfFromJSONTyped;
@@ -37,7 +37,7 @@ function UnitaryDistributionModeAllOfToJSON(value) {
37
37
  }
38
38
  return {
39
39
  'unitPrice': value.unitPrice,
40
- 'minimalQuantity': value.minimalQuantity,
40
+ 'soldBy': value.soldBy,
41
41
  };
42
42
  }
43
43
  exports.UnitaryDistributionModeAllOfToJSON = UnitaryDistributionModeAllOfToJSON;
@@ -15,6 +15,7 @@ export * from './IdentifiedRangeDistributionModeAllOf';
15
15
  export * from './ProductLink';
16
16
  export * from './ProductLinkAllOf';
17
17
  export * from './QuotationDistributionMode';
18
+ export * from './QuotationDistributionModeAllOf';
18
19
  export * from './RestError';
19
20
  export * from './SaleOfferLink';
20
21
  export * from './SaleOfferLinkAllOf';
@@ -31,6 +31,7 @@ __exportStar(require("./IdentifiedRangeDistributionModeAllOf"), exports);
31
31
  __exportStar(require("./ProductLink"), exports);
32
32
  __exportStar(require("./ProductLinkAllOf"), exports);
33
33
  __exportStar(require("./QuotationDistributionMode"), exports);
34
+ __exportStar(require("./QuotationDistributionModeAllOf"), exports);
34
35
  __exportStar(require("./RestError"), exports);
35
36
  __exportStar(require("./SaleOfferLink"), exports);
36
37
  __exportStar(require("./SaleOfferLinkAllOf"), exports);
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { PaginatedSaleOfferStatistics } from '../models';
13
+ import { PaginatedSaleOfferStatistics, SaleOfferStatistic } from '../models';
14
+ export interface GetSaleOfferStatisticRequest {
15
+ saleOfferStatisticId: string;
16
+ }
14
17
  export interface GetSaleOfferStatisticsRequest {
15
18
  refEq?: Array<string>;
16
19
  oEq?: Array<number>;
@@ -22,6 +25,14 @@ export interface GetSaleOfferStatisticsRequest {
22
25
  * no description
23
26
  */
24
27
  export declare class SearchSaleOfferStatisticsApi extends BaseAPI {
28
+ /**
29
+ * Get a sale offer statistic
30
+ */
31
+ getSaleOfferStatisticRaw(requestParameters: GetSaleOfferStatisticRequest): Promise<ApiResponse<SaleOfferStatistic | BlobWithMeta>>;
32
+ /**
33
+ * Get a sale offer statistic
34
+ */
35
+ getSaleOfferStatistic(requestParameters: GetSaleOfferStatisticRequest): Promise<SaleOfferStatistic | BlobWithMeta>;
25
36
  /**
26
37
  * Search sale offers statistics
27
38
  */
@@ -75,12 +75,85 @@ var SearchSaleOfferStatisticsApi = /** @class */ (function (_super) {
75
75
  function SearchSaleOfferStatisticsApi() {
76
76
  return _super !== null && _super.apply(this, arguments) || this;
77
77
  }
78
+ /**
79
+ * Get a sale offer statistic
80
+ */
81
+ SearchSaleOfferStatisticsApi.prototype.getSaleOfferStatisticRaw = function (requestParameters) {
82
+ return __awaiter(this, void 0, void 0, function () {
83
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
84
+ return __generator(this, function (_a) {
85
+ switch (_a.label) {
86
+ case 0:
87
+ if (requestParameters.saleOfferStatisticId === null || requestParameters.saleOfferStatisticId === undefined) {
88
+ throw new runtime_1.RequiredError('saleOfferStatisticId', 'Required parameter requestParameters.saleOfferStatisticId was null or undefined when calling getSaleOfferStatistic.');
89
+ }
90
+ queryParameters = {};
91
+ headerParameters = {};
92
+ if (this.configuration && this.configuration.apiKey) {
93
+ headerParameters["x-api-key"] = this.configuration.apiKey("x-api-key"); // apiKeyAuth authentication
94
+ }
95
+ if (this.configuration && this.configuration.accessToken) {
96
+ token = this.configuration.accessToken;
97
+ tokenString = typeof token === 'function' ? token("bearerAuth", []) : token;
98
+ if (tokenString) {
99
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
100
+ }
101
+ }
102
+ _a.label = 1;
103
+ case 1:
104
+ _a.trys.push([1, 3, , 4]);
105
+ return [4 /*yield*/, this.request({
106
+ path: "/sale-offer-statistics/{saleOfferStatisticId}".replace("{".concat("saleOfferStatisticId", "}"), encodeURIComponent(String(requestParameters.saleOfferStatisticId))),
107
+ method: 'GET',
108
+ headers: headerParameters,
109
+ query: queryParameters,
110
+ })];
111
+ case 2:
112
+ response = _a.sent();
113
+ contentType = response.headers.get("content-type");
114
+ if (contentType && contentType.indexOf("application/json") !== -1) {
115
+ return [2 /*return*/, new runtime_1.JSONApiResponse(response, function (jsonValue) { return (0, models_1.SaleOfferStatisticFromJSON)(jsonValue); })];
116
+ }
117
+ else if (contentType && contentType.indexOf("text/plain") !== -1) {
118
+ return [2 /*return*/, new runtime_1.TextApiResponse(response)];
119
+ }
120
+ else {
121
+ // TODO : Better handling of others application types
122
+ return [2 /*return*/, new runtime_1.BlobWithMetaApiResponse(response)];
123
+ }
124
+ return [3 /*break*/, 4];
125
+ case 3:
126
+ response_1 = _a.sent();
127
+ console.debug(response_1);
128
+ throw response_1;
129
+ case 4: return [2 /*return*/];
130
+ }
131
+ });
132
+ });
133
+ };
134
+ /**
135
+ * Get a sale offer statistic
136
+ */
137
+ SearchSaleOfferStatisticsApi.prototype.getSaleOfferStatistic = function (requestParameters) {
138
+ return __awaiter(this, void 0, void 0, function () {
139
+ var response;
140
+ return __generator(this, function (_a) {
141
+ switch (_a.label) {
142
+ case 0: return [4 /*yield*/, this.getSaleOfferStatisticRaw(requestParameters)];
143
+ case 1:
144
+ response = _a.sent();
145
+ return [4 /*yield*/, response.value()];
146
+ case 2: return [2 /*return*/, _a.sent()];
147
+ }
148
+ });
149
+ });
150
+ };
78
151
  /**
79
152
  * Search sale offers statistics
80
153
  */
81
154
  SearchSaleOfferStatisticsApi.prototype.getSaleOfferStatisticsRaw = function (requestParameters) {
82
155
  return __awaiter(this, void 0, void 0, function () {
83
- var queryParameters, headerParameters, token, tokenString, response, contentType, response_1;
156
+ var queryParameters, headerParameters, token, tokenString, response, contentType, response_2;
84
157
  return __generator(this, function (_a) {
85
158
  switch (_a.label) {
86
159
  case 0:
@@ -135,9 +208,9 @@ var SearchSaleOfferStatisticsApi = /** @class */ (function (_super) {
135
208
  }
136
209
  return [3 /*break*/, 4];
137
210
  case 3:
138
- response_1 = _a.sent();
139
- console.debug(response_1);
140
- throw response_1;
211
+ response_2 = _a.sent();
212
+ console.debug(response_2);
213
+ throw response_2;
141
214
  case 4: return [2 /*return*/];
142
215
  }
143
216
  });