@tennac-booking/sdk 1.0.15 → 1.0.16
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 +134 -125
- package/README.md +10 -0
- package/api.ts +443 -0
- package/dist/api.d.ts +338 -0
- package/dist/api.js +187 -2
- package/dist/esm/api.d.ts +338 -0
- package/dist/esm/api.js +180 -0
- package/docs/CancelBookingResponse.md +22 -0
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +22 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/CourtResponse.md +2 -0
- package/docs/ManagerCancelBookingResponse.md +22 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/SetupPaymentMethodRequestBody.md +22 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/UserPaymentApi.md +121 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -233,6 +233,75 @@ export const BookingStatus = {
|
|
|
233
233
|
export type BookingStatus = typeof BookingStatus[keyof typeof BookingStatus];
|
|
234
234
|
|
|
235
235
|
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @export
|
|
239
|
+
* @interface CancelBookingResponse
|
|
240
|
+
*/
|
|
241
|
+
export interface CancelBookingResponse {
|
|
242
|
+
/**
|
|
243
|
+
* Message de confirmation
|
|
244
|
+
* @type {string}
|
|
245
|
+
* @memberof CancelBookingResponse
|
|
246
|
+
*/
|
|
247
|
+
'message': string;
|
|
248
|
+
/**
|
|
249
|
+
*
|
|
250
|
+
* @type {CancelBookingResponseBooking}
|
|
251
|
+
* @memberof CancelBookingResponse
|
|
252
|
+
*/
|
|
253
|
+
'booking': CancelBookingResponseBooking;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
*
|
|
257
|
+
* @export
|
|
258
|
+
* @interface CancelBookingResponseBooking
|
|
259
|
+
*/
|
|
260
|
+
export interface CancelBookingResponseBooking {
|
|
261
|
+
/**
|
|
262
|
+
* ID de la réservation
|
|
263
|
+
* @type {string}
|
|
264
|
+
* @memberof CancelBookingResponseBooking
|
|
265
|
+
*/
|
|
266
|
+
'id': string;
|
|
267
|
+
/**
|
|
268
|
+
* Nouveau statut de la réservation
|
|
269
|
+
* @type {string}
|
|
270
|
+
* @memberof CancelBookingResponseBooking
|
|
271
|
+
*/
|
|
272
|
+
'status': CancelBookingResponseBookingStatusEnum;
|
|
273
|
+
/**
|
|
274
|
+
* Date et heure d\'annulation
|
|
275
|
+
* @type {string}
|
|
276
|
+
* @memberof CancelBookingResponseBooking
|
|
277
|
+
*/
|
|
278
|
+
'cancelledAt': string;
|
|
279
|
+
/**
|
|
280
|
+
* ID de l\'utilisateur qui a annulé
|
|
281
|
+
* @type {string}
|
|
282
|
+
* @memberof CancelBookingResponseBooking
|
|
283
|
+
*/
|
|
284
|
+
'cancelledBy': string;
|
|
285
|
+
/**
|
|
286
|
+
* Indique si annulé par un gestionnaire
|
|
287
|
+
* @type {boolean}
|
|
288
|
+
* @memberof CancelBookingResponseBooking
|
|
289
|
+
*/
|
|
290
|
+
'cancelledByManager': boolean;
|
|
291
|
+
/**
|
|
292
|
+
* Raison de l\'annulation (si fournie)
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof CancelBookingResponseBooking
|
|
295
|
+
*/
|
|
296
|
+
'cancellationReason'?: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export const CancelBookingResponseBookingStatusEnum = {
|
|
300
|
+
Cancelled: 'cancelled'
|
|
301
|
+
} as const;
|
|
302
|
+
|
|
303
|
+
export type CancelBookingResponseBookingStatusEnum = typeof CancelBookingResponseBookingStatusEnum[keyof typeof CancelBookingResponseBookingStatusEnum];
|
|
304
|
+
|
|
236
305
|
/**
|
|
237
306
|
*
|
|
238
307
|
* @export
|
|
@@ -810,6 +879,44 @@ export interface ClubsResponse {
|
|
|
810
879
|
*/
|
|
811
880
|
'total'?: number;
|
|
812
881
|
}
|
|
882
|
+
/**
|
|
883
|
+
*
|
|
884
|
+
* @export
|
|
885
|
+
* @interface ConfirmPaymentMethodSetupRequestBody
|
|
886
|
+
*/
|
|
887
|
+
export interface ConfirmPaymentMethodSetupRequestBody {
|
|
888
|
+
/**
|
|
889
|
+
* ID de l\'utilisateur
|
|
890
|
+
* @type {string}
|
|
891
|
+
* @memberof ConfirmPaymentMethodSetupRequestBody
|
|
892
|
+
*/
|
|
893
|
+
'userId': string;
|
|
894
|
+
/**
|
|
895
|
+
* ID du Setup Intent à confirmer
|
|
896
|
+
* @type {string}
|
|
897
|
+
* @memberof ConfirmPaymentMethodSetupRequestBody
|
|
898
|
+
*/
|
|
899
|
+
'setupIntentId': string;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
*
|
|
903
|
+
* @export
|
|
904
|
+
* @interface ConfirmPaymentMethodSetupResponse
|
|
905
|
+
*/
|
|
906
|
+
export interface ConfirmPaymentMethodSetupResponse {
|
|
907
|
+
/**
|
|
908
|
+
* Message de confirmation
|
|
909
|
+
* @type {string}
|
|
910
|
+
* @memberof ConfirmPaymentMethodSetupResponse
|
|
911
|
+
*/
|
|
912
|
+
'message'?: string;
|
|
913
|
+
/**
|
|
914
|
+
* ID de la méthode de paiement configurée
|
|
915
|
+
* @type {string}
|
|
916
|
+
* @memberof ConfirmPaymentMethodSetupResponse
|
|
917
|
+
*/
|
|
918
|
+
'paymentMethodId'?: string;
|
|
919
|
+
}
|
|
813
920
|
/**
|
|
814
921
|
*
|
|
815
922
|
* @export
|
|
@@ -909,6 +1016,12 @@ export interface CourtResponse {
|
|
|
909
1016
|
* @memberof CourtResponse
|
|
910
1017
|
*/
|
|
911
1018
|
'endTimeInTheDayInMinutes'?: number;
|
|
1019
|
+
/**
|
|
1020
|
+
*
|
|
1021
|
+
* @type {number}
|
|
1022
|
+
* @memberof CourtResponse
|
|
1023
|
+
*/
|
|
1024
|
+
'pricePerSlotInCents'?: number;
|
|
912
1025
|
/**
|
|
913
1026
|
*
|
|
914
1027
|
* @type {string}
|
|
@@ -1759,6 +1872,75 @@ export interface LoginResponse {
|
|
|
1759
1872
|
*/
|
|
1760
1873
|
'sessionEnd': number;
|
|
1761
1874
|
}
|
|
1875
|
+
/**
|
|
1876
|
+
*
|
|
1877
|
+
* @export
|
|
1878
|
+
* @interface ManagerCancelBookingResponse
|
|
1879
|
+
*/
|
|
1880
|
+
export interface ManagerCancelBookingResponse {
|
|
1881
|
+
/**
|
|
1882
|
+
* Message de confirmation
|
|
1883
|
+
* @type {string}
|
|
1884
|
+
* @memberof ManagerCancelBookingResponse
|
|
1885
|
+
*/
|
|
1886
|
+
'message': string;
|
|
1887
|
+
/**
|
|
1888
|
+
*
|
|
1889
|
+
* @type {ManagerCancelBookingResponseBooking}
|
|
1890
|
+
* @memberof ManagerCancelBookingResponse
|
|
1891
|
+
*/
|
|
1892
|
+
'booking': ManagerCancelBookingResponseBooking;
|
|
1893
|
+
}
|
|
1894
|
+
/**
|
|
1895
|
+
*
|
|
1896
|
+
* @export
|
|
1897
|
+
* @interface ManagerCancelBookingResponseBooking
|
|
1898
|
+
*/
|
|
1899
|
+
export interface ManagerCancelBookingResponseBooking {
|
|
1900
|
+
/**
|
|
1901
|
+
* ID de la réservation
|
|
1902
|
+
* @type {string}
|
|
1903
|
+
* @memberof ManagerCancelBookingResponseBooking
|
|
1904
|
+
*/
|
|
1905
|
+
'id': string;
|
|
1906
|
+
/**
|
|
1907
|
+
* Nouveau statut de la réservation
|
|
1908
|
+
* @type {string}
|
|
1909
|
+
* @memberof ManagerCancelBookingResponseBooking
|
|
1910
|
+
*/
|
|
1911
|
+
'status': ManagerCancelBookingResponseBookingStatusEnum;
|
|
1912
|
+
/**
|
|
1913
|
+
* Raison de l\'annulation par le gestionnaire
|
|
1914
|
+
* @type {string}
|
|
1915
|
+
* @memberof ManagerCancelBookingResponseBooking
|
|
1916
|
+
*/
|
|
1917
|
+
'cancellationReason': string;
|
|
1918
|
+
/**
|
|
1919
|
+
* Date et heure d\'annulation
|
|
1920
|
+
* @type {string}
|
|
1921
|
+
* @memberof ManagerCancelBookingResponseBooking
|
|
1922
|
+
*/
|
|
1923
|
+
'cancelledAt': string;
|
|
1924
|
+
/**
|
|
1925
|
+
* ID du gestionnaire qui a annulé
|
|
1926
|
+
* @type {string}
|
|
1927
|
+
* @memberof ManagerCancelBookingResponseBooking
|
|
1928
|
+
*/
|
|
1929
|
+
'cancelledBy': string;
|
|
1930
|
+
/**
|
|
1931
|
+
* Toujours true pour les annulations par gestionnaire
|
|
1932
|
+
* @type {boolean}
|
|
1933
|
+
* @memberof ManagerCancelBookingResponseBooking
|
|
1934
|
+
*/
|
|
1935
|
+
'cancelledByManager': boolean;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
export const ManagerCancelBookingResponseBookingStatusEnum = {
|
|
1939
|
+
Cancelled: 'cancelled'
|
|
1940
|
+
} as const;
|
|
1941
|
+
|
|
1942
|
+
export type ManagerCancelBookingResponseBookingStatusEnum = typeof ManagerCancelBookingResponseBookingStatusEnum[keyof typeof ManagerCancelBookingResponseBookingStatusEnum];
|
|
1943
|
+
|
|
1762
1944
|
/**
|
|
1763
1945
|
* Méthode de paiement
|
|
1764
1946
|
* @export
|
|
@@ -1949,6 +2131,50 @@ export interface RestoreSubscriptionPlanForClub200Response {
|
|
|
1949
2131
|
*/
|
|
1950
2132
|
'message'?: string;
|
|
1951
2133
|
}
|
|
2134
|
+
/**
|
|
2135
|
+
*
|
|
2136
|
+
* @export
|
|
2137
|
+
* @interface SetupPaymentMethodRequestBody
|
|
2138
|
+
*/
|
|
2139
|
+
export interface SetupPaymentMethodRequestBody {
|
|
2140
|
+
/**
|
|
2141
|
+
* ID de l\'utilisateur
|
|
2142
|
+
* @type {string}
|
|
2143
|
+
* @memberof SetupPaymentMethodRequestBody
|
|
2144
|
+
*/
|
|
2145
|
+
'userId': string;
|
|
2146
|
+
/**
|
|
2147
|
+
* ID du club
|
|
2148
|
+
* @type {string}
|
|
2149
|
+
* @memberof SetupPaymentMethodRequestBody
|
|
2150
|
+
*/
|
|
2151
|
+
'clubId': string;
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
*
|
|
2155
|
+
* @export
|
|
2156
|
+
* @interface SetupPaymentMethodResponse
|
|
2157
|
+
*/
|
|
2158
|
+
export interface SetupPaymentMethodResponse {
|
|
2159
|
+
/**
|
|
2160
|
+
* ID du Setup Intent Stripe
|
|
2161
|
+
* @type {string}
|
|
2162
|
+
* @memberof SetupPaymentMethodResponse
|
|
2163
|
+
*/
|
|
2164
|
+
'setupIntentId'?: string;
|
|
2165
|
+
/**
|
|
2166
|
+
* Client secret pour la configuration côté client
|
|
2167
|
+
* @type {string}
|
|
2168
|
+
* @memberof SetupPaymentMethodResponse
|
|
2169
|
+
*/
|
|
2170
|
+
'clientSecret'?: string;
|
|
2171
|
+
/**
|
|
2172
|
+
* Message de confirmation
|
|
2173
|
+
* @type {string}
|
|
2174
|
+
* @memberof SetupPaymentMethodResponse
|
|
2175
|
+
*/
|
|
2176
|
+
'message'?: string;
|
|
2177
|
+
}
|
|
1952
2178
|
/**
|
|
1953
2179
|
*
|
|
1954
2180
|
* @export
|
|
@@ -8107,6 +8333,223 @@ export class UserClubsApi extends BaseAPI {
|
|
|
8107
8333
|
|
|
8108
8334
|
|
|
8109
8335
|
|
|
8336
|
+
/**
|
|
8337
|
+
* UserPaymentApi - axios parameter creator
|
|
8338
|
+
* @export
|
|
8339
|
+
*/
|
|
8340
|
+
export const UserPaymentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
8341
|
+
return {
|
|
8342
|
+
/**
|
|
8343
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
8344
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
8345
|
+
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
8346
|
+
* @param {*} [options] Override http request option.
|
|
8347
|
+
* @throws {RequiredError}
|
|
8348
|
+
*/
|
|
8349
|
+
confirmPaymentMethodSetup: async (confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8350
|
+
// verify required parameter 'confirmPaymentMethodSetupRequestBody' is not null or undefined
|
|
8351
|
+
assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodSetupRequestBody', confirmPaymentMethodSetupRequestBody)
|
|
8352
|
+
const localVarPath = `/api/users/confirmPaymentMethodSetup`;
|
|
8353
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8354
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8355
|
+
let baseOptions;
|
|
8356
|
+
if (configuration) {
|
|
8357
|
+
baseOptions = configuration.baseOptions;
|
|
8358
|
+
}
|
|
8359
|
+
|
|
8360
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8361
|
+
const localVarHeaderParameter = {} as any;
|
|
8362
|
+
const localVarQueryParameter = {} as any;
|
|
8363
|
+
|
|
8364
|
+
// authentication bearerAuth required
|
|
8365
|
+
// http bearer authentication required
|
|
8366
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8367
|
+
|
|
8368
|
+
|
|
8369
|
+
|
|
8370
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8371
|
+
|
|
8372
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8373
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8374
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8375
|
+
localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodSetupRequestBody, localVarRequestOptions, configuration)
|
|
8376
|
+
|
|
8377
|
+
return {
|
|
8378
|
+
url: toPathString(localVarUrlObj),
|
|
8379
|
+
options: localVarRequestOptions,
|
|
8380
|
+
};
|
|
8381
|
+
},
|
|
8382
|
+
/**
|
|
8383
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
8384
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
8385
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8386
|
+
* @param {*} [options] Override http request option.
|
|
8387
|
+
* @throws {RequiredError}
|
|
8388
|
+
*/
|
|
8389
|
+
setupPaymentMethod: async (setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
8390
|
+
// verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
|
|
8391
|
+
assertParamExists('setupPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody)
|
|
8392
|
+
const localVarPath = `/api/users/setupPaymentMethod`;
|
|
8393
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8394
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8395
|
+
let baseOptions;
|
|
8396
|
+
if (configuration) {
|
|
8397
|
+
baseOptions = configuration.baseOptions;
|
|
8398
|
+
}
|
|
8399
|
+
|
|
8400
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
8401
|
+
const localVarHeaderParameter = {} as any;
|
|
8402
|
+
const localVarQueryParameter = {} as any;
|
|
8403
|
+
|
|
8404
|
+
// authentication bearerAuth required
|
|
8405
|
+
// http bearer authentication required
|
|
8406
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
8407
|
+
|
|
8408
|
+
|
|
8409
|
+
|
|
8410
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8411
|
+
|
|
8412
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8413
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8414
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
8415
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration)
|
|
8416
|
+
|
|
8417
|
+
return {
|
|
8418
|
+
url: toPathString(localVarUrlObj),
|
|
8419
|
+
options: localVarRequestOptions,
|
|
8420
|
+
};
|
|
8421
|
+
},
|
|
8422
|
+
}
|
|
8423
|
+
};
|
|
8424
|
+
|
|
8425
|
+
/**
|
|
8426
|
+
* UserPaymentApi - functional programming interface
|
|
8427
|
+
* @export
|
|
8428
|
+
*/
|
|
8429
|
+
export const UserPaymentApiFp = function(configuration?: Configuration) {
|
|
8430
|
+
const localVarAxiosParamCreator = UserPaymentApiAxiosParamCreator(configuration)
|
|
8431
|
+
return {
|
|
8432
|
+
/**
|
|
8433
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
8434
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
8435
|
+
* @param {ConfirmPaymentMethodSetupRequestBody} confirmPaymentMethodSetupRequestBody
|
|
8436
|
+
* @param {*} [options] Override http request option.
|
|
8437
|
+
* @throws {RequiredError}
|
|
8438
|
+
*/
|
|
8439
|
+
async confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentMethodSetupResponse>> {
|
|
8440
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody, options);
|
|
8441
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8442
|
+
const localVarOperationServerBasePath = operationServerMap['UserPaymentApi.confirmPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
|
|
8443
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8444
|
+
},
|
|
8445
|
+
/**
|
|
8446
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
8447
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
8448
|
+
* @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
|
|
8449
|
+
* @param {*} [options] Override http request option.
|
|
8450
|
+
* @throws {RequiredError}
|
|
8451
|
+
*/
|
|
8452
|
+
async setupPaymentMethod(setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetupPaymentMethodResponse>> {
|
|
8453
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.setupPaymentMethod(setupPaymentMethodRequestBody, options);
|
|
8454
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
8455
|
+
const localVarOperationServerBasePath = operationServerMap['UserPaymentApi.setupPaymentMethod']?.[localVarOperationServerIndex]?.url;
|
|
8456
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8457
|
+
},
|
|
8458
|
+
}
|
|
8459
|
+
};
|
|
8460
|
+
|
|
8461
|
+
/**
|
|
8462
|
+
* UserPaymentApi - factory interface
|
|
8463
|
+
* @export
|
|
8464
|
+
*/
|
|
8465
|
+
export const UserPaymentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
8466
|
+
const localVarFp = UserPaymentApiFp(configuration)
|
|
8467
|
+
return {
|
|
8468
|
+
/**
|
|
8469
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
8470
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
8471
|
+
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
8472
|
+
* @param {*} [options] Override http request option.
|
|
8473
|
+
* @throws {RequiredError}
|
|
8474
|
+
*/
|
|
8475
|
+
confirmPaymentMethodSetup(requestParameters: UserPaymentApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfirmPaymentMethodSetupResponse> {
|
|
8476
|
+
return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(axios, basePath));
|
|
8477
|
+
},
|
|
8478
|
+
/**
|
|
8479
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
8480
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
8481
|
+
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
8482
|
+
* @param {*} [options] Override http request option.
|
|
8483
|
+
* @throws {RequiredError}
|
|
8484
|
+
*/
|
|
8485
|
+
setupPaymentMethod(requestParameters: UserPaymentApiSetupPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetupPaymentMethodResponse> {
|
|
8486
|
+
return localVarFp.setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
|
|
8487
|
+
},
|
|
8488
|
+
};
|
|
8489
|
+
};
|
|
8490
|
+
|
|
8491
|
+
/**
|
|
8492
|
+
* Request parameters for confirmPaymentMethodSetup operation in UserPaymentApi.
|
|
8493
|
+
* @export
|
|
8494
|
+
* @interface UserPaymentApiConfirmPaymentMethodSetupRequest
|
|
8495
|
+
*/
|
|
8496
|
+
export interface UserPaymentApiConfirmPaymentMethodSetupRequest {
|
|
8497
|
+
/**
|
|
8498
|
+
*
|
|
8499
|
+
* @type {ConfirmPaymentMethodSetupRequestBody}
|
|
8500
|
+
* @memberof UserPaymentApiConfirmPaymentMethodSetup
|
|
8501
|
+
*/
|
|
8502
|
+
readonly confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody
|
|
8503
|
+
}
|
|
8504
|
+
|
|
8505
|
+
/**
|
|
8506
|
+
* Request parameters for setupPaymentMethod operation in UserPaymentApi.
|
|
8507
|
+
* @export
|
|
8508
|
+
* @interface UserPaymentApiSetupPaymentMethodRequest
|
|
8509
|
+
*/
|
|
8510
|
+
export interface UserPaymentApiSetupPaymentMethodRequest {
|
|
8511
|
+
/**
|
|
8512
|
+
*
|
|
8513
|
+
* @type {SetupPaymentMethodRequestBody}
|
|
8514
|
+
* @memberof UserPaymentApiSetupPaymentMethod
|
|
8515
|
+
*/
|
|
8516
|
+
readonly setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody
|
|
8517
|
+
}
|
|
8518
|
+
|
|
8519
|
+
/**
|
|
8520
|
+
* UserPaymentApi - object-oriented interface
|
|
8521
|
+
* @export
|
|
8522
|
+
* @class UserPaymentApi
|
|
8523
|
+
* @extends {BaseAPI}
|
|
8524
|
+
*/
|
|
8525
|
+
export class UserPaymentApi extends BaseAPI {
|
|
8526
|
+
/**
|
|
8527
|
+
* Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
8528
|
+
* @summary Confirme la configuration d\'une méthode de paiement
|
|
8529
|
+
* @param {UserPaymentApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
|
|
8530
|
+
* @param {*} [options] Override http request option.
|
|
8531
|
+
* @throws {RequiredError}
|
|
8532
|
+
* @memberof UserPaymentApi
|
|
8533
|
+
*/
|
|
8534
|
+
public confirmPaymentMethodSetup(requestParameters: UserPaymentApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
|
|
8535
|
+
return UserPaymentApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodSetupRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8536
|
+
}
|
|
8537
|
+
|
|
8538
|
+
/**
|
|
8539
|
+
* Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
8540
|
+
* @summary Configure une méthode de paiement pour un utilisateur
|
|
8541
|
+
* @param {UserPaymentApiSetupPaymentMethodRequest} requestParameters Request parameters.
|
|
8542
|
+
* @param {*} [options] Override http request option.
|
|
8543
|
+
* @throws {RequiredError}
|
|
8544
|
+
* @memberof UserPaymentApi
|
|
8545
|
+
*/
|
|
8546
|
+
public setupPaymentMethod(requestParameters: UserPaymentApiSetupPaymentMethodRequest, options?: RawAxiosRequestConfig) {
|
|
8547
|
+
return UserPaymentApiFp(this.configuration).setupPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
8548
|
+
}
|
|
8549
|
+
}
|
|
8550
|
+
|
|
8551
|
+
|
|
8552
|
+
|
|
8110
8553
|
/**
|
|
8111
8554
|
* UserProfileApi - axios parameter creator
|
|
8112
8555
|
* @export
|