@lcdp/api-react-rest-client 3.1.4-develop.23005145683 → 3.1.5-LDS-5354-refactoring-multi-panier.23008488553

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 (63) hide show
  1. package/magic-cart/src/models/ExpressOrder.d.ts +3 -3
  2. package/magic-cart/src/models/ExpressOrder.js +3 -3
  3. package/magic-cart/src/models/ShoppedOffer.d.ts +43 -0
  4. package/magic-cart/src/models/ShoppedOffer.js +53 -0
  5. package/magic-cart/src/models/index.d.ts +1 -2
  6. package/magic-cart/src/models/index.js +1 -2
  7. package/order/src/models/ShoppedOffer.d.ts +2 -2
  8. package/order/src/models/ShoppedOffer.js +2 -2
  9. package/order/src/models/UserLinkAllOfCompany.d.ts +0 -18
  10. package/order/src/models/UserLinkAllOfCompany.js +0 -6
  11. package/package.json +1 -1
  12. package/shopping-cart/src/apis/ManageCartApi.d.ts +16 -28
  13. package/shopping-cart/src/apis/ManageCartApi.js +29 -188
  14. package/shopping-cart/src/apis/ManageCartLineApi.d.ts +45 -0
  15. package/shopping-cart/src/apis/ManageCartLineApi.js +238 -0
  16. package/shopping-cart/src/apis/SearchCartApi.d.ts +59 -0
  17. package/shopping-cart/src/apis/SearchCartApi.js +267 -0
  18. package/shopping-cart/src/apis/SearchCartLineApi.d.ts +41 -0
  19. package/shopping-cart/src/apis/SearchCartLineApi.js +241 -0
  20. package/shopping-cart/src/apis/index.d.ts +3 -2
  21. package/shopping-cart/src/apis/index.js +3 -2
  22. package/shopping-cart/src/models/Cart.d.ts +61 -4
  23. package/shopping-cart/src/models/Cart.js +47 -2
  24. package/shopping-cart/src/models/CartCreationParameters.d.ts +44 -0
  25. package/shopping-cart/src/models/CartCreationParameters.js +56 -0
  26. package/shopping-cart/src/models/{CartSubCartLine.d.ts → CartLine.d.ts} +13 -13
  27. package/shopping-cart/src/models/{CartSubCartLine.js → CartLine.js} +11 -11
  28. package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +37 -0
  29. package/shopping-cart/src/models/CartLineUpdateParameters.js +49 -0
  30. package/shopping-cart/src/models/CartLineWithWarnings.d.ts +39 -0
  31. package/shopping-cart/src/models/CartLineWithWarnings.js +49 -0
  32. package/shopping-cart/src/models/CartSummary.d.ts +31 -0
  33. package/shopping-cart/src/models/CartSummary.js +47 -0
  34. package/shopping-cart/src/models/{CartSubCartTransport.d.ts → CartTransport.d.ts} +12 -12
  35. package/shopping-cart/src/models/{CartSubCartTransport.js → CartTransport.js} +11 -11
  36. package/shopping-cart/src/models/CartWarning.d.ts +70 -0
  37. package/shopping-cart/src/models/CartWarning.js +67 -0
  38. package/shopping-cart/src/models/CartsWithWarnings.d.ts +39 -0
  39. package/shopping-cart/src/models/CartsWithWarnings.js +49 -0
  40. package/shopping-cart/src/models/OwnerLink.d.ts +43 -0
  41. package/shopping-cart/src/models/OwnerLink.js +53 -0
  42. package/shopping-cart/src/models/PaginatedCarts.d.ts +46 -0
  43. package/shopping-cart/src/models/PaginatedCarts.js +58 -0
  44. package/shopping-cart/src/models/PagingMetadata.d.ts +49 -0
  45. package/shopping-cart/src/models/PagingMetadata.js +55 -0
  46. package/shopping-cart/src/models/ShoppedOffer.d.ts +2 -2
  47. package/shopping-cart/src/models/ShoppedOffer.js +2 -2
  48. package/shopping-cart/src/models/index.d.ts +11 -4
  49. package/shopping-cart/src/models/index.js +11 -4
  50. package/user/src/models/UserCompany.d.ts +0 -13
  51. package/user/src/models/UserCompany.js +1 -9
  52. package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -51
  53. package/magic-cart/src/models/SaleOfferProposal.js +0 -61
  54. package/magic-cart/src/models/SellerProposal.d.ts +0 -45
  55. package/magic-cart/src/models/SellerProposal.js +0 -57
  56. package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +0 -107
  57. package/shopping-cart/src/apis/ManageCartSubCartApi.js +0 -556
  58. package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +0 -151
  59. package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +0 -879
  60. package/shopping-cart/src/models/CartSubCart.d.ts +0 -76
  61. package/shopping-cart/src/models/CartSubCart.js +0 -78
  62. package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +0 -37
  63. package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +0 -49
