@lcdp/api-react-rest-client 0.0.2-LDS-2482-Move-JSON-codegen-of-API-somewhere-else.0 → 0.0.2-develop.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 (173) hide show
  1. package/auth/src/models/RestError.d.ts +4 -6
  2. package/auth/src/models/RestError.js +0 -2
  3. package/configuration/src/apis/ManageVariableApi.d.ts +53 -1
  4. package/configuration/src/apis/ManageVariableApi.js +54 -1
  5. package/configuration/src/apis/SearchVariableApi.d.ts +53 -1
  6. package/configuration/src/apis/SearchVariableApi.js +54 -1
  7. package/configuration/src/models/RestError.d.ts +4 -6
  8. package/configuration/src/models/RestError.js +0 -2
  9. package/content/src/models/RestError.d.ts +4 -6
  10. package/content/src/models/RestError.js +0 -2
  11. package/favorite/src/models/RestError.d.ts +4 -6
  12. package/favorite/src/models/RestError.js +0 -2
  13. package/inventory/src/models/RestError.d.ts +4 -6
  14. package/inventory/src/models/RestError.js +0 -2
  15. package/invoice/src/models/InvoiceType.d.ts +0 -1
  16. package/invoice/src/models/InvoiceType.js +0 -1
  17. package/invoice/src/models/RestError.d.ts +4 -6
  18. package/invoice/src/models/RestError.js +0 -2
  19. package/laboratory-store/src/models/ImageVersions.d.ts +6 -6
  20. package/laboratory-store/src/models/ImageVersions.js +1 -1
  21. package/laboratory-store/src/models/RestError.d.ts +4 -6
  22. package/laboratory-store/src/models/RestError.js +0 -2
  23. package/lexicon/src/models/RestError.d.ts +4 -6
  24. package/lexicon/src/models/RestError.js +0 -2
  25. package/litigation/src/models/RestError.d.ts +4 -6
  26. package/litigation/src/models/RestError.js +0 -2
  27. package/magic-cart/src/apis/ManageMagicCartApi.d.ts +29 -0
  28. package/magic-cart/src/apis/{ManageExpressOrderApi.js → ManageMagicCartApi.js} +17 -16
  29. package/magic-cart/src/apis/index.d.ts +1 -1
  30. package/magic-cart/src/apis/index.js +1 -1
  31. package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +25 -0
  32. package/magic-cart/src/models/AnyMagicCartCreationParameters.js +64 -0
  33. package/magic-cart/src/models/MagicCart.d.ts +28 -0
  34. package/magic-cart/src/models/MagicCart.js +43 -0
  35. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +29 -0
  36. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +50 -0
  37. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +28 -0
  38. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +42 -0
  39. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +29 -0
  40. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +50 -0
  41. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +28 -0
  42. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +42 -0
  43. package/magic-cart/src/models/MagicNeed.d.ts +39 -0
  44. package/magic-cart/src/models/{ExpressOrderNeed.js → MagicNeed.js} +10 -8
  45. package/magic-cart/src/models/MagicProductBus.d.ts +33 -0
  46. package/magic-cart/src/models/{HttpLink.js → MagicProductBus.js} +12 -10
  47. package/magic-cart/src/models/MagicProposal.d.ts +39 -0
  48. package/magic-cart/src/models/{DistributionRange.js → MagicProposal.js} +12 -12
  49. package/magic-cart/src/models/index.d.ts +9 -24
  50. package/magic-cart/src/models/index.js +9 -24
  51. package/mangopay-hook/src/apis/MangopayHookApi.d.ts +13 -0
  52. package/mangopay-hook/src/apis/MangopayHookApi.js +63 -1
  53. package/mangopay-hook/src/models/RestError.d.ts +4 -6
  54. package/mangopay-hook/src/models/RestError.js +0 -2
  55. package/notification/src/models/NotificationTypeId.d.ts +0 -1
  56. package/notification/src/models/NotificationTypeId.js +0 -1
  57. package/notification/src/models/RestError.d.ts +4 -6
  58. package/notification/src/models/RestError.js +0 -2
  59. package/order/src/models/OrderItemPrices.d.ts +1 -7
  60. package/order/src/models/OrderItemPrices.js +0 -2
  61. package/order/src/models/OrderPrices.d.ts +1 -1
  62. package/order/src/models/ProductLink.d.ts +7 -0
  63. package/order/src/models/ProductLink.js +3 -2
  64. package/order/src/models/ProductLinkAllOf.d.ts +7 -0
  65. package/order/src/models/ProductLinkAllOf.js +3 -0
  66. package/order/src/models/RestError.d.ts +4 -6
  67. package/order/src/models/RestError.js +0 -2
  68. package/order/src/models/Vat.d.ts +39 -0
  69. package/order/src/models/Vat.js +46 -0
  70. package/order/src/models/index.d.ts +1 -0
  71. package/order/src/models/index.js +1 -0
  72. package/package.json +1 -1
  73. package/product/src/apis/SearchProductApi.d.ts +0 -1
  74. package/product/src/apis/SearchProductApi.js +0 -3
  75. package/product/src/models/ImageVersions.d.ts +6 -6
  76. package/product/src/models/ImageVersions.js +1 -1
  77. package/product/src/models/RestError.d.ts +4 -6
  78. package/product/src/models/RestError.js +0 -2
  79. package/pub/src/models/Image.d.ts +3 -3
  80. package/pub/src/models/Image.js +4 -3
  81. package/pub/src/models/ImageVersions.d.ts +6 -6
  82. package/pub/src/models/ImageVersions.js +1 -1
  83. package/pub/src/models/Pub.d.ts +7 -7
  84. package/pub/src/models/Pub.js +9 -9
  85. package/pub/src/models/PubLocationEnum.d.ts +1 -3
  86. package/pub/src/models/PubLocationEnum.js +0 -2
  87. package/pub/src/models/RestError.d.ts +4 -6
  88. package/pub/src/models/RestError.js +0 -2
  89. package/recommendation/src/apis/index.d.ts +0 -1
  90. package/recommendation/src/apis/index.js +0 -1
  91. package/recommendation/src/models/index.d.ts +0 -3
  92. package/recommendation/src/models/index.js +0 -3
  93. package/rfx/src/models/RestError.d.ts +4 -6
  94. package/rfx/src/models/RestError.js +0 -2
  95. package/sale-offer/src/models/ImageVersions.d.ts +6 -6
  96. package/sale-offer/src/models/ImageVersions.js +1 -1
  97. package/sale-offer/src/models/RestError.d.ts +4 -6
  98. package/sale-offer/src/models/RestError.js +0 -2
  99. package/servant/src/models/RestError.d.ts +4 -6
  100. package/servant/src/models/RestError.js +0 -2
  101. package/shipment/src/models/RestError.d.ts +4 -6
  102. package/shipment/src/models/RestError.js +0 -2
  103. package/shopping-cart/src/models/CartSubCartLine.d.ts +6 -0
  104. package/shopping-cart/src/models/CartSubCartLine.js +2 -0
  105. package/shopping-cart/src/models/RestError.d.ts +4 -6
  106. package/shopping-cart/src/models/RestError.js +0 -2
  107. package/statistic/src/models/RestError.d.ts +4 -6
  108. package/statistic/src/models/RestError.js +0 -2
  109. package/subscription/src/models/RestError.d.ts +4 -6
  110. package/subscription/src/models/RestError.js +0 -2
  111. package/ubo/src/models/RestError.d.ts +4 -6
  112. package/ubo/src/models/RestError.js +0 -2
  113. package/user/src/models/NotificationTypeId.d.ts +0 -1
  114. package/user/src/models/NotificationTypeId.js +0 -1
  115. package/user/src/models/RestError.d.ts +4 -6
  116. package/user/src/models/RestError.js +0 -2
  117. package/user/src/models/UserDelegatedServices.d.ts +1 -1
  118. package/wish/src/models/RestError.d.ts +4 -6
  119. package/wish/src/models/RestError.js +0 -2
  120. package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +0 -31
  121. package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +0 -28
  122. package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +0 -69
  123. package/magic-cart/src/models/Barcodes.d.ts +0 -45
  124. package/magic-cart/src/models/Barcodes.js +0 -48
  125. package/magic-cart/src/models/DistributionMode.d.ts +0 -27
  126. package/magic-cart/src/models/DistributionMode.js +0 -41
  127. package/magic-cart/src/models/DistributionRange.d.ts +0 -39
  128. package/magic-cart/src/models/ExpressOrder.d.ts +0 -28
  129. package/magic-cart/src/models/ExpressOrder.js +0 -43
  130. package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +0 -34
  131. package/magic-cart/src/models/ExpressOrderCreationParameters.js +0 -45
  132. package/magic-cart/src/models/ExpressOrderNeed.d.ts +0 -33
  133. package/magic-cart/src/models/HttpLink.d.ts +0 -27
  134. package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +0 -34
  135. package/magic-cart/src/models/IdentifiedDistributionRange.js +0 -49
  136. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +0 -33
  137. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +0 -43
  138. package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +0 -29
  139. package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +0 -50
  140. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +0 -28
  141. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +0 -42
  142. package/magic-cart/src/models/ProductLink.d.ts +0 -41
  143. package/magic-cart/src/models/ProductLink.js +0 -50
  144. package/magic-cart/src/models/ProductLinkAllOf.d.ts +0 -40
  145. package/magic-cart/src/models/ProductLinkAllOf.js +0 -46
  146. package/magic-cart/src/models/QuotationDistributionMode.d.ts +0 -22
  147. package/magic-cart/src/models/QuotationDistributionMode.js +0 -28
  148. package/magic-cart/src/models/SaleOfferLink.d.ts +0 -54
  149. package/magic-cart/src/models/SaleOfferLink.js +0 -52
  150. package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +0 -53
  151. package/magic-cart/src/models/SaleOfferLinkAllOf.js +0 -52
  152. package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -47
  153. package/magic-cart/src/models/SaleOfferProposal.js +0 -49
  154. package/magic-cart/src/models/SellerProposal.d.ts +0 -41
  155. package/magic-cart/src/models/SellerProposal.js +0 -47
  156. package/magic-cart/src/models/Stock.d.ts +0 -39
  157. package/magic-cart/src/models/Stock.js +0 -46
  158. package/magic-cart/src/models/UnitaryDistributionMode.d.ts +0 -34
  159. package/magic-cart/src/models/UnitaryDistributionMode.js +0 -49
  160. package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +0 -33
  161. package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +0 -43
  162. package/magic-cart/src/models/UserLink.d.ts +0 -34
  163. package/magic-cart/src/models/UserLink.js +0 -49
  164. package/magic-cart/src/models/UserLinkAllOf.d.ts +0 -33
  165. package/magic-cart/src/models/UserLinkAllOf.js +0 -43
  166. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.d.ts +0 -45
  167. package/recommendation/src/apis/SearchFavoriteProductRecommendationApi.js +0 -182
  168. package/recommendation/src/models/FavoriteProductRecommendation.d.ts +0 -53
  169. package/recommendation/src/models/FavoriteProductRecommendation.js +0 -52
  170. package/recommendation/src/models/PaginatedFavoriteProductRecommendations.d.ts +0 -29
  171. package/recommendation/src/models/PaginatedFavoriteProductRecommendations.js +0 -50
  172. package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.d.ts +0 -28
  173. package/recommendation/src/models/PaginatedFavoriteProductRecommendationsAllOf.js +0 -42
