@tennac-booking/sdk 1.0.74 → 1.0.76

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.
Files changed (62) hide show
  1. package/.openapi-generator/FILES +245 -234
  2. package/README.md +24 -7
  3. package/api.ts +1240 -461
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +1016 -400
  8. package/dist/api.js +395 -161
  9. package/dist/base.d.ts +1 -1
  10. package/dist/base.js +1 -1
  11. package/dist/common.d.ts +1 -1
  12. package/dist/common.js +1 -1
  13. package/dist/configuration.d.ts +1 -1
  14. package/dist/configuration.js +1 -1
  15. package/dist/esm/api.d.ts +1016 -400
  16. package/dist/esm/api.js +394 -156
  17. package/dist/esm/base.d.ts +1 -1
  18. package/dist/esm/base.js +1 -1
  19. package/dist/esm/common.d.ts +1 -1
  20. package/dist/esm/common.js +1 -1
  21. package/dist/esm/configuration.d.ts +1 -1
  22. package/dist/esm/configuration.js +1 -1
  23. package/dist/esm/index.d.ts +1 -1
  24. package/dist/esm/index.js +1 -1
  25. package/dist/index.d.ts +1 -1
  26. package/dist/index.js +1 -1
  27. package/docs/{BookingPriceBody.md → AddPaymentMethodRequestBody.md} +5 -7
  28. package/docs/BookingInfo.md +2 -2
  29. package/docs/BookingPopulated.md +0 -2
  30. package/docs/BookingsApi.md +0 -52
  31. package/docs/ClubAnalyticsStaffApi.md +167 -0
  32. package/docs/ClubPlayerBookingItem.md +36 -0
  33. package/docs/ClubPlayerBookingsResponse.md +22 -0
  34. package/docs/ClubPlayerDetailResponse.md +46 -0
  35. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
  36. package/docs/ClubPlayerStatisticsResponse.md +42 -0
  37. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
  38. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
  39. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
  40. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
  41. package/docs/ClubPlayerSubscriptionSummary.md +28 -0
  42. package/docs/ClubResponse.md +0 -8
  43. package/docs/ClubSettingsResponse.md +2 -0
  44. package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
  45. package/docs/ConfirmPaymentMethodResponse.md +22 -0
  46. package/docs/CreateBookingRequest.md +2 -2
  47. package/docs/CreateEventRequest.md +2 -0
  48. package/docs/IUserAttributes.md +12 -2
  49. package/docs/PartialClubResponse.md +0 -8
  50. package/docs/PaymentMethodSetupResponse.md +24 -0
  51. package/docs/SetupPaymentMethodRequestBody.md +20 -0
  52. package/docs/SetupPaymentMethodResponse.md +24 -0
  53. package/docs/SlotInfo.md +2 -2
  54. package/docs/StaffUserProfileResponse.md +12 -2
  55. package/docs/SubscribeRequestBody.md +0 -2
  56. package/docs/UserProfileResponse.md +12 -4
  57. package/docs/UsersApi.md +156 -0
  58. package/index.ts +1 -1
  59. package/package.json +1 -1
  60. package/docs/PlayerPrice.md +0 -30
  61. package/docs/SportsPublicApi.md +0 -53
  62. package/docs/SubscriptionInfo.md +0 -24
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * openapi.json
5
5
  * Pandook API Documentation
6
6
  *
7
- * The version of the OpenAPI document: 1.0.74
7
+ * The version of the OpenAPI document: 1.0.75
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -92,6 +92,19 @@ export interface AddOrganizationRequest {
92
92
  */
93
93
  'organizationId'?: string;
94
94
  }
95
+ /**
96
+ *
97
+ * @export
98
+ * @interface AddPaymentMethodRequestBody
99
+ */
100
+ export interface AddPaymentMethodRequestBody {
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof AddPaymentMethodRequestBody
105
+ */
106
+ 'paymentMethodId': string;
107
+ }
95
108
  /**
96
109
  *
97
110
  * @export
@@ -346,10 +359,10 @@ export interface BookingInfo {
346
359
  'totalPrice': number;
347
360
  /**
348
361
  * ID du créneau
349
- * @type {Array<string>}
362
+ * @type {string}
350
363
  * @memberof BookingInfo
351
364
  */
352
- 'slotIds': Array<string>;
365
+ 'slotId': string;
353
366
  /**
354
367
  * Indique si le créateur paie pour tous
355
368
  * @type {boolean}
@@ -562,12 +575,6 @@ export interface BookingPopulated {
562
575
  * @memberof BookingPopulated
563
576
  */
564
577
  'isCreatorPayingAll': boolean;
565
- /**
566
- *
567
- * @type {Array<string>}
568
- * @memberof BookingPopulated
569
- */
570
- 'playersIds': Array<string>;
571
578
  /**
572
579
  *
573
580
  * @type {Array<BookingHistoryPopulated>}
@@ -601,25 +608,6 @@ export interface BookingPopulated {
601
608
  }
602
609
 
603
610
 
604
- /**
605
- *
606
- * @export
607
- * @interface BookingPriceBody
608
- */
609
- export interface BookingPriceBody {
610
- /**
611
- *
612
- * @type {Array<string>}
613
- * @memberof BookingPriceBody
614
- */
615
- 'slotIds': Array<string>;
616
- /**
617
- *
618
- * @type {Array<string>}
619
- * @memberof BookingPriceBody
620
- */
621
- 'players': Array<string>;
622
- }
623
611
  /**
624
612
  *
625
613
  * @export
@@ -1040,6 +1028,196 @@ export interface ClubMemberResponseUser {
1040
1028
  */
1041
1029
  'id': string;
1042
1030
  }
1031
+ /**
1032
+ *
1033
+ * @export
1034
+ * @interface ClubPlayerBookingItem
1035
+ */
1036
+ export interface ClubPlayerBookingItem {
1037
+ /**
1038
+ * ID de la réservation
1039
+ * @type {string}
1040
+ * @memberof ClubPlayerBookingItem
1041
+ */
1042
+ 'id': string;
1043
+ /**
1044
+ * Date de début de la réservation
1045
+ * @type {string}
1046
+ * @memberof ClubPlayerBookingItem
1047
+ */
1048
+ 'startDate': string | null;
1049
+ /**
1050
+ * Date de fin de la réservation
1051
+ * @type {string}
1052
+ * @memberof ClubPlayerBookingItem
1053
+ */
1054
+ 'endDate': string | null;
1055
+ /**
1056
+ * Nom du terrain ou emplacement
1057
+ * @type {string}
1058
+ * @memberof ClubPlayerBookingItem
1059
+ */
1060
+ 'location': string | null;
1061
+ /**
1062
+ * Nom du sport associé
1063
+ * @type {string}
1064
+ * @memberof ClubPlayerBookingItem
1065
+ */
1066
+ 'sport': string | null;
1067
+ /**
1068
+ * Statut de la réservation
1069
+ * @type {string}
1070
+ * @memberof ClubPlayerBookingItem
1071
+ */
1072
+ 'status': string;
1073
+ /**
1074
+ * Prix total de la réservation en centimes
1075
+ * @type {number}
1076
+ * @memberof ClubPlayerBookingItem
1077
+ */
1078
+ 'totalPrice': number;
1079
+ /**
1080
+ * Indique si le joueur est le créateur de la réservation
1081
+ * @type {boolean}
1082
+ * @memberof ClubPlayerBookingItem
1083
+ */
1084
+ 'isCreator': boolean;
1085
+ /**
1086
+ * Nombre total de participants
1087
+ * @type {number}
1088
+ * @memberof ClubPlayerBookingItem
1089
+ */
1090
+ 'participantsCount': number;
1091
+ }
1092
+ /**
1093
+ *
1094
+ * @export
1095
+ * @interface ClubPlayerBookingsResponse
1096
+ */
1097
+ export interface ClubPlayerBookingsResponse {
1098
+ /**
1099
+ * Réservations à venir
1100
+ * @type {Array<ClubPlayerBookingItem>}
1101
+ * @memberof ClubPlayerBookingsResponse
1102
+ */
1103
+ 'upcomingBookings': Array<ClubPlayerBookingItem>;
1104
+ /**
1105
+ * Réservations passées
1106
+ * @type {Array<ClubPlayerBookingItem>}
1107
+ * @memberof ClubPlayerBookingsResponse
1108
+ */
1109
+ 'pastBookings': Array<ClubPlayerBookingItem>;
1110
+ }
1111
+ /**
1112
+ *
1113
+ * @export
1114
+ * @interface ClubPlayerDetailResponse
1115
+ */
1116
+ export interface ClubPlayerDetailResponse {
1117
+ /**
1118
+ * ID du joueur
1119
+ * @type {string}
1120
+ * @memberof ClubPlayerDetailResponse
1121
+ */
1122
+ 'id': string;
1123
+ /**
1124
+ * Nom complet
1125
+ * @type {string}
1126
+ * @memberof ClubPlayerDetailResponse
1127
+ */
1128
+ 'name': string;
1129
+ /**
1130
+ * Prénom
1131
+ * @type {string}
1132
+ * @memberof ClubPlayerDetailResponse
1133
+ */
1134
+ 'firstName': string;
1135
+ /**
1136
+ * Nom
1137
+ * @type {string}
1138
+ * @memberof ClubPlayerDetailResponse
1139
+ */
1140
+ 'lastName': string;
1141
+ /**
1142
+ * Email
1143
+ * @type {string}
1144
+ * @memberof ClubPlayerDetailResponse
1145
+ */
1146
+ 'email': string;
1147
+ /**
1148
+ * Numéro de téléphone
1149
+ * @type {string}
1150
+ * @memberof ClubPlayerDetailResponse
1151
+ */
1152
+ 'phoneNumber': string | null;
1153
+ /**
1154
+ * URL de la photo de profil
1155
+ * @type {string}
1156
+ * @memberof ClubPlayerDetailResponse
1157
+ */
1158
+ 'profilePictureUrl': string | null;
1159
+ /**
1160
+ * Compte vérifié
1161
+ * @type {boolean}
1162
+ * @memberof ClubPlayerDetailResponse
1163
+ */
1164
+ 'isAccountVerified': boolean;
1165
+ /**
1166
+ * Abonnements au club courant
1167
+ * @type {Array<ClubPlayerSubscriptionSummary>}
1168
+ * @memberof ClubPlayerDetailResponse
1169
+ */
1170
+ 'subscriptionsToMyClub': Array<ClubPlayerSubscriptionSummary>;
1171
+ /**
1172
+ * Description du profil
1173
+ * @type {string}
1174
+ * @memberof ClubPlayerDetailResponse
1175
+ */
1176
+ 'profileDescription': string | null;
1177
+ /**
1178
+ * Genre
1179
+ * @type {string}
1180
+ * @memberof ClubPlayerDetailResponse
1181
+ */
1182
+ 'gender': string | null;
1183
+ /**
1184
+ * Ville
1185
+ * @type {string}
1186
+ * @memberof ClubPlayerDetailResponse
1187
+ */
1188
+ 'city': string | null;
1189
+ /**
1190
+ * Niveaux par sport
1191
+ * @type {Array<ClubPlayerDetailResponseSportsLevelsInner>}
1192
+ * @memberof ClubPlayerDetailResponse
1193
+ */
1194
+ 'sportsLevels': Array<ClubPlayerDetailResponseSportsLevelsInner>;
1195
+ /**
1196
+ * Date de naissance
1197
+ * @type {string}
1198
+ * @memberof ClubPlayerDetailResponse
1199
+ */
1200
+ 'birthDate': string | null;
1201
+ }
1202
+ /**
1203
+ *
1204
+ * @export
1205
+ * @interface ClubPlayerDetailResponseSportsLevelsInner
1206
+ */
1207
+ export interface ClubPlayerDetailResponseSportsLevelsInner {
1208
+ /**
1209
+ *
1210
+ * @type {string}
1211
+ * @memberof ClubPlayerDetailResponseSportsLevelsInner
1212
+ */
1213
+ 'level': string | null;
1214
+ /**
1215
+ *
1216
+ * @type {string}
1217
+ * @memberof ClubPlayerDetailResponseSportsLevelsInner
1218
+ */
1219
+ 'sport': string | null;
1220
+ }
1043
1221
  /**
1044
1222
  *
1045
1223
  * @export
@@ -1101,6 +1279,216 @@ export interface ClubPlayerResponse {
1101
1279
  */