@@ -0,0 +1,53 @@
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.OwnerLinkToJSON = exports.OwnerLinkFromJSONTyped = exports.OwnerLinkFromJSON = exports.instanceOfOwnerLink = void 0;
17
+ /**
18
+ * Check if a given object implements the OwnerLink interface.
19
+ */
20
+ function instanceOfOwnerLink(value) {
21
+ if (!('href' in value) || value['href'] === undefined)
22
+ return false;
23
+ if (!('id' in value) || value['id'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfOwnerLink = instanceOfOwnerLink;
28
+ function OwnerLinkFromJSON(json) {
29
+ return OwnerLinkFromJSONTyped(json, false);
30
+ }
31
+ exports.OwnerLinkFromJSON = OwnerLinkFromJSON;
32
+ function OwnerLinkFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'href': json['href'],
38
+ 'id': json['id'],
39
+ 'nickname': json['nickname'],
40
+ };
41
+ }
42
+ exports.OwnerLinkFromJSONTyped = OwnerLinkFromJSONTyped;
43
+ function OwnerLinkToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'href': value['href'],
49
+ 'id': value['id'],
50
+ 'nickname': value['nickname'],
51
+ };
52
+ }
53
+ exports.OwnerLinkToJSON = OwnerLinkToJSON;
@@ -0,0 +1,46 @@
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
+ import type { PagingMetadata } from './PagingMetadata';
13
+ import type { CartSummary } from './CartSummary';
14
+ import type { Cart } from './Cart';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface PaginatedCarts
19
+ */
20
+ export interface PaginatedCarts {
21
+ /**
22
+ *
23
+ * @type {PagingMetadata}
24
+ * @memberof PaginatedCarts
25
+ */
26
+ metadata: PagingMetadata;
27
+ /**
28
+ *
29
+ * @type {CartSummary}
30
+ * @memberof PaginatedCarts
31
+ */
32
+ summary: CartSummary;
33
+ /**
34
+ *
35
+ * @type {Array<Cart>}
36
+ * @memberof PaginatedCarts
37
+ */
38
+ records: Array<Cart>;
39
+ }
40
+ /**
41
+ * Check if a given object implements the PaginatedCarts interface.
42
+ */
43
+ export declare function instanceOfPaginatedCarts(value: object): value is PaginatedCarts;
44
+ export declare function PaginatedCartsFromJSON(json: any): PaginatedCarts;
45
+ export declare function PaginatedCartsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedCarts;
46
+ export declare function PaginatedCartsToJSON(value?: PaginatedCarts | null): any;
@@ -0,0 +1,58 @@
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.PaginatedCartsToJSON = exports.PaginatedCartsFromJSONTyped = exports.PaginatedCartsFromJSON = exports.instanceOfPaginatedCarts = void 0;
17
+ var PagingMetadata_1 = require("./PagingMetadata");
18
+ var CartSummary_1 = require("./CartSummary");
19
+ var Cart_1 = require("./Cart");
20
+ /**
21
+ * Check if a given object implements the PaginatedCarts interface.
22
+ */
23
+ function instanceOfPaginatedCarts(value) {
24
+ if (!('metadata' in value) || value['metadata'] === undefined)
25
+ return false;
26
+ if (!('summary' in value) || value['summary'] === undefined)
27
+ return false;
28
+ if (!('records' in value) || value['records'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ exports.instanceOfPaginatedCarts = instanceOfPaginatedCarts;
33
+ function PaginatedCartsFromJSON(json) {
34
+ return PaginatedCartsFromJSONTyped(json, false);
35
+ }
36
+ exports.PaginatedCartsFromJSON = PaginatedCartsFromJSON;
37
+ function PaginatedCartsFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'metadata': (json['metadata'] === null || json['metadata'] === undefined) ? json['metadata'] : (0, PagingMetadata_1.PagingMetadataFromJSON)(json['metadata']),
43
+ 'summary': (json['summary'] === null || json['summary'] === undefined) ? json['summary'] : (0, CartSummary_1.CartSummaryFromJSON)(json['summary']),
44
+ 'records': (json['records'] === null || json['records'] === undefined) ? json['records'] : json['records'].map(Cart_1.CartFromJSON),
45
+ };
46
+ }
47
+ exports.PaginatedCartsFromJSONTyped = PaginatedCartsFromJSONTyped;
48
+ function PaginatedCartsToJSON(value) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'metadata': (0, PagingMetadata_1.PagingMetadataToJSON)(value['metadata']),
54
+ 'summary': (0, CartSummary_1.CartSummaryToJSON)(value['summary']),
55
+ 'records': (value['records'] === null || value['records'] === undefined) ? value['records'] : value['records'].map(Cart_1.CartToJSON),
56
+ };
57
+ }
58
+ exports.PaginatedCartsToJSON = PaginatedCartsToJSON;
@@ -0,0 +1,49 @@
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
+ * All information about current and available pages
14
+ * @export
15
+ * @interface PagingMetadata
16
+ */
17
+ export interface PagingMetadata {
18
+ /**
19
+ * Current page requested. Start at 0. May not be present if user do not request specific page.
20
+ * @type {number}
21
+ * @memberof PagingMetadata
22
+ */
23
+ page?: number;
24
+ /**
25
+ * Number of item per page. 0 means that you only required metadata. May not be present if user do not request specific perPage.
26
+ * @type {number}
27
+ * @memberof PagingMetadata
28
+ */
29
+ perPage?: number;
30
+ /**
31
+ * Total number of item visible by the client in the request
32
+ * @type {number}
33
+ * @memberof PagingMetadata
34
+ */
35
+ totalVisible: number;
36
+ /**
37
+ * Total number of item found in database
38
+ * @type {number}
39
+ * @memberof PagingMetadata
40
+ */
41
+ totalFound: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the PagingMetadata interface.
45
+ */
46
+ export declare function instanceOfPagingMetadata(value: object): value is PagingMetadata;
47
+ export declare function PagingMetadataFromJSON(json: any): PagingMetadata;
48
+ export declare function PagingMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): PagingMetadata;
49
+ export declare function PagingMetadataToJSON(value?: PagingMetadata | null): any;
@@ -0,0 +1,55 @@
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.PagingMetadataToJSON = exports.PagingMetadataFromJSONTyped = exports.PagingMetadataFromJSON = exports.instanceOfPagingMetadata = void 0;
17
+ /**
18
+ * Check if a given object implements the PagingMetadata interface.
19
+ */
20
+ function instanceOfPagingMetadata(value) {
21
+ if (!('totalVisible' in value) || value['totalVisible'] === undefined)
22
+ return false;
23
+ if (!('totalFound' in value) || value['totalFound'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ exports.instanceOfPagingMetadata = instanceOfPagingMetadata;
28
+ function PagingMetadataFromJSON(json) {
29
+ return PagingMetadataFromJSONTyped(json, false);
30
+ }
31
+ exports.PagingMetadataFromJSON = PagingMetadataFromJSON;
32
+ function PagingMetadataFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'page': json['page'],
38
+ 'perPage': json['perPage'],
39
+ 'totalVisible': json['totalVisible'],
40
+ 'totalFound': json['totalFound'],
41
+ };
42
+ }
43
+ exports.PagingMetadataFromJSONTyped = PagingMetadataFromJSONTyped;
44
+ function PagingMetadataToJSON(value) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'page': value['page'],
50
+ 'perPage': value['perPage'],
51
+ 'totalVisible': value['totalVisible'],
52
+ 'totalFound': value['totalFound'],
53
+ };
54
+ }
55
+ exports.PagingMetadataToJSON = PagingMetadataToJSON;
@@ -22,11 +22,11 @@ export interface ShoppedOffer {
22
22
  */
23
23
  offerReference: string;
24
24
  /**
25
- * Identifier of picked distributed range
25
+ * Identifier of picked distribution range
26
26
  * @type {number}
27
27
  * @memberof ShoppedOffer
28
28
  */
29
- distributedRangeId?: number;
29
+ distributionRangeId?: number;
30
30
  /**
31
31
  * Quantity to add in the cart
32
32
  * @type {number}
@@ -35,7 +35,7 @@ function ShoppedOfferFromJSONTyped(json, ignoreDiscriminator) {
35
35
  }
36
36
  return {
37
37
  'offerReference': json['offerReference'],
38
- 'distributedRangeId': json['distributedRangeId'],
38
+ 'distributionRangeId': json['distributionRangeId'],
39
39
  'quantity': json['quantity'],
40
40
  };
41
41
  }
@@ -46,7 +46,7 @@ function ShoppedOfferToJSON(value) {
46
46
  }
47
47
  return {
48
48
  'offerReference': value['offerReference'],
49
- 'distributedRangeId': value['distributedRangeId'],
49
+ 'distributionRangeId': value['distributionRangeId'],
50
50
  'quantity': value['quantity'],
51
51
  };
52
52
  }
@@ -1,15 +1,22 @@
1
1
  export * from './AnyIdentifiedDistributionMode';
2
2
  export * from './Barcodes';
3
3
  export * from './Cart';
4
- export * from './CartSubCart';
5
- export * from './CartSubCartLine';
6
- export * from './CartSubCartLineUpdateParameters';
7
- export * from './CartSubCartTransport';
4
+ export * from './CartCreationParameters';
5
+ export * from './CartLine';
6
+ export * from './CartLineUpdateParameters';
7
+ export * from './CartLineWithWarnings';
8
+ export * from './CartSummary';
9
+ export * from './CartTransport';
10
+ export * from './CartWarning';
11
+ export * from './CartsWithWarnings';
8
12
  export * from './DistributionMode';
9
13
  export * from './DistributionRange';
10
14
  export * from './HttpLink';
11
15
  export * from './IdentifiedDistributionRange';
12
16
  export * from './IdentifiedRangeDistributionMode';
17
+ export * from './OwnerLink';
18
+ export * from './PaginatedCarts';
19
+ export * from './PagingMetadata';
13
20
  export * from './ProductLink';
14
21
  export * from './ProductStorageType';
15
22
  export * from './QuotationDistributionMode';
@@ -19,15 +19,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AnyIdentifiedDistributionMode"), exports);
20
20
  __exportStar(require("./Barcodes"), exports);
21
21
  __exportStar(require("./Cart"), exports);
22
- __exportStar(require("./CartSubCart"), exports);
23
- __exportStar(require("./CartSubCartLine"), exports);
24
- __exportStar(require("./CartSubCartLineUpdateParameters"), exports);
25
- __exportStar(require("./CartSubCartTransport"), exports);
22
+ __exportStar(require("./CartCreationParameters"), exports);
23
+ __exportStar(require("./CartLine"), exports);
24
+ __exportStar(require("./CartLineUpdateParameters"), exports);
25
+ __exportStar(require("./CartLineWithWarnings"), exports);
26
+ __exportStar(require("./CartSummary"), exports);
27
+ __exportStar(require("./CartTransport"), exports);
28
+ __exportStar(require("./CartWarning"), exports);
29
+ __exportStar(require("./CartsWithWarnings"), exports);
26
30
  __exportStar(require("./DistributionMode"), exports);
27
31
  __exportStar(require("./DistributionRange"), exports);
28
32
  __exportStar(require("./HttpLink"), exports);
29
33
  __exportStar(require("./IdentifiedDistributionRange"), exports);
30
34
  __exportStar(require("./IdentifiedRangeDistributionMode"), exports);
35
+ __exportStar(require("./OwnerLink"), exports);
36
+ __exportStar(require("./PaginatedCarts"), exports);
37
+ __exportStar(require("./PagingMetadata"), exports);
31
38
  __exportStar(require("./ProductLink"), exports);
32
39
  __exportStar(require("./ProductStorageType"), exports);
33
40
  __exportStar(require("./QuotationDistributionMode"), exports);
@@ -102,12 +102,6 @@ export interface UserCompany {
102
102
  * @memberof UserCompany
103
103
  */
104
104
  category?: string | null;
105
- /**
106
- *
107
- * @type {string}
108
- * @memberof UserCompany
109
- */
110
- businessDataProvider?: UserCompanyBusinessDataProviderEnum | null;
111
105
  /**
112
106
  *
113
107
  * @type {OffisanteStatus}
@@ -115,13 +109,6 @@ export interface UserCompany {
115
109
  */
116
110
  offisanteStatus?: OffisanteStatus;
117
111
  }
