@lcdp/api-react-rest-client 0.0.2-develop.7 → 0.0.2-test-codegen.0

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 (88) hide show
  1. package/configuration/src/apis/ManageVariableApi.d.ts +53 -1
  2. package/configuration/src/apis/ManageVariableApi.js +54 -1
  3. package/configuration/src/apis/SearchVariableApi.d.ts +53 -1
  4. package/configuration/src/apis/SearchVariableApi.js +54 -1
  5. package/laboratory-store/src/models/ImageVersions.d.ts +5 -5
  6. package/magic-cart/src/apis/ManageMagicCartApi.d.ts +29 -0
  7. package/magic-cart/src/apis/{ManageExpressOrderApi.js → ManageMagicCartApi.js} +17 -16
  8. package/magic-cart/src/apis/index.d.ts +1 -1
  9. package/magic-cart/src/apis/index.js +1 -1
  10. package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +25 -0
  11. package/magic-cart/src/models/AnyMagicCartCreationParameters.js +64 -0
  12. package/magic-cart/src/models/MagicCart.d.ts +28 -0
  13. package/magic-cart/src/models/MagicCart.js +43 -0
  14. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +29 -0
  15. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +50 -0
  16. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +28 -0
  17. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +42 -0
  18. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +29 -0
  19. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +50 -0
  20. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +28 -0
  21. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +42 -0
  22. package/magic-cart/src/models/MagicNeed.d.ts +39 -0
  23. package/magic-cart/src/models/{ExpressOrderNeed.js → MagicNeed.js} +10 -8
  24. package/magic-cart/src/models/MagicProductBus.d.ts +33 -0
  25. package/magic-cart/src/models/{HttpLink.js → MagicProductBus.js} +12 -10
  26. package/magic-cart/src/models/MagicProposal.d.ts +39 -0
  27. package/magic-cart/src/models/{DistributionRange.js → MagicProposal.js} +12 -12
  28. package/magic-cart/src/models/index.d.ts +9 -24
  29. package/magic-cart/src/models/index.js +9 -24
  30. package/mangopay-hook/src/apis/MangopayHookApi.d.ts +13 -0
  31. package/mangopay-hook/src/apis/MangopayHookApi.js +63 -1
  32. package/package.json +1 -1
  33. package/product/src/apis/SearchProductApi.d.ts +0 -1
  34. package/product/src/apis/SearchProductApi.js +0 -3
  35. package/product/src/models/ImageVersions.d.ts +5 -5
  36. package/pub/src/models/ImageVersions.d.ts +5 -5
  37. package/pub/src/models/PubLocationEnum.d.ts +1 -3
  38. package/pub/src/models/PubLocationEnum.js +0 -2
  39. package/sale-offer/src/models/ImageVersions.d.ts +5 -5
  40. package/shopping-cart/src/models/CartSubCartLine.d.ts +6 -0
  41. package/shopping-cart/src/models/CartSubCartLine.js +2 -0
  42. package/user/src/models/UserDelegatedServices.d.ts +1 -1
  43. package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +0 -31
  44. package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +0 -28
  45. package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +0 -69
  46. package/magic-cart/src/models/Barcodes.d.ts +0 -45
  47. package/magic-cart/src/models/Barcodes.js +0 -48
  48. package/magic-cart/src/models/DistributionMode.d.ts +0 -27
  49. package/magic-cart/src/models/DistributionMode.js +0 -41
  50. package/magic-cart/src/models/DistributionRange.d.ts +0 -39
  51. package/magic-cart/src/models/ExpressOrder.d.ts +0 -28
  52. package/magic-cart/src/models/ExpressOrder.js +0 -43
  53. package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +0 -34
  54. package/magic-cart/src/models/ExpressOrderCreationParameters.js +0 -45
  55. package/magic-cart/src/models/ExpressOrderNeed.d.ts +0 -33
  56. package/magic-cart/src/models/HttpLink.d.ts +0 -27
  57. package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +0 -34
  58. package/magic-cart/src/models/IdentifiedDistributionRange.js +0 -49
  59. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +0 -33
  60. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +0 -43
  61. package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +0 -29
  62. package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +0 -50
  63. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +0 -28
  64. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +0 -42
  65. package/magic-cart/src/models/ProductLink.d.ts +0 -41
  66. package/magic-cart/src/models/ProductLink.js +0 -50
  67. package/magic-cart/src/models/ProductLinkAllOf.d.ts +0 -40
  68. package/magic-cart/src/models/ProductLinkAllOf.js +0 -46
  69. package/magic-cart/src/models/QuotationDistributionMode.d.ts +0 -22
  70. package/magic-cart/src/models/QuotationDistributionMode.js +0 -28
  71. package/magic-cart/src/models/SaleOfferLink.d.ts +0 -54
  72. package/magic-cart/src/models/SaleOfferLink.js +0 -52
  73. package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +0 -53
  74. package/magic-cart/src/models/SaleOfferLinkAllOf.js +0 -52
  75. package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -47
  76. package/magic-cart/src/models/SaleOfferProposal.js +0 -49
  77. package/magic-cart/src/models/SellerProposal.d.ts +0 -41
  78. package/magic-cart/src/models/SellerProposal.js +0 -47
  79. package/magic-cart/src/models/Stock.d.ts +0 -39
  80. package/magic-cart/src/models/Stock.js +0 -46
  81. package/magic-cart/src/models/UnitaryDistributionMode.d.ts +0 -34
  82. package/magic-cart/src/models/UnitaryDistributionMode.js +0 -49
  83. package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +0 -33
  84. package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +0 -43
  85. package/magic-cart/src/models/UserLink.d.ts +0 -34
  86. package/magic-cart/src/models/UserLink.js +0 -49
  87. package/magic-cart/src/models/UserLinkAllOf.d.ts +0 -33
  88. package/magic-cart/src/models/UserLinkAllOf.js +0 -43