1102
1280
  'isSubscribedToClub': boolean;
1103
1281
  }
1282
+ /**
1283
+ *
1284
+ * @export
1285
+ * @interface ClubPlayerStatisticsResponse
1286
+ */
1287
+ export interface ClubPlayerStatisticsResponse {
1288
+ /**
1289
+ * Nombre total de réservations (tous clubs confondus)
1290
+ * @type {number}
1291
+ * @memberof ClubPlayerStatisticsResponse
1292
+ */
1293
+ 'totalBookings': number;
1294
+ /**
1295
+ * Nombre total de réservations dans le club courant
1296
+ * @type {number}
1297
+ * @memberof ClubPlayerStatisticsResponse
1298
+ */
1299
+ 'totalBookingsInMyClub': number;
1300
+ /**
1301
+ * Somme totale dépensée dans le club courant (centimes)
1302
+ * @type {number}
1303
+ * @memberof ClubPlayerStatisticsResponse
1304
+ */
1305
+ 'totalSpentAmount': number;
1306
+ /**
1307
+ * Sport le plus pratiqué dans le club courant
1308
+ * @type {string}
1309
+ * @memberof ClubPlayerStatisticsResponse
1310
+ */
1311
+ 'favoriteSport': string | null;
1312
+ /**
1313
+ * Temps moyen entre la réservation et le début du créneau (heures)
1314
+ * @type {number}
1315
+ * @memberof ClubPlayerStatisticsResponse
1316
+ */
1317
+ 'averageBookingLeadTimeHours': number | null;
1318
+ /**
1319
+ * Taux d\'annulation dans le club courant (0-1)
1320
+ * @type {number}
1321
+ * @memberof ClubPlayerStatisticsResponse
1322
+ */
1323
+ 'bookingCancellationRate': number;
1324
+ /**
1325
+ * Nombre d\'abonnements actifs au club courant
1326
+ * @type {number}
1327
+ * @memberof ClubPlayerStatisticsResponse
1328
+ */
1329
+ 'activeSubscriptionsToMyClub': number;
1330
+ /**
1331
+ * Heure de créneau favorite dans le club courant (format HH:00)
1332
+ * @type {string}
1333
+ * @memberof ClubPlayerStatisticsResponse
1334
+ */
1335
+ 'favoriteTimeSlot': string | null;
1336
+ /**
1337
+ *
1338
+ * @type {ClubPlayerStatisticsResponseFavoriteClub}
1339
+ * @memberof ClubPlayerStatisticsResponse
1340
+ */
1341
+ 'favoriteClub': ClubPlayerStatisticsResponseFavoriteClub | null;
1342
+ /**
1343
+ *
1344
+ * @type {ClubPlayerStatisticsResponseMostPlayedClub}
1345
+ * @memberof ClubPlayerStatisticsResponse
1346
+ */
1347
+ 'mostPlayedClub': ClubPlayerStatisticsResponseMostPlayedClub | null;
1348
+ /**
1349
+ * Évolution quotidienne des montants dépensés ce mois-ci
1350
+ * @type {Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>}
1351
+ * @memberof ClubPlayerStatisticsResponse
1352
+ */
1353
+ 'bookingAmountEvolutionThisMonth': Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>;
1354
+ /**
1355
+ * Joueurs les plus joués dans le club courant
1356
+ * @type {Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>}
1357
+ * @memberof ClubPlayerStatisticsResponse
1358
+ */
1359
+ 'mostPlayedPartners': Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>;
1360
+ }
1361
+ /**
1362
+ *
1363
+ * @export
1364
+ * @interface ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1365
+ */
1366
+ export interface ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner {
1367
+ /**
1368
+ *
1369
+ * @type {number}
1370
+ * @memberof ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1371
+ */
1372
+ 'amount': number;
1373
+ /**
1374
+ *
1375
+ * @type {number}
1376
+ * @memberof ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1377
+ */
1378
+ 'day': number;
1379
+ }
1380
+ /**
1381
+ * Club favori selon le profil utilisateur
1382
+ * @export
1383
+ * @interface ClubPlayerStatisticsResponseFavoriteClub
1384
+ */
1385
+ export interface ClubPlayerStatisticsResponseFavoriteClub {
1386
+ /**
1387
+ *
1388
+ * @type {string}
1389
+ * @memberof ClubPlayerStatisticsResponseFavoriteClub
1390
+ */
1391
+ 'name': string | null;
1392
+ /**
1393
+ *
1394
+ * @type {string}
1395
+ * @memberof ClubPlayerStatisticsResponseFavoriteClub
1396
+ */
1397
+ 'clubId': string;
1398
+ }
1399
+ /**
1400
+ * Club où le joueur a le plus joué
1401
+ * @export
1402
+ * @interface ClubPlayerStatisticsResponseMostPlayedClub
1403
+ */
1404
+ export interface ClubPlayerStatisticsResponseMostPlayedClub {
1405
+ /**
1406
+ *
1407
+ * @type {number}
1408
+ * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1409
+ */
1410
+ 'bookingsCount': number;
1411
+ /**
1412
+ *
1413
+ * @type {string}
1414
+ * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1415
+ */
1416
+ 'name': string | null;
1417
+ /**
1418
+ *
1419
+ * @type {string}
1420
+ * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1421
+ */
1422
+ 'clubId': string;
1423
+ }
1424
+ /**
1425
+ *
1426
+ * @export
1427
+ * @interface ClubPlayerStatisticsResponseMostPlayedPartnersInner
1428
+ */
1429
+ export interface ClubPlayerStatisticsResponseMostPlayedPartnersInner {
1430
+ /**
1431
+ *
1432
+ * @type {number}
1433
+ * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1434
+ */
1435
+ 'bookingsTogether': number;
1436
+ /**
1437
+ *
1438
+ * @type {string}
1439
+ * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1440
+ */
1441
+ 'lastName': string | null;
1442
+ /**
1443
+ *
1444
+ * @type {string}
1445
+ * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1446
+ */
1447
+ 'firstName': string | null;
1448
+ /**
1449
+ *
1450
+ * @type {string}
1451
+ * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1452
+ */
1453
+ 'userId': string;
1454
+ }
1455
+ /**
1456
+ *
1457
+ * @export
1458
+ * @interface ClubPlayerSubscriptionSummary
1459
+ */
1460
+ export interface ClubPlayerSubscriptionSummary {
1461
+ /**
1462
+ * ID du plan d\'abonnement
1463
+ * @type {string}
1464
+ * @memberof ClubPlayerSubscriptionSummary
1465
+ */
1466
+ 'id': string;
1467
+ /**
1468
+ * Nom du plan
1469
+ * @type {string}
1470
+ * @memberof ClubPlayerSubscriptionSummary
1471
+ */
1472
+ 'name': string | null;
1473
+ /**
1474
+ * Montant en centimes
1475
+ * @type {number}
1476
+ * @memberof ClubPlayerSubscriptionSummary
1477
+ */
1478
+ 'amountInCents': number | null;
1479
+ /**
1480
+ * Devise
1481
+ * @type {string}
1482
+ * @memberof ClubPlayerSubscriptionSummary
1483
+ */
1484
+ 'currency': string | null;
1485
+ /**
1486
+ * Intervalle de facturation
1487
+ * @type {string}
1488
+ * @memberof ClubPlayerSubscriptionSummary
1489
+ */
1490
+ 'interval': string | null;
1491
+ }
1104
1492
  /**
1105
1493
  *
1106
1494
  * @export
@@ -1191,30 +1579,6 @@ export interface ClubResponse {
1191
1579
  * @memberof ClubResponse
1192
1580
  */
