@lcdp/api-react-rest-client 3.1.2 → 3.1.3-LDS-5376-api-maj-du-format-api.21862387237

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.
@@ -9,7 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { SellerProposal } from './SellerProposal';
12
+ import type { ShoppedOffer } from './ShoppedOffer';
13
13
  /**
14
14
  * Express Order as a list of sale offer proposal grouped by sellers
15
15
  * @export
@@ -24,10 +24,10 @@ export interface ExpressOrder {
24
24
  optimal?: boolean;
25
25
  /**
26
26
  *
27
- * @type {Array<SellerProposal>}
27
+ * @type {Array<ShoppedOffer>}
28
28
  * @memberof ExpressOrder
29
29
  */
30
- sellerProposals?: Array<SellerProposal>;
30
+ shoppedOffers?: Array<ShoppedOffer>;
31
31
  }
32
32
  /**
33
33
  * Check if a given object implements the ExpressOrder interface.
@@ -14,7 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ExpressOrderToJSON = exports.ExpressOrderFromJSONTyped = exports.ExpressOrderFromJSON = exports.instanceOfExpressOrder = void 0;
17
- var SellerProposal_1 = require("./SellerProposal");
17
+ var ShoppedOffer_1 = require("./ShoppedOffer");
18
18
  /**
19
19
  * Check if a given object implements the ExpressOrder interface.
20
20
  */
@@ -32,7 +32,7 @@ function ExpressOrderFromJSONTyped(json, ignoreDiscriminator) {
32
32
  }
33
33
  return {
34
34
  'optimal': json['optimal'],
35
- 'sellerProposals': (json['sellerProposals'] === null || json['sellerProposals'] === undefined) ? json['sellerProposals'] : json['sellerProposals'].map(SellerProposal_1.SellerProposalFromJSON),
35
+ 'shoppedOffers': (json['shoppedOffers'] === null || json['shoppedOffers'] === undefined) ? json['shoppedOffers'] : json['shoppedOffers'].map(ShoppedOffer_1.ShoppedOfferFromJSON),
36
36
  };
37
37
  }
38
38
  exports.ExpressOrderFromJSONTyped = ExpressOrderFromJSONTyped;
@@ -42,7 +42,7 @@ function ExpressOrderToJSON(value) {
42
42
  }
43
43
  return {
44
44
  'optimal': value['optimal'],
45
- 'sellerProposals': (value['sellerProposals'] === null || value['sellerProposals'] === undefined) ? value['sellerProposals'] : value['sellerProposals'].map(SellerProposal_1.SellerProposalToJSON),
45
+ 'shoppedOffers': (value['shoppedOffers'] === null || value['shoppedOffers'] === undefined) ? value['shoppedOffers'] : value['shoppedOffers'].map(ShoppedOffer_1.ShoppedOfferToJSON),
46
46
  };
47
47
  }
48
48
  exports.ExpressOrderToJSON = ExpressOrderToJSON;
@@ -0,0 +1,43 @@
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 ShoppedOffer
16
+ */
17
+ export interface ShoppedOffer {
18
+ /**
19
+ * Reference of the sale offer
20
+ * @type {string}
21
+ * @memberof ShoppedOffer
22
+ */
23
+ offerReference: string;
24
+ /**
25
+ * Identifier of picked distributed range
26
+ * @type {number}
27
+ * @memberof ShoppedOffer
28
+ */
29
+ distributedRangeId?: number;
30
+ /**
31
+ * Quantity to add in the cart
32
+ * @type {number}
33
+ * @memberof ShoppedOffer
34
+ */
35
+ quantity: number;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ShoppedOffer interface.
39
+ */
40
+ export declare function instanceOfShoppedOffer(value: object): value is ShoppedOffer;
41
+ export declare function ShoppedOfferFromJSON(json: any): ShoppedOffer;
42
+ export declare function ShoppedOfferFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppedOffer;
43
+ export declare function ShoppedOfferToJSON(value?: ShoppedOffer | null): any;
@@ -0,0 +1,53 @@
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.ShoppedOfferToJSON = exports.ShoppedOfferFromJSONTyped = exports.ShoppedOfferFromJSON = exports.instanceOfShoppedOffer = void 0;
17
+ /**
18
+ * Check if a given object implements the ShoppedOffer interface.
19
+ */
20
+ function instanceOfShoppedOffer(value) {
21
+ if (!('offerReference' in value) || value['offerReference'] === undefined)
22
+ return false;
23
+ if (!('quantity' in value) || value['quantity'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfShoppedOffer = instanceOfShoppedOffer;
28
+ function ShoppedOfferFromJSON(json) {
29
+ return ShoppedOfferFromJSONTyped(json, false);
30
+ }
31
+ exports.ShoppedOfferFromJSON = ShoppedOfferFromJSON;
32
+ function ShoppedOfferFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'offerReference': json['offerReference'],
38
+ 'distributedRangeId': json['distributedRangeId'],
39
+ 'quantity': json['quantity'],
40
+ };
41
+ }
42
+ exports.ShoppedOfferFromJSONTyped = ShoppedOfferFromJSONTyped;
43
+ function ShoppedOfferToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'offerReference': value['offerReference'],
49
+ 'distributedRangeId': value['distributedRangeId'],
50
+ 'quantity': value['quantity'],
51
+ };
52
+ }
53
+ exports.ShoppedOfferToJSON = ShoppedOfferToJSON;
@@ -14,6 +14,7 @@ export * from './QuotationDistributionMode';
14
14
  export * from './SaleOfferLink';
15
15
  export * from './SaleOfferProposal';
16
16
  export * from './SellerProposal';
17
+ export * from './ShoppedOffer';
17
18
  export * from './Stock';
18
19
  export * from './UnitaryDistributionMode';
19
20
  export * from './UserLink';
@@ -32,6 +32,7 @@ __exportStar(require("./QuotationDistributionMode"), exports);
32
32
  __exportStar(require("./SaleOfferLink"), exports);
33
33
  __exportStar(require("./SaleOfferProposal"), exports);
34
34
  __exportStar(require("./SellerProposal"), exports);
35
+ __exportStar(require("./ShoppedOffer"), exports);
35
36
  __exportStar(require("./Stock"), exports);
36
37
  __exportStar(require("./UnitaryDistributionMode"), exports);
37
38
  __exportStar(require("./UserLink"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lcdp/api-react-rest-client",
3
- "version": "3.1.2",
3
+ "version": "3.1.3-LDS-5376-api-maj-du-format-api.21862387237",
4
4
  "scripts": {
5
5
  "build": "tsc"
6
6
  },