@@ -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.MagicCartWithInitialCreationParametersToJSON = exports.MagicCartWithInitialCreationParametersFromJSONTyped = exports.MagicCartWithInitialCreationParametersFromJSON = void 0;
28
+ var MagicProductBus_1 = require("./MagicProductBus");
29
+ var MagicProposal_1 = require("./MagicProposal");
30
+ function MagicCartWithInitialCreationParametersFromJSON(json) {
31
+ return MagicCartWithInitialCreationParametersFromJSONTyped(json, false);
32
+ }
33
+ exports.MagicCartWithInitialCreationParametersFromJSON = MagicCartWithInitialCreationParametersFromJSON;
34
+ function MagicCartWithInitialCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusFromJSONTyped)(json, ignoreDiscriminator)), { 'cart': (json['cart'].map(MagicProposal_1.MagicProposalFromJSON)) });
39
+ }
40
+ exports.MagicCartWithInitialCreationParametersFromJSONTyped = MagicCartWithInitialCreationParametersFromJSONTyped;
41
+ function MagicCartWithInitialCreationParametersToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusToJSON)(value)), { 'cart': (value.cart.map(MagicProposal_1.MagicProposalToJSON)) });
49
+ }
50
+ exports.MagicCartWithInitialCreationParametersToJSON = MagicCartWithInitialCreationParametersToJSON;
@@ -0,0 +1,28 @@
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 { MagicProposal } from './MagicProposal';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MagicCartWithInitialCreationParametersAllOf
17
+ */
18
+ export interface MagicCartWithInitialCreationParametersAllOf {
19
+ /**
20
+ * Shopping cart created by the client
21
+ * @type {Array<MagicProposal>}
22
+ * @memberof MagicCartWithInitialCreationParametersAllOf
23
+ */
24
+ cart: Array<MagicProposal>;
25
+ }
26
+ export declare function MagicCartWithInitialCreationParametersAllOfFromJSON(json: any): MagicCartWithInitialCreationParametersAllOf;
27
+ export declare function MagicCartWithInitialCreationParametersAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithInitialCreationParametersAllOf;
28
+ export declare function MagicCartWithInitialCreationParametersAllOfToJSON(value?: MagicCartWithInitialCreationParametersAllOf | null): any;
@@ -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.MagicCartWithInitialCreationParametersAllOfToJSON = exports.MagicCartWithInitialCreationParametersAllOfFromJSONTyped = exports.MagicCartWithInitialCreationParametersAllOfFromJSON = void 0;
17
+ var MagicProposal_1 = require("./MagicProposal");
18
+ function MagicCartWithInitialCreationParametersAllOfFromJSON(json) {
19
+ return MagicCartWithInitialCreationParametersAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.MagicCartWithInitialCreationParametersAllOfFromJSON = MagicCartWithInitialCreationParametersAllOfFromJSON;
22
+ function MagicCartWithInitialCreationParametersAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'cart': (json['cart'].map(MagicProposal_1.MagicProposalFromJSON)),
28
+ };
29
+ }
30
+ exports.MagicCartWithInitialCreationParametersAllOfFromJSONTyped = MagicCartWithInitialCreationParametersAllOfFromJSONTyped;
31
+ function MagicCartWithInitialCreationParametersAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'cart': (value.cart.map(MagicProposal_1.MagicProposalToJSON)),
40
+ };
41
+ }
42
+ exports.MagicCartWithInitialCreationParametersAllOfToJSON = MagicCartWithInitialCreationParametersAllOfToJSON;
@@ -0,0 +1,29 @@
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 { MagicNeed } from './MagicNeed';
13
+ import { MagicProductBus } from './MagicProductBus';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface MagicCartWithNeedCreationParameters
18
+ */
19
+ export interface MagicCartWithNeedCreationParameters extends MagicProductBus {
20
+ /**
21
+ * Products needed by the client
22
+ * @type {Array<MagicNeed>}
23
+ * @memberof MagicCartWithNeedCreationParameters
24
+ */
25
+ needs: Array<MagicNeed>;
26
+ }
27
+ export declare function MagicCartWithNeedCreationParametersFromJSON(json: any): MagicCartWithNeedCreationParameters;
28
+ export declare function MagicCartWithNeedCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithNeedCreationParameters;
29
+ export declare function MagicCartWithNeedCreationParametersToJSON(value?: MagicCartWithNeedCreationParameters | 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.MagicCartWithNeedCreationParametersToJSON = exports.MagicCartWithNeedCreationParametersFromJSONTyped = exports.MagicCartWithNeedCreationParametersFromJSON = void 0;
28
+ var MagicNeed_1 = require("./MagicNeed");
29
+ var MagicProductBus_1 = require("./MagicProductBus");
30
+ function MagicCartWithNeedCreationParametersFromJSON(json) {
31
+ return MagicCartWithNeedCreationParametersFromJSONTyped(json, false);
32
+ }
33
+ exports.MagicCartWithNeedCreationParametersFromJSON = MagicCartWithNeedCreationParametersFromJSON;
34
+ function MagicCartWithNeedCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusFromJSONTyped)(json, ignoreDiscriminator)), { 'needs': (json['needs'].map(MagicNeed_1.MagicNeedFromJSON)) });
39
+ }
40
+ exports.MagicCartWithNeedCreationParametersFromJSONTyped = MagicCartWithNeedCreationParametersFromJSONTyped;
41
+ function MagicCartWithNeedCreationParametersToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return __assign(__assign({}, (0, MagicProductBus_1.MagicProductBusToJSON)(value)), { 'needs': (value.needs.map(MagicNeed_1.MagicNeedToJSON)) });
49
+ }
50
+ exports.MagicCartWithNeedCreationParametersToJSON = MagicCartWithNeedCreationParametersToJSON;
@@ -0,0 +1,28 @@
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 { MagicNeed } from './MagicNeed';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface MagicCartWithNeedCreationParametersAllOf
17
+ */
18
+ export interface MagicCartWithNeedCreationParametersAllOf {
19
+ /**
20
+ * Products needed by the client
21
+ * @type {Array<MagicNeed>}
22
+ * @memberof MagicCartWithNeedCreationParametersAllOf
23
+ */
24
+ needs: Array<MagicNeed>;
25
+ }
26
+ export declare function MagicCartWithNeedCreationParametersAllOfFromJSON(json: any): MagicCartWithNeedCreationParametersAllOf;
27
+ export declare function MagicCartWithNeedCreationParametersAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithNeedCreationParametersAllOf;
28
+ export declare function MagicCartWithNeedCreationParametersAllOfToJSON(value?: MagicCartWithNeedCreationParametersAllOf | null): any;
@@ -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.MagicCartWithNeedCreationParametersAllOfToJSON = exports.MagicCartWithNeedCreationParametersAllOfFromJSONTyped = exports.MagicCartWithNeedCreationParametersAllOfFromJSON = void 0;
17
+ var MagicNeed_1 = require("./MagicNeed");
18
+ function MagicCartWithNeedCreationParametersAllOfFromJSON(json) {
19
+ return MagicCartWithNeedCreationParametersAllOfFromJSONTyped(json, false);
20
+ }
21
+ exports.MagicCartWithNeedCreationParametersAllOfFromJSON = MagicCartWithNeedCreationParametersAllOfFromJSON;
22
+ function MagicCartWithNeedCreationParametersAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
+ if ((json === undefined) || (json === null)) {
24
+ return json;
25
+ }
26
+ return {
27
+ 'needs': (json['needs'].map(MagicNeed_1.MagicNeedFromJSON)),
28
+ };
29
+ }
30
+ exports.MagicCartWithNeedCreationParametersAllOfFromJSONTyped = MagicCartWithNeedCreationParametersAllOfFromJSONTyped;
31
+ function MagicCartWithNeedCreationParametersAllOfToJSON(value) {
32
+ if (value === undefined) {
33
+ return undefined;
34
+ }
35
+ if (value === null) {
36
+ return null;
37
+ }
38
+ return {
39
+ 'needs': (value.needs.map(MagicNeed_1.MagicNeedToJSON)),
40
+ };
41
+ }
42
+ exports.MagicCartWithNeedCreationParametersAllOfToJSON = MagicCartWithNeedCreationParametersAllOfToJSON;
@@ -0,0 +1,39 @@
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
+ * Product wished by the client
14
+ * @export
15
+ * @interface MagicNeed
16
+ */
17
+ export interface MagicNeed {
18
+ /**
19
+ * Unique identifier of the product
20
+ * @type {number}
21
+ * @memberof MagicNeed
22
+ */
23
+ productId: number;
24
+ /**
25
+ * Wished quantity
26
+ * @type {number}
27
+ * @memberof MagicNeed
28
+ */
29
+ quantity: number;
30
+ /**
31
+ * Acceptable month before lapsing
32
+ * @type {number}
33
+ * @memberof MagicNeed
34
+ */
35
+ monthsBeforeLapsing: number;
36
+ }
37
+ export declare function MagicNeedFromJSON(json: any): MagicNeed;
38
+ export declare function MagicNeedFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicNeed;
39
+ export declare function MagicNeedToJSON(value?: MagicNeed | null): any;
@@ -13,22 +13,23 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ExpressOrderNeedToJSON = exports.ExpressOrderNeedFromJSONTyped = exports.ExpressOrderNeedFromJSON = void 0;
17
- function ExpressOrderNeedFromJSON(json) {
18
- return ExpressOrderNeedFromJSONTyped(json, false);
16
+ exports.MagicNeedToJSON = exports.MagicNeedFromJSONTyped = exports.MagicNeedFromJSON = void 0;
17
+ function MagicNeedFromJSON(json) {
18
+ return MagicNeedFromJSONTyped(json, false);
19
19
  }
20
- exports.ExpressOrderNeedFromJSON = ExpressOrderNeedFromJSON;
21
- function ExpressOrderNeedFromJSONTyped(json, ignoreDiscriminator) {
20
+ exports.MagicNeedFromJSON = MagicNeedFromJSON;
21
+ function MagicNeedFromJSONTyped(json, ignoreDiscriminator) {
22
22
  if ((json === undefined) || (json === null)) {
23
23
  return json;
24
24
  }
25
25
  return {
26
26
  'productId': json['productId'],
27
27
  'quantity': json['quantity'],
28
+ 'monthsBeforeLapsing': json['monthsBeforeLapsing'],
28
29
  };
29
30
  }
30
- exports.ExpressOrderNeedFromJSONTyped = ExpressOrderNeedFromJSONTyped;
31
- function ExpressOrderNeedToJSON(value) {
31
+ exports.MagicNeedFromJSONTyped = MagicNeedFromJSONTyped;
32
+ function MagicNeedToJSON(value) {
32
33
  if (value === undefined) {
33
34
  return undefined;
34
35
  }
@@ -38,6 +39,7 @@ function ExpressOrderNeedToJSON(value) {
38
39
  return {
39
40
  'productId': value.productId,
40
41
  'quantity': value.quantity,
42
+ 'monthsBeforeLapsing': value.monthsBeforeLapsing,
41
43
  };
42
44
  }
43
- exports.ExpressOrderNeedToJSON = ExpressOrderNeedToJSON;
45
+ exports.MagicNeedToJSON = MagicNeedToJSON;
@@ -0,0 +1,33 @@
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
+ * Payload who contain the wish of the client
14
+ * @export
15
+ * @interface MagicProductBus
16
+ */
17
+ export interface MagicProductBus {
18
+ /**
19
+ * Complexity of the request
20
+ * @type {string}
21
+ * @memberof MagicProductBus
22
+ */
23
+ complexity: string;
24
+ /**
25
+ * The way client ask for magic cart
26
+ * @type {string}
27
+ * @memberof MagicProductBus
28
+ */
29
+ wishFrom: string;
30
+ }
31
+ export declare function MagicProductBusFromJSON(json: any): MagicProductBus;
32
+ export declare function MagicProductBusFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicProductBus;
33
+ export declare function MagicProductBusToJSON(value?: MagicProductBus | null): any;
@@ -13,21 +13,22 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.HttpLinkToJSON = exports.HttpLinkFromJSONTyped = exports.HttpLinkFromJSON = void 0;
17
- function HttpLinkFromJSON(json) {
18
- return HttpLinkFromJSONTyped(json, false);
16
+ exports.MagicProductBusToJSON = exports.MagicProductBusFromJSONTyped = exports.MagicProductBusFromJSON = void 0;
17
+ function MagicProductBusFromJSON(json) {
18
+ return MagicProductBusFromJSONTyped(json, false);
19
19
  }
20
- exports.HttpLinkFromJSON = HttpLinkFromJSON;
21
- function HttpLinkFromJSONTyped(json, ignoreDiscriminator) {
20
+ exports.MagicProductBusFromJSON = MagicProductBusFromJSON;
21
+ function MagicProductBusFromJSONTyped(json, ignoreDiscriminator) {
22
22
  if ((json === undefined) || (json === null)) {
23
23
  return json;
24
24
  }
25
25
  return {
26
- 'href': json['href'],
26
+ 'complexity': json['complexity'],
27
+ 'wishFrom': json['wishFrom'],
27
28
  };
28
29
  }
29
- exports.HttpLinkFromJSONTyped = HttpLinkFromJSONTyped;
30
- function HttpLinkToJSON(value) {
30
+ exports.MagicProductBusFromJSONTyped = MagicProductBusFromJSONTyped;
31
+ function MagicProductBusToJSON(value) {
31
32
  if (value === undefined) {
32
33
  return undefined;
33
34
  }
@@ -35,7 +36,8 @@ function HttpLinkToJSON(value) {
35
36
  return null;
36
37
  }
37
38
  return {
38
- 'href': value.href,
39
+ 'complexity': value.complexity,
40
+ 'wishFrom': value.wishFrom,
39
41
  };
40
42
  }
41
- exports.HttpLinkToJSON = HttpLinkToJSON;
43
+ exports.MagicProductBusToJSON = MagicProductBusToJSON;
@@ -0,0 +1,39 @@
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
+ * Ad found by the algorithm
14
+ * @export
15
+ * @interface MagicProposal
16
+ */
17
+ export interface MagicProposal {
18
+ /**
19
+ * Unique identifier of the product
20
+ * @type {number}
21
+ * @memberof MagicProposal
22
+ */
23
+ productId: number;
24
+ /**
25
+ * Quantity found
26
+ * @type {number}
27
+ * @memberof MagicProposal
28
+ */
29
+ quantity: number;
30
+ /**
31
+ * Unique identifier of the proposal ad
32
+ * @type {string}
33
+ * @memberof MagicProposal
34
+ */
35
+ saleOfferReference: string;
36
+ }
37
+ export declare function MagicProposalFromJSON(json: any): MagicProposal;
38
+ export declare function MagicProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicProposal;
39
+ export declare function MagicProposalToJSON(value?: MagicProposal | null): any;
@@ -13,23 +13,23 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.DistributionRangeToJSON = exports.DistributionRangeFromJSONTyped = exports.DistributionRangeFromJSON = void 0;
17
- function DistributionRangeFromJSON(json) {
18
- return DistributionRangeFromJSONTyped(json, false);
16
+ exports.MagicProposalToJSON = exports.MagicProposalFromJSONTyped = exports.MagicProposalFromJSON = void 0;
17
+ function MagicProposalFromJSON(json) {
18
+ return MagicProposalFromJSONTyped(json, false);
19
19
  }
20
- exports.DistributionRangeFromJSON = DistributionRangeFromJSON;
21
- function DistributionRangeFromJSONTyped(json, ignoreDiscriminator) {
20
+ exports.MagicProposalFromJSON = MagicProposalFromJSON;
21
+ function MagicProposalFromJSONTyped(json, ignoreDiscriminator) {
22
22
  if ((json === undefined) || (json === null)) {
23
23
  return json;
24
24
  }
25
25
  return {
26
+ 'productId': json['productId'],
26
27
  'quantity': json['quantity'],
27
- 'unitPrice': json['unitPrice'],
28
- 'freeUnits': json['freeUnits'],
28
+ 'saleOfferReference': json['saleOfferReference'],
29
29
  };
30
30
  }
31
- exports.DistributionRangeFromJSONTyped = DistributionRangeFromJSONTyped;
32
- function DistributionRangeToJSON(value) {
31
+ exports.MagicProposalFromJSONTyped = MagicProposalFromJSONTyped;
32
+ function MagicProposalToJSON(value) {
33
33
  if (value === undefined) {
34
34
  return undefined;
35
35
  }
@@ -37,9 +37,9 @@ function DistributionRangeToJSON(value) {
37
37
  return null;
38
38
  }
39
39
  return {
40
+ 'productId': value.productId,
40
41
  'quantity': value.quantity,
41
- 'unitPrice': value.unitPrice,
42
- 'freeUnits': value.freeUnits,
42
+ 'saleOfferReference': value.saleOfferReference,
43
43
  };
44
44
  }
45
- exports.DistributionRangeToJSON = DistributionRangeToJSON;
45
+ exports.MagicProposalToJSON = MagicProposalToJSON;
@@ -1,24 +1,9 @@
1
- export * from './AnyIdentifiedDistributionMode';
2
- export * from './Barcodes';
3
- export * from './DistributionMode';
4
- export * from './DistributionRange';
5
- export * from './ExpressOrder';
6
- export * from './ExpressOrderCreationParameters';
7
- export * from './ExpressOrderNeed';
8
- export * from './HttpLink';
9
- export * from './IdentifiedDistributionRange';
10
- export * from './IdentifiedDistributionRangeAllOf';
11
- export * from './IdentifiedRangeDistributionMode';
12
- export * from './IdentifiedRangeDistributionModeAllOf';
13
- export * from './ProductLink';
14
- export * from './ProductLinkAllOf';
15
- export * from './QuotationDistributionMode';
16
- export * from './SaleOfferLink';
17
- export * from './SaleOfferLinkAllOf';
18
- export * from './SaleOfferProposal';
19
- export * from './SellerProposal';
20
- export * from './Stock';
21
- export * from './UnitaryDistributionMode';
22
- export * from './UnitaryDistributionModeAllOf';
23
- export * from './UserLink';
24
- export * from './UserLinkAllOf';
1
+ export * from './AnyMagicCartCreationParameters';
2
+ export * from './MagicCart';
3
+ export * from './MagicCartWithInitialCreationParameters';
4
+ export * from './MagicCartWithInitialCreationParametersAllOf';
5
+ export * from './MagicCartWithNeedCreationParameters';
6
+ export * from './MagicCartWithNeedCreationParametersAllOf';
7
+ export * from './MagicNeed';
8
+ export * from './MagicProductBus';
9
+ export * from './MagicProposal';
@@ -14,27 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./AnyIdentifiedDistributionMode"), exports);
18
- __exportStar(require("./Barcodes"), exports);
19
- __exportStar(require("./DistributionMode"), exports);
20
- __exportStar(require("./DistributionRange"), exports);
21
- __exportStar(require("./ExpressOrder"), exports);
22
- __exportStar(require("./ExpressOrderCreationParameters"), exports);
23
- __exportStar(require("./ExpressOrderNeed"), exports);
24
- __exportStar(require("./HttpLink"), exports);
25
- __exportStar(require("./IdentifiedDistributionRange"), exports);
26
- __exportStar(require("./IdentifiedDistributionRangeAllOf"), exports);
27
- __exportStar(require("./IdentifiedRangeDistributionMode"), exports);
28
- __exportStar(require("./IdentifiedRangeDistributionModeAllOf"), exports);
29
- __exportStar(require("./ProductLink"), exports);
30
- __exportStar(require("./ProductLinkAllOf"), exports);
31
- __exportStar(require("./QuotationDistributionMode"), exports);
32
- __exportStar(require("./SaleOfferLink"), exports);
33
- __exportStar(require("./SaleOfferLinkAllOf"), exports);
34
- __exportStar(require("./SaleOfferProposal"), exports);
35
- __exportStar(require("./SellerProposal"), exports);
36
- __exportStar(require("./Stock"), exports);
37
- __exportStar(require("./UnitaryDistributionMode"), exports);
38
- __exportStar(require("./UnitaryDistributionModeAllOf"), exports);
39
- __exportStar(require("./UserLink"), exports);
40
- __exportStar(require("./UserLinkAllOf"), exports);
17
+ __exportStar(require("./AnyMagicCartCreationParameters"), exports);
18
+ __exportStar(require("./MagicCart"), exports);
19
+ __exportStar(require("./MagicCartWithInitialCreationParameters"), exports);
20
+ __exportStar(require("./MagicCartWithInitialCreationParametersAllOf"), exports);
21
+ __exportStar(require("./MagicCartWithNeedCreationParameters"), exports);
22
+ __exportStar(require("./MagicCartWithNeedCreationParametersAllOf"), exports);
23
+ __exportStar(require("./MagicNeed"), exports);
24
+ __exportStar(require("./MagicProductBus"), exports);
25
+ __exportStar(require("./MagicProposal"), exports);
@@ -15,6 +15,11 @@ export interface HookRequest {
15
15
  ressourceId: string;
16
16
  date?: string;
17
17
  }
18
+ export interface OldHookRequest {
19
+ eventType: string;
20
+ ressourceId: string;
21
+ date?: string;
22
+ }
18
23
  /**
19
24
  * no description
20
25
  */
@@ -27,4 +32,12 @@ export declare class MangopayHookApi extends BaseAPI {
27
32
  * Call mangopay hook
28
33
  */
29
34
  hook(requestParameters: HookRequest): Promise<void>;
35
+ /**
36
+ * Call mangopay hook
37
+ */
38
+ oldHookRaw(requestParameters: OldHookRequest): Promise<ApiResponse<void>>;
39
+ /**
40
+ * Call mangopay hook
41
+ */
42
+ oldHook(requestParameters: OldHookRequest): Promise<void>;
30
43
  }