1193
1581
  'sports'?: Array<string>;
1194
- /**
1195
- * Autoriser plusieurs réservations en même temps
1196
- * @type {boolean}
1197
- * @memberof ClubResponse
1198
- */
1199
- 'allowMultipleBookingsAtTheSameTime'?: boolean | null;
1200
- /**
1201
- * Limite de réservations simultanées (même créneau)
1202
- * @type {number}
1203
- * @memberof ClubResponse
1204
- */
1205
- 'sameTimeBookingsLimit'?: number | null;
1206
- /**
1207
- * Limite d\'annulation en heures
1208
- * @type {number}
1209
- * @memberof ClubResponse
1210
- */
1211
- 'cancellationLimitHours'?: number | null;
1212
- /**
1213
- * Nombre maximum de réservations par semaine
1214
- * @type {number}
1215
- * @memberof ClubResponse
1216
- */
1217
- 'maxWeeklyBookings'?: number | null;
1218
1582
  /**
1219
1583
  *
1220
1584
  * @type {ClubResponseCreatedAt}
@@ -1380,6 +1744,12 @@ export interface ClubSettingsResponse {
1380
1744
  * @memberof ClubSettingsResponse
1381
1745
  */
1382
1746
  'maxWeeklyBookings': number;
1747
+ /**
1748
+ * Autoriser plusieurs réservations en même temps
1749
+ * @type {boolean}
1750
+ * @memberof ClubSettingsResponse
1751
+ */
1752
+ 'allowMultipleBookingsAtTheSameTime': boolean;
1383
1753
  /**
1384
1754
  * Limite de réservations simultanées
1385
1755
  * @type {number}
@@ -1504,6 +1874,38 @@ export interface ClubUserCountResponse {
1504
1874
  */
1505
1875
  'count': number;
1506
1876
  }
1877
+ /**
1878
+ *
1879
+ * @export
1880
+ * @interface ConfirmPaymentMethodRequestBody
1881
+ */
1882
+ export interface ConfirmPaymentMethodRequestBody {
1883
+ /**
1884
+ *
1885
+ * @type {string}
1886
+ * @memberof ConfirmPaymentMethodRequestBody
1887
+ */
1888
+ 'setupIntentId': string;
1889
+ }
1890
+ /**
1891
+ *
1892
+ * @export
1893
+ * @interface ConfirmPaymentMethodResponse
1894
+ */
1895
+ export interface ConfirmPaymentMethodResponse {
1896
+ /**
1897
+ *
1898
+ * @type {string}
1899
+ * @memberof ConfirmPaymentMethodResponse
1900
+ */
1901
+ 'message': string;
1902
+ /**
1903
+ *
1904
+ * @type {string}
1905
+ * @memberof ConfirmPaymentMethodResponse
1906
+ */
1907
+ 'paymentMethodId'?: string | null;
1908
+ }
1507
1909
  /**
1508
1910
  *
1509
1911
  * @export
@@ -1666,10 +2068,10 @@ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
1666
2068
  export interface CreateBookingRequest {
1667
2069
  /**
1668
2070
  * ID du créneau à réserver
1669
- * @type {Array<string>}
2071
+ * @type {string}
1670
2072
  * @memberof CreateBookingRequest
1671
2073
  */
1672
- 'slotIds': Array<string>;
2074
+ 'slotId': string;
1673
2075
  /**
1674
2076
  * Liste des joueurs avec leurs méthodes de paiement
1675
2077
  * @type {Array<PlayerWithPaymentMethod>}
@@ -1981,6 +2383,12 @@ export interface CreateEventRequest {
1981
2383
  * @memberof CreateEventRequest
1982
2384
  */
1983
2385
  'subscriberPrices'?: Array<SubscriberPrice>;
2386
+ /**
2387
+ *
2388
+ * @type {Array<number>}
2389
+ * @memberof CreateEventRequest
2390
+ */
2391
+ 'levels'?: Array<number>;
1984
2392
  /**
1985
2393
  *
1986
2394
  * @type {string}
@@ -3123,12 +3531,24 @@ export interface IUserAttributes {
3123
3531
  * @memberof IUserAttributes
3124
3532
  */
3125
3533
  'isAccountVerified': boolean;
3534
+ /**
3535
+ *
3536
+ * @type {boolean}
3537
+ * @memberof IUserAttributes
3538
+ */
3539
+ 'isCreditCardRegistered'?: boolean;
3126
3540
  /**
3127
3541
  *
3128
3542
  * @type {Array<ILevelBySports>}
3129
3543
  * @memberof IUserAttributes
3130
3544
  */
3131
3545
  'levelBySports'?: Array<ILevelBySports>;
3546
+ /**
3547
+ *
3548
+ * @type {string}
3549
+ * @memberof IUserAttributes
3550
+ */
3551
+ 'stripeCustomerId'?: string;
3132
3552
  /**
3133
3553
  *
3134
3554
  * @type {string}
@@ -3201,6 +3621,30 @@ export interface IUserAttributes {
3201
3621
  * @memberof IUserAttributes
3202
3622
  */
3203
3623
  'isLevelCertified'?: boolean;
3624
+ /**
3625
+ *
3626
+ * @type {Array<string>}
3627
+ * @memberof IUserAttributes
3628
+ */
3629
+ 'paymentMethods'?: Array<string>;
3630
+ /**
3631
+ *
3632
+ * @type {string}
3633
+ * @memberof IUserAttributes
3634
+ */
3635
+ 'defaultPaymentMethodId'?: string;
3636
+ /**
3637
+ *
3638
+ * @type {boolean}
3639
+ * @memberof IUserAttributes
3640
+ */
3641
+ 'paymentMethodSetupCompleted': boolean;
3642
+ /**
3643
+ *
3644
+ * @type {string}
3645
+ * @memberof IUserAttributes
3646
+ */
3647
+ 'setupIntentId'?: string;
3204
3648
  /**
3205
3649
  *
3206
3650
  * @type {Array<string>}
@@ -3231,12 +3675,6 @@ export interface IUserAttributes {
3231
3675
  * @memberof IUserAttributes
3232
3676
  */
3233
3677
  'sports'?: { [key: string]: any; };
3234
- /**
3235
- *
3236
- * @type {string}
3237
- * @memberof IUserAttributes
3238
- */
3239
- 'stripeCustomerId'?: string;
3240
3678
  }
3241
3679
 
3242
3680
 
@@ -3784,30 +4222,6 @@ export interface PartialClubResponse {
3784
4222
  * @memberof PartialClubResponse
3785
4223
  */
3786
4224
  'sports'?: Array<string>;
3787
- /**
3788
- * Autoriser plusieurs réservations en même temps
3789
- * @type {boolean}
3790
- * @memberof PartialClubResponse
3791
- */
3792
- 'allowMultipleBookingsAtTheSameTime'?: boolean;
3793
- /**
3794
- * Limite de réservations simultanées (même créneau)
3795
- * @type {number}
3796
- * @memberof PartialClubResponse
3797
- */
3798
- 'sameTimeBookingsLimit'?: number;
3799
- /**
3800
- * Limite d\'annulation en heures
3801
- * @type {number}
3802
- * @memberof PartialClubResponse
3803
- */
3804
- 'cancellationLimitHours'?: number;
3805
- /**
3806
- * Nombre maximum de réservations par semaine
3807
- * @type {number}
3808
- * @memberof PartialClubResponse
3809
- */
3810
- 'maxWeeklyBookings'?: number;
3811
4225
  /**
3812
4226
  *
3813
4227
  * @type {ClubResponseCreatedAt}
@@ -3868,6 +4282,31 @@ export const PaymentMethod = {
3868
4282
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
3869
4283
 
3870
4284
 
4285
+ /**
4286
+ *
4287
+ * @export
4288
+ * @interface PaymentMethodSetupResponse
4289
+ */
4290
+ export interface PaymentMethodSetupResponse {
4291
+ /**
4292
+ *
4293
+ * @type {string}
4294
+ * @memberof PaymentMethodSetupResponse
4295
+ */
4296
+ 'message': string;
4297
+ /**
4298
+ *
4299
+ * @type {Array<string>}
4300
+ * @memberof PaymentMethodSetupResponse
4301
+ */
4302
+ 'paymentMethods': Array<string>;
4303
+ /**
4304
+ *
4305
+ * @type {string}
4306
+ * @memberof PaymentMethodSetupResponse
4307
+ */
4308
+ 'defaultPaymentMethodId'?: string | null;
4309
+ }
3871
4310
  /**
3872
4311
  * From T, pick a set of properties whose keys are in the union K
3873
4312
  * @export
@@ -4120,49 +4559,6 @@ export interface PlayerPaymentInfo {
4120
4559
  }
4121
4560
 
4122
4561
 
4123
- /**
4124
- *
4125
- * @export
4126
- * @interface PlayerPrice
4127
- */
4128
- export interface PlayerPrice {
4129
- /**
4130
- *
4131
- * @type {string}
4132
- * @memberof PlayerPrice
4133
- */
4134
- 'playerId': string;
4135
- /**
4136
- *
4137
- * @type {string}
4138
- * @memberof PlayerPrice
4139
- */
4140
- 'firstName'?: string;
4141
- /**
4142
- *
4143
- * @type {string}
4144
- * @memberof PlayerPrice
4145
- */
4146
- 'lastName'?: string;
4147
- /**
4148
- *
4149
- * @type {Array<SubscriptionInfo>}
4150
- * @memberof PlayerPrice
4151
- */
4152
- 'subscriptions': Array<SubscriptionInfo>;
4153
- /**
4154
- *
4155
- * @type {number}
4156
- * @memberof PlayerPrice
4157
- */
4158
- 'creditAvailablesInCents'?: number;
4159
- /**
4160
- *
4161
- * @type {number}
4162
- * @memberof PlayerPrice
4163
- */
4164
- 'price': number;
4165
- }
4166
4562
  /**
4167
4563
  *
4168
4564
  * @export
@@ -4859,6 +5255,44 @@ export interface ResetPasswordRequest {
4859
5255
  */
4860
5256
  'token'?: string;
4861
5257
  }