118
- /**
119
- * @export
120
- */
121
- export declare const UserCompanyBusinessDataProviderEnum: {
122
- readonly OFFISANTE: "OFFISANTE";
123
- };
124
- export declare type UserCompanyBusinessDataProviderEnum = typeof UserCompanyBusinessDataProviderEnum[keyof typeof UserCompanyBusinessDataProviderEnum];
125
112
  /**
126
113
  * Check if a given object implements the UserCompany interface.
127
114
  */
@@ -13,15 +13,9 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.UserCompanyToJSON = exports.UserCompanyFromJSONTyped = exports.UserCompanyFromJSON = exports.instanceOfUserCompany = exports.UserCompanyBusinessDataProviderEnum = void 0;
16
+ exports.UserCompanyToJSON = exports.UserCompanyFromJSONTyped = exports.UserCompanyFromJSON = exports.instanceOfUserCompany = void 0;
17
17
  var Address_1 = require("./Address");
18
18
  var OffisanteStatus_1 = require("./OffisanteStatus");
19
- /**
20
- * @export
21
- */
22
- exports.UserCompanyBusinessDataProviderEnum = {
23
- OFFISANTE: 'OFFISANTE'
24
- };
25
19
  /**
26
20
  * Check if a given object implements the UserCompany interface.
27
21
  */
