@lcdp/api-react-rest-client 3.1.2 → 3.1.3-LDS-5369-api-modifications-routes-et-sch.21861896537
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/order/src/apis/ManageForeorderApi.d.ts +31 -0
- package/order/src/apis/{ManageMetaOrderApi.js → ManageForeorderApi.js} +18 -91
- package/order/src/apis/ManageOrderApi.d.ts +8 -8
- package/order/src/apis/ManageOrderApi.js +9 -10
- package/order/src/apis/index.d.ts +1 -1
- package/order/src/apis/index.js +1 -1
- package/order/src/models/{AnyMetaOrderWarning.d.ts → AnyForeorderWarning.d.ts} +5 -5
- package/order/src/models/{AnyMetaOrderWarning.js → AnyForeorderWarning.js} +10 -10
- package/order/src/models/Foreorder.d.ts +241 -0
- package/order/src/models/Foreorder.js +180 -0
- package/order/src/models/ForeorderCreationParameters.d.ts +45 -0
- package/order/src/models/ForeorderCreationParameters.js +58 -0
- package/order/src/models/ForeorderCreationResponse.d.ts +39 -0
- package/order/src/models/ForeorderCreationResponse.js +53 -0
- package/order/src/models/ForeorderWarning.d.ts +31 -0
- package/order/src/models/{MetaOrderWarning.js → ForeorderWarning.js} +11 -11
- package/order/src/models/Order.d.ts +9 -7
- package/order/src/models/Order.js +6 -4
- package/order/src/models/OrderCreationParameters.d.ts +46 -0
- package/order/src/models/OrderCreationParameters.js +59 -0
- package/order/src/models/index.d.ts +6 -7
- package/order/src/models/index.js +6 -7
- package/package.json +1 -1
- package/shopping-cart/src/apis/ManageCartApi.d.ts +30 -28
- package/shopping-cart/src/apis/ManageCartApi.js +43 -167
- package/shopping-cart/src/apis/ManageCartLineApi.d.ts +82 -0
- package/shopping-cart/src/apis/{ManageCartSubCartApi.js → ManageCartLineApi.js} +86 -157
- package/shopping-cart/src/apis/index.d.ts +1 -2
- package/shopping-cart/src/apis/index.js +1 -2
- package/shopping-cart/src/models/Cart.d.ts +6 -6
- package/shopping-cart/src/models/Cart.js +10 -4
- package/shopping-cart/src/models/CartCreationParameters.d.ts +44 -0
- package/shopping-cart/src/models/CartCreationParameters.js +56 -0
- package/shopping-cart/src/models/CartCreationResponse.d.ts +39 -0
- package/shopping-cart/src/models/CartCreationResponse.js +49 -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/CartLineResponse.d.ts +39 -0
- package/shopping-cart/src/models/CartLineResponse.js +49 -0
- package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +37 -0
- package/shopping-cart/src/models/CartLineUpdateParameters.js +49 -0
- package/shopping-cart/src/models/CartLinesResponse.d.ts +39 -0
- package/shopping-cart/src/models/CartLinesResponse.js +49 -0
- package/shopping-cart/src/models/CartRecord.d.ts +70 -0
- package/shopping-cart/src/models/CartRecord.js +74 -0
- package/shopping-cart/src/models/{CartSubCartTransport.d.ts → CartRecordTransport.d.ts} +12 -12
- package/shopping-cart/src/models/{CartSubCartTransport.js → CartRecordTransport.js} +11 -11
- package/shopping-cart/src/models/CartSummary.d.ts +31 -0
- package/shopping-cart/src/models/CartSummary.js +47 -0
- package/shopping-cart/src/models/CartWarning.d.ts +68 -0
- package/shopping-cart/src/models/CartWarning.js +69 -0
- package/shopping-cart/src/models/OwnerLink.d.ts +43 -0
- package/shopping-cart/src/models/{SellerLink.js → OwnerLink.js} +13 -14
- 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/index.d.ts +13 -6
- package/shopping-cart/src/models/index.js +13 -6
- package/order/src/apis/ManageMetaOrderApi.d.ts +0 -45
- package/order/src/models/MetaOrder.d.ts +0 -64
- package/order/src/models/MetaOrder.js +0 -70
- package/order/src/models/MetaOrderCreationParameters.d.ts +0 -38
- package/order/src/models/MetaOrderCreationParameters.js +0 -52
- package/order/src/models/MetaOrderCreationSubCartParameters.d.ts +0 -31
- package/order/src/models/MetaOrderCreationSubCartParameters.js +0 -47
- package/order/src/models/MetaOrderPrices.d.ts +0 -79
- package/order/src/models/MetaOrderPrices.js +0 -79
- package/order/src/models/MetaOrderWarning.d.ts +0 -31
- package/order/src/models/MetaOrderWithWarnings.d.ts +0 -39
- package/order/src/models/MetaOrderWithWarnings.js +0 -49
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +0 -107
- 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
- package/shopping-cart/src/models/SellerLink.d.ts +0 -50
- package/shopping-cart/src/models/UserRole.d.ts +0 -29
- package/shopping-cart/src/models/UserRole.js +0 -52
|
@@ -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 CartCreationResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface CartCreationResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<Cart>}
|
|
23
|
+
* @memberof CartCreationResponse
|
|
24
|
+
*/
|
|
25
|
+
carts?: Array<Cart>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<CartWarning>}
|
|
29
|
+
* @memberof CartCreationResponse
|
|
30
|
+
*/
|
|
31
|
+
warnings?: Array<CartWarning>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CartCreationResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCartCreationResponse(value: object): value is CartCreationResponse;
|
|
37
|
+
export declare function CartCreationResponseFromJSON(json: any): CartCreationResponse;
|
|
38
|
+
export declare function CartCreationResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartCreationResponse;
|
|
39
|
+
export declare function CartCreationResponseToJSON(value?: CartCreationResponse | 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.CartCreationResponseToJSON = exports.CartCreationResponseFromJSONTyped = exports.CartCreationResponseFromJSON = exports.instanceOfCartCreationResponse = void 0;
|
|
17
|
+
var CartWarning_1 = require("./CartWarning");
|
|
18
|
+
var Cart_1 = require("./Cart");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CartCreationResponse interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfCartCreationResponse(value) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartCreationResponse = instanceOfCartCreationResponse;
|
|
26
|
+
function CartCreationResponseFromJSON(json) {
|
|
27
|
+
return CartCreationResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartCreationResponseFromJSON = CartCreationResponseFromJSON;
|
|
30
|
+
function CartCreationResponseFromJSONTyped(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.CartCreationResponseFromJSONTyped = CartCreationResponseFromJSONTyped;
|
|
40
|
+
function CartCreationResponseToJSON(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.CartCreationResponseToJSON = CartCreationResponseToJSON;
|
|
@@ -14,50 +14,50 @@ import type { SaleOfferLink } from './SaleOfferLink';
|
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
17
|
-
* @interface
|
|
17
|
+
* @interface CartLine
|
|
18
18
|
*/
|
|
19
|
-
export interface
|
|
19
|
+
export interface CartLine {
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
* @type {number}
|
|
23
|
-
* @memberof
|
|
23
|
+
* @memberof CartLine
|
|
24
24
|
*/
|
|
25
25
|
id: number;
|
|
26
26
|
/**
|
|
27
27
|
* Quantity desired by the buyer
|
|
28
28
|
* @type {number}
|
|
29
|
-
* @memberof
|
|
29
|
+
* @memberof CartLine
|
|
30
30
|
*/
|
|
31
31
|
quantity: number;
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @type {ProductLink}
|
|
35
|
-
* @memberof
|
|
35
|
+
* @memberof CartLine
|
|
36
36
|
*/
|
|
37
37
|
product: ProductLink;
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @type {SaleOfferLink}
|
|
41
|
-
* @memberof
|
|
41
|
+
* @memberof CartLine
|
|
42
42
|
*/
|
|
43
43
|
saleOffer: SaleOfferLink;
|
|
44
44
|
/**
|
|
45
45
|
*
|
|
46
46
|
* @type {number}
|
|
47
|
-
* @memberof
|
|
47
|
+
* @memberof CartLine
|
|
48
48
|
*/
|
|
49
49
|
distributionRangeId?: number;
|
|
50
50
|
/**
|
|
51
51
|
* Total price of the line excluding taxes
|
|
52
52
|
* @type {number}
|
|
53
|
-
* @memberof
|
|
53
|
+
* @memberof CartLine
|
|
54
54
|
*/
|
|
55
55
|
totalExcludingTaxes: number;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Check if a given object implements the
|
|
58
|
+
* Check if a given object implements the CartLine interface.
|
|
59
59
|
*/
|
|
60
|
-
export declare function
|
|
61
|
-
export declare function
|
|
62
|
-
export declare function
|
|
63
|
-
export declare function
|
|
60
|
+
export declare function instanceOfCartLine(value: object): value is CartLine;
|
|
61
|
+
export declare function CartLineFromJSON(json: any): CartLine;
|
|
62
|
+
export declare function CartLineFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartLine;
|
|
63
|
+
export declare function CartLineToJSON(value?: CartLine | null): any;
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
* Do not edit the class manually.
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
16
|
+
exports.CartLineToJSON = exports.CartLineFromJSONTyped = exports.CartLineFromJSON = exports.instanceOfCartLine = void 0;
|
|
17
17
|
var ProductLink_1 = require("./ProductLink");
|
|
18
18
|
var SaleOfferLink_1 = require("./SaleOfferLink");
|
|
19
19
|
/**
|
|
20
|
-
* Check if a given object implements the
|
|
20
|
+
* Check if a given object implements the CartLine interface.
|
|
21
21
|
*/
|
|
22
|
-
function
|
|
22
|
+
function instanceOfCartLine(value) {
|
|
23
23
|
if (!('id' in value) || value['id'] === undefined)
|
|
24
24
|
return false;
|
|
25
25
|
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
@@ -32,12 +32,12 @@ function instanceOfCartSubCartLine(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
return true;
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
exports.instanceOfCartLine = instanceOfCartLine;
|
|
36
|
+
function CartLineFromJSON(json) {
|
|
37
|
+
return CartLineFromJSONTyped(json, false);
|
|
38
38
|
}
|
|
39
|
-
exports.
|
|
40
|
-
function
|
|
39
|
+
exports.CartLineFromJSON = CartLineFromJSON;
|
|
40
|
+
function CartLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
41
41
|
if (json == null) {
|
|
42
42
|
return json;
|
|
43
43
|
}
|
|
@@ -50,8 +50,8 @@ function CartSubCartLineFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
50
50
|
'totalExcludingTaxes': json['totalExcludingTaxes'],
|
|
51
51
|
};
|
|
52
52
|
}
|
|
53
|
-
exports.
|
|
54
|
-
function
|
|
53
|
+
exports.CartLineFromJSONTyped = CartLineFromJSONTyped;
|
|
54
|
+
function CartLineToJSON(value) {
|
|
55
55
|
if (value == null) {
|
|
56
56
|
return value;
|
|
57
57
|
}
|
|
@@ -64,4 +64,4 @@ function CartSubCartLineToJSON(value) {
|
|
|
64
64
|
'totalExcludingTaxes': value['totalExcludingTaxes'],
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
exports.
|
|
67
|
+
exports.CartLineToJSON = CartLineToJSON;
|
|
@@ -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 CartLineResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface CartLineResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {CartLine}
|
|
23
|
+
* @memberof CartLineResponse
|
|
24
|
+
*/
|
|
25
|
+
cartLine?: CartLine;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {CartWarning}
|
|
29
|
+
* @memberof CartLineResponse
|
|
30
|
+
*/
|
|
31
|
+
warning?: CartWarning;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CartLineResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCartLineResponse(value: object): value is CartLineResponse;
|
|
37
|
+
export declare function CartLineResponseFromJSON(json: any): CartLineResponse;
|
|
38
|
+
export declare function CartLineResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartLineResponse;
|
|
39
|
+
export declare function CartLineResponseToJSON(value?: CartLineResponse | 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.CartLineResponseToJSON = exports.CartLineResponseFromJSONTyped = exports.CartLineResponseFromJSON = exports.instanceOfCartLineResponse = void 0;
|
|
17
|
+
var CartWarning_1 = require("./CartWarning");
|
|
18
|
+
var CartLine_1 = require("./CartLine");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CartLineResponse interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfCartLineResponse(value) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartLineResponse = instanceOfCartLineResponse;
|
|
26
|
+
function CartLineResponseFromJSON(json) {
|
|
27
|
+
return CartLineResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartLineResponseFromJSON = CartLineResponseFromJSON;
|
|
30
|
+
function CartLineResponseFromJSONTyped(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
|
+
'warning': (json['warning'] === null || json['warning'] === undefined) ? json['warning'] : (0, CartWarning_1.CartWarningFromJSON)(json['warning']),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CartLineResponseFromJSONTyped = CartLineResponseFromJSONTyped;
|
|
40
|
+
function CartLineResponseToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'cartLine': (0, CartLine_1.CartLineToJSON)(value['cartLine']),
|
|
46
|
+
'warning': (0, CartWarning_1.CartWarningToJSON)(value['warning']),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.CartLineResponseToJSON = CartLineResponseToJSON;
|
|
@@ -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 distributed range to change in cart line
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CartLineUpdateParameters
|
|
22
|
+
*/
|
|
23
|
+
distributedRangeId?: number;
|
|
24
|
+
/**
|
|
25
|
+
* Quantity to change in 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
|
+
'distributedRangeId': json['distributedRangeId'],
|
|
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
|
+
'distributedRangeId': value['distributedRangeId'],
|
|
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 CartLinesResponse
|
|
18
|
+
*/
|
|
19
|
+
export interface CartLinesResponse {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<CartLine>}
|
|
23
|
+
* @memberof CartLinesResponse
|
|
24
|
+
*/
|
|
25
|
+
cartLines?: Array<CartLine>;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {Array<CartWarning>}
|
|
29
|
+
* @memberof CartLinesResponse
|
|
30
|
+
*/
|
|
31
|
+
warnings?: Array<CartWarning>;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the CartLinesResponse interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfCartLinesResponse(value: object): value is CartLinesResponse;
|
|
37
|
+
export declare function CartLinesResponseFromJSON(json: any): CartLinesResponse;
|
|
38
|
+
export declare function CartLinesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartLinesResponse;
|
|
39
|
+
export declare function CartLinesResponseToJSON(value?: CartLinesResponse | 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.CartLinesResponseToJSON = exports.CartLinesResponseFromJSONTyped = exports.CartLinesResponseFromJSON = exports.instanceOfCartLinesResponse = void 0;
|
|
17
|
+
var CartWarning_1 = require("./CartWarning");
|
|
18
|
+
var CartLine_1 = require("./CartLine");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CartLinesResponse interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfCartLinesResponse(value) {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfCartLinesResponse = instanceOfCartLinesResponse;
|
|
26
|
+
function CartLinesResponseFromJSON(json) {
|
|
27
|
+
return CartLinesResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.CartLinesResponseFromJSON = CartLinesResponseFromJSON;
|
|
30
|
+
function CartLinesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'cartLines': (json['cartLines'] === null || json['cartLines'] === undefined) ? json['cartLines'] : json['cartLines'].map(CartLine_1.CartLineFromJSON),
|
|
36
|
+
'warnings': (json['warnings'] === null || json['warnings'] === undefined) ? json['warnings'] : json['warnings'].map(CartWarning_1.CartWarningFromJSON),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
exports.CartLinesResponseFromJSONTyped = CartLinesResponseFromJSONTyped;
|
|
40
|
+
function CartLinesResponseToJSON(value) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'cartLines': (value['cartLines'] === null || value['cartLines'] === undefined) ? value['cartLines'] : value['cartLines'].map(CartLine_1.CartLineToJSON),
|
|
46
|
+
'warnings': (value['warnings'] === null || value['warnings'] === undefined) ? value['warnings'] : value['warnings'].map(CartWarning_1.CartWarningToJSON),
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.CartLinesResponseToJSON = CartLinesResponseToJSON;
|
|
@@ -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
|
+
import type { OwnerLink } from './OwnerLink';
|
|
13
|
+
import type { HttpLink } from './HttpLink';
|
|
14
|
+
import type { CartRecordTransport } from './CartRecordTransport';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface CartRecord
|
|
19
|
+
*/
|
|
20
|
+
export interface CartRecord {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof CartRecord
|
|
25
|
+
*/
|
|
26
|
+
id: number;
|
|
27
|
+
/**
|
|
28
|
+
* Channel identifier
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof CartRecord
|
|
31
|
+
*/
|
|
32
|
+
channel: string;
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @type {OwnerLink}
|
|
36
|
+
* @memberof CartRecord
|
|
37
|
+
*/
|
|
38
|
+
owner: OwnerLink;
|
|
39
|
+
/**
|
|
40
|
+
*
|
|
41
|
+
* @type {CartRecordTransport}
|
|
42
|
+
* @memberof CartRecord
|
|
43
|
+
*/
|
|
44
|
+
transport: CartRecordTransport;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {HttpLink}
|
|
48
|
+
* @memberof CartRecord
|
|
49
|
+
*/
|
|
50
|
+
lines: HttpLink;
|
|
51
|
+
/**
|
|
52
|
+
* Total price excluding taxes
|
|
53
|
+
* @type {number}
|
|
54
|
+
* @memberof CartRecord
|
|
55
|
+
*/
|
|
56
|
+
totalExcludingTaxes: number;
|
|
57
|
+
/**
|
|
58
|
+
* Total price including taxes
|
|
59
|
+
* @type {number}
|
|
60
|
+
* @memberof CartRecord
|
|
61
|
+
*/
|
|
62
|
+
totalIncludingTaxes: number;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Check if a given object implements the CartRecord interface.
|
|
66
|
+
*/
|
|
67
|
+
export declare function instanceOfCartRecord(value: object): value is CartRecord;
|
|
68
|
+
export declare function CartRecordFromJSON(json: any): CartRecord;
|
|
69
|
+
export declare function CartRecordFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartRecord;
|
|
70
|
+
export declare function CartRecordToJSON(value?: CartRecord | null): any;
|
|
@@ -0,0 +1,74 @@
|
|
|
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.CartRecordToJSON = exports.CartRecordFromJSONTyped = exports.CartRecordFromJSON = exports.instanceOfCartRecord = void 0;
|
|
17
|
+
var OwnerLink_1 = require("./OwnerLink");
|
|
18
|
+
var HttpLink_1 = require("./HttpLink");
|
|
19
|
+
var CartRecordTransport_1 = require("./CartRecordTransport");
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the CartRecord interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfCartRecord(value) {
|
|
24
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('channel' in value) || value['channel'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('owner' in value) || value['owner'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('transport' in value) || value['transport'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('lines' in value) || value['lines'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('totalExcludingTaxes' in value) || value['totalExcludingTaxes'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('totalIncludingTaxes' in value) || value['totalIncludingTaxes'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
return true;
|
|
39
|
+
}
|
|
40
|
+
exports.instanceOfCartRecord = instanceOfCartRecord;
|
|
41
|
+
function CartRecordFromJSON(json) {
|
|
42
|
+
return CartRecordFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
exports.CartRecordFromJSON = CartRecordFromJSON;
|
|
45
|
+
function CartRecordFromJSONTyped(json, ignoreDiscriminator) {
|
|
46
|
+
if (json == null) {
|
|
47
|
+
return json;
|
|
48
|
+
}
|
|
49
|
+
return {
|
|
50
|
+
'id': json['id'],
|
|
51
|
+
'channel': json['channel'],
|
|
52
|
+
'owner': (json['owner'] === null || json['owner'] === undefined) ? json['owner'] : (0, OwnerLink_1.OwnerLinkFromJSON)(json['owner']),
|
|
53
|
+
'transport': (json['transport'] === null || json['transport'] === undefined) ? json['transport'] : (0, CartRecordTransport_1.CartRecordTransportFromJSON)(json['transport']),
|
|
54
|
+
'lines': (json['lines'] === null || json['lines'] === undefined) ? json['lines'] : (0, HttpLink_1.HttpLinkFromJSON)(json['lines']),
|
|
55
|
+
'totalExcludingTaxes': json['totalExcludingTaxes'],
|
|
56
|
+
'totalIncludingTaxes': json['totalIncludingTaxes'],
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.CartRecordFromJSONTyped = CartRecordFromJSONTyped;
|
|
60
|
+
function CartRecordToJSON(value) {
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'id': value['id'],
|
|
66
|
+
'channel': value['channel'],
|
|
67
|
+
'owner': (0, OwnerLink_1.OwnerLinkToJSON)(value['owner']),
|
|
68
|
+
'transport': (0, CartRecordTransport_1.CartRecordTransportToJSON)(value['transport']),
|
|
69
|
+
'lines': (0, HttpLink_1.HttpLinkToJSON)(value['lines']),
|
|
70
|
+
'totalExcludingTaxes': value['totalExcludingTaxes'],
|
|
71
|
+
'totalIncludingTaxes': value['totalIncludingTaxes'],
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
exports.CartRecordToJSON = CartRecordToJSON;
|
|
@@ -12,38 +12,38 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface CartRecordTransport
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface CartRecordTransport {
|
|
18
18
|
/**
|
|
19
19
|
* Minimum price to buy
|
|
20
20
|
* @type {number}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof CartRecordTransport
|
|
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 CartRecordTransport
|
|
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 CartRecordTransport
|
|
34
34
|
*/
|
|
35
35
|
freeCarriageThreshold: number | null;
|
|
36
36
|
/**
|
|
37
37
|
* Delivery delay in days
|
|
38
38
|
* @type {number}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof CartRecordTransport
|
|
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 CartRecordTransport interface.
|
|
45
45
|
*/
|
|
46
|
-
export declare function
|
|
47
|
-
export declare function
|
|
48
|
-
export declare function
|
|
49
|
-
export declare function
|
|
46
|
+
export declare function instanceOfCartRecordTransport(value: object): value is CartRecordTransport;
|
|
47
|
+
export declare function CartRecordTransportFromJSON(json: any): CartRecordTransport;
|
|
48
|
+
export declare function CartRecordTransportFromJSONTyped(json: any, ignoreDiscriminator: boolean): CartRecordTransport;
|
|
49
|
+
export declare function CartRecordTransportToJSON(value?: CartRecordTransport | null): any;
|