@lcdp/api-react-rest-client 0.0.2-LDS-2733-fix-concurrency-in-lcdp-sdk.5 → 0.0.2-develop.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/configuration/src/apis/ManageVariableApi.d.ts +53 -1
- package/configuration/src/apis/ManageVariableApi.js +54 -1
- package/configuration/src/apis/SearchVariableApi.d.ts +53 -1
- package/configuration/src/apis/SearchVariableApi.js +54 -1
- package/magic-cart/src/apis/ManageMagicCartApi.d.ts +29 -0
- package/magic-cart/src/apis/{ManageExpressOrderApi.js → ManageMagicCartApi.js} +17 -16
- package/magic-cart/src/apis/index.d.ts +1 -1
- package/magic-cart/src/apis/index.js +1 -1
- package/magic-cart/src/models/AnyMagicCartCreationParameters.d.ts +25 -0
- package/magic-cart/src/models/AnyMagicCartCreationParameters.js +64 -0
- package/magic-cart/src/models/MagicCart.d.ts +28 -0
- package/magic-cart/src/models/MagicCart.js +43 -0
- package/magic-cart/src/models/MagicCartWithInitialCreationParameters.d.ts +29 -0
- package/magic-cart/src/models/MagicCartWithInitialCreationParameters.js +50 -0
- package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.d.ts +28 -0
- package/magic-cart/src/models/MagicCartWithInitialCreationParametersAllOf.js +42 -0
- package/magic-cart/src/models/MagicCartWithNeedCreationParameters.d.ts +29 -0
- package/magic-cart/src/models/MagicCartWithNeedCreationParameters.js +50 -0
- package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.d.ts +28 -0
- package/magic-cart/src/models/MagicCartWithNeedCreationParametersAllOf.js +42 -0
- package/magic-cart/src/models/MagicNeed.d.ts +39 -0
- package/magic-cart/src/models/{ExpressOrderNeed.js → MagicNeed.js} +10 -8
- package/magic-cart/src/models/MagicProductBus.d.ts +33 -0
- package/magic-cart/src/models/{HttpLink.js → MagicProductBus.js} +12 -10
- package/magic-cart/src/models/MagicProposal.d.ts +39 -0
- package/magic-cart/src/models/{DistributionRange.js → MagicProposal.js} +12 -12
- package/magic-cart/src/models/index.d.ts +9 -24
- package/magic-cart/src/models/index.js +9 -24
- package/mangopay-hook/src/apis/MangopayHookApi.d.ts +13 -0
- package/mangopay-hook/src/apis/MangopayHookApi.js +63 -1
- package/package.json +1 -1
- package/product/src/apis/SearchProductApi.d.ts +0 -1
- package/product/src/apis/SearchProductApi.js +0 -3
- package/shopping-cart/src/models/CartSubCartLine.d.ts +6 -0
- package/shopping-cart/src/models/CartSubCartLine.js +2 -0
- package/user/src/models/UserDelegatedServices.d.ts +1 -1
- package/magic-cart/src/apis/ManageExpressOrderApi.d.ts +0 -31
- package/magic-cart/src/models/AnyIdentifiedDistributionMode.d.ts +0 -28
- package/magic-cart/src/models/AnyIdentifiedDistributionMode.js +0 -69
- package/magic-cart/src/models/Barcodes.d.ts +0 -45
- package/magic-cart/src/models/Barcodes.js +0 -48
- package/magic-cart/src/models/DistributionMode.d.ts +0 -27
- package/magic-cart/src/models/DistributionMode.js +0 -41
- package/magic-cart/src/models/DistributionRange.d.ts +0 -39
- package/magic-cart/src/models/ExpressOrder.d.ts +0 -28
- package/magic-cart/src/models/ExpressOrder.js +0 -43
- package/magic-cart/src/models/ExpressOrderCreationParameters.d.ts +0 -28
- package/magic-cart/src/models/ExpressOrderCreationParameters.js +0 -43
- package/magic-cart/src/models/ExpressOrderNeed.d.ts +0 -33
- package/magic-cart/src/models/HttpLink.d.ts +0 -27
- package/magic-cart/src/models/IdentifiedDistributionRange.d.ts +0 -34
- package/magic-cart/src/models/IdentifiedDistributionRange.js +0 -49
- package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.d.ts +0 -33
- package/magic-cart/src/models/IdentifiedDistributionRangeAllOf.js +0 -43
- package/magic-cart/src/models/IdentifiedRangeDistributionMode.d.ts +0 -29
- package/magic-cart/src/models/IdentifiedRangeDistributionMode.js +0 -50
- package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.d.ts +0 -28
- package/magic-cart/src/models/IdentifiedRangeDistributionModeAllOf.js +0 -42
- package/magic-cart/src/models/ProductLink.d.ts +0 -41
- package/magic-cart/src/models/ProductLink.js +0 -50
- package/magic-cart/src/models/ProductLinkAllOf.d.ts +0 -40
- package/magic-cart/src/models/ProductLinkAllOf.js +0 -46
- package/magic-cart/src/models/QuotationDistributionMode.d.ts +0 -22
- package/magic-cart/src/models/QuotationDistributionMode.js +0 -28
- package/magic-cart/src/models/SaleOfferLink.d.ts +0 -54
- package/magic-cart/src/models/SaleOfferLink.js +0 -52
- package/magic-cart/src/models/SaleOfferLinkAllOf.d.ts +0 -53
- package/magic-cart/src/models/SaleOfferLinkAllOf.js +0 -52
- package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -47
- package/magic-cart/src/models/SaleOfferProposal.js +0 -49
- package/magic-cart/src/models/SellerProposal.d.ts +0 -41
- package/magic-cart/src/models/SellerProposal.js +0 -47
- package/magic-cart/src/models/Stock.d.ts +0 -39
- package/magic-cart/src/models/Stock.js +0 -46
- package/magic-cart/src/models/UnitaryDistributionMode.d.ts +0 -34
- package/magic-cart/src/models/UnitaryDistributionMode.js +0 -49
- package/magic-cart/src/models/UnitaryDistributionModeAllOf.d.ts +0 -33
- package/magic-cart/src/models/UnitaryDistributionModeAllOf.js +0 -43
- package/magic-cart/src/models/UserLink.d.ts +0 -34
- package/magic-cart/src/models/UserLink.js +0 -49
- package/magic-cart/src/models/UserLinkAllOf.d.ts +0 -33
- package/magic-cart/src/models/UserLinkAllOf.js +0 -43
|
@@ -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;
|
|
@@ -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
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UnitaryDistributionModeAllOf
|
|
16
|
-
*/
|
|
17
|
-
export interface UnitaryDistributionModeAllOf {
|
|
18
|
-
/**
|
|
19
|
-
* The unit price as a decimal.
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof UnitaryDistributionModeAllOf
|
|
22
|
-
*/
|
|
23
|
-
unitPrice: number;
|
|
24
|
-
/**
|
|
25
|
-
* Minimal quantity.
|
|
26
|
-
* @type {number}
|
|
27
|
-
* @memberof UnitaryDistributionModeAllOf
|
|
28
|
-
*/
|
|
29
|
-
minimalQuantity: number;
|
|
30
|
-
}
|
|
31
|
-
export declare function UnitaryDistributionModeAllOfFromJSON(json: any): UnitaryDistributionModeAllOf;
|
|
32
|
-
export declare function UnitaryDistributionModeAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnitaryDistributionModeAllOf;
|
|
33
|
-
export declare function UnitaryDistributionModeAllOfToJSON(value?: UnitaryDistributionModeAllOf | 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.UnitaryDistributionModeAllOfToJSON = exports.UnitaryDistributionModeAllOfFromJSONTyped = exports.UnitaryDistributionModeAllOfFromJSON = void 0;
|
|
17
|
-
function UnitaryDistributionModeAllOfFromJSON(json) {
|
|
18
|
-
return UnitaryDistributionModeAllOfFromJSONTyped(json, false);
|
|
19
|
-
}
|
|
20
|
-
exports.UnitaryDistributionModeAllOfFromJSON = UnitaryDistributionModeAllOfFromJSON;
|
|
21
|
-
function UnitaryDistributionModeAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'unitPrice': json['unitPrice'],
|
|
27
|
-
'minimalQuantity': json['minimalQuantity'],
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
exports.UnitaryDistributionModeAllOfFromJSONTyped = UnitaryDistributionModeAllOfFromJSONTyped;
|
|
31
|
-
function UnitaryDistributionModeAllOfToJSON(value) {
|
|
32
|
-
if (value === undefined) {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
if (value === null) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'unitPrice': value.unitPrice,
|
|
40
|
-
'minimalQuantity': value.minimalQuantity,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
exports.UnitaryDistributionModeAllOfToJSON = UnitaryDistributionModeAllOfToJSON;
|
|
@@ -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 { HttpLink } from './HttpLink';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface UserLink
|
|
17
|
-
*/
|
|
18
|
-
export interface UserLink extends HttpLink {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof UserLink
|
|
23
|
-
*/
|
|
24
|
-
id: number;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof UserLink
|
|
29
|
-
*/
|
|
30
|
-
nickname: string;
|
|
31
|
-
}
|
|
32
|
-
export declare function UserLinkFromJSON(json: any): UserLink;
|
|
33
|
-
export declare function UserLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLink;
|
|
34
|
-
export declare function UserLinkToJSON(value?: UserLink | 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.UserLinkToJSON = exports.UserLinkFromJSONTyped = exports.UserLinkFromJSON = void 0;
|
|
28
|
-
var HttpLink_1 = require("./HttpLink");
|
|
29
|
-
function UserLinkFromJSON(json) {
|
|
30
|
-
return UserLinkFromJSONTyped(json, false);
|
|
31
|
-
}
|
|
32
|
-
exports.UserLinkFromJSON = UserLinkFromJSON;
|
|
33
|
-
function UserLinkFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
-
if ((json === undefined) || (json === null)) {
|
|
35
|
-
return json;
|
|
36
|
-
}
|
|
37
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkFromJSONTyped)(json, ignoreDiscriminator)), { 'id': json['id'], 'nickname': json['nickname'] });
|
|
38
|
-
}
|
|
39
|
-
exports.UserLinkFromJSONTyped = UserLinkFromJSONTyped;
|
|
40
|
-
function UserLinkToJSON(value) {
|
|
41
|
-
if (value === undefined) {
|
|
42
|
-
return undefined;
|
|
43
|
-
}
|
|
44
|
-
if (value === null) {
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
47
|
-
return __assign(__assign({}, (0, HttpLink_1.HttpLinkToJSON)(value)), { 'id': value.id, 'nickname': value.nickname });
|
|
48
|
-
}
|
|
49
|
-
exports.UserLinkToJSON = UserLinkToJSON;
|
|
@@ -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
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @interface UserLinkAllOf
|
|
16
|
-
*/
|
|
17
|
-
export interface UserLinkAllOf {
|
|
18
|
-
/**
|
|
19
|
-
*
|
|
20
|
-
* @type {number}
|
|
21
|
-
* @memberof UserLinkAllOf
|
|
22
|
-
*/
|
|
23
|
-
id: number;
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof UserLinkAllOf
|
|
28
|
-
*/
|
|
29
|
-
nickname: string;
|
|
30
|
-
}
|
|
31
|
-
export declare function UserLinkAllOfFromJSON(json: any): UserLinkAllOf;
|
|
32
|
-
export declare function UserLinkAllOfFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserLinkAllOf;
|
|
33
|
-
export declare function UserLinkAllOfToJSON(value?: UserLinkAllOf | 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.UserLinkAllOfToJSON = exports.UserLinkAllOfFromJSONTyped = exports.UserLinkAllOfFromJSON = void 0;
|
|
17
|
-
function UserLinkAllOfFromJSON(json) {
|
|
18
|
-
return UserLinkAllOfFromJSONTyped(json, false);
|
|
19
|
-
}
|
|
20
|
-
exports.UserLinkAllOfFromJSON = UserLinkAllOfFromJSON;
|
|
21
|
-
function UserLinkAllOfFromJSONTyped(json, ignoreDiscriminator) {
|
|
22
|
-
if ((json === undefined) || (json === null)) {
|
|
23
|
-
return json;
|
|
24
|
-
}
|
|
25
|
-
return {
|
|
26
|
-
'id': json['id'],
|
|
27
|
-
'nickname': json['nickname'],
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
exports.UserLinkAllOfFromJSONTyped = UserLinkAllOfFromJSONTyped;
|
|
31
|
-
function UserLinkAllOfToJSON(value) {
|
|
32
|
-
if (value === undefined) {
|
|
33
|
-
return undefined;
|
|
34
|
-
}
|
|
35
|
-
if (value === null) {
|
|
36
|
-
return null;
|
|
37
|
-
}
|
|
38
|
-
return {
|
|
39
|
-
'id': value.id,
|
|
40
|
-
'nickname': value.nickname,
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
exports.UserLinkAllOfToJSON = UserLinkAllOfToJSON;
|