@lcdp/api-react-rest-client 2.14.2-LDS-4911-migration-franco-custom-vers-ma.18038374439 → 2.14.2-LDS-4911-migration-franco-custom-vers-ma.18038534788
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/package.json +1 -1
- package/user/index.d.ts +0 -1
- package/user/index.js +0 -17
- package/user/src/apis/ManagePasswordApi.d.ts +0 -41
- package/user/src/apis/ManagePasswordApi.js +0 -214
- package/user/src/apis/ManageUserApi.d.ts +0 -143
- package/user/src/apis/ManageUserApi.js +0 -777
- package/user/src/apis/ManageUserBankAccountApi.d.ts +0 -45
- package/user/src/apis/ManageUserBankAccountApi.js +0 -249
- package/user/src/apis/ManageUserDocumentApi.d.ts +0 -98
- package/user/src/apis/ManageUserDocumentApi.js +0 -419
- package/user/src/apis/ManageUserFavoriteLaboratoryStoreApi.d.ts +0 -64
- package/user/src/apis/ManageUserFavoriteLaboratoryStoreApi.js +0 -354
- package/user/src/apis/ManageUserRestrictionApi.d.ts +0 -112
- package/user/src/apis/ManageUserRestrictionApi.js +0 -618
- package/user/src/apis/ManageUserRuleApi.d.ts +0 -44
- package/user/src/apis/ManageUserRuleApi.js +0 -235
- package/user/src/apis/ManageUserSocialNetworksApi.d.ts +0 -45
- package/user/src/apis/ManageUserSocialNetworksApi.js +0 -249
- package/user/src/apis/ManageUserTransportApi.d.ts +0 -32
- package/user/src/apis/ManageUserTransportApi.js +0 -166
- package/user/src/apis/SearchUserApi.d.ts +0 -130
- package/user/src/apis/SearchUserApi.js +0 -628
- package/user/src/apis/SearchUserDocumentApi.d.ts +0 -165
- package/user/src/apis/SearchUserDocumentApi.js +0 -688
- package/user/src/apis/SearchUserFavoriteLaboratoryStoreApi.d.ts +0 -37
- package/user/src/apis/SearchUserFavoriteLaboratoryStoreApi.js +0 -235
- package/user/src/apis/SearchUserFeatureApi.d.ts +0 -26
- package/user/src/apis/SearchUserFeatureApi.js +0 -156
- package/user/src/apis/SearchUserRestrictionApi.d.ts +0 -59
- package/user/src/apis/SearchUserRestrictionApi.js +0 -393
- package/user/src/apis/SearchUserRuleApi.d.ts +0 -29
- package/user/src/apis/SearchUserRuleApi.js +0 -159
- package/user/src/apis/SearchUserSocialNetworksApi.d.ts +0 -41
- package/user/src/apis/SearchUserSocialNetworksApi.js +0 -239
- package/user/src/apis/SearchUserTransportApi.d.ts +0 -37
- package/user/src/apis/SearchUserTransportApi.js +0 -235
- package/user/src/apis/index.d.ts +0 -17
- package/user/src/apis/index.js +0 -35
- package/user/src/index.d.ts +0 -3
- package/user/src/index.js +0 -21
- package/user/src/models/Address.d.ts +0 -49
- package/user/src/models/Address.js +0 -51
- package/user/src/models/Gender.d.ts +0 -24
- package/user/src/models/Gender.js +0 -47
- package/user/src/models/HttpLink.d.ts +0 -31
- package/user/src/models/HttpLink.js +0 -47
- package/user/src/models/KycLevel.d.ts +0 -24
- package/user/src/models/KycLevel.js +0 -47
- package/user/src/models/MyPasswordUpdateParameters.d.ts +0 -37
- package/user/src/models/MyPasswordUpdateParameters.js +0 -47
- package/user/src/models/NotificationTypeId.d.ts +0 -69
- package/user/src/models/NotificationTypeId.js +0 -92
- package/user/src/models/NotificationTypeLink.d.ts +0 -38
- package/user/src/models/NotificationTypeLink.js +0 -50
- package/user/src/models/OffisanteStatus.d.ts +0 -29
- package/user/src/models/OffisanteStatus.js +0 -52
- package/user/src/models/PaginatedObject.d.ts +0 -32
- package/user/src/models/PaginatedObject.js +0 -48
- package/user/src/models/PaginatedUsers.d.ts +0 -39
- package/user/src/models/PaginatedUsers.js +0 -51
- package/user/src/models/PagingMetadata.d.ts +0 -49
- package/user/src/models/PagingMetadata.js +0 -55
- package/user/src/models/PasswordResetCompletionParameters.d.ts +0 -31
- package/user/src/models/PasswordResetCompletionParameters.js +0 -47
- package/user/src/models/PasswordResetCreationParameters.d.ts +0 -31
- package/user/src/models/PasswordResetCreationParameters.js +0 -47
- package/user/src/models/ProductStorageType.d.ts +0 -26
- package/user/src/models/ProductStorageType.js +0 -49
- package/user/src/models/ProductTypeLink.d.ts +0 -43
- package/user/src/models/ProductTypeLink.js +0 -51
- package/user/src/models/RestError.d.ts +0 -103
- package/user/src/models/RestError.js +0 -113
- package/user/src/models/RestrictedProductStorageType.d.ts +0 -46
- package/user/src/models/RestrictedProductStorageType.js +0 -55
- package/user/src/models/ScaEnrollmentStatus.d.ts +0 -31
- package/user/src/models/ScaEnrollmentStatus.js +0 -54
- package/user/src/models/SomeonePasswordUpdateParameters.d.ts +0 -31
- package/user/src/models/SomeonePasswordUpdateParameters.js +0 -45
- package/user/src/models/ThreadLink.d.ts +0 -37
- package/user/src/models/ThreadLink.js +0 -51
- package/user/src/models/Transport.d.ts +0 -55
- package/user/src/models/Transport.js +0 -63
- package/user/src/models/User.d.ts +0 -349
- package/user/src/models/User.js +0 -180
- package/user/src/models/UserBankAccountCreationParameters.d.ts +0 -31
- package/user/src/models/UserBankAccountCreationParameters.js +0 -45
- package/user/src/models/UserBankAccountLink.d.ts +0 -53
- package/user/src/models/UserBankAccountLink.js +0 -60
- package/user/src/models/UserChargebeeTarget.d.ts +0 -37
- package/user/src/models/UserChargebeeTarget.js +0 -49
- package/user/src/models/UserCompany.d.ts +0 -118
- package/user/src/models/UserCompany.js +0 -75
- package/user/src/models/UserCreationParameters.d.ts +0 -68
- package/user/src/models/UserCreationParameters.js +0 -71
- package/user/src/models/UserCustomCommissions.d.ts +0 -37
- package/user/src/models/UserCustomCommissions.js +0 -47
- package/user/src/models/UserCustomCommissionsUpdateParameters.d.ts +0 -37
- package/user/src/models/UserCustomCommissionsUpdateParameters.js +0 -47
- package/user/src/models/UserDelegatedServices.d.ts +0 -52
- package/user/src/models/UserDelegatedServices.js +0 -49
- package/user/src/models/UserDocument.d.ts +0 -66
- package/user/src/models/UserDocument.js +0 -68
- package/user/src/models/UserDocumentStatus.d.ts +0 -27
- package/user/src/models/UserDocumentStatus.js +0 -50
- package/user/src/models/UserFavoriteLaboratoryStoreCreationParameter.d.ts +0 -31
- package/user/src/models/UserFavoriteLaboratoryStoreCreationParameter.js +0 -47
- package/user/src/models/UserFavoriteLaboratoryStoreLink.d.ts +0 -37
- package/user/src/models/UserFavoriteLaboratoryStoreLink.js +0 -49
- package/user/src/models/UserFeature.d.ts +0 -37
- package/user/src/models/UserFeature.js +0 -47
- package/user/src/models/UserForbiddenSellerLink.d.ts +0 -37
- package/user/src/models/UserForbiddenSellerLink.js +0 -49
- package/user/src/models/UserJournal.d.ts +0 -39
- package/user/src/models/UserJournal.js +0 -47
- package/user/src/models/UserJournalUpdateParameters.d.ts +0 -31
- package/user/src/models/UserJournalUpdateParameters.js +0 -45
- package/user/src/models/UserMangopayTarget.d.ts +0 -37
- package/user/src/models/UserMangopayTarget.js +0 -49
- package/user/src/models/UserRestrictedFeatureCreationParameter.d.ts +0 -31
- package/user/src/models/UserRestrictedFeatureCreationParameter.js +0 -47
- package/user/src/models/UserRestrictedNotificationTypeCreationParameter.d.ts +0 -32
- package/user/src/models/UserRestrictedNotificationTypeCreationParameter.js +0 -48
- package/user/src/models/UserRestrictedProductTypeCreationParameter.d.ts +0 -31
- package/user/src/models/UserRestrictedProductTypeCreationParameter.js +0 -47
- package/user/src/models/UserRole.d.ts +0 -29
- package/user/src/models/UserRole.js +0 -52
- package/user/src/models/UserRule.d.ts +0 -58
- package/user/src/models/UserRule.js +0 -56
- package/user/src/models/UserRuleActionEnum.d.ts +0 -23
- package/user/src/models/UserRuleActionEnum.js +0 -46
- package/user/src/models/UserRuleAttributeEnum.d.ts +0 -24
- package/user/src/models/UserRuleAttributeEnum.js +0 -47
- package/user/src/models/UserRuleComparatorEnum.d.ts +0 -24
- package/user/src/models/UserRuleComparatorEnum.js +0 -47
- package/user/src/models/UserRuleCreationParameters.d.ts +0 -52
- package/user/src/models/UserRuleCreationParameters.js +0 -62
- package/user/src/models/UserSocialNetwork.d.ts +0 -67
- package/user/src/models/UserSocialNetwork.js +0 -57
- package/user/src/models/UserStatisticLink.d.ts +0 -45
- package/user/src/models/UserStatisticLink.js +0 -53
- package/user/src/models/UserStatisticLinkAllOfLongTermQoS.d.ts +0 -61
- package/user/src/models/UserStatisticLinkAllOfLongTermQoS.js +0 -55
- package/user/src/models/UserStatisticLinkAllOfShortTermQoS.d.ts +0 -43
- package/user/src/models/UserStatisticLinkAllOfShortTermQoS.js +0 -49
- package/user/src/models/UserThreads.d.ts +0 -32
- package/user/src/models/UserThreads.js +0 -46
- package/user/src/models/UserUpdateParameters.d.ts +0 -164
- package/user/src/models/UserUpdateParameters.js +0 -95
- package/user/src/models/UserWalletLink.d.ts +0 -37
- package/user/src/models/UserWalletLink.js +0 -49
- package/user/src/models/UserWallets.d.ts +0 -50
- package/user/src/models/UserWallets.js +0 -52
- package/user/src/models/index.d.ts +0 -56
- package/user/src/models/index.js +0 -74
- package/user/src/runtime.d.ts +0 -190
- package/user/src/runtime.js +0 -598
|
@@ -1,45 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { UserBankAccountCreationParameters, UserBankAccountLink } from '../models/index';
|
|
14
|
-
export interface CreateOrUpdateCurrentUserBankAccountRequest {
|
|
15
|
-
userBankAccountCreationParameters: UserBankAccountCreationParameters;
|
|
16
|
-
}
|
|
17
|
-
export interface CreateOrUpdateUserBankAccountRequest {
|
|
18
|
-
userId: number;
|
|
19
|
-
userBankAccountCreationParameters: UserBankAccountCreationParameters;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
*/
|
|
24
|
-
export declare class ManageUserBankAccountApi extends runtime.BaseAPI {
|
|
25
|
-
/**
|
|
26
|
-
* Create a bank account for user. A user can only have one bank account at a time. Creating bank account on user that already have a bank account will replace the previous one. Preconditions : - User profile \'company.address\' is completed - User profile legal name (\'firstname\', \'lastname\' and \'company.legalName\') is completed
|
|
27
|
-
* Create a bank account for user.
|
|
28
|
-
*/
|
|
29
|
-
createOrUpdateCurrentUserBankAccountRaw(requestParameters: CreateOrUpdateCurrentUserBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserBankAccountLink | runtime.BlobWithMeta>>;
|
|
30
|
-
/**
|
|
31
|
-
* Create a bank account for user. A user can only have one bank account at a time. Creating bank account on user that already have a bank account will replace the previous one. Preconditions : - User profile \'company.address\' is completed - User profile legal name (\'firstname\', \'lastname\' and \'company.legalName\') is completed
|
|
32
|
-
* Create a bank account for user.
|
|
33
|
-
*/
|
|
34
|
-
createOrUpdateCurrentUserBankAccount(requestParameters: CreateOrUpdateCurrentUserBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserBankAccountLink | runtime.BlobWithMeta>;
|
|
35
|
-
/**
|
|
36
|
-
* Create a bank account for user. A user can only have one bank account at a time. Creating bank account on user that already have a bank account will replace the previous one.
|
|
37
|
-
* Create a bank account for user.
|
|
38
|
-
*/
|
|
39
|
-
createOrUpdateUserBankAccountRaw(requestParameters: CreateOrUpdateUserBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserBankAccountLink | runtime.BlobWithMeta>>;
|
|
40
|
-
/**
|
|
41
|
-
* Create a bank account for user. A user can only have one bank account at a time. Creating bank account on user that already have a bank account will replace the previous one.
|
|
42
|
-
* Create a bank account for user.
|
|
43
|
-
*/
|
|
44
|
-
createOrUpdateUserBankAccount(requestParameters: CreateOrUpdateUserBankAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserBankAccountLink | runtime.BlobWithMeta>;
|
|
45
|
-
}
|
|
@@ -1,249 +0,0 @@
|
|
|
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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (_) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.ManageUserBankAccountApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var ManageUserBankAccountApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(ManageUserBankAccountApi, _super);
|
|
75
|
-
function ManageUserBankAccountApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Create a bank account for user. A user can only have one bank account at a time. Creating bank account on user that already have a bank account will replace the previous one. Preconditions : - User profile \'company.address\' is completed - User profile legal name (\'firstname\', \'lastname\' and \'company.legalName\') is completed
|
|
80
|
-
* Create a bank account for user.
|
|
81
|
-
*/
|
|
82
|
-
ManageUserBankAccountApi.prototype.createOrUpdateCurrentUserBankAccountRaw = function (requestParameters, initOverrides) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_1;
|
|
85
|
-
return __generator(this, function (_c) {
|
|
86
|
-
switch (_c.label) {
|
|
87
|
-
case 0:
|
|
88
|
-
if (requestParameters['userBankAccountCreationParameters'] == null) {
|
|
89
|
-
throw new runtime.RequiredError('userBankAccountCreationParameters', 'Required parameter "userBankAccountCreationParameters" was null or undefined when calling createOrUpdateCurrentUserBankAccount().');
|
|
90
|
-
}
|
|
91
|
-
queryParameters = {};
|
|
92
|
-
headerParameters = {};
|
|
93
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
94
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
95
|
-
_a = headerParameters;
|
|
96
|
-
_b = "x-api-key";
|
|
97
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
98
|
-
case 1:
|
|
99
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
100
|
-
_c.label = 2;
|
|
101
|
-
case 2:
|
|
102
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
103
|
-
token = this.configuration.accessToken;
|
|
104
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
105
|
-
case 3:
|
|
106
|
-
tokenString = _c.sent();
|
|
107
|
-
if (tokenString) {
|
|
108
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
109
|
-
}
|
|
110
|
-
_c.label = 4;
|
|
111
|
-
case 4:
|
|
112
|
-
_c.trys.push([4, 6, , 7]);
|
|
113
|
-
return [4 /*yield*/, this.request({
|
|
114
|
-
path: "/users/me/bank-account",
|
|
115
|
-
method: 'POST',
|
|
116
|
-
headers: headerParameters,
|
|
117
|
-
query: queryParameters,
|
|
118
|
-
body: (0, index_1.UserBankAccountCreationParametersToJSON)(requestParameters['userBankAccountCreationParameters']),
|
|
119
|
-
}, initOverrides)];
|
|
120
|
-
case 5:
|
|
121
|
-
response = _c.sent();
|
|
122
|
-
contentType = response.headers.get("content-type");
|
|
123
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
124
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserBankAccountLinkFromJSON)(jsonValue); })];
|
|
125
|
-
}
|
|
126
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
127
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
// TODO : Better handling of others application types
|
|
131
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
132
|
-
}
|
|
133
|
-
return [3 /*break*/, 7];
|
|
134
|
-
case 6:
|
|
135
|
-
response_1 = _c.sent();
|
|
136
|
-
console.debug(response_1);
|
|
137
|
-
throw response_1;
|
|
138
|
-
case 7: return [2 /*return*/];
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* Create a bank account for user. A user can only have one bank account at a time. Creating bank account on user that already have a bank account will replace the previous one. Preconditions : - User profile \'company.address\' is completed - User profile legal name (\'firstname\', \'lastname\' and \'company.legalName\') is completed
|
|
145
|
-
* Create a bank account for user.
|
|
146
|
-
*/
|
|
147
|
-
ManageUserBankAccountApi.prototype.createOrUpdateCurrentUserBankAccount = function (requestParameters, initOverrides) {
|
|
148
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
149
|
-
var response;
|
|
150
|
-
return __generator(this, function (_a) {
|
|
151
|
-
switch (_a.label) {
|
|
152
|
-
case 0: return [4 /*yield*/, this.createOrUpdateCurrentUserBankAccountRaw(requestParameters, initOverrides)];
|
|
153
|
-
case 1:
|
|
154
|
-
response = _a.sent();
|
|
155
|
-
return [4 /*yield*/, response.value()];
|
|
156
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
157
|
-
}
|
|
158
|
-
});
|
|
159
|
-
});
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* Create a bank account for user. A user can only have one bank account at a time. Creating bank account on user that already have a bank account will replace the previous one.
|
|
163
|
-
* Create a bank account for user.
|
|
164
|
-
*/
|
|
165
|
-
ManageUserBankAccountApi.prototype.createOrUpdateUserBankAccountRaw = function (requestParameters, initOverrides) {
|
|
166
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
167
|
-
var queryParameters, headerParameters, _a, _b, token, tokenString, response, contentType, response_2;
|
|
168
|
-
return __generator(this, function (_c) {
|
|
169
|
-
switch (_c.label) {
|
|
170
|
-
case 0:
|
|
171
|
-
if (requestParameters['userId'] == null) {
|
|
172
|
-
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling createOrUpdateUserBankAccount().');
|
|
173
|
-
}
|
|
174
|
-
if (requestParameters['userBankAccountCreationParameters'] == null) {
|
|
175
|
-
throw new runtime.RequiredError('userBankAccountCreationParameters', 'Required parameter "userBankAccountCreationParameters" was null or undefined when calling createOrUpdateUserBankAccount().');
|
|
176
|
-
}
|
|
177
|
-
queryParameters = {};
|
|
178
|
-
headerParameters = {};
|
|
179
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
180
|
-
if (!(this.configuration && this.configuration.apiKey)) return [3 /*break*/, 2];
|
|
181
|
-
_a = headerParameters;
|
|
182
|
-
_b = "x-api-key";
|
|
183
|
-
return [4 /*yield*/, this.configuration.apiKey("x-api-key")];
|
|
184
|
-
case 1:
|
|
185
|
-
_a[_b] = _c.sent(); // apiKeyAuth authentication
|
|
186
|
-
_c.label = 2;
|
|
187
|
-
case 2:
|
|
188
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 4];
|
|
189
|
-
token = this.configuration.accessToken;
|
|
190
|
-
return [4 /*yield*/, token("bearerAuth", [])];
|
|
191
|
-
case 3:
|
|
192
|
-
tokenString = _c.sent();
|
|
193
|
-
if (tokenString) {
|
|
194
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
195
|
-
}
|
|
196
|
-
_c.label = 4;
|
|
197
|
-
case 4:
|
|
198
|
-
_c.trys.push([4, 6, , 7]);
|
|
199
|
-
return [4 /*yield*/, this.request({
|
|
200
|
-
path: "/users/{userId}/bank-account".replace("{".concat("userId", "}"), encodeURIComponent(String(requestParameters['userId']))),
|
|
201
|
-
method: 'POST',
|
|
202
|
-
headers: headerParameters,
|
|
203
|
-
query: queryParameters,
|
|
204
|
-
body: (0, index_1.UserBankAccountCreationParametersToJSON)(requestParameters['userBankAccountCreationParameters']),
|
|
205
|
-
}, initOverrides)];
|
|
206
|
-
case 5:
|
|
207
|
-
response = _c.sent();
|
|
208
|
-
contentType = response.headers.get("content-type");
|
|
209
|
-
if (contentType && contentType.indexOf("application/json") !== -1) {
|
|
210
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.UserBankAccountLinkFromJSON)(jsonValue); })];
|
|
211
|
-
}
|
|
212
|
-
else if (contentType && contentType.indexOf("text/plain") !== -1) {
|
|
213
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
// TODO : Better handling of others application types
|
|
217
|
-
return [2 /*return*/, new runtime.BlobWithMetaApiResponse(response)];
|
|
218
|
-
}
|
|
219
|
-
return [3 /*break*/, 7];
|
|
220
|
-
case 6:
|
|
221
|
-
response_2 = _c.sent();
|
|
222
|
-
console.debug(response_2);
|
|
223
|
-
throw response_2;
|
|
224
|
-
case 7: return [2 /*return*/];
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
});
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* Create a bank account for user. A user can only have one bank account at a time. Creating bank account on user that already have a bank account will replace the previous one.
|
|
231
|
-
* Create a bank account for user.
|
|
232
|
-
*/
|
|
233
|
-
ManageUserBankAccountApi.prototype.createOrUpdateUserBankAccount = function (requestParameters, initOverrides) {
|
|
234
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
235
|
-
var response;
|
|
236
|
-
return __generator(this, function (_a) {
|
|
237
|
-
switch (_a.label) {
|
|
238
|
-
case 0: return [4 /*yield*/, this.createOrUpdateUserBankAccountRaw(requestParameters, initOverrides)];
|
|
239
|
-
case 1:
|
|
240
|
-
response = _a.sent();
|
|
241
|
-
return [4 /*yield*/, response.value()];
|
|
242
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
});
|
|
246
|
-
};
|
|
247
|
-
return ManageUserBankAccountApi;
|
|
248
|
-
}(runtime.BaseAPI));
|
|
249
|
-
exports.ManageUserBankAccountApi = ManageUserBankAccountApi;
|
|
@@ -1,98 +0,0 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { UserDocument, UserDocumentStatus } from '../models/index';
|
|
14
|
-
export interface CreateOrUpdateCurrentUserDocumentRequest {
|
|
15
|
-
documentType: CreateOrUpdateCurrentUserDocumentDocumentTypeEnum;
|
|
16
|
-
upload?: Array<runtime.BlobWithMeta>;
|
|
17
|
-
}
|
|
18
|
-
export interface CreateOrUpdateUserDocumentRequest {
|
|
19
|
-
userId: number;
|
|
20
|
-
documentType: CreateOrUpdateUserDocumentDocumentTypeEnum;
|
|
21
|
-
upload?: Array<runtime.BlobWithMeta>;
|
|
22
|
-
}
|
|
23
|
-
export interface UpdateUserDocumentStatusRequest {
|
|
24
|
-
userId: number;
|
|
25
|
-
documentType: UpdateUserDocumentStatusDocumentTypeEnum;
|
|
26
|
-
body: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
export declare class ManageUserDocumentApi extends runtime.BaseAPI {
|
|
32
|
-
/**
|
|
33
|
-
* Restrictions: - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
|
|
34
|
-
* Upload document associated to current user
|
|
35
|
-
*/
|
|
36
|
-
createOrUpdateCurrentUserDocumentRaw(requestParameters: CreateOrUpdateCurrentUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDocument | runtime.BlobWithMeta>>;
|
|
37
|
-
/**
|
|
38
|
-
* Restrictions: - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
|
|
39
|
-
* Upload document associated to current user
|
|
40
|
-
*/
|
|
41
|
-
createOrUpdateCurrentUserDocument(requestParameters: CreateOrUpdateCurrentUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDocument | runtime.BlobWithMeta>;
|
|
42
|
-
/**
|
|
43
|
-
* Restrictions : - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
|
|
44
|
-
* Upload document associated to given user
|
|
45
|
-
*/
|
|
46
|
-
createOrUpdateUserDocumentRaw(requestParameters: CreateOrUpdateUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDocument | runtime.BlobWithMeta>>;
|
|
47
|
-
/**
|
|
48
|
-
* Restrictions : - If DocumentType is in (\'ID\', \'KBIS\', \'SHARE_HOLDER\', \'STATUS\') then user \'scaEnrollmentStatus\' should be in \'ACTIVE\'
|
|
49
|
-
* Upload document associated to given user
|
|
50
|
-
*/
|
|
51
|
-
createOrUpdateUserDocument(requestParameters: CreateOrUpdateUserDocumentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDocument | runtime.BlobWithMeta>;
|
|
52
|
-
/**
|
|
53
|
-
* Restrictions : - Available status for document type : - GMP -> VALIDATED / VALIDATION_ASKED - Other -> All status
|
|
54
|
-
* Update document status
|
|
55
|
-
*/
|
|
56
|
-
updateUserDocumentStatusRaw(requestParameters: UpdateUserDocumentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserDocumentStatus | runtime.BlobWithMeta>>;
|
|
57
|
-
/**
|
|
58
|
-
* Restrictions : - Available status for document type : - GMP -> VALIDATED / VALIDATION_ASKED - Other -> All status
|
|
59
|
-
* Update document status
|
|
60
|
-
*/
|
|
61
|
-
updateUserDocumentStatus(requestParameters: UpdateUserDocumentStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserDocumentStatus | runtime.BlobWithMeta>;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @export
|
|
65
|
-
*/
|
|
66
|
-
export declare const CreateOrUpdateCurrentUserDocumentDocumentTypeEnum: {
|
|
67
|
-
readonly KBIS: "KBIS";
|
|
68
|
-
readonly ID: "ID";
|
|
69
|
-
readonly SHARE_HOLDER: "SHARE_HOLDER";
|
|
70
|
-
readonly STATUS: "STATUS";
|
|
71
|
-
readonly CGV: "CGV";
|
|
72
|
-
readonly GMP: "GMP";
|
|
73
|
-
};
|
|
74
|
-
export declare type CreateOrUpdateCurrentUserDocumentDocumentTypeEnum = typeof CreateOrUpdateCurrentUserDocumentDocumentTypeEnum[keyof typeof CreateOrUpdateCurrentUserDocumentDocumentTypeEnum];
|
|
75
|
-
/**
|
|
76
|
-
* @export
|
|
77
|
-
*/
|
|
78
|
-
export declare const CreateOrUpdateUserDocumentDocumentTypeEnum: {
|
|
79
|
-
readonly KBIS: "KBIS";
|
|
80
|
-
readonly ID: "ID";
|
|
81
|
-
readonly SHARE_HOLDER: "SHARE_HOLDER";
|
|
82
|
-
readonly STATUS: "STATUS";
|
|
83
|
-
readonly CGV: "CGV";
|
|
84
|
-
readonly GMP: "GMP";
|
|
85
|
-
};
|
|
86
|
-
export declare type CreateOrUpdateUserDocumentDocumentTypeEnum = typeof CreateOrUpdateUserDocumentDocumentTypeEnum[keyof typeof CreateOrUpdateUserDocumentDocumentTypeEnum];
|
|
87
|
-
/**
|
|
88
|
-
* @export
|
|
89
|
-
*/
|
|
90
|
-
export declare const UpdateUserDocumentStatusDocumentTypeEnum: {
|
|
91
|
-
readonly KBIS: "KBIS";
|
|
92
|
-
readonly ID: "ID";
|
|
93
|
-
readonly SHARE_HOLDER: "SHARE_HOLDER";
|
|
94
|
-
readonly STATUS: "STATUS";
|
|
95
|
-
readonly CGV: "CGV";
|
|
96
|
-
readonly GMP: "GMP";
|
|
97
|
-
};
|
|
98
|
-
export declare type UpdateUserDocumentStatusDocumentTypeEnum = typeof UpdateUserDocumentStatusDocumentTypeEnum[keyof typeof UpdateUserDocumentStatusDocumentTypeEnum];
|