@lcdp/api-react-rest-client 0.0.2-test-codegen.0 → 0.0.2-test-api.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 (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
@@ -1,29 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { BaseAPI, ApiResponse, BlobWithMeta } from '../runtime';
13
- import { AnyMagicCartCreationParameters, MagicCart } from '../models';
14
- export interface CreateMagicCartRequest {
15
- anyMagicCartCreationParameters: AnyMagicCartCreationParameters;
16
- }
17
- /**
18
- * no description
19
- */
20
- export declare class ManageMagicCartApi extends BaseAPI {
21
- /**
22
- * Create magic ad cart
23
- */
24
- createMagicCartRaw(requestParameters: CreateMagicCartRequest): Promise<ApiResponse<MagicCart | BlobWithMeta>>;
25
- /**
26
- * Create magic ad cart
27
- */
28
- createMagicCart(requestParameters: CreateMagicCartRequest): Promise<MagicCart | BlobWithMeta>;
29
- }
@@ -1,25 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { MagicCartWithInitialCreationParameters } from './MagicCartWithInitialCreationParameters';
13
- import { MagicCartWithNeedCreationParameters } from './MagicCartWithNeedCreationParameters';
14
- /**
15
- * @type AnyMagicCartCreationParameters
16
- * @export
17
- */
18
- export declare type AnyMagicCartCreationParameters = {
19
- wishFrom: 'cart';
20
- } & MagicCartWithInitialCreationParameters | {
21
- wishFrom: 'need';
22
- } & MagicCartWithNeedCreationParameters;
23
- export declare function AnyMagicCartCreationParametersFromJSON(json: any): AnyMagicCartCreationParameters;
24
- export declare function AnyMagicCartCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): AnyMagicCartCreationParameters;
25
- export declare function AnyMagicCartCreationParametersToJSON(value?: AnyMagicCartCreationParameters | null): any;
@@ -1,64 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- 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.AnyMagicCartCreationParametersToJSON = exports.AnyMagicCartCreationParametersFromJSONTyped = exports.AnyMagicCartCreationParametersFromJSON = void 0;
28
- var MagicCartWithInitialCreationParameters_1 = require("./MagicCartWithInitialCreationParameters");
29
- var MagicCartWithNeedCreationParameters_1 = require("./MagicCartWithNeedCreationParameters");
30
- function AnyMagicCartCreationParametersFromJSON(json) {
31
- return AnyMagicCartCreationParametersFromJSONTyped(json, false);
32
- }
33
- exports.AnyMagicCartCreationParametersFromJSON = AnyMagicCartCreationParametersFromJSON;
34
- function AnyMagicCartCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
35
- if ((json === undefined) || (json === null)) {
36
- return json;
37
- }
38
- switch (json['wishFrom']) {
39
- case 'cart':
40
- return __assign(__assign({}, (0, MagicCartWithInitialCreationParameters_1.MagicCartWithInitialCreationParametersFromJSONTyped)(json, true)), { wishFrom: 'cart' });
41
- case 'need':
42
- return __assign(__assign({}, (0, MagicCartWithNeedCreationParameters_1.MagicCartWithNeedCreationParametersFromJSONTyped)(json, true)), { wishFrom: 'need' });
43
- default:
44
- throw new Error("No variant of AnyMagicCartCreationParameters exists with 'wishFrom=".concat(json['wishFrom'], "'"));
45
- }
46
- }
47
- exports.AnyMagicCartCreationParametersFromJSONTyped = AnyMagicCartCreationParametersFromJSONTyped;
48
- function AnyMagicCartCreationParametersToJSON(value) {
49
- if (value === undefined) {
50
- return undefined;
51
- }
52
- if (value === null) {
53
- return null;
54
- }
55
- switch (value['wishFrom']) {
56
- case 'cart':
57
- return (0, MagicCartWithInitialCreationParameters_1.MagicCartWithInitialCreationParametersToJSON)(value);
58
- case 'need':
59
- return (0, MagicCartWithNeedCreationParameters_1.MagicCartWithNeedCreationParametersToJSON)(value);
60
- default:
61
- throw new Error("No variant of AnyMagicCartCreationParameters exists with 'wishFrom=".concat(value['wishFrom'], "'"));
62
- }
63
- }
64
- exports.AnyMagicCartCreationParametersToJSON = AnyMagicCartCreationParametersToJSON;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { MagicProposal } from './MagicProposal';
13
- /**
14
- * The cart proposal send to the client
15
- * @export
16
- * @interface MagicCart
17
- */
18
- export interface MagicCart {
19
- /**
20
- *
21
- * @type {Array<MagicProposal>}
22
- * @memberof MagicCart
23
- */
24
- magicProposal?: Array<MagicProposal>;
25
- }
26
- export declare function MagicCartFromJSON(json: any): MagicCart;
27
- export declare function MagicCartFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCart;
28
- export declare function MagicCartToJSON(value?: MagicCart | null): any;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.MagicCartToJSON = exports.MagicCartFromJSONTyped = exports.MagicCartFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
- var MagicProposal_1 = require("./MagicProposal");
19
- function MagicCartFromJSON(json) {
20
- return MagicCartFromJSONTyped(json, false);
21
- }
22
- exports.MagicCartFromJSON = MagicCartFromJSON;
23
- function MagicCartFromJSONTyped(json, ignoreDiscriminator) {
24
- if ((json === undefined) || (json === null)) {
25
- return json;
26
- }
27
- return {
28
- 'magicProposal': !(0, runtime_1.exists)(json, 'magicProposal') ? undefined : (json['magicProposal'].map(MagicProposal_1.MagicProposalFromJSON)),
29
- };
30
- }
31
- exports.MagicCartFromJSONTyped = MagicCartFromJSONTyped;
32
- function MagicCartToJSON(value) {
33
- if (value === undefined) {
34
- return undefined;
35
- }
36
- if (value === null) {
37
- return null;
38
- }
39
- return {
40
- 'magicProposal': value.magicProposal === undefined ? undefined : (value.magicProposal.map(MagicProposal_1.MagicProposalToJSON)),
41
- };
42
- }
43
- exports.MagicCartToJSON = MagicCartToJSON;
@@ -1,29 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { MagicProductBus } from './MagicProductBus';
13
- import { MagicProposal } from './MagicProposal';
14
- /**
15
- *
16
- * @export
17
- * @interface MagicCartWithInitialCreationParameters
18
- */
19
- export interface MagicCartWithInitialCreationParameters extends MagicProductBus {
20
- /**
21
- * Shopping cart created by the client
22
- * @type {Array<MagicProposal>}
23
- * @memberof MagicCartWithInitialCreationParameters
24
- */
25
- cart: Array<MagicProposal>;
26
- }
27
- export declare function MagicCartWithInitialCreationParametersFromJSON(json: any): MagicCartWithInitialCreationParameters;
28
- export declare function MagicCartWithInitialCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MagicCartWithInitialCreationParameters;
29
- export declare function MagicCartWithInitialCreationParametersToJSON(value?: MagicCartWithInitialCreationParameters | null): any;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- 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;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { 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;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.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;
@@ -1,29 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { 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;
@@ -1,50 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- 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;
@@ -1,28 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import { 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;
@@ -1,42 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.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;
@@ -1,39 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
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;
@@ -1,33 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
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;
@@ -1,39 +0,0 @@
1
- /**
2
- * lcdp-magic-cart
3
- * This is the REST API of Magic cart
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- * Contact: contact@lecomptoirdespharmacies.fr
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
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;