@lcdp/api-react-rest-client 0.0.2-develop.8 → 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 (90) 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/invoice/src/models/InvoiceType.d.ts +0 -1
  6. package/invoice/src/models/InvoiceType.js +0 -1
  7. package/laboratory-store/src/models/ImageVersions.d.ts +5 -5
  8. package/magic-cart/src/apis/ManageMagicCartApi.d.ts +29 -0
  9. package/magic-cart/src/apis/{ManageExpressOrderApi.js → ManageMagicCartApi.js} +17 -16
  10. package/magic-cart/src/apis/index.d.ts +1 -1
  11. package/magic-cart/src/apis/index.js +1 -1
  12. package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +25 -0
  13. package/magic-cart/src/models/AnyMagicCartCreationParameters.js +64 -0
  14. package/magic-cart/src/models/MagicCart.d.ts +28 -0
  15. package/magic-cart/src/models/MagicCart.js +43 -0
  16. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +29 -0
  17. package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +50 -0
  18. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +28 -0
  19. package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +42 -0
  20. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +29 -0
  21. package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +50 -0
  22. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +28 -0
  23. package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +42 -0
  24. package/magic-cart/src/models/MagicNeed.d.ts +39 -0
  25. package/magic-cart/src/models/{ExpressOrderNeed.js → MagicNeed.js} +10 -8
  26. package/magic-cart/src/models/MagicProductBus.d.ts +33 -0
  27. package/magic-cart/src/models/{HttpLink.js → MagicProductBus.js} +12 -10
  28. package/magic-cart/src/models/MagicProposal.d.ts +39 -0
  29. package/magic-cart/src/models/{DistributionRange.js → MagicProposal.js} +12 -12
  30. package/magic-cart/src/models/index.d.ts +9 -24
  31. package/magic-cart/src/models/index.js +9 -24
  32. package/mangopay-hook/src/apis/MangopayHookApi.d.ts +13 -0
  33. package/mangopay-hook/src/apis/MangopayHookApi.js +63 -1
  34. package/package.json +1 -1
  35. package/product/src/apis/SearchProductApi.d.ts +0 -1
  36. package/product/src/apis/SearchProductApi.js +0 -3
  37. package/product/src/models/ImageVersions.d.ts +5 -5
  38. package/pub/src/models/ImageVersions.d.ts +5 -5
  39. package/pub/src/models/PubLocationEnum.d.ts +1 -3
  40. package/pub/src/models/PubLocationEnum.js +0 -2
  41. package/sale-offer/src/models/ImageVersions.d.ts +5 -5
  42. package/shopping-cart/src/models/CartSubCartLine.d.ts +6 -0
  43. package/shopping-cart/src/models/CartSubCartLine.js +2 -0
  44. package/user/src/models/UserDelegatedServices.d.ts +1 -1
  45. package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +0 -31
  46. package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +0 -28
  47. package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +0 -69
  48. package/magic-cart/src/models/Barcodes.d.ts +0 -45
  49. package/magic-cart/src/models/Barcodes.js +0 -48
  50. package/magic-cart/src/models/DistributionMode.d.ts +0 -27
  51. package/magic-cart/src/models/DistributionMode.js +0 -41
  52. package/magic-cart/src/models/DistributionRange.d.ts +0 -39
  53. package/magic-cart/src/models/ExpressOrder.d.ts +0 -28
  54. package/magic-cart/src/models/ExpressOrder.js +0 -43
  55. package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +0 -34
  56. package/magic-cart/src/models/ExpressOrderCreationParameters.js +0 -45
  57. package/magic-cart/src/models/ExpressOrderNeed.d.ts +0 -33
  58. package/magic-cart/src/models/HttpLink.d.ts +0 -27
  59. package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +0 -34
  60. package/magic-cart/src/models/IdentifiedDistributionRange.js +0 -49
  61. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +0 -33
  62. package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +0 -43
  63. package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +0 -29
  64. package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +0 -50
  65. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +0 -28
  66. package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +0 -42
  67. package/magic-cart/src/models/ProductLink.d.ts +0 -41
  68. package/magic-cart/src/models/ProductLink.js +0 -50
  69. package/magic-cart/src/models/ProductLinkAllOf.d.ts +0 -40
  70. package/magic-cart/src/models/ProductLinkAllOf.js +0 -46
  71. package/magic-cart/src/models/QuotationDistributionMode.d.ts +0 -22
  72. package/magic-cart/src/models/QuotationDistributionMode.js +0 -28
  73. package/magic-cart/src/models/SaleOfferLink.d.ts +0 -54
  74. package/magic-cart/src/models/SaleOfferLink.js +0 -52
  75. package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +0 -53
  76. package/magic-cart/src/models/SaleOfferLinkAllOf.js +0 -52
  77. package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -47
  78. package/magic-cart/src/models/SaleOfferProposal.js +0 -49
  79. package/magic-cart/src/models/SellerProposal.d.ts +0 -41
  80. package/magic-cart/src/models/SellerProposal.js +0 -47
  81. package/magic-cart/src/models/Stock.d.ts +0 -39
  82. package/magic-cart/src/models/Stock.js +0 -46
  83. package/magic-cart/src/models/UnitaryDistributionMode.d.ts +0 -34
  84. package/magic-cart/src/models/UnitaryDistributionMode.js +0 -49
  85. package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +0 -33
  86. package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +0 -43
  87. package/magic-cart/src/models/UserLink.d.ts +0 -34
  88. package/magic-cart/src/models/UserLink.js +0 -49
  89. package/magic-cart/src/models/UserLinkAllOf.d.ts +0 -33
  90. package/magic-cart/src/models/UserLinkAllOf.js +0 -43