5258
+ /**
5259
+ *
5260
+ * @export
5261
+ * @interface SetupPaymentMethodRequestBody
5262
+ */
5263
+ export interface SetupPaymentMethodRequestBody {
5264
+ /**
5265
+ *
5266
+ * @type {string}
5267
+ * @memberof SetupPaymentMethodRequestBody
5268
+ */
5269
+ 'clubId': string;
5270
+ }
5271
+ /**
5272
+ *
5273
+ * @export
5274
+ * @interface SetupPaymentMethodResponse
5275
+ */
5276
+ export interface SetupPaymentMethodResponse {
5277
+ /**
5278
+ *
5279
+ * @type {string}
5280
+ * @memberof SetupPaymentMethodResponse
5281
+ */
5282
+ 'setupIntentId': string;
5283
+ /**
5284
+ *
5285
+ * @type {string}
5286
+ * @memberof SetupPaymentMethodResponse
5287
+ */
5288
+ 'clientSecret': string;
5289
+ /**
5290
+ *
5291
+ * @type {string}
5292
+ * @memberof SetupPaymentMethodResponse
5293
+ */
5294
+ 'message': string;
5295
+ }
4862
5296
  /**
4863
5297
  *
4864
5298
  * @export
@@ -4888,7 +5322,7 @@ export interface SlotInfo {
4888
5322
  * @type {CourtInfo}
4889
5323
  * @memberof SlotInfo
4890
5324
  */
4891
- 'courtId': CourtInfo;
5325
+ 'court': CourtInfo;
4892
5326
  }
4893
5327
  /**
4894
5328
  *
@@ -5135,12 +5569,24 @@ export interface StaffUserProfileResponse {
5135
5569
  * @memberof StaffUserProfileResponse
5136
5570
  */
5137
5571
  'isAccountVerified': boolean;
5572
+ /**
5573
+ *
5574
+ * @type {boolean}
5575
+ * @memberof StaffUserProfileResponse
5576
+ */
5577
+ 'isCreditCardRegistered'?: boolean;
5138
5578
  /**
5139
5579
  *
5140
5580
  * @type {Array<ILevelBySports>}
5141
5581
  * @memberof StaffUserProfileResponse
5142
5582
  */
5143
5583
  'levelBySports'?: Array<ILevelBySports>;
5584
+ /**
5585
+ *
5586
+ * @type {string}
5587
+ * @memberof StaffUserProfileResponse
5588
+ */
5589
+ 'stripeCustomerId'?: string;
5144
5590
  /**
5145
5591
  *
5146
5592
  * @type {string}
@@ -5176,43 +5622,67 @@ export interface StaffUserProfileResponse {
5176
5622
  * @type {string}
5177
5623
  * @memberof StaffUserProfileResponse
5178
5624
  */
5179
- 'emailVerificationToken'?: string;
5625
+ 'emailVerificationToken'?: string;
5626
+ /**
5627
+ *
5628
+ * @type {string}
5629
+ * @memberof StaffUserProfileResponse
5630
+ */
5631
+ 'emailVerificationExpires'?: string;
5632
+ /**
5633
+ *
5634
+ * @type {Array<IUserAttributesOrganizationsInner>}
5635
+ * @memberof StaffUserProfileResponse
5636
+ */
5637
+ 'organizations'?: Array<IUserAttributesOrganizationsInner>;
5638
+ /**
5639
+ *
5640
+ * @type {boolean}
5641
+ * @memberof StaffUserProfileResponse
5642
+ */
5643
+ 'isAdmin': boolean;
5644
+ /**
5645
+ *
5646
+ * @type {string}
5647
+ * @memberof StaffUserProfileResponse
5648
+ */
5649
+ 'createdAt': string;
5180
5650
  /**
5181
5651
  *
5182
5652
  * @type {string}
5183
5653
  * @memberof StaffUserProfileResponse
5184
5654
  */
5185
- 'emailVerificationExpires'?: string;
5655
+ 'updatedAt': string;
5186
5656
  /**
5187
5657
  *
5188
- * @type {Array<IUserAttributesOrganizationsInner>}
5658
+ * @type {boolean}
5189
5659
  * @memberof StaffUserProfileResponse
5190
5660
  */
5191
- 'organizations'?: Array<IUserAttributesOrganizationsInner>;
5661
+ 'isLevelCertified'?: boolean;
5192
5662
  /**
5193
5663
  *
5194
- * @type {boolean}
5664
+ * @type {Array<string>}
5195
5665
  * @memberof StaffUserProfileResponse
5196
5666
  */
5197
- 'isAdmin': boolean;
5667
+ 'paymentMethods'?: Array<string>;
5198
5668
  /**
5199
5669
  *
5200
5670
  * @type {string}
5201
5671
  * @memberof StaffUserProfileResponse
5202
5672
  */
5203
- 'createdAt': string;
5673
+ 'defaultPaymentMethodId'?: string;
5204
5674
  /**
5205
5675
  *
5206
- * @type {string}
5676
+ * @type {boolean}
5207
5677
  * @memberof StaffUserProfileResponse
5208
5678
  */
5209
- 'updatedAt': string;
5679
+ 'paymentMethodSetupCompleted': boolean;
5210
5680
  /**
5211
5681
  *
5212
- * @type {boolean}
5682
+ * @type {string}
5213
5683
  * @memberof StaffUserProfileResponse
5214
5684
  */
5215
- 'isLevelCertified'?: boolean;
5685
+ 'setupIntentId'?: string;
5216
5686
  /**
5217
5687
  *
5218
5688
  * @type {Array<string>}
@@ -5243,12 +5713,6 @@ export interface StaffUserProfileResponse {
5243
5713
  * @memberof StaffUserProfileResponse
5244
5714
  */
5245
5715
  'sports'?: { [key: string]: any; };
5246
- /**
5247
- *
5248
- * @type {string}
5249
- * @memberof StaffUserProfileResponse
5250
- */
5251
- 'stripeCustomerId'?: string;
5252
5716
  /**
5253
5717
  *
5254
5718
  * @type {boolean}
@@ -6542,12 +7006,6 @@ export interface SubscribeRequestBody {
6542
7006
  * @memberof SubscribeRequestBody
6543
7007
  */
6544
7008
  'priceId': string;
6545
- /**
6546
- *
6547
- * @type {boolean}
6548
- * @memberof SubscribeRequestBody
6549
- */
6550
- 'useDefaultPaymentMethod'?: boolean;
6551
7009
  }
6552
7010
  /**
6553
7011
  *
@@ -6568,31 +7026,6 @@ export interface SubscriberPrice {
6568
7026
  */
6569
7027
  'amount': number;
6570
7028
  }
6571
- /**
6572
- *
6573
- * @export
6574
- * @interface SubscriptionInfo
6575
- */
6576
- export interface SubscriptionInfo {
6577
- /**
6578
- *
6579
- * @type {string}
6580
- * @memberof SubscriptionInfo
6581
- */
6582
- 'subscriptionPlanName'?: string;
6583
- /**
6584
- *
6585
- * @type {string}
6586
- * @memberof SubscriptionInfo
6587
- */
6588
- 'subscriptionDescription'?: string;
6589
- /**
6590
- *
6591
- * @type {number}
6592
- * @memberof SubscriptionInfo
6593
- */
6594
- 'reducedAmountInCents'?: number;
6595
- }
6596
7029
  /**
6597
7030
  *
6598
7031
  * @export
@@ -7508,12 +7941,24 @@ export interface UserProfileResponse {
7508
7941
  * @memberof UserProfileResponse
7509
7942
  */
7510
7943
  'isAccountVerified': boolean;
7944
+ /**
7945
+ *
7946
+ * @type {boolean}
7947
+ * @memberof UserProfileResponse
7948
+ */
7949
+ 'isCreditCardRegistered'?: boolean;
7511
7950
  /**
7512
7951
  *
7513
7952
  * @type {Array<ILevelBySports>}
7514
7953
  * @memberof UserProfileResponse
7515
7954
  */
