@lcdp/api-react-rest-client 0.0.2-develop.0 → 0.0.2-develop.1
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.
- package/configuration/src/apis/ManageVariableApi.d.ts +1 -53
- package/configuration/src/apis/ManageVariableApi.js +1 -54
- package/configuration/src/apis/SearchVariableApi.d.ts +1 -53
- package/configuration/src/apis/SearchVariableApi.js +1 -54
- package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +31 -0
- package/magic-cart/src/apis/{ManageMagicCartApi.js → ManageExpressOrderApi.js} +16 -17
- package/magic-cart/src/apis/index.d.ts +1 -1
- package/magic-cart/src/apis/index.js +1 -1
- package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +28 -0
- package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +69 -0
- package/magic-cart/src/models/Barcodes.d.ts +45 -0
- package/magic-cart/src/models/Barcodes.js +48 -0
- package/magic-cart/src/models/DistributionMode.d.ts +27 -0
- package/magic-cart/src/models/{MagicProductBus.js → DistributionMode.js} +10 -12
- package/magic-cart/src/models/DistributionRange.d.ts +39 -0
- package/magic-cart/src/models/{MagicProposal.js → DistributionRange.js} +12 -12
- package/magic-cart/src/models/ExpressOrder.d.ts +28 -0
- package/magic-cart/src/models/ExpressOrder.js +43 -0
- package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +34 -0
- package/magic-cart/src/models/ExpressOrderCreationParameters.js +45 -0
- package/magic-cart/src/models/ExpressOrderNeed.d.ts +33 -0
- package/magic-cart/src/models/{MagicNeed.js → ExpressOrderNeed.js} +8 -10
- package/magic-cart/src/models/HttpLink.d.ts +27 -0
- package/magic-cart/src/models/HttpLink.js +41 -0
- package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +34 -0
- package/magic-cart/src/models/IdentifiedDistributionRange.js +49 -0
- package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +33 -0
- package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +43 -0
- package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +29 -0
- package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +50 -0
- package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +28 -0
- package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +42 -0
- package/magic-cart/src/models/ProductLink.d.ts +41 -0
- package/magic-cart/src/models/ProductLink.js +50 -0
- package/magic-cart/src/models/ProductLinkAllOf.d.ts +40 -0
- package/magic-cart/src/models/ProductLinkAllOf.js +46 -0
- package/magic-cart/src/models/QuotationDistributionMode.d.ts +22 -0
- package/magic-cart/src/models/QuotationDistributionMode.js +28 -0
- package/magic-cart/src/models/SaleOfferLink.d.ts +54 -0
- package/magic-cart/src/models/SaleOfferLink.js +52 -0
- package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +53 -0
- package/magic-cart/src/models/SaleOfferLinkAllOf.js +52 -0
- package/magic-cart/src/models/SaleOfferProposal.d.ts +47 -0
- package/magic-cart/src/models/SaleOfferProposal.js +49 -0
- package/magic-cart/src/models/SellerProposal.d.ts +41 -0
- package/magic-cart/src/models/SellerProposal.js +47 -0
- package/magic-cart/src/models/Stock.d.ts +39 -0
- package/magic-cart/src/models/Stock.js +46 -0
- package/magic-cart/src/models/UnitaryDistributionMode.d.ts +34 -0
- package/magic-cart/src/models/UnitaryDistributionMode.js +49 -0
- package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +33 -0
- package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +43 -0
- package/magic-cart/src/models/UserLink.d.ts +34 -0
- package/magic-cart/src/models/UserLink.js +49 -0
- package/magic-cart/src/models/UserLinkAllOf.d.ts +33 -0
- package/magic-cart/src/models/UserLinkAllOf.js +43 -0
- package/magic-cart/src/models/index.d.ts +24 -9
- package/magic-cart/src/models/index.js +24 -9
- package/mangopay-hook/src/apis/MangopayHookApi.d.ts +0 -13
- package/mangopay-hook/src/apis/MangopayHookApi.js +1 -63
- package/package.json +1 -1
- package/product/src/apis/SearchProductApi.d.ts +1 -0
- package/product/src/apis/SearchProductApi.js +3 -0
- package/shopping-cart/src/models/CartSubCartLine.d.ts +0 -6
- package/shopping-cart/src/models/CartSubCartLine.js +0 -2
- package/user/src/models/UserDelegatedServices.d.ts +1 -1
- package/magic-cart/src/apis/ManageMagicCartApi.d.ts +0 -29
- package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +0 -25
- package/magic-cart/src/models/AnyMagicCartCreationParameters.js +0 -64
- package/magic-cart/src/models/MagicCart.d.ts +0 -28
- package/magic-cart/src/models/MagicCart.js +0 -43
- package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +0 -29
- package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +0 -50
- package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +0 -28
- package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +0 -42
- package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +0 -29
- package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +0 -50
- package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +0 -28
- package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +0 -42
- package/magic-cart/src/models/MagicNeed.d.ts +0 -39
- package/magic-cart/src/models/MagicProductBus.d.ts +0 -33
- package/magic-cart/src/models/MagicProposal.d.ts +0 -39
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface DistributionRange
|
|
16
|
+
*/
|
|
17
|
+
export interface DistributionRange {
|
|
18
|
+
/**
|
|
19
|
+
* Number of item per batch
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof DistributionRange
|
|
22
|
+
*/
|
|
23
|
+
quantity: number;
|
|
24
|
+
/**
|
|
25
|
+
* The unit price as a decimal.
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof DistributionRange
|
|
28
|
+
*/
|
|
29
|
+
unitPrice: number;
|
|
30
|
+
/**
|
|
31
|
+
* Number of free units per batch
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof DistributionRange
|
|
34
|
+
*/
|
|
35
|
+
freeUnits: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function DistributionRangeFromJSON(json: any): DistributionRange;
|
|
38
|
+
export declare function DistributionRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DistributionRange;
|
|
39
|
+
export declare function DistributionRangeToJSON(value?: DistributionRange | 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.
|
|
17
|
-
function
|
|
18
|
-
return
|
|
16
|
+
exports.DistributionRangeToJSON = exports.DistributionRangeFromJSONTyped = exports.DistributionRangeFromJSON = void 0;
|
|
17
|
+
function DistributionRangeFromJSON(json) {
|
|
18
|
+
return DistributionRangeFromJSONTyped(json, false);
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
21
|
-
function
|
|
20
|
+
exports.DistributionRangeFromJSON = DistributionRangeFromJSON;
|
|
21
|
+
function DistributionRangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
22
|
if ((json === undefined) || (json === null)) {
|
|
23
23
|
return json;
|
|
24
24
|
}
|
|
25
25
|
return {
|
|
26
|
-
'productId': json['productId'],
|
|
27
26
|
'quantity': json['quantity'],
|
|
28
|
-
'
|
|
27
|
+
'unitPrice': json['unitPrice'],
|
|
28
|
+
'freeUnits': json['freeUnits'],
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
31
|
+
exports.DistributionRangeFromJSONTyped = DistributionRangeFromJSONTyped;
|
|
32
|
+
function DistributionRangeToJSON(value) {
|
|
33
33
|
if (value === undefined) {
|
|
34
34
|
return undefined;
|
|
35
35
|
}
|
|
@@ -37,9 +37,9 @@ function MagicProposalToJSON(value) {
|
|
|
37
37
|
return null;
|
|
38
38
|
}
|
|
39
39
|
return {
|
|
40
|
-
'productId': value.productId,
|
|
41
40
|
'quantity': value.quantity,
|
|
42
|
-
'
|
|
41
|
+
'unitPrice': value.unitPrice,
|
|
42
|
+
'freeUnits': value.freeUnits,
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
exports.
|
|
45
|
+
exports.DistributionRangeToJSON = DistributionRangeToJSON;
|
|
@@ -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 { SellerProposal } from './SellerProposal';
|
|
13
|
+
/**
|
|
14
|
+
* Express Order as a list of sale offer proposal grouped by sellers
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ExpressOrder
|
|
17
|
+
*/
|
|
18
|
+
export interface ExpressOrder {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {Array<SellerProposal>}
|
|
22
|
+
* @memberof ExpressOrder
|
|
23
|
+
*/
|
|
24
|
+
sellerProposals?: Array<SellerProposal>;
|
|
25
|
+
}
|
|
26
|
+
export declare function ExpressOrderFromJSON(json: any): ExpressOrder;
|
|
27
|
+
export declare function ExpressOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpressOrder;
|
|
28
|
+
export declare function ExpressOrderToJSON(value?: ExpressOrder | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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.ExpressOrderToJSON = exports.ExpressOrderFromJSONTyped = exports.ExpressOrderFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var SellerProposal_1 = require("./SellerProposal");
|
|
19
|
+
function ExpressOrderFromJSON(json) {
|
|
20
|
+
return ExpressOrderFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.ExpressOrderFromJSON = ExpressOrderFromJSON;
|
|
23
|
+
function ExpressOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'sellerProposals': !(0, runtime_1.exists)(json, 'sellerProposals') ? undefined : (json['sellerProposals'].map(SellerProposal_1.SellerProposalFromJSON)),
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
exports.ExpressOrderFromJSONTyped = ExpressOrderFromJSONTyped;
|
|
32
|
+
function ExpressOrderToJSON(value) {
|
|
33
|
+
if (value === undefined) {
|
|
34
|
+
return undefined;
|
|
35
|
+
}
|
|
36
|
+
if (value === null) {
|
|
37
|
+
return null;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'sellerProposals': value.sellerProposals === undefined ? undefined : (value.sellerProposals.map(SellerProposal_1.SellerProposalToJSON)),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.ExpressOrderToJSON = ExpressOrderToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { ExpressOrderNeed } from './ExpressOrderNeed';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ExpressOrderCreationParameters
|
|
17
|
+
*/
|
|
18
|
+
export interface ExpressOrderCreationParameters {
|
|
19
|
+
/**
|
|
20
|
+
* User Id to do the request for
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof ExpressOrderCreationParameters
|
|
23
|
+
*/
|
|
24
|
+
buyerId: number;
|
|
25
|
+
/**
|
|
26
|
+
* Products needed by the client
|
|
27
|
+
* @type {Array<ExpressOrderNeed>}
|
|
28
|
+
* @memberof ExpressOrderCreationParameters
|
|
29
|
+
*/
|
|
30
|
+
needs?: Array<ExpressOrderNeed>;
|
|
31
|
+
}
|
|
32
|
+
export declare function ExpressOrderCreationParametersFromJSON(json: any): ExpressOrderCreationParameters;
|
|
33
|
+
export declare function ExpressOrderCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpressOrderCreationParameters;
|
|
34
|
+
export declare function ExpressOrderCreationParametersToJSON(value?: ExpressOrderCreationParameters | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.ExpressOrderCreationParametersToJSON = exports.ExpressOrderCreationParametersFromJSONTyped = exports.ExpressOrderCreationParametersFromJSON = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var ExpressOrderNeed_1 = require("./ExpressOrderNeed");
|
|
19
|
+
function ExpressOrderCreationParametersFromJSON(json) {
|
|
20
|
+
return ExpressOrderCreationParametersFromJSONTyped(json, false);
|
|
21
|
+
}
|
|
22
|
+
exports.ExpressOrderCreationParametersFromJSON = ExpressOrderCreationParametersFromJSON;
|
|
23
|
+
function ExpressOrderCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
24
|
+
if ((json === undefined) || (json === null)) {
|
|
25
|
+
return json;
|
|
26
|
+
}
|
|
27
|
+
return {
|
|
28
|
+
'buyerId': json['buyerId'],
|
|
29
|
+
'needs': !(0, runtime_1.exists)(json, 'needs') ? undefined : (json['needs'].map(ExpressOrderNeed_1.ExpressOrderNeedFromJSON)),
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
exports.ExpressOrderCreationParametersFromJSONTyped = ExpressOrderCreationParametersFromJSONTyped;
|
|
33
|
+
function ExpressOrderCreationParametersToJSON(value) {
|
|
34
|
+
if (value === undefined) {
|
|
35
|
+
return undefined;
|
|
36
|
+
}
|
|
37
|
+
if (value === null) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'buyerId': value.buyerId,
|
|
42
|
+
'needs': value.needs === undefined ? undefined : (value.needs.map(ExpressOrderNeed_1.ExpressOrderNeedToJSON)),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.ExpressOrderCreationParametersToJSON = ExpressOrderCreationParametersToJSON;
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface ExpressOrderNeed
|
|
16
|
+
*/
|
|
17
|
+
export interface ExpressOrderNeed {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof ExpressOrderNeed
|
|
22
|
+
*/
|
|
23
|
+
productId: number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof ExpressOrderNeed
|
|
28
|
+
*/
|
|
29
|
+
quantity: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function ExpressOrderNeedFromJSON(json: any): ExpressOrderNeed;
|
|
32
|
+
export declare function ExpressOrderNeedFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExpressOrderNeed;
|
|
33
|
+
export declare function ExpressOrderNeedToJSON(value?: ExpressOrderNeed | null): any;
|
|
@@ -13,23 +13,22 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
17
|
-
function
|
|
18
|
-
return
|
|
16
|
+
exports.ExpressOrderNeedToJSON = exports.ExpressOrderNeedFromJSONTyped = exports.ExpressOrderNeedFromJSON = void 0;
|
|
17
|
+
function ExpressOrderNeedFromJSON(json) {
|
|
18
|
+
return ExpressOrderNeedFromJSONTyped(json, false);
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
21
|
-
function
|
|
20
|
+
exports.ExpressOrderNeedFromJSON = ExpressOrderNeedFromJSON;
|
|
21
|
+
function ExpressOrderNeedFromJSONTyped(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'],
|
|
29
28
|
};
|
|
30
29
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
30
|
+
exports.ExpressOrderNeedFromJSONTyped = ExpressOrderNeedFromJSONTyped;
|
|
31
|
+
function ExpressOrderNeedToJSON(value) {
|
|
33
32
|
if (value === undefined) {
|
|
34
33
|
return undefined;
|
|
35
34
|
}
|
|
@@ -39,7 +38,6 @@ function MagicNeedToJSON(value) {
|
|
|
39
38
|
return {
|
|
40
39
|
'productId': value.productId,
|
|
41
40
|
'quantity': value.quantity,
|
|
42
|
-
'monthsBeforeLapsing': value.monthsBeforeLapsing,
|
|
43
41
|
};
|
|
44
42
|
}
|
|
45
|
-
exports.
|
|
43
|
+
exports.ExpressOrderNeedToJSON = ExpressOrderNeedToJSON;
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
* A base type of objects representing links to resources.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface HttpLink
|
|
16
|
+
*/
|
|
17
|
+
export interface HttpLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URI that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof HttpLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
}
|
|
25
|
+
export declare function HttpLinkFromJSON(json: any): HttpLink;
|
|
26
|
+
export declare function HttpLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): HttpLink;
|
|
27
|
+
export declare function HttpLinkToJSON(value?: HttpLink | null): any;
|
|
@@ -0,0 +1,41 @@
|
|
|
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.HttpLinkToJSON = exports.HttpLinkFromJSONTyped = exports.HttpLinkFromJSON = void 0;
|
|
17
|
+
function HttpLinkFromJSON(json) {
|
|
18
|
+
return HttpLinkFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.HttpLinkFromJSON = HttpLinkFromJSON;
|
|
21
|
+
function HttpLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'href': json['href'],
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
exports.HttpLinkFromJSONTyped = HttpLinkFromJSONTyped;
|
|
30
|
+
function HttpLinkToJSON(value) {
|
|
31
|
+
if (value === undefined) {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
if (value === null) {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'href': value.href,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.HttpLinkToJSON = HttpLinkToJSON;
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { DistributionRange } from './DistributionRange';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IdentifiedDistributionRange
|
|
17
|
+
*/
|
|
18
|
+
export interface IdentifiedDistributionRange extends DistributionRange {
|
|
19
|
+
/**
|
|
20
|
+
* Range id.
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof IdentifiedDistributionRange
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
* Rebate for this distribution range
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof IdentifiedDistributionRange
|
|
29
|
+
*/
|
|
30
|
+
rebate: number;
|
|
31
|
+
}
|
|
32
|
+
export declare function IdentifiedDistributionRangeFromJSON(json: any): IdentifiedDistributionRange;
|
|
33
|
+
export declare function IdentifiedDistributionRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentifiedDistributionRange;
|
|
34
|
+
export declare function IdentifiedDistributionRangeToJSON(value?: IdentifiedDistributionRange | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-magic-cart
|
|
6
|
+
* This is the REST API of Magic cart
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
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.IdentifiedDistributionRangeToJSON = exports.IdentifiedDistributionRangeFromJSONTyped = exports.IdentifiedDistributionRangeFromJSON = void 0;
|
|
28
|
+
var DistributionRange_1 = require("./DistributionRange");
|
|
29
|
+
function IdentifiedDistributionRangeFromJSON(json) {
|
|
30
|
+
return IdentifiedDistributionRangeFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.IdentifiedDistributionRangeFromJSON = IdentifiedDistributionRangeFromJSON;
|
|
33
|
+
function IdentifiedDistributionRangeFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return __assign(__assign({}, (0, DistributionRange_1.DistributionRangeFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'], 'rebate': json['rebate'] });
|
|
38
|
+
}
|
|
39
|
+
exports.IdentifiedDistributionRangeFromJSONTyped = IdentifiedDistributionRangeFromJSONTyped;
|
|
40
|
+
function IdentifiedDistributionRangeToJSON(value) {
|
|
41
|
+
if (value === undefined) {
|
|
42
|
+
return undefined;
|
|
43
|
+
}
|
|
44
|
+
if (value === null) {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
return __assign(__assign({}, (0, DistributionRange_1.DistributionRangeToJSON)(value)), { 'id': value.id, 'rebate': value.rebate });
|
|
48
|
+
}
|
|
49
|
+
exports.IdentifiedDistributionRangeToJSON = IdentifiedDistributionRangeToJSON;
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface IdentifiedDistributionRangeAllOf
|
|
16
|
+
*/
|
|
17
|
+
export interface IdentifiedDistributionRangeAllOf {
|
|
18
|
+
/**
|
|
19
|
+
* Range id.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof IdentifiedDistributionRangeAllOf
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* Rebate for this distribution range
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof IdentifiedDistributionRangeAllOf
|
|
28
|
+
*/
|
|
29
|
+
rebate: number;
|
|
30
|
+
}
|
|
31
|
+
export declare function IdentifiedDistributionRangeAllOfFromJSON(json: any): IdentifiedDistributionRangeAllOf;
|
|
32
|
+
export declare function IdentifiedDistributionRangeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentifiedDistributionRangeAllOf;
|
|
33
|
+
export declare function IdentifiedDistributionRangeAllOfToJSON(value?: IdentifiedDistributionRangeAllOf | null): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
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.IdentifiedDistributionRangeAllOfToJSON = exports.IdentifiedDistributionRangeAllOfFromJSONTyped = exports.IdentifiedDistributionRangeAllOfFromJSON = void 0;
|
|
17
|
+
function IdentifiedDistributionRangeAllOfFromJSON(json) {
|
|
18
|
+
return IdentifiedDistributionRangeAllOfFromJSONTyped(json, false);
|
|
19
|
+
}
|
|
20
|
+
exports.IdentifiedDistributionRangeAllOfFromJSON = IdentifiedDistributionRangeAllOfFromJSON;
|
|
21
|
+
function IdentifiedDistributionRangeAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
+
if ((json === undefined) || (json === null)) {
|
|
23
|
+
return json;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
'id': json['id'],
|
|
27
|
+
'rebate': json['rebate'],
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
exports.IdentifiedDistributionRangeAllOfFromJSONTyped = IdentifiedDistributionRangeAllOfFromJSONTyped;
|
|
31
|
+
function IdentifiedDistributionRangeAllOfToJSON(value) {
|
|
32
|
+
if (value === undefined) {
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
35
|
+
if (value === null) {
|
|
36
|
+
return null;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'id': value.id,
|
|
40
|
+
'rebate': value.rebate,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
exports.IdentifiedDistributionRangeAllOfToJSON = IdentifiedDistributionRangeAllOfToJSON;
|
|
@@ -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 { DistributionMode } from './DistributionMode';
|
|
13
|
+
import { IdentifiedDistributionRange } from './IdentifiedDistributionRange';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface IdentifiedRangeDistributionMode
|
|
18
|
+
*/
|
|
19
|
+
export interface IdentifiedRangeDistributionMode extends DistributionMode {
|
|
20
|
+
/**
|
|
21
|
+
* Available range to buy product.
|
|
22
|
+
* @type {Array<IdentifiedDistributionRange>}
|
|
23
|
+
* @memberof IdentifiedRangeDistributionMode
|
|
24
|
+
*/
|
|
25
|
+
ranges: Array<IdentifiedDistributionRange>;
|
|
26
|
+
}
|
|
27
|
+
export declare function IdentifiedRangeDistributionModeFromJSON(json: any): IdentifiedRangeDistributionMode;
|
|
28
|
+
export declare function IdentifiedRangeDistributionModeFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentifiedRangeDistributionMode;
|
|
29
|
+
export declare function IdentifiedRangeDistributionModeToJSON(value?: IdentifiedRangeDistributionMode | 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.IdentifiedRangeDistributionModeToJSON = exports.IdentifiedRangeDistributionModeFromJSONTyped = exports.IdentifiedRangeDistributionModeFromJSON = void 0;
|
|
28
|
+
var DistributionMode_1 = require("./DistributionMode");
|
|
29
|
+
var IdentifiedDistributionRange_1 = require("./IdentifiedDistributionRange");
|
|
30
|
+
function IdentifiedRangeDistributionModeFromJSON(json) {
|
|
31
|
+
return IdentifiedRangeDistributionModeFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.IdentifiedRangeDistributionModeFromJSON = IdentifiedRangeDistributionModeFromJSON;
|
|
34
|
+
function IdentifiedRangeDistributionModeFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return __assign(__assign({}, (0, DistributionMode_1.DistributionModeFromJSONTyped)(json, ignoreDiscriminator)), { 'ranges': (json['ranges'].map(IdentifiedDistributionRange_1.IdentifiedDistributionRangeFromJSON)) });
|
|
39
|
+
}
|
|
40
|
+
exports.IdentifiedRangeDistributionModeFromJSONTyped = IdentifiedRangeDistributionModeFromJSONTyped;
|
|
41
|
+
function IdentifiedRangeDistributionModeToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return __assign(__assign({}, (0, DistributionMode_1.DistributionModeToJSON)(value)), { 'ranges': (value.ranges.map(IdentifiedDistributionRange_1.IdentifiedDistributionRangeToJSON)) });
|
|
49
|
+
}
|
|
50
|
+
exports.IdentifiedRangeDistributionModeToJSON = IdentifiedRangeDistributionModeToJSON;
|
|
@@ -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 { IdentifiedDistributionRange } from './IdentifiedDistributionRange';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IdentifiedRangeDistributionModeAllOf
|
|
17
|
+
*/
|
|
18
|
+
export interface IdentifiedRangeDistributionModeAllOf {
|
|
19
|
+
/**
|
|
20
|
+
* Available range to buy product.
|
|
21
|
+
* @type {Array<IdentifiedDistributionRange>}
|
|
22
|
+
* @memberof IdentifiedRangeDistributionModeAllOf
|
|
23
|
+
*/
|
|
24
|
+
ranges: Array<IdentifiedDistributionRange>;
|
|
25
|
+
}
|
|
26
|
+
export declare function IdentifiedRangeDistributionModeAllOfFromJSON(json: any): IdentifiedRangeDistributionModeAllOf;
|
|
27
|
+
export declare function IdentifiedRangeDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): IdentifiedRangeDistributionModeAllOf;
|
|
28
|
+
export declare function IdentifiedRangeDistributionModeAllOfToJSON(value?: IdentifiedRangeDistributionModeAllOf | null): any;
|