@@ -1,46 +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.ProductLinkAllOfToJSON = exports.ProductLinkAllOfFromJSONTyped = exports.ProductLinkAllOfFromJSON = void 0;
17
- var Barcodes_1 = require("./Barcodes");
18
- function ProductLinkAllOfFromJSON(json) {
19
- return ProductLinkAllOfFromJSONTyped(json, false);
20
- }
21
- exports.ProductLinkAllOfFromJSON = ProductLinkAllOfFromJSON;
22
- function ProductLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- return {
27
- 'id': json['id'],
28
- 'name': json['name'],
29
- 'barcodes': (0, Barcodes_1.BarcodesFromJSON)(json['barcodes']),
30
- };
31
- }
32
- exports.ProductLinkAllOfFromJSONTyped = ProductLinkAllOfFromJSONTyped;
33
- function ProductLinkAllOfToJSON(value) {
34
- if (value === undefined) {
35
- return undefined;
36
- }
37
- if (value === null) {
38
- return null;
39
- }
40
- return {
41
- 'id': value.id,
42
- 'name': value.name,
43
- 'barcodes': (0, Barcodes_1.BarcodesToJSON)(value.barcodes),
44
- };
45
- }
46
- exports.ProductLinkAllOfToJSON = ProductLinkAllOfToJSON;
@@ -1,22 +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 { DistributionMode } from './DistributionMode';
13
- /**
14
- *
15
- * @export
16
- * @interface QuotationDistributionMode
17
- */
18
- export interface QuotationDistributionMode extends DistributionMode {
19
- }
20
- export declare function QuotationDistributionModeFromJSON(json: any): QuotationDistributionMode;
21
- export declare function QuotationDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuotationDistributionMode;
22
- export declare function QuotationDistributionModeToJSON(value?: QuotationDistributionMode | null): any;
@@ -1,28 +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.QuotationDistributionModeToJSON = exports.QuotationDistributionModeFromJSONTyped = exports.QuotationDistributionModeFromJSON = void 0;
17
- function QuotationDistributionModeFromJSON(json) {
18
- return QuotationDistributionModeFromJSONTyped(json, false);
19
- }
20
- exports.QuotationDistributionModeFromJSON = QuotationDistributionModeFromJSON;
21
- function QuotationDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
22
- return json;
23
- }
24
- exports.QuotationDistributionModeFromJSONTyped = QuotationDistributionModeFromJSONTyped;
25
- function QuotationDistributionModeToJSON(value) {
26
- return value;
27
- }
28
- exports.QuotationDistributionModeToJSON = QuotationDistributionModeToJSON;
@@ -1,54 +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 { AnyIdentifiedDistributionMode } from './AnyIdentifiedDistributionMode';
13
- import { HttpLink } from './HttpLink';
14
- import { Stock } from './Stock';
15
- /**
16
- *
17
- * @export
18
- * @interface SaleOfferLink
19
- */
20
- export interface SaleOfferLink extends HttpLink {
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof SaleOfferLink
25
- */
26
- reference: string;
27
- /**
28
- *
29
- * @type {AnyIdentifiedDistributionMode}
30
- * @memberof SaleOfferLink
31
- */
32
- distributionMode: AnyIdentifiedDistributionMode;
33
- /**
34
- *
35
- * @type {Stock}
36
- * @memberof SaleOfferLink
37
- */
38
- stock: Stock;
39
- /**
40
- *
41
- * @type {number}
42
- * @memberof SaleOfferLink
43
- */
44
- minimalQuantity: number;
45
- /**
46
- * Best Rebate for this sale offer
47
- * @type {number}
48
- * @memberof SaleOfferLink
49
- */
50
- bestRebate?: number;
51
- }
52
- export declare function SaleOfferLinkFromJSON(json: any): SaleOfferLink;
53
- export declare function SaleOfferLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferLink;
54
- export declare function SaleOfferLinkToJSON(value?: SaleOfferLink | null): any;
@@ -1,52 +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.SaleOfferLinkToJSON = exports.SaleOfferLinkFromJSONTyped = exports.SaleOfferLinkFromJSON = void 0;
28
- var runtime_1 = require("../runtime");
29
- var AnyIdentifiedDistributionMode_1 = require("./AnyIdentifiedDistributionMode");
30
- var HttpLink_1 = require("./HttpLink");
31
- var Stock_1 = require("./Stock");
32
- function SaleOfferLinkFromJSON(json) {
33
- return SaleOfferLinkFromJSONTyped(json, false);
34
- }
35
- exports.SaleOfferLinkFromJSON = SaleOfferLinkFromJSON;
36
- function SaleOfferLinkFromJSONTyped(json, ignoreDiscriminator) {
37
- if ((json === undefined) || (json === null)) {
38
- return json;
39
- }
40
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'reference': json['reference'], 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']), 'stock': (0, Stock_1.StockFromJSON)(json['stock']), 'minimalQuantity': json['minimalQuantity'], 'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'] });
41
- }
42
- exports.SaleOfferLinkFromJSONTyped = SaleOfferLinkFromJSONTyped;
43
- function SaleOfferLinkToJSON(value) {
44
- if (value === undefined) {
45
- return undefined;
46
- }
47
- if (value === null) {
48
- return null;
49
- }
50
- return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'reference': value.reference, 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode), 'stock': (0, Stock_1.StockToJSON)(value.stock), 'minimalQuantity': value.minimalQuantity, 'bestRebate': value.bestRebate });
51
- }
52
- exports.SaleOfferLinkToJSON = SaleOfferLinkToJSON;
@@ -1,53 +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 { AnyIdentifiedDistributionMode } from './AnyIdentifiedDistributionMode';
13
- import { Stock } from './Stock';
14
- /**
15
- *
16
- * @export
17
- * @interface SaleOfferLinkAllOf
18
- */
19
- export interface SaleOfferLinkAllOf {
20
- /**
21
- *
22
- * @type {string}
23
- * @memberof SaleOfferLinkAllOf
24
- */
25
- reference: string;
26
- /**
27
- *
28
- * @type {AnyIdentifiedDistributionMode}
29
- * @memberof SaleOfferLinkAllOf
30
- */
31
- distributionMode: AnyIdentifiedDistributionMode;
32
- /**
33
- *
34
- * @type {Stock}
35
- * @memberof SaleOfferLinkAllOf
36
- */
37
- stock: Stock;
38
- /**
39
- *
40
- * @type {number}
41
- * @memberof SaleOfferLinkAllOf
42
- */
43
- minimalQuantity: number;
44
- /**
45
- * Best Rebate for this sale offer
46
- * @type {number}
47
- * @memberof SaleOfferLinkAllOf
48
- */
49
- bestRebate?: number;
50
- }
51
- export declare function SaleOfferLinkAllOfFromJSON(json: any): SaleOfferLinkAllOf;
52
- export declare function SaleOfferLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferLinkAllOf;
53
- export declare function SaleOfferLinkAllOfToJSON(value?: SaleOfferLinkAllOf | null): any;
@@ -1,52 +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.SaleOfferLinkAllOfToJSON = exports.SaleOfferLinkAllOfFromJSONTyped = exports.SaleOfferLinkAllOfFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
- var AnyIdentifiedDistributionMode_1 = require("./AnyIdentifiedDistributionMode");
19
- var Stock_1 = require("./Stock");
20
- function SaleOfferLinkAllOfFromJSON(json) {
21
- return SaleOfferLinkAllOfFromJSONTyped(json, false);
22
- }
23
- exports.SaleOfferLinkAllOfFromJSON = SaleOfferLinkAllOfFromJSON;
24
- function SaleOfferLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
25
- if ((json === undefined) || (json === null)) {
26
- return json;
27
- }
28
- return {
29
- 'reference': json['reference'],
30
- 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeFromJSON)(json['distributionMode']),
31
- 'stock': (0, Stock_1.StockFromJSON)(json['stock']),
32
- 'minimalQuantity': json['minimalQuantity'],
33
- 'bestRebate': !(0, runtime_1.exists)(json, 'bestRebate') ? undefined : json['bestRebate'],
34
- };
35
- }
36
- exports.SaleOfferLinkAllOfFromJSONTyped = SaleOfferLinkAllOfFromJSONTyped;
37
- function SaleOfferLinkAllOfToJSON(value) {
38
- if (value === undefined) {
39
- return undefined;
40
- }
41
- if (value === null) {
42
- return null;
43
- }
44
- return {
45
- 'reference': value.reference,
46
- 'distributionMode': (0, AnyIdentifiedDistributionMode_1.AnyIdentifiedDistributionModeToJSON)(value.distributionMode),
47
- 'stock': (0, Stock_1.StockToJSON)(value.stock),
48
- 'minimalQuantity': value.minimalQuantity,
49
- 'bestRebate': value.bestRebate,
50
- };
51
- }
52
- exports.SaleOfferLinkAllOfToJSON = SaleOfferLinkAllOfToJSON;
@@ -1,47 +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 { ProductLink } from './ProductLink';
13
- import { SaleOfferLink } from './SaleOfferLink';
14
- /**
15
- *
16
- * @export
17
- * @interface SaleOfferProposal
18
- */
19
- export interface SaleOfferProposal {
20
- /**
21
- *
22
- * @type {ProductLink}
23
- * @memberof SaleOfferProposal
24
- */
25
- product: ProductLink;
26
- /**
27
- *
28
- * @type {SaleOfferLink}
29
- * @memberof SaleOfferProposal
30
- */
31
- saleOffer: SaleOfferLink;
32
- /**
33
- * Set when sale offer\'s distribution mode is RANGE
34
- * @type {number}
35
- * @memberof SaleOfferProposal
36
- */
37
- distributedRangeId: number | null;
38
- /**
39
- *
40
- * @type {number}
41
- * @memberof SaleOfferProposal
42
- */
43
- quantity: number;
44
- }
45
- export declare function SaleOfferProposalFromJSON(json: any): SaleOfferProposal;
46
- export declare function SaleOfferProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferProposal;
47
- export declare function SaleOfferProposalToJSON(value?: SaleOfferProposal | null): any;
@@ -1,49 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SaleOfferProposalToJSON = exports.SaleOfferProposalFromJSONTyped = exports.SaleOfferProposalFromJSON = void 0;
17
- var ProductLink_1 = require("./ProductLink");
18
- var SaleOfferLink_1 = require("./SaleOfferLink");
19
- function SaleOfferProposalFromJSON(json) {
20
- return SaleOfferProposalFromJSONTyped(json, false);
21
- }
22
- exports.SaleOfferProposalFromJSON = SaleOfferProposalFromJSON;
23
- function SaleOfferProposalFromJSONTyped(json, ignoreDiscriminator) {
24
- if ((json === undefined) || (json === null)) {
25
- return json;
26
- }
27
- return {
28
- 'product': (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
29
- 'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
30
- 'distributedRangeId': json['distributedRangeId'],
31
- 'quantity': json['quantity'],
32
- };
33
- }
34
- exports.SaleOfferProposalFromJSONTyped = SaleOfferProposalFromJSONTyped;
35
- function SaleOfferProposalToJSON(value) {
36
- if (value === undefined) {
37
- return undefined;
38
- }
39
- if (value === null) {
40
- return null;
41
- }
42
- return {
43
- 'product': (0, ProductLink_1.ProductLinkToJSON)(value.product),
44
- 'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value.saleOffer),
45
- 'distributedRangeId': value.distributedRangeId,
46
- 'quantity': value.quantity,
47
- };
48
- }
49
- exports.SaleOfferProposalToJSON = SaleOfferProposalToJSON;
@@ -1,41 +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 { SaleOfferProposal } from './SaleOfferProposal';
13
- import { UserLink } from './UserLink';
14
- /**
15
- * A list of proposed sale offers to buy from seller
16
- * @export
17
- * @interface SellerProposal
18
- */
19
- export interface SellerProposal {
20
- /**
21
- *
22
- * @type {Array<SaleOfferProposal>}
23
- * @memberof SellerProposal
24
- */
25
- saleOfferProposals: Array<SaleOfferProposal>;
26
- /**
27
- *
28
- * @type {UserLink}
29
- * @memberof SellerProposal
30
- */
31
- seller: UserLink;
32
- /**
33
- *
34
- * @type {number}
35
- * @memberof SellerProposal
36
- */
37
- freeCarriageThreshold: number;
38
- }
39
- export declare function SellerProposalFromJSON(json: any): SellerProposal;
40
- export declare function SellerProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerProposal;
41
- export declare function SellerProposalToJSON(value?: SellerProposal | null): any;
@@ -1,47 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * lcdp-magic-cart
6
- * This is the REST API of Magic cart
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- * Contact: contact@lecomptoirdespharmacies.fr
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.SellerProposalToJSON = exports.SellerProposalFromJSONTyped = exports.SellerProposalFromJSON = void 0;
17
- var SaleOfferProposal_1 = require("./SaleOfferProposal");
18
- var UserLink_1 = require("./UserLink");
19
- function SellerProposalFromJSON(json) {
20
- return SellerProposalFromJSONTyped(json, false);
21
- }
22
- exports.SellerProposalFromJSON = SellerProposalFromJSON;
23
- function SellerProposalFromJSONTyped(json, ignoreDiscriminator) {
24
- if ((json === undefined) || (json === null)) {
25
- return json;
26
- }
27
- return {
28
- 'saleOfferProposals': (json['saleOfferProposals'].map(SaleOfferProposal_1.SaleOfferProposalFromJSON)),
29
- 'seller': (0, UserLink_1.UserLinkFromJSON)(json['seller']),
30
- 'freeCarriageThreshold': json['freeCarriageThreshold'],
31
- };
32
- }
33
- exports.SellerProposalFromJSONTyped = SellerProposalFromJSONTyped;
34
- function SellerProposalToJSON(value) {
35
- if (value === undefined) {
36
- return undefined;
37
- }
38
- if (value === null) {
39
- return null;
40
- }
41
- return {
42
- 'saleOfferProposals': (value.saleOfferProposals.map(SaleOfferProposal_1.SaleOfferProposalToJSON)),
43
- 'seller': (0, UserLink_1.UserLinkToJSON)(value.seller),
44
- 'freeCarriageThreshold': value.freeCarriageThreshold,
45
- };
46
- }
47
- exports.SellerProposalToJSON = SellerProposalToJSON;
@@ -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
- *
14
- * @export
15
- * @interface Stock
16
- */
17
- export interface Stock {
18
- /**
19
- * Number of element in the quantity
20
- * @type {number}
21
- * @memberof Stock
22
- */
23
- remainingQuantity?: number | null;
24
- /**
25
- * Lapsing date of items in this stock (RFC 3339, section 5.6)
26
- * @type {Date}
27
- * @memberof Stock
28
- */
29
- lapsingDate?: Date | null;
30
- /**
31
- * Name of this stock batch
32
- * @type {string}
33
- * @memberof Stock
34
- */
35
- batch?: string | null;
36
- }
37
- export declare function StockFromJSON(json: any): Stock;
38
- export declare function StockFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stock;
39
- export declare function StockToJSON(value?: Stock | null): any;
@@ -1,46 +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.StockToJSON = exports.StockFromJSONTyped = exports.StockFromJSON = void 0;
17
- var runtime_1 = require("../runtime");
18
- function StockFromJSON(json) {
19
- return StockFromJSONTyped(json, false);
20
- }
21
- exports.StockFromJSON = StockFromJSON;
22
- function StockFromJSONTyped(json, ignoreDiscriminator) {
23
- if ((json === undefined) || (json === null)) {
24
- return json;
25
- }
26
- return {
27
- 'remainingQuantity': !(0, runtime_1.exists)(json, 'remainingQuantity') ? json['remainingQuantity'] : json['remainingQuantity'],
28
- 'lapsingDate': !(0, runtime_1.exists)(json, 'lapsingDate') ? json['lapsingDate'] : (new Date(json['lapsingDate'])),
29
- 'batch': !(0, runtime_1.exists)(json, 'batch') ? json['batch'] : json['batch'],
30
- };
31
- }
32
- exports.StockFromJSONTyped = StockFromJSONTyped;
33
- function StockToJSON(value) {
34
- if (value === undefined) {
35
- return undefined;
36
- }
37
- if (value === null) {
38
- return null;
39
- }
40
- return {
41
- 'remainingQuantity': value.remainingQuantity,
42
- 'lapsingDate': value.lapsingDate === undefined ? undefined : (value.lapsingDate === null ? null : (0, runtime_1.toDateISOString)(value.lapsingDate)),
43
- 'batch': value.batch,
44
- };
45
- }
46
- exports.StockToJSON = StockToJSON;
@@ -1,34 +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 { DistributionMode } from './DistributionMode';
13
- /**
14
- *
15
- * @export
16
- * @interface UnitaryDistributionMode
17
- */
18
- export interface UnitaryDistributionMode extends DistributionMode {
19
- /**
20
- * The unit price as a decimal.
21
- * @type {number}
22
- * @memberof UnitaryDistributionMode
23
- */
24
- unitPrice: number;
25
- /**
26
- * Minimal quantity.
27
- * @type {number}
28
- * @memberof UnitaryDistributionMode
29
- */
30
- minimalQuantity: number;
31
- }
32
- export declare function UnitaryDistributionModeFromJSON(json: any): UnitaryDistributionMode;
33
- export declare function UnitaryDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionMode;
34
- export declare function UnitaryDistributionModeToJSON(value?: UnitaryDistributionMode | null): any;
@@ -1,49 +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.UnitaryDistributionModeToJSON = exports.UnitaryDistributionModeFromJSONTyped = exports.UnitaryDistributionModeFromJSON = void 0;
28
- var DistributionMode_1 = require("./DistributionMode");
29
- function UnitaryDistributionModeFromJSON(json) {
30
- return UnitaryDistributionModeFromJSONTyped(json, false);
31
- }
32
- exports.UnitaryDistributionModeFromJSON = UnitaryDistributionModeFromJSON;
33
- function UnitaryDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
34
- if ((json === undefined) || (json === null)) {
35
- return json;
36
- }
37
- return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'unitPrice': json['unitPrice'], 'minimalQuantity': json['minimalQuantity'] });
38
- }
39
- exports.UnitaryDistributionModeFromJSONTyped = UnitaryDistributionModeFromJSONTyped;
40
- function UnitaryDistributionModeToJSON(value) {
41
- if (value === undefined) {
42
- return undefined;
43
- }
44
- if (value === null) {
45
- return null;
46
- }
47
- return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'unitPrice': value.unitPrice, 'minimalQuantity': value.minimalQuantity });
48
- }
49
- exports.UnitaryDistributionModeToJSON = UnitaryDistributionModeToJSON;