7516
7955
  'levelBySports'?: Array<ILevelBySports>;
7956
+ /**
7957
+ *
7958
+ * @type {string}
7959
+ * @memberof UserProfileResponse
7960
+ */
7961
+ 'stripeCustomerId'?: string;
7517
7962
  /**
7518
7963
  *
7519
7964
  * @type {string}
@@ -7586,6 +8031,30 @@ export interface UserProfileResponse {
7586
8031
  * @memberof UserProfileResponse
7587
8032
  */
7588
8033
  'isLevelCertified'?: boolean;
8034
+ /**
8035
+ *
8036
+ * @type {Array<string>}
8037
+ * @memberof UserProfileResponse
8038
+ */
8039
+ 'paymentMethods'?: Array<string>;
8040
+ /**
8041
+ *
8042
+ * @type {string}
8043
+ * @memberof UserProfileResponse
8044
+ */
8045
+ 'defaultPaymentMethodId'?: string;
8046
+ /**
8047
+ *
8048
+ * @type {boolean}
8049
+ * @memberof UserProfileResponse
8050
+ */
8051
+ 'paymentMethodSetupCompleted': boolean;
8052
+ /**
8053
+ *
8054
+ * @type {string}
8055
+ * @memberof UserProfileResponse
8056
+ */
8057
+ 'setupIntentId'?: string;
7589
8058
  /**
7590
8059
  *
7591
8060
  * @type {Array<string>}
@@ -7616,12 +8085,6 @@ export interface UserProfileResponse {
7616
8085
  * @memberof UserProfileResponse
7617
8086
  */
7618
8087
  'sports'?: { [key: string]: any; };
7619
- /**
7620
- *
7621
- * @type {string}
7622
- * @memberof UserProfileResponse
7623
- */
7624
- 'stripeCustomerId'?: string;
7625
8088
  /**
7626
8089
  *
7627
8090
  * @type {number}
@@ -7658,12 +8121,6 @@ export interface UserProfileResponse {
7658
8121
  * @memberof UserProfileResponse
7659
8122
  */
7660
8123
  'stripeLinks'?: { [key: string]: any; };
7661
- /**
7662
- *
7663
- * @type {Array<SportResponse>}
7664
- * @memberof UserProfileResponse
7665
- */
7666
- 'verifiedSports'?: Array<SportResponse>;
7667
8124
  }
7668
8125
 
7669
8126
 
@@ -7781,45 +8238,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
7781
8238
  options: localVarRequestOptions,
7782
8239
  };
7783
8240
  },
7784
- /**
7785
- *
7786
- * @param {BookingPriceBody} bookingPriceBody
7787
- * @param {*} [options] Override http request option.
7788
- * @throws {RequiredError}
7789
- */
7790
- getBookingPrice: async (bookingPriceBody: BookingPriceBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7791
- // verify required parameter 'bookingPriceBody' is not null or undefined
7792
- assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody)
7793
- const localVarPath = `/api/bookings/booking-price`;
7794
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7795
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7796
- let baseOptions;
7797
- if (configuration) {
7798
- baseOptions = configuration.baseOptions;
7799
- }
7800
-
7801
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7802
- const localVarHeaderParameter = {} as any;
7803
- const localVarQueryParameter = {} as any;
7804
-
7805
- // authentication bearerAuth required
7806
- // http bearer authentication required
7807
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
7808
-
7809
-
7810
-
7811
- localVarHeaderParameter['Content-Type'] = 'application/json';
7812
-
7813
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7814
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7815
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7816
- localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration)
7817
-
7818
- return {
7819
- url: toPathString(localVarUrlObj),
7820
- options: localVarRequestOptions,
7821
- };
7822
- },
7823
8241
  /**
7824
8242
  * Recherche des créneaux disponibles pour une réservation rapide
7825
8243
  * @param {number} [latitude]
@@ -7921,18 +8339,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
7921
8339
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
7922
8340
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7923
8341
  },
7924
- /**
7925
- *
7926
- * @param {BookingPriceBody} bookingPriceBody
7927
- * @param {*} [options] Override http request option.
7928
- * @throws {RequiredError}
7929
- */
7930
- async getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PlayerPrice>>> {
7931
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
7932
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7933
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
7934
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7935
- },
7936
8342
  /**
7937
8343
  * Recherche des créneaux disponibles pour une réservation rapide
7938
8344
  * @param {number} [latitude]
@@ -7973,15 +8379,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
7973
8379
  getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
7974
8380
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
7975
8381
  },
7976
- /**
7977
- *
7978
- * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
7979
- * @param {*} [options] Override http request option.
7980
- * @throws {RequiredError}
7981
- */
7982
- getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<PlayerPrice>> {
7983
- return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
7984
- },
7985
8382
  /**
7986
8383
  * Recherche des créneaux disponibles pour une réservation rapide
7987
8384
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -8008,20 +8405,6 @@ export interface BookingsApiGetBookingHistoryRequest {
8008
8405
  readonly bookingId: string
8009
8406
  }
8010
8407
 
8011
- /**
8012
- * Request parameters for getBookingPrice operation in BookingsApi.
8013
- * @export
8014
- * @interface BookingsApiGetBookingPriceRequest
8015
- */
8016
- export interface BookingsApiGetBookingPriceRequest {
8017
- /**
8018
- *
8019
- * @type {BookingPriceBody}
8020
- * @memberof BookingsApiGetBookingPrice
8021
- */
8022
- readonly bookingPriceBody: BookingPriceBody
8023
- }
8024
-
8025
8408
  /**
8026
8409
  * Request parameters for getQuickReservationSlots operation in BookingsApi.
8027
8410
  * @export
@@ -8117,17 +8500,6 @@ export class BookingsApi extends BaseAPI {
8117
8500
  return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
8118
8501
  }
8119
8502
 
8120
- /**
8121
- *
8122
- * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
8123
- * @param {*} [options] Override http request option.
8124
- * @throws {RequiredError}
8125
- * @memberof BookingsApi
8126
- */
8127
- public getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig) {
8128
- return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
8129
- }
8130
-
8131
8503
  /**
8132
8504
  * Recherche des créneaux disponibles pour une réservation rapide
8133
8505
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -9242,63 +9614,174 @@ export const ClubAnalyticsApiFactory = function (configuration?: Configuration,
9242
9614
  return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
9243
9615
  },
9244
9616
  /**
9245
- * Récupère les clubs populaires
9617
+ * Récupère les clubs populaires
9618
+ * @param {*} [options] Override http request option.
9619
+ * @throws {RequiredError}
9620
+ */
9621
+ getPopularClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
9622
+ return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
9623
+ },
9624
+ };
9625
+ };
9626
+
9627
+ /**
9628
+ * ClubAnalyticsApi - object-oriented interface
9629
+ * @export
9630
+ * @class ClubAnalyticsApi
9631
+ * @extends {BaseAPI}
9632
+ */
9633
+ export class ClubAnalyticsApi extends BaseAPI {
9634
+ /**
9635
+ * Récupère les clubs les plus aimés
9636
+ * @param {*} [options] Override http request option.
9637
+ * @throws {RequiredError}
9638
+ * @memberof ClubAnalyticsApi
9639
+ */
9640
+ public getMostLikedClub(options?: RawAxiosRequestConfig) {
9641
+ return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
9642
+ }
9643
+
9644
+ /**
9645
+ * Récupère les clubs populaires
9646
+ * @param {*} [options] Override http request option.
9647
+ * @throws {RequiredError}
9648
+ * @memberof ClubAnalyticsApi
9649
+ */
9650
+ public getPopularClubs(options?: RawAxiosRequestConfig) {
9651
+ return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
9652
+ }
9653
+ }
9654
+
9655
+
9656
+
9657
+ /**
9658
+ * ClubAnalyticsStaffApi - axios parameter creator
9659
+ * @export
9660
+ */
9661
+ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
9662
+ return {
9663
+ /**
9664
+ * Récupère les analytics par sport
9665
+ * @param {string} sportId
9666
+ * @param {*} [options] Override http request option.
9667
+ * @throws {RequiredError}
9668
+ */
9669
+ getAnalyticsBySport: async (sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9670
+ // verify required parameter 'sportId' is not null or undefined
9671
+ assertParamExists('getAnalyticsBySport', 'sportId', sportId)
9672
+ const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
9673
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
9674
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9675
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9676
+ let baseOptions;
9677
+ if (configuration) {
9678
+ baseOptions = configuration.baseOptions;
9679
+ }
9680
+
9681
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9682
+ const localVarHeaderParameter = {} as any;
9683
+ const localVarQueryParameter = {} as any;
9684
+
9685
+ // authentication bearerAuth required
9686
+ // http bearer authentication required
9687
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9688
+
9689
+
9690
+
9691
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9692
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9693
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9694
+
9695
+ return {
9696
+ url: toPathString(localVarUrlObj),
9697
+ options: localVarRequestOptions,
9698
+ };
9699
+ },
9700
+ /**
9701
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
9702
+ * @param {string} playerId
9703
+ * @param {*} [options] Override http request option.
9704
+ * @throws {RequiredError}
9705
+ */
9706
+ getClubPlayerBookingsById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9707
+ // verify required parameter 'playerId' is not null or undefined
9708
+ assertParamExists('getClubPlayerBookingsById', 'playerId', playerId)
9709
+ const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
9710
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
9711
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9712
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9713
+ let baseOptions;
9714
+ if (configuration) {
9715
+ baseOptions = configuration.baseOptions;
9716
+ }
9717
+
9718
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9719
+ const localVarHeaderParameter = {} as any;
9720
+ const localVarQueryParameter = {} as any;
9721
+
9722
+ // authentication bearerAuth required
9723
+ // http bearer authentication required
9724
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9725
+
9726
+
9727
+
9728
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9729
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9730
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9731
+
9732
+ return {
9733
+ url: toPathString(localVarUrlObj),
9734
+ options: localVarRequestOptions,
9735
+ };
9736
+ },
9737
+ /**
9738
+ * Récupère les informations détaillées d\'un joueur par son ID
9739
+ * @param {string} playerId
9246
9740
  * @param {*} [options] Override http request option.
9247
9741
  * @throws {RequiredError}
9248
9742
  */
