@lcdp/api-react-rest-client 3.1.7-LDS-5578-api-distinct-status-code-accodi.23847291272 → 3.1.7-develop.23855465779
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/auth/src/models/RestError.d.ts +5 -3
- package/auth/src/models/RestError.js +5 -3
- package/auth/src/models/index.d.ts +0 -4
- package/auth/src/models/index.js +0 -4
- package/catalog/src/models/RestError.d.ts +5 -3
- package/catalog/src/models/RestError.js +5 -3
- package/chargebee-hook/src/models/RestError.d.ts +5 -3
- package/chargebee-hook/src/models/RestError.js +5 -3
- package/configuration/src/models/RestError.d.ts +5 -3
- package/configuration/src/models/RestError.js +5 -3
- package/content/src/models/RestError.d.ts +5 -3
- package/content/src/models/RestError.js +5 -3
- package/favorite/src/models/RestError.d.ts +5 -3
- package/favorite/src/models/RestError.js +5 -3
- package/inventory/src/models/RestError.d.ts +5 -3
- package/inventory/src/models/RestError.js +5 -3
- package/invoice/src/models/RestError.d.ts +5 -3
- package/invoice/src/models/RestError.js +5 -3
- package/laboratory-store/src/models/RestError.d.ts +5 -3
- package/laboratory-store/src/models/RestError.js +5 -3
- package/lexicon/src/models/RestError.d.ts +5 -3
- package/lexicon/src/models/RestError.js +5 -3
- package/litigation/src/models/RestError.d.ts +5 -3
- package/litigation/src/models/RestError.js +5 -3
- package/magic-cart/src/models/ExpressOrder.d.ts +3 -3
- package/magic-cart/src/models/ExpressOrder.js +3 -3
- package/magic-cart/src/models/SaleOfferProposal.d.ts +51 -0
- package/magic-cart/src/models/SaleOfferProposal.js +61 -0
- package/magic-cart/src/models/SellerProposal.d.ts +45 -0
- package/magic-cart/src/models/SellerProposal.js +57 -0
- package/magic-cart/src/models/index.d.ts +2 -1
- package/magic-cart/src/models/index.js +2 -1
- package/mangopay-hook/src/models/RestError.d.ts +5 -3
- package/mangopay-hook/src/models/RestError.js +5 -3
- package/notification/src/models/RestError.d.ts +5 -3
- package/notification/src/models/RestError.js +5 -3
- package/order/src/apis/ManageMetaOrderApi.d.ts +45 -0
- package/{shopping-cart/src/apis/SearchCartLineApi.js → order/src/apis/ManageMetaOrderApi.js} +41 -46
- package/order/src/apis/ManageOrderApi.d.ts +8 -8
- package/order/src/apis/ManageOrderApi.js +10 -9
- package/order/src/apis/index.d.ts +1 -2
- package/order/src/apis/index.js +1 -2
- package/order/src/models/AnyMetaOrderWarning.d.ts +26 -0
- package/order/src/models/AnyMetaOrderWarning.js +50 -0
- package/order/src/models/MetaOrder.d.ts +64 -0
- package/order/src/models/MetaOrder.js +70 -0
- package/order/src/models/MetaOrderCreationParameters.d.ts +38 -0
- package/order/src/models/MetaOrderCreationParameters.js +52 -0
- package/order/src/models/MetaOrderCreationSubCartParameters.d.ts +31 -0
- package/order/src/models/MetaOrderCreationSubCartParameters.js +47 -0
- package/order/src/models/MetaOrderPrices.d.ts +79 -0
- package/order/src/models/MetaOrderPrices.js +79 -0
- package/order/src/models/MetaOrderWarning.d.ts +31 -0
- package/order/src/models/MetaOrderWarning.js +47 -0
- package/order/src/models/MetaOrderWithWarnings.d.ts +39 -0
- package/order/src/models/MetaOrderWithWarnings.js +49 -0
- package/order/src/models/Order.d.ts +75 -80
- package/order/src/models/Order.js +48 -53
- package/order/src/models/OrderItemPrices.d.ts +3 -3
- package/order/src/models/{ForeorderItemWarning.d.ts → OrderItemWarning.d.ts} +18 -23
- package/order/src/models/{ForeorderItemWarning.js → OrderItemWarning.js} +15 -18
- package/order/src/models/OrderWarning.d.ts +51 -0
- package/order/src/models/{ForeorderWarning.js → OrderWarning.js} +12 -12
- package/order/src/models/RestError.d.ts +5 -3
- package/order/src/models/RestError.js +5 -3
- package/order/src/models/ShoppedOffer.d.ts +2 -2
- package/order/src/models/ShoppedOffer.js +2 -2
- package/order/src/models/index.d.ts +9 -17
- package/order/src/models/index.js +9 -17
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +5 -3
- package/product/src/models/RestError.js +5 -3
- package/pub/src/models/RestError.d.ts +5 -3
- package/pub/src/models/RestError.js +5 -3
- package/rfx/src/models/RestError.d.ts +5 -3
- package/rfx/src/models/RestError.js +5 -3
- package/sale-offer/src/models/RestError.d.ts +5 -3
- package/sale-offer/src/models/RestError.js +5 -3
- package/servant/src/models/RestError.d.ts +5 -3
- package/servant/src/models/RestError.js +5 -3
- package/shipment/src/models/RestError.d.ts +5 -3
- package/shipment/src/models/RestError.js +5 -3
- package/shopping-cart/src/apis/ManageCartApi.d.ts +24 -35
- package/shopping-cart/src/apis/ManageCartApi.js +120 -57
- package/shopping-cart/src/apis/ManageCartSubCartApi.d.ts +107 -0
- package/shopping-cart/src/apis/ManageCartSubCartApi.js +556 -0
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.d.ts +151 -0
- package/shopping-cart/src/apis/ManageCartSubCartLineApi.js +879 -0
- package/shopping-cart/src/apis/index.d.ts +2 -3
- package/shopping-cart/src/apis/index.js +2 -3
- package/shopping-cart/src/models/Cart.d.ts +4 -61
- package/shopping-cart/src/models/Cart.js +2 -47
- package/shopping-cart/src/models/CartSubCart.d.ts +76 -0
- package/shopping-cart/src/models/CartSubCart.js +78 -0
- package/shopping-cart/src/models/{CartLine.d.ts → CartSubCartLine.d.ts} +13 -13
- package/shopping-cart/src/models/{CartLine.js → CartSubCartLine.js} +11 -11
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.d.ts +37 -0
- package/shopping-cart/src/models/CartSubCartLineUpdateParameters.js +49 -0
- package/shopping-cart/src/models/{CartTransport.d.ts → CartSubCartTransport.d.ts} +12 -12
- package/shopping-cart/src/models/{CartTransport.js → CartSubCartTransport.js} +11 -11
- package/shopping-cart/src/models/RestError.d.ts +5 -3
- package/shopping-cart/src/models/RestError.js +5 -3
- 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 +4 -12
- package/shopping-cart/src/models/index.js +4 -12
- package/smuggler/src/models/RestError.d.ts +5 -3
- package/smuggler/src/models/RestError.js +5 -3
- package/statistic/src/models/RestError.d.ts +5 -3
- package/statistic/src/models/RestError.js +5 -3
- package/third-party/src/models/RestError.d.ts +5 -3
- package/third-party/src/models/RestError.js +5 -3
- package/ubo/src/models/RestError.d.ts +5 -3
- package/ubo/src/models/RestError.js +5 -3
- package/user/src/models/RestError.d.ts +5 -3
- package/user/src/models/RestError.js +5 -3
- package/wish/src/models/RestError.d.ts +5 -3
- package/wish/src/models/RestError.js +5 -3
- package/auth/src/models/AnonymousUser.d.ts +0 -43
- package/auth/src/models/AnonymousUser.js +0 -55
- package/auth/src/models/AnyUser.d.ts +0 -26
- package/auth/src/models/AnyUser.js +0 -50
- package/auth/src/models/IdentifiedUser.d.ts +0 -37
- package/auth/src/models/IdentifiedUser.js +0 -51
- package/auth/src/models/User.d.ts +0 -31
- package/auth/src/models/User.js +0 -47
- package/magic-cart/src/models/ShoppedOffer.d.ts +0 -43
- package/magic-cart/src/models/ShoppedOffer.js +0 -53
- package/order/src/apis/ManageForeorderApi.d.ts +0 -31
- package/order/src/apis/ManageForeorderApi.js +0 -163
- package/order/src/apis/SearchForeorderItemApi.d.ts +0 -44
- package/order/src/apis/SearchForeorderItemApi.js +0 -175
- package/order/src/models/AnyForeorderCreationParameters.d.ts +0 -23
- package/order/src/models/AnyForeorderCreationParameters.js +0 -45
- package/order/src/models/AnyForeorderWarning.d.ts +0 -26
- package/order/src/models/AnyForeorderWarning.js +0 -50
- package/order/src/models/AnyOrderCreationParameters.d.ts +0 -26
- package/order/src/models/AnyOrderCreationParameters.js +0 -50
- package/order/src/models/AnySource.d.ts +0 -26
- package/order/src/models/AnySource.js +0 -50
- package/order/src/models/CartForeorderCreationParameters.d.ts +0 -37
- package/order/src/models/CartForeorderCreationParameters.js +0 -51
- package/order/src/models/CartSource.d.ts +0 -37
- package/order/src/models/CartSource.js +0 -49
- package/order/src/models/CloneOrderCreationParameters.d.ts +0 -37
- package/order/src/models/CloneOrderCreationParameters.js +0 -51
- package/order/src/models/Foreorder.d.ts +0 -155
- package/order/src/models/Foreorder.js +0 -128
- package/order/src/models/ForeorderCreationParameters.d.ts +0 -31
- package/order/src/models/ForeorderCreationParameters.js +0 -47
- package/order/src/models/ForeorderOrderCreationParameters.d.ts +0 -37
- package/order/src/models/ForeorderOrderCreationParameters.js +0 -51
- package/order/src/models/ForeorderWarning.d.ts +0 -51
- package/order/src/models/ForeorderWarningBase.d.ts +0 -37
- package/order/src/models/ForeorderWarningBase.js +0 -51
- package/order/src/models/ForeorderWithWarnings.d.ts +0 -39
- package/order/src/models/ForeorderWithWarnings.js +0 -53
- package/order/src/models/OrderCreationParameters.d.ts +0 -31
- package/order/src/models/OrderCreationParameters.js +0 -47
- package/order/src/models/OrderSource.d.ts +0 -37
- package/order/src/models/OrderSource.js +0 -49
- package/order/src/models/Source.d.ts +0 -31
- package/order/src/models/Source.js +0 -45
- package/shopping-cart/src/apis/ManageCartLineApi.d.ts +0 -45
- package/shopping-cart/src/apis/ManageCartLineApi.js +0 -238
- package/shopping-cart/src/apis/SearchCartApi.d.ts +0 -59
- package/shopping-cart/src/apis/SearchCartApi.js +0 -267
- package/shopping-cart/src/apis/SearchCartLineApi.d.ts +0 -41
- package/shopping-cart/src/models/CartCreationParameters.d.ts +0 -44
- package/shopping-cart/src/models/CartCreationParameters.js +0 -56
- package/shopping-cart/src/models/CartLineUpdateParameters.d.ts +0 -37
- package/shopping-cart/src/models/CartLineUpdateParameters.js +0 -49
- package/shopping-cart/src/models/CartLineWithWarnings.d.ts +0 -39
- package/shopping-cart/src/models/CartLineWithWarnings.js +0 -49
- package/shopping-cart/src/models/CartSummary.d.ts +0 -31
- package/shopping-cart/src/models/CartSummary.js +0 -47
- package/shopping-cart/src/models/CartUpdateParameters.d.ts +0 -31
- package/shopping-cart/src/models/CartUpdateParameters.js +0 -45
- package/shopping-cart/src/models/CartWarning.d.ts +0 -70
- package/shopping-cart/src/models/CartWarning.js +0 -67
- package/shopping-cart/src/models/CartsWithWarnings.d.ts +0 -39
- package/shopping-cart/src/models/CartsWithWarnings.js +0 -49
- package/shopping-cart/src/models/OwnerLink.d.ts +0 -43
- package/shopping-cart/src/models/OwnerLink.js +0 -53
- package/shopping-cart/src/models/PaginatedCarts.d.ts +0 -46
- package/shopping-cart/src/models/PaginatedCarts.js +0 -58
- package/shopping-cart/src/models/PagingMetadata.d.ts +0 -49
- package/shopping-cart/src/models/PagingMetadata.js +0 -55
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number * `CODE026` - SubCart not found in cart
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE024` - Invalid International Bank Account Number * `MESSAGE026` - SubCart not found in cart
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -60,6 +60,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
60
60
|
readonly CODE023: "CODE023";
|
|
61
61
|
readonly CODE024: "CODE024";
|
|
62
62
|
readonly CODE025: "CODE025";
|
|
63
|
+
readonly CODE026: "CODE026";
|
|
63
64
|
};
|
|
64
65
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
65
66
|
/**
|
|
@@ -80,7 +81,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
80
81
|
readonly MESSAGE011: "Empty User Address";
|
|
81
82
|
readonly MESSAGE012: "Empty User Legal Name";
|
|
82
83
|
readonly MESSAGE013: "Invalid quantities";
|
|
83
|
-
readonly MESSAGE014: "Invalid
|
|
84
|
+
readonly MESSAGE014: "Invalid Meta-Order";
|
|
84
85
|
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
85
86
|
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
86
87
|
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
@@ -92,6 +93,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
92
93
|
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
93
94
|
readonly MESSAGE024: "Image missing";
|
|
94
95
|
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
96
|
+
readonly MESSAGE026: "SubCart not found in cart";
|
|
95
97
|
};
|
|
96
98
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
97
99
|
/**
|
|
@@ -43,7 +43,8 @@ exports.RestErrorCodeEnum = {
|
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
44
|
CODE023: 'CODE023',
|
|
45
45
|
CODE024: 'CODE024',
|
|
46
|
-
CODE025: 'CODE025'
|
|
46
|
+
CODE025: 'CODE025',
|
|
47
|
+
CODE026: 'CODE026'
|
|
47
48
|
};
|
|
48
49
|
/**
|
|
49
50
|
* @export
|
|
@@ -63,7 +64,7 @@ exports.RestErrorMessageEnum = {
|
|
|
63
64
|
MESSAGE011: 'Empty User Address',
|
|
64
65
|
MESSAGE012: 'Empty User Legal Name',
|
|
65
66
|
MESSAGE013: 'Invalid quantities',
|
|
66
|
-
MESSAGE014: 'Invalid
|
|
67
|
+
MESSAGE014: 'Invalid Meta-Order',
|
|
67
68
|
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
68
69
|
MESSAGE016: 'Can not release a negative quantity of items',
|
|
69
70
|
MESSAGE017: 'Batch is forbidden for sale',
|
|
@@ -74,7 +75,8 @@ exports.RestErrorMessageEnum = {
|
|
|
74
75
|
MESSAGE022: 'Disabled feature',
|
|
75
76
|
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
76
77
|
MESSAGE024: 'Image missing',
|
|
77
|
-
MESSAGE025: 'Invalid International Bank Account Number'
|
|
78
|
+
MESSAGE025: 'Invalid International Bank Account Number',
|
|
79
|
+
MESSAGE026: 'SubCart not found in cart'
|
|
78
80
|
};
|
|
79
81
|
/**
|
|
80
82
|
* Check if a given object implements the RestError interface.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number * `CODE026` - SubCart not found in cart
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE024` - Invalid International Bank Account Number * `MESSAGE026` - SubCart not found in cart
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -60,6 +60,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
60
60
|
readonly CODE023: "CODE023";
|
|
61
61
|
readonly CODE024: "CODE024";
|
|
62
62
|
readonly CODE025: "CODE025";
|
|
63
|
+
readonly CODE026: "CODE026";
|
|
63
64
|
};
|
|
64
65
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
65
66
|
/**
|
|
@@ -80,7 +81,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
80
81
|
readonly MESSAGE011: "Empty User Address";
|
|
81
82
|
readonly MESSAGE012: "Empty User Legal Name";
|
|
82
83
|
readonly MESSAGE013: "Invalid quantities";
|
|
83
|
-
readonly MESSAGE014: "Invalid
|
|
84
|
+
readonly MESSAGE014: "Invalid Meta-Order";
|
|
84
85
|
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
85
86
|
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
86
87
|
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
@@ -92,6 +93,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
92
93
|
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
93
94
|
readonly MESSAGE024: "Image missing";
|
|
94
95
|
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
96
|
+
readonly MESSAGE026: "SubCart not found in cart";
|
|
95
97
|
};
|
|
96
98
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
97
99
|
/**
|
|
@@ -43,7 +43,8 @@ exports.RestErrorCodeEnum = {
|
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
44
|
CODE023: 'CODE023',
|
|
45
45
|
CODE024: 'CODE024',
|
|
46
|
-
CODE025: 'CODE025'
|
|
46
|
+
CODE025: 'CODE025',
|
|
47
|
+
CODE026: 'CODE026'
|
|
47
48
|
};
|
|
48
49
|
/**
|
|
49
50
|
* @export
|
|
@@ -63,7 +64,7 @@ exports.RestErrorMessageEnum = {
|
|
|
63
64
|
MESSAGE011: 'Empty User Address',
|
|
64
65
|
MESSAGE012: 'Empty User Legal Name',
|
|
65
66
|
MESSAGE013: 'Invalid quantities',
|
|
66
|
-
MESSAGE014: 'Invalid
|
|
67
|
+
MESSAGE014: 'Invalid Meta-Order',
|
|
67
68
|
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
68
69
|
MESSAGE016: 'Can not release a negative quantity of items',
|
|
69
70
|
MESSAGE017: 'Batch is forbidden for sale',
|
|
@@ -74,7 +75,8 @@ exports.RestErrorMessageEnum = {
|
|
|
74
75
|
MESSAGE022: 'Disabled feature',
|
|
75
76
|
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
76
77
|
MESSAGE024: 'Image missing',
|
|
77
|
-
MESSAGE025: 'Invalid International Bank Account Number'
|
|
78
|
+
MESSAGE025: 'Invalid International Bank Account Number',
|
|
79
|
+
MESSAGE026: 'SubCart not found in cart'
|
|
78
80
|
};
|
|
79
81
|
/**
|
|
80
82
|
* Check if a given object implements the RestError interface.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number * `CODE026` - SubCart not found in cart
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE024` - Invalid International Bank Account Number * `MESSAGE026` - SubCart not found in cart
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -60,6 +60,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
60
60
|
readonly CODE023: "CODE023";
|
|
61
61
|
readonly CODE024: "CODE024";
|
|
62
62
|
readonly CODE025: "CODE025";
|
|
63
|
+
readonly CODE026: "CODE026";
|
|
63
64
|
};
|
|
64
65
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
65
66
|
/**
|
|
@@ -80,7 +81,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
80
81
|
readonly MESSAGE011: "Empty User Address";
|
|
81
82
|
readonly MESSAGE012: "Empty User Legal Name";
|
|
82
83
|
readonly MESSAGE013: "Invalid quantities";
|
|
83
|
-
readonly MESSAGE014: "Invalid
|
|
84
|
+
readonly MESSAGE014: "Invalid Meta-Order";
|
|
84
85
|
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
85
86
|
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
86
87
|
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
@@ -92,6 +93,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
92
93
|
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
93
94
|
readonly MESSAGE024: "Image missing";
|
|
94
95
|
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
96
|
+
readonly MESSAGE026: "SubCart not found in cart";
|
|
95
97
|
};
|
|
96
98
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
97
99
|
/**
|
|
@@ -43,7 +43,8 @@ exports.RestErrorCodeEnum = {
|
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
44
|
CODE023: 'CODE023',
|
|
45
45
|
CODE024: 'CODE024',
|
|
46
|
-
CODE025: 'CODE025'
|
|
46
|
+
CODE025: 'CODE025',
|
|
47
|
+
CODE026: 'CODE026'
|
|
47
48
|
};
|
|
48
49
|
/**
|
|
49
50
|
* @export
|
|
@@ -63,7 +64,7 @@ exports.RestErrorMessageEnum = {
|
|
|
63
64
|
MESSAGE011: 'Empty User Address',
|
|
64
65
|
MESSAGE012: 'Empty User Legal Name',
|
|
65
66
|
MESSAGE013: 'Invalid quantities',
|
|
66
|
-
MESSAGE014: 'Invalid
|
|
67
|
+
MESSAGE014: 'Invalid Meta-Order',
|
|
67
68
|
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
68
69
|
MESSAGE016: 'Can not release a negative quantity of items',
|
|
69
70
|
MESSAGE017: 'Batch is forbidden for sale',
|
|
@@ -74,7 +75,8 @@ exports.RestErrorMessageEnum = {
|
|
|
74
75
|
MESSAGE022: 'Disabled feature',
|
|
75
76
|
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
76
77
|
MESSAGE024: 'Image missing',
|
|
77
|
-
MESSAGE025: 'Invalid International Bank Account Number'
|
|
78
|
+
MESSAGE025: 'Invalid International Bank Account Number',
|
|
79
|
+
MESSAGE026: 'SubCart not found in cart'
|
|
78
80
|
};
|
|
79
81
|
/**
|
|
80
82
|
* Check if a given object implements the RestError interface.
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface RestError {
|
|
18
18
|
/**
|
|
19
|
-
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid
|
|
19
|
+
* Unique code to identify an error : * `CODE000` - Using outdated resource * `CODE001` - Invalid credentials * `CODE002` - Cannot renew token * `CODE003` - Invalid User CGV * `CODE004` - Resource already exists * `CODE005` - User account is disabled * `CODE006` - Invalid schedule * `CODE007` - Wrong Address according CHRONOPOST * `CODE008` - Invalid Mangopay Mandate * `CODE009` - Invalid Status * `CODE010` - Image dimension exceeded * `CODE011` - Empty User Address * `CODE012` - Empty User Legal Name * `CODE013` - Invalid quantities * `CODE014` - Invalid Meta-Order * `CODE015` - Can not release quantity greater than claimed * `CODE016` - Can not release a negative quantity of items * `CODE017` - Batch is forbidden for sale * `CODE018` - Trial already used * `CODE019` - Unable to generate session from disposableToken for admin users * `CODE020` - ETag do not match * `CODE021` - Missing informations for Offisante subscription * `CODE022` - Disabled feature * `CODE023` - Invalid Sca Enrollment status * `CODE024` - Image missing * `CODE025` - Invalid International Bank Account Number * `CODE026` - SubCart not found in cart
|
|
20
20
|
*
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof RestError
|
|
23
23
|
*/
|
|
24
24
|
code: RestErrorCodeEnum;
|
|
25
25
|
/**
|
|
26
|
-
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid
|
|
26
|
+
* Unique code to identify an error : * `MESSAGE000` - Using outdated resource * `MESSAGE001` - Invalid credentials * `MESSAGE002` - Cannot renew token * `MESSAGE003` - Invalid User CGV * `MESSAGE004` - Resource already exists * `MESSAGE005` - User account is disabled * `MESSAGE006` - Invalid schedule * `MESSAGE007` - Wrong Address according CHRONOPOST * `MESSAGE008` - Invalid Mangopay Mandate * `MESSAGE009` - Invalid Status * `MESSAGE010` - Image dimension exceeded * `MESSAGE011` - Empty User Address * `MESSAGE012` - Empty User Legal Name * `MESSAGE013` - Invalid quantities * `MESSAGE014` - Invalid Meta-Order * `MESSAGE015` - Can not release quantity greater than claimed * `MESSAGE016` - Can not release a negative quantity of items * `MESSAGE017` - Batch is forbidden for sale * `MESSAGE018` - Trial already used * `MESSAGE019` - Unable to generate session from disposableToken for admin users * `MESSAGE020` - ETag do not match * `MESSAGE021` - Missing informations for Offisante subscription * `MESSAGE022` - Disabled feature * `MESSAGE023` - Invalid Sca Enrollment status * `MESSAGE024` - Image missing * `MESSAGE024` - Invalid International Bank Account Number * `MESSAGE026` - SubCart not found in cart
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -60,6 +60,7 @@ export declare const RestErrorCodeEnum: {
|
|
|
60
60
|
readonly CODE023: "CODE023";
|
|
61
61
|
readonly CODE024: "CODE024";
|
|
62
62
|
readonly CODE025: "CODE025";
|
|
63
|
+
readonly CODE026: "CODE026";
|
|
63
64
|
};
|
|
64
65
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
65
66
|
/**
|
|
@@ -80,7 +81,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
80
81
|
readonly MESSAGE011: "Empty User Address";
|
|
81
82
|
readonly MESSAGE012: "Empty User Legal Name";
|
|
82
83
|
readonly MESSAGE013: "Invalid quantities";
|
|
83
|
-
readonly MESSAGE014: "Invalid
|
|
84
|
+
readonly MESSAGE014: "Invalid Meta-Order";
|
|
84
85
|
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
85
86
|
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
86
87
|
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
@@ -92,6 +93,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
92
93
|
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
93
94
|
readonly MESSAGE024: "Image missing";
|
|
94
95
|
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
96
|
+
readonly MESSAGE026: "SubCart not found in cart";
|
|
95
97
|
};
|
|
96
98
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
97
99
|
/**
|
|
@@ -43,7 +43,8 @@ exports.RestErrorCodeEnum = {
|
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
44
|
CODE023: 'CODE023',
|
|
45
45
|
CODE024: 'CODE024',
|
|
46
|
-
CODE025: 'CODE025'
|
|
46
|
+
CODE025: 'CODE025',
|
|
47
|
+
CODE026: 'CODE026'
|
|
47
48
|
};
|
|
48
49
|
/**
|
|
49
50
|
* @export
|
|
@@ -63,7 +64,7 @@ exports.RestErrorMessageEnum = {
|
|
|
63
64
|
MESSAGE011: 'Empty User Address',
|
|
64
65
|
MESSAGE012: 'Empty User Legal Name',
|
|
65
66
|
MESSAGE013: 'Invalid quantities',
|
|
66
|
-
MESSAGE014: 'Invalid
|
|
67
|
+
MESSAGE014: 'Invalid Meta-Order',
|
|
67
68
|
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
68
69
|
MESSAGE016: 'Can not release a negative quantity of items',
|
|
69
70
|
MESSAGE017: 'Batch is forbidden for sale',
|
|
@@ -74,7 +75,8 @@ exports.RestErrorMessageEnum = {
|
|
|
74
75
|
MESSAGE022: 'Disabled feature',
|
|
75
76
|
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
76
77
|
MESSAGE024: 'Image missing',
|
|
77
|
-
MESSAGE025: 'Invalid International Bank Account Number'
|
|
78
|
+
MESSAGE025: 'Invalid International Bank Account Number',
|
|
79
|
+
MESSAGE026: 'SubCart not found in cart'
|
|
78
80
|
};
|
|
79
81
|
/**
|
|
80
82
|
* Check if a given object implements the RestError interface.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import type {
|
|
12
|
+
import type { SellerProposal } from './SellerProposal';
|
|
13
13
|
/**
|
|
14
14
|
* Express Order as a list of sale offer proposal grouped by sellers
|
|
15
15
|
* @export
|
|
@@ -24,10 +24,10 @@ export interface ExpressOrder {
|
|
|
24
24
|
optimal?: boolean;
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
|
-
* @type {Array<
|
|
27
|
+
* @type {Array<SellerProposal>}
|
|
28
28
|
* @memberof ExpressOrder
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
sellerProposals?: Array<SellerProposal>;
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Check if a given object implements the ExpressOrder interface.
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.ExpressOrderToJSON = exports.ExpressOrderFromJSONTyped = exports.ExpressOrderFromJSON = exports.instanceOfExpressOrder = void 0;
|
|
17
|
-
var
|
|
17
|
+
var SellerProposal_1 = require("./SellerProposal");
|
|
18
18
|
/**
|
|
19
19
|
* Check if a given object implements the ExpressOrder interface.
|
|
20
20
|
*/
|
|
@@ -32,7 +32,7 @@ function ExpressOrderFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
32
|
}
|
|
33
33
|
return {
|
|
34
34
|
'optimal': json['optimal'],
|
|
35
|
-
'
|
|
35
|
+
'sellerProposals': (json['sellerProposals'] === null || json['sellerProposals'] === undefined) ? json['sellerProposals'] : json['sellerProposals'].map(SellerProposal_1.SellerProposalFromJSON),
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
exports.ExpressOrderFromJSONTyped = ExpressOrderFromJSONTyped;
|
|
@@ -42,7 +42,7 @@ function ExpressOrderToJSON(value) {
|
|
|
42
42
|
}
|
|
43
43
|
return {
|
|
44
44
|
'optimal': value['optimal'],
|
|
45
|
-
'
|
|
45
|
+
'sellerProposals': (value['sellerProposals'] === null || value['sellerProposals'] === undefined) ? value['sellerProposals'] : value['sellerProposals'].map(SellerProposal_1.SellerProposalToJSON),
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
exports.ExpressOrderToJSON = ExpressOrderToJSON;
|
|
@@ -0,0 +1,51 @@
|
|
|
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 type { ProductLink } from './ProductLink';
|
|
13
|
+
import type { 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
|
+
/**
|
|
46
|
+
* Check if a given object implements the SaleOfferProposal interface.
|
|
47
|
+
*/
|
|
48
|
+
export declare function instanceOfSaleOfferProposal(value: object): value is SaleOfferProposal;
|
|
49
|
+
export declare function SaleOfferProposalFromJSON(json: any): SaleOfferProposal;
|
|
50
|
+
export declare function SaleOfferProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SaleOfferProposal;
|
|
51
|
+
export declare function SaleOfferProposalToJSON(value?: SaleOfferProposal | null): any;
|
|
@@ -0,0 +1,61 @@
|
|
|
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 = exports.instanceOfSaleOfferProposal = void 0;
|
|
17
|
+
var ProductLink_1 = require("./ProductLink");
|
|
18
|
+
var SaleOfferLink_1 = require("./SaleOfferLink");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the SaleOfferProposal interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfSaleOfferProposal(value) {
|
|
23
|
+
if (!('product' in value) || value['product'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('saleOffer' in value) || value['saleOffer'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('distributedRangeId' in value) || value['distributedRangeId'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('quantity' in value) || value['quantity'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
exports.instanceOfSaleOfferProposal = instanceOfSaleOfferProposal;
|
|
34
|
+
function SaleOfferProposalFromJSON(json) {
|
|
35
|
+
return SaleOfferProposalFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
exports.SaleOfferProposalFromJSON = SaleOfferProposalFromJSON;
|
|
38
|
+
function SaleOfferProposalFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'product': (json['product'] === null || json['product'] === undefined) ? json['product'] : (0, ProductLink_1.ProductLinkFromJSON)(json['product']),
|
|
44
|
+
'saleOffer': (json['saleOffer'] === null || json['saleOffer'] === undefined) ? json['saleOffer'] : (0, SaleOfferLink_1.SaleOfferLinkFromJSON)(json['saleOffer']),
|
|
45
|
+
'distributedRangeId': json['distributedRangeId'],
|
|
46
|
+
'quantity': json['quantity'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
exports.SaleOfferProposalFromJSONTyped = SaleOfferProposalFromJSONTyped;
|
|
50
|
+
function SaleOfferProposalToJSON(value) {
|
|
51
|
+
if (value == null) {
|
|
52
|
+
return value;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'product': (0, ProductLink_1.ProductLinkToJSON)(value['product']),
|
|
56
|
+
'saleOffer': (0, SaleOfferLink_1.SaleOfferLinkToJSON)(value['saleOffer']),
|
|
57
|
+
'distributedRangeId': value['distributedRangeId'],
|
|
58
|
+
'quantity': value['quantity'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
exports.SaleOfferProposalToJSON = SaleOfferProposalToJSON;
|
|
@@ -0,0 +1,45 @@
|
|
|
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 type { UserLink } from './UserLink';
|
|
13
|
+
import type { SaleOfferProposal } from './SaleOfferProposal';
|
|
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
|
+
/**
|
|
40
|
+
* Check if a given object implements the SellerProposal interface.
|
|
41
|
+
*/
|
|
42
|
+
export declare function instanceOfSellerProposal(value: object): value is SellerProposal;
|
|
43
|
+
export declare function SellerProposalFromJSON(json: any): SellerProposal;
|
|
44
|
+
export declare function SellerProposalFromJSONTyped(json: any, ignoreDiscriminator: boolean): SellerProposal;
|
|
45
|
+
export declare function SellerProposalToJSON(value?: SellerProposal | null): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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 = exports.instanceOfSellerProposal = void 0;
|
|
17
|
+
var UserLink_1 = require("./UserLink");
|
|
18
|
+
var SaleOfferProposal_1 = require("./SaleOfferProposal");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the SellerProposal interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfSellerProposal(value) {
|
|
23
|
+
if (!('saleOfferProposals' in value) || value['saleOfferProposals'] === undefined)
|
|
24
|
+
return false;
|
|
25
|
+
if (!('seller' in value) || value['seller'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('freeCarriageThreshold' in value) || value['freeCarriageThreshold'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
exports.instanceOfSellerProposal = instanceOfSellerProposal;
|
|
32
|
+
function SellerProposalFromJSON(json) {
|
|
33
|
+
return SellerProposalFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
exports.SellerProposalFromJSON = SellerProposalFromJSON;
|
|
36
|
+
function SellerProposalFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'saleOfferProposals': (json['saleOfferProposals'] === null || json['saleOfferProposals'] === undefined) ? json['saleOfferProposals'] : json['saleOfferProposals'].map(SaleOfferProposal_1.SaleOfferProposalFromJSON),
|
|
42
|
+
'seller': (json['seller'] === null || json['seller'] === undefined) ? json['seller'] : (0, UserLink_1.UserLinkFromJSON)(json['seller']),
|
|
43
|
+
'freeCarriageThreshold': json['freeCarriageThreshold'],
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.SellerProposalFromJSONTyped = SellerProposalFromJSONTyped;
|
|
47
|
+
function SellerProposalToJSON(value) {
|
|
48
|
+
if (value == null) {
|
|
49
|
+
return value;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
'saleOfferProposals': (value['saleOfferProposals'] === null || value['saleOfferProposals'] === undefined) ? value['saleOfferProposals'] : value['saleOfferProposals'].map(SaleOfferProposal_1.SaleOfferProposalToJSON),
|
|
53
|
+
'seller': (0, UserLink_1.UserLinkToJSON)(value['seller']),
|
|
54
|
+
'freeCarriageThreshold': value['freeCarriageThreshold'],
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
exports.SellerProposalToJSON = SellerProposalToJSON;
|
|
@@ -12,7 +12,8 @@ export * from './ProductLink';
|
|
|
12
12
|
export * from './ProductStorageType';
|
|
13
13
|
export * from './QuotationDistributionMode';
|
|
14
14
|
export * from './SaleOfferLink';
|
|
15
|
-
export * from './
|
|
15
|
+
export * from './SaleOfferProposal';
|
|
16
|
+
export * from './SellerProposal';
|
|
16
17
|
export * from './Stock';
|
|
17
18
|
export * from './UnitaryDistributionMode';
|
|
18
19
|
export * from './UserLink';
|
|
@@ -30,7 +30,8 @@ __exportStar(require("./ProductLink"), exports);
|
|
|
30
30
|
__exportStar(require("./ProductStorageType"), exports);
|
|
31
31
|
__exportStar(require("./QuotationDistributionMode"), exports);
|
|
32
32
|
__exportStar(require("./SaleOfferLink"), exports);
|
|
33
|
-
__exportStar(require("./
|
|
33
|
+
__exportStar(require("./SaleOfferProposal"), exports);
|
|
34
|
+
__exportStar(require("./SellerProposal"), exports);
|
|
34
35
|
__exportStar(require("./Stock"), exports);
|
|
35
36
|
__exportStar(require("./UnitaryDistributionMode"), exports);
|
|
36
37
|
__exportStar(require("./UserLink"), exports);
|