@@ -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
  }
@@ -105,7 +105,7 @@ var MangopayHookApi = /** @class */ (function (_super) {
105
105
  _a.trys.push([1, 3, , 4]);
106
106
  return [4 /*yield*/, this.request({
107
107
  path: "/mangopay-hooks",
108
- method: 'GET',
108
+ method: 'POST',
109
109
  headers: headerParameters,
110
110
  query: queryParameters,
111
111
  })];
@@ -136,6 +136,68 @@ var MangopayHookApi = /** @class */ (function (_super) {
136
136
  });
137
137
  });
138
138
  };
139
+ /**
140
+ * Call mangopay hook
141
+ */
142
+ MangopayHookApi.prototype.oldHookRaw = function (requestParameters) {
143
+ return __awaiter(this, void 0, void 0, function () {
144
+ var queryParameters, headerParameters, response, response_2;
145
+ return __generator(this, function (_a) {
146
+ switch (_a.label) {
147
+ case 0:
148
+ if (requestParameters.eventType === null || requestParameters.eventType === undefined) {
149
+ throw new runtime_1.RequiredError('eventType', 'Required parameter requestParameters.eventType was null or undefined when calling oldHook.');
150
+ }
151
+ if (requestParameters.ressourceId === null || requestParameters.ressourceId === undefined) {
152
+ throw new runtime_1.RequiredError('ressourceId', 'Required parameter requestParameters.ressourceId was null or undefined when calling oldHook.');
153
+ }
154
+ queryParameters = {};
155
+ if (requestParameters.eventType !== undefined) {
156
+ queryParameters['EventType'] = requestParameters.eventType;
157
+ }
158
+ if (requestParameters.ressourceId !== undefined) {
159
+ queryParameters['RessourceId'] = requestParameters.ressourceId;
160
+ }
161
+ if (requestParameters.date !== undefined) {
162
+ queryParameters['Date'] = requestParameters.date;
163
+ }
164
+ headerParameters = {};
165
+ _a.label = 1;
166
+ case 1:
167
+ _a.trys.push([1, 3, , 4]);
168
+ return [4 /*yield*/, this.request({
169
+ path: "/mangopay-hooks",
170
+ method: 'GET',
171
+ headers: headerParameters,
172
+ query: queryParameters,
173
+ })];
174
+ case 2:
175
+ response = _a.sent();
176
+ return [2 /*return*/, new runtime_1.VoidApiResponse(response)];
177
+ case 3:
178
+ response_2 = _a.sent();
179
+ console.debug(response_2);
180
+ throw response_2;
181
+ case 4: return [2 /*return*/];
182
+ }
183
+ });
184
+ });
185
+ };
186
+ /**
187
+ * Call mangopay hook
188
+ */
189
+ MangopayHookApi.prototype.oldHook = function (requestParameters) {
190
+ return __awaiter(this, void 0, void 0, function () {
191
+ return __generator(this, function (_a) {
192
+ switch (_a.label) {
193
+ case 0: return [4 /*yield*/, this.oldHookRaw(requestParameters)];
194
+ case 1:
195
+ _a.sent();
196
+ return [2 /*return*/];
197
+ }
198
+ });
199
+ });
200
+ };
139
201
  return MangopayHookApi;