9249
- getPopularClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
9250
- return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
9251
- },
9252
- };
9253
- };
9743
+ getClubPlayerById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9744
+ // verify required parameter 'playerId' is not null or undefined
9745
+ assertParamExists('getClubPlayerById', 'playerId', playerId)
9746
+ const localVarPath = `/api/club-analytics/players/{playerId}`
9747
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
9748
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9749
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9750
+ let baseOptions;
9751
+ if (configuration) {
9752
+ baseOptions = configuration.baseOptions;
9753
+ }
9254
9754
 
9255
- /**
9256
- * ClubAnalyticsApi - object-oriented interface
9257
- * @export
9258
- * @class ClubAnalyticsApi
9259
- * @extends {BaseAPI}
9260
- */
9261
- export class ClubAnalyticsApi extends BaseAPI {
9262
- /**
9263
- * Récupère les clubs les plus aimés
9264
- * @param {*} [options] Override http request option.
9265
- * @throws {RequiredError}
9266
- * @memberof ClubAnalyticsApi
9267
- */
9268
- public getMostLikedClub(options?: RawAxiosRequestConfig) {
9269
- return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
9270
- }
9755
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9756
+ const localVarHeaderParameter = {} as any;
9757
+ const localVarQueryParameter = {} as any;
9271
9758
 
9272
- /**
9273
- * Récupère les clubs populaires
9274
- * @param {*} [options] Override http request option.
9275
- * @throws {RequiredError}
9276
- * @memberof ClubAnalyticsApi
9277
- */
9278
- public getPopularClubs(options?: RawAxiosRequestConfig) {
9279
- return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
9280
- }
9281
- }
9759
+ // authentication bearerAuth required
9760
+ // http bearer authentication required
9761
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
9282
9762
 
9283
9763
 
9764
+
9765
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9766
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9767
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9284
9768
 
9285
- /**
9286
- * ClubAnalyticsStaffApi - axios parameter creator
9287
- * @export
9288
- */
9289
- export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
9290
- return {
9769
+ return {
9770
+ url: toPathString(localVarUrlObj),
9771
+ options: localVarRequestOptions,
9772
+ };
9773
+ },
9291
9774
  /**
9292
- * Récupère les analytics par sport
9293
- * @param {string} sportId
9775
+ * Récupère les statistiques d\'un joueur pour le staff
9776
+ * @param {string} playerId
9294
9777
  * @param {*} [options] Override http request option.
9295
9778
  * @throws {RequiredError}
9296
9779
  */
9297
- getAnalyticsBySport: async (sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9298
- // verify required parameter 'sportId' is not null or undefined
9299
- assertParamExists('getAnalyticsBySport', 'sportId', sportId)
9300
- const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
9301
- .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
9780
+ getClubPlayerStatisticsById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9781
+ // verify required parameter 'playerId' is not null or undefined
9782
+ assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId)
9783
+ const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
9784
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
9302
9785
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9303
9786
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9304
9787
  let baseOptions;
@@ -9682,6 +10165,42 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
9682
10165
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getAnalyticsBySport']?.[localVarOperationServerIndex]?.url;
9683
10166
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9684
10167
  },
10168
+ /**
10169
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10170
+ * @param {string} playerId
10171
+ * @param {*} [options] Override http request option.
10172
+ * @throws {RequiredError}
10173
+ */
10174
+ async getClubPlayerBookingsById(playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerBookingsResponse>> {
10175
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, options);
10176
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10177
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']?.[localVarOperationServerIndex]?.url;
10178
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10179
+ },
10180
+ /**
10181
+ * Récupère les informations détaillées d\'un joueur par son ID
10182
+ * @param {string} playerId
10183
+ * @param {*} [options] Override http request option.
10184
+ * @throws {RequiredError}
10185
+ */
10186
+ async getClubPlayerById(playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerDetailResponse>> {
10187
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerById(playerId, options);
10188
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10189
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']?.[localVarOperationServerIndex]?.url;
10190
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10191
+ },
10192
+ /**
10193
+ * Récupère les statistiques d\'un joueur pour le staff
10194
+ * @param {string} playerId
10195
+ * @param {*} [options] Override http request option.
10196
+ * @throws {RequiredError}
10197
+ */
10198
+ async getClubPlayerStatisticsById(playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerStatisticsResponse>> {
10199
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
10200
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10201
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']?.[localVarOperationServerIndex]?.url;
10202
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10203
+ },
9685
10204
  /**
9686
10205
  * Récupère la liste des joueurs du club
9687
10206
  * @param {*} [options] Override http request option.
@@ -9806,6 +10325,33 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
9806
10325
  getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportAnalyticsResponse> {
9807
10326
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
9808
10327
  },
10328
+ /**
10329
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10330
+ * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
10331
+ * @param {*} [options] Override http request option.
10332
+ * @throws {RequiredError}
10333
+ */
10334
+ getClubPlayerBookingsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerBookingsResponse> {
10335
+ return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
10336
+ },
10337
+ /**
10338
+ * Récupère les informations détaillées d\'un joueur par son ID
10339
+ * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
10340
+ * @param {*} [options] Override http request option.
10341
+ * @throws {RequiredError}
10342
+ */
10343
+ getClubPlayerById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerDetailResponse> {
10344
+ return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
10345
+ },
10346
+ /**
10347
+ * Récupère les statistiques d\'un joueur pour le staff
10348
+ * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
10349
+ * @param {*} [options] Override http request option.
10350
+ * @throws {RequiredError}
10351
+ */
10352
+ getClubPlayerStatisticsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerStatisticsResponse> {
10353
+ return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
10354
+ },
9809
10355
  /**
9810
10356
  * Récupère la liste des joueurs du club
9811
10357
  * @param {*} [options] Override http request option.
@@ -9899,6 +10445,48 @@ export interface ClubAnalyticsStaffApiGetAnalyticsBySportRequest {
9899
10445
  readonly sportId: string
9900
10446
  }
9901
10447
 
10448
+ /**
10449
+ * Request parameters for getClubPlayerBookingsById operation in ClubAnalyticsStaffApi.
10450
+ * @export
10451
+ * @interface ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest
10452
+ */
10453
+ export interface ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest {
10454
+ /**
10455
+ *
10456
+ * @type {string}
10457
+ * @memberof ClubAnalyticsStaffApiGetClubPlayerBookingsById
10458
+ */
10459
+ readonly playerId: string
10460
+ }
10461
+
10462
+ /**
10463
+ * Request parameters for getClubPlayerById operation in ClubAnalyticsStaffApi.
10464
+ * @export
10465
+ * @interface ClubAnalyticsStaffApiGetClubPlayerByIdRequest
10466
+ */
10467
+ export interface ClubAnalyticsStaffApiGetClubPlayerByIdRequest {
10468
+ /**
10469
+ *
10470
+ * @type {string}
10471
+ * @memberof ClubAnalyticsStaffApiGetClubPlayerById
10472
+ */
10473
+ readonly playerId: string
10474
+ }
10475
+
10476
+ /**
10477
+ * Request parameters for getClubPlayerStatisticsById operation in ClubAnalyticsStaffApi.
10478
+ * @export
10479
+ * @interface ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest
10480
+ */
10481
+ export interface ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest {
10482
+ /**
10483
+ *
10484
+ * @type {string}
10485
+ * @memberof ClubAnalyticsStaffApiGetClubPlayerStatisticsById
10486
+ */
10487
+ readonly playerId: string
10488
+ }
10489
+
9902
10490
  /**
9903
10491
  * Request parameters for getDailyTurnOver operation in ClubAnalyticsStaffApi.
9904
10492
  * @export
@@ -9987,6 +10575,39 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
9987
10575
  return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
9988
10576
  }
9989
10577
 
10578
+ /**
10579
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10580
+ * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
10581
+ * @param {*} [options] Override http request option.
10582
+ * @throws {RequiredError}
10583
+ * @memberof ClubAnalyticsStaffApi
10584
+ */
10585
+ public getClubPlayerBookingsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest, options?: RawAxiosRequestConfig) {
10586
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
10587
+ }
10588
+
10589
+ /**
10590
+ * Récupère les informations détaillées d\'un joueur par son ID
10591
+ * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
10592
+ * @param {*} [options] Override http request option.
10593
+ * @throws {RequiredError}
10594
+ * @memberof ClubAnalyticsStaffApi
10595
+ */
10596
+ public getClubPlayerById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerByIdRequest, options?: RawAxiosRequestConfig) {
10597
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
10598
+ }
10599
+
10600
+ /**
10601
+ * Récupère les statistiques d\'un joueur pour le staff
10602
+ * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
10603
+ * @param {*} [options] Override http request option.
10604
+ * @throws {RequiredError}
10605
+ * @memberof ClubAnalyticsStaffApi
10606
+ */
10607
+ public getClubPlayerStatisticsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest, options?: RawAxiosRequestConfig) {
10608
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
10609
+ }
10610
+
9990
10611
  /**
9991
10612
  * Récupère la liste des joueurs du club
9992
10613
  * @param {*} [options] Override http request option.
@@ -15374,161 +15995,64 @@ export interface SportsManagerApiDeleteSportRequest {
15374
15995
  }
15375
15996
 
15376
15997
  /**
15377
- * Request parameters for updateSport operation in SportsManagerApi.
15378
- * @export
15379
- * @interface SportsManagerApiUpdateSportRequest
15380
- */
15381
- export interface SportsManagerApiUpdateSportRequest {
15382
- /**
15383
- *
15384
- * @type {string}
15385
- * @memberof SportsManagerApiUpdateSport
15386
- */
15387
- readonly id: string
15388
-
15389
- /**
15390
- *
15391
- * @type {UpdateSportRequest}
15392
- * @memberof SportsManagerApiUpdateSport
15393
- */
15394
- readonly updateSportRequest: UpdateSportRequest
15395
- }
15396
-
15397
- /**
15398
- * SportsManagerApi - object-oriented interface
15399
- * @export
15400
- * @class SportsManagerApi
15401
- * @extends {BaseAPI}
15402
- */
15403
- export class SportsManagerApi extends BaseAPI {
15404
- /**
15405
- * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
15406
- * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
15407
- * @param {*} [options] Override http request option.
15408
- * @throws {RequiredError}
15409
- * @memberof SportsManagerApi
15410
- */
15411
- public createSport(requestParameters: SportsManagerApiCreateSportRequest, options?: RawAxiosRequestConfig) {
15412
- return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
15413
- }
15414
-
15415
- /**
15416
- * Supprime un sport (interdit si vérifié)
15417
- * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
15418
- * @param {*} [options] Override http request option.
15419
- * @throws {RequiredError}
15420
- * @memberof SportsManagerApi
15421
- */
15422
- public deleteSport(requestParameters: SportsManagerApiDeleteSportRequest, options?: RawAxiosRequestConfig) {
15423
- return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
15424
- }
15425
-
15426
- /**
15427
- * Met à jour un sport (interdit si vérifié)
15428
- * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
15429
- * @param {*} [options] Override http request option.
15430
- * @throws {RequiredError}
15431
- * @memberof SportsManagerApi
15432
- */
15433
- public updateSport(requestParameters: SportsManagerApiUpdateSportRequest, options?: RawAxiosRequestConfig) {
15434
- return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
15435
- }
15436
- }
15437
-
15438
-
15439
-
15440
- /**
15441
- * SportsPublicApi - axios parameter creator
15442
- * @export
15443
- */
15444
- export const SportsPublicApiAxiosParamCreator = function (configuration?: Configuration) {
15445
- return {
15446
- /**
15447
- * Récupère tous les sports vérifiés, accessibles publiquement
15448
- * @param {*} [options] Override http request option.
15449
- * @throws {RequiredError}
15450
- */
15451
- getVerifiedSports: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15452
- const localVarPath = `/api/sports/verified`;
15453
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15454
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15455
- let baseOptions;
15456
- if (configuration) {
15457
- baseOptions = configuration.baseOptions;
15458
- }
15459
-
15460
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15461
- const localVarHeaderParameter = {} as any;
15462
- const localVarQueryParameter = {} as any;
15463
-
15464
-
15465
-
15466
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15467
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15468
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15469
-
15470
- return {
15471
- url: toPathString(localVarUrlObj),
15472
- options: localVarRequestOptions,
15473
- };
15474
- },
15475
- }
15476
- };
15477
-
15478
- /**
15479
- * SportsPublicApi - functional programming interface
15998
+ * Request parameters for updateSport operation in SportsManagerApi.
15480
15999
  * @export
16000
+ * @interface SportsManagerApiUpdateSportRequest
15481
16001
  */
