@lcdp/api-react-rest-client 3.1.9 → 3.1.10
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 +3 -5
- package/auth/src/models/RestError.js +3 -5
- package/catalog/src/models/RestError.d.ts +3 -5
- package/catalog/src/models/RestError.js +3 -5
- package/chargebee-hook/src/models/RestError.d.ts +3 -5
- package/chargebee-hook/src/models/RestError.js +3 -5
- package/configuration/src/models/RestError.d.ts +3 -5
- package/configuration/src/models/RestError.js +3 -5
- package/content/src/models/RestError.d.ts +3 -5
- package/content/src/models/RestError.js +3 -5
- package/favorite/src/models/RestError.d.ts +3 -5
- package/favorite/src/models/RestError.js +3 -5
- package/inventory/src/models/RestError.d.ts +3 -5
- package/inventory/src/models/RestError.js +3 -5
- package/invoice/src/models/RestError.d.ts +3 -5
- package/invoice/src/models/RestError.js +3 -5
- package/laboratory-store/src/models/RestError.d.ts +3 -5
- package/laboratory-store/src/models/RestError.js +3 -5
- package/lexicon/src/models/RestError.d.ts +3 -5
- package/lexicon/src/models/RestError.js +3 -5
- package/litigation/src/models/RestError.d.ts +3 -5
- package/litigation/src/models/RestError.js +3 -5
- package/magic-cart/src/models/ExpressOrder.d.ts +4 -4
- package/magic-cart/src/models/ExpressOrder.js +7 -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/mangopay-hook/src/models/RestError.d.ts +3 -5
- package/mangopay-hook/src/models/RestError.js +3 -5
- package/notification/src/models/NotificationTypeId.d.ts +0 -1
- package/notification/src/models/NotificationTypeId.js +0 -1
- package/notification/src/models/RestError.d.ts +3 -5
- package/notification/src/models/RestError.js +3 -5
- package/order/src/apis/ManageForeorderApi.d.ts +31 -0
- package/order/src/apis/ManageForeorderApi.js +163 -0
- package/order/src/apis/ManageOrderApi.d.ts +9 -9
- package/order/src/apis/ManageOrderApi.js +12 -13
- package/order/src/apis/SearchForeorderItemApi.d.ts +44 -0
- package/order/src/apis/SearchForeorderItemApi.js +175 -0
- package/order/src/apis/index.d.ts +2 -1
- package/order/src/apis/index.js +2 -1
- package/order/src/models/AnyForeorderCreationParameters.d.ts +23 -0
- package/order/src/models/AnyForeorderCreationParameters.js +45 -0
- package/order/src/models/AnyForeorderWarning.d.ts +26 -0
- package/order/src/models/AnyForeorderWarning.js +50 -0
- package/order/src/models/AnyOrderCreationParameters.d.ts +26 -0
- package/order/src/models/AnyOrderCreationParameters.js +50 -0
- package/order/src/models/AnySource.d.ts +26 -0
- package/order/src/models/AnySource.js +50 -0
- package/order/src/models/CartForeorderCreationParameters.d.ts +37 -0
- package/order/src/models/CartForeorderCreationParameters.js +51 -0
- package/order/src/models/CartSource.d.ts +37 -0
- package/order/src/models/CartSource.js +49 -0
- package/order/src/models/CloneOrderCreationParameters.d.ts +37 -0
- package/order/src/models/CloneOrderCreationParameters.js +51 -0
- package/order/src/models/Foreorder.d.ts +155 -0
- package/order/src/models/Foreorder.js +128 -0
- package/order/src/models/ForeorderCreationParameters.d.ts +31 -0
- package/order/src/models/ForeorderCreationParameters.js +47 -0
- package/order/src/models/ForeorderItemWarning.d.ts +77 -0
- package/order/src/models/{OrderItemWarning.js → ForeorderItemWarning.js} +21 -18
- package/order/src/models/ForeorderOrderCreationParameters.d.ts +37 -0
- package/order/src/models/ForeorderOrderCreationParameters.js +51 -0
- package/order/src/models/ForeorderWarning.d.ts +51 -0
- package/order/src/models/{OrderWarning.js → ForeorderWarning.js} +12 -12
- package/order/src/models/ForeorderWarningBase.d.ts +37 -0
- package/order/src/models/ForeorderWarningBase.js +51 -0
- package/order/src/models/ForeordersWithWarnings.d.ts +39 -0
- package/order/src/models/ForeordersWithWarnings.js +53 -0
- package/order/src/models/Order.d.ts +80 -75
- package/order/src/models/Order.js +53 -48
- package/order/src/models/OrderAddedItem.d.ts +9 -9
- package/order/src/models/OrderAddedItem.js +18 -0
- package/order/src/models/OrderCreationParameters.d.ts +31 -0
- package/order/src/models/OrderCreationParameters.js +47 -0
- package/order/src/models/OrderItem.d.ts +9 -9
- package/order/src/models/OrderItem.js +18 -0
- package/order/src/models/OrderItemPrices.d.ts +8 -8
- package/order/src/models/OrderItemPrices.js +10 -0
- package/order/src/models/OrderPrices.d.ts +9 -9
- package/order/src/models/OrderPrices.js +18 -0
- package/order/src/models/OrderRefundedItem.d.ts +9 -9
- package/order/src/models/OrderRefundedItem.js +18 -0
- package/order/src/models/OrderRemovedItem.d.ts +9 -9
- package/order/src/models/OrderRemovedItem.js +18 -0
- package/order/src/models/OrderSource.d.ts +37 -0
- package/order/src/models/OrderSource.js +49 -0
- package/order/src/models/Reservation.d.ts +7 -7
- package/order/src/models/Reservation.js +14 -0
- package/order/src/models/RestError.d.ts +3 -5
- package/order/src/models/RestError.js +3 -5
- package/order/src/models/ShoppedOffer.d.ts +2 -2
- package/order/src/models/ShoppedOffer.js +2 -2
- package/order/src/models/Source.d.ts +31 -0
- package/order/src/models/Source.js +45 -0
- package/order/src/models/index.d.ts +17 -9
- package/order/src/models/index.js +17 -9
- package/package.json +1 -1
- package/product/src/models/RestError.d.ts +3 -5
- package/product/src/models/RestError.js +3 -5
- package/pub/src/models/RestError.d.ts +3 -5
- package/pub/src/models/RestError.js +3 -5
- package/rfx/src/models/RestError.d.ts +3 -5
- package/rfx/src/models/RestError.js +3 -5
- package/sale-offer/src/models/RestError.d.ts +3 -5
- package/sale-offer/src/models/RestError.js +3 -5
- package/servant/src/models/RestError.d.ts +3 -5
- package/servant/src/models/RestError.js +3 -5
- package/shipment/src/models/RestError.d.ts +3 -5
- package/shipment/src/models/RestError.js +3 -5
- package/shopping-cart/src/apis/ManageCartApi.d.ts +35 -24
- package/shopping-cart/src/apis/ManageCartApi.js +57 -120
- 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/{order/src/apis/ManageMetaOrderApi.js → shopping-cart/src/apis/SearchCartLineApi.js} +46 -41
- 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/CartUpdateParameters.d.ts +31 -0
- package/shopping-cart/src/models/CartUpdateParameters.js +45 -0
- package/shopping-cart/src/models/CartWarning.d.ts +76 -0
- package/shopping-cart/src/models/CartWarning.js +69 -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/RestError.d.ts +3 -5
- package/shopping-cart/src/models/RestError.js +3 -5
- 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 +12 -4
- package/shopping-cart/src/models/index.js +12 -4
- package/smuggler/src/models/RestError.d.ts +3 -5
- package/smuggler/src/models/RestError.js +3 -5
- package/statistic/src/models/RestError.d.ts +3 -5
- package/statistic/src/models/RestError.js +3 -5
- package/third-party/src/models/RestError.d.ts +3 -5
- package/third-party/src/models/RestError.js +3 -5
- package/ubo/src/apis/ManageUboDeclarationApi.d.ts +2 -2
- package/ubo/src/apis/ManageUboDeclarationApi.js +2 -2
- package/ubo/src/models/RestError.d.ts +3 -5
- package/ubo/src/models/RestError.js +3 -5
- package/user/src/models/NotificationTypeId.d.ts +0 -1
- package/user/src/models/NotificationTypeId.js +0 -1
- package/user/src/models/RestError.d.ts +3 -5
- package/user/src/models/RestError.js +3 -5
- package/user/src/models/User.d.ts +7 -0
- package/user/src/models/User.js +3 -0
- package/user/src/models/UserMangopayUbo.d.ts +31 -0
- package/user/src/models/UserMangopayUbo.js +45 -0
- package/user/src/models/index.d.ts +1 -0
- package/user/src/models/index.js +1 -0
- package/wish/src/models/RestError.d.ts +3 -5
- package/wish/src/models/RestError.js +3 -5
- 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/order/src/apis/ManageMetaOrderApi.d.ts +0 -45
- package/order/src/models/AnyMetaOrderWarning.d.ts +0 -26
- package/order/src/models/AnyMetaOrderWarning.js +0 -50
- 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/MetaOrderWarning.js +0 -47
- package/order/src/models/MetaOrderWithWarnings.d.ts +0 -39
- package/order/src/models/MetaOrderWithWarnings.js +0 -49
- package/order/src/models/OrderItemWarning.d.ts +0 -72
- package/order/src/models/OrderWarning.d.ts +0 -51
- 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
|
@@ -43,8 +43,7 @@ exports.RestErrorCodeEnum = {
|
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
44
|
CODE023: 'CODE023',
|
|
45
45
|
CODE024: 'CODE024',
|
|
46
|
-
CODE025: 'CODE025'
|
|
47
|
-
CODE026: 'CODE026'
|
|
46
|
+
CODE025: 'CODE025'
|
|
48
47
|
};
|
|
49
48
|
/**
|
|
50
49
|
* @export
|
|
@@ -64,7 +63,7 @@ exports.RestErrorMessageEnum = {
|
|
|
64
63
|
MESSAGE011: 'Empty User Address',
|
|
65
64
|
MESSAGE012: 'Empty User Legal Name',
|
|
66
65
|
MESSAGE013: 'Invalid quantities',
|
|
67
|
-
MESSAGE014: 'Invalid
|
|
66
|
+
MESSAGE014: 'Invalid Foreorder',
|
|
68
67
|
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
69
68
|
MESSAGE016: 'Can not release a negative quantity of items',
|
|
70
69
|
MESSAGE017: 'Batch is forbidden for sale',
|
|
@@ -75,8 +74,7 @@ exports.RestErrorMessageEnum = {
|
|
|
75
74
|
MESSAGE022: 'Disabled feature',
|
|
76
75
|
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
77
76
|
MESSAGE024: 'Image missing',
|
|
78
|
-
MESSAGE025: 'Invalid International Bank Account Number'
|
|
79
|
-
MESSAGE026: 'SubCart not found in cart'
|
|
77
|
+
MESSAGE025: 'Invalid International Bank Account Number'
|
|
80
78
|
};
|
|
81
79
|
/**
|
|
82
80
|
* Check if a given object implements the RestError interface.
|
|
@@ -20,12 +20,12 @@ export interface CreateOrUpdateUboDeclarationRequest {
|
|
|
20
20
|
*/
|
|
21
21
|
export declare class ManageUboDeclarationApi extends runtime.BaseAPI {
|
|
22
22
|
/**
|
|
23
|
-
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). - User \'
|
|
23
|
+
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). - User \'mangopayUbo->available\' should be \'True\' # Non-Admin : - You can only put on ubo declaration id mapping your user id
|
|
24
24
|
* Create or update UBO declaration
|
|
25
25
|
*/
|
|
26
26
|
createOrUpdateUboDeclarationRaw(requestParameters: CreateOrUpdateUboDeclarationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UboDeclaration | runtime.BlobWithMeta>>;
|
|
27
27
|
/**
|
|
28
|
-
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). - User \'
|
|
28
|
+
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). - User \'mangopayUbo->available\' should be \'True\' # Non-Admin : - You can only put on ubo declaration id mapping your user id
|
|
29
29
|
* Create or update UBO declaration
|
|
30
30
|
*/
|
|
31
31
|
createOrUpdateUboDeclaration(requestParameters: CreateOrUpdateUboDeclarationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UboDeclaration | runtime.BlobWithMeta>;
|
|
@@ -76,7 +76,7 @@ var ManageUboDeclarationApi = /** @class */ (function (_super) {
|
|
|
76
76
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
|
-
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). - User \'
|
|
79
|
+
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). - User \'mangopayUbo->available\' should be \'True\' # Non-Admin : - You can only put on ubo declaration id mapping your user id
|
|
80
80
|
* Create or update UBO declaration
|
|
81
81
|
*/
|
|
82
82
|
ManageUboDeclarationApi.prototype.createOrUpdateUboDeclarationRaw = function (requestParameters, initOverrides) {
|
|
@@ -141,7 +141,7 @@ var ManageUboDeclarationApi = /** @class */ (function (_super) {
|
|
|
141
141
|
});
|
|
142
142
|
};
|
|
143
143
|
/**
|
|
144
|
-
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). - User \'
|
|
144
|
+
* Preconditions : # All : - Ubo declaration can be created/updated only if status is in (\'CREATED\', \'INCOMPLETE\', \'VALIDATED\', \'REFUSED\') - If status is in (\'CREATED\', \'INCOMPLETE\'), all existing ubos mangopayId should be in the request (+ potential new ones). - User \'mangopayUbo->available\' should be \'True\' # Non-Admin : - You can only put on ubo declaration id mapping your user id
|
|
145
145
|
* Create or update UBO declaration
|
|
146
146
|
*/
|
|
147
147
|
ManageUboDeclarationApi.prototype.createOrUpdateUboDeclaration = function (requestParameters, initOverrides) {
|
|
@@ -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 Foreorders * `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
|
|
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 Foreorder * `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 * `MESSAGE025` - Invalid International Bank Account Number
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -60,7 +60,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
60
60
|
readonly CODE023: "CODE023";
|
|
61
61
|
readonly CODE024: "CODE024";
|
|
62
62
|
readonly CODE025: "CODE025";
|
|
63
|
-
readonly CODE026: "CODE026";
|
|
64
63
|
};
|
|
65
64
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
66
65
|
/**
|
|
@@ -81,7 +80,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
81
80
|
readonly MESSAGE011: "Empty User Address";
|
|
82
81
|
readonly MESSAGE012: "Empty User Legal Name";
|
|
83
82
|
readonly MESSAGE013: "Invalid quantities";
|
|
84
|
-
readonly MESSAGE014: "Invalid
|
|
83
|
+
readonly MESSAGE014: "Invalid Foreorder";
|
|
85
84
|
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
86
85
|
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
87
86
|
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
@@ -93,7 +92,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
93
92
|
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
94
93
|
readonly MESSAGE024: "Image missing";
|
|
95
94
|
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
96
|
-
readonly MESSAGE026: "SubCart not found in cart";
|
|
97
95
|
};
|
|
98
96
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
99
97
|
/**
|
|
@@ -43,8 +43,7 @@ exports.RestErrorCodeEnum = {
|
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
44
|
CODE023: 'CODE023',
|
|
45
45
|
CODE024: 'CODE024',
|
|
46
|
-
CODE025: 'CODE025'
|
|
47
|
-
CODE026: 'CODE026'
|
|
46
|
+
CODE025: 'CODE025'
|
|
48
47
|
};
|
|
49
48
|
/**
|
|
50
49
|
* @export
|
|
@@ -64,7 +63,7 @@ exports.RestErrorMessageEnum = {
|
|
|
64
63
|
MESSAGE011: 'Empty User Address',
|
|
65
64
|
MESSAGE012: 'Empty User Legal Name',
|
|
66
65
|
MESSAGE013: 'Invalid quantities',
|
|
67
|
-
MESSAGE014: 'Invalid
|
|
66
|
+
MESSAGE014: 'Invalid Foreorder',
|
|
68
67
|
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
69
68
|
MESSAGE016: 'Can not release a negative quantity of items',
|
|
70
69
|
MESSAGE017: 'Batch is forbidden for sale',
|
|
@@ -75,8 +74,7 @@ exports.RestErrorMessageEnum = {
|
|
|
75
74
|
MESSAGE022: 'Disabled feature',
|
|
76
75
|
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
77
76
|
MESSAGE024: 'Image missing',
|
|
78
|
-
MESSAGE025: 'Invalid International Bank Account Number'
|
|
79
|
-
MESSAGE026: 'SubCart not found in cart'
|
|
77
|
+
MESSAGE025: 'Invalid International Bank Account Number'
|
|
80
78
|
};
|
|
81
79
|
/**
|
|
82
80
|
* Check if a given object implements the RestError interface.
|
|
@@ -32,7 +32,6 @@ export declare const NotificationTypeId: {
|
|
|
32
32
|
readonly CLIENT_SUBSCRIPTION_VALIDATED: "CLIENT_SUBSCRIPTION_VALIDATED";
|
|
33
33
|
readonly CLIENT_TEST_ACCOUNT_EXPIRED: "CLIENT_TEST_ACCOUNT_EXPIRED";
|
|
34
34
|
readonly CLIENT_WAITING_FOR_VALIDATION: "CLIENT_WAITING_FOR_VALIDATION";
|
|
35
|
-
readonly DOCUMENT_EXPIRE: "DOCUMENT_EXPIRE";
|
|
36
35
|
readonly GLOBAL_COMMISSION_INVOICE: "GLOBAL_COMMISSION_INVOICE";
|
|
37
36
|
readonly GLOBAL_COMMISSION_CREDIT_NOTE_INVOICE: "GLOBAL_COMMISSION_CREDIT_NOTE_INVOICE";
|
|
38
37
|
readonly MONTHLY_EMAIL_FOR_ACCOUNTANT: "MONTHLY_EMAIL_FOR_ACCOUNTANT";
|
|
@@ -37,7 +37,6 @@ exports.NotificationTypeId = {
|
|
|
37
37
|
CLIENT_SUBSCRIPTION_VALIDATED: 'CLIENT_SUBSCRIPTION_VALIDATED',
|
|
38
38
|
CLIENT_TEST_ACCOUNT_EXPIRED: 'CLIENT_TEST_ACCOUNT_EXPIRED',
|
|
39
39
|
CLIENT_WAITING_FOR_VALIDATION: 'CLIENT_WAITING_FOR_VALIDATION',
|
|
40
|
-
DOCUMENT_EXPIRE: 'DOCUMENT_EXPIRE',
|
|
41
40
|
GLOBAL_COMMISSION_INVOICE: 'GLOBAL_COMMISSION_INVOICE',
|
|
42
41
|
GLOBAL_COMMISSION_CREDIT_NOTE_INVOICE: 'GLOBAL_COMMISSION_CREDIT_NOTE_INVOICE',
|
|
43
42
|
MONTHLY_EMAIL_FOR_ACCOUNTANT: 'MONTHLY_EMAIL_FOR_ACCOUNTANT',
|
|
@@ -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 Foreorders * `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
|
|
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 Foreorder * `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 * `MESSAGE025` - Invalid International Bank Account Number
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -60,7 +60,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
60
60
|
readonly CODE023: "CODE023";
|
|
61
61
|
readonly CODE024: "CODE024";
|
|
62
62
|
readonly CODE025: "CODE025";
|
|
63
|
-
readonly CODE026: "CODE026";
|
|
64
63
|
};
|
|
65
64
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
66
65
|
/**
|
|
@@ -81,7 +80,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
81
80
|
readonly MESSAGE011: "Empty User Address";
|
|
82
81
|
readonly MESSAGE012: "Empty User Legal Name";
|
|
83
82
|
readonly MESSAGE013: "Invalid quantities";
|
|
84
|
-
readonly MESSAGE014: "Invalid
|
|
83
|
+
readonly MESSAGE014: "Invalid Foreorder";
|
|
85
84
|
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
86
85
|
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
87
86
|
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
@@ -93,7 +92,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
93
92
|
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
94
93
|
readonly MESSAGE024: "Image missing";
|
|
95
94
|
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
96
|
-
readonly MESSAGE026: "SubCart not found in cart";
|
|
97
95
|
};
|
|
98
96
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
99
97
|
/**
|
|
@@ -43,8 +43,7 @@ exports.RestErrorCodeEnum = {
|
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
44
|
CODE023: 'CODE023',
|
|
45
45
|
CODE024: 'CODE024',
|
|
46
|
-
CODE025: 'CODE025'
|
|
47
|
-
CODE026: 'CODE026'
|
|
46
|
+
CODE025: 'CODE025'
|
|
48
47
|
};
|
|
49
48
|
/**
|
|
50
49
|
* @export
|
|
@@ -64,7 +63,7 @@ exports.RestErrorMessageEnum = {
|
|
|
64
63
|
MESSAGE011: 'Empty User Address',
|
|
65
64
|
MESSAGE012: 'Empty User Legal Name',
|
|
66
65
|
MESSAGE013: 'Invalid quantities',
|
|
67
|
-
MESSAGE014: 'Invalid
|
|
66
|
+
MESSAGE014: 'Invalid Foreorder',
|
|
68
67
|
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
69
68
|
MESSAGE016: 'Can not release a negative quantity of items',
|
|
70
69
|
MESSAGE017: 'Batch is forbidden for sale',
|
|
@@ -75,8 +74,7 @@ exports.RestErrorMessageEnum = {
|
|
|
75
74
|
MESSAGE022: 'Disabled feature',
|
|
76
75
|
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
77
76
|
MESSAGE024: 'Image missing',
|
|
78
|
-
MESSAGE025: 'Invalid International Bank Account Number'
|
|
79
|
-
MESSAGE026: 'SubCart not found in cart'
|
|
77
|
+
MESSAGE025: 'Invalid International Bank Account Number'
|
|
80
78
|
};
|
|
81
79
|
/**
|
|
82
80
|
* Check if a given object implements the RestError interface.
|
|
@@ -24,6 +24,7 @@ import type { UserThreads } from './UserThreads';
|
|
|
24
24
|
import type { UserWallets } from './UserWallets';
|
|
25
25
|
import type { UserRole } from './UserRole';
|
|
26
26
|
import type { KycLevel } from './KycLevel';
|
|
27
|
+
import type { UserMangopayUbo } from './UserMangopayUbo';
|
|
27
28
|
import type { RestrictedProductStorageType } from './RestrictedProductStorageType';
|
|
28
29
|
import type { UserJournal } from './UserJournal';
|
|
29
30
|
/**
|
|
@@ -300,6 +301,12 @@ export interface User {
|
|
|
300
301
|
* @memberof User
|
|
301
302
|
*/
|
|
302
303
|
isMangopaySynced?: boolean;
|
|
304
|
+
/**
|
|
305
|
+
*
|
|
306
|
+
* @type {UserMangopayUbo}
|
|
307
|
+
* @memberof User
|
|
308
|
+
*/
|
|
309
|
+
mangopayUbo?: UserMangopayUbo;
|
|
303
310
|
/**
|
|
304
311
|
*
|
|
305
312
|
* @type {UserMangopayConsent}
|
package/user/src/models/User.js
CHANGED
|
@@ -30,6 +30,7 @@ var UserThreads_1 = require("./UserThreads");
|
|
|
30
30
|
var UserWallets_1 = require("./UserWallets");
|
|
31
31
|
var UserRole_1 = require("./UserRole");
|
|
32
32
|
var KycLevel_1 = require("./KycLevel");
|
|
33
|
+
var UserMangopayUbo_1 = require("./UserMangopayUbo");
|
|
33
34
|
var RestrictedProductStorageType_1 = require("./RestrictedProductStorageType");
|
|
34
35
|
var UserJournal_1 = require("./UserJournal");
|
|
35
36
|
/**
|
|
@@ -110,6 +111,7 @@ function UserFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
110
111
|
'customCommissions': (json['customCommissions'] === null || json['customCommissions'] === undefined) ? json['customCommissions'] : (0, HttpLink_1.HttpLinkFromJSON)(json['customCommissions']),
|
|
111
112
|
'tags': json['tags'],
|
|
112
113
|
'isMangopaySynced': json['isMangopaySynced'],
|
|
114
|
+
'mangopayUbo': (json['mangopayUbo'] === null || json['mangopayUbo'] === undefined) ? json['mangopayUbo'] : (0, UserMangopayUbo_1.UserMangopayUboFromJSON)(json['mangopayUbo']),
|
|
113
115
|
'mangopayConsent': (json['mangopayConsent'] === null || json['mangopayConsent'] === undefined) ? json['mangopayConsent'] : (0, UserMangopayConsent_1.UserMangopayConsentFromJSON)(json['mangopayConsent']),
|
|
114
116
|
'updatedAt': (json['updatedAt'] === null || json['updatedAt'] === undefined) ? json['updatedAt'] : new Date(json['updatedAt']),
|
|
115
117
|
'createdAt': (json['createdAt'] === null || json['createdAt'] === undefined) ? json['createdAt'] : new Date(json['createdAt']),
|
|
@@ -170,6 +172,7 @@ function UserToJSON(value) {
|
|
|
170
172
|
'customCommissions': (0, HttpLink_1.HttpLinkToJSON)(value['customCommissions']),
|
|
171
173
|
'tags': value['tags'],
|
|
172
174
|
'isMangopaySynced': value['isMangopaySynced'],
|
|
175
|
+
'mangopayUbo': (0, UserMangopayUbo_1.UserMangopayUboToJSON)(value['mangopayUbo']),
|
|
173
176
|
'mangopayConsent': (0, UserMangopayConsent_1.UserMangopayConsentToJSON)(value['mangopayConsent']),
|
|
174
177
|
'updatedAt': (value['updatedAt'] === null || value['updatedAt'] === undefined) ? value['updatedAt'] : (value['updatedAt']).toISOString(),
|
|
175
178
|
'createdAt': (value['createdAt'] === null || value['createdAt'] === undefined) ? value['createdAt'] : (value['createdAt']).toISOString(),
|
|
@@ -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
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface UserMangopayUbo
|
|
16
|
+
*/
|
|
17
|
+
export interface UserMangopayUbo {
|
|
18
|
+
/**
|
|
19
|
+
* True if user can manage its UBO, False if not
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof UserMangopayUbo
|
|
22
|
+
*/
|
|
23
|
+
available?: boolean;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the UserMangopayUbo interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfUserMangopayUbo(value: object): value is UserMangopayUbo;
|
|
29
|
+
export declare function UserMangopayUboFromJSON(json: any): UserMangopayUbo;
|
|
30
|
+
export declare function UserMangopayUboFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserMangopayUbo;
|
|
31
|
+
export declare function UserMangopayUboToJSON(value?: UserMangopayUbo | null): any;
|
|
@@ -0,0 +1,45 @@
|
|
|
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.UserMangopayUboToJSON = exports.UserMangopayUboFromJSONTyped = exports.UserMangopayUboFromJSON = exports.instanceOfUserMangopayUbo = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the UserMangopayUbo interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfUserMangopayUbo(value) {
|
|
21
|
+
return true;
|
|
22
|
+
}
|
|
23
|
+
exports.instanceOfUserMangopayUbo = instanceOfUserMangopayUbo;
|
|
24
|
+
function UserMangopayUboFromJSON(json) {
|
|
25
|
+
return UserMangopayUboFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
exports.UserMangopayUboFromJSON = UserMangopayUboFromJSON;
|
|
28
|
+
function UserMangopayUboFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'available': json['available'],
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
exports.UserMangopayUboFromJSONTyped = UserMangopayUboFromJSONTyped;
|
|
37
|
+
function UserMangopayUboToJSON(value) {
|
|
38
|
+
if (value == null) {
|
|
39
|
+
return value;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'available': value['available'],
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
exports.UserMangopayUboToJSON = UserMangopayUboToJSON;
|
|
@@ -39,6 +39,7 @@ export * from './UserJournal';
|
|
|
39
39
|
export * from './UserJournalUpdateParameters';
|
|
40
40
|
export * from './UserMangopayConsent';
|
|
41
41
|
export * from './UserMangopayTarget';
|
|
42
|
+
export * from './UserMangopayUbo';
|
|
42
43
|
export * from './UserRestrictedFeatureCreationParameter';
|
|
43
44
|
export * from './UserRestrictedNotificationTypeCreationParameter';
|
|
44
45
|
export * from './UserRestrictedProductTypeCreationParameter';
|
package/user/src/models/index.js
CHANGED
|
@@ -57,6 +57,7 @@ __exportStar(require("./UserJournal"), exports);
|
|
|
57
57
|
__exportStar(require("./UserJournalUpdateParameters"), exports);
|
|
58
58
|
__exportStar(require("./UserMangopayConsent"), exports);
|
|
59
59
|
__exportStar(require("./UserMangopayTarget"), exports);
|
|
60
|
+
__exportStar(require("./UserMangopayUbo"), exports);
|
|
60
61
|
__exportStar(require("./UserRestrictedFeatureCreationParameter"), exports);
|
|
61
62
|
__exportStar(require("./UserRestrictedNotificationTypeCreationParameter"), exports);
|
|
62
63
|
__exportStar(require("./UserRestrictedProductTypeCreationParameter"), exports);
|
|
@@ -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 Foreorders * `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
|
|
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 Foreorder * `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 * `MESSAGE025` - Invalid International Bank Account Number
|
|
27
27
|
*
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof RestError
|
|
@@ -60,7 +60,6 @@ export declare const RestErrorCodeEnum: {
|
|
|
60
60
|
readonly CODE023: "CODE023";
|
|
61
61
|
readonly CODE024: "CODE024";
|
|
62
62
|
readonly CODE025: "CODE025";
|
|
63
|
-
readonly CODE026: "CODE026";
|
|
64
63
|
};
|
|
65
64
|
export declare type RestErrorCodeEnum = typeof RestErrorCodeEnum[keyof typeof RestErrorCodeEnum];
|
|
66
65
|
/**
|
|
@@ -81,7 +80,7 @@ export declare const RestErrorMessageEnum: {
|
|
|
81
80
|
readonly MESSAGE011: "Empty User Address";
|
|
82
81
|
readonly MESSAGE012: "Empty User Legal Name";
|
|
83
82
|
readonly MESSAGE013: "Invalid quantities";
|
|
84
|
-
readonly MESSAGE014: "Invalid
|
|
83
|
+
readonly MESSAGE014: "Invalid Foreorder";
|
|
85
84
|
readonly MESSAGE015: "Can not release quantity greater than claimed";
|
|
86
85
|
readonly MESSAGE016: "Can not release a negative quantity of items";
|
|
87
86
|
readonly MESSAGE017: "Batch is forbidden for sale";
|
|
@@ -93,7 +92,6 @@ export declare const RestErrorMessageEnum: {
|
|
|
93
92
|
readonly MESSAGE023: "Invalid Sca Enrollment status";
|
|
94
93
|
readonly MESSAGE024: "Image missing";
|
|
95
94
|
readonly MESSAGE025: "Invalid International Bank Account Number";
|
|
96
|
-
readonly MESSAGE026: "SubCart not found in cart";
|
|
97
95
|
};
|
|
98
96
|
export declare type RestErrorMessageEnum = typeof RestErrorMessageEnum[keyof typeof RestErrorMessageEnum];
|
|
99
97
|
/**
|
|
@@ -43,8 +43,7 @@ exports.RestErrorCodeEnum = {
|
|
|
43
43
|
CODE022: 'CODE022',
|
|
44
44
|
CODE023: 'CODE023',
|
|
45
45
|
CODE024: 'CODE024',
|
|
46
|
-
CODE025: 'CODE025'
|
|
47
|
-
CODE026: 'CODE026'
|
|
46
|
+
CODE025: 'CODE025'
|
|
48
47
|
};
|
|
49
48
|
/**
|
|
50
49
|
* @export
|
|
@@ -64,7 +63,7 @@ exports.RestErrorMessageEnum = {
|
|
|
64
63
|
MESSAGE011: 'Empty User Address',
|
|
65
64
|
MESSAGE012: 'Empty User Legal Name',
|
|
66
65
|
MESSAGE013: 'Invalid quantities',
|
|
67
|
-
MESSAGE014: 'Invalid
|
|
66
|
+
MESSAGE014: 'Invalid Foreorder',
|
|
68
67
|
MESSAGE015: 'Can not release quantity greater than claimed',
|
|
69
68
|
MESSAGE016: 'Can not release a negative quantity of items',
|
|
70
69
|
MESSAGE017: 'Batch is forbidden for sale',
|
|
@@ -75,8 +74,7 @@ exports.RestErrorMessageEnum = {
|
|
|
75
74
|
MESSAGE022: 'Disabled feature',
|
|
76
75
|
MESSAGE023: 'Invalid Sca Enrollment status',
|
|
77
76
|
MESSAGE024: 'Image missing',
|
|
78
|
-
MESSAGE025: 'Invalid International Bank Account Number'
|
|
79
|
-
MESSAGE026: 'SubCart not found in cart'
|
|
77
|
+
MESSAGE025: 'Invalid International Bank Account Number'
|
|
80
78
|
};
|
|
81
79
|
/**
|
|
82
80
|
* Check if a given object implements the RestError interface.
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-magic-cart
|
|
3
|
-
* This is the REST API of Magic cart
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import 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;
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* lcdp-magic-cart
|
|
6
|
-
* This is the REST API of Magic cart
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1.0.0
|
|
9
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.SaleOfferProposalToJSON = exports.SaleOfferProposalFromJSONTyped = exports.SaleOfferProposalFromJSON = 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;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* lcdp-magic-cart
|
|
3
|
-
* This is the REST API of Magic cart
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0.0
|
|
6
|
-
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import 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;
|