@lcdp/api-react-rest-client 0.0.2-1 → 0.0.2-2

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 (82) hide show
  1. package/configuration/src/apis/ManageVariableApi.d.ts +1 -53
  2. package/configuration/src/apis/ManageVariableApi.js +1 -54
  3. package/configuration/src/apis/SearchVariableApi.d.ts +1 -53
  4. package/configuration/src/apis/SearchVariableApi.js +1 -54
  5. package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +31 -0
  6. package/magic-cart/src/apis/{ManageMagicCartApi.js → ManageExpressOrderApi.js} +16 -17
  7. package/magic-cart/src/apis/index.d.ts +1 -1
  8. package/magic-cart/src/apis/index.js +1 -1
  9. package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +28 -0
  10. package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +69 -0
  11. package/magic-cart/src/models/Barcodes.d.ts +45 -0
  12. package/magic-cart/src/models/Barcodes.js +48 -0
  13. package/magic-cart/src/models/DistributionMode.d.ts +27 -0
  14. package/magic-cart/src/models/{MagicProductBus.js → DistributionMode.js} +10 -12
  15. package/magic-cart/src/models/DistributionRange.d.ts +39 -0
  16. package/magic-cart/src/models/{MagicProposal.js → DistributionRange.js} +12 -12
  17. package/magic-cart/src/models/ExpressOrder.d.ts +28 -0
  18. package/magic-cart/src/models/ExpressOrder.js +43 -0
  19. package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +34 -0
  20. package/magic-cart/src/models/ExpressOrderCreationParameters.js +45 -0
  21. package/magic-cart/src/models/ExpressOrderNeed.d.ts +33 -0
  22. package/magic-cart/src/models/{MagicNeed.js → ExpressOrderNeed.js} +8 -10
  23. package/magic-cart/src/models/HttpLink.d.ts +27 -0
  24. package/magic-cart/src/models/HttpLink.js +41 -0
  25. package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +34 -0
  26. package/magic-cart/src/models/IdentifiedDistributionRange.js +49 -0
  27. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +33 -0
  28. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +43 -0
  29. package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +29 -0
  30. package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +50 -0
  31. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +28 -0
  32. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +42 -0
  33. package/magic-cart/src/models/ProductLink.d.ts +41 -0
  34. package/magic-cart/src/models/ProductLink.js +50 -0
  35. package/magic-cart/src/models/ProductLinkAllOf.d.ts +40 -0
  36. package/magic-cart/src/models/ProductLinkAllOf.js +46 -0
  37. package/magic-cart/src/models/QuotationDistributionMode.d.ts +22 -0
  38. package/magic-cart/src/models/QuotationDistributionMode.js +28 -0
  39. package/magic-cart/src/models/SaleOfferLink.d.ts +54 -0
  40. package/magic-cart/src/models/SaleOfferLink.js +52 -0
  41. package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +53 -0
  42. package/magic-cart/src/models/SaleOfferLinkAllOf.js +52 -0
  43. package/magic-cart/src/models/SaleOfferProposal.d.ts +47 -0
  44. package/magic-cart/src/models/SaleOfferProposal.js +49 -0
  45. package/magic-cart/src/models/SellerProposal.d.ts +41 -0
  46. package/magic-cart/src/models/SellerProposal.js +47 -0
  47. package/magic-cart/src/models/Stock.d.ts +39 -0
  48. package/magic-cart/src/models/Stock.js +46 -0
  49. package/magic-cart/src/models/UnitaryDistributionMode.d.ts +34 -0
  50. package/magic-cart/src/models/UnitaryDistributionMode.js +49 -0
  51. package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +33 -0
  52. package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +43 -0
  53. package/magic-cart/src/models/UserLink.d.ts +34 -0
  54. package/magic-cart/src/models/UserLink.js +49 -0
  55. package/magic-cart/src/models/UserLinkAllOf.d.ts +33 -0
  56. package/magic-cart/src/models/UserLinkAllOf.js +43 -0
  57. package/magic-cart/src/models/index.d.ts +24 -9
  58. package/magic-cart/src/models/index.js +24 -9
  59. package/mangopay-hook/src/apis/MangopayHookApi.d.ts +0 -13
  60. package/mangopay-hook/src/apis/MangopayHookApi.js +1 -63
  61. package/package.json +1 -1
  62. package/product/src/apis/SearchProductApi.d.ts +1 -0
  63. package/product/src/apis/SearchProductApi.js +3 -0
  64. package/shopping-cart/src/models/CartSubCartLine.d.ts +0 -6
  65. package/shopping-cart/src/models/CartSubCartLine.js +0 -2
  66. package/user/src/models/UserDelegatedServices.d.ts +1 -1
  67. package/magic-cart/src/apis/ManageMagicCartApi.d.ts +0 -29
  68. package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +0 -25
  69. package/magic-cart/src/models/AnyMagicCartCreationParameters.js +0 -64
  70. package/magic-cart/src/models/MagicCart.d.ts +0 -28
  71. package/magic-cart/src/models/MagicCart.js +0 -43
  72. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +0 -29
  73. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +0 -50
  74. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +0 -28
  75. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +0 -42
  76. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +0 -29
  77. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +0 -50
  78. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +0 -28
  79. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +0 -42
  80. package/magic-cart/src/models/MagicNeed.d.ts +0 -39
  81. package/magic-cart/src/models/MagicProductBus.d.ts +0 -33
  82. package/magic-cart/src/models/MagicProposal.d.ts +0 -39