15482
- export const SportsPublicApiFp = function(configuration?: Configuration) {
15483
- const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration)
15484
- return {
15485
- /**
15486
- * Récupère tous les sports vérifiés, accessibles publiquement
15487
- * @param {*} [options] Override http request option.
15488
- * @throws {RequiredError}
15489
- */
15490
- async getVerifiedSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
15491
- const localVarAxiosArgs = await localVarAxiosParamCreator.getVerifiedSports(options);
15492
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15493
- const localVarOperationServerBasePath = operationServerMap['SportsPublicApi.getVerifiedSports']?.[localVarOperationServerIndex]?.url;
15494
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15495
- },
15496
- }
15497
- };
16002
+ export interface SportsManagerApiUpdateSportRequest {
16003
+ /**
16004
+ *
16005
+ * @type {string}
16006
+ * @memberof SportsManagerApiUpdateSport
16007
+ */
16008
+ readonly id: string
15498
16009
 
15499
- /**
15500
- * SportsPublicApi - factory interface
15501
- * @export
15502
- */
15503
- export const SportsPublicApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15504
- const localVarFp = SportsPublicApiFp(configuration)
15505
- return {
15506
- /**
15507
- * Récupère tous les sports vérifiés, accessibles publiquement
15508
- * @param {*} [options] Override http request option.
15509
- * @throws {RequiredError}
15510
- */
15511
- getVerifiedSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
15512
- return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
15513
- },
15514
- };
15515
- };
16010
+ /**
16011
+ *
16012
+ * @type {UpdateSportRequest}
16013
+ * @memberof SportsManagerApiUpdateSport
16014
+ */
16015
+ readonly updateSportRequest: UpdateSportRequest
16016
+ }
15516
16017
 
15517
16018
  /**
15518
- * SportsPublicApi - object-oriented interface
16019
+ * SportsManagerApi - object-oriented interface
15519
16020
  * @export
15520
- * @class SportsPublicApi
16021
+ * @class SportsManagerApi
15521
16022
  * @extends {BaseAPI}
15522
16023
  */
15523
- export class SportsPublicApi extends BaseAPI {
16024
+ export class SportsManagerApi extends BaseAPI {
16025
+ /**
16026
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
16027
+ * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
16028
+ * @param {*} [options] Override http request option.
16029
+ * @throws {RequiredError}
16030
+ * @memberof SportsManagerApi
16031
+ */
16032
+ public createSport(requestParameters: SportsManagerApiCreateSportRequest, options?: RawAxiosRequestConfig) {
16033
+ return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
16034
+ }
16035
+
16036
+ /**
16037
+ * Supprime un sport (interdit si vérifié)
16038
+ * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
16039
+ * @param {*} [options] Override http request option.
16040
+ * @throws {RequiredError}
16041
+ * @memberof SportsManagerApi
16042
+ */
16043
+ public deleteSport(requestParameters: SportsManagerApiDeleteSportRequest, options?: RawAxiosRequestConfig) {
16044
+ return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
16045
+ }
16046
+
15524
16047
  /**
15525
- * Récupère tous les sports vérifiés, accessibles publiquement
16048
+ * Met à jour un sport (interdit si vérifié)
16049
+ * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
15526
16050
  * @param {*} [options] Override http request option.
15527
16051
  * @throws {RequiredError}
15528
- * @memberof SportsPublicApi
16052
+ * @memberof SportsManagerApi
15529
16053
  */
15530
- public getVerifiedSports(options?: RawAxiosRequestConfig) {
15531
- return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
16054
+ public updateSport(requestParameters: SportsManagerApiUpdateSportRequest, options?: RawAxiosRequestConfig) {
16055
+ return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
15532
16056
  }
15533
16057
  }
15534
16058
 
@@ -16645,6 +17169,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
16645
17169
  options: localVarRequestOptions,
16646
17170
  };
16647
17171
  },
17172
+ /**
17173
+ *
17174
+ * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
17175
+ * @param {*} [options] Override http request option.
17176
+ * @throws {RequiredError}
17177
+ */
17178
+ addPaymentMethodSetup: async (addPaymentMethodRequestBody: AddPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17179
+ // verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
17180
+ assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody)
17181
+ const localVarPath = `/api/users/addPaymentMethodSetup`;
17182
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17183
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17184
+ let baseOptions;
17185
+ if (configuration) {
17186
+ baseOptions = configuration.baseOptions;
17187
+ }
17188
+
17189
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17190
+ const localVarHeaderParameter = {} as any;
17191
+ const localVarQueryParameter = {} as any;
17192
+
17193
+ // authentication bearerAuth required
17194
+ // http bearer authentication required
17195
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17196
+
17197
+
17198
+
17199
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17200
+
17201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17203
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17204
+ localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration)
17205
+
17206
+ return {
17207
+ url: toPathString(localVarUrlObj),
17208
+ options: localVarRequestOptions,
17209
+ };
17210
+ },
16648
17211
  /**
16649
17212
  *
16650
17213
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -16684,6 +17247,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
16684
17247
  options: localVarRequestOptions,
16685
17248
  };
16686
17249
  },
17250
+ /**
17251
+ *
17252
+ * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
17253
+ * @param {*} [options] Override http request option.
17254
+ * @throws {RequiredError}
17255
+ */
17256
+ confirmPaymentMethodSetup: async (confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17257
+ // verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
17258
+ assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody)
17259
+ const localVarPath = `/api/users/confirmPaymentMethodSetup`;
17260
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17261
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17262
+ let baseOptions;
17263
+ if (configuration) {
17264
+ baseOptions = configuration.baseOptions;
17265
+ }
17266
+
17267
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17268
+ const localVarHeaderParameter = {} as any;
17269
+ const localVarQueryParameter = {} as any;
17270
+
17271
+ // authentication bearerAuth required
17272
+ // http bearer authentication required
17273
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17274
+
17275
+
17276
+
17277
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17278
+
17279
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17280
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17281
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17282
+ localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration)
17283
+
17284
+ return {
17285
+ url: toPathString(localVarUrlObj),
17286
+ options: localVarRequestOptions,
17287
+ };
17288
+ },
16687
17289
  /**
16688
17290
  *
16689
17291
  * @param {*} [options] Override http request option.
@@ -17620,6 +18222,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
17620
18222
  options: localVarRequestOptions,
17621
18223
  };
17622
18224
  },
18225
+ /**
18226
+ *
18227
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
18228
+ * @param {*} [options] Override http request option.
18229
+ * @throws {RequiredError}
18230
+ */
18231
+ setupOffSessionPaymentMethod: async (setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18232
+ // verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
18233
+ assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody)
18234
+ const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
18235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18236
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18237
+ let baseOptions;
18238
+ if (configuration) {
18239
+ baseOptions = configuration.baseOptions;
18240
+ }
18241
+
18242
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18243
+ const localVarHeaderParameter = {} as any;
18244
+ const localVarQueryParameter = {} as any;
18245
+
18246
+ // authentication bearerAuth required
18247
+ // http bearer authentication required
18248
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18249
+
18250
+
18251
+
18252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18253
+
18254
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18255
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18256
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18257
+ localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration)
18258
+
18259
+ return {
18260
+ url: toPathString(localVarUrlObj),
18261
+ options: localVarRequestOptions,
18262
+ };
18263
+ },
17623
18264
  /**
17624
18265
  *
17625
18266
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -17927,6 +18568,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
17927
18568
  const localVarOperationServerBasePath = operationServerMap['UsersApi.addOrganization']?.[localVarOperationServerIndex]?.url;
17928
18569
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17929
18570
  },
18571
+ /**
18572
+ *
18573
+ * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
18574
+ * @param {*} [options] Override http request option.
18575
+ * @throws {RequiredError}
18576
+ */
18577
+ async addPaymentMethodSetup(addPaymentMethodRequestBody: AddPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodSetupResponse>> {
18578
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
18579
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18580
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.addPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
18581
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18582
+ },
17930
18583
  /**
17931
18584
  *
17932
18585
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -17939,6 +18592,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
17939
18592
  const localVarOperationServerBasePath = operationServerMap['UsersApi.changePassword']?.[localVarOperationServerIndex]?.url;
17940
18593
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17941
18594
  },
18595
+ /**
18596
+ *
18597
+ * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
18598
+ * @param {*} [options] Override http request option.
18599
+ * @throws {RequiredError}
18600
+ */
18601
+ async confirmPaymentMethodSetup(confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentMethodResponse>> {
18602
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
18603
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18604
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.confirmPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
18605
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18606
+ },
17942
18607
  /**
17943
18608
  *
17944
18609
  * @param {*} [options] Override http request option.
@@ -18237,6 +18902,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
18237
18902
  const localVarOperationServerBasePath = operationServerMap['UsersApi.resetPassword']?.[localVarOperationServerIndex]?.url;
18238
18903
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18239
18904
  },
18905
+ /**
18906
+ *
18907
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
18908
+ * @param {*} [options] Override http request option.
18909
+ * @throws {RequiredError}
18910
+ */
18911
+ async setupOffSessionPaymentMethod(setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetupPaymentMethodResponse>> {
18912
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
18913
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18914
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.setupOffSessionPaymentMethod']?.[localVarOperationServerIndex]?.url;
18915
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18916
+ },
18240
18917
  /**
18241
18918
  *
18242
18919
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -18358,6 +19035,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18358
19035
  addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
18359
19036
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
18360
19037
  },
19038
+ /**
19039
+ *
19040
+ * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
19041
+ * @param {*} [options] Override http request option.
19042
+ * @throws {RequiredError}
19043
+ */
19044
+ addPaymentMethodSetup(requestParameters: UsersApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentMethodSetupResponse> {
19045
+ return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
19046
+ },
18361
19047
  /**
18362
19048
  *
18363
19049
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -18367,6 +19053,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18367
19053
  changePassword(requestParameters: UsersApiChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChangePasswordResponse> {
18368
19054
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
18369
19055
  },
19056
+ /**
19057
+ *
19058
+ * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
19059
+ * @param {*} [options] Override http request option.
19060
+ * @throws {RequiredError}
19061
+ */
19062
+ confirmPaymentMethodSetup(requestParameters: UsersApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfirmPaymentMethodResponse> {
19063
+ return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
19064
+ },
18370
19065
  /**
18371
19066
  *
18372
19067
  * @param {*} [options] Override http request option.
@@ -18575,6 +19270,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18575
19270
  resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
18576
19271
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
18577
19272
  },
19273
+ /**
19274
+ *
19275
+ * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
19276
+ * @param {*} [options] Override http request option.
19277
+ * @throws {RequiredError}
19278
+ */
19279
+ setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetupPaymentMethodResponse> {
19280
+ return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
19281
+ },
18578
19282
  /**
18579
19283
  *
18580
19284
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -18683,6 +19387,20 @@ export interface UsersApiAddOrganizationRequest {
18683
19387
  readonly addOrganizationRequest: AddOrganizationRequest
18684
19388
  }
18685
19389
 
19390
+ /**
19391
+ * Request parameters for addPaymentMethodSetup operation in UsersApi.
19392
+ * @export
19393
+ * @interface UsersApiAddPaymentMethodSetupRequest
19394
+ */
19395
+ export interface UsersApiAddPaymentMethodSetupRequest {
19396
+ /**
19397
+ *
19398
+ * @type {AddPaymentMethodRequestBody}
19399
+ * @memberof UsersApiAddPaymentMethodSetup
19400
+ */
19401
+ readonly addPaymentMethodRequestBody: AddPaymentMethodRequestBody
19402
+ }
19403
+
18686
19404
  /**
18687
19405
  * Request parameters for changePassword operation in UsersApi.
18688
19406
  * @export
@@ -18697,6 +19415,20 @@ export interface UsersApiChangePasswordRequest {
18697
19415
  readonly changePasswordRequestBody: ChangePasswordRequestBody
18698
19416
  }
18699
19417
 
19418
+ /**
19419
+ * Request parameters for confirmPaymentMethodSetup operation in UsersApi.
19420
+ * @export
19421
+ * @interface UsersApiConfirmPaymentMethodSetupRequest
19422
+ */
19423
+ export interface UsersApiConfirmPaymentMethodSetupRequest {
19424
+ /**
19425
+ *
19426
+ * @type {ConfirmPaymentMethodRequestBody}
19427
+ * @memberof UsersApiConfirmPaymentMethodSetup
19428
+ */
19429
+ readonly confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody
19430
+ }
19431
+
18700
19432
  /**
18701
19433
  * Request parameters for getBookingDetail operation in UsersApi.
18702
19434
  * @export
@@ -19047,6 +19779,20 @@ export interface UsersApiResetPasswordRequest {
19047
19779
  readonly resetPasswordRequest: ResetPasswordRequest
19048
19780
  }
19049
19781
 
19782
+ /**
19783
+ * Request parameters for setupOffSessionPaymentMethod operation in UsersApi.
19784
+ * @export
19785
+ * @interface UsersApiSetupOffSessionPaymentMethodRequest
19786
+ */
19787
+ export interface UsersApiSetupOffSessionPaymentMethodRequest {
19788
+ /**
19789
+ *
19790
+ * @type {SetupPaymentMethodRequestBody}
19791
+ * @memberof UsersApiSetupOffSessionPaymentMethod
19792
+ */
19793
+ readonly setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody
19794
+ }
19795
+
19050
19796
  /**
19051
19797
  * Request parameters for signInOrSignUpWithGoogle operation in UsersApi.
19052
19798
  * @export
@@ -19185,6 +19931,17 @@ export class UsersApi extends BaseAPI {
19185
19931
  return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
19186
19932
  }
19187
19933
 
19934
+ /**
19935
+ *
19936
+ * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
19937
+ * @param {*} [options] Override http request option.
19938
+ * @throws {RequiredError}
19939
+ * @memberof UsersApi
19940
+ */
19941
+ public addPaymentMethodSetup(requestParameters: UsersApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
19942
+ return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
19943
+ }
19944
+
19188
19945
  /**
19189
19946
  *
19190
19947
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -19196,6 +19953,17 @@ export class UsersApi extends BaseAPI {
19196
19953
  return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
19197
19954
  }
19198
19955
 
19956
+ /**
19957
+ *
19958
+ * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
19959
+ * @param {*} [options] Override http request option.
19960
+ * @throws {RequiredError}
19961
+ * @memberof UsersApi
19962
+ */
19963
+ public confirmPaymentMethodSetup(requestParameters: UsersApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
19964
+ return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
19965
+ }
19966
+
19199
19967
  /**
19200
19968
  *
19201
19969
  * @param {*} [options] Override http request option.
@@ -19452,6 +20220,17 @@ export class UsersApi extends BaseAPI {
19452
20220
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
19453
20221
  }
19454
20222
 
20223
+ /**
20224
+ *
20225
+ * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
20226
+ * @param {*} [options] Override http request option.
20227
+ * @throws {RequiredError}
20228
+ * @memberof UsersApi
20229
+ */
20230
+ public setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig) {
20231
+ return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
20232
+ }
20233
+
19455
20234
  /**
19456
20235
  *
19457
20236
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.