@tennac-booking/sdk 1.0.248 → 1.0.250
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/.openapi-generator/FILES +2 -0
- package/README.md +3 -0
- package/api.ts +147 -0
- package/dist/api.d.ts +104 -0
- package/dist/api.js +66 -0
- package/dist/esm/api.d.ts +104 -0
- package/dist/esm/api.js +66 -0
- package/docs/AccountDeletionRequestBody.md +22 -0
- package/docs/AccountDeletionRequestResponse.md +22 -0
- package/docs/MobileSubscriptionDetailResponse.md +8 -0
- package/docs/UsersApi.md +55 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -8,6 +8,8 @@ common.ts
|
|
|
8
8
|
configuration.ts
|
|
9
9
|
docs/AcceptBookingInvitationRequest.md
|
|
10
10
|
docs/AcceptBookingInvitationResponse.md
|
|
11
|
+
docs/AccountDeletionRequestBody.md
|
|
12
|
+
docs/AccountDeletionRequestResponse.md
|
|
11
13
|
docs/AddClubMember201Response.md
|
|
12
14
|
docs/AddClubMemberRequest.md
|
|
13
15
|
docs/AddOrganizationRequest.md
|
package/README.md
CHANGED
|
@@ -296,6 +296,7 @@ Class | Method | HTTP request | Description
|
|
|
296
296
|
*UsersApi* | [**removeFavoriteClub**](docs/UsersApi.md#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} |
|
|
297
297
|
*UsersApi* | [**removeFavoritePlayer**](docs/UsersApi.md#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} |
|
|
298
298
|
*UsersApi* | [**removeOrganization**](docs/UsersApi.md#removeorganization) | **POST** /api/users/me/remove-organization |
|
|
299
|
+
*UsersApi* | [**requestAccountDeletion**](docs/UsersApi.md#requestaccountdeletion) | **POST** /api/users/me/request-account-deletion |
|
|
299
300
|
*UsersApi* | [**requestEmailVerification**](docs/UsersApi.md#requestemailverification) | **POST** /api/users/me/request-email-verification |
|
|
300
301
|
*UsersApi* | [**requestOrganizationCode**](docs/UsersApi.md#requestorganizationcode) | **POST** /api/users/me/request-organization-code |
|
|
301
302
|
*UsersApi* | [**requestPasswordReset**](docs/UsersApi.md#requestpasswordreset) | **POST** /api/users/request-password-reset |
|
|
@@ -331,6 +332,8 @@ Class | Method | HTTP request | Description
|
|
|
331
332
|
|
|
332
333
|
- [AcceptBookingInvitationRequest](docs/AcceptBookingInvitationRequest.md)
|
|
333
334
|
- [AcceptBookingInvitationResponse](docs/AcceptBookingInvitationResponse.md)
|
|
335
|
+
- [AccountDeletionRequestBody](docs/AccountDeletionRequestBody.md)
|
|
336
|
+
- [AccountDeletionRequestResponse](docs/AccountDeletionRequestResponse.md)
|
|
334
337
|
- [AddClubMember201Response](docs/AddClubMember201Response.md)
|
|
335
338
|
- [AddClubMemberRequest](docs/AddClubMemberRequest.md)
|
|
336
339
|
- [AddOrganizationRequest](docs/AddOrganizationRequest.md)
|
package/api.ts
CHANGED
|
@@ -67,6 +67,44 @@ export interface AcceptBookingInvitationResponse {
|
|
|
67
67
|
*/
|
|
68
68
|
'paymentUrl'?: string;
|
|
69
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @export
|
|
73
|
+
* @interface AccountDeletionRequestBody
|
|
74
|
+
*/
|
|
75
|
+
export interface AccountDeletionRequestBody {
|
|
76
|
+
/**
|
|
77
|
+
* Message libre décrivant la demande de suppression.
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof AccountDeletionRequestBody
|
|
80
|
+
*/
|
|
81
|
+
'message': string;
|
|
82
|
+
/**
|
|
83
|
+
* Raison courte de la demande (ex: RGPD, ne plus utiliser l\'application). Optionnelle.
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof AccountDeletionRequestBody
|
|
86
|
+
*/
|
|
87
|
+
'reason'?: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @export
|
|
92
|
+
* @interface AccountDeletionRequestResponse
|
|
93
|
+
*/
|
|
94
|
+
export interface AccountDeletionRequestResponse {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof AccountDeletionRequestResponse
|
|
99
|
+
*/
|
|
100
|
+
'requestId': string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {boolean}
|
|
104
|
+
* @memberof AccountDeletionRequestResponse
|
|
105
|
+
*/
|
|
106
|
+
'success': boolean;
|
|
107
|
+
}
|
|
70
108
|
/**
|
|
71
109
|
*
|
|
72
110
|
* @export
|
|
@@ -9256,6 +9294,12 @@ export interface MobileSubscriptionDetailResponse {
|
|
|
9256
9294
|
* @memberof MobileSubscriptionDetailResponse
|
|
9257
9295
|
*/
|
|
9258
9296
|
'defaultPaymentMethodBrand'?: string | null;
|
|
9297
|
+
/**
|
|
9298
|
+
*
|
|
9299
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
9300
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9301
|
+
*/
|
|
9302
|
+
'discount'?: SubscriptionPlanDiscountResponse | null;
|
|
9259
9303
|
/**
|
|
9260
9304
|
*
|
|
9261
9305
|
* @type {string}
|
|
@@ -9292,6 +9336,24 @@ export interface MobileSubscriptionDetailResponse {
|
|
|
9292
9336
|
* @memberof MobileSubscriptionDetailResponse
|
|
9293
9337
|
*/
|
|
9294
9338
|
'productId': string | null;
|
|
9339
|
+
/**
|
|
9340
|
+
*
|
|
9341
|
+
* @type {string}
|
|
9342
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9343
|
+
*/
|
|
9344
|
+
'planDescription'?: string | null;
|
|
9345
|
+
/**
|
|
9346
|
+
*
|
|
9347
|
+
* @type {string}
|
|
9348
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9349
|
+
*/
|
|
9350
|
+
'planName'?: string | null;
|
|
9351
|
+
/**
|
|
9352
|
+
*
|
|
9353
|
+
* @type {string}
|
|
9354
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9355
|
+
*/
|
|
9356
|
+
'planId'?: string | null;
|
|
9295
9357
|
/**
|
|
9296
9358
|
*
|
|
9297
9359
|
* @type {string}
|
|
@@ -37805,6 +37867,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
37805
37867
|
options: localVarRequestOptions,
|
|
37806
37868
|
};
|
|
37807
37869
|
},
|
|
37870
|
+
/**
|
|
37871
|
+
*
|
|
37872
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
37873
|
+
* @param {*} [options] Override http request option.
|
|
37874
|
+
* @throws {RequiredError}
|
|
37875
|
+
*/
|
|
37876
|
+
requestAccountDeletion: async (accountDeletionRequestBody: AccountDeletionRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
37877
|
+
// verify required parameter 'accountDeletionRequestBody' is not null or undefined
|
|
37878
|
+
assertParamExists('requestAccountDeletion', 'accountDeletionRequestBody', accountDeletionRequestBody)
|
|
37879
|
+
const localVarPath = `/api/users/me/request-account-deletion`;
|
|
37880
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
37881
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
37882
|
+
let baseOptions;
|
|
37883
|
+
if (configuration) {
|
|
37884
|
+
baseOptions = configuration.baseOptions;
|
|
37885
|
+
}
|
|
37886
|
+
|
|
37887
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
37888
|
+
const localVarHeaderParameter = {} as any;
|
|
37889
|
+
const localVarQueryParameter = {} as any;
|
|
37890
|
+
|
|
37891
|
+
// authentication bearerAuth required
|
|
37892
|
+
// http bearer authentication required
|
|
37893
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
37894
|
+
|
|
37895
|
+
|
|
37896
|
+
|
|
37897
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
37898
|
+
|
|
37899
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
37900
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
37901
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
37902
|
+
localVarRequestOptions.data = serializeDataIfNeeded(accountDeletionRequestBody, localVarRequestOptions, configuration)
|
|
37903
|
+
|
|
37904
|
+
return {
|
|
37905
|
+
url: toPathString(localVarUrlObj),
|
|
37906
|
+
options: localVarRequestOptions,
|
|
37907
|
+
};
|
|
37908
|
+
},
|
|
37808
37909
|
/**
|
|
37809
37910
|
*
|
|
37810
37911
|
* @param {*} [options] Override http request option.
|
|
@@ -38768,6 +38869,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
38768
38869
|
const localVarOperationServerBasePath = operationServerMap['UsersApi.removeOrganization']?.[localVarOperationServerIndex]?.url;
|
|
38769
38870
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38770
38871
|
},
|
|
38872
|
+
/**
|
|
38873
|
+
*
|
|
38874
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
38875
|
+
* @param {*} [options] Override http request option.
|
|
38876
|
+
* @throws {RequiredError}
|
|
38877
|
+
*/
|
|
38878
|
+
async requestAccountDeletion(accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDeletionRequestResponse>> {
|
|
38879
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.requestAccountDeletion(accountDeletionRequestBody, options);
|
|
38880
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
38881
|
+
const localVarOperationServerBasePath = operationServerMap['UsersApi.requestAccountDeletion']?.[localVarOperationServerIndex]?.url;
|
|
38882
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
38883
|
+
},
|
|
38771
38884
|
/**
|
|
38772
38885
|
*
|
|
38773
38886
|
* @param {*} [options] Override http request option.
|
|
@@ -39254,6 +39367,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
|
|
|
39254
39367
|
removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response> {
|
|
39255
39368
|
return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
39256
39369
|
},
|
|
39370
|
+
/**
|
|
39371
|
+
*
|
|
39372
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
39373
|
+
* @param {*} [options] Override http request option.
|
|
39374
|
+
* @throws {RequiredError}
|
|
39375
|
+
*/
|
|
39376
|
+
requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountDeletionRequestResponse> {
|
|
39377
|
+
return localVarFp.requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(axios, basePath));
|
|
39378
|
+
},
|
|
39257
39379
|
/**
|
|
39258
39380
|
*
|
|
39259
39381
|
* @param {*} [options] Override http request option.
|
|
@@ -39919,6 +40041,20 @@ export interface UsersApiRemoveOrganizationRequest {
|
|
|
39919
40041
|
readonly addOrganizationRequest: AddOrganizationRequest
|
|
39920
40042
|
}
|
|
39921
40043
|
|
|
40044
|
+
/**
|
|
40045
|
+
* Request parameters for requestAccountDeletion operation in UsersApi.
|
|
40046
|
+
* @export
|
|
40047
|
+
* @interface UsersApiRequestAccountDeletionRequest
|
|
40048
|
+
*/
|
|
40049
|
+
export interface UsersApiRequestAccountDeletionRequest {
|
|
40050
|
+
/**
|
|
40051
|
+
*
|
|
40052
|
+
* @type {AccountDeletionRequestBody}
|
|
40053
|
+
* @memberof UsersApiRequestAccountDeletion
|
|
40054
|
+
*/
|
|
40055
|
+
readonly accountDeletionRequestBody: AccountDeletionRequestBody
|
|
40056
|
+
}
|
|
40057
|
+
|
|
39922
40058
|
/**
|
|
39923
40059
|
* Request parameters for requestOrganizationCode operation in UsersApi.
|
|
39924
40060
|
* @export
|
|
@@ -40517,6 +40653,17 @@ export class UsersApi extends BaseAPI {
|
|
|
40517
40653
|
return UsersApiFp(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
40518
40654
|
}
|
|
40519
40655
|
|
|
40656
|
+
/**
|
|
40657
|
+
*
|
|
40658
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
40659
|
+
* @param {*} [options] Override http request option.
|
|
40660
|
+
* @throws {RequiredError}
|
|
40661
|
+
* @memberof UsersApi
|
|
40662
|
+
*/
|
|
40663
|
+
public requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig) {
|
|
40664
|
+
return UsersApiFp(this.configuration).requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
40665
|
+
}
|
|
40666
|
+
|
|
40520
40667
|
/**
|
|
40521
40668
|
*
|
|
40522
40669
|
* @param {*} [options] Override http request option.
|
package/dist/api.d.ts
CHANGED
|
@@ -57,6 +57,44 @@ export interface AcceptBookingInvitationResponse {
|
|
|
57
57
|
*/
|
|
58
58
|
'paymentUrl'?: string;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
* @interface AccountDeletionRequestBody
|
|
64
|
+
*/
|
|
65
|
+
export interface AccountDeletionRequestBody {
|
|
66
|
+
/**
|
|
67
|
+
* Message libre décrivant la demande de suppression.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AccountDeletionRequestBody
|
|
70
|
+
*/
|
|
71
|
+
'message': string;
|
|
72
|
+
/**
|
|
73
|
+
* Raison courte de la demande (ex: RGPD, ne plus utiliser l\'application). Optionnelle.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AccountDeletionRequestBody
|
|
76
|
+
*/
|
|
77
|
+
'reason'?: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @export
|
|
82
|
+
* @interface AccountDeletionRequestResponse
|
|
83
|
+
*/
|
|
84
|
+
export interface AccountDeletionRequestResponse {
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof AccountDeletionRequestResponse
|
|
89
|
+
*/
|
|
90
|
+
'requestId': string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof AccountDeletionRequestResponse
|
|
95
|
+
*/
|
|
96
|
+
'success': boolean;
|
|
97
|
+
}
|
|
60
98
|
/**
|
|
61
99
|
*
|
|
62
100
|
* @export
|
|
@@ -9131,6 +9169,12 @@ export interface MobileSubscriptionDetailResponse {
|
|
|
9131
9169
|
* @memberof MobileSubscriptionDetailResponse
|
|
9132
9170
|
*/
|
|
9133
9171
|
'defaultPaymentMethodBrand'?: string | null;
|
|
9172
|
+
/**
|
|
9173
|
+
*
|
|
9174
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
9175
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9176
|
+
*/
|
|
9177
|
+
'discount'?: SubscriptionPlanDiscountResponse | null;
|
|
9134
9178
|
/**
|
|
9135
9179
|
*
|
|
9136
9180
|
* @type {string}
|
|
@@ -9167,6 +9211,24 @@ export interface MobileSubscriptionDetailResponse {
|
|
|
9167
9211
|
* @memberof MobileSubscriptionDetailResponse
|
|
9168
9212
|
*/
|
|
9169
9213
|
'productId': string | null;
|
|
9214
|
+
/**
|
|
9215
|
+
*
|
|
9216
|
+
* @type {string}
|
|
9217
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9218
|
+
*/
|
|
9219
|
+
'planDescription'?: string | null;
|
|
9220
|
+
/**
|
|
9221
|
+
*
|
|
9222
|
+
* @type {string}
|
|
9223
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9224
|
+
*/
|
|
9225
|
+
'planName'?: string | null;
|
|
9226
|
+
/**
|
|
9227
|
+
*
|
|
9228
|
+
* @type {string}
|
|
9229
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9230
|
+
*/
|
|
9231
|
+
'planId'?: string | null;
|
|
9170
9232
|
/**
|
|
9171
9233
|
*
|
|
9172
9234
|
* @type {string}
|
|
@@ -27063,6 +27125,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
27063
27125
|
* @throws {RequiredError}
|
|
27064
27126
|
*/
|
|
27065
27127
|
removeOrganization: (addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27128
|
+
/**
|
|
27129
|
+
*
|
|
27130
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
27131
|
+
* @param {*} [options] Override http request option.
|
|
27132
|
+
* @throws {RequiredError}
|
|
27133
|
+
*/
|
|
27134
|
+
requestAccountDeletion: (accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27066
27135
|
/**
|
|
27067
27136
|
*
|
|
27068
27137
|
* @param {*} [options] Override http request option.
|
|
@@ -27438,6 +27507,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
27438
27507
|
* @throws {RequiredError}
|
|
27439
27508
|
*/
|
|
27440
27509
|
removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>>;
|
|
27510
|
+
/**
|
|
27511
|
+
*
|
|
27512
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
27513
|
+
* @param {*} [options] Override http request option.
|
|
27514
|
+
* @throws {RequiredError}
|
|
27515
|
+
*/
|
|
27516
|
+
requestAccountDeletion(accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDeletionRequestResponse>>;
|
|
27441
27517
|
/**
|
|
27442
27518
|
*
|
|
27443
27519
|
* @param {*} [options] Override http request option.
|
|
@@ -27791,6 +27867,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
27791
27867
|
* @throws {RequiredError}
|
|
27792
27868
|
*/
|
|
27793
27869
|
removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response>;
|
|
27870
|
+
/**
|
|
27871
|
+
*
|
|
27872
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
27873
|
+
* @param {*} [options] Override http request option.
|
|
27874
|
+
* @throws {RequiredError}
|
|
27875
|
+
*/
|
|
27876
|
+
requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountDeletionRequestResponse>;
|
|
27794
27877
|
/**
|
|
27795
27878
|
*
|
|
27796
27879
|
* @param {*} [options] Override http request option.
|
|
@@ -28378,6 +28461,19 @@ export interface UsersApiRemoveOrganizationRequest {
|
|
|
28378
28461
|
*/
|
|
28379
28462
|
readonly addOrganizationRequest: AddOrganizationRequest;
|
|
28380
28463
|
}
|
|
28464
|
+
/**
|
|
28465
|
+
* Request parameters for requestAccountDeletion operation in UsersApi.
|
|
28466
|
+
* @export
|
|
28467
|
+
* @interface UsersApiRequestAccountDeletionRequest
|
|
28468
|
+
*/
|
|
28469
|
+
export interface UsersApiRequestAccountDeletionRequest {
|
|
28470
|
+
/**
|
|
28471
|
+
*
|
|
28472
|
+
* @type {AccountDeletionRequestBody}
|
|
28473
|
+
* @memberof UsersApiRequestAccountDeletion
|
|
28474
|
+
*/
|
|
28475
|
+
readonly accountDeletionRequestBody: AccountDeletionRequestBody;
|
|
28476
|
+
}
|
|
28381
28477
|
/**
|
|
28382
28478
|
* Request parameters for requestOrganizationCode operation in UsersApi.
|
|
28383
28479
|
* @export
|
|
@@ -28859,6 +28955,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
28859
28955
|
* @memberof UsersApi
|
|
28860
28956
|
*/
|
|
28861
28957
|
removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LeaveEventWaitList200Response, any, {}>>;
|
|
28958
|
+
/**
|
|
28959
|
+
*
|
|
28960
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
28961
|
+
* @param {*} [options] Override http request option.
|
|
28962
|
+
* @throws {RequiredError}
|
|
28963
|
+
* @memberof UsersApi
|
|
28964
|
+
*/
|
|
28965
|
+
requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountDeletionRequestResponse, any, {}>>;
|
|
28862
28966
|
/**
|
|
28863
28967
|
*
|
|
28864
28968
|
* @param {*} [options] Override http request option.
|
package/dist/api.js
CHANGED
|
@@ -16890,6 +16890,38 @@ const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
16890
16890
|
options: localVarRequestOptions,
|
|
16891
16891
|
};
|
|
16892
16892
|
}),
|
|
16893
|
+
/**
|
|
16894
|
+
*
|
|
16895
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
16896
|
+
* @param {*} [options] Override http request option.
|
|
16897
|
+
* @throws {RequiredError}
|
|
16898
|
+
*/
|
|
16899
|
+
requestAccountDeletion: (accountDeletionRequestBody_1, ...args_1) => __awaiter(this, [accountDeletionRequestBody_1, ...args_1], void 0, function* (accountDeletionRequestBody, options = {}) {
|
|
16900
|
+
// verify required parameter 'accountDeletionRequestBody' is not null or undefined
|
|
16901
|
+
(0, common_1.assertParamExists)('requestAccountDeletion', 'accountDeletionRequestBody', accountDeletionRequestBody);
|
|
16902
|
+
const localVarPath = `/api/users/me/request-account-deletion`;
|
|
16903
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16904
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16905
|
+
let baseOptions;
|
|
16906
|
+
if (configuration) {
|
|
16907
|
+
baseOptions = configuration.baseOptions;
|
|
16908
|
+
}
|
|
16909
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16910
|
+
const localVarHeaderParameter = {};
|
|
16911
|
+
const localVarQueryParameter = {};
|
|
16912
|
+
// authentication bearerAuth required
|
|
16913
|
+
// http bearer authentication required
|
|
16914
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16915
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16916
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16917
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16918
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16919
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(accountDeletionRequestBody, localVarRequestOptions, configuration);
|
|
16920
|
+
return {
|
|
16921
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16922
|
+
options: localVarRequestOptions,
|
|
16923
|
+
};
|
|
16924
|
+
}),
|
|
16893
16925
|
/**
|
|
16894
16926
|
*
|
|
16895
16927
|
* @param {*} [options] Override http request option.
|
|
@@ -17871,6 +17903,21 @@ const UsersApiFp = function (configuration) {
|
|
|
17871
17903
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17872
17904
|
});
|
|
17873
17905
|
},
|
|
17906
|
+
/**
|
|
17907
|
+
*
|
|
17908
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
17909
|
+
* @param {*} [options] Override http request option.
|
|
17910
|
+
* @throws {RequiredError}
|
|
17911
|
+
*/
|
|
17912
|
+
requestAccountDeletion(accountDeletionRequestBody, options) {
|
|
17913
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17914
|
+
var _a, _b, _c;
|
|
17915
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestAccountDeletion(accountDeletionRequestBody, options);
|
|
17916
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17917
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['UsersApi.requestAccountDeletion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17918
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17919
|
+
});
|
|
17920
|
+
},
|
|
17874
17921
|
/**
|
|
17875
17922
|
*
|
|
17876
17923
|
* @param {*} [options] Override http request option.
|
|
@@ -18396,6 +18443,15 @@ const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
18396
18443
|
removeOrganization(requestParameters, options) {
|
|
18397
18444
|
return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
18398
18445
|
},
|
|
18446
|
+
/**
|
|
18447
|
+
*
|
|
18448
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
18449
|
+
* @param {*} [options] Override http request option.
|
|
18450
|
+
* @throws {RequiredError}
|
|
18451
|
+
*/
|
|
18452
|
+
requestAccountDeletion(requestParameters, options) {
|
|
18453
|
+
return localVarFp.requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(axios, basePath));
|
|
18454
|
+
},
|
|
18399
18455
|
/**
|
|
18400
18456
|
*
|
|
18401
18457
|
* @param {*} [options] Override http request option.
|
|
@@ -18874,6 +18930,16 @@ class UsersApi extends base_1.BaseAPI {
|
|
|
18874
18930
|
removeOrganization(requestParameters, options) {
|
|
18875
18931
|
return (0, exports.UsersApiFp)(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18876
18932
|
}
|
|
18933
|
+
/**
|
|
18934
|
+
*
|
|
18935
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
18936
|
+
* @param {*} [options] Override http request option.
|
|
18937
|
+
* @throws {RequiredError}
|
|
18938
|
+
* @memberof UsersApi
|
|
18939
|
+
*/
|
|
18940
|
+
requestAccountDeletion(requestParameters, options) {
|
|
18941
|
+
return (0, exports.UsersApiFp)(this.configuration).requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
18942
|
+
}
|
|
18877
18943
|
/**
|
|
18878
18944
|
*
|
|
18879
18945
|
* @param {*} [options] Override http request option.
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -57,6 +57,44 @@ export interface AcceptBookingInvitationResponse {
|
|
|
57
57
|
*/
|
|
58
58
|
'paymentUrl'?: string;
|
|
59
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @export
|
|
63
|
+
* @interface AccountDeletionRequestBody
|
|
64
|
+
*/
|
|
65
|
+
export interface AccountDeletionRequestBody {
|
|
66
|
+
/**
|
|
67
|
+
* Message libre décrivant la demande de suppression.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof AccountDeletionRequestBody
|
|
70
|
+
*/
|
|
71
|
+
'message': string;
|
|
72
|
+
/**
|
|
73
|
+
* Raison courte de la demande (ex: RGPD, ne plus utiliser l\'application). Optionnelle.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof AccountDeletionRequestBody
|
|
76
|
+
*/
|
|
77
|
+
'reason'?: string;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
* @export
|
|
82
|
+
* @interface AccountDeletionRequestResponse
|
|
83
|
+
*/
|
|
84
|
+
export interface AccountDeletionRequestResponse {
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {string}
|
|
88
|
+
* @memberof AccountDeletionRequestResponse
|
|
89
|
+
*/
|
|
90
|
+
'requestId': string;
|
|
91
|
+
/**
|
|
92
|
+
*
|
|
93
|
+
* @type {boolean}
|
|
94
|
+
* @memberof AccountDeletionRequestResponse
|
|
95
|
+
*/
|
|
96
|
+
'success': boolean;
|
|
97
|
+
}
|
|
60
98
|
/**
|
|
61
99
|
*
|
|
62
100
|
* @export
|
|
@@ -9131,6 +9169,12 @@ export interface MobileSubscriptionDetailResponse {
|
|
|
9131
9169
|
* @memberof MobileSubscriptionDetailResponse
|
|
9132
9170
|
*/
|
|
9133
9171
|
'defaultPaymentMethodBrand'?: string | null;
|
|
9172
|
+
/**
|
|
9173
|
+
*
|
|
9174
|
+
* @type {SubscriptionPlanDiscountResponse}
|
|
9175
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9176
|
+
*/
|
|
9177
|
+
'discount'?: SubscriptionPlanDiscountResponse | null;
|
|
9134
9178
|
/**
|
|
9135
9179
|
*
|
|
9136
9180
|
* @type {string}
|
|
@@ -9167,6 +9211,24 @@ export interface MobileSubscriptionDetailResponse {
|
|
|
9167
9211
|
* @memberof MobileSubscriptionDetailResponse
|
|
9168
9212
|
*/
|
|
9169
9213
|
'productId': string | null;
|
|
9214
|
+
/**
|
|
9215
|
+
*
|
|
9216
|
+
* @type {string}
|
|
9217
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9218
|
+
*/
|
|
9219
|
+
'planDescription'?: string | null;
|
|
9220
|
+
/**
|
|
9221
|
+
*
|
|
9222
|
+
* @type {string}
|
|
9223
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9224
|
+
*/
|
|
9225
|
+
'planName'?: string | null;
|
|
9226
|
+
/**
|
|
9227
|
+
*
|
|
9228
|
+
* @type {string}
|
|
9229
|
+
* @memberof MobileSubscriptionDetailResponse
|
|
9230
|
+
*/
|
|
9231
|
+
'planId'?: string | null;
|
|
9170
9232
|
/**
|
|
9171
9233
|
*
|
|
9172
9234
|
* @type {string}
|
|
@@ -27063,6 +27125,13 @@ export declare const UsersApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
27063
27125
|
* @throws {RequiredError}
|
|
27064
27126
|
*/
|
|
27065
27127
|
removeOrganization: (addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27128
|
+
/**
|
|
27129
|
+
*
|
|
27130
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
27131
|
+
* @param {*} [options] Override http request option.
|
|
27132
|
+
* @throws {RequiredError}
|
|
27133
|
+
*/
|
|
27134
|
+
requestAccountDeletion: (accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
27066
27135
|
/**
|
|
27067
27136
|
*
|
|
27068
27137
|
* @param {*} [options] Override http request option.
|
|
@@ -27438,6 +27507,13 @@ export declare const UsersApiFp: (configuration?: Configuration) => {
|
|
|
27438
27507
|
* @throws {RequiredError}
|
|
27439
27508
|
*/
|
|
27440
27509
|
removeOrganization(addOrganizationRequest: AddOrganizationRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<LeaveEventWaitList200Response>>;
|
|
27510
|
+
/**
|
|
27511
|
+
*
|
|
27512
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
27513
|
+
* @param {*} [options] Override http request option.
|
|
27514
|
+
* @throws {RequiredError}
|
|
27515
|
+
*/
|
|
27516
|
+
requestAccountDeletion(accountDeletionRequestBody: AccountDeletionRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AccountDeletionRequestResponse>>;
|
|
27441
27517
|
/**
|
|
27442
27518
|
*
|
|
27443
27519
|
* @param {*} [options] Override http request option.
|
|
@@ -27791,6 +27867,13 @@ export declare const UsersApiFactory: (configuration?: Configuration, basePath?:
|
|
|
27791
27867
|
* @throws {RequiredError}
|
|
27792
27868
|
*/
|
|
27793
27869
|
removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<LeaveEventWaitList200Response>;
|
|
27870
|
+
/**
|
|
27871
|
+
*
|
|
27872
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
27873
|
+
* @param {*} [options] Override http request option.
|
|
27874
|
+
* @throws {RequiredError}
|
|
27875
|
+
*/
|
|
27876
|
+
requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): AxiosPromise<AccountDeletionRequestResponse>;
|
|
27794
27877
|
/**
|
|
27795
27878
|
*
|
|
27796
27879
|
* @param {*} [options] Override http request option.
|
|
@@ -28378,6 +28461,19 @@ export interface UsersApiRemoveOrganizationRequest {
|
|
|
28378
28461
|
*/
|
|
28379
28462
|
readonly addOrganizationRequest: AddOrganizationRequest;
|
|
28380
28463
|
}
|
|
28464
|
+
/**
|
|
28465
|
+
* Request parameters for requestAccountDeletion operation in UsersApi.
|
|
28466
|
+
* @export
|
|
28467
|
+
* @interface UsersApiRequestAccountDeletionRequest
|
|
28468
|
+
*/
|
|
28469
|
+
export interface UsersApiRequestAccountDeletionRequest {
|
|
28470
|
+
/**
|
|
28471
|
+
*
|
|
28472
|
+
* @type {AccountDeletionRequestBody}
|
|
28473
|
+
* @memberof UsersApiRequestAccountDeletion
|
|
28474
|
+
*/
|
|
28475
|
+
readonly accountDeletionRequestBody: AccountDeletionRequestBody;
|
|
28476
|
+
}
|
|
28381
28477
|
/**
|
|
28382
28478
|
* Request parameters for requestOrganizationCode operation in UsersApi.
|
|
28383
28479
|
* @export
|
|
@@ -28859,6 +28955,14 @@ export declare class UsersApi extends BaseAPI {
|
|
|
28859
28955
|
* @memberof UsersApi
|
|
28860
28956
|
*/
|
|
28861
28957
|
removeOrganization(requestParameters: UsersApiRemoveOrganizationRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<LeaveEventWaitList200Response, any, {}>>;
|
|
28958
|
+
/**
|
|
28959
|
+
*
|
|
28960
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
28961
|
+
* @param {*} [options] Override http request option.
|
|
28962
|
+
* @throws {RequiredError}
|
|
28963
|
+
* @memberof UsersApi
|
|
28964
|
+
*/
|
|
28965
|
+
requestAccountDeletion(requestParameters: UsersApiRequestAccountDeletionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<AccountDeletionRequestResponse, any, {}>>;
|
|
28862
28966
|
/**
|
|
28863
28967
|
*
|
|
28864
28968
|
* @param {*} [options] Override http request option.
|
package/dist/esm/api.js
CHANGED
|
@@ -16739,6 +16739,38 @@ export const UsersApiAxiosParamCreator = function (configuration) {
|
|
|
16739
16739
|
options: localVarRequestOptions,
|
|
16740
16740
|
};
|
|
16741
16741
|
}),
|
|
16742
|
+
/**
|
|
16743
|
+
*
|
|
16744
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
16745
|
+
* @param {*} [options] Override http request option.
|
|
16746
|
+
* @throws {RequiredError}
|
|
16747
|
+
*/
|
|
16748
|
+
requestAccountDeletion: (accountDeletionRequestBody_1, ...args_1) => __awaiter(this, [accountDeletionRequestBody_1, ...args_1], void 0, function* (accountDeletionRequestBody, options = {}) {
|
|
16749
|
+
// verify required parameter 'accountDeletionRequestBody' is not null or undefined
|
|
16750
|
+
assertParamExists('requestAccountDeletion', 'accountDeletionRequestBody', accountDeletionRequestBody);
|
|
16751
|
+
const localVarPath = `/api/users/me/request-account-deletion`;
|
|
16752
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16753
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16754
|
+
let baseOptions;
|
|
16755
|
+
if (configuration) {
|
|
16756
|
+
baseOptions = configuration.baseOptions;
|
|
16757
|
+
}
|
|
16758
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16759
|
+
const localVarHeaderParameter = {};
|
|
16760
|
+
const localVarQueryParameter = {};
|
|
16761
|
+
// authentication bearerAuth required
|
|
16762
|
+
// http bearer authentication required
|
|
16763
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16764
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16765
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16766
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16767
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16768
|
+
localVarRequestOptions.data = serializeDataIfNeeded(accountDeletionRequestBody, localVarRequestOptions, configuration);
|
|
16769
|
+
return {
|
|
16770
|
+
url: toPathString(localVarUrlObj),
|
|
16771
|
+
options: localVarRequestOptions,
|
|
16772
|
+
};
|
|
16773
|
+
}),
|
|
16742
16774
|
/**
|
|
16743
16775
|
*
|
|
16744
16776
|
* @param {*} [options] Override http request option.
|
|
@@ -17719,6 +17751,21 @@ export const UsersApiFp = function (configuration) {
|
|
|
17719
17751
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17720
17752
|
});
|
|
17721
17753
|
},
|
|
17754
|
+
/**
|
|
17755
|
+
*
|
|
17756
|
+
* @param {AccountDeletionRequestBody} accountDeletionRequestBody
|
|
17757
|
+
* @param {*} [options] Override http request option.
|
|
17758
|
+
* @throws {RequiredError}
|
|
17759
|
+
*/
|
|
17760
|
+
requestAccountDeletion(accountDeletionRequestBody, options) {
|
|
17761
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17762
|
+
var _a, _b, _c;
|
|
17763
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.requestAccountDeletion(accountDeletionRequestBody, options);
|
|
17764
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17765
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UsersApi.requestAccountDeletion']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17766
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17767
|
+
});
|
|
17768
|
+
},
|
|
17722
17769
|
/**
|
|
17723
17770
|
*
|
|
17724
17771
|
* @param {*} [options] Override http request option.
|
|
@@ -18243,6 +18290,15 @@ export const UsersApiFactory = function (configuration, basePath, axios) {
|
|
|
18243
18290
|
removeOrganization(requestParameters, options) {
|
|
18244
18291
|
return localVarFp.removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
|
|
18245
18292
|
},
|
|
18293
|
+
/**
|
|
18294
|
+
*
|
|
18295
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
18296
|
+
* @param {*} [options] Override http request option.
|
|
18297
|
+
* @throws {RequiredError}
|
|
18298
|
+
*/
|
|
18299
|
+
requestAccountDeletion(requestParameters, options) {
|
|
18300
|
+
return localVarFp.requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(axios, basePath));
|
|
18301
|
+
},
|
|
18246
18302
|
/**
|
|
18247
18303
|
*
|
|
18248
18304
|
* @param {*} [options] Override http request option.
|
|
@@ -18720,6 +18776,16 @@ export class UsersApi extends BaseAPI {
|
|
|
18720
18776
|
removeOrganization(requestParameters, options) {
|
|
18721
18777
|
return UsersApiFp(this.configuration).removeOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
18722
18778
|
}
|
|
18779
|
+
/**
|
|
18780
|
+
*
|
|
18781
|
+
* @param {UsersApiRequestAccountDeletionRequest} requestParameters Request parameters.
|
|
18782
|
+
* @param {*} [options] Override http request option.
|
|
18783
|
+
* @throws {RequiredError}
|
|
18784
|
+
* @memberof UsersApi
|
|
18785
|
+
*/
|
|
18786
|
+
requestAccountDeletion(requestParameters, options) {
|
|
18787
|
+
return UsersApiFp(this.configuration).requestAccountDeletion(requestParameters.accountDeletionRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
18788
|
+
}
|
|
18723
18789
|
/**
|
|
18724
18790
|
*
|
|
18725
18791
|
* @param {*} [options] Override http request option.
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# AccountDeletionRequestBody
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**message** | **string** | Message libre décrivant la demande de suppression. | [default to undefined]
|
|
9
|
+
**reason** | **string** | Raison courte de la demande (ex: RGPD, ne plus utiliser l\'application). Optionnelle. | [optional] [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AccountDeletionRequestBody } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AccountDeletionRequestBody = {
|
|
17
|
+
message,
|
|
18
|
+
reason,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# AccountDeletionRequestResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**requestId** | **string** | | [default to undefined]
|
|
9
|
+
**success** | **boolean** | | [default to undefined]
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { AccountDeletionRequestResponse } from '@tennac-booking/sdk';
|
|
15
|
+
|
|
16
|
+
const instance: AccountDeletionRequestResponse = {
|
|
17
|
+
requestId,
|
|
18
|
+
success,
|
|
19
|
+
};
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -9,12 +9,16 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**defaultPaymentMethodExpMonth** | **number** | | [optional] [default to undefined]
|
|
10
10
|
**defaultPaymentMethodLast4** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**defaultPaymentMethodBrand** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**discount** | [**SubscriptionPlanDiscountResponse**](SubscriptionPlanDiscountResponse.md) | | [optional] [default to undefined]
|
|
12
13
|
**clubName** | **string** | | [default to undefined]
|
|
13
14
|
**clubId** | **string** | | [default to undefined]
|
|
14
15
|
**interval** | [**PlanInterval**](PlanInterval.md) | | [default to undefined]
|
|
15
16
|
**currency** | **string** | | [default to undefined]
|
|
16
17
|
**amountInCents** | **number** | | [default to undefined]
|
|
17
18
|
**productId** | **string** | | [default to undefined]
|
|
19
|
+
**planDescription** | **string** | | [optional] [default to undefined]
|
|
20
|
+
**planName** | **string** | | [optional] [default to undefined]
|
|
21
|
+
**planId** | **string** | | [optional] [default to undefined]
|
|
18
22
|
**priceId** | **string** | | [default to undefined]
|
|
19
23
|
**currentPeriodEnd** | **number** | | [default to undefined]
|
|
20
24
|
**currentPeriodStart** | **number** | | [default to undefined]
|
|
@@ -33,12 +37,16 @@ const instance: MobileSubscriptionDetailResponse = {
|
|
|
33
37
|
defaultPaymentMethodExpMonth,
|
|
34
38
|
defaultPaymentMethodLast4,
|
|
35
39
|
defaultPaymentMethodBrand,
|
|
40
|
+
discount,
|
|
36
41
|
clubName,
|
|
37
42
|
clubId,
|
|
38
43
|
interval,
|
|
39
44
|
currency,
|
|
40
45
|
amountInCents,
|
|
41
46
|
productId,
|
|
47
|
+
planDescription,
|
|
48
|
+
planName,
|
|
49
|
+
planId,
|
|
42
50
|
priceId,
|
|
43
51
|
currentPeriodEnd,
|
|
44
52
|
currentPeriodStart,
|
package/docs/UsersApi.md
CHANGED
|
@@ -40,6 +40,7 @@ All URIs are relative to *http://localhost*
|
|
|
40
40
|
|[**removeFavoriteClub**](#removefavoriteclub) | **DELETE** /api/users/me/favorite-clubs/{clubId} | |
|
|
41
41
|
|[**removeFavoritePlayer**](#removefavoriteplayer) | **DELETE** /api/users/me/favoritesPlayers/{favoritePlayerId} | |
|
|
42
42
|
|[**removeOrganization**](#removeorganization) | **POST** /api/users/me/remove-organization | |
|
|
43
|
+
|[**requestAccountDeletion**](#requestaccountdeletion) | **POST** /api/users/me/request-account-deletion | |
|
|
43
44
|
|[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
|
|
44
45
|
|[**requestOrganizationCode**](#requestorganizationcode) | **POST** /api/users/me/request-organization-code | |
|
|
45
46
|
|[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
|
|
@@ -1886,6 +1887,60 @@ const { status, data } = await apiInstance.removeOrganization(
|
|
|
1886
1887
|
|
|
1887
1888
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1888
1889
|
|
|
1890
|
+
# **requestAccountDeletion**
|
|
1891
|
+
> AccountDeletionRequestResponse requestAccountDeletion(accountDeletionRequestBody)
|
|
1892
|
+
|
|
1893
|
+
|
|
1894
|
+
### Example
|
|
1895
|
+
|
|
1896
|
+
```typescript
|
|
1897
|
+
import {
|
|
1898
|
+
UsersApi,
|
|
1899
|
+
Configuration,
|
|
1900
|
+
AccountDeletionRequestBody
|
|
1901
|
+
} from '@tennac-booking/sdk';
|
|
1902
|
+
|
|
1903
|
+
const configuration = new Configuration();
|
|
1904
|
+
const apiInstance = new UsersApi(configuration);
|
|
1905
|
+
|
|
1906
|
+
let accountDeletionRequestBody: AccountDeletionRequestBody; //
|
|
1907
|
+
|
|
1908
|
+
const { status, data } = await apiInstance.requestAccountDeletion(
|
|
1909
|
+
accountDeletionRequestBody
|
|
1910
|
+
);
|
|
1911
|
+
```
|
|
1912
|
+
|
|
1913
|
+
### Parameters
|
|
1914
|
+
|
|
1915
|
+
|Name | Type | Description | Notes|
|
|
1916
|
+
|------------- | ------------- | ------------- | -------------|
|
|
1917
|
+
| **accountDeletionRequestBody** | **AccountDeletionRequestBody**| | |
|
|
1918
|
+
|
|
1919
|
+
|
|
1920
|
+
### Return type
|
|
1921
|
+
|
|
1922
|
+
**AccountDeletionRequestResponse**
|
|
1923
|
+
|
|
1924
|
+
### Authorization
|
|
1925
|
+
|
|
1926
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
1927
|
+
|
|
1928
|
+
### HTTP request headers
|
|
1929
|
+
|
|
1930
|
+
- **Content-Type**: application/json
|
|
1931
|
+
- **Accept**: application/json
|
|
1932
|
+
|
|
1933
|
+
|
|
1934
|
+
### HTTP response details
|
|
1935
|
+
| Status code | Description | Response headers |
|
|
1936
|
+
|-------------|-------------|------------------|
|
|
1937
|
+
|**201** | Demande enregistrée | - |
|
|
1938
|
+
|**400** | Payload invalide | - |
|
|
1939
|
+
|**404** | Utilisateur non trouvé | - |
|
|
1940
|
+
|**500** | Erreur envoi email | - |
|
|
1941
|
+
|
|
1942
|
+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
1943
|
+
|
|
1889
1944
|
# **requestEmailVerification**
|
|
1890
1945
|
> LeaveEventWaitList200Response requestEmailVerification()
|
|
1891
1946
|
|