140
202
  }(runtime_1.BaseAPI));
141
203
  exports.MangopayHookApi = MangopayHookApi;
@@ -16,13 +16,13 @@
16
16
  */
17
17
  export interface RestError {
18
18
  /**
19
- * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used
19
+ * Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Empty Meta-Order * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale
20
20
  * @type {string}
21
21
  * @memberof RestError
22
22
  */
23
23
  code: RestErrorCodeEnum;
24
24
  /**
25
- * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used
25
+ * Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Empty Meta-Order * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale
26
26
  * @type {string}
27
27
  * @memberof RestError
28
28
  */
@@ -53,8 +53,7 @@ export declare enum RestErrorCodeEnum {
53
53
  CODE014 = "CODE014",
54
54
  CODE015 = "CODE015",
55
55
  CODE016 = "CODE016",
56
- CODE017 = "CODE017",
57
- CODE018 = "CODE018"
56
+ CODE017 = "CODE017"
58
57
  }
59
58
  /**
60
59
  * @export
@@ -78,6 +77,5 @@ export declare enum RestErrorMessageEnum {
78
77
  MESSAGE014 = "Invalid Meta-Order",
79
78
  MESSAGE015 = "Can not release quantity greater than claimed",
80
79
  MESSAGE016 = "Can not release a negative quantity of items",
81
- MESSAGE017 = "Batch is forbidden for sale",
82
- MESSAGE018 = "Trial already used"
80
+ MESSAGE017 = "Batch is forbidden for sale"
83
81
  }