@@ -52,7 +46,6 @@ function UserCompanyFromJSONTyped(json, ignoreDiscriminator) {
52
46
  'turnover': json['turnover'],
53
47
  'group': json['group'],
54
48
  'category': json['category'],
55
- 'businessDataProvider': json['businessDataProvider'],
56
49
  'offisanteStatus': (json['offisanteStatus'] === null || json['offisanteStatus'] === undefined) ? json['offisanteStatus'] : (0, OffisanteStatus_1.OffisanteStatusFromJSON)(json['offisanteStatus']),
57
50
  };
58
51
  }
@@ -76,7 +69,6 @@ function UserCompanyToJSON(value) {
76
69
  'turnover': value['turnover'],
77
70
  'group': value['group'],
78
71
  'category': value['category'],
79
- 'businessDataProvider': value['businessDataProvider'],
80
72
  'offisanteStatus': (0, OffisanteStatus_1.OffisanteStatusToJSON)(value['offisanteStatus']),
81
73
  };
82
74
  }
@@ -1,51 +0,0 @@
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
- import type { ProductLink } from './ProductLink';
13
- import type { SaleOfferLink } from './SaleOfferLink';
14
- /**
15
- *
16
- * @export
17
- * @interface SaleOfferProposal
18
- */
19
- export interface SaleOfferProposal {
20
- /**
21
- *
22
- * @type {ProductLink}
23
- * @memberof SaleOfferProposal
24
- */
25
- product: ProductLink;
26
- /**
27
- *
28
- * @type {SaleOfferLink}
29
- * @memberof SaleOfferProposal
30
- */
31
- saleOffer: SaleOfferLink;
32
- /**
33
- * Set when sale offer's distribution mode is RANGE
34
- * @type {number}
35
- * @memberof SaleOfferProposal
36
- */
37
- distributedRangeId: number | null;
38
- /**
39
- *
40
- * @type {number}
41
- * @memberof SaleOfferProposal
42
- */
43
- quantity: number;
44
- }
45
- /**
46
- * Check if a given object implements the SaleOfferProposal interface.
47
- */
48
- export declare function instanceOfSaleOfferProposal(value: object): value is SaleOfferProposal;
49
- export declare function SaleOfferProposalFromJSON(json: any): SaleOfferProposal;
50
- export declare function SaleOfferProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferProposal;
51
- export declare function SaleOfferProposalToJSON(value?: SaleOfferProposal | null): any;
@@ -1,61 +0,0 @@
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.SaleOfferProposalToJSON = exports.SaleOfferProposalFromJSONTyped = exports.SaleOfferProposalFromJSON = exports.instanceOfSaleOfferProposal = void 0;
17
- var ProductLink_1 = require("./ProductLink");
18
- var SaleOfferLink_1 = require("./SaleOfferLink");
19
- /**
20
- * Check if a given object implements the SaleOfferProposal interface.
21
- */
22
- function instanceOfSaleOfferProposal(value) {
23
- if (!('product' in value) || value['product'] === undefined)
24
- return false;
25
- if (!('saleOffer' in value) || value['saleOffer'] === undefined)
26
- return false;
27
- if (!('distributedRangeId' in value) || value['distributedRangeId'] === undefined)
28
- return false;
29
- if (!('quantity' in value) || value['quantity'] === undefined)
30
- return false;
31
- return true;
32
- }
33
- exports.instanceOfSaleOfferProposal = instanceOfSaleOfferProposal;
34
- function SaleOfferProposalFromJSON(json) {
35
- return SaleOfferProposalFromJSONTyped(json, false);
36
- }
37
- exports.SaleOfferProposalFromJSON = SaleOfferProposalFromJSON;
38
- function SaleOfferProposalFromJSONTyped(json, ignoreDiscriminator) {
39
- if (json == null) {
40
- return json;
41
- }
42
- return {
43
- 'product': (json['product'] === null || json['product'] === undefined) ? json['product'] : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
44
- 'saleOffer': (json['saleOffer'] === null || json['saleOffer'] === undefined) ? json['saleOffer'] : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
45
- 'distributedRangeId': json['distributedRangeId'],
46
- 'quantity': json['quantity'],
47
- };
48
- }
49
- exports.SaleOfferProposalFromJSONTyped = SaleOfferProposalFromJSONTyped;
50
- function SaleOfferProposalToJSON(value) {
51
- if (value == null) {
52
- return value;
53
- }
54
- return {
55
- 'product': (0, ProductLink_1.ProductLinkToJSON)(value['product']),
56
- 'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value['saleOffer']),
57
- 'distributedRangeId': value['distributedRangeId'],
58
- 'quantity': value['quantity'],
59
- };
60
- }
61
- exports.SaleOfferProposalToJSON = SaleOfferProposalToJSON;
@@ -1,45 +0,0 @@
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
- import type { UserLink } from './UserLink';
13
- import type { SaleOfferProposal } from './SaleOfferProposal';
14
- /**
15
- * A list of proposed sale offers to buy from seller
16
- * @export
17
- * @interface SellerProposal
18
- */
19
- export interface SellerProposal {
20
- /**
21
- *
22
- * @type {Array<SaleOfferProposal>}
23
- * @memberof SellerProposal
24
- */
25
- saleOfferProposals: Array<SaleOfferProposal>;
26
- /**
27
- *
28
- * @type {UserLink}
29
- * @memberof SellerProposal
30
- */
31
- seller: UserLink;
32
- /**
33
- *
34
- * @type {number}
35
- * @memberof SellerProposal
36
- */
37
- freeCarriageThreshold: number;
38
- }
39
- /**
40
- * Check if a given object implements the SellerProposal interface.
41
- */
42
- export declare function instanceOfSellerProposal(value: object): value is SellerProposal;
43
- export declare function SellerProposalFromJSON(json: any): SellerProposal;
44
- export declare function SellerProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerProposal;
45
- export declare function SellerProposalToJSON(value?: SellerProposal | null): any;
@@ -1,57 +0,0 @@
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.SellerProposalToJSON = exports.SellerProposalFromJSONTyped = exports.SellerProposalFromJSON = exports.instanceOfSellerProposal = void 0;
17
- var UserLink_1 = require("./UserLink");
18
- var SaleOfferProposal_1 = require("./SaleOfferProposal");
19
- /**
20
- * Check if a given object implements the SellerProposal interface.
21
- */
22
- function instanceOfSellerProposal(value) {
23
- if (!('saleOfferProposals' in value) || value['saleOfferProposals'] === undefined)
24
- return false;
25
- if (!('seller' in value) || value['seller'] === undefined)
26
- return false;
27
- if (!('freeCarriageThreshold' in value) || value['freeCarriageThreshold'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- exports.instanceOfSellerProposal = instanceOfSellerProposal;
32
- function SellerProposalFromJSON(json) {
33
- return SellerProposalFromJSONTyped(json, false);
34
- }
35
- exports.SellerProposalFromJSON = SellerProposalFromJSON;
36
- function SellerProposalFromJSONTyped(json, ignoreDiscriminator) {
37
- if (json == null) {
38
- return json;
39
- }
40
- return {
41
- 'saleOfferProposals': (json['saleOfferProposals'] === null || json['saleOfferProposals'] === undefined) ? json['saleOfferProposals'] : json['saleOfferProposals'].map(SaleOfferProposal_1.SaleOfferProposalFromJSON),
42
- 'seller': (json['seller'] === null || json['seller'] === undefined) ? json['seller'] : (0, UserLink_1.UserLinkFromJSON)(json['seller']),
43
- 'freeCarriageThreshold': json['freeCarriageThreshold'],
44
- };
45
- }
46
- exports.SellerProposalFromJSONTyped = SellerProposalFromJSONTyped;
47
- function SellerProposalToJSON(value) {
48
- if (value == null) {
49
- return value;
50
- }
51
- return {
52
- 'saleOfferProposals': (value['saleOfferProposals'] === null || value['saleOfferProposals'] === undefined) ? value['saleOfferProposals'] : value['saleOfferProposals'].map(SaleOfferProposal_1.SaleOfferProposalToJSON),
53
- 'seller': (0, UserLink_1.UserLinkToJSON)(value['seller']),
54
- 'freeCarriageThreshold': value['freeCarriageThreshold'],
55
- };
56
- }
57
- exports.SellerProposalToJSON = SellerProposalToJSON;