@lcdp/api-react-rest-client 2.13.3-LDS-4543-api-suppression-mandate-challen.15342802230 → 2.13.3-LDS-4475-mangopay-sca.15460116981
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/challenge/index.d.ts +1 -0
- package/challenge/index.js +17 -0
- package/challenge/src/apis/ManageChallengesApi.d.ts +29 -0
- package/challenge/src/apis/ManageChallengesApi.js +161 -0
- package/challenge/src/apis/index.d.ts +1 -0
- package/challenge/src/apis/index.js +19 -0
- package/challenge/src/index.d.ts +3 -0
- package/challenge/src/index.js +21 -0
- package/challenge/src/models/Challenge.d.ts +38 -0
- package/challenge/src/models/Challenge.js +48 -0
- package/challenge/src/models/ChallengeAction.d.ts +38 -0
- package/challenge/src/models/ChallengeAction.js +51 -0
- package/challenge/src/models/index.d.ts +2 -0
- package/challenge/src/models/index.js +20 -0
- package/challenge/src/runtime.d.ts +190 -0
- package/challenge/src/runtime.js +598 -0
- package/mandate/src/apis/ManageMandatesApi.d.ts +14 -3
- package/mandate/src/apis/ManageMandatesApi.js +90 -9
- package/mandate/src/models/Challenge.d.ts +38 -0
- package/mandate/src/models/Challenge.js +48 -0
- package/mandate/src/models/ChallengeAction.d.ts +38 -0
- package/mandate/src/models/ChallengeAction.js +51 -0
- package/mandate/src/models/MandateChallenge.d.ts +44 -0
- package/mandate/src/models/MandateChallenge.js +52 -0
- package/mandate/src/models/MandateChallengeCreationParameters.d.ts +31 -0
- package/mandate/src/models/MandateChallengeCreationParameters.js +47 -0
- package/mandate/src/models/MandateCreationParameters.d.ts +7 -1
- package/mandate/src/models/MandateCreationParameters.js +2 -2
- package/mandate/src/models/index.d.ts +4 -1
- package/mandate/src/models/index.js +4 -1
- package/package.json +1 -1
- package/ubo/src/apis/ManageUboDeclarationApi.d.ts +2 -2
- package/ubo/src/apis/ManageUboDeclarationApi.js +2 -2
- package/user/src/apis/ManageUserDocumentApi.d.ts +4 -4
- package/user/src/apis/ManageUserDocumentApi.js +4 -4
- package/user/src/models/ScaEnrollmentStatus.d.ts +2 -2
- package/user/src/models/ScaEnrollmentStatus.js +2 -2
- package/mandate/src/models/CreatedMandate.d.ts +0 -31
- package/mandate/src/models/CreatedMandate.js +0 -47
|
@@ -120,7 +120,7 @@ var ManageMandatesApi = /** @class */ (function (_super) {
|
|
|
120
120
|
response = _c.sent();
|
|
121
121
|
contentType = response.headers.get("content-type");
|
|
122
122
|
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
123
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
123
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MandateFromJSON)(jsonValue); })];
|
|
124
124
|
}
|
|
125
125
|
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
126
126
|
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
@@ -156,12 +156,93 @@ var ManageMandatesApi = /** @class */ (function (_super) {
|
|
|
156
156
|
});
|
|
157
157
|
});
|
|
158
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* Create mandate challenge for a given client bank account The user should be redirect at the url receive in response of this request. Then call createCurrentUserMandate to create user mandate
|
|
161
|
+
*/
|
|
162
|
+
ManageMandatesApi.prototype.createMandateChallengeRaw = function (requestParameters, initOverrides) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
|
|
165
|
+
return __generator(this, function (_c) {
|
|
166
|
+
switch (_c.label) {
|
|
167
|
+
case 0:
|
|
168
|
+
if (requestParameters['mandateChallengeCreationParameters'] == null) {
|
|
169
|
+
throw new runtime.RequiredError('mandateChallengeCreationParameters', 'Required parameter "mandateChallengeCreationParameters" was null or undefined when calling createMandateChallenge().');
|
|
170
|
+
}
|
|
171
|
+
queryParameters = {};
|
|
172
|
+
headerParameters = {};
|
|
173
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
174
|
+
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
175
|
+
_a = headerParameters;
|
|
176
|
+
_b = "x-api-key";
|
|
177
|
+
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
178
|
+
case 1:
|
|
179
|
+
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
180
|
+
_c.label = 2;
|
|
181
|
+
case 2:
|
|
182
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
183
|
+
token = this.configuration.accessToken;
|
|
184
|
+
return [4 /*yield*/, token("bearerAuth", [])];
|
|
185
|
+
case 3:
|
|
186
|
+
tokenString = _c.sent();
|
|
187
|
+
if (tokenString) {
|
|
188
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
189
|
+
}
|
|
190
|
+
_c.label = 4;
|
|
191
|
+
case 4:
|
|
192
|
+
_c.trys.push([4, 6, , 7]);
|
|
193
|
+
return [4 /*yield*/, this.request({
|
|
194
|
+
path: "/mandate-challenges",
|
|
195
|
+
method: 'POST',
|
|
196
|
+
headers: headerParameters,
|
|
197
|
+
query: queryParameters,
|
|
198
|
+
body: (0, index_1.MandateChallengeCreationParametersToJSON)(requestParameters['mandateChallengeCreationParameters']),
|
|
199
|
+
}, initOverrides)];
|
|
200
|
+
case 5:
|
|
201
|
+
response = _c.sent();
|
|
202
|
+
contentType = response.headers.get("content-type");
|
|
203
|
+
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
204
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.MandateChallengeFromJSON)(jsonValue); })];
|
|
205
|
+
}
|
|
206
|
+
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
207
|
+
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
208
|
+
}
|
|
209
|
+
else {
|
|
210
|
+
// TODO : Better handling of others application types
|
|
211
|
+
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
212
|
+
}
|
|
213
|
+
return [3 /*break*/, 7];
|
|
214
|
+
case 6:
|
|
215
|
+
response_2 = _c.sent();
|
|
216
|
+
console.debug(response_2);
|
|
217
|
+
throw response_2;
|
|
218
|
+
case 7: return [2 /*return*/];
|
|
219
|
+
}
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* Create mandate challenge for a given client bank account The user should be redirect at the url receive in response of this request. Then call createCurrentUserMandate to create user mandate
|
|
225
|
+
*/
|
|
226
|
+
ManageMandatesApi.prototype.createMandateChallenge = function (requestParameters, initOverrides) {
|
|
227
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
228
|
+
var response;
|
|
229
|
+
return __generator(this, function (_a) {
|
|
230
|
+
switch (_a.label) {
|
|
231
|
+
case 0: return [4 /*yield*/, this.createMandateChallengeRaw(requestParameters, initOverrides)];
|
|
232
|
+
case 1:
|
|
233
|
+
response = _a.sent();
|
|
234
|
+
return [4 /*yield*/, response.value()];
|
|
235
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
});
|
|
239
|
+
};
|
|
159
240
|
/**
|
|
160
241
|
* Delete mandate for current user
|
|
161
242
|
*/
|
|
162
243
|
ManageMandatesApi.prototype.deleteCurrentUserMandateRaw = function (initOverrides) {
|
|
163
244
|
return __awaiter(this, void 0, void 0, function () {
|
|
164
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response,
|
|
245
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, response_3;
|
|
165
246
|
return __generator(this, function (_c) {
|
|
166
247
|
switch (_c.label) {
|
|
167
248
|
case 0:
|
|
@@ -196,9 +277,9 @@ var ManageMandatesApi = /** @class */ (function (_super) {
|
|
|
196
277
|
response = _c.sent();
|
|
197
278
|
return [2 /*return*/, new runtime.VoidApiResponse(response)];
|
|
198
279
|
case 6:
|
|
199
|
-
|
|
200
|
-
console.debug(
|
|
201
|
-
throw
|
|
280
|
+
response_3 = _c.sent();
|
|
281
|
+
console.debug(response_3);
|
|
282
|
+
throw response_3;
|
|
202
283
|
case 7: return [2 /*return*/];
|
|
203
284
|
}
|
|
204
285
|
});
|
|
@@ -224,7 +305,7 @@ var ManageMandatesApi = /** @class */ (function (_super) {
|
|
|
224
305
|
*/
|
|
225
306
|
ManageMandatesApi.prototype.getCurrentUserMandateRaw = function (initOverrides) {
|
|
226
307
|
return __awaiter(this, void 0, void 0, function () {
|
|
227
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType,
|
|
308
|
+
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_4;
|
|
228
309
|
return __generator(this, function (_c) {
|
|
229
310
|
switch (_c.label) {
|
|
230
311
|
case 0:
|
|
@@ -270,9 +351,9 @@ var ManageMandatesApi = /** @class */ (function (_super) {
|
|
|
270
351
|
}
|
|
271
352
|
return [3 /*break*/, 7];
|
|
272
353
|
case 6:
|
|
273
|
-
|
|
274
|
-
console.debug(
|
|
275
|
-
throw
|
|
354
|
+
response_4 = _c.sent();
|
|
355
|
+
console.debug(response_4);
|
|
356
|
+
throw response_4;
|
|
276
357
|
case 7: return [2 /*return*/];
|
|
277
358
|
}
|
|
278
359
|
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ChallengeAction } from './ChallengeAction';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface Challenge
|
|
17
|
+
*/
|
|
18
|
+
export interface Challenge {
|
|
19
|
+
/**
|
|
20
|
+
* Unique reference of the challenge
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Challenge
|
|
23
|
+
*/
|
|
24
|
+
reference?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ChallengeAction}
|
|
28
|
+
* @memberof Challenge
|
|
29
|
+
*/
|
|
30
|
+
action?: ChallengeAction;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the Challenge interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfChallenge(value: object): value is Challenge;
|
|
36
|
+
export declare function ChallengeFromJSON(json: any): Challenge;
|
|
37
|
+
export declare function ChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Challenge;
|
|
38
|
+
export declare function ChallengeToJSON(value?: Challenge | null): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
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.ChallengeToJSON = exports.ChallengeFromJSONTyped = exports.ChallengeFromJSON = exports.instanceOfChallenge = void 0;
|
|
17
|
+
var ChallengeAction_1 = require("./ChallengeAction");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the Challenge interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfChallenge(value) {
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
exports.instanceOfChallenge = instanceOfChallenge;
|
|
25
|
+
function ChallengeFromJSON(json) {
|
|
26
|
+
return ChallengeFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
exports.ChallengeFromJSON = ChallengeFromJSON;
|
|
29
|
+
function ChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
30
|
+
if (json == null) {
|
|
31
|
+
return json;
|
|
32
|
+
}
|
|
33
|
+
return {
|
|
34
|
+
'reference': json['reference'],
|
|
35
|
+
'action': (json['action'] === null || json['action'] === undefined) ? json['action'] : (0, ChallengeAction_1.ChallengeActionFromJSON)(json['action']),
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.ChallengeFromJSONTyped = ChallengeFromJSONTyped;
|
|
39
|
+
function ChallengeToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'reference': value['reference'],
|
|
45
|
+
'action': (0, ChallengeAction_1.ChallengeActionToJSON)(value['action']),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
exports.ChallengeToJSON = ChallengeToJSON;
|
|
@@ -0,0 +1,38 @@
|
|
|
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 ChallengeAction
|
|
16
|
+
*/
|
|
17
|
+
export interface ChallengeAction {
|
|
18
|
+
/**
|
|
19
|
+
* Challenge actions
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ChallengeAction
|
|
22
|
+
*/
|
|
23
|
+
action?: ChallengeActionActionEnum;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* @export
|
|
27
|
+
*/
|
|
28
|
+
export declare const ChallengeActionActionEnum: {
|
|
29
|
+
readonly CREATE_MANDATE: "CREATE_MANDATE";
|
|
30
|
+
};
|
|
31
|
+
export declare type ChallengeActionActionEnum = typeof ChallengeActionActionEnum[keyof typeof ChallengeActionActionEnum];
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the ChallengeAction interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfChallengeAction(value: object): value is ChallengeAction;
|
|
36
|
+
export declare function ChallengeActionFromJSON(json: any): ChallengeAction;
|
|
37
|
+
export declare function ChallengeActionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChallengeAction;
|
|
38
|
+
export declare function ChallengeActionToJSON(value?: ChallengeAction | null): any;
|
|
@@ -0,0 +1,51 @@
|
|
|
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.ChallengeActionToJSON = exports.ChallengeActionFromJSONTyped = exports.ChallengeActionFromJSON = exports.instanceOfChallengeAction = exports.ChallengeActionActionEnum = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
exports.ChallengeActionActionEnum = {
|
|
21
|
+
CREATE_MANDATE: 'CREATE_MANDATE'
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the ChallengeAction interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfChallengeAction(value) {
|
|
27
|
+
return true;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfChallengeAction = instanceOfChallengeAction;
|
|
30
|
+
function ChallengeActionFromJSON(json) {
|
|
31
|
+
return ChallengeActionFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.ChallengeActionFromJSON = ChallengeActionFromJSON;
|
|
34
|
+
function ChallengeActionFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'action': json['action'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
exports.ChallengeActionFromJSONTyped = ChallengeActionFromJSONTyped;
|
|
43
|
+
function ChallengeActionToJSON(value) {
|
|
44
|
+
if (value == null) {
|
|
45
|
+
return value;
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
'action': value['action'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
exports.ChallengeActionToJSON = ChallengeActionToJSON;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* lcdp-monolith-service
|
|
3
|
+
* This is the REST API of LCDP products
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { ChallengeAction } from './ChallengeAction';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface MandateChallenge
|
|
17
|
+
*/
|
|
18
|
+
export interface MandateChallenge {
|
|
19
|
+
/**
|
|
20
|
+
* Unique reference of the challenge
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof MandateChallenge
|
|
23
|
+
*/
|
|
24
|
+
reference?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {ChallengeAction}
|
|
28
|
+
* @memberof MandateChallenge
|
|
29
|
+
*/
|
|
30
|
+
action?: ChallengeAction;
|
|
31
|
+
/**
|
|
32
|
+
* Redirecting url to the mandate
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MandateChallenge
|
|
35
|
+
*/
|
|
36
|
+
url: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the MandateChallenge interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfMandateChallenge(value: object): value is MandateChallenge;
|
|
42
|
+
export declare function MandateChallengeFromJSON(json: any): MandateChallenge;
|
|
43
|
+
export declare function MandateChallengeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateChallenge;
|
|
44
|
+
export declare function MandateChallengeToJSON(value?: MandateChallenge | null): any;
|
|
@@ -0,0 +1,52 @@
|
|
|
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.MandateChallengeToJSON = exports.MandateChallengeFromJSONTyped = exports.MandateChallengeFromJSON = exports.instanceOfMandateChallenge = void 0;
|
|
17
|
+
var ChallengeAction_1 = require("./ChallengeAction");
|
|
18
|
+
/**
|
|
19
|
+
* Check if a given object implements the MandateChallenge interface.
|
|
20
|
+
*/
|
|
21
|
+
function instanceOfMandateChallenge(value) {
|
|
22
|
+
if (!('url' in value) || value['url'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfMandateChallenge = instanceOfMandateChallenge;
|
|
27
|
+
function MandateChallengeFromJSON(json) {
|
|
28
|
+
return MandateChallengeFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.MandateChallengeFromJSON = MandateChallengeFromJSON;
|
|
31
|
+
function MandateChallengeFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if (json == null) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'reference': json['reference'],
|
|
37
|
+
'action': (json['action'] === null || json['action'] === undefined) ? json['action'] : (0, ChallengeAction_1.ChallengeActionFromJSON)(json['action']),
|
|
38
|
+
'url': json['url'],
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
exports.MandateChallengeFromJSONTyped = MandateChallengeFromJSONTyped;
|
|
42
|
+
function MandateChallengeToJSON(value) {
|
|
43
|
+
if (value == null) {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'reference': value['reference'],
|
|
48
|
+
'action': (0, ChallengeAction_1.ChallengeActionToJSON)(value['action']),
|
|
49
|
+
'url': value['url'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
exports.MandateChallengeToJSON = MandateChallengeToJSON;
|
|
@@ -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 MandateChallengeCreationParameters
|
|
16
|
+
*/
|
|
17
|
+
export interface MandateChallengeCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
* Mangopay bank account id
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MandateChallengeCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
mangopayBankAccountId: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the MandateChallengeCreationParameters interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfMandateChallengeCreationParameters(value: object): value is MandateChallengeCreationParameters;
|
|
29
|
+
export declare function MandateChallengeCreationParametersFromJSON(json: any): MandateChallengeCreationParameters;
|
|
30
|
+
export declare function MandateChallengeCreationParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MandateChallengeCreationParameters;
|
|
31
|
+
export declare function MandateChallengeCreationParametersToJSON(value?: MandateChallengeCreationParameters | null): any;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* lcdp-monolith-service
|
|
6
|
+
* This is the REST API of LCDP products
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0.0
|
|
9
|
+
* Contact: contact@lecomptoirdespharmacies.fr
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MandateChallengeCreationParametersToJSON = exports.MandateChallengeCreationParametersFromJSONTyped = exports.MandateChallengeCreationParametersFromJSON = exports.instanceOfMandateChallengeCreationParameters = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the MandateChallengeCreationParameters interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfMandateChallengeCreationParameters(value) {
|
|
21
|
+
if (!('mangopayBankAccountId' in value) || value['mangopayBankAccountId'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfMandateChallengeCreationParameters = instanceOfMandateChallengeCreationParameters;
|
|
26
|
+
function MandateChallengeCreationParametersFromJSON(json) {
|
|
27
|
+
return MandateChallengeCreationParametersFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.MandateChallengeCreationParametersFromJSON = MandateChallengeCreationParametersFromJSON;
|
|
30
|
+
function MandateChallengeCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if (json == null) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'mangopayBankAccountId': json['mangopayBankAccountId'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.MandateChallengeCreationParametersFromJSONTyped = MandateChallengeCreationParametersFromJSONTyped;
|
|
39
|
+
function MandateChallengeCreationParametersToJSON(value) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'mangopayBankAccountId': value['mangopayBankAccountId'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
exports.MandateChallengeCreationParametersToJSON = MandateChallengeCreationParametersToJSON;
|
|
@@ -15,12 +15,18 @@
|
|
|
15
15
|
* @interface MandateCreationParameters
|
|
16
16
|
*/
|
|
17
17
|
export interface MandateCreationParameters {
|
|
18
|
+
/**
|
|
19
|
+
* Challenge unique identifier
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MandateCreationParameters
|
|
22
|
+
*/
|
|
23
|
+
challengeId?: string;
|
|
18
24
|
/**
|
|
19
25
|
* Mangopay mandate identifier linked to this mandate
|
|
20
26
|
* @type {string}
|
|
21
27
|
* @memberof MandateCreationParameters
|
|
22
28
|
*/
|
|
23
|
-
mangopayId
|
|
29
|
+
mangopayId?: string;
|
|
24
30
|
}
|
|
25
31
|
/**
|
|
26
32
|
* Check if a given object implements the MandateCreationParameters interface.
|
|
@@ -18,8 +18,6 @@ exports.MandateCreationParametersToJSON = exports.MandateCreationParametersFromJ
|
|
|
18
18
|
* Check if a given object implements the MandateCreationParameters interface.
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfMandateCreationParameters(value) {
|
|
21
|
-
if (!('mangopayId' in value) || value['mangopayId'] === undefined)
|
|
22
|
-
return false;
|
|
23
21
|
return true;
|
|
24
22
|
}
|
|
25
23
|
exports.instanceOfMandateCreationParameters = instanceOfMandateCreationParameters;
|
|
@@ -32,6 +30,7 @@ function MandateCreationParametersFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
32
30
|
return json;
|
|
33
31
|
}
|
|
34
32
|
return {
|
|
33
|
+
'challengeId': json['challengeId'],
|
|
35
34
|
'mangopayId': json['mangopayId'],
|
|
36
35
|
};
|
|
37
36
|
}
|
|
@@ -41,6 +40,7 @@ function MandateCreationParametersToJSON(value) {
|
|
|
41
40
|
return value;
|
|
42
41
|
}
|
|
43
42
|
return {
|
|
43
|
+
'challengeId': value['challengeId'],
|
|
44
44
|
'mangopayId': value['mangopayId'],
|
|
45
45
|
};
|
|
46
46
|
}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './Challenge';
|
|
2
|
+
export * from './ChallengeAction';
|
|
2
3
|
export * from './Mandate';
|
|
4
|
+
export * from './MandateChallenge';
|
|
5
|
+
export * from './MandateChallengeCreationParameters';
|
|
3
6
|
export * from './MandateCreationParameters';
|
|
@@ -16,6 +16,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
|
-
__exportStar(require("./
|
|
19
|
+
__exportStar(require("./Challenge"), exports);
|
|
20
|
+
__exportStar(require("./ChallengeAction"), exports);
|
|
20
21
|
__exportStar(require("./Mandate"), exports);
|
|
22
|
+
__exportStar(require("./MandateChallenge"), exports);
|
|
23
|
+
__exportStar(require("./MandateChallengeCreationParameters"), exports);
|
|
21
24
|
__exportStar(require("./MandateCreationParameters"), exports);
|
package/package.json
CHANGED
|
@@ -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 \'scaEnrollmentStatus\' should be
|
|
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 \'scaEnrollmentStatus\' should be \'ACTIVE\' # 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 \'scaEnrollmentStatus\' should be
|
|
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 \'scaEnrollmentStatus\' should be \'ACTIVE\' # 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 \'scaEnrollmentStatus\' should be
|
|
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 \'scaEnrollmentStatus\' should be \'ACTIVE\' # 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 \'scaEnrollmentStatus\' should be
|
|
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 \'scaEnrollmentStatus\' should be \'ACTIVE\' # 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) {
|
|
@@ -30,22 +30,22 @@ export interface UpdateUserDocumentStatusRequest {
|
|
|
30
30
|
*/
|
|
31
31
|
export declare class ManageUserDocumentApi extends runtime.BaseAPI {
|
|
32
32
|
/**
|
|
33
|
-
* Restrictions: - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in
|
|
33
|
+
* Restrictions: - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
|
|
34
34
|
* Upload document associated to current user
|
|
35
35
|
*/
|
|
36
36
|
createOrUpdateCurrentUserDocumentRaw(requestParameters: CreateOrUpdateCurrentUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDocument | runtime.BlobWithMeta>>;
|
|
37
37
|
/**
|
|
38
|
-
* Restrictions: - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in
|
|
38
|
+
* Restrictions: - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
|
|
39
39
|
* Upload document associated to current user
|
|
40
40
|
*/
|
|
41
41
|
createOrUpdateCurrentUserDocument(requestParameters: CreateOrUpdateCurrentUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDocument | runtime.BlobWithMeta>;
|
|
42
42
|
/**
|
|
43
|
-
* Restrictions : - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in
|
|
43
|
+
* Restrictions : - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
|
|
44
44
|
* Upload document associated to given user
|
|
45
45
|
*/
|
|
46
46
|
createOrUpdateUserDocumentRaw(requestParameters: CreateOrUpdateUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDocument | runtime.BlobWithMeta>>;
|
|
47
47
|
/**
|
|
48
|
-
* Restrictions : - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in
|
|
48
|
+
* Restrictions : - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
|
|
49
49
|
* Upload document associated to given user
|
|
50
50
|
*/
|
|
51
51
|
createOrUpdateUserDocument(requestParameters: CreateOrUpdateUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDocument | runtime.BlobWithMeta>;
|