@lcdp/api-react-rest-client 3.1.4-develop.23005145683 → 3.1.5-LDS-5354-refactoring-multi-panier.23008488553
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/magic-cart/src/models/ExpressOrder.d.ts +3 -3
- package/magic-cart/src/models/ExpressOrder.js +3 -3
- package/magic-cart/src/models/ShoppedOffer.d.ts +43 -0
- package/magic-cart/src/models/ShoppedOffer.js +53 -0
- package/magic-cart/src/models/index.d.ts +1 -2
- package/magic-cart/src/models/index.js +1 -2
- package/order/src/models/ShoppedOffer.d.ts +2 -2
- package/order/src/models/ShoppedOffer.js +2 -2
- package/order/src/models/UserLinkAllOfCompany.d.ts +0 -18
- package/order/src/models/UserLinkAllOfCompany.js +0 -6
- package/package.json +1 -1
- package/shopping-cart/src/apis/ManageCartApi.d.ts +16 -28
- package/shopping-cart/src/apis/ManageCartApi.js +29 -188
- package/shopping-cart/src/apis/ManageCartLineApi.d.ts +45 -0
- package/shopping-cart/src/apis/ManageCartLineApi.js +238 -0
- package/shopping-cart/src/apis/SearchCartApi.d.ts +59 -0
- package/shopping-cart/src/apis/SearchCartApi.js +267 -0
- package/shopping-cart/src/apis/SearchCartLineApi.d.ts +41 -0
- package/shopping-cart/src/apis/SearchCartLineApi.js +241 -0
- package/shopping-cart/src/apis/index.d.ts +3 -2
- package/shopping-cart/src/apis/index.js +3 -2
- package/shopping-cart/src/models/Cart.d.ts +61 -4
- package/shopping-cart/src/models/Cart.js +47 -2
- package/shopping-cart/src/models/CartCreationParameters.d.ts +44 -0
- package/shopping-cart/src/models/CartCreationParameters.js +56 -0
- package/shopping-cart/src/models/{CartSubCartLine.d.ts → CartLine.d.ts} +13 -13
- package/shopping-cart/src/models/{CartSubCartLine.js → CartLine.js} +11 -11
- package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +37 -0
- package/shopping-cart/src/models/CartLineUpdateParameters.js +49 -0
- package/shopping-cart/src/models/CartLineWithWarnings.d.ts +39 -0
- package/shopping-cart/src/models/CartLineWithWarnings.js +49 -0
- package/shopping-cart/src/models/CartSummary.d.ts +31 -0
- package/shopping-cart/src/models/CartSummary.js +47 -0
- package/shopping-cart/src/models/{CartSubCartTransport.d.ts → CartTransport.d.ts} +12 -12
- package/shopping-cart/src/models/{CartSubCartTransport.js → CartTransport.js} +11 -11
- package/shopping-cart/src/models/CartWarning.d.ts +70 -0
- package/shopping-cart/src/models/CartWarning.js +67 -0
- package/shopping-cart/src/models/CartsWithWarnings.d.ts +39 -0
- package/shopping-cart/src/models/CartsWithWarnings.js +49 -0
- package/shopping-cart/src/models/OwnerLink.d.ts +43 -0
- package/shopping-cart/src/models/OwnerLink.js +53 -0
- package/shopping-cart/src/models/PaginatedCarts.d.ts +46 -0
- package/shopping-cart/src/models/PaginatedCarts.js +58 -0
- package/shopping-cart/src/models/PagingMetadata.d.ts +49 -0
- package/shopping-cart/src/models/PagingMetadata.js +55 -0
- package/shopping-cart/src/models/ShoppedOffer.d.ts +2 -2
- package/shopping-cart/src/models/ShoppedOffer.js +2 -2
- package/shopping-cart/src/models/index.d.ts +11 -4
- package/shopping-cart/src/models/index.js +11 -4
- package/user/src/models/UserCompany.d.ts +0 -13
- package/user/src/models/UserCompany.js +1 -9
- package/magic-cart/src/models/SaleOfferProposal.d.ts +0 -51
- package/magic-cart/src/models/SaleOfferProposal.js +0 -61
- package/magic-cart/src/models/SellerProposal.d.ts +0 -45
- package/magic-cart/src/models/SellerProposal.js +0 -57
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +0 -107
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +0 -556
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +0 -151
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +0 -879
- package/shopping-cart/src/models/CartSubCart.d.ts +0 -76
- package/shopping-cart/src/models/CartSubCart.js +0 -78
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +0 -37
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +0 -49
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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 CartLineUpdateParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface CartLineUpdateParameters {
|
|
18
|
+
/**
|
|
19
|
+
* Identifier of the distribution range to change in cart line
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CartLineUpdateParameters
|
|
22
|
+
*/
|
|
23
|
+
distributionRangeId?: number;
|
|
24
|
+
/**
|
|
25
|
+
* New quantity for the cart line
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CartLineUpdateParameters
|
|
28
|
+
*/
|
|
29
|
+
quantity: number;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the CartLineUpdateParameters interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfCartLineUpdateParameters(value: object): value is CartLineUpdateParameters;
|
|
35
|
+
export declare function CartLineUpdateParametersFromJSON(json: any): CartLineUpdateParameters;
|
|
36
|
+
export declare function CartLineUpdateParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartLineUpdateParameters;
|
|
37
|
+
export declare function CartLineUpdateParametersToJSON(value?: CartLineUpdateParameters | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.CartLineUpdateParametersToJSON = exports.CartLineUpdateParametersFromJSONTyped = exports.CartLineUpdateParametersFromJSON = exports.instanceOfCartLineUpdateParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CartLineUpdateParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCartLineUpdateParameters(value) {
|
|
21
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartLineUpdateParameters = instanceOfCartLineUpdateParameters;
|
|
26
|
+
function CartLineUpdateParametersFromJSON(json) {
|
|
27
|
+
return CartLineUpdateParametersFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartLineUpdateParametersFromJSON = CartLineUpdateParametersFromJSON;
|
|
30
|
+
function CartLineUpdateParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'distributionRangeId': json['distributionRangeId'],
|
|
36
|
+
'quantity': json['quantity'],
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CartLineUpdateParametersFromJSONTyped = CartLineUpdateParametersFromJSONTyped;
|
|
40
|
+
function CartLineUpdateParametersToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'distributionRangeId': value['distributionRangeId'],
|
|
46
|
+
'quantity': value['quantity'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.CartLineUpdateParametersToJSON = CartLineUpdateParametersToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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 type { CartWarning } from './CartWarning';
|
|
13
|
+
import type { CartLine } from './CartLine';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CartLineWithWarnings
|
|
18
|
+
*/
|
|
19
|
+
export interface CartLineWithWarnings {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CartLine}
|
|
23
|
+
* @memberof CartLineWithWarnings
|
|
24
|
+
*/
|
|
25
|
+
cartLine?: CartLine;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<CartWarning>}
|
|
29
|
+
* @memberof CartLineWithWarnings
|
|
30
|
+
*/
|
|
31
|
+
warnings?: Array<CartWarning>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CartLineWithWarnings interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCartLineWithWarnings(value: object): value is CartLineWithWarnings;
|
|
37
|
+
export declare function CartLineWithWarningsFromJSON(json: any): CartLineWithWarnings;
|
|
38
|
+
export declare function CartLineWithWarningsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartLineWithWarnings;
|
|
39
|
+
export declare function CartLineWithWarningsToJSON(value?: CartLineWithWarnings | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.CartLineWithWarningsToJSON = exports.CartLineWithWarningsFromJSONTyped = exports.CartLineWithWarningsFromJSON = exports.instanceOfCartLineWithWarnings = void 0;
|
|
17
|
+
var CartWarning_1 = require("./CartWarning");
|
|
18
|
+
var CartLine_1 = require("./CartLine");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CartLineWithWarnings interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfCartLineWithWarnings(value) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartLineWithWarnings = instanceOfCartLineWithWarnings;
|
|
26
|
+
function CartLineWithWarningsFromJSON(json) {
|
|
27
|
+
return CartLineWithWarningsFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartLineWithWarningsFromJSON = CartLineWithWarningsFromJSON;
|
|
30
|
+
function CartLineWithWarningsFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'cartLine': (json['cartLine'] === null || json['cartLine'] === undefined) ? json['cartLine'] : (0, CartLine_1.CartLineFromJSON)(json['cartLine']),
|
|
36
|
+
'warnings': (json['warnings'] === null || json['warnings'] === undefined) ? json['warnings'] : json['warnings'].map(CartWarning_1.CartWarningFromJSON),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CartLineWithWarningsFromJSONTyped = CartLineWithWarningsFromJSONTyped;
|
|
40
|
+
function CartLineWithWarningsToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'cartLine': (0, CartLine_1.CartLineToJSON)(value['cartLine']),
|
|
46
|
+
'warnings': (value['warnings'] === null || value['warnings'] === undefined) ? value['warnings'] : value['warnings'].map(CartWarning_1.CartWarningToJSON),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.CartLineWithWarningsToJSON = CartLineWithWarningsToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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
|
+
* Summary computed on all visible records
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CartSummary
|
|
16
|
+
*/
|
|
17
|
+
export interface CartSummary {
|
|
18
|
+
/**
|
|
19
|
+
* Total number of lines across all visible records
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CartSummary
|
|
22
|
+
*/
|
|
23
|
+
lineCount: number;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CartSummary interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfCartSummary(value: object): value is CartSummary;
|
|
29
|
+
export declare function CartSummaryFromJSON(json: any): CartSummary;
|
|
30
|
+
export declare function CartSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartSummary;
|
|
31
|
+
export declare function CartSummaryToJSON(value?: CartSummary | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.CartSummaryToJSON = exports.CartSummaryFromJSONTyped = exports.CartSummaryFromJSON = exports.instanceOfCartSummary = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the CartSummary interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfCartSummary(value) {
|
|
21
|
+
if (!('lineCount' in value) || value['lineCount'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartSummary = instanceOfCartSummary;
|
|
26
|
+
function CartSummaryFromJSON(json) {
|
|
27
|
+
return CartSummaryFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartSummaryFromJSON = CartSummaryFromJSON;
|
|
30
|
+
function CartSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'lineCount': json['lineCount'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.CartSummaryFromJSONTyped = CartSummaryFromJSONTyped;
|
|
39
|
+
function CartSummaryToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'lineCount': value['lineCount'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.CartSummaryToJSON = CartSummaryToJSON;
|
|
@@ -12,38 +12,38 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface CartTransport
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface CartTransport {
|
|
18
18
|
/**
|
|
19
19
|
* Minimum price to buy
|
|
20
20
|
* @type {number}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof CartTransport
|
|
22
22
|
*/
|
|
23
23
|
minimumPrice: number | null;
|
|
24
24
|
/**
|
|
25
|
-
* Total shipping fees price
|
|
25
|
+
* Total shipping fees price excluding taxes
|
|
26
26
|
* @type {number}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof CartTransport
|
|
28
28
|
*/
|
|
29
29
|
totalShippingFeesExcludingTaxes: number;
|
|
30
30
|
/**
|
|
31
31
|
* Limit in euro (totalExcludingTaxes) to achieve to have free shipping fees. If no free carriage threshold reachable, value is null.
|
|
32
32
|
* @type {number}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof CartTransport
|
|
34
34
|
*/
|
|
35
35
|
freeCarriageThreshold: number | null;
|
|
36
36
|
/**
|
|
37
37
|
* Delivery delay in days
|
|
38
38
|
* @type {number}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof CartTransport
|
|
40
40
|
*/
|
|
41
41
|
deliveryDelay: number;
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
|
-
* Check if a given object implements the
|
|
44
|
+
* Check if a given object implements the CartTransport interface.
|
|
45
45
|
*/
|
|
46
|
-
export declare function
|
|
47
|
-
export declare function
|
|
48
|
-
export declare function
|
|
49
|
-
export declare function
|
|
46
|
+
export declare function instanceOfCartTransport(value: object): value is CartTransport;
|
|
47
|
+
export declare function CartTransportFromJSON(json: any): CartTransport;
|
|
48
|
+
export declare function CartTransportFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartTransport;
|
|
49
|
+
export declare function CartTransportToJSON(value?: CartTransport | null): any;
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.CartTransportToJSON = exports.CartTransportFromJSONTyped = exports.CartTransportFromJSON = exports.instanceOfCartTransport = void 0;
|
|
17
17
|
/**
|
|
18
|
-
* Check if a given object implements the
|
|
18
|
+
* Check if a given object implements the CartTransport interface.
|
|
19
19
|
*/
|
|
20
|
-
function
|
|
20
|
+
function instanceOfCartTransport(value) {
|
|
21
21
|
if (!('minimumPrice' in value) || value['minimumPrice'] === undefined)
|
|
22
22
|
return false;
|
|
23
23
|
if (!('totalShippingFeesExcludingTaxes' in value) || value['totalShippingFeesExcludingTaxes'] === undefined)
|
|
@@ -28,12 +28,12 @@ function instanceOfCartSubCartTransport(value) {
|
|
|
28
28
|
return false;
|
|
29
29
|
return true;
|
|
30
30
|
}
|
|
31
|
-
exports.
|
|
32
|
-
function
|
|
33
|
-
return
|
|
31
|
+
exports.instanceOfCartTransport = instanceOfCartTransport;
|
|
32
|
+
function CartTransportFromJSON(json) {
|
|
33
|
+
return CartTransportFromJSONTyped(json, false);
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
36
|
-
function
|
|
35
|
+
exports.CartTransportFromJSON = CartTransportFromJSON;
|
|
36
|
+
function CartTransportFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
37
|
if (json == null) {
|
|
38
38
|
return json;
|
|
39
39
|
}
|
|
@@ -44,8 +44,8 @@ function CartSubCartTransportFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
44
44
|
'deliveryDelay': json['deliveryDelay'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
|
-
exports.
|
|
48
|
-
function
|
|
47
|
+
exports.CartTransportFromJSONTyped = CartTransportFromJSONTyped;
|
|
48
|
+
function CartTransportToJSON(value) {
|
|
49
49
|
if (value == null) {
|
|
50
50
|
return value;
|
|
51
51
|
}
|
|
@@ -56,4 +56,4 @@ function CartSubCartTransportToJSON(value) {
|
|
|
56
56
|
'deliveryDelay': value['deliveryDelay'],
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
exports.
|
|
59
|
+
exports.CartTransportToJSON = CartTransportToJSON;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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 CartWarning
|
|
16
|
+
*/
|
|
17
|
+
export interface CartWarning {
|
|
18
|
+
/**
|
|
19
|
+
* Type of warning
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CartWarning
|
|
22
|
+
*/
|
|
23
|
+
type: CartWarningTypeEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Id of the cart concerned by the warning
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof CartWarning
|
|
28
|
+
*/
|
|
29
|
+
cartId?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Reference of the offer concerned by the warning
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CartWarning
|
|
34
|
+
*/
|
|
35
|
+
offerReference: string;
|
|
36
|
+
/**
|
|
37
|
+
* Id of the distribution range concerned by the warning
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof CartWarning
|
|
40
|
+
*/
|
|
41
|
+
distributionRangeId?: number;
|
|
42
|
+
/**
|
|
43
|
+
* Quantity originally requested
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof CartWarning
|
|
46
|
+
*/
|
|
47
|
+
requestedQuantity?: number;
|
|
48
|
+
/**
|
|
49
|
+
* Quantity actually set in the cart
|
|
50
|
+
* @type {number}
|
|
51
|
+
* @memberof CartWarning
|
|
52
|
+
*/
|
|
53
|
+
finalQuantity?: number;
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @export
|
|
57
|
+
*/
|
|
58
|
+
export declare const CartWarningTypeEnum: {
|
|
59
|
+
readonly OUTDATED_AD: "OUTDATED_AD";
|
|
60
|
+
readonly RESTRICTED_PRODUCT: "RESTRICTED_PRODUCT";
|
|
61
|
+
readonly QUANTITY_EXCEEDED: "QUANTITY_EXCEEDED";
|
|
62
|
+
};
|
|
63
|
+
export declare type CartWarningTypeEnum = typeof CartWarningTypeEnum[keyof typeof CartWarningTypeEnum];
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the CartWarning interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfCartWarning(value: object): value is CartWarning;
|
|
68
|
+
export declare function CartWarningFromJSON(json: any): CartWarning;
|
|
69
|
+
export declare function CartWarningFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartWarning;
|
|
70
|
+
export declare function CartWarningToJSON(value?: CartWarning | null): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.CartWarningToJSON = exports.CartWarningFromJSONTyped = exports.CartWarningFromJSON = exports.instanceOfCartWarning = exports.CartWarningTypeEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.CartWarningTypeEnum = {
|
|
21
|
+
OUTDATED_AD: 'OUTDATED_AD',
|
|
22
|
+
RESTRICTED_PRODUCT: 'RESTRICTED_PRODUCT',
|
|
23
|
+
QUANTITY_EXCEEDED: 'QUANTITY_EXCEEDED'
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the CartWarning interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfCartWarning(value) {
|
|
29
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('offerReference' in value) || value['offerReference'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
exports.instanceOfCartWarning = instanceOfCartWarning;
|
|
36
|
+
function CartWarningFromJSON(json) {
|
|
37
|
+
return CartWarningFromJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
exports.CartWarningFromJSON = CartWarningFromJSON;
|
|
40
|
+
function CartWarningFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
|
+
if (json == null) {
|
|
42
|
+
return json;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'type': json['type'],
|
|
46
|
+
'cartId': json['cartId'],
|
|
47
|
+
'offerReference': json['offerReference'],
|
|
48
|
+
'distributionRangeId': json['distributionRangeId'],
|
|
49
|
+
'requestedQuantity': json['requestedQuantity'],
|
|
50
|
+
'finalQuantity': json['finalQuantity'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.CartWarningFromJSONTyped = CartWarningFromJSONTyped;
|
|
54
|
+
function CartWarningToJSON(value) {
|
|
55
|
+
if (value == null) {
|
|
56
|
+
return value;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'type': value['type'],
|
|
60
|
+
'cartId': value['cartId'],
|
|
61
|
+
'offerReference': value['offerReference'],
|
|
62
|
+
'distributionRangeId': value['distributionRangeId'],
|
|
63
|
+
'requestedQuantity': value['requestedQuantity'],
|
|
64
|
+
'finalQuantity': value['finalQuantity'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
exports.CartWarningToJSON = CartWarningToJSON;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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 type { CartWarning } from './CartWarning';
|
|
13
|
+
import type { Cart } from './Cart';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CartsWithWarnings
|
|
18
|
+
*/
|
|
19
|
+
export interface CartsWithWarnings {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<Cart>}
|
|
23
|
+
* @memberof CartsWithWarnings
|
|
24
|
+
*/
|
|
25
|
+
carts?: Array<Cart>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<CartWarning>}
|
|
29
|
+
* @memberof CartsWithWarnings
|
|
30
|
+
*/
|
|
31
|
+
warnings?: Array<CartWarning>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CartsWithWarnings interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCartsWithWarnings(value: object): value is CartsWithWarnings;
|
|
37
|
+
export declare function CartsWithWarningsFromJSON(json: any): CartsWithWarnings;
|
|
38
|
+
export declare function CartsWithWarningsFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartsWithWarnings;
|
|
39
|
+
export declare function CartsWithWarningsToJSON(value?: CartsWithWarnings | null): any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
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.CartsWithWarningsToJSON = exports.CartsWithWarningsFromJSONTyped = exports.CartsWithWarningsFromJSON = exports.instanceOfCartsWithWarnings = void 0;
|
|
17
|
+
var CartWarning_1 = require("./CartWarning");
|
|
18
|
+
var Cart_1 = require("./Cart");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CartsWithWarnings interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfCartsWithWarnings(value) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartsWithWarnings = instanceOfCartsWithWarnings;
|
|
26
|
+
function CartsWithWarningsFromJSON(json) {
|
|
27
|
+
return CartsWithWarningsFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartsWithWarningsFromJSON = CartsWithWarningsFromJSON;
|
|
30
|
+
function CartsWithWarningsFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'carts': (json['carts'] === null || json['carts'] === undefined) ? json['carts'] : json['carts'].map(Cart_1.CartFromJSON),
|
|
36
|
+
'warnings': (json['warnings'] === null || json['warnings'] === undefined) ? json['warnings'] : json['warnings'].map(CartWarning_1.CartWarningFromJSON),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CartsWithWarningsFromJSONTyped = CartsWithWarningsFromJSONTyped;
|
|
40
|
+
function CartsWithWarningsToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'carts': (value['carts'] === null || value['carts'] === undefined) ? value['carts'] : value['carts'].map(Cart_1.CartToJSON),
|
|
46
|
+
'warnings': (value['warnings'] === null || value['warnings'] === undefined) ? value['warnings'] : value['warnings'].map(CartWarning_1.CartWarningToJSON),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.CartsWithWarningsToJSON = CartsWithWarningsToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
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 OwnerLink
|
|
16
|
+
*/
|
|
17
|
+
export interface OwnerLink {
|
|
18
|
+
/**
|
|
19
|
+
* Any URL that is using http or https protocol
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof OwnerLink
|
|
22
|
+
*/
|
|
23
|
+
href: string;
|
|
24
|
+
/**
|
|
25
|
+
* Unique identifier of the owner
|
|
26
|
+
* @type {number}
|
|
27
|
+
* @memberof OwnerLink
|
|
28
|
+
*/
|
|
29
|
+
id: number;
|
|
30
|
+
/**
|
|
31
|
+
* User nickname
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof OwnerLink
|
|
34
|
+
*/
|
|
35
|
+
nickname?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the OwnerLink interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfOwnerLink(value: object): value is OwnerLink;
|
|
41
|
+
export declare function OwnerLinkFromJSON(json: any): OwnerLink;
|
|
42
|
+
export declare function OwnerLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): OwnerLink;
|
|
43
|
+
export declare function OwnerLinkToJSON(value?: OwnerLink | null): any;
|