@@ -0,0 +1,42 @@
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.IdentifiedRangeDistributionModeAllOfToJSON = exports.IdentifiedRangeDistributionModeAllOfFromJSONTyped = exports.IdentifiedRangeDistributionModeAllOfFromJSON = void 0;
17
+ var IdentifiedDistributionRange_1 = require("./IdentifiedDistributionRange");
18
+ function IdentifiedRangeDistributionModeAllOfFromJSON(json) {
19
+ return IdentifiedRangeDistributionModeAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.IdentifiedRangeDistributionModeAllOfFromJSON = IdentifiedRangeDistributionModeAllOfFromJSON;
22
+ function IdentifiedRangeDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'ranges': (json['ranges'].map(IdentifiedDistributionRange_1.IdentifiedDistributionRangeFromJSON)),
28
+ };
29
+ }
30
+ exports.IdentifiedRangeDistributionModeAllOfFromJSONTyped = IdentifiedRangeDistributionModeAllOfFromJSONTyped;
31
+ function IdentifiedRangeDistributionModeAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'ranges': (value.ranges.map(IdentifiedDistributionRange_1.IdentifiedDistributionRangeToJSON)),
40
+ };
41
+ }
42
+ exports.IdentifiedRangeDistributionModeAllOfToJSON = IdentifiedRangeDistributionModeAllOfToJSON;
@@ -0,0 +1,41 @@
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 { Barcodes } from './Barcodes';
13
+ import { HttpLink } from './HttpLink';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProductLink
18
+ */
19
+ export interface ProductLink extends HttpLink {
20
+ /**
21
+ * Identifier of the product
22
+ * @type {number}
23
+ * @memberof ProductLink
24
+ */
25
+ id: number;
26
+ /**
27
+ * Name of the product
28
+ * @type {string}
29
+ * @memberof ProductLink
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {Barcodes}
35
+ * @memberof ProductLink
36
+ */
37
+ barcodes: Barcodes;
38
+ }
39
+ export declare function ProductLinkFromJSON(json: any): ProductLink;
40
+ export declare function ProductLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLink;
41
+ export declare function ProductLinkToJSON(value?: ProductLink | null): any;
@@ -0,0 +1,50 @@
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
+ 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
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.ProductLinkToJSON = exports.ProductLinkFromJSONTyped = exports.ProductLinkFromJSON = void 0;
28
+ var Barcodes_1 = require("./Barcodes");
29
+ var HttpLink_1 = require("./HttpLink");
30
+ function ProductLinkFromJSON(json) {
31
+ return ProductLinkFromJSONTyped(json, false);
32
+ }
33
+ exports.ProductLinkFromJSON = ProductLinkFromJSON;
34
+ function ProductLinkFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'], 'name': json['name'], 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']) });
39
+ }
40
+ exports.ProductLinkFromJSONTyped = ProductLinkFromJSONTyped;
41
+ function ProductLinkToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'name': value.name, 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes) });
49
+ }
50
+ exports.ProductLinkToJSON = ProductLinkToJSON;
@@ -0,0 +1,40 @@
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 { Barcodes } from './Barcodes';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ProductLinkAllOf
17
+ */
18
+ export interface ProductLinkAllOf {
19
+ /**
20
+ * Identifier of the product
21
+ * @type {number}
22
+ * @memberof ProductLinkAllOf
23
+ */
24
+ id: number;
25
+ /**
26
+ * Name of the product
27
+ * @type {string}
28
+ * @memberof ProductLinkAllOf
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {Barcodes}
34
+ * @memberof ProductLinkAllOf
35
+ */
36
+ barcodes: Barcodes;
37
+ }
38
+ export declare function ProductLinkAllOfFromJSON(json: any): ProductLinkAllOf;
39
+ export declare function ProductLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProductLinkAllOf;
40
+ export declare function ProductLinkAllOfToJSON(value?: ProductLinkAllOf | null): any;
@@ -0,0 +1,46 @@
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.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
17
+ var Barcodes_1 = require("./Barcodes");
18
+ function ProductLinkAllOfFromJSON(json) {
19
+ return ProductLinkAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.ProductLinkAllOfFromJSON = ProductLinkAllOfFromJSON;
22
+ function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'id': json['id'],
28
+ 'name': json['name'],
29
+ 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
30
+ };
31
+ }
32
+ exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
33
+ function ProductLinkAllOfToJSON(value) {
34
+ if (value === undefined) {
35
+ return undefined;
36
+ }
37
+ if (value === null) {
38
+ return null;
39
+ }
40
+ return {
41
+ 'id': value.id,
42
+ 'name': value.name,
43
+ 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
44
+ };
45
+ }
46
+ exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
@@ -0,0 +1,22 @@
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 { DistributionMode } from './DistributionMode';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface QuotationDistributionMode
17
+ */
18
+ export interface QuotationDistributionMode extends DistributionMode {
19
+ }
20
+ export declare function QuotationDistributionModeFromJSON(json: any): QuotationDistributionMode;
21
+ export declare function QuotationDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionMode;
22
+ export declare function QuotationDistributionModeToJSON(value?: QuotationDistributionMode | null): any;
@@ -0,0 +1,28 @@
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.QuotationDistributionModeToJSON = exports.QuotationDistributionModeFromJSONTyped = exports.QuotationDistributionModeFromJSON = void 0;
17
+ function QuotationDistributionModeFromJSON(json) {
18
+ return QuotationDistributionModeFromJSONTyped(json, false);
19
+ }
20
+ exports.QuotationDistributionModeFromJSON = QuotationDistributionModeFromJSON;
21
+ function QuotationDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
22
+ return json;
23
+ }
24
+ exports.QuotationDistributionModeFromJSONTyped = QuotationDistributionModeFromJSONTyped;
25
+ function QuotationDistributionModeToJSON(value) {
26
+ return value;
27
+ }
28
+ exports.QuotationDistributionModeToJSON = QuotationDistributionModeToJSON;
@@ -0,0 +1,54 @@
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 { AnyIdentifiedDistributionMode } from './AnyIdentifiedDistributionMode';
13
+ import { HttpLink } from './HttpLink';
14
+ import { Stock } from './Stock';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface SaleOfferLink
19
+ */
20
+ export interface SaleOfferLink extends HttpLink {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof SaleOfferLink
25
+ */
26
+ reference: string;
27
+ /**
28
+ *
29
+ * @type {AnyIdentifiedDistributionMode}
30
+ * @memberof SaleOfferLink
31
+ */
32
+ distributionMode: AnyIdentifiedDistributionMode;
33
+ /**
34
+ *
35
+ * @type {Stock}
36
+ * @memberof SaleOfferLink
37
+ */
38
+ stock: Stock;
39
+ /**
40
+ *
41
+ * @type {number}
42
+ * @memberof SaleOfferLink
43
+ */
44
+ minimalQuantity: number;
45
+ /**
46
+ * Best Rebate for this sale offer
47
+ * @type {number}
48
+ * @memberof SaleOfferLink
49
+ */
50
+ bestRebate?: number;
51
+ }
52
+ export declare function SaleOfferLinkFromJSON(json: any): SaleOfferLink;
53
+ export declare function SaleOfferLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferLink;
54
+ export declare function SaleOfferLinkToJSON(value?: SaleOfferLink | null): any;
@@ -0,0 +1,52 @@
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
+ 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
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ exports.SaleOfferLinkToJSON = exports.SaleOfferLinkFromJSONTyped = exports.SaleOfferLinkFromJSON = void 0;
28
+ var runtime_1 = require("../runtime");
29
+ var AnyIdentifiedDistributionMode_1 = require("./AnyIdentifiedDistributionMode");
30
+ var HttpLink_1 = require("./HttpLink");
31
+ var Stock_1 = require("./Stock");
32
+ function SaleOfferLinkFromJSON(json) {
33
+ return SaleOfferLinkFromJSONTyped(json, false);
34
+ }
35
+ exports.SaleOfferLinkFromJSON = SaleOfferLinkFromJSON;
36
+ function SaleOfferLinkFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
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'] });
41
+ }
42
+ exports.SaleOfferLinkFromJSONTyped = SaleOfferLinkFromJSONTyped;
43
+ function SaleOfferLinkToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
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 });
51
+ }
52
+ exports.SaleOfferLinkToJSON = SaleOfferLinkToJSON;
@@ -0,0 +1,53 @@
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 { AnyIdentifiedDistributionMode } from './AnyIdentifiedDistributionMode';
13
+ import { Stock } from './Stock';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SaleOfferLinkAllOf
18
+ */
19
+ export interface SaleOfferLinkAllOf {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof SaleOfferLinkAllOf
24
+ */
25
+ reference: string;
26
+ /**
27
+ *
28
+ * @type {AnyIdentifiedDistributionMode}
29
+ * @memberof SaleOfferLinkAllOf
30
+ */
31
+ distributionMode: AnyIdentifiedDistributionMode;
32
+ /**
33
+ *
34
+ * @type {Stock}
35
+ * @memberof SaleOfferLinkAllOf
36
+ */
37
+ stock: Stock;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof SaleOfferLinkAllOf
42
+ */
43
+ minimalQuantity: number;
44
+ /**
45
+ * Best Rebate for this sale offer
46
+ * @type {number}
47
+ * @memberof SaleOfferLinkAllOf
48
+ */
49
+ bestRebate?: number;
50
+ }
51
+ export declare function SaleOfferLinkAllOfFromJSON(json: any): SaleOfferLinkAllOf;
52
+ export declare function SaleOfferLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferLinkAllOf;
53
+ export declare function SaleOfferLinkAllOfToJSON(value?: SaleOfferLinkAllOf | null): any;
@@ -0,0 +1,52 @@
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.SaleOfferLinkAllOfToJSON = exports.SaleOfferLinkAllOfFromJSONTyped = exports.SaleOfferLinkAllOfFromJSON = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var AnyIdentifiedDistributionMode_1 = require("./AnyIdentifiedDistributionMode");
19
+ var Stock_1 = require("./Stock");
20
+ function SaleOfferLinkAllOfFromJSON(json) {
21
+ return SaleOfferLinkAllOfFromJSONTyped(json, false);
22
+ }
23
+ exports.SaleOfferLinkAllOfFromJSON = SaleOfferLinkAllOfFromJSON;
24
+ function SaleOfferLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
25
+ if ((json === undefined) || (json === null)) {
26
+ return json;
27
+ }
28
+ return {
29
+ 'reference': json['reference'],
30
+ 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
31
+ 'stock': (0, Stock_1.StockFromJSON)(json['stock']),
32
+ 'minimalQuantity': json['minimalQuantity'],
33
+ 'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'],
34
+ };
35
+ }
36
+ exports.SaleOfferLinkAllOfFromJSONTyped = SaleOfferLinkAllOfFromJSONTyped;
37
+ function SaleOfferLinkAllOfToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'reference': value.reference,
46
+ 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode),
47
+ 'stock': (0, Stock_1.StockToJSON)(value.stock),
48
+ 'minimalQuantity': value.minimalQuantity,
49
+ 'bestRebate': value.bestRebate,
50
+ };
51
+ }
52
+ exports.SaleOfferLinkAllOfToJSON = SaleOfferLinkAllOfToJSON;
@@ -0,0 +1,47 @@
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 { ProductLink } from './ProductLink';
13
+ import { 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
+ export declare function SaleOfferProposalFromJSON(json: any): SaleOfferProposal;
46
+ export declare function SaleOfferProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferProposal;
47
+ export declare function SaleOfferProposalToJSON(value?: SaleOfferProposal | null): any;
@@ -0,0 +1,49 @@
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 = void 0;
17
+ var ProductLink_1 = require("./ProductLink");
18
+ var SaleOfferLink_1 = require("./SaleOfferLink");
19
+ function SaleOfferProposalFromJSON(json) {
20
+ return SaleOfferProposalFromJSONTyped(json, false);
21
+ }
22
+ exports.SaleOfferProposalFromJSON = SaleOfferProposalFromJSON;
23
+ function SaleOfferProposalFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
29
+ 'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
30
+ 'distributedRangeId': json['distributedRangeId'],
31
+ 'quantity': json['quantity'],
32
+ };
33
+ }
34
+ exports.SaleOfferProposalFromJSONTyped = SaleOfferProposalFromJSONTyped;
35
+ function SaleOfferProposalToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
44
+ 'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value.saleOffer),
45
+ 'distributedRangeId': value.distributedRangeId,
46
+ 'quantity': value.quantity,
47
+ };
48
+ }
49
+ exports.SaleOfferProposalToJSON = SaleOfferProposalToJSON;
@@ -0,0 +1,41 @@
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 { SaleOfferProposal } from './SaleOfferProposal';
13
+ import { UserLink } from './UserLink';
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
+ export declare function SellerProposalFromJSON(json: any): SellerProposal;
40
+ export declare function SellerProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerProposal;
41
+ export declare function SellerProposalToJSON(value?: SellerProposal | null): any;
@@ -0,0 +1,47 @@
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 = void 0;
17
+ var SaleOfferProposal_1 = require("./SaleOfferProposal");
18
+ var UserLink_1 = require("./UserLink");
19
+ function SellerProposalFromJSON(json) {
20
+ return SellerProposalFromJSONTyped(json, false);
21
+ }
22
+ exports.SellerProposalFromJSON = SellerProposalFromJSON;
23
+ function SellerProposalFromJSONTyped(json, ignoreDiscriminator) {
24
+ if ((json === undefined) || (json === null)) {
25
+ return json;
26
+ }
27
+ return {
28
+ 'saleOfferProposals': (json['saleOfferProposals'].map(SaleOfferProposal_1.SaleOfferProposalFromJSON)),
29
+ 'seller': (0, UserLink_1.UserLinkFromJSON)(json['seller']),
30
+ 'freeCarriageThreshold': json['freeCarriageThreshold'],
31
+ };
32
+ }
33
+ exports.SellerProposalFromJSONTyped = SellerProposalFromJSONTyped;
34
+ function SellerProposalToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'saleOfferProposals': (value.saleOfferProposals.map(SaleOfferProposal_1.SaleOfferProposalToJSON)),
43
+ 'seller': (0, UserLink_1.UserLinkToJSON)(value.seller),
44
+ 'freeCarriageThreshold': value.freeCarriageThreshold,
45
+ };
46
+ }
47
+ exports.SellerProposalToJSON = SellerProposalToJSON;