@tennac-booking/sdk 1.0.15 → 1.0.81
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 +12 -2
- package/api.ts +457 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +352 -14
- package/dist/api.js +188 -3
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +352 -14
- package/dist/esm/api.js +181 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- 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 +15 -13
- 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/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.17
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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
|
|
@@ -872,79 +979,85 @@ export interface CourtResponse {
|
|
|
872
979
|
* @type {string}
|
|
873
980
|
* @memberof CourtResponse
|
|
874
981
|
*/
|
|
875
|
-
'id'
|
|
982
|
+
'id': string;
|
|
876
983
|
/**
|
|
877
984
|
*
|
|
878
985
|
* @type {string}
|
|
879
986
|
* @memberof CourtResponse
|
|
880
987
|
*/
|
|
881
|
-
'name'
|
|
988
|
+
'name': string;
|
|
882
989
|
/**
|
|
883
990
|
*
|
|
884
991
|
* @type {string}
|
|
885
992
|
* @memberof CourtResponse
|
|
886
993
|
*/
|
|
887
|
-
'status'
|
|
994
|
+
'status': CourtResponseStatusEnum;
|
|
888
995
|
/**
|
|
889
996
|
*
|
|
890
997
|
* @type {string}
|
|
891
998
|
* @memberof CourtResponse
|
|
892
999
|
*/
|
|
893
|
-
'comments'
|
|
1000
|
+
'comments': string;
|
|
1001
|
+
/**
|
|
1002
|
+
*
|
|
1003
|
+
* @type {number}
|
|
1004
|
+
* @memberof CourtResponse
|
|
1005
|
+
*/
|
|
1006
|
+
'slotDefaultDuration': number;
|
|
894
1007
|
/**
|
|
895
1008
|
*
|
|
896
1009
|
* @type {number}
|
|
897
1010
|
* @memberof CourtResponse
|
|
898
1011
|
*/
|
|
899
|
-
'
|
|
1012
|
+
'startTimeInTheDayInMinutes': number;
|
|
900
1013
|
/**
|
|
901
1014
|
*
|
|
902
1015
|
* @type {number}
|
|
903
1016
|
* @memberof CourtResponse
|
|
904
1017
|
*/
|
|
905
|
-
'
|
|
1018
|
+
'endTimeInTheDayInMinutes': number;
|
|
906
1019
|
/**
|
|
907
1020
|
*
|
|
908
1021
|
* @type {number}
|
|
909
1022
|
* @memberof CourtResponse
|
|
910
1023
|
*/
|
|
911
|
-
'
|
|
1024
|
+
'pricePerSlotInCents': number;
|
|
912
1025
|
/**
|
|
913
1026
|
*
|
|
914
1027
|
* @type {string}
|
|
915
1028
|
* @memberof CourtResponse
|
|
916
1029
|
*/
|
|
917
|
-
'sportId'
|
|
1030
|
+
'sportId': string;
|
|
918
1031
|
/**
|
|
919
1032
|
*
|
|
920
1033
|
* @type {string}
|
|
921
1034
|
* @memberof CourtResponse
|
|
922
1035
|
*/
|
|
923
|
-
'clubId'
|
|
1036
|
+
'clubId': string;
|
|
924
1037
|
/**
|
|
925
1038
|
*
|
|
926
1039
|
* @type {string}
|
|
927
1040
|
* @memberof CourtResponse
|
|
928
1041
|
*/
|
|
929
|
-
'surface'
|
|
1042
|
+
'surface': CourtResponseSurfaceEnum;
|
|
930
1043
|
/**
|
|
931
1044
|
* Indique si le terrain est en intérieur ou extérieur
|
|
932
1045
|
* @type {boolean}
|
|
933
1046
|
* @memberof CourtResponse
|
|
934
1047
|
*/
|
|
935
|
-
'isIndoor'
|
|
1048
|
+
'isIndoor': boolean;
|
|
936
1049
|
/**
|
|
937
1050
|
*
|
|
938
1051
|
* @type {string}
|
|
939
1052
|
* @memberof CourtResponse
|
|
940
1053
|
*/
|
|
941
|
-
'createdAt'
|
|
1054
|
+
'createdAt': string;
|
|
942
1055
|
/**
|
|
943
1056
|
*
|
|
944
1057
|
* @type {string}
|
|
945
1058
|
* @memberof CourtResponse
|
|
946
1059
|
*/
|
|
947
|
-
'updatedAt'
|
|
1060
|
+
'updatedAt': string;
|
|
948
1061
|
}
|
|
949
1062
|
|
|
950
1063
|
export const CourtResponseStatusEnum = {
|
|
@@ -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
|
package/base.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.17
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/common.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.17
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Pickle Ball API
|
|
5
5
|
* API for managing pickle ball games and players
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 1.0.
|
|
7
|
+
* The version of the OpenAPI document: 1.0.17
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|