@tennac-booking/sdk 1.0.88 → 1.0.90

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 (61) hide show
  1. package/.openapi-generator/FILES +16 -7
  2. package/README.md +19 -12
  3. package/api.ts +1053 -620
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +844 -443
  8. package/dist/api.js +296 -209
  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 +844 -443
  16. package/dist/esm/api.js +284 -206
  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/BookingClubInfo.md +28 -0
  28. package/docs/{SetupPaymentMethodRequestBody.md → BookingCourtInfo.md} +7 -5
  29. package/docs/BookingInfo.md +2 -2
  30. package/docs/BookingPaymentStatus.md +24 -0
  31. package/docs/BookingPlayerPaymentSummary.md +34 -0
  32. package/docs/{ConfirmPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
  33. package/docs/BookingPriceResponse.md +22 -0
  34. package/docs/BookingResponse.md +2 -0
  35. package/docs/BookingSlotInfo.md +30 -0
  36. package/docs/{AddPaymentMethodRequestBody.md → BookingSportInfo.md} +7 -5
  37. package/docs/BookingSummary.md +54 -2
  38. package/docs/BookingsApi.md +55 -0
  39. package/docs/ClubResponse.md +8 -0
  40. package/docs/ClubsApi.md +1 -1
  41. package/docs/CreateBookingRequest.md +4 -2
  42. package/docs/IUserAttributes.md +2 -12
  43. package/docs/InvoiceStatus.md +22 -0
  44. package/docs/MyClubInfosResponse.md +26 -0
  45. package/docs/PartialClubResponse.md +8 -0
  46. package/docs/PlayerPrice.md +30 -0
  47. package/docs/{ConfirmPaymentMethodResponse.md → QuickReservationClubSport.md} +7 -7
  48. package/docs/QuickReservationClubSummary.md +4 -0
  49. package/docs/SportsPublicApi.md +53 -0
  50. package/docs/StaffUserProfileResponse.md +2 -12
  51. package/docs/SubscribeRequestBody.md +2 -0
  52. package/docs/SubscriptionInfo.md +24 -0
  53. package/docs/UserApi.md +60 -0
  54. package/docs/UserBookingsResponse.md +28 -0
  55. package/docs/UserProfileResponse.md +4 -12
  56. package/docs/UsersApi.md +4 -160
  57. package/index.ts +1 -1
  58. package/package.json +1 -1
  59. package/docs/BookingDetailResponse.md +0 -46
  60. package/docs/PaymentMethodSetupResponse.md +0 -24
  61. package/docs/SetupPaymentMethodResponse.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.77
7
+ * The version of the OpenAPI document: 1.0.89
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -92,19 +92,6 @@ 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
- }
108
95
  /**
109
96
  *
110
97
  * @export
@@ -163,93 +150,58 @@ export interface BookingAnalyticsResponse {
163
150
  /**
164
151
  *
165
152
  * @export
166
- * @interface BookingDetailResponse
153
+ * @interface BookingClubInfo
167
154
  */
168
- export interface BookingDetailResponse {
155
+ export interface BookingClubInfo {
169
156
  /**
170
157
  *
171
158
  * @type {string}
172
- * @memberof BookingDetailResponse
159
+ * @memberof BookingClubInfo
173
160
  */
174
161
  'id': string;
175
162
  /**
176
163
  *
177
164
  * @type {string}
178
- * @memberof BookingDetailResponse
165
+ * @memberof BookingClubInfo
179
166
  */
180
- 'clubPicture'?: string;
167
+ 'name'?: string | null;
181
168
  /**
182
169
  *
183
170
  * @type {string}
184
- * @memberof BookingDetailResponse
171
+ * @memberof BookingClubInfo
185
172
  */
186
- 'courtName'?: string;
173
+ 'picture'?: string | null;
187
174
  /**
188
175
  *
189
176
  * @type {string}
190
- * @memberof BookingDetailResponse
177
+ * @memberof BookingClubInfo
191
178
  */
192
- 'sportName'?: string;
179
+ 'address'?: string | null;
193
180
  /**
194
- *
195
- * @type {string}
196
- * @memberof BookingDetailResponse
181
+ * Construct a type with a set of properties K of type T
182
+ * @type {{ [key: string]: any; }}
183
+ * @memberof BookingClubInfo
197
184
  */
198
- 'startDate'?: string;
185
+ 'location'?: { [key: string]: any; } | null;
186
+ }
187
+ /**
188
+ *
189
+ * @export
190
+ * @interface BookingCourtInfo
191
+ */
192
+ export interface BookingCourtInfo {
199
193
  /**
200
194
  *
201
195
  * @type {string}
202
- * @memberof BookingDetailResponse
196
+ * @memberof BookingCourtInfo
203
197
  */
204
- 'myPaymentStatus'?: string;
198
+ 'id'?: string | null;
205
199
  /**
206
200
  *
207
201
  * @type {string}
208
- * @memberof BookingDetailResponse
202
+ * @memberof BookingCourtInfo
209
203
  */
210
- 'bookingStatus'?: string;
211
- /**
212
- *
213
- * @type {Array<string>}
214
- * @memberof BookingDetailResponse
215
- */
216
- 'playersName': Array<string>;
217
- /**
218
- *
219
- * @type {number}
220
- * @memberof BookingDetailResponse
221
- */
222
- 'myAmountToPay': number;
223
- /**
224
- *
225
- * @type {number}
226
- * @memberof BookingDetailResponse
227
- */
228
- 'totalAmount': number;
229
- /**
230
- *
231
- * @type {string}
232
- * @memberof BookingDetailResponse
233
- */
234
- 'timeBeforeCancel'?: string | null;
235
- /**
236
- *
237
- * @type {BookingSummaryClubAddress}
238
- * @memberof BookingDetailResponse
239
- */
240
- 'clubAddress'?: BookingSummaryClubAddress | null;
241
- /**
242
- *
243
- * @type {BookingHistoryPopulated}
244
- * @memberof BookingDetailResponse
245
- */
246
- 'bookingHistory'?: BookingHistoryPopulated;
247
- /**
248
- *
249
- * @type {Array<{ [key: string]: any; }>}
250
- * @memberof BookingDetailResponse
251
- */
252
- 'paymentStatus': Array<{ [key: string]: any; }>;
204
+ 'name'?: string | null;
253
205
  }
254
206
  /**
255
207
  *
@@ -359,10 +311,10 @@ export interface BookingInfo {
359
311
  'totalPrice': number;
360
312
  /**
361
313
  * ID du créneau
362
- * @type {string}
314
+ * @type {Array<string>}
363
315
  * @memberof BookingInfo
364
316
  */
365
- 'slotId': string;
317
+ 'slotIds': Array<string>;
366
318
  /**
367
319
  * Indique si le créateur paie pour tous
368
320
  * @type {boolean}
@@ -420,6 +372,33 @@ export interface BookingInfo {
420
372
  }
421
373
 
422
374
 
375
+ /**
376
+ *
377
+ * @export
378
+ * @interface BookingPaymentStatus
379
+ */
380
+ export interface BookingPaymentStatus {
381
+ /**
382
+ *
383
+ * @type {string}
384
+ * @memberof BookingPaymentStatus
385
+ */
386
+ 'playerId': string;
387
+ /**
388
+ *
389
+ * @type {string}
390
+ * @memberof BookingPaymentStatus
391
+ */
392
+ 'invoiceId'?: string | null;
393
+ /**
394
+ *
395
+ * @type {InvoiceStatus}
396
+ * @memberof BookingPaymentStatus
397
+ */
398
+ 'invoiceStatus'?: InvoiceStatus | null;
399
+ }
400
+
401
+
423
402
  /**
424
403
  *
425
404
  * @export
@@ -515,6 +494,63 @@ export interface BookingPaymentStatusResponseSummary {
515
494
  */
516
495
  'totalPlayers': number;
517
496
  }
497
+ /**
498
+ *
499
+ * @export
500
+ * @interface BookingPlayerPaymentSummary
501
+ */
502
+ export interface BookingPlayerPaymentSummary {
503
+ /**
504
+ *
505
+ * @type {string}
506
+ * @memberof BookingPlayerPaymentSummary
507
+ */
508
+ 'id': string;
509
+ /**
510
+ *
511
+ * @type {string}
512
+ * @memberof BookingPlayerPaymentSummary
513
+ */
514
+ 'firstName'?: string | null;
515
+ /**
516
+ *
517
+ * @type {string}
518
+ * @memberof BookingPlayerPaymentSummary
519
+ */
520
+ 'lastName'?: string | null;
521
+ /**
522
+ *
523
+ * @type {string}
524
+ * @memberof BookingPlayerPaymentSummary
525
+ */
526
+ 'profilePicture'?: string | null;
527
+ /**
528
+ *
529
+ * @type {number}
530
+ * @memberof BookingPlayerPaymentSummary
531
+ */
532
+ 'amountToPay': number;
533
+ /**
534
+ *
535
+ * @type {string}
536
+ * @memberof BookingPlayerPaymentSummary
537
+ */
538
+ 'invoiceId'?: string | null;
539
+ /**
540
+ *
541
+ * @type {InvoiceStatus}
542
+ * @memberof BookingPlayerPaymentSummary
543
+ */
544
+ 'invoiceStatus'?: InvoiceStatus | null;
545
+ /**
546
+ *
547
+ * @type {boolean}
548
+ * @memberof BookingPlayerPaymentSummary
549
+ */
550
+ 'isCreator': boolean;
551
+ }
552
+
553
+
518
554
  /**
519
555
  *
520
556
  * @export
@@ -614,6 +650,44 @@ export interface BookingPopulated {
614
650
  }
615
651
 
616
652
 
653
+ /**
654
+ *
655
+ * @export
656
+ * @interface BookingPriceBody
657
+ */
658
+ export interface BookingPriceBody {
659
+ /**
660
+ *
661
+ * @type {Array<string>}
662
+ * @memberof BookingPriceBody
663
+ */
664
+ 'slotIds': Array<string>;
665
+ /**
666
+ *
667
+ * @type {Array<string>}
668
+ * @memberof BookingPriceBody
669
+ */
670
+ 'players': Array<string>;
671
+ }
672
+ /**
673
+ *
674
+ * @export
675
+ * @interface BookingPriceResponse
676
+ */
677
+ export interface BookingPriceResponse {
678
+ /**
679
+ *
680
+ * @type {boolean}
681
+ * @memberof BookingPriceResponse
682
+ */
683
+ 'creatorNeedsToRegisterPaymentMethod': boolean;
684
+ /**
685
+ *
686
+ * @type {Array<PlayerPrice>}
687
+ * @memberof BookingPriceResponse
688
+ */
689
+ 'playerPrices': Array<PlayerPrice>;
690
+ }
617
691
  /**
618
692
  *
619
693
  * @export
@@ -644,6 +718,12 @@ export interface BookingResponse {
644
718
  * @memberof BookingResponse
645
719
  */
646
720
  'onsitePayments'?: Array<BookingResponseOnsitePaymentsInner>;
721
+ /**
722
+ *
723
+ * @type {string}
724
+ * @memberof BookingResponse
725
+ */
726
+ 'setupNoShowPaymentUrl'?: string;
647
727
  /**
648
728
  * Message de confirmation
649
729
  * @type {string}
@@ -670,6 +750,68 @@ export interface BookingResponseOnsitePaymentsInner {
670
750
  */
671
751
  'playerId': string;
672
752
  }
753
+ /**
754
+ *
755
+ * @export
756
+ * @interface BookingSlotInfo
757
+ */
758
+ export interface BookingSlotInfo {
759
+ /**
760
+ *
761
+ * @type {string}
762
+ * @memberof BookingSlotInfo
763
+ */
764
+ 'id': string;
765
+ /**
766
+ *
767
+ * @type {string}
768
+ * @memberof BookingSlotInfo
769
+ */
770
+ 'startDate'?: string | null;
771
+ /**
772
+ *
773
+ * @type {string}
774
+ * @memberof BookingSlotInfo
775
+ */
776
+ 'endDate'?: string | null;
777
+ /**
778
+ *
779
+ * @type {number}
780
+ * @memberof BookingSlotInfo
781
+ */
782
+ 'durationMinutes'?: number | null;
783
+ /**
784
+ *
785
+ * @type {BookingCourtInfo}
786
+ * @memberof BookingSlotInfo
787
+ */
788
+ 'court'?: BookingCourtInfo | null;
789
+ /**
790
+ *
791
+ * @type {BookingSportInfo}
792
+ * @memberof BookingSlotInfo
793
+ */
794
+ 'sport'?: BookingSportInfo | null;
795
+ }
796
+ /**
797
+ *
798
+ * @export
799
+ * @interface BookingSportInfo
800
+ */
801
+ export interface BookingSportInfo {
802
+ /**
803
+ *
804
+ * @type {string}
805
+ * @memberof BookingSportInfo
806
+ */
807
+ 'id'?: string | null;
808
+ /**
809
+ *
810
+ * @type {string}
811
+ * @memberof BookingSportInfo
812
+ */
813
+ 'key'?: string | null;
814
+ }
673
815
  /**
674
816
  *
675
817
  * @export
@@ -701,6 +843,132 @@ export interface BookingSummary {
701
843
  * @memberof BookingSummary
702
844
  */
703
845
  'id': string;
846
+ /**
847
+ *
848
+ * @type {string}
849
+ * @memberof BookingSummary
850
+ */
851
+ 'clubId': string;
852
+ /**
853
+ *
854
+ * @type {string}
855
+ * @memberof BookingSummary
856
+ */
857
+ 'userId': string;
858
+ /**
859
+ *
860
+ * @type {Array<string>}
861
+ * @memberof BookingSummary
862
+ */
863
+ 'playersIds': Array<string>;
864
+ /**
865
+ *
866
+ * @type {BookingStatus}
867
+ * @memberof BookingSummary
868
+ */
869
+ 'status': BookingStatus;
870
+ /**
871
+ *
872
+ * @type {Array<BookingPaymentStatus>}
873
+ * @memberof BookingSummary
874
+ */
875
+ 'paymentByPlayersStatus': Array<BookingPaymentStatus>;
876
+ /**
877
+ *
878
+ * @type {boolean}
879
+ * @memberof BookingSummary
880
+ */
881
+ 'isCreatorPayingAll': boolean;
882
+ /**
883
+ *
884
+ * @type {number}
885
+ * @memberof BookingSummary
886
+ */
887
+ 'totalPrice': number;
888
+ /**
889
+ *
890
+ * @type {Array<string>}
891
+ * @memberof BookingSummary
892
+ */
893
+ 'slotIds': Array<string>;
894
+ /**
895
+ *
896
+ * @type {boolean}
897
+ * @memberof BookingSummary
898
+ */
899
+ 'isPublic': boolean;
900
+ /**
901
+ *
902
+ * @type {string}
903
+ * @memberof BookingSummary
904
+ */
905
+ 'creatorPaymentMethodId'?: string | null;
906
+ /**
907
+ *
908
+ * @type {boolean}
909
+ * @memberof BookingSummary
910
+ */
911
+ 'paymentMethodSetupCompleted': boolean;
912
+ /**
913
+ *
914
+ * @type {number}
915
+ * @memberof BookingSummary
916
+ */
917
+ 'noShowChargeAmount'?: number | null;
918
+ /**
919
+ *
920
+ * @type {boolean}
921
+ * @memberof BookingSummary
922
+ */
923
+ 'noShowChargeApplied'?: boolean;
924
+ /**
925
+ *
926
+ * @type {string}
927
+ * @memberof BookingSummary
928
+ */
929
+ 'noShowChargeIntentId'?: string | null;
930
+ /**
931
+ *
932
+ * @type {string}
933
+ * @memberof BookingSummary
934
+ */
935
+ 'cancellationReason'?: string | null;
936
+ /**
937
+ *
938
+ * @type {string}
939
+ * @memberof BookingSummary
940
+ */
941
+ 'cancelledBy'?: string | null;
942
+ /**
943
+ *
944
+ * @type {string}
945
+ * @memberof BookingSummary
946
+ */
947
+ 'cancelledAt'?: string | null;
948
+ /**
949
+ *
950
+ * @type {boolean}
951
+ * @memberof BookingSummary
952
+ */
953
+ 'cancelledByManager'?: boolean;
954
+ /**
955
+ *
956
+ * @type {string}
957
+ * @memberof BookingSummary
958
+ */
959
+ 'createdAt': string | null;
960
+ /**
961
+ *
962
+ * @type {string}
963
+ * @memberof BookingSummary
964
+ */
965
+ 'updatedAt': string | null;
966
+ /**
967
+ *
968
+ * @type {number}
969
+ * @memberof BookingSummary
970
+ */
971
+ 'playersCount'?: number | null;
704
972
  /**
705
973
  *
706
974
  * @type {string}
@@ -727,10 +995,10 @@ export interface BookingSummary {
727
995
  'startDate'?: string;
728
996
  /**
729
997
  *
730
- * @type {string}
998
+ * @type {InvoiceStatus}
731
999
  * @memberof BookingSummary
732
1000
  */
733
- 'myPaymentStatus'?: string;
1001
+ 'myPaymentStatus'?: InvoiceStatus | null;
734
1002
  /**
735
1003
  *
736
1004
  * @type {string}
@@ -769,11 +1037,43 @@ export interface BookingSummary {
769
1037
  'clubAddress'?: BookingSummaryClubAddress | null;
770
1038
  /**
771
1039
  *
772
- * @type {BookingHistoryPopulated}
1040
+ * @type {Array<BookingHistoryPopulated>}
1041
+ * @memberof BookingSummary
1042
+ */
1043
+ 'bookingHistory'?: Array<BookingHistoryPopulated>;
1044
+ /**
1045
+ *
1046
+ * @type {BookingClubInfo}
1047
+ * @memberof BookingSummary
1048
+ */
1049
+ 'club'?: BookingClubInfo | null;
1050
+ /**
1051
+ *
1052
+ * @type {Array<BookingSlotInfo>}
1053
+ * @memberof BookingSummary
1054
+ */
1055
+ 'slots': Array<BookingSlotInfo>;
1056
+ /**
1057
+ *
1058
+ * @type {BookingCourtInfo}
1059
+ * @memberof BookingSummary
1060
+ */
1061
+ 'court'?: BookingCourtInfo | null;
1062
+ /**
1063
+ *
1064
+ * @type {BookingSportInfo}
773
1065
  * @memberof BookingSummary
774
1066
  */
775
- 'bookingHistory'?: BookingHistoryPopulated;
1067
+ 'sport'?: BookingSportInfo | null;
1068
+ /**
1069
+ *
1070
+ * @type {Array<BookingPlayerPaymentSummary>}
1071
+ * @memberof BookingSummary
1072
+ */
1073
+ 'players': Array<BookingPlayerPaymentSummary>;
776
1074
  }
1075
+
1076
+
777
1077
  /**
778
1078
  *
779
1079
  * @export
@@ -1857,6 +2157,30 @@ export interface ClubResponse {
1857
2157
  * @memberof ClubResponse
1858
2158
  */
1859
2159
  'sports'?: Array<string>;
2160
+ /**
2161
+ * Autoriser plusieurs réservations en même temps
2162
+ * @type {boolean}
2163
+ * @memberof ClubResponse
2164
+ */
2165
+ 'allowMultipleBookingsAtTheSameTime'?: boolean | null;
2166
+ /**
2167
+ * Limite de réservations simultanées (même créneau)
2168
+ * @type {number}
2169
+ * @memberof ClubResponse
2170
+ */
2171
+ 'sameTimeBookingsLimit'?: number | null;
2172
+ /**
2173
+ * Limite d\'annulation en heures
2174
+ * @type {number}
2175
+ * @memberof ClubResponse
2176
+ */
2177
+ 'cancellationLimitHours'?: number | null;
2178
+ /**
2179
+ * Nombre maximum de réservations par semaine
2180
+ * @type {number}
2181
+ * @memberof ClubResponse
2182
+ */
2183
+ 'maxWeeklyBookings'?: number | null;
1860
2184
  /**
1861
2185
  *
1862
2186
  * @type {ClubResponseCreatedAt}
@@ -2128,38 +2452,6 @@ export interface ClubWeeklySchedule {
2128
2452
  */
2129
2453
  'monday': ClubDaySchedule | null;
2130
2454
  }
2131
- /**
2132
- *
2133
- * @export
2134
- * @interface ConfirmPaymentMethodRequestBody
2135
- */
2136
- export interface ConfirmPaymentMethodRequestBody {
2137
- /**
2138
- *
2139
- * @type {string}
2140
- * @memberof ConfirmPaymentMethodRequestBody
2141
- */
2142
- 'setupIntentId': string;
2143
- }
2144
- /**
2145
- *
2146
- * @export
2147
- * @interface ConfirmPaymentMethodResponse
2148
- */
2149
- export interface ConfirmPaymentMethodResponse {
2150
- /**
2151
- *
2152
- * @type {string}
2153
- * @memberof ConfirmPaymentMethodResponse
2154
- */
2155
- 'message': string;
2156
- /**
2157
- *
2158
- * @type {string}
2159
- * @memberof ConfirmPaymentMethodResponse
2160
- */
2161
- 'paymentMethodId'?: string | null;
2162
- }
2163
2455
  /**
2164
2456
  *
2165
2457
  * @export
@@ -2322,10 +2614,10 @@ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
2322
2614
  export interface CreateBookingRequest {
2323
2615
  /**
2324
2616
  * ID du créneau à réserver
2325
- * @type {string}
2617
+ * @type {Array<string>}
2326
2618
  * @memberof CreateBookingRequest
2327
2619
  */
2328
- 'slotId': string;
2620
+ 'slotIds': Array<string>;
2329
2621
  /**
2330
2622
  * Liste des joueurs avec leurs méthodes de paiement
2331
2623
  * @type {Array<PlayerWithPaymentMethod>}
@@ -2350,6 +2642,12 @@ export interface CreateBookingRequest {
2350
2642
  * @memberof CreateBookingRequest
2351
2643
  */
2352
2644
  'useDefaultPaymentMethod'?: boolean;
2645
+ /**
2646
+ *
2647
+ * @type {number}
2648
+ * @memberof CreateBookingRequest
2649
+ */
2650
+ 'creditToUseInCents'?: number;
2353
2651
  }
2354
2652
 
2355
2653
 
@@ -3710,24 +4008,12 @@ export interface IUserAttributes {
3710
4008
  * @memberof IUserAttributes
3711
4009
  */
3712
4010
  'isAccountVerified': boolean;
3713
- /**
3714
- *
3715
- * @type {boolean}
3716
- * @memberof IUserAttributes
3717
- */
3718
- 'isCreditCardRegistered'?: boolean;
3719
4011
  /**
3720
4012
  *
3721
4013
  * @type {Array<ILevelBySports>}
3722
4014
  * @memberof IUserAttributes
3723
4015
  */
3724
4016
  'levelBySports'?: Array<ILevelBySports>;
3725
- /**
3726
- *
3727
- * @type {string}
3728
- * @memberof IUserAttributes
3729
- */
3730
- 'stripeCustomerId'?: string;
3731
4017
  /**
3732
4018
  *
3733
4019
  * @type {string}
@@ -3800,30 +4086,6 @@ export interface IUserAttributes {
3800
4086
  * @memberof IUserAttributes
3801
4087
  */
3802
4088
  'isLevelCertified'?: boolean;
3803
- /**
3804
- *
3805
- * @type {Array<string>}
3806
- * @memberof IUserAttributes
3807
- */
3808
- 'paymentMethods'?: Array<string>;
3809
- /**
3810
- *
3811
- * @type {string}
3812
- * @memberof IUserAttributes
3813
- */
3814
- 'defaultPaymentMethodId'?: string;
3815
- /**
3816
- *
3817
- * @type {boolean}
3818
- * @memberof IUserAttributes
3819
- */
3820
- 'paymentMethodSetupCompleted': boolean;
3821
- /**
3822
- *
3823
- * @type {string}
3824
- * @memberof IUserAttributes
3825
- */
3826
- 'setupIntentId'?: string;
3827
4089
  /**
3828
4090
  *
3829
4091
  * @type {Array<string>}
@@ -3854,6 +4116,12 @@ export interface IUserAttributes {
3854
4116
  * @memberof IUserAttributes
3855
4117
  */
3856
4118
  'sports'?: { [key: string]: any; };
4119
+ /**
4120
+ *
4121
+ * @type {string}
4122
+ * @memberof IUserAttributes
4123
+ */
4124
+ 'stripeCustomerId'?: string;
3857
4125
  }
3858
4126
 
3859
4127
 
@@ -4011,6 +4279,26 @@ export interface InvoiceInfo {
4011
4279
  */
4012
4280
  'status': string;
4013
4281
  }
4282
+ /**
4283
+ *
4284
+ * @export
4285
+ * @enum {string}
4286
+ */
4287
+
4288
+ export const InvoiceStatus = {
4289
+ SetupPending: 'setup_pending',
4290
+ SetupSuccess: 'setup_success',
4291
+ Pending: 'pending',
4292
+ Paid: 'paid',
4293
+ Failed: 'failed',
4294
+ Authorized: 'authorized',
4295
+ Canceled: 'canceled',
4296
+ Expired: 'expired'
4297
+ } as const;
4298
+
4299
+ export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
4300
+
4301
+
4014
4302
  /**
4015
4303
  *
4016
4304
  * @export
@@ -4237,6 +4525,37 @@ export interface MonthlyTurnoverResponse {
4237
4525
  */
4238
4526
  'period': string;
4239
4527
  }
4528
+ /**
4529
+ *
4530
+ * @export
4531
+ * @interface MyClubInfosResponse
4532
+ */
4533
+ export interface MyClubInfosResponse {
4534
+ /**
4535
+ *
4536
+ * @type {number}
4537
+ * @memberof MyClubInfosResponse
4538
+ */
4539
+ 'remainingBookings': number;
4540
+ /**
4541
+ *
4542
+ * @type {number}
4543
+ * @memberof MyClubInfosResponse
4544
+ */
4545
+ 'sameTimeBookingsLimit'?: number;
4546
+ /**
4547
+ *
4548
+ * @type {number}
4549
+ * @memberof MyClubInfosResponse
4550
+ */
4551
+ 'availableCredit': number;
4552
+ /**
4553
+ *
4554
+ * @type {Array<any>}
4555
+ * @memberof MyClubInfosResponse
4556
+ */
4557
+ 'subscriptionPlans'?: Array<any>;
4558
+ }
4240
4559
  /**
4241
4560
  *
4242
4561
  * @export
@@ -4401,6 +4720,30 @@ export interface PartialClubResponse {
4401
4720
  * @memberof PartialClubResponse
4402
4721
  */
4403
4722
  'sports'?: Array<string>;
4723
+ /**
4724
+ * Autoriser plusieurs réservations en même temps
4725
+ * @type {boolean}
4726
+ * @memberof PartialClubResponse
4727
+ */
4728
+ 'allowMultipleBookingsAtTheSameTime'?: boolean;
4729
+ /**
4730
+ * Limite de réservations simultanées (même créneau)
4731
+ * @type {number}
4732
+ * @memberof PartialClubResponse
4733
+ */
4734
+ 'sameTimeBookingsLimit'?: number;
4735
+ /**
4736
+ * Limite d\'annulation en heures
4737
+ * @type {number}
4738
+ * @memberof PartialClubResponse
4739
+ */
4740
+ 'cancellationLimitHours'?: number;
4741
+ /**
4742
+ * Nombre maximum de réservations par semaine
4743
+ * @type {number}
4744
+ * @memberof PartialClubResponse
4745
+ */
4746
+ 'maxWeeklyBookings'?: number;
4404
4747
  /**
4405
4748
  *
4406
4749
  * @type {ClubResponseCreatedAt}
@@ -4508,33 +4851,8 @@ export const PaymentMethod = {
4508
4851
  } as const;
4509
4852
 
4510
4853
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
4511
-
4512
-
4513
- /**
4514
- *
4515
- * @export
4516
- * @interface PaymentMethodSetupResponse
4517
- */
4518
- export interface PaymentMethodSetupResponse {
4519
- /**
4520
- *
4521
- * @type {string}
4522
- * @memberof PaymentMethodSetupResponse
4523
- */
4524
- 'message': string;
4525
- /**
4526
- *
4527
- * @type {Array<string>}
4528
- * @memberof PaymentMethodSetupResponse
4529
- */
4530
- 'paymentMethods': Array<string>;
4531
- /**
4532
- *
4533
- * @type {string}
4534
- * @memberof PaymentMethodSetupResponse
4535
- */
4536
- 'defaultPaymentMethodId'?: string | null;
4537
- }
4854
+
4855
+
4538
4856
  /**
4539
4857
  * From T, pick a set of properties whose keys are in the union K
4540
4858
  * @export
@@ -4787,6 +5105,49 @@ export interface PlayerPaymentInfo {
4787
5105
  }
4788
5106
 
4789
5107
 
5108
+ /**
5109
+ *
5110
+ * @export
5111
+ * @interface PlayerPrice
5112
+ */
5113
+ export interface PlayerPrice {
5114
+ /**
5115
+ *
5116
+ * @type {string}
5117
+ * @memberof PlayerPrice
5118
+ */
5119
+ 'playerId': string;
5120
+ /**
5121
+ *
5122
+ * @type {string}
5123
+ * @memberof PlayerPrice
5124
+ */
5125
+ 'firstName'?: string;
5126
+ /**
5127
+ *
5128
+ * @type {string}
5129
+ * @memberof PlayerPrice
5130
+ */
5131
+ 'lastName'?: string;
5132
+ /**
5133
+ *
5134
+ * @type {Array<SubscriptionInfo>}
5135
+ * @memberof PlayerPrice
5136
+ */
5137
+ 'subscriptions': Array<SubscriptionInfo>;
5138
+ /**
5139
+ *
5140
+ * @type {number}
5141
+ * @memberof PlayerPrice
5142
+ */
5143
+ 'creditAvailablesInCents'?: number;
5144
+ /**
5145
+ *
5146
+ * @type {number}
5147
+ * @memberof PlayerPrice
5148
+ */
5149
+ 'price': number;
5150
+ }
4790
5151
  /**
4791
5152
  *
4792
5153
  * @export
@@ -5058,6 +5419,25 @@ export interface PublishEventResponse {
5058
5419
  */
5059
5420
  'event': EventResponse;
5060
5421
  }
5422
+ /**
5423
+ *
5424
+ * @export
5425
+ * @interface QuickReservationClubSport
5426
+ */
5427
+ export interface QuickReservationClubSport {
5428
+ /**
5429
+ * ID du sport
5430
+ * @type {string}
5431
+ * @memberof QuickReservationClubSport
5432
+ */
5433
+ 'id': string;
5434
+ /**
5435
+ * Clé du sport
5436
+ * @type {string}
5437
+ * @memberof QuickReservationClubSport
5438
+ */
5439
+ 'key'?: string;
5440
+ }
5061
5441
  /**
5062
5442
  *
5063
5443
  * @export
@@ -5076,6 +5456,12 @@ export interface QuickReservationClubSummary {
5076
5456
  * @memberof QuickReservationClubSummary
5077
5457
  */
5078
5458
  'clubName': string;
5459
+ /**
5460
+ * Description du club
5461
+ * @type {string}
5462
+ * @memberof QuickReservationClubSummary
5463
+ */
5464
+ 'description'?: string;
5079
5465
  /**
5080
5466
  * Distance par rapport à la recherche, en mètres
5081
5467
  * @type {number}
@@ -5094,6 +5480,12 @@ export interface QuickReservationClubSummary {
5094
5480
  * @memberof QuickReservationClubSummary
5095
5481
  */
5096
5482
  'slots': Array<QuickReservationSlotSummary>;
5483
+ /**
5484
+ * Sports disponibles dans le club
5485
+ * @type {Array<QuickReservationClubSport>}
5486
+ * @memberof QuickReservationClubSummary
5487
+ */
5488
+ 'sports'?: Array<QuickReservationClubSport>;
5097
5489
  }
5098
5490
  /**
5099
5491
  * Localisation du club
@@ -5483,44 +5875,6 @@ export interface ResetPasswordRequest {
5483
5875
  */
5484
5876
  'token'?: string;
5485
5877
  }
5486
- /**
5487
- *
5488
- * @export
5489
- * @interface SetupPaymentMethodRequestBody
5490
- */
5491
- export interface SetupPaymentMethodRequestBody {
5492
- /**
5493
- *
5494
- * @type {string}
5495
- * @memberof SetupPaymentMethodRequestBody
5496
- */
5497
- 'clubId': string;
5498
- }
5499
- /**
5500
- *
5501
- * @export
5502
- * @interface SetupPaymentMethodResponse
5503
- */
5504
- export interface SetupPaymentMethodResponse {
5505
- /**
5506
- *
5507
- * @type {string}
5508
- * @memberof SetupPaymentMethodResponse
5509
- */
5510
- 'setupIntentId': string;
5511
- /**
5512
- *
5513
- * @type {string}
5514
- * @memberof SetupPaymentMethodResponse
5515
- */
5516
- 'clientSecret': string;
5517
- /**
5518
- *
5519
- * @type {string}
5520
- * @memberof SetupPaymentMethodResponse
5521
- */
5522
- 'message': string;
5523
- }
5524
5878
  /**
5525
5879
  *
5526
5880
  * @export
@@ -5797,24 +6151,12 @@ export interface StaffUserProfileResponse {
5797
6151
  * @memberof StaffUserProfileResponse
5798
6152
  */
5799
6153
  'isAccountVerified': boolean;
5800
- /**
5801
- *
5802
- * @type {boolean}
5803
- * @memberof StaffUserProfileResponse
5804
- */
5805
- 'isCreditCardRegistered'?: boolean;
5806
6154
  /**
5807
6155
  *
5808
6156
  * @type {Array<ILevelBySports>}
5809
6157
  * @memberof StaffUserProfileResponse
5810
6158
  */
5811
6159
  'levelBySports'?: Array<ILevelBySports>;
5812
- /**
5813
- *
5814
- * @type {string}
5815
- * @memberof StaffUserProfileResponse
5816
- */
5817
- 'stripeCustomerId'?: string;
5818
6160
  /**
5819
6161
  *
5820
6162
  * @type {string}
@@ -5887,30 +6229,6 @@ export interface StaffUserProfileResponse {
5887
6229
  * @memberof StaffUserProfileResponse
5888
6230
  */
5889
6231
  'isLevelCertified'?: boolean;
5890
- /**
5891
- *
5892
- * @type {Array<string>}
5893
- * @memberof StaffUserProfileResponse
5894
- */
5895
- 'paymentMethods'?: Array<string>;
5896
- /**
5897
- *
5898
- * @type {string}
5899
- * @memberof StaffUserProfileResponse
5900
- */
5901
- 'defaultPaymentMethodId'?: string;
5902
- /**
5903
- *
5904
- * @type {boolean}
5905
- * @memberof StaffUserProfileResponse
5906
- */
5907
- 'paymentMethodSetupCompleted': boolean;
5908
- /**
5909
- *
5910
- * @type {string}
5911
- * @memberof StaffUserProfileResponse
5912
- */
5913
- 'setupIntentId'?: string;
5914
6232
  /**
5915
6233
  *
5916
6234
  * @type {Array<string>}
@@ -5941,6 +6259,12 @@ export interface StaffUserProfileResponse {
5941
6259
  * @memberof StaffUserProfileResponse
5942
6260
  */
5943
6261
  'sports'?: { [key: string]: any; };
6262
+ /**
6263
+ *
6264
+ * @type {string}
6265
+ * @memberof StaffUserProfileResponse
6266
+ */
6267
+ 'stripeCustomerId'?: string;
5944
6268
  /**
5945
6269
  *
5946
6270
  * @type {boolean}
@@ -7234,6 +7558,12 @@ export interface SubscribeRequestBody {
7234
7558
  * @memberof SubscribeRequestBody
7235
7559
  */
7236
7560
  'priceId': string;
7561
+ /**
7562
+ *
7563
+ * @type {boolean}
7564
+ * @memberof SubscribeRequestBody
7565
+ */
7566
+ 'useDefaultPaymentMethod'?: boolean;
7237
7567
  }
7238
7568
  /**
7239
7569
  *
@@ -7254,6 +7584,31 @@ export interface SubscriberPrice {
7254
7584
  */
7255
7585
  'amount': number;
7256
7586
  }
7587
+ /**
7588
+ *
7589
+ * @export
7590
+ * @interface SubscriptionInfo
7591
+ */
7592
+ export interface SubscriptionInfo {
7593
+ /**
7594
+ *
7595
+ * @type {string}
7596
+ * @memberof SubscriptionInfo
7597
+ */
7598
+ 'subscriptionPlanName'?: string;
7599
+ /**
7600
+ *
7601
+ * @type {string}
7602
+ * @memberof SubscriptionInfo
7603
+ */
7604
+ 'subscriptionDescription'?: string;
7605
+ /**
7606
+ *
7607
+ * @type {number}
7608
+ * @memberof SubscriptionInfo
7609
+ */
7610
+ 'reducedAmountInCents'?: number;
7611
+ }
7257
7612
  /**
7258
7613
  *
7259
7614
  * @export
@@ -7998,6 +8353,43 @@ export interface UpdateUserRequestBodyLevelBySportsInner {
7998
8353
  */
7999
8354
  'sport': string;
8000
8355
  }
8356
+ /**
8357
+ *
8358
+ * @export
8359
+ * @interface UserBookingsResponse
8360
+ */
8361
+ export interface UserBookingsResponse {
8362
+ /**
8363
+ *
8364
+ * @type {number}
8365
+ * @memberof UserBookingsResponse
8366
+ */
8367
+ 'total': number;
8368
+ /**
8369
+ *
8370
+ * @type {number}
8371
+ * @memberof UserBookingsResponse
8372
+ */
8373
+ 'limit': number;
8374
+ /**
8375
+ *
8376
+ * @type {number}
8377
+ * @memberof UserBookingsResponse
8378
+ */
8379
+ 'skip': number;
8380
+ /**
8381
+ *
8382
+ * @type {boolean}
8383
+ * @memberof UserBookingsResponse
8384
+ */
8385
+ 'hasMore': boolean;
8386
+ /**
8387
+ *
8388
+ * @type {Array<BookingSummary>}
8389
+ * @memberof UserBookingsResponse
8390
+ */
8391
+ 'bookings': Array<BookingSummary>;
8392
+ }
8001
8393
  /**
8002
8394
  *
8003
8395
  * @export
@@ -8262,24 +8654,12 @@ export interface UserProfileResponse {
8262
8654
  * @memberof UserProfileResponse
8263
8655
  */
8264
8656
  'isAccountVerified': boolean;
8265
- /**
8266
- *
8267
- * @type {boolean}
8268
- * @memberof UserProfileResponse
8269
- */
8270
- 'isCreditCardRegistered'?: boolean;
8271
8657
  /**
8272
8658
  *
8273
8659
  * @type {Array<ILevelBySports>}
8274
8660
  * @memberof UserProfileResponse
8275
8661
  */
8276
8662
  'levelBySports'?: Array<ILevelBySports>;
8277
- /**
8278
- *
8279
- * @type {string}
8280
- * @memberof UserProfileResponse
8281
- */
8282
- 'stripeCustomerId'?: string;
8283
8663
  /**
8284
8664
  *
8285
8665
  * @type {string}
@@ -8352,30 +8732,6 @@ export interface UserProfileResponse {
8352
8732
  * @memberof UserProfileResponse
8353
8733
  */
8354
8734
  'isLevelCertified'?: boolean;
8355
- /**
8356
- *
8357
- * @type {Array<string>}
8358
- * @memberof UserProfileResponse
8359
- */
8360
- 'paymentMethods'?: Array<string>;
8361
- /**
8362
- *
8363
- * @type {string}
8364
- * @memberof UserProfileResponse
8365
- */
8366
- 'defaultPaymentMethodId'?: string;
8367
- /**
8368
- *
8369
- * @type {boolean}
8370
- * @memberof UserProfileResponse
8371
- */
8372
- 'paymentMethodSetupCompleted': boolean;
8373
- /**
8374
- *
8375
- * @type {string}
8376
- * @memberof UserProfileResponse
8377
- */
8378
- 'setupIntentId'?: string;
8379
8735
  /**
8380
8736
  *
8381
8737
  * @type {Array<string>}
@@ -8406,6 +8762,12 @@ export interface UserProfileResponse {
8406
8762
  * @memberof UserProfileResponse
8407
8763
  */
8408
8764
  'sports'?: { [key: string]: any; };
8765
+ /**
8766
+ *
8767
+ * @type {string}
8768
+ * @memberof UserProfileResponse
8769
+ */
8770
+ 'stripeCustomerId'?: string;
8409
8771
  /**
8410
8772
  *
8411
8773
  * @type {number}
@@ -8442,6 +8804,12 @@ export interface UserProfileResponse {
8442
8804
  * @memberof UserProfileResponse
8443
8805
  */
8444
8806
  'stripeLinks'?: { [key: string]: any; };
8807
+ /**
8808
+ *
8809
+ * @type {Array<SportResponse>}
8810
+ * @memberof UserProfileResponse
8811
+ */
8812
+ 'verifiedSports'?: Array<SportResponse>;
8445
8813
  }
8446
8814
 
8447
8815
 
@@ -8559,6 +8927,45 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8559
8927
  options: localVarRequestOptions,
8560
8928
  };
8561
8929
  },
8930
+ /**
8931
+ *
8932
+ * @param {BookingPriceBody} bookingPriceBody
8933
+ * @param {*} [options] Override http request option.
8934
+ * @throws {RequiredError}
8935
+ */
8936
+ getBookingPrice: async (bookingPriceBody: BookingPriceBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8937
+ // verify required parameter 'bookingPriceBody' is not null or undefined
8938
+ assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody)
8939
+ const localVarPath = `/api/bookings/booking-price`;
8940
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8941
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8942
+ let baseOptions;
8943
+ if (configuration) {
8944
+ baseOptions = configuration.baseOptions;
8945
+ }
8946
+
8947
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8948
+ const localVarHeaderParameter = {} as any;
8949
+ const localVarQueryParameter = {} as any;
8950
+
8951
+ // authentication bearerAuth required
8952
+ // http bearer authentication required
8953
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8954
+
8955
+
8956
+
8957
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8958
+
8959
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8960
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8961
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8962
+ localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration)
8963
+
8964
+ return {
8965
+ url: toPathString(localVarUrlObj),
8966
+ options: localVarRequestOptions,
8967
+ };
8968
+ },
8562
8969
  /**
8563
8970
  * Recherche des créneaux disponibles pour une réservation rapide
8564
8971
  * @param {number} [latitude]
@@ -8569,12 +8976,13 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8569
8976
  * @param {string} [startTime]
8570
8977
  * @param {number} [priceMax]
8571
8978
  * @param {string} [courtTypes]
8979
+ * @param {string} [surfaceTypes]
8572
8980
  * @param {number} [limitPerClub]
8573
8981
  * @param {number} [maxClubs]
8574
8982
  * @param {*} [options] Override http request option.
8575
8983
  * @throws {RequiredError}
8576
8984
  */
8577
- getQuickReservationSlots: async (latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8985
+ getQuickReservationSlots: async (latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, surfaceTypes?: string, limitPerClub?: number, maxClubs?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8578
8986
  const localVarPath = `/api/bookings/quick-reservations`;
8579
8987
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8580
8988
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8619,8 +9027,12 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8619
9027
  localVarQueryParameter['courtTypes'] = courtTypes;
8620
9028
  }
8621
9029
 
9030
+ if (surfaceTypes !== undefined) {
9031
+ localVarQueryParameter['surfaceTypes'] = surfaceTypes;
9032
+ }
9033
+
8622
9034
  if (limitPerClub !== undefined) {
8623
- localVarQueryParameter['limitPerClub'] = limitPerClub;
9035
+ localVarQueryParameter['_limitPerClub'] = limitPerClub;
8624
9036
  }
8625
9037
 
8626
9038
  if (maxClubs !== undefined) {
@@ -8660,6 +9072,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
8660
9072
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
8661
9073
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8662
9074
  },
9075
+ /**
9076
+ *
9077
+ * @param {BookingPriceBody} bookingPriceBody
9078
+ * @param {*} [options] Override http request option.
9079
+ * @throws {RequiredError}
9080
+ */
9081
+ async getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>> {
9082
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
9083
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
9084
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
9085
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9086
+ },
8663
9087
  /**
8664
9088
  * Recherche des créneaux disponibles pour une réservation rapide
8665
9089
  * @param {number} [latitude]
@@ -8670,13 +9094,14 @@ export const BookingsApiFp = function(configuration?: Configuration) {
8670
9094
  * @param {string} [startTime]
8671
9095
  * @param {number} [priceMax]
8672
9096
  * @param {string} [courtTypes]
9097
+ * @param {string} [surfaceTypes]
8673
9098
  * @param {number} [limitPerClub]
8674
9099
  * @param {number} [maxClubs]
8675
9100
  * @param {*} [options] Override http request option.
8676
9101
  * @throws {RequiredError}
8677
9102
  */
8678
- async getQuickReservationSlots(latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuickReservationResponse>> {
8679
- const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
9103
+ async getQuickReservationSlots(latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, surfaceTypes?: string, limitPerClub?: number, maxClubs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuickReservationResponse>> {
9104
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
8680
9105
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8681
9106
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
8682
9107
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8700,6 +9125,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
8700
9125
  getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
8701
9126
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
8702
9127
  },
9128
+ /**
9129
+ *
9130
+ * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
9131
+ * @param {*} [options] Override http request option.
9132
+ * @throws {RequiredError}
9133
+ */
9134
+ getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
9135
+ return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
9136
+ },
8703
9137
  /**
8704
9138
  * Recherche des créneaux disponibles pour une réservation rapide
8705
9139
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -8707,7 +9141,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
8707
9141
  * @throws {RequiredError}
8708
9142
  */
8709
9143
  getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
8710
- return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
9144
+ return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
8711
9145
  },
8712
9146
  };
8713
9147
  };
@@ -8726,6 +9160,20 @@ export interface BookingsApiGetBookingHistoryRequest {
8726
9160
  readonly bookingId: string
8727
9161
  }
8728
9162
 
9163
+ /**
9164
+ * Request parameters for getBookingPrice operation in BookingsApi.
9165
+ * @export
9166
+ * @interface BookingsApiGetBookingPriceRequest
9167
+ */
9168
+ export interface BookingsApiGetBookingPriceRequest {
9169
+ /**
9170
+ *
9171
+ * @type {BookingPriceBody}
9172
+ * @memberof BookingsApiGetBookingPrice
9173
+ */
9174
+ readonly bookingPriceBody: BookingPriceBody
9175
+ }
9176
+
8729
9177
  /**
8730
9178
  * Request parameters for getQuickReservationSlots operation in BookingsApi.
8731
9179
  * @export
@@ -8788,6 +9236,13 @@ export interface BookingsApiGetQuickReservationSlotsRequest {
8788
9236
  */
8789
9237
  readonly courtTypes?: string
8790
9238
 
9239
+ /**
9240
+ *
9241
+ * @type {string}
9242
+ * @memberof BookingsApiGetQuickReservationSlots
9243
+ */
9244
+ readonly surfaceTypes?: string
9245
+
8791
9246
  /**
8792
9247
  *
8793
9248
  * @type {number}
@@ -8821,6 +9276,17 @@ export class BookingsApi extends BaseAPI {
8821
9276
  return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
8822
9277
  }
8823
9278
 
9279
+ /**
9280
+ *
9281
+ * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
9282
+ * @param {*} [options] Override http request option.
9283
+ * @throws {RequiredError}
9284
+ * @memberof BookingsApi
9285
+ */
9286
+ public getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig) {
9287
+ return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
9288
+ }
9289
+
8824
9290
  /**
8825
9291
  * Recherche des créneaux disponibles pour une réservation rapide
8826
9292
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -8829,7 +9295,7 @@ export class BookingsApi extends BaseAPI {
8829
9295
  * @memberof BookingsApi
8830
9296
  */
8831
9297
  public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
8832
- return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
9298
+ return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.surfaceTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
8833
9299
  }
8834
9300
  }
8835
9301
 
@@ -12275,7 +12741,7 @@ export class ClubSettingsStaffApi extends BaseAPI {
12275
12741
  export const ClubsApiAxiosParamCreator = function (configuration?: Configuration) {
12276
12742
  return {
12277
12743
  /**
12278
- * Récupère la liste des clubs actifs
12744
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
12279
12745
  * @param {*} [options] Override http request option.
12280
12746
  * @throws {RequiredError}
12281
12747
  */
@@ -12685,7 +13151,7 @@ export const ClubsApiFp = function(configuration?: Configuration) {
12685
13151
  const localVarAxiosParamCreator = ClubsApiAxiosParamCreator(configuration)
12686
13152
  return {
12687
13153
  /**
12688
- * Récupère la liste des clubs actifs
13154
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
12689
13155
  * @param {*} [options] Override http request option.
12690
13156
  * @throws {RequiredError}
12691
13157
  */
@@ -12839,7 +13305,7 @@ export const ClubsApiFactory = function (configuration?: Configuration, basePath
12839
13305
  const localVarFp = ClubsApiFp(configuration)
12840
13306
  return {
12841
13307
  /**
12842
- * Récupère la liste des clubs actifs
13308
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
12843
13309
  * @param {*} [options] Override http request option.
12844
13310
  * @throws {RequiredError}
12845
13311
  */
@@ -13093,7 +13559,7 @@ export interface ClubsApiGetSportsByClubByIdRequest {
13093
13559
  */
13094
13560
  export class ClubsApi extends BaseAPI {
13095
13561
  /**
13096
- * Récupère la liste des clubs actifs
13562
+ * Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
13097
13563
  * @param {*} [options] Override http request option.
13098
13564
  * @throws {RequiredError}
13099
13565
  * @memberof ClubsApi
@@ -16873,6 +17339,103 @@ export class SportsManagerApi extends BaseAPI {
16873
17339
 
16874
17340
 
16875
17341
 
17342
+ /**
17343
+ * SportsPublicApi - axios parameter creator
17344
+ * @export
17345
+ */
17346
+ export const SportsPublicApiAxiosParamCreator = function (configuration?: Configuration) {
17347
+ return {
17348
+ /**
17349
+ * Récupère tous les sports vérifiés, accessibles publiquement
17350
+ * @param {*} [options] Override http request option.
17351
+ * @throws {RequiredError}
17352
+ */
17353
+ getVerifiedSports: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17354
+ const localVarPath = `/api/sports/verified`;
17355
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17356
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17357
+ let baseOptions;
17358
+ if (configuration) {
17359
+ baseOptions = configuration.baseOptions;
17360
+ }
17361
+
17362
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17363
+ const localVarHeaderParameter = {} as any;
17364
+ const localVarQueryParameter = {} as any;
17365
+
17366
+
17367
+
17368
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17369
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17370
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17371
+
17372
+ return {
17373
+ url: toPathString(localVarUrlObj),
17374
+ options: localVarRequestOptions,
17375
+ };
17376
+ },
17377
+ }
17378
+ };
17379
+
17380
+ /**
17381
+ * SportsPublicApi - functional programming interface
17382
+ * @export
17383
+ */
17384
+ export const SportsPublicApiFp = function(configuration?: Configuration) {
17385
+ const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration)
17386
+ return {
17387
+ /**
17388
+ * Récupère tous les sports vérifiés, accessibles publiquement
17389
+ * @param {*} [options] Override http request option.
17390
+ * @throws {RequiredError}
17391
+ */
17392
+ async getVerifiedSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
17393
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVerifiedSports(options);
17394
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17395
+ const localVarOperationServerBasePath = operationServerMap['SportsPublicApi.getVerifiedSports']?.[localVarOperationServerIndex]?.url;
17396
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17397
+ },
17398
+ }
17399
+ };
17400
+
17401
+ /**
17402
+ * SportsPublicApi - factory interface
17403
+ * @export
17404
+ */
17405
+ export const SportsPublicApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
17406
+ const localVarFp = SportsPublicApiFp(configuration)
17407
+ return {
17408
+ /**
17409
+ * Récupère tous les sports vérifiés, accessibles publiquement
17410
+ * @param {*} [options] Override http request option.
17411
+ * @throws {RequiredError}
17412
+ */
17413
+ getVerifiedSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
17414
+ return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
17415
+ },
17416
+ };
17417
+ };
17418
+
17419
+ /**
17420
+ * SportsPublicApi - object-oriented interface
17421
+ * @export
17422
+ * @class SportsPublicApi
17423
+ * @extends {BaseAPI}
17424
+ */
17425
+ export class SportsPublicApi extends BaseAPI {
17426
+ /**
17427
+ * Récupère tous les sports vérifiés, accessibles publiquement
17428
+ * @param {*} [options] Override http request option.
17429
+ * @throws {RequiredError}
17430
+ * @memberof SportsPublicApi
17431
+ */
17432
+ public getVerifiedSports(options?: RawAxiosRequestConfig) {
17433
+ return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
17434
+ }
17435
+ }
17436
+
17437
+
17438
+
16876
17439
  /**
16877
17440
  * SportsStaffApi - axios parameter creator
16878
17441
  * @export
@@ -17774,88 +18337,213 @@ export interface SubscriptionsUserApiCancelRequest {
17774
18337
  }
17775
18338
 
17776
18339
  /**
17777
- * Request parameters for resume operation in SubscriptionsUserApi.
18340
+ * Request parameters for resume operation in SubscriptionsUserApi.
18341
+ * @export
18342
+ * @interface SubscriptionsUserApiResumeRequest
18343
+ */
18344
+ export interface SubscriptionsUserApiResumeRequest {
18345
+ /**
18346
+ *
18347
+ * @type {string}
18348
+ * @memberof SubscriptionsUserApiResume
18349
+ */
18350
+ readonly clubId: string
18351
+
18352
+ /**
18353
+ *
18354
+ * @type {string}
18355
+ * @memberof SubscriptionsUserApiResume
18356
+ */
18357
+ readonly subscriptionId: string
18358
+ }
18359
+
18360
+ /**
18361
+ * Request parameters for subscribe operation in SubscriptionsUserApi.
18362
+ * @export
18363
+ * @interface SubscriptionsUserApiSubscribeRequest
18364
+ */
18365
+ export interface SubscriptionsUserApiSubscribeRequest {
18366
+ /**
18367
+ *
18368
+ * @type {SubscribeRequestBody}
18369
+ * @memberof SubscriptionsUserApiSubscribe
18370
+ */
18371
+ readonly subscribeRequestBody: SubscribeRequestBody
18372
+ }
18373
+
18374
+ /**
18375
+ * SubscriptionsUserApi - object-oriented interface
18376
+ * @export
18377
+ * @class SubscriptionsUserApi
18378
+ * @extends {BaseAPI}
18379
+ */
18380
+ export class SubscriptionsUserApi extends BaseAPI {
18381
+ /**
18382
+ * Annuler un abonnement à la fin de la période (auth classique)
18383
+ * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
18384
+ * @param {*} [options] Override http request option.
18385
+ * @throws {RequiredError}
18386
+ * @memberof SubscriptionsUserApi
18387
+ */
18388
+ public cancel(requestParameters: SubscriptionsUserApiCancelRequest, options?: RawAxiosRequestConfig) {
18389
+ return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
18390
+ }
18391
+
18392
+ /**
18393
+ * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
18394
+ * @param {*} [options] Override http request option.
18395
+ * @throws {RequiredError}
18396
+ * @memberof SubscriptionsUserApi
18397
+ */
18398
+ public mySubscriptions(options?: RawAxiosRequestConfig) {
18399
+ return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
18400
+ }
18401
+
18402
+ /**
18403
+ * Reprendre un abonnement annulé en fin de période (auth classique)
18404
+ * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
18405
+ * @param {*} [options] Override http request option.
18406
+ * @throws {RequiredError}
18407
+ * @memberof SubscriptionsUserApi
18408
+ */
18409
+ public resume(requestParameters: SubscriptionsUserApiResumeRequest, options?: RawAxiosRequestConfig) {
18410
+ return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
18411
+ }
18412
+
18413
+ /**
18414
+ * S\'abonner à un plan (auth classique)
18415
+ * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
18416
+ * @param {*} [options] Override http request option.
18417
+ * @throws {RequiredError}
18418
+ * @memberof SubscriptionsUserApi
18419
+ */
18420
+ public subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig) {
18421
+ return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
18422
+ }
18423
+ }
18424
+
18425
+
18426
+
18427
+ /**
18428
+ * UserApi - axios parameter creator
18429
+ * @export
18430
+ */
18431
+ export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
18432
+ return {
18433
+ /**
18434
+ * Récupère les informations du club de l\'utilisateur
18435
+ * @param {string} clubId
18436
+ * @param {*} [options] Override http request option.
18437
+ * @throws {RequiredError}
18438
+ */
18439
+ getMyClubInfos: async (clubId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18440
+ // verify required parameter 'clubId' is not null or undefined
18441
+ assertParamExists('getMyClubInfos', 'clubId', clubId)
18442
+ const localVarPath = `/api/users/me/club-infos`;
18443
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18444
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18445
+ let baseOptions;
18446
+ if (configuration) {
18447
+ baseOptions = configuration.baseOptions;
18448
+ }
18449
+
18450
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18451
+ const localVarHeaderParameter = {} as any;
18452
+ const localVarQueryParameter = {} as any;
18453
+
18454
+ // authentication bearerAuth required
18455
+ // http bearer authentication required
18456
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18457
+
18458
+ if (clubId !== undefined) {
18459
+ localVarQueryParameter['clubId'] = clubId;
18460
+ }
18461
+
18462
+
18463
+
18464
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18465
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18466
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18467
+
18468
+ return {
18469
+ url: toPathString(localVarUrlObj),
18470
+ options: localVarRequestOptions,
18471
+ };
18472
+ },
18473
+ }
18474
+ };
18475
+
18476
+ /**
18477
+ * UserApi - functional programming interface
18478
+ * @export
18479
+ */
18480
+ export const UserApiFp = function(configuration?: Configuration) {
18481
+ const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
18482
+ return {
18483
+ /**
18484
+ * Récupère les informations du club de l\'utilisateur
18485
+ * @param {string} clubId
18486
+ * @param {*} [options] Override http request option.
18487
+ * @throws {RequiredError}
18488
+ */
18489
+ async getMyClubInfos(clubId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MyClubInfosResponse>> {
18490
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyClubInfos(clubId, options);
18491
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18492
+ const localVarOperationServerBasePath = operationServerMap['UserApi.getMyClubInfos']?.[localVarOperationServerIndex]?.url;
18493
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18494
+ },
18495
+ }
18496
+ };
18497
+
18498
+ /**
18499
+ * UserApi - factory interface
18500
+ * @export
18501
+ */
18502
+ export const UserApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18503
+ const localVarFp = UserApiFp(configuration)
18504
+ return {
18505
+ /**
18506
+ * Récupère les informations du club de l\'utilisateur
18507
+ * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
18508
+ * @param {*} [options] Override http request option.
18509
+ * @throws {RequiredError}
18510
+ */
18511
+ getMyClubInfos(requestParameters: UserApiGetMyClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<MyClubInfosResponse> {
18512
+ return localVarFp.getMyClubInfos(requestParameters.clubId, options).then((request) => request(axios, basePath));
18513
+ },
18514
+ };
18515
+ };
18516
+
18517
+ /**
18518
+ * Request parameters for getMyClubInfos operation in UserApi.
17778
18519
  * @export
17779
- * @interface SubscriptionsUserApiResumeRequest
18520
+ * @interface UserApiGetMyClubInfosRequest
17780
18521
  */
17781
- export interface SubscriptionsUserApiResumeRequest {
18522
+ export interface UserApiGetMyClubInfosRequest {
17782
18523
  /**
17783
18524
  *
17784
18525
  * @type {string}
17785
- * @memberof SubscriptionsUserApiResume
18526
+ * @memberof UserApiGetMyClubInfos
17786
18527
  */
17787
18528
  readonly clubId: string
17788
-
17789
- /**
17790
- *
17791
- * @type {string}
17792
- * @memberof SubscriptionsUserApiResume
17793
- */
17794
- readonly subscriptionId: string
17795
- }
17796
-
17797
- /**
17798
- * Request parameters for subscribe operation in SubscriptionsUserApi.
17799
- * @export
17800
- * @interface SubscriptionsUserApiSubscribeRequest
17801
- */
17802
- export interface SubscriptionsUserApiSubscribeRequest {
17803
- /**
17804
- *
17805
- * @type {SubscribeRequestBody}
17806
- * @memberof SubscriptionsUserApiSubscribe
17807
- */
17808
- readonly subscribeRequestBody: SubscribeRequestBody
17809
18529
  }
17810
18530
 
17811
18531
  /**
17812
- * SubscriptionsUserApi - object-oriented interface
18532
+ * UserApi - object-oriented interface
17813
18533
  * @export
17814
- * @class SubscriptionsUserApi
18534
+ * @class UserApi
17815
18535
  * @extends {BaseAPI}
17816
18536
  */
17817
- export class SubscriptionsUserApi extends BaseAPI {
17818
- /**
17819
- * Annuler un abonnement à la fin de la période (auth classique)
17820
- * @param {SubscriptionsUserApiCancelRequest} requestParameters Request parameters.
17821
- * @param {*} [options] Override http request option.
17822
- * @throws {RequiredError}
17823
- * @memberof SubscriptionsUserApi
17824
- */
17825
- public cancel(requestParameters: SubscriptionsUserApiCancelRequest, options?: RawAxiosRequestConfig) {
17826
- return SubscriptionsUserApiFp(this.configuration).cancel(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
17827
- }
17828
-
17829
- /**
17830
- * Liste les abonnements de l\'utilisateur courant, groupés par club (auth classique)
17831
- * @param {*} [options] Override http request option.
17832
- * @throws {RequiredError}
17833
- * @memberof SubscriptionsUserApi
17834
- */
17835
- public mySubscriptions(options?: RawAxiosRequestConfig) {
17836
- return SubscriptionsUserApiFp(this.configuration).mySubscriptions(options).then((request) => request(this.axios, this.basePath));
17837
- }
17838
-
17839
- /**
17840
- * Reprendre un abonnement annulé en fin de période (auth classique)
17841
- * @param {SubscriptionsUserApiResumeRequest} requestParameters Request parameters.
17842
- * @param {*} [options] Override http request option.
17843
- * @throws {RequiredError}
17844
- * @memberof SubscriptionsUserApi
17845
- */
17846
- public resume(requestParameters: SubscriptionsUserApiResumeRequest, options?: RawAxiosRequestConfig) {
17847
- return SubscriptionsUserApiFp(this.configuration).resume(requestParameters.clubId, requestParameters.subscriptionId, options).then((request) => request(this.axios, this.basePath));
17848
- }
17849
-
18537
+ export class UserApi extends BaseAPI {
17850
18538
  /**
17851
- * S\'abonner à un plan (auth classique)
17852
- * @param {SubscriptionsUserApiSubscribeRequest} requestParameters Request parameters.
18539
+ * Récupère les informations du club de l\'utilisateur
18540
+ * @param {UserApiGetMyClubInfosRequest} requestParameters Request parameters.
17853
18541
  * @param {*} [options] Override http request option.
17854
18542
  * @throws {RequiredError}
17855
- * @memberof SubscriptionsUserApi
18543
+ * @memberof UserApi
17856
18544
  */
17857
- public subscribe(requestParameters: SubscriptionsUserApiSubscribeRequest, options?: RawAxiosRequestConfig) {
17858
- return SubscriptionsUserApiFp(this.configuration).subscribe(requestParameters.subscribeRequestBody, options).then((request) => request(this.axios, this.basePath));
18545
+ public getMyClubInfos(requestParameters: UserApiGetMyClubInfosRequest, options?: RawAxiosRequestConfig) {
18546
+ return UserApiFp(this.configuration).getMyClubInfos(requestParameters.clubId, options).then((request) => request(this.axios, this.basePath));
17859
18547
  }
17860
18548
  }
17861
18549
 
@@ -17984,45 +18672,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
17984
18672
  options: localVarRequestOptions,
17985
18673
  };
17986
18674
  },
17987
- /**
17988
- *
17989
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
17990
- * @param {*} [options] Override http request option.
17991
- * @throws {RequiredError}
17992
- */
17993
- addPaymentMethodSetup: async (addPaymentMethodRequestBody: AddPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17994
- // verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
17995
- assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody)
17996
- const localVarPath = `/api/users/addPaymentMethodSetup`;
17997
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
17998
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17999
- let baseOptions;
18000
- if (configuration) {
18001
- baseOptions = configuration.baseOptions;
18002
- }
18003
-
18004
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18005
- const localVarHeaderParameter = {} as any;
18006
- const localVarQueryParameter = {} as any;
18007
-
18008
- // authentication bearerAuth required
18009
- // http bearer authentication required
18010
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
18011
-
18012
-
18013
-
18014
- localVarHeaderParameter['Content-Type'] = 'application/json';
18015
-
18016
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18017
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18018
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18019
- localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration)
18020
-
18021
- return {
18022
- url: toPathString(localVarUrlObj),
18023
- options: localVarRequestOptions,
18024
- };
18025
- },
18026
18675
  /**
18027
18676
  *
18028
18677
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -18062,45 +18711,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
18062
18711
  options: localVarRequestOptions,
18063
18712
  };
18064
18713
  },
18065
- /**
18066
- *
18067
- * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
18068
- * @param {*} [options] Override http request option.
18069
- * @throws {RequiredError}
18070
- */
18071
- confirmPaymentMethodSetup: async (confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18072
- // verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
18073
- assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody)
18074
- const localVarPath = `/api/users/confirmPaymentMethodSetup`;
18075
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18076
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18077
- let baseOptions;
18078
- if (configuration) {
18079
- baseOptions = configuration.baseOptions;
18080
- }
18081
-
18082
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18083
- const localVarHeaderParameter = {} as any;
18084
- const localVarQueryParameter = {} as any;
18085
-
18086
- // authentication bearerAuth required
18087
- // http bearer authentication required
18088
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
18089
-
18090
-
18091
-
18092
- localVarHeaderParameter['Content-Type'] = 'application/json';
18093
-
18094
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18095
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18096
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18097
- localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration)
18098
-
18099
- return {
18100
- url: toPathString(localVarUrlObj),
18101
- options: localVarRequestOptions,
18102
- };
18103
- },
18104
18714
  /**
18105
18715
  *
18106
18716
  * @param {*} [options] Override http request option.
@@ -19037,45 +19647,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
19037
19647
  options: localVarRequestOptions,
19038
19648
  };
19039
19649
  },
19040
- /**
19041
- *
19042
- * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
19043
- * @param {*} [options] Override http request option.
19044
- * @throws {RequiredError}
19045
- */
19046
- setupOffSessionPaymentMethod: async (setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19047
- // verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
19048
- assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody)
19049
- const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
19050
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
19051
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19052
- let baseOptions;
19053
- if (configuration) {
19054
- baseOptions = configuration.baseOptions;
19055
- }
19056
-
19057
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19058
- const localVarHeaderParameter = {} as any;
19059
- const localVarQueryParameter = {} as any;
19060
-
19061
- // authentication bearerAuth required
19062
- // http bearer authentication required
19063
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
19064
-
19065
-
19066
-
19067
- localVarHeaderParameter['Content-Type'] = 'application/json';
19068
-
19069
- setSearchParams(localVarUrlObj, localVarQueryParameter);
19070
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19071
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19072
- localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration)
19073
-
19074
- return {
19075
- url: toPathString(localVarUrlObj),
19076
- options: localVarRequestOptions,
19077
- };
19078
- },
19079
19650
  /**
19080
19651
  *
19081
19652
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -19383,18 +19954,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
19383
19954
  const localVarOperationServerBasePath = operationServerMap['UsersApi.addOrganization']?.[localVarOperationServerIndex]?.url;
19384
19955
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19385
19956
  },
19386
- /**
19387
- *
19388
- * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
19389
- * @param {*} [options] Override http request option.
19390
- * @throws {RequiredError}
19391
- */
19392
- async addPaymentMethodSetup(addPaymentMethodRequestBody: AddPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodSetupResponse>> {
19393
- const localVarAxiosArgs = await localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
19394
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19395
- const localVarOperationServerBasePath = operationServerMap['UsersApi.addPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
19396
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19397
- },
19398
19957
  /**
19399
19958
  *
19400
19959
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -19407,18 +19966,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
19407
19966
  const localVarOperationServerBasePath = operationServerMap['UsersApi.changePassword']?.[localVarOperationServerIndex]?.url;
19408
19967
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19409
19968
  },
19410
- /**
19411
- *
19412
- * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
19413
- * @param {*} [options] Override http request option.
19414
- * @throws {RequiredError}
19415
- */
19416
- async confirmPaymentMethodSetup(confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentMethodResponse>> {
19417
- const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
19418
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19419
- const localVarOperationServerBasePath = operationServerMap['UsersApi.confirmPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
19420
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19421
- },
19422
19969
  /**
19423
19970
  *
19424
19971
  * @param {*} [options] Override http request option.
@@ -19436,7 +19983,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
19436
19983
  * @param {*} [options] Override http request option.
19437
19984
  * @throws {RequiredError}
19438
19985
  */
19439
- async getBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingDetailResponse>> {
19986
+ async getBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingSummary>> {
19440
19987
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingDetail(bookingId, options);
19441
19988
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19442
19989
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getBookingDetail']?.[localVarOperationServerIndex]?.url;
@@ -19571,7 +20118,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
19571
20118
  * @param {*} [options] Override http request option.
19572
20119
  * @throws {RequiredError}
19573
20120
  */
19574
- async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingSummary>>> {
20121
+ async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>> {
19575
20122
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBookings(limit, skip, options);
19576
20123
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19577
20124
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
@@ -19717,18 +20264,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
19717
20264
  const localVarOperationServerBasePath = operationServerMap['UsersApi.resetPassword']?.[localVarOperationServerIndex]?.url;
19718
20265
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19719
20266
  },
19720
- /**
19721
- *
19722
- * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
19723
- * @param {*} [options] Override http request option.
19724
- * @throws {RequiredError}
19725
- */
19726
- async setupOffSessionPaymentMethod(setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetupPaymentMethodResponse>> {
19727
- const localVarAxiosArgs = await localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
19728
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19729
- const localVarOperationServerBasePath = operationServerMap['UsersApi.setupOffSessionPaymentMethod']?.[localVarOperationServerIndex]?.url;
19730
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19731
- },
19732
20267
  /**
19733
20268
  *
19734
20269
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -19850,15 +20385,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19850
20385
  addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
19851
20386
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
19852
20387
  },
19853
- /**
19854
- *
19855
- * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
19856
- * @param {*} [options] Override http request option.
19857
- * @throws {RequiredError}
19858
- */
19859
- addPaymentMethodSetup(requestParameters: UsersApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentMethodSetupResponse> {
19860
- return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
19861
- },
19862
20388
  /**
19863
20389
  *
19864
20390
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -19868,15 +20394,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19868
20394
  changePassword(requestParameters: UsersApiChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChangePasswordResponse> {
19869
20395
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
19870
20396
  },
19871
- /**
19872
- *
19873
- * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
19874
- * @param {*} [options] Override http request option.
19875
- * @throws {RequiredError}
19876
- */
19877
- confirmPaymentMethodSetup(requestParameters: UsersApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfirmPaymentMethodResponse> {
19878
- return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
19879
- },
19880
20397
  /**
19881
20398
  *
19882
20399
  * @param {*} [options] Override http request option.
@@ -19891,7 +20408,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19891
20408
  * @param {*} [options] Override http request option.
19892
20409
  * @throws {RequiredError}
19893
20410
  */
19894
- getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingDetailResponse> {
20411
+ getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingSummary> {
19895
20412
  return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
19896
20413
  },
19897
20414
  /**
@@ -19984,7 +20501,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19984
20501
  * @param {*} [options] Override http request option.
19985
20502
  * @throws {RequiredError}
19986
20503
  */
19987
- getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingSummary>> {
20504
+ getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
19988
20505
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
19989
20506
  },
19990
20507
  /**
@@ -20085,15 +20602,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
20085
20602
  resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
20086
20603
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
20087
20604
  },
20088
- /**
20089
- *
20090
- * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
20091
- * @param {*} [options] Override http request option.
20092
- * @throws {RequiredError}
20093
- */
20094
- setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetupPaymentMethodResponse> {
20095
- return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
20096
- },
20097
20605
  /**
20098
20606
  *
20099
20607
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -20202,20 +20710,6 @@ export interface UsersApiAddOrganizationRequest {
20202
20710
  readonly addOrganizationRequest: AddOrganizationRequest
20203
20711
  }
20204
20712
 
20205
- /**
20206
- * Request parameters for addPaymentMethodSetup operation in UsersApi.
20207
- * @export
20208
- * @interface UsersApiAddPaymentMethodSetupRequest
20209
- */
20210
- export interface UsersApiAddPaymentMethodSetupRequest {
20211
- /**
20212
- *
20213
- * @type {AddPaymentMethodRequestBody}
20214
- * @memberof UsersApiAddPaymentMethodSetup
20215
- */
20216
- readonly addPaymentMethodRequestBody: AddPaymentMethodRequestBody
20217
- }
20218
-
20219
20713
  /**
20220
20714
  * Request parameters for changePassword operation in UsersApi.
20221
20715
  * @export
@@ -20230,20 +20724,6 @@ export interface UsersApiChangePasswordRequest {
20230
20724
  readonly changePasswordRequestBody: ChangePasswordRequestBody
20231
20725
  }
20232
20726
 
20233
- /**
20234
- * Request parameters for confirmPaymentMethodSetup operation in UsersApi.
20235
- * @export
20236
- * @interface UsersApiConfirmPaymentMethodSetupRequest
20237
- */
20238
- export interface UsersApiConfirmPaymentMethodSetupRequest {
20239
- /**
20240
- *
20241
- * @type {ConfirmPaymentMethodRequestBody}
20242
- * @memberof UsersApiConfirmPaymentMethodSetup
20243
- */
20244
- readonly confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody
20245
- }
20246
-
20247
20727
  /**
20248
20728
  * Request parameters for getBookingDetail operation in UsersApi.
20249
20729
  * @export
@@ -20594,20 +21074,6 @@ export interface UsersApiResetPasswordRequest {
20594
21074
  readonly resetPasswordRequest: ResetPasswordRequest
20595
21075
  }
20596
21076
 
20597
- /**
20598
- * Request parameters for setupOffSessionPaymentMethod operation in UsersApi.
20599
- * @export
20600
- * @interface UsersApiSetupOffSessionPaymentMethodRequest
20601
- */
20602
- export interface UsersApiSetupOffSessionPaymentMethodRequest {
20603
- /**
20604
- *
20605
- * @type {SetupPaymentMethodRequestBody}
20606
- * @memberof UsersApiSetupOffSessionPaymentMethod
20607
- */
20608
- readonly setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody
20609
- }
20610
-
20611
21077
  /**
20612
21078
  * Request parameters for signInOrSignUpWithGoogle operation in UsersApi.
20613
21079
  * @export
@@ -20746,17 +21212,6 @@ export class UsersApi extends BaseAPI {
20746
21212
  return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
20747
21213
  }
20748
21214
 
20749
- /**
20750
- *
20751
- * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
20752
- * @param {*} [options] Override http request option.
20753
- * @throws {RequiredError}
20754
- * @memberof UsersApi
20755
- */
20756
- public addPaymentMethodSetup(requestParameters: UsersApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
20757
- return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
20758
- }
20759
-
20760
21215
  /**
20761
21216
  *
20762
21217
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -20768,17 +21223,6 @@ export class UsersApi extends BaseAPI {
20768
21223
  return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
20769
21224
  }
20770
21225
 
20771
- /**
20772
- *
20773
- * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
20774
- * @param {*} [options] Override http request option.
20775
- * @throws {RequiredError}
20776
- * @memberof UsersApi
20777
- */
20778
- public confirmPaymentMethodSetup(requestParameters: UsersApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
20779
- return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
20780
- }
20781
-
20782
21226
  /**
20783
21227
  *
20784
21228
  * @param {*} [options] Override http request option.
@@ -21035,17 +21479,6 @@ export class UsersApi extends BaseAPI {
21035
21479
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
21036
21480
  }
21037
21481
 
21038
- /**
21039
- *
21040
- * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
21041
- * @param {*} [options] Override http request option.
21042
- * @throws {RequiredError}
21043
- * @memberof UsersApi
21044
- */
21045
- public setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig) {
21046
- return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
21047
- }
21048
-
21049
21482
  /**
21050
21483
  *
21051
21484
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.