@tennac-booking/sdk 1.0.82 → 1.0.84

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 (72) hide show
  1. package/.openapi-generator/FILES +13 -17
  2. package/README.md +16 -25
  3. package/api.ts +1054 -1457
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +831 -1086
  8. package/dist/api.js +189 -403
  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 +831 -1086
  16. package/dist/esm/api.js +182 -400
  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/BookingPopulated.md +2 -0
  33. package/docs/{ConfirmPaymentMethodRequestBody.md → BookingPriceBody.md} +7 -5
  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/ClubAnalyticsStaffApi.md +0 -167
  40. package/docs/ClubResponse.md +8 -0
  41. package/docs/ClubSettingsResponse.md +0 -2
  42. package/docs/CreateBookingRequest.md +2 -2
  43. package/docs/CreateEventRequest.md +0 -2
  44. package/docs/IUserAttributes.md +2 -12
  45. package/docs/InvoiceStatus.md +22 -0
  46. package/docs/PartialClubResponse.md +8 -0
  47. package/docs/PlayerPrice.md +30 -0
  48. package/docs/{ConfirmPaymentMethodResponse.md → QuickReservationClubSport.md} +7 -7
  49. package/docs/QuickReservationClubSummary.md +4 -0
  50. package/docs/SlotInfo.md +2 -2
  51. package/docs/SportsPublicApi.md +53 -0
  52. package/docs/StaffUserProfileResponse.md +2 -12
  53. package/docs/SubscribeRequestBody.md +2 -0
  54. package/docs/SubscriptionInfo.md +24 -0
  55. package/docs/UserBookingsResponse.md +28 -0
  56. package/docs/UserProfileResponse.md +4 -12
  57. package/docs/UsersApi.md +4 -160
  58. package/index.ts +1 -1
  59. package/package.json +1 -1
  60. package/docs/BookingDetailResponse.md +0 -46
  61. package/docs/ClubPlayerBookingItem.md +0 -36
  62. package/docs/ClubPlayerBookingsResponse.md +0 -22
  63. package/docs/ClubPlayerDetailResponse.md +0 -46
  64. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +0 -22
  65. package/docs/ClubPlayerStatisticsResponse.md +0 -42
  66. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +0 -22
  67. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +0 -23
  68. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +0 -25
  69. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +0 -26
  70. package/docs/ClubPlayerSubscriptionSummary.md +0 -28
  71. package/docs/PaymentMethodSetupResponse.md +0 -24
  72. 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.75
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
179
- */
180
- 'clubPicture'?: string;
181
- /**
182
- *
183
- * @type {string}
184
- * @memberof BookingDetailResponse
165
+ * @memberof BookingClubInfo
185
166
  */
186
- 'courtName'?: string;
167
+ 'name'?: string | null;
187
168
  /**
188
169
  *
189
170
  * @type {string}
190
- * @memberof BookingDetailResponse
171
+ * @memberof BookingClubInfo
191
172
  */
192
- 'sportName'?: string;
173
+ 'picture'?: string | null;
193
174
  /**
194
175
  *
195
176
  * @type {string}
196
- * @memberof BookingDetailResponse
177
+ * @memberof BookingClubInfo
197
178
  */
198
- 'startDate'?: string;
179
+ 'address'?: string | null;
199
180
  /**
200
- *
201
- * @type {string}
202
- * @memberof BookingDetailResponse
181
+ * Construct a type with a set of properties K of type T
182
+ * @type {{ [key: string]: any; }}
183
+ * @memberof BookingClubInfo
203
184
  */
204
- 'myPaymentStatus'?: string;
185
+ 'location'?: { [key: string]: any; } | null;
186
+ }
187
+ /**
188
+ *
189
+ * @export
190
+ * @interface BookingCourtInfo
191
+ */
192
+ export interface BookingCourtInfo {
205
193
  /**
206
194
  *
207
195
  * @type {string}
208
- * @memberof BookingDetailResponse
209
- */
210
- 'bookingStatus'?: string;
211
- /**
212
- *
213
- * @type {Array<string>}
214
- * @memberof BookingDetailResponse
196
+ * @memberof BookingCourtInfo
215
197
  */
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;
198
+ 'id'?: string | null;
229
199
  /**
230
200
  *
231
201
  * @type {string}
232
- * @memberof BookingDetailResponse
233
- */
234
- 'timeBeforeCancel'?: string | null;
235
- /**
236
- *
237
- * @type {BookingSummaryClubAddress}
238
- * @memberof BookingDetailResponse
202
+ * @memberof BookingCourtInfo
239
203
  */
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
@@ -575,6 +611,12 @@ export interface BookingPopulated {
575
611
  * @memberof BookingPopulated
576
612
  */
577
613
  'isCreatorPayingAll': boolean;
614
+ /**
615
+ *
616
+ * @type {Array<string>}
617
+ * @memberof BookingPopulated
618
+ */
619
+ 'playersIds': Array<string>;
578
620
  /**
579
621
  *
580
622
  * @type {Array<BookingHistoryPopulated>}
@@ -608,6 +650,25 @@ export interface BookingPopulated {
608
650
  }
609
651
 
610
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
+ }
611
672
  /**
612
673
  *
613
674
  * @export
@@ -638,6 +699,12 @@ export interface BookingResponse {
638
699
  * @memberof BookingResponse
639
700
  */
640
701
  'onsitePayments'?: Array<BookingResponseOnsitePaymentsInner>;
702
+ /**
703
+ *
704
+ * @type {string}
705
+ * @memberof BookingResponse
706
+ */
707
+ 'setupNoShowPaymentUrl'?: string;
641
708
  /**
642
709
  * Message de confirmation
643
710
  * @type {string}
@@ -664,6 +731,68 @@ export interface BookingResponseOnsitePaymentsInner {
664
731
  */
665
732
  'playerId': string;
666
733
  }
734
+ /**
735
+ *
736
+ * @export
737
+ * @interface BookingSlotInfo
738
+ */
739
+ export interface BookingSlotInfo {
740
+ /**
741
+ *
742
+ * @type {string}
743
+ * @memberof BookingSlotInfo
744
+ */
745
+ 'id': string;
746
+ /**
747
+ *
748
+ * @type {string}
749
+ * @memberof BookingSlotInfo
750
+ */
751
+ 'startDate'?: string | null;
752
+ /**
753
+ *
754
+ * @type {string}
755
+ * @memberof BookingSlotInfo
756
+ */
757
+ 'endDate'?: string | null;
758
+ /**
759
+ *
760
+ * @type {number}
761
+ * @memberof BookingSlotInfo
762
+ */
763
+ 'durationMinutes'?: number | null;
764
+ /**
765
+ *
766
+ * @type {BookingCourtInfo}
767
+ * @memberof BookingSlotInfo
768
+ */
769
+ 'court'?: BookingCourtInfo | null;
770
+ /**
771
+ *
772
+ * @type {BookingSportInfo}
773
+ * @memberof BookingSlotInfo
774
+ */
775
+ 'sport'?: BookingSportInfo | null;
776
+ }
777
+ /**
778
+ *
779
+ * @export
780
+ * @interface BookingSportInfo
781
+ */
782
+ export interface BookingSportInfo {
783
+ /**
784
+ *
785
+ * @type {string}
786
+ * @memberof BookingSportInfo
787
+ */
788
+ 'id'?: string | null;
789
+ /**
790
+ *
791
+ * @type {string}
792
+ * @memberof BookingSportInfo
793
+ */
794
+ 'key'?: string | null;
795
+ }
667
796
  /**
668
797
  *
669
798
  * @export
@@ -700,794 +829,552 @@ export interface BookingSummary {
700
829
  * @type {string}
701
830
  * @memberof BookingSummary
702
831
  */
703
- 'clubPicture'?: string;
832
+ 'clubId': string;
704
833
  /**
705
834
  *
706
835
  * @type {string}
707
836
  * @memberof BookingSummary
708
837
  */
709
- 'courtName'?: string;
838
+ 'userId': string;
710
839
  /**
711
840
  *
712
- * @type {string}
841
+ * @type {Array<string>}
713
842
  * @memberof BookingSummary
714
843
  */
715
- 'sportName'?: string;
844
+ 'playersIds': Array<string>;
716
845
  /**
717
846
  *
718
- * @type {string}
847
+ * @type {BookingStatus}
719
848
  * @memberof BookingSummary
720
849
  */
721
- 'startDate'?: string;
850
+ 'status': BookingStatus;
722
851
  /**
723
852
  *
724
- * @type {string}
853
+ * @type {Array<BookingPaymentStatus>}
725
854
  * @memberof BookingSummary
726
855
  */
727
- 'myPaymentStatus'?: string;
856
+ 'paymentByPlayersStatus': Array<BookingPaymentStatus>;
728
857
  /**
729
858
  *
730
- * @type {string}
859
+ * @type {boolean}
731
860
  * @memberof BookingSummary
732
861
  */
733
- 'bookingStatus'?: string;
862
+ 'isCreatorPayingAll': boolean;
734
863
  /**
735
864
  *
736
- * @type {Array<string>}
865
+ * @type {number}
737
866
  * @memberof BookingSummary
738
867
  */
739
- 'playersName': Array<string>;
868
+ 'totalPrice': number;
740
869
  /**
741
870
  *
742
- * @type {number}
871
+ * @type {Array<string>}
743
872
  * @memberof BookingSummary
744
873
  */
745
- 'myAmountToPay': number;
874
+ 'slotIds': Array<string>;
746
875
  /**
747
876
  *
748
- * @type {number}
877
+ * @type {boolean}
749
878
  * @memberof BookingSummary
750
879
  */
751
- 'totalAmount': number;
880
+ 'isPublic': boolean;
752
881
  /**
753
882
  *
754
883
  * @type {string}
755
884
  * @memberof BookingSummary
756
885
  */
757
- 'timeBeforeCancel'?: string | null;
886
+ 'creatorPaymentMethodId'?: string | null;
758
887
  /**
759
888
  *
760
- * @type {BookingSummaryClubAddress}
889
+ * @type {boolean}
761
890
  * @memberof BookingSummary
762
891
  */
763
- 'clubAddress'?: BookingSummaryClubAddress | null;
892
+ 'paymentMethodSetupCompleted': boolean;
764
893
  /**
765
894
  *
766
- * @type {BookingHistoryPopulated}
895
+ * @type {number}
767
896
  * @memberof BookingSummary
768
897
  */
769
- 'bookingHistory'?: BookingHistoryPopulated;
770
- }
771
- /**
772
- *
773
- * @export
774
- * @interface BookingSummaryClubAddress
775
- */
776
- export interface BookingSummaryClubAddress {
777
- }
778
- /**
779
- *
780
- * @export
781
- * @interface CancelBookingResponse
782
- */
783
- export interface CancelBookingResponse {
898
+ 'noShowChargeAmount'?: number | null;
784
899
  /**
785
- * Message de confirmation
786
- * @type {string}
787
- * @memberof CancelBookingResponse
900
+ *
901
+ * @type {boolean}
902
+ * @memberof BookingSummary
788
903
  */
789
- 'message': string;
904
+ 'noShowChargeApplied'?: boolean;
790
905
  /**
791
906
  *
792
- * @type {BookingInfo}
793
- * @memberof CancelBookingResponse
907
+ * @type {string}
908
+ * @memberof BookingSummary
794
909
  */
795
- 'booking': BookingInfo;
796
- }
797
- /**
798
- *
799
- * @export
800
- * @interface CaptureResult
801
- */
802
- export interface CaptureResult {
910
+ 'noShowChargeIntentId'?: string | null;
803
911
  /**
804
- * Type de paiement
912
+ *
805
913
  * @type {string}
806
- * @memberof CaptureResult
914
+ * @memberof BookingSummary
807
915
  */
808
- 'type': CaptureResultTypeEnum;
916
+ 'cancellationReason'?: string | null;
809
917
  /**
810
- * ID du joueur (optionnel)
918
+ *
811
919
  * @type {string}
812
- * @memberof CaptureResult
920
+ * @memberof BookingSummary
813
921
  */
814
- 'playerId'?: string;
922
+ 'cancelledBy'?: string | null;
815
923
  /**
816
- * ID du PaymentIntent Stripe
924
+ *
817
925
  * @type {string}
818
- * @memberof CaptureResult
926
+ * @memberof BookingSummary
819
927
  */
820
- 'paymentIntentId': string;
928
+ 'cancelledAt'?: string | null;
821
929
  /**
822
- * Montant capturé
823
- * @type {number}
824
- * @memberof CaptureResult
930
+ *
931
+ * @type {boolean}
932
+ * @memberof BookingSummary
825
933
  */
826
- 'amount'?: number;
934
+ 'cancelledByManager'?: boolean;
827
935
  /**
828
- * Statut de la capture
936
+ *
829
937
  * @type {string}
830
- * @memberof CaptureResult
938
+ * @memberof BookingSummary
831
939
  */
832
- 'status': CaptureResultStatusEnum;
940
+ 'createdAt': string | null;
833
941
  /**
834
- * Erreur (si échoué)
942
+ *
835
943
  * @type {string}
836
- * @memberof CaptureResult
944
+ * @memberof BookingSummary
837
945
  */
838
- 'error'?: string;
839
- }
840
-
841
- export const CaptureResultTypeEnum = {
842
- CreatorPayment: 'creator_payment',
843
- PlayerPayment: 'player_payment'
844
- } as const;
845
-
846
- export type CaptureResultTypeEnum = typeof CaptureResultTypeEnum[keyof typeof CaptureResultTypeEnum];
847
- export const CaptureResultStatusEnum = {
848
- Captured: 'captured',
849
- Failed: 'failed'
850
- } as const;
851
-
852
- export type CaptureResultStatusEnum = typeof CaptureResultStatusEnum[keyof typeof CaptureResultStatusEnum];
853
-
854
- /**
855
- *
856
- * @export
857
- * @interface ChangePasswordRequestBody
858
- */
859
- export interface ChangePasswordRequestBody {
946
+ 'updatedAt': string | null;
860
947
  /**
861
948
  *
862
- * @type {string}
863
- * @memberof ChangePasswordRequestBody
949
+ * @type {number}
950
+ * @memberof BookingSummary
864
951
  */
865
- 'currentPassword': string;
952
+ 'playersCount'?: number | null;
866
953
  /**
867
954
  *
868
955
  * @type {string}
869
- * @memberof ChangePasswordRequestBody
956
+ * @memberof BookingSummary
870
957
  */
871
- 'newPassword': string;
872
- }
873
- /**
874
- *
875
- * @export
876
- * @interface ChangePasswordResponse
877
- */
878
- export interface ChangePasswordResponse {
958
+ 'clubPicture'?: string;
879
959
  /**
880
960
  *
881
961
  * @type {string}
882
- * @memberof ChangePasswordResponse
962
+ * @memberof BookingSummary
883
963
  */
884
- 'message': string;
885
- }
886
- /**
887
- *
888
- * @export
889
- * @interface CheckInPlayersRequest
890
- */
891
- export interface CheckInPlayersRequest {
964
+ 'courtName'?: string;
892
965
  /**
893
- * Liste des IDs des joueurs qui ont payé/sont arrivés
894
- * @type {Array<string>}
895
- * @memberof CheckInPlayersRequest
966
+ *
967
+ * @type {string}
968
+ * @memberof BookingSummary
896
969
  */
897
- 'playerIds': Array<string>;
898
- }
899
- /**
900
- *
901
- * @export
902
- * @interface CheckInPlayersResponse
903
- */
904
- export interface CheckInPlayersResponse {
970
+ 'sportName'?: string;
905
971
  /**
906
- * Message de confirmation
972
+ *
907
973
  * @type {string}
908
- * @memberof CheckInPlayersResponse
974
+ * @memberof BookingSummary
909
975
  */
910
- 'message': string;
976
+ 'startDate'?: string;
911
977
  /**
912
- * Joueurs ayant effectué le check-in
913
- * @type {Array<CheckedInPlayer>}
914
- * @memberof CheckInPlayersResponse
978
+ *
979
+ * @type {InvoiceStatus}
980
+ * @memberof BookingSummary
915
981
  */
916
- 'invoices': Array<CheckedInPlayer>;
917
- }
918
- /**
919
- *
920
- * @export
921
- * @interface CheckedInPlayer
922
- */
923
- export interface CheckedInPlayer {
982
+ 'myPaymentStatus'?: InvoiceStatus | null;
924
983
  /**
925
- * ID du joueur
984
+ *
926
985
  * @type {string}
927
- * @memberof CheckedInPlayer
986
+ * @memberof BookingSummary
928
987
  */
929
- 'playerId': string;
988
+ 'bookingStatus'?: string;
930
989
  /**
931
- * ID de la facture
932
- * @type {string}
933
- * @memberof CheckedInPlayer
990
+ *
991
+ * @type {Array<string>}
992
+ * @memberof BookingSummary
934
993
  */
935
- 'invoiceId': string;
994
+ 'playersName': Array<string>;
936
995
  /**
937
- * Montant payé
996
+ *
938
997
  * @type {number}
939
- * @memberof CheckedInPlayer
940
- */
941
- 'amount': number;
942
- /**
943
- * Statut précédent (optionnel)
944
- * @type {string}
945
- * @memberof CheckedInPlayer
998
+ * @memberof BookingSummary
946
999
  */
947
- 'previousStatus'?: string;
1000
+ 'myAmountToPay': number;
948
1001
  /**
949
- * Nouveau statut (optionnel)
950
- * @type {string}
951
- * @memberof CheckedInPlayer
1002
+ *
1003
+ * @type {number}
1004
+ * @memberof BookingSummary
952
1005
  */
953
- 'newStatus'?: string;
1006
+ 'totalAmount': number;
954
1007
  /**
955
- * Statut actuel
1008
+ *
956
1009
  * @type {string}
957
- * @memberof CheckedInPlayer
1010
+ * @memberof BookingSummary
958
1011
  */
959
- 'status'?: string;
1012
+ 'timeBeforeCancel'?: string | null;
960
1013
  /**
961
1014
  *
962
- * @type {PaymentMethod}
963
- * @memberof CheckedInPlayer
964
- */
965
- 'paymentMethod'?: PaymentMethod;
966
- /**
967
- * Note additionnelle
968
- * @type {string}
969
- * @memberof CheckedInPlayer
1015
+ * @type {BookingSummaryClubAddress}
1016
+ * @memberof BookingSummary
970
1017
  */
971
- 'note'?: string;
972
- }
973
-
974
-
975
- /**
976
- *
977
- * @export
978
- * @interface ClubMemberResponse
979
- */
980
- export interface ClubMemberResponse {
1018
+ 'clubAddress'?: BookingSummaryClubAddress | null;
981
1019
  /**
982
1020
  *
983
- * @type {ClubMemberResponseUser}
984
- * @memberof ClubMemberResponse
1021
+ * @type {Array<BookingHistoryPopulated>}
1022
+ * @memberof BookingSummary
985
1023
  */
986
- 'user': ClubMemberResponseUser;
1024
+ 'bookingHistory'?: Array<BookingHistoryPopulated>;
987
1025
  /**
988
- * Rôle du membre dans le club
989
- * @type {string}
990
- * @memberof ClubMemberResponse
1026
+ *
1027
+ * @type {BookingClubInfo}
1028
+ * @memberof BookingSummary
991
1029
  */
992
- 'role': string;
993
- /**
994
- * Droits du membre dans le club
995
- * @type {Array<string>}
996
- * @memberof ClubMemberResponse
997
- */
998
- 'rights': Array<string>;
999
- }
1000
- /**
1001
- * Utilisateur (membre)
1002
- * @export
1003
- * @interface ClubMemberResponseUser
1004
- */
1005
- export interface ClubMemberResponseUser {
1030
+ 'club'?: BookingClubInfo | null;
1006
1031
  /**
1007
1032
  *
1008
- * @type {string}
1009
- * @memberof ClubMemberResponseUser
1033
+ * @type {Array<BookingSlotInfo>}
1034
+ * @memberof BookingSummary
1010
1035
  */
1011
- 'email': string;
1036
+ 'slots': Array<BookingSlotInfo>;
1012
1037
  /**
1013
1038
  *
1014
- * @type {string}
1015
- * @memberof ClubMemberResponseUser
1039
+ * @type {BookingCourtInfo}
1040
+ * @memberof BookingSummary
1016
1041
  */
1017
- 'lastName': string;
1042
+ 'court'?: BookingCourtInfo | null;
1018
1043
  /**
1019
1044
  *
1020
- * @type {string}
1021
- * @memberof ClubMemberResponseUser
1045
+ * @type {BookingSportInfo}
1046
+ * @memberof BookingSummary
1022
1047
  */
1023
- 'firstName': string;
1048
+ 'sport'?: BookingSportInfo | null;
1024
1049
  /**
1025
1050
  *
1026
- * @type {string}
1027
- * @memberof ClubMemberResponseUser
1051
+ * @type {Array<BookingPlayerPaymentSummary>}
1052
+ * @memberof BookingSummary
1028
1053
  */
1029
- 'id': string;
1054
+ 'players': Array<BookingPlayerPaymentSummary>;
1030
1055
  }
1056
+
1057
+
1031
1058
  /**
1032
1059
  *
1033
1060
  * @export
1034
- * @interface ClubPlayerBookingItem
1061
+ * @interface BookingSummaryClubAddress
1035
1062
  */
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;
1063
+ export interface BookingSummaryClubAddress {
1091
1064
  }
1092
1065
  /**
1093
1066
  *
1094
1067
  * @export
1095
- * @interface ClubPlayerBookingsResponse
1068
+ * @interface CancelBookingResponse
1096
1069
  */
1097
- export interface ClubPlayerBookingsResponse {
1070
+ export interface CancelBookingResponse {
1098
1071
  /**
1099
- * Réservations à venir
1100
- * @type {Array<ClubPlayerBookingItem>}
1101
- * @memberof ClubPlayerBookingsResponse
1072
+ * Message de confirmation
1073
+ * @type {string}
1074
+ * @memberof CancelBookingResponse
1102
1075
  */
1103
- 'upcomingBookings': Array<ClubPlayerBookingItem>;
1076
+ 'message': string;
1104
1077
  /**
1105
- * Réservations passées
1106
- * @type {Array<ClubPlayerBookingItem>}
1107
- * @memberof ClubPlayerBookingsResponse
1078
+ *
1079
+ * @type {BookingInfo}
1080
+ * @memberof CancelBookingResponse
1108
1081
  */
1109
- 'pastBookings': Array<ClubPlayerBookingItem>;
1082
+ 'booking': BookingInfo;
1110
1083
  }
1111
1084
  /**
1112
1085
  *
1113
1086
  * @export
1114
- * @interface ClubPlayerDetailResponse
1087
+ * @interface CaptureResult
1115
1088
  */
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;
1089
+ export interface CaptureResult {
1147
1090
  /**
1148
- * Numéro de téléphone
1091
+ * Type de paiement
1149
1092
  * @type {string}
1150
- * @memberof ClubPlayerDetailResponse
1093
+ * @memberof CaptureResult
1151
1094
  */
1152
- 'phoneNumber': string | null;
1095
+ 'type': CaptureResultTypeEnum;
1153
1096
  /**
1154
- * URL de la photo de profil
1097
+ * ID du joueur (optionnel)
1155
1098
  * @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
1099
+ * @memberof CaptureResult
1169
1100
  */
1170
- 'subscriptionsToMyClub': Array<ClubPlayerSubscriptionSummary>;
1101
+ 'playerId'?: string;
1171
1102
  /**
1172
- * Description du profil
1103
+ * ID du PaymentIntent Stripe
1173
1104
  * @type {string}
1174
- * @memberof ClubPlayerDetailResponse
1105
+ * @memberof CaptureResult
1175
1106
  */
1176
- 'profileDescription': string | null;
1107
+ 'paymentIntentId': string;
1177
1108
  /**
1178
- * Genre
1179
- * @type {string}
1180
- * @memberof ClubPlayerDetailResponse
1109
+ * Montant capturé
1110
+ * @type {number}
1111
+ * @memberof CaptureResult
1181
1112
  */
1182
- 'gender': string | null;
1113
+ 'amount'?: number;
1183
1114
  /**
1184
- * Ville
1115
+ * Statut de la capture
1185
1116
  * @type {string}
1186
- * @memberof ClubPlayerDetailResponse
1187
- */
1188
- 'city': string | null;
1189
- /**
1190
- * Niveaux par sport
1191
- * @type {Array<ClubPlayerDetailResponseSportsLevelsInner>}
1192
- * @memberof ClubPlayerDetailResponse
1117
+ * @memberof CaptureResult
1193
1118
  */
1194
- 'sportsLevels': Array<ClubPlayerDetailResponseSportsLevelsInner>;
1119
+ 'status': CaptureResultStatusEnum;
1195
1120
  /**
1196
- * Date de naissance
1121
+ * Erreur (si échoué)
1197
1122
  * @type {string}
1198
- * @memberof ClubPlayerDetailResponse
1123
+ * @memberof CaptureResult
1199
1124
  */
1200
- 'birthDate': string | null;
1125
+ 'error'?: string;
1201
1126
  }
1127
+
1128
+ export const CaptureResultTypeEnum = {
1129
+ CreatorPayment: 'creator_payment',
1130
+ PlayerPayment: 'player_payment'
1131
+ } as const;
1132
+
1133
+ export type CaptureResultTypeEnum = typeof CaptureResultTypeEnum[keyof typeof CaptureResultTypeEnum];
1134
+ export const CaptureResultStatusEnum = {
1135
+ Captured: 'captured',
1136
+ Failed: 'failed'
1137
+ } as const;
1138
+
1139
+ export type CaptureResultStatusEnum = typeof CaptureResultStatusEnum[keyof typeof CaptureResultStatusEnum];
1140
+
1202
1141
  /**
1203
1142
  *
1204
1143
  * @export
1205
- * @interface ClubPlayerDetailResponseSportsLevelsInner
1144
+ * @interface ChangePasswordRequestBody
1206
1145
  */
1207
- export interface ClubPlayerDetailResponseSportsLevelsInner {
1146
+ export interface ChangePasswordRequestBody {
1208
1147
  /**
1209
1148
  *
1210
1149
  * @type {string}
1211
- * @memberof ClubPlayerDetailResponseSportsLevelsInner
1150
+ * @memberof ChangePasswordRequestBody
1212
1151
  */
1213
- 'level': string | null;
1152
+ 'currentPassword': string;
1214
1153
  /**
1215
1154
  *
1216
1155
  * @type {string}
1217
- * @memberof ClubPlayerDetailResponseSportsLevelsInner
1156
+ * @memberof ChangePasswordRequestBody
1218
1157
  */
1219
- 'sport': string | null;
1158
+ 'newPassword': string;
1220
1159
  }
1221
1160
  /**
1222
1161
  *
1223
1162
  * @export
1224
- * @interface ClubPlayerResponse
1163
+ * @interface ChangePasswordResponse
1225
1164
  */
1226
- export interface ClubPlayerResponse {
1227
- /**
1228
- * ID de l\'utilisateur
1229
- * @type {string}
1230
- * @memberof ClubPlayerResponse
1231
- */
1232
- 'id': string;
1233
- /**
1234
- * Prénom
1235
- * @type {string}
1236
- * @memberof ClubPlayerResponse
1237
- */
1238
- 'firstName': string;
1239
- /**
1240
- * Nom
1241
- * @type {string}
1242
- * @memberof ClubPlayerResponse
1243
- */
1244
- 'lastName': string;
1245
- /**
1246
- * Genre
1247
- * @type {string}
1248
- * @memberof ClubPlayerResponse
1249
- */
1250
- 'gender'?: string;
1251
- /**
1252
- * Email
1253
- * @type {string}
1254
- * @memberof ClubPlayerResponse
1255
- */
1256
- 'email': string;
1257
- /**
1258
- * Photo de profil
1259
- * @type {string}
1260
- * @memberof ClubPlayerResponse
1261
- */
1262
- 'profilePicture'?: string;
1263
- /**
1264
- * Compte vérifié
1265
- * @type {boolean}
1266
- * @memberof ClubPlayerResponse
1267
- */
1268
- 'isAccountVerified': boolean;
1269
- /**
1270
- * Profil visible
1271
- * @type {boolean}
1272
- * @memberof ClubPlayerResponse
1273
- */
1274
- 'isProfileVisible': boolean;
1165
+ export interface ChangePasswordResponse {
1275
1166
  /**
1276
- * Abonné au club
1277
- * @type {boolean}
1278
- * @memberof ClubPlayerResponse
1167
+ *
1168
+ * @type {string}
1169
+ * @memberof ChangePasswordResponse
1279
1170
  */
1280
- 'isSubscribedToClub': boolean;
1171
+ 'message': string;
1281
1172
  }
1282
1173
  /**
1283
1174
  *
1284
1175
  * @export
1285
- * @interface ClubPlayerStatisticsResponse
1176
+ * @interface CheckInPlayersRequest
1286
1177
  */
1287
- export interface ClubPlayerStatisticsResponse {
1178
+ export interface CheckInPlayersRequest {
1288
1179
  /**
1289
- * Nombre total de réservations (tous clubs confondus)
1290
- * @type {number}
1291
- * @memberof ClubPlayerStatisticsResponse
1180
+ * Liste des IDs des joueurs qui ont payé/sont arrivés
1181
+ * @type {Array<string>}
1182
+ * @memberof CheckInPlayersRequest
1292
1183
  */
1293
- 'totalBookings': number;
1184
+ 'playerIds': Array<string>;
1185
+ }
1186
+ /**
1187
+ *
1188
+ * @export
1189
+ * @interface CheckInPlayersResponse
1190
+ */
1191
+ export interface CheckInPlayersResponse {
1294
1192
  /**
1295
- * Nombre total de réservations dans le club courant
1296
- * @type {number}
1297
- * @memberof ClubPlayerStatisticsResponse
1193
+ * Message de confirmation
1194
+ * @type {string}
1195
+ * @memberof CheckInPlayersResponse
1298
1196
  */
1299
- 'totalBookingsInMyClub': number;
1197
+ 'message': string;
1300
1198
  /**
1301
- * Somme totale dépensée dans le club courant (centimes)
1302
- * @type {number}
1303
- * @memberof ClubPlayerStatisticsResponse
1199
+ * Joueurs ayant effectué le check-in
1200
+ * @type {Array<CheckedInPlayer>}
1201
+ * @memberof CheckInPlayersResponse
1304
1202
  */
1305
- 'totalSpentAmount': number;
1203
+ 'invoices': Array<CheckedInPlayer>;
1204
+ }
1205
+ /**
1206
+ *
1207
+ * @export
1208
+ * @interface CheckedInPlayer
1209
+ */
1210
+ export interface CheckedInPlayer {
1306
1211
  /**
1307
- * Sport le plus pratiqué dans le club courant
1212
+ * ID du joueur
1308
1213
  * @type {string}
1309
- * @memberof ClubPlayerStatisticsResponse
1214
+ * @memberof CheckedInPlayer
1310
1215
  */
1311
- 'favoriteSport': string | null;
1216
+ 'playerId': string;
1312
1217
  /**
1313
- * Temps moyen entre la réservation et le début du créneau (heures)
1314
- * @type {number}
1315
- * @memberof ClubPlayerStatisticsResponse
1218
+ * ID de la facture
1219
+ * @type {string}
1220
+ * @memberof CheckedInPlayer
1316
1221
  */
1317
- 'averageBookingLeadTimeHours': number | null;
1222
+ 'invoiceId': string;
1318
1223
  /**
1319
- * Taux d\'annulation dans le club courant (0-1)
1224
+ * Montant payé
1320
1225
  * @type {number}
1321
- * @memberof ClubPlayerStatisticsResponse
1226
+ * @memberof CheckedInPlayer
1322
1227
  */
1323
- 'bookingCancellationRate': number;
1228
+ 'amount': number;
1324
1229
  /**
1325
- * Nombre d\'abonnements actifs au club courant
1326
- * @type {number}
1327
- * @memberof ClubPlayerStatisticsResponse
1230
+ * Statut précédent (optionnel)
1231
+ * @type {string}
1232
+ * @memberof CheckedInPlayer
1328
1233
  */
1329
- 'activeSubscriptionsToMyClub': number;
1234
+ 'previousStatus'?: string;
1330
1235
  /**
1331
- * Heure de créneau favorite dans le club courant (format HH:00)
1236
+ * Nouveau statut (optionnel)
1332
1237
  * @type {string}
1333
- * @memberof ClubPlayerStatisticsResponse
1238
+ * @memberof CheckedInPlayer
1334
1239
  */
1335
- 'favoriteTimeSlot': string | null;
1240
+ 'newStatus'?: string;
1336
1241
  /**
1337
- *
1338
- * @type {ClubPlayerStatisticsResponseFavoriteClub}
1339
- * @memberof ClubPlayerStatisticsResponse
1242
+ * Statut actuel
1243
+ * @type {string}
1244
+ * @memberof CheckedInPlayer
1340
1245
  */
1341
- 'favoriteClub': ClubPlayerStatisticsResponseFavoriteClub | null;
1246
+ 'status'?: string;
1342
1247
  /**
1343
1248
  *
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
1249
+ * @type {PaymentMethod}
1250
+ * @memberof CheckedInPlayer
1352
1251
  */
1353
- 'bookingAmountEvolutionThisMonth': Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>;
1252
+ 'paymentMethod'?: PaymentMethod;
1354
1253
  /**
1355
- * Joueurs les plus joués dans le club courant
1356
- * @type {Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>}
1357
- * @memberof ClubPlayerStatisticsResponse
1254
+ * Note additionnelle
1255
+ * @type {string}
1256
+ * @memberof CheckedInPlayer
1358
1257
  */
1359
- 'mostPlayedPartners': Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>;
1258
+ 'note'?: string;
1360
1259
  }
1260
+
1261
+
1361
1262
  /**
1362
1263
  *
1363
1264
  * @export
1364
- * @interface ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1265
+ * @interface ClubMemberResponse
1365
1266
  */
1366
- export interface ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner {
1267
+ export interface ClubMemberResponse {
1367
1268
  /**
1368
1269
  *
1369
- * @type {number}
1370
- * @memberof ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1270
+ * @type {ClubMemberResponseUser}
1271
+ * @memberof ClubMemberResponse
1371
1272
  */
1372
- 'amount': number;
1273
+ 'user': ClubMemberResponseUser;
1373
1274
  /**
1374
- *
1375
- * @type {number}
1376
- * @memberof ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1275
+ * Rôle du membre dans le club
1276
+ * @type {string}
1277
+ * @memberof ClubMemberResponse
1278
+ */
1279
+ 'role': string;
1280
+ /**
1281
+ * Droits du membre dans le club
1282
+ * @type {Array<string>}
1283
+ * @memberof ClubMemberResponse
1377
1284
  */
1378
- 'day': number;
1285
+ 'rights': Array<string>;
1379
1286
  }
1380
1287
  /**
1381
- * Club favori selon le profil utilisateur
1288
+ * Utilisateur (membre)
1382
1289
  * @export
1383
- * @interface ClubPlayerStatisticsResponseFavoriteClub
1290
+ * @interface ClubMemberResponseUser
1384
1291
  */
1385
- export interface ClubPlayerStatisticsResponseFavoriteClub {
1292
+ export interface ClubMemberResponseUser {
1386
1293
  /**
1387
1294
  *
1388
1295
  * @type {string}
1389
- * @memberof ClubPlayerStatisticsResponseFavoriteClub
1296
+ * @memberof ClubMemberResponseUser
1390
1297
  */
1391
- 'name': string | null;
1298
+ 'email': string;
1392
1299
  /**
1393
1300
  *
1394
1301
  * @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
1302
+ * @memberof ClubMemberResponseUser
1409
1303
  */
1410
- 'bookingsCount': number;
1304
+ 'lastName': string;
1411
1305
  /**
1412
1306
  *
1413
1307
  * @type {string}
1414
- * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1308
+ * @memberof ClubMemberResponseUser
1415
1309
  */
1416
- 'name': string | null;
1310
+ 'firstName': string;
1417
1311
  /**
1418
1312
  *
1419
1313
  * @type {string}
1420
- * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1314
+ * @memberof ClubMemberResponseUser
1421
1315
  */
1422
- 'clubId': string;
1316
+ 'id': string;
1423
1317
  }
1424
1318
  /**
1425
1319
  *
1426
1320
  * @export
1427
- * @interface ClubPlayerStatisticsResponseMostPlayedPartnersInner
1321
+ * @interface ClubPlayerResponse
1428
1322
  */
1429
- export interface ClubPlayerStatisticsResponseMostPlayedPartnersInner {
1323
+ export interface ClubPlayerResponse {
1430
1324
  /**
1431
- *
1432
- * @type {number}
1433
- * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1325
+ * ID de l\'utilisateur
1326
+ * @type {string}
1327
+ * @memberof ClubPlayerResponse
1434
1328
  */
1435
- 'bookingsTogether': number;
1329
+ 'id': string;
1436
1330
  /**
1437
- *
1331
+ * Prénom
1438
1332
  * @type {string}
1439
- * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1333
+ * @memberof ClubPlayerResponse
1440
1334
  */
1441
- 'lastName': string | null;
1335
+ 'firstName': string;
1442
1336
  /**
1443
- *
1337
+ * Nom
1444
1338
  * @type {string}
1445
- * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1339
+ * @memberof ClubPlayerResponse
1446
1340
  */
1447
- 'firstName': string | null;
1341
+ 'lastName': string;
1448
1342
  /**
1449
- *
1343
+ * Genre
1450
1344
  * @type {string}
1451
- * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1345
+ * @memberof ClubPlayerResponse
1452
1346
  */
1453
- 'userId': string;
1454
- }
1455
- /**
1456
- *
1457
- * @export
1458
- * @interface ClubPlayerSubscriptionSummary
1459
- */
1460
- export interface ClubPlayerSubscriptionSummary {
1347
+ 'gender'?: string;
1461
1348
  /**
1462
- * ID du plan d\'abonnement
1349
+ * Email
1463
1350
  * @type {string}
1464
- * @memberof ClubPlayerSubscriptionSummary
1351
+ * @memberof ClubPlayerResponse
1465
1352
  */
1466
- 'id': string;
1353
+ 'email': string;
1467
1354
  /**
1468
- * Nom du plan
1355
+ * Photo de profil
1469
1356
  * @type {string}
1470
- * @memberof ClubPlayerSubscriptionSummary
1357
+ * @memberof ClubPlayerResponse
1471
1358
  */
1472
- 'name': string | null;
1359
+ 'profilePicture'?: string;
1473
1360
  /**
1474
- * Montant en centimes
1475
- * @type {number}
1476
- * @memberof ClubPlayerSubscriptionSummary
1361
+ * Compte vérifié
1362
+ * @type {boolean}
1363
+ * @memberof ClubPlayerResponse
1477
1364
  */
1478
- 'amountInCents': number | null;
1365
+ 'isAccountVerified': boolean;
1479
1366
  /**
1480
- * Devise
1481
- * @type {string}
1482
- * @memberof ClubPlayerSubscriptionSummary
1367
+ * Profil visible
1368
+ * @type {boolean}
1369
+ * @memberof ClubPlayerResponse
1483
1370
  */
1484
- 'currency': string | null;
1371
+ 'isProfileVisible': boolean;
1485
1372
  /**
1486
- * Intervalle de facturation
1487
- * @type {string}
1488
- * @memberof ClubPlayerSubscriptionSummary
1373
+ * Abonné au club
1374
+ * @type {boolean}
1375
+ * @memberof ClubPlayerResponse
1489
1376
  */
1490
- 'interval': string | null;
1377
+ 'isSubscribedToClub': boolean;
1491
1378
  }
1492
1379
  /**
1493
1380
  *
@@ -1579,6 +1466,30 @@ export interface ClubResponse {
1579
1466
  * @memberof ClubResponse
1580
1467
  */
1581
1468
  'sports'?: Array<string>;
1469
+ /**
1470
+ * Autoriser plusieurs réservations en même temps
1471
+ * @type {boolean}
1472
+ * @memberof ClubResponse
1473
+ */
1474
+ 'allowMultipleBookingsAtTheSameTime'?: boolean | null;
1475
+ /**
1476
+ * Limite de réservations simultanées (même créneau)
1477
+ * @type {number}
1478
+ * @memberof ClubResponse
1479
+ */
1480
+ 'sameTimeBookingsLimit'?: number | null;
1481
+ /**
1482
+ * Limite d\'annulation en heures
1483
+ * @type {number}
1484
+ * @memberof ClubResponse
1485
+ */
1486
+ 'cancellationLimitHours'?: number | null;
1487
+ /**
1488
+ * Nombre maximum de réservations par semaine
1489
+ * @type {number}
1490
+ * @memberof ClubResponse
1491
+ */
1492
+ 'maxWeeklyBookings'?: number | null;
1582
1493
  /**
1583
1494
  *
1584
1495
  * @type {ClubResponseCreatedAt}
@@ -1744,12 +1655,6 @@ export interface ClubSettingsResponse {
1744
1655
  * @memberof ClubSettingsResponse
1745
1656
  */
1746
1657
  'maxWeeklyBookings': number;
1747
- /**
1748
- * Autoriser plusieurs réservations en même temps
1749
- * @type {boolean}
1750
- * @memberof ClubSettingsResponse
1751
- */
1752
- 'allowMultipleBookingsAtTheSameTime': boolean;
1753
1658
  /**
1754
1659
  * Limite de réservations simultanées
1755
1660
  * @type {number}
@@ -1874,38 +1779,6 @@ export interface ClubUserCountResponse {
1874
1779
  */
1875
1780
  'count': number;
1876
1781
  }
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
- }
1909
1782
  /**
1910
1783
  *
1911
1784
  * @export
@@ -2068,10 +1941,10 @@ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
2068
1941
  export interface CreateBookingRequest {
2069
1942
  /**
2070
1943
  * ID du créneau à réserver
2071
- * @type {string}
1944
+ * @type {Array<string>}
2072
1945
  * @memberof CreateBookingRequest
2073
1946
  */
2074
- 'slotId': string;
1947
+ 'slotIds': Array<string>;
2075
1948
  /**
2076
1949
  * Liste des joueurs avec leurs méthodes de paiement
2077
1950
  * @type {Array<PlayerWithPaymentMethod>}
@@ -2383,12 +2256,6 @@ export interface CreateEventRequest {
2383
2256
  * @memberof CreateEventRequest
2384
2257
  */
2385
2258
  'subscriberPrices'?: Array<SubscriberPrice>;
2386
- /**
2387
- *
2388
- * @type {Array<number>}
2389
- * @memberof CreateEventRequest
2390
- */
2391
- 'levels'?: Array<number>;
2392
2259
  /**
2393
2260
  *
2394
2261
  * @type {string}
@@ -3531,24 +3398,12 @@ export interface IUserAttributes {
3531
3398
  * @memberof IUserAttributes
3532
3399
  */
3533
3400
  'isAccountVerified': boolean;
3534
- /**
3535
- *
3536
- * @type {boolean}
3537
- * @memberof IUserAttributes
3538
- */
3539
- 'isCreditCardRegistered'?: boolean;
3540
3401
  /**
3541
3402
  *
3542
3403
  * @type {Array<ILevelBySports>}
3543
3404
  * @memberof IUserAttributes
3544
3405
  */
3545
3406
  'levelBySports'?: Array<ILevelBySports>;
3546
- /**
3547
- *
3548
- * @type {string}
3549
- * @memberof IUserAttributes
3550
- */
3551
- 'stripeCustomerId'?: string;
3552
3407
  /**
3553
3408
  *
3554
3409
  * @type {string}
@@ -3593,58 +3448,34 @@ export interface IUserAttributes {
3593
3448
  'emailVerificationExpires'?: string;
3594
3449
  /**
3595
3450
  *
3596
- * @type {Array<IUserAttributesOrganizationsInner>}
3597
- * @memberof IUserAttributes
3598
- */
3599
- 'organizations'?: Array<IUserAttributesOrganizationsInner>;
3600
- /**
3601
- *
3602
- * @type {boolean}
3603
- * @memberof IUserAttributes
3604
- */
3605
- 'isAdmin': boolean;
3606
- /**
3607
- *
3608
- * @type {string}
3609
- * @memberof IUserAttributes
3610
- */
3611
- 'createdAt': string;
3612
- /**
3613
- *
3614
- * @type {string}
3615
- * @memberof IUserAttributes
3616
- */
3617
- 'updatedAt': string;
3618
- /**
3619
- *
3620
- * @type {boolean}
3451
+ * @type {Array<IUserAttributesOrganizationsInner>}
3621
3452
  * @memberof IUserAttributes
3622
3453
  */
3623
- 'isLevelCertified'?: boolean;
3454
+ 'organizations'?: Array<IUserAttributesOrganizationsInner>;
3624
3455
  /**
3625
3456
  *
3626
- * @type {Array<string>}
3457
+ * @type {boolean}
3627
3458
  * @memberof IUserAttributes
3628
3459
  */
3629
- 'paymentMethods'?: Array<string>;
3460
+ 'isAdmin': boolean;
3630
3461
  /**
3631
3462
  *
3632
3463
  * @type {string}
3633
3464
  * @memberof IUserAttributes
3634
3465
  */
3635
- 'defaultPaymentMethodId'?: string;
3466
+ 'createdAt': string;
3636
3467
  /**
3637
3468
  *
3638
- * @type {boolean}
3469
+ * @type {string}
3639
3470
  * @memberof IUserAttributes
3640
3471
  */
3641
- 'paymentMethodSetupCompleted': boolean;
3472
+ 'updatedAt': string;
3642
3473
  /**
3643
3474
  *
3644
- * @type {string}
3475
+ * @type {boolean}
3645
3476
  * @memberof IUserAttributes
3646
3477
  */
3647
- 'setupIntentId'?: string;
3478
+ 'isLevelCertified'?: boolean;
3648
3479
  /**
3649
3480
  *
3650
3481
  * @type {Array<string>}
@@ -3675,6 +3506,12 @@ export interface IUserAttributes {
3675
3506
  * @memberof IUserAttributes
3676
3507
  */
3677
3508
  'sports'?: { [key: string]: any; };
3509
+ /**
3510
+ *
3511
+ * @type {string}
3512
+ * @memberof IUserAttributes
3513
+ */
3514
+ 'stripeCustomerId'?: string;
3678
3515
  }
3679
3516
 
3680
3517
 
@@ -3832,6 +3669,26 @@ export interface InvoiceInfo {
3832
3669
  */
3833
3670
  'status': string;
3834
3671
  }
3672
+ /**
3673
+ *
3674
+ * @export
3675
+ * @enum {string}
3676
+ */
3677
+
3678
+ export const InvoiceStatus = {
3679
+ SetupPending: 'setup_pending',
3680
+ SetupSuccess: 'setup_success',
3681
+ Pending: 'pending',
3682
+ Paid: 'paid',
3683
+ Failed: 'failed',
3684
+ Authorized: 'authorized',
3685
+ Canceled: 'canceled',
3686
+ Expired: 'expired'
3687
+ } as const;
3688
+
3689
+ export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
3690
+
3691
+
3835
3692
  /**
3836
3693
  *
3837
3694
  * @export
@@ -4222,6 +4079,30 @@ export interface PartialClubResponse {
4222
4079
  * @memberof PartialClubResponse
4223
4080
  */
4224
4081
  'sports'?: Array<string>;
4082
+ /**
4083
+ * Autoriser plusieurs réservations en même temps
4084
+ * @type {boolean}
4085
+ * @memberof PartialClubResponse
4086
+ */
4087
+ 'allowMultipleBookingsAtTheSameTime'?: boolean;
4088
+ /**
4089
+ * Limite de réservations simultanées (même créneau)
4090
+ * @type {number}
4091
+ * @memberof PartialClubResponse
4092
+ */
4093
+ 'sameTimeBookingsLimit'?: number;
4094
+ /**
4095
+ * Limite d\'annulation en heures
4096
+ * @type {number}
4097
+ * @memberof PartialClubResponse
4098
+ */
4099
+ 'cancellationLimitHours'?: number;
4100
+ /**
4101
+ * Nombre maximum de réservations par semaine
4102
+ * @type {number}
4103
+ * @memberof PartialClubResponse
4104
+ */
4105
+ 'maxWeeklyBookings'?: number;
4225
4106
  /**
4226
4107
  *
4227
4108
  * @type {ClubResponseCreatedAt}
@@ -4282,31 +4163,6 @@ export const PaymentMethod = {
4282
4163
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
4283
4164
 
4284
4165
 
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
- }
4310
4166
  /**
4311
4167
  * From T, pick a set of properties whose keys are in the union K
4312
4168
  * @export
@@ -4559,6 +4415,49 @@ export interface PlayerPaymentInfo {
4559
4415
  }
4560
4416
 
4561
4417
 
4418
+ /**
4419
+ *
4420
+ * @export
4421
+ * @interface PlayerPrice
4422
+ */
4423
+ export interface PlayerPrice {
4424
+ /**
4425
+ *
4426
+ * @type {string}
4427
+ * @memberof PlayerPrice
4428
+ */
4429
+ 'playerId': string;
4430
+ /**
4431
+ *
4432
+ * @type {string}
4433
+ * @memberof PlayerPrice
4434
+ */
4435
+ 'firstName'?: string;
4436
+ /**
4437
+ *
4438
+ * @type {string}
4439
+ * @memberof PlayerPrice
4440
+ */
4441
+ 'lastName'?: string;
4442
+ /**
4443
+ *
4444
+ * @type {Array<SubscriptionInfo>}
4445
+ * @memberof PlayerPrice
4446
+ */
4447
+ 'subscriptions': Array<SubscriptionInfo>;
4448
+ /**
4449
+ *
4450
+ * @type {number}
4451
+ * @memberof PlayerPrice
4452
+ */
4453
+ 'creditAvailablesInCents'?: number;
4454
+ /**
4455
+ *
4456
+ * @type {number}
4457
+ * @memberof PlayerPrice
4458
+ */
4459
+ 'price': number;
4460
+ }
4562
4461
  /**
4563
4462
  *
4564
4463
  * @export
@@ -4830,6 +4729,25 @@ export interface PublishEventResponse {
4830
4729
  */
4831
4730
  'event': EventResponse;
4832
4731
  }
4732
+ /**
4733
+ *
4734
+ * @export
4735
+ * @interface QuickReservationClubSport
4736
+ */
4737
+ export interface QuickReservationClubSport {
4738
+ /**
4739
+ * ID du sport
4740
+ * @type {string}
4741
+ * @memberof QuickReservationClubSport
4742
+ */
4743
+ 'id': string;
4744
+ /**
4745
+ * Clé du sport
4746
+ * @type {string}
4747
+ * @memberof QuickReservationClubSport
4748
+ */
4749
+ 'key'?: string;
4750
+ }
4833
4751
  /**
4834
4752
  *
4835
4753
  * @export
@@ -4848,6 +4766,12 @@ export interface QuickReservationClubSummary {
4848
4766
  * @memberof QuickReservationClubSummary
4849
4767
  */
4850
4768
  'clubName': string;
4769
+ /**
4770
+ * Description du club
4771
+ * @type {string}
4772
+ * @memberof QuickReservationClubSummary
4773
+ */
4774
+ 'description'?: string;
4851
4775
  /**
4852
4776
  * Distance par rapport à la recherche, en mètres
4853
4777
  * @type {number}
@@ -4866,6 +4790,12 @@ export interface QuickReservationClubSummary {
4866
4790
  * @memberof QuickReservationClubSummary
4867
4791
  */
4868
4792
  'slots': Array<QuickReservationSlotSummary>;
4793
+ /**
4794
+ * Sports disponibles dans le club
4795
+ * @type {Array<QuickReservationClubSport>}
4796
+ * @memberof QuickReservationClubSummary
4797
+ */
4798
+ 'sports'?: Array<QuickReservationClubSport>;
4869
4799
  }
4870
4800
  /**
4871
4801
  * Localisation du club
@@ -5255,44 +5185,6 @@ export interface ResetPasswordRequest {
5255
5185
  */
5256
5186
  'token'?: string;
5257
5187
  }
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
- }
5296
5188
  /**
5297
5189
  *
5298
5190
  * @export
@@ -5322,7 +5214,7 @@ export interface SlotInfo {
5322
5214
  * @type {CourtInfo}
5323
5215
  * @memberof SlotInfo
5324
5216
  */
5325
- 'court': CourtInfo;
5217
+ 'courtId': CourtInfo;
5326
5218
  }
5327
5219
  /**
5328
5220
  *
@@ -5569,24 +5461,12 @@ export interface StaffUserProfileResponse {
5569
5461
  * @memberof StaffUserProfileResponse
5570
5462
  */
5571
5463
  'isAccountVerified': boolean;
5572
- /**
5573
- *
5574
- * @type {boolean}
5575
- * @memberof StaffUserProfileResponse
5576
- */
5577
- 'isCreditCardRegistered'?: boolean;
5578
5464
  /**
5579
5465
  *
5580
5466
  * @type {Array<ILevelBySports>}
5581
5467
  * @memberof StaffUserProfileResponse
5582
5468
  */
5583
5469
  'levelBySports'?: Array<ILevelBySports>;
5584
- /**
5585
- *
5586
- * @type {string}
5587
- * @memberof StaffUserProfileResponse
5588
- */
5589
- 'stripeCustomerId'?: string;
5590
5470
  /**
5591
5471
  *
5592
5472
  * @type {string}
@@ -5659,30 +5539,6 @@ export interface StaffUserProfileResponse {
5659
5539
  * @memberof StaffUserProfileResponse
5660
5540
  */
5661
5541
  'isLevelCertified'?: boolean;
5662
- /**
5663
- *
5664
- * @type {Array<string>}
5665
- * @memberof StaffUserProfileResponse
5666
- */
5667
- 'paymentMethods'?: Array<string>;
5668
- /**
5669
- *
5670
- * @type {string}
5671
- * @memberof StaffUserProfileResponse
5672
- */
5673
- 'defaultPaymentMethodId'?: string;
5674
- /**
5675
- *
5676
- * @type {boolean}
5677
- * @memberof StaffUserProfileResponse
5678
- */
5679
- 'paymentMethodSetupCompleted': boolean;
5680
- /**
5681
- *
5682
- * @type {string}
5683
- * @memberof StaffUserProfileResponse
5684
- */
5685
- 'setupIntentId'?: string;
5686
5542
  /**
5687
5543
  *
5688
5544
  * @type {Array<string>}
@@ -5713,6 +5569,12 @@ export interface StaffUserProfileResponse {
5713
5569
  * @memberof StaffUserProfileResponse
5714
5570
  */
5715
5571
  'sports'?: { [key: string]: any; };
5572
+ /**
5573
+ *
5574
+ * @type {string}
5575
+ * @memberof StaffUserProfileResponse
5576
+ */
5577
+ 'stripeCustomerId'?: string;
5716
5578
  /**
5717
5579
  *
5718
5580
  * @type {boolean}
@@ -7006,6 +6868,12 @@ export interface SubscribeRequestBody {
7006
6868
  * @memberof SubscribeRequestBody
7007
6869
  */
7008
6870
  'priceId': string;
6871
+ /**
6872
+ *
6873
+ * @type {boolean}
6874
+ * @memberof SubscribeRequestBody
6875
+ */
6876
+ 'useDefaultPaymentMethod'?: boolean;
7009
6877
  }
7010
6878
  /**
7011
6879
  *
@@ -7026,6 +6894,31 @@ export interface SubscriberPrice {
7026
6894
  */
7027
6895
  'amount': number;
7028
6896
  }
6897
+ /**
6898
+ *
6899
+ * @export
6900
+ * @interface SubscriptionInfo
6901
+ */
6902
+ export interface SubscriptionInfo {
6903
+ /**
6904
+ *
6905
+ * @type {string}
6906
+ * @memberof SubscriptionInfo
6907
+ */
6908
+ 'subscriptionPlanName'?: string;
6909
+ /**
6910
+ *
6911
+ * @type {string}
6912
+ * @memberof SubscriptionInfo
6913
+ */
6914
+ 'subscriptionDescription'?: string;
6915
+ /**
6916
+ *
6917
+ * @type {number}
6918
+ * @memberof SubscriptionInfo
6919
+ */
6920
+ 'reducedAmountInCents'?: number;
6921
+ }
7029
6922
  /**
7030
6923
  *
7031
6924
  * @export
@@ -7650,32 +7543,69 @@ export interface UpdateUserRequestBody {
7650
7543
  * @type {string}
7651
7544
  * @memberof UpdateUserRequestBody
7652
7545
  */
7653
- 'description'?: string;
7546
+ 'description'?: string;
7547
+ /**
7548
+ *
7549
+ * @type {RegisterRequestBodyLocation}
7550
+ * @memberof UpdateUserRequestBody
7551
+ */
7552
+ 'location'?: RegisterRequestBodyLocation;
7553
+ }
7554
+ /**
7555
+ *
7556
+ * @export
7557
+ * @interface UpdateUserRequestBodyLevelBySportsInner
7558
+ */
7559
+ export interface UpdateUserRequestBodyLevelBySportsInner {
7560
+ /**
7561
+ *
7562
+ * @type {string}
7563
+ * @memberof UpdateUserRequestBodyLevelBySportsInner
7564
+ */
7565
+ 'level': string;
7566
+ /**
7567
+ *
7568
+ * @type {string}
7569
+ * @memberof UpdateUserRequestBodyLevelBySportsInner
7570
+ */
7571
+ 'sport': string;
7572
+ }
7573
+ /**
7574
+ *
7575
+ * @export
7576
+ * @interface UserBookingsResponse
7577
+ */
7578
+ export interface UserBookingsResponse {
7579
+ /**
7580
+ *
7581
+ * @type {number}
7582
+ * @memberof UserBookingsResponse
7583
+ */
7584
+ 'total': number;
7585
+ /**
7586
+ *
7587
+ * @type {number}
7588
+ * @memberof UserBookingsResponse
7589
+ */
7590
+ 'limit': number;
7654
7591
  /**
7655
7592
  *
7656
- * @type {RegisterRequestBodyLocation}
7657
- * @memberof UpdateUserRequestBody
7593
+ * @type {number}
7594
+ * @memberof UserBookingsResponse
7658
7595
  */
7659
- 'location'?: RegisterRequestBodyLocation;
7660
- }
7661
- /**
7662
- *
7663
- * @export
7664
- * @interface UpdateUserRequestBodyLevelBySportsInner
7665
- */
7666
- export interface UpdateUserRequestBodyLevelBySportsInner {
7596
+ 'skip': number;
7667
7597
  /**
7668
7598
  *
7669
- * @type {string}
7670
- * @memberof UpdateUserRequestBodyLevelBySportsInner
7599
+ * @type {boolean}
7600
+ * @memberof UserBookingsResponse
7671
7601
  */
7672
- 'level': string;
7602
+ 'hasMore': boolean;
7673
7603
  /**
7674
7604
  *
7675
- * @type {string}
7676
- * @memberof UpdateUserRequestBodyLevelBySportsInner
7605
+ * @type {Array<BookingSummary>}
7606
+ * @memberof UserBookingsResponse
7677
7607
  */
7678
- 'sport': string;
7608
+ 'bookings': Array<BookingSummary>;
7679
7609
  }
7680
7610
  /**
7681
7611
  *
@@ -7941,24 +7871,12 @@ export interface UserProfileResponse {
7941
7871
  * @memberof UserProfileResponse
7942
7872
  */
7943
7873
  'isAccountVerified': boolean;
7944
- /**
7945
- *
7946
- * @type {boolean}
7947
- * @memberof UserProfileResponse
7948
- */
7949
- 'isCreditCardRegistered'?: boolean;
7950
7874
  /**
7951
7875
  *
7952
7876
  * @type {Array<ILevelBySports>}
7953
7877
  * @memberof UserProfileResponse
7954
7878
  */
7955
7879
  'levelBySports'?: Array<ILevelBySports>;
7956
- /**
7957
- *
7958
- * @type {string}
7959
- * @memberof UserProfileResponse
7960
- */
7961
- 'stripeCustomerId'?: string;
7962
7880
  /**
7963
7881
  *
7964
7882
  * @type {string}
@@ -8031,30 +7949,6 @@ export interface UserProfileResponse {
8031
7949
  * @memberof UserProfileResponse
8032
7950
  */
8033
7951
  '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;
8058
7952
  /**
8059
7953
  *
8060
7954
  * @type {Array<string>}
@@ -8085,6 +7979,12 @@ export interface UserProfileResponse {
8085
7979
  * @memberof UserProfileResponse
8086
7980
  */
8087
7981
  'sports'?: { [key: string]: any; };
7982
+ /**
7983
+ *
7984
+ * @type {string}
7985
+ * @memberof UserProfileResponse
7986
+ */
7987
+ 'stripeCustomerId'?: string;
8088
7988
  /**
8089
7989
  *
8090
7990
  * @type {number}
@@ -8121,6 +8021,12 @@ export interface UserProfileResponse {
8121
8021
  * @memberof UserProfileResponse
8122
8022
  */
8123
8023
  'stripeLinks'?: { [key: string]: any; };
8024
+ /**
8025
+ *
8026
+ * @type {Array<SportResponse>}
8027
+ * @memberof UserProfileResponse
8028
+ */
8029
+ 'verifiedSports'?: Array<SportResponse>;
8124
8030
  }
8125
8031
 
8126
8032
 
@@ -8238,6 +8144,45 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8238
8144
  options: localVarRequestOptions,
8239
8145
  };
8240
8146
  },
8147
+ /**
8148
+ *
8149
+ * @param {BookingPriceBody} bookingPriceBody
8150
+ * @param {*} [options] Override http request option.
8151
+ * @throws {RequiredError}
8152
+ */
8153
+ getBookingPrice: async (bookingPriceBody: BookingPriceBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8154
+ // verify required parameter 'bookingPriceBody' is not null or undefined
8155
+ assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody)
8156
+ const localVarPath = `/api/bookings/booking-price`;
8157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8159
+ let baseOptions;
8160
+ if (configuration) {
8161
+ baseOptions = configuration.baseOptions;
8162
+ }
8163
+
8164
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8165
+ const localVarHeaderParameter = {} as any;
8166
+ const localVarQueryParameter = {} as any;
8167
+
8168
+ // authentication bearerAuth required
8169
+ // http bearer authentication required
8170
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
8171
+
8172
+
8173
+
8174
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8175
+
8176
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8177
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8178
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8179
+ localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration)
8180
+
8181
+ return {
8182
+ url: toPathString(localVarUrlObj),
8183
+ options: localVarRequestOptions,
8184
+ };
8185
+ },
8241
8186
  /**
8242
8187
  * Recherche des créneaux disponibles pour une réservation rapide
8243
8188
  * @param {number} [latitude]
@@ -8248,12 +8193,13 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8248
8193
  * @param {string} [startTime]
8249
8194
  * @param {number} [priceMax]
8250
8195
  * @param {string} [courtTypes]
8196
+ * @param {string} [surfaceTypes]
8251
8197
  * @param {number} [limitPerClub]
8252
8198
  * @param {number} [maxClubs]
8253
8199
  * @param {*} [options] Override http request option.
8254
8200
  * @throws {RequiredError}
8255
8201
  */
8256
- 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> => {
8202
+ 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> => {
8257
8203
  const localVarPath = `/api/bookings/quick-reservations`;
8258
8204
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8259
8205
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8298,8 +8244,12 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8298
8244
  localVarQueryParameter['courtTypes'] = courtTypes;
8299
8245
  }
8300
8246
 
8247
+ if (surfaceTypes !== undefined) {
8248
+ localVarQueryParameter['surfaceTypes'] = surfaceTypes;
8249
+ }
8250
+
8301
8251
  if (limitPerClub !== undefined) {
8302
- localVarQueryParameter['limitPerClub'] = limitPerClub;
8252
+ localVarQueryParameter['_limitPerClub'] = limitPerClub;
8303
8253
  }
8304
8254
 
8305
8255
  if (maxClubs !== undefined) {
@@ -8339,6 +8289,18 @@ export const BookingsApiFp = function(configuration?: Configuration) {
8339
8289
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
8340
8290
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8341
8291
  },
8292
+ /**
8293
+ *
8294
+ * @param {BookingPriceBody} bookingPriceBody
8295
+ * @param {*} [options] Override http request option.
8296
+ * @throws {RequiredError}
8297
+ */
8298
+ async getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<PlayerPrice>>> {
8299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
8300
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8301
+ const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
8302
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8303
+ },
8342
8304
  /**
8343
8305
  * Recherche des créneaux disponibles pour une réservation rapide
8344
8306
  * @param {number} [latitude]
@@ -8349,13 +8311,14 @@ export const BookingsApiFp = function(configuration?: Configuration) {
8349
8311
  * @param {string} [startTime]
8350
8312
  * @param {number} [priceMax]
8351
8313
  * @param {string} [courtTypes]
8314
+ * @param {string} [surfaceTypes]
8352
8315
  * @param {number} [limitPerClub]
8353
8316
  * @param {number} [maxClubs]
8354
8317
  * @param {*} [options] Override http request option.
8355
8318
  * @throws {RequiredError}
8356
8319
  */
8357
- 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>> {
8358
- const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
8320
+ 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>> {
8321
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
8359
8322
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8360
8323
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
8361
8324
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8379,6 +8342,15 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
8379
8342
  getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
8380
8343
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
8381
8344
  },
8345
+ /**
8346
+ *
8347
+ * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
8348
+ * @param {*} [options] Override http request option.
8349
+ * @throws {RequiredError}
8350
+ */
8351
+ getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<Array<PlayerPrice>> {
8352
+ return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
8353
+ },
8382
8354
  /**
8383
8355
  * Recherche des créneaux disponibles pour une réservation rapide
8384
8356
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -8386,7 +8358,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
8386
8358
  * @throws {RequiredError}
8387
8359
  */
8388
8360
  getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
8389
- 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));
8361
+ 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));
8390
8362
  },
8391
8363
  };
8392
8364
  };
@@ -8405,6 +8377,20 @@ export interface BookingsApiGetBookingHistoryRequest {
8405
8377
  readonly bookingId: string
8406
8378
  }
8407
8379
 
8380
+ /**
8381
+ * Request parameters for getBookingPrice operation in BookingsApi.
8382
+ * @export
8383
+ * @interface BookingsApiGetBookingPriceRequest
8384
+ */
8385
+ export interface BookingsApiGetBookingPriceRequest {
8386
+ /**
8387
+ *
8388
+ * @type {BookingPriceBody}
8389
+ * @memberof BookingsApiGetBookingPrice
8390
+ */
8391
+ readonly bookingPriceBody: BookingPriceBody
8392
+ }
8393
+
8408
8394
  /**
8409
8395
  * Request parameters for getQuickReservationSlots operation in BookingsApi.
8410
8396
  * @export
@@ -8467,6 +8453,13 @@ export interface BookingsApiGetQuickReservationSlotsRequest {
8467
8453
  */
8468
8454
  readonly courtTypes?: string
8469
8455
 
8456
+ /**
8457
+ *
8458
+ * @type {string}
8459
+ * @memberof BookingsApiGetQuickReservationSlots
8460
+ */
8461
+ readonly surfaceTypes?: string
8462
+
8470
8463
  /**
8471
8464
  *
8472
8465
  * @type {number}
@@ -8500,6 +8493,17 @@ export class BookingsApi extends BaseAPI {
8500
8493
  return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
8501
8494
  }
8502
8495
 
8496
+ /**
8497
+ *
8498
+ * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
8499
+ * @param {*} [options] Override http request option.
8500
+ * @throws {RequiredError}
8501
+ * @memberof BookingsApi
8502
+ */
8503
+ public getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig) {
8504
+ return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
8505
+ }
8506
+
8503
8507
  /**
8504
8508
  * Recherche des créneaux disponibles pour une réservation rapide
8505
8509
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -8508,7 +8512,7 @@ export class BookingsApi extends BaseAPI {
8508
8512
  * @memberof BookingsApi
8509
8513
  */
8510
8514
  public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
8511
- 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));
8515
+ 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));
8512
8516
  }
8513
8517
  }
8514
8518
 
@@ -9603,185 +9607,74 @@ export const ClubAnalyticsApiFp = function(configuration?: Configuration) {
9603
9607
  * @export
9604
9608
  */
9605
9609
  export const ClubAnalyticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
9606
- const localVarFp = ClubAnalyticsApiFp(configuration)
9607
- return {
9608
- /**
9609
- * Récupère les clubs les plus aimés
9610
- * @param {*} [options] Override http request option.
9611
- * @throws {RequiredError}
9612
- */
9613
- getMostLikedClub(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
9614
- return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
9615
- },
9616
- /**
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
- };
9610
+ const localVarFp = ClubAnalyticsApiFp(configuration)
9611
+ return {
9612
+ /**
9613
+ * Récupère les clubs les plus aimés
9614
+ * @param {*} [options] Override http request option.
9615
+ * @throws {RequiredError}
9616
+ */
9617
+ getMostLikedClub(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
9618
+ return localVarFp.getMostLikedClub(options).then((request) => request(axios, basePath));
9736
9619
  },
9737
9620
  /**
9738
- * Récupère les informations détaillées d\'un joueur par son ID
9739
- * @param {string} playerId
9621
+ * Récupère les clubs populaires
9740
9622
  * @param {*} [options] Override http request option.
9741
9623
  * @throws {RequiredError}
9742
9624
  */
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
- }
9625
+ getPopularClubs(options?: RawAxiosRequestConfig): AxiosPromise<Array<any>> {
9626
+ return localVarFp.getPopularClubs(options).then((request) => request(axios, basePath));
9627
+ },
9628
+ };
9629
+ };
9754
9630
 
9755
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
9756
- const localVarHeaderParameter = {} as any;
9757
- const localVarQueryParameter = {} as any;
9631
+ /**
9632
+ * ClubAnalyticsApi - object-oriented interface
9633
+ * @export
9634
+ * @class ClubAnalyticsApi
9635
+ * @extends {BaseAPI}
9636
+ */
9637
+ export class ClubAnalyticsApi extends BaseAPI {
9638
+ /**
9639
+ * Récupère les clubs les plus aimés
9640
+ * @param {*} [options] Override http request option.
9641
+ * @throws {RequiredError}
9642
+ * @memberof ClubAnalyticsApi
9643
+ */
9644
+ public getMostLikedClub(options?: RawAxiosRequestConfig) {
9645
+ return ClubAnalyticsApiFp(this.configuration).getMostLikedClub(options).then((request) => request(this.axios, this.basePath));
9646
+ }
9758
9647
 
9759
- // authentication bearerAuth required
9760
- // http bearer authentication required
9761
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
9648
+ /**
9649
+ * Récupère les clubs populaires
9650
+ * @param {*} [options] Override http request option.
9651
+ * @throws {RequiredError}
9652
+ * @memberof ClubAnalyticsApi
9653
+ */
9654
+ public getPopularClubs(options?: RawAxiosRequestConfig) {
9655
+ return ClubAnalyticsApiFp(this.configuration).getPopularClubs(options).then((request) => request(this.axios, this.basePath));
9656
+ }
9657
+ }
9762
9658
 
9763
9659
 
9764
-
9765
- setSearchParams(localVarUrlObj, localVarQueryParameter);
9766
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9767
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
9768
9660
 
9769
- return {
9770
- url: toPathString(localVarUrlObj),
9771
- options: localVarRequestOptions,
9772
- };
9773
- },
9661
+ /**
9662
+ * ClubAnalyticsStaffApi - axios parameter creator
9663
+ * @export
9664
+ */
9665
+ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
9666
+ return {
9774
9667
  /**
9775
- * Récupère les statistiques d\'un joueur pour le staff
9776
- * @param {string} playerId
9668
+ * Récupère les analytics par sport
9669
+ * @param {string} sportId
9777
9670
  * @param {*} [options] Override http request option.
9778
9671
  * @throws {RequiredError}
9779
9672
  */
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)));
9673
+ getAnalyticsBySport: async (sportId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
9674
+ // verify required parameter 'sportId' is not null or undefined
9675
+ assertParamExists('getAnalyticsBySport', 'sportId', sportId)
9676
+ const localVarPath = `/api/club-analytics/sport/{sportId}/analytics`
9677
+ .replace(`{${"sportId"}}`, encodeURIComponent(String(sportId)));
9785
9678
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
9786
9679
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9787
9680
  let baseOptions;
@@ -10165,42 +10058,6 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
10165
10058
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getAnalyticsBySport']?.[localVarOperationServerIndex]?.url;
10166
10059
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10167
10060
  },
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
- },
10204
10061
  /**
10205
10062
  * Récupère la liste des joueurs du club
10206
10063
  * @param {*} [options] Override http request option.
@@ -10325,33 +10182,6 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
10325
10182
  getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportAnalyticsResponse> {
10326
10183
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
10327
10184
  },
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
- },
10355
10185
  /**
10356
10186
  * Récupère la liste des joueurs du club
10357
10187
  * @param {*} [options] Override http request option.
@@ -10445,48 +10275,6 @@ export interface ClubAnalyticsStaffApiGetAnalyticsBySportRequest {
10445
10275
  readonly sportId: string
10446
10276
  }
10447
10277
 
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
-
10490
10278
  /**
10491
10279
  * Request parameters for getDailyTurnOver operation in ClubAnalyticsStaffApi.
10492
10280
  * @export
@@ -10575,39 +10363,6 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
10575
10363
  return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
10576
10364
  }
10577
10365
 
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
-
10611
10366
  /**
10612
10367
  * Récupère la liste des joueurs du club
10613
10368
  * @param {*} [options] Override http request option.
@@ -15995,64 +15750,161 @@ export interface SportsManagerApiDeleteSportRequest {
15995
15750
  }
15996
15751
 
15997
15752
  /**
15998
- * Request parameters for updateSport operation in SportsManagerApi.
15753
+ * Request parameters for updateSport operation in SportsManagerApi.
15754
+ * @export
15755
+ * @interface SportsManagerApiUpdateSportRequest
15756
+ */
15757
+ export interface SportsManagerApiUpdateSportRequest {
15758
+ /**
15759
+ *
15760
+ * @type {string}
15761
+ * @memberof SportsManagerApiUpdateSport
15762
+ */
15763
+ readonly id: string
15764
+
15765
+ /**
15766
+ *
15767
+ * @type {UpdateSportRequest}
15768
+ * @memberof SportsManagerApiUpdateSport
15769
+ */
15770
+ readonly updateSportRequest: UpdateSportRequest
15771
+ }
15772
+
15773
+ /**
15774
+ * SportsManagerApi - object-oriented interface
15775
+ * @export
15776
+ * @class SportsManagerApi
15777
+ * @extends {BaseAPI}
15778
+ */
15779
+ export class SportsManagerApi extends BaseAPI {
15780
+ /**
15781
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
15782
+ * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
15783
+ * @param {*} [options] Override http request option.
15784
+ * @throws {RequiredError}
15785
+ * @memberof SportsManagerApi
15786
+ */
15787
+ public createSport(requestParameters: SportsManagerApiCreateSportRequest, options?: RawAxiosRequestConfig) {
15788
+ return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
15789
+ }
15790
+
15791
+ /**
15792
+ * Supprime un sport (interdit si vérifié)
15793
+ * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
15794
+ * @param {*} [options] Override http request option.
15795
+ * @throws {RequiredError}
15796
+ * @memberof SportsManagerApi
15797
+ */
15798
+ public deleteSport(requestParameters: SportsManagerApiDeleteSportRequest, options?: RawAxiosRequestConfig) {
15799
+ return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
15800
+ }
15801
+
15802
+ /**
15803
+ * Met à jour un sport (interdit si vérifié)
15804
+ * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
15805
+ * @param {*} [options] Override http request option.
15806
+ * @throws {RequiredError}
15807
+ * @memberof SportsManagerApi
15808
+ */
15809
+ public updateSport(requestParameters: SportsManagerApiUpdateSportRequest, options?: RawAxiosRequestConfig) {
15810
+ return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
15811
+ }
15812
+ }
15813
+
15814
+
15815
+
15816
+ /**
15817
+ * SportsPublicApi - axios parameter creator
15818
+ * @export
15819
+ */
15820
+ export const SportsPublicApiAxiosParamCreator = function (configuration?: Configuration) {
15821
+ return {
15822
+ /**
15823
+ * Récupère tous les sports vérifiés, accessibles publiquement
15824
+ * @param {*} [options] Override http request option.
15825
+ * @throws {RequiredError}
15826
+ */
15827
+ getVerifiedSports: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15828
+ const localVarPath = `/api/sports/verified`;
15829
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15830
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15831
+ let baseOptions;
15832
+ if (configuration) {
15833
+ baseOptions = configuration.baseOptions;
15834
+ }
15835
+
15836
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15837
+ const localVarHeaderParameter = {} as any;
15838
+ const localVarQueryParameter = {} as any;
15839
+
15840
+
15841
+
15842
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15843
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15844
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15845
+
15846
+ return {
15847
+ url: toPathString(localVarUrlObj),
15848
+ options: localVarRequestOptions,
15849
+ };
15850
+ },
15851
+ }
15852
+ };
15853
+
15854
+ /**
15855
+ * SportsPublicApi - functional programming interface
15999
15856
  * @export
16000
- * @interface SportsManagerApiUpdateSportRequest
16001
15857
  */
16002
- export interface SportsManagerApiUpdateSportRequest {
16003
- /**
16004
- *
16005
- * @type {string}
16006
- * @memberof SportsManagerApiUpdateSport
16007
- */
16008
- readonly id: string
15858
+ export const SportsPublicApiFp = function(configuration?: Configuration) {
15859
+ const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration)
15860
+ return {
15861
+ /**
15862
+ * Récupère tous les sports vérifiés, accessibles publiquement
15863
+ * @param {*} [options] Override http request option.
15864
+ * @throws {RequiredError}
15865
+ */
15866
+ async getVerifiedSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
15867
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVerifiedSports(options);
15868
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15869
+ const localVarOperationServerBasePath = operationServerMap['SportsPublicApi.getVerifiedSports']?.[localVarOperationServerIndex]?.url;
15870
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15871
+ },
15872
+ }
15873
+ };
16009
15874
 
16010
- /**
16011
- *
16012
- * @type {UpdateSportRequest}
16013
- * @memberof SportsManagerApiUpdateSport
16014
- */
16015
- readonly updateSportRequest: UpdateSportRequest
16016
- }
15875
+ /**
15876
+ * SportsPublicApi - factory interface
15877
+ * @export
15878
+ */
15879
+ export const SportsPublicApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15880
+ const localVarFp = SportsPublicApiFp(configuration)
15881
+ return {
15882
+ /**
15883
+ * Récupère tous les sports vérifiés, accessibles publiquement
15884
+ * @param {*} [options] Override http request option.
15885
+ * @throws {RequiredError}
15886
+ */
15887
+ getVerifiedSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
15888
+ return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
15889
+ },
15890
+ };
15891
+ };
16017
15892
 
16018
15893
  /**
16019
- * SportsManagerApi - object-oriented interface
15894
+ * SportsPublicApi - object-oriented interface
16020
15895
  * @export
16021
- * @class SportsManagerApi
15896
+ * @class SportsPublicApi
16022
15897
  * @extends {BaseAPI}
16023
15898
  */
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
-
15899
+ export class SportsPublicApi extends BaseAPI {
16047
15900
  /**
16048
- * Met à jour un sport (interdit si vérifié)
16049
- * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
15901
+ * Récupère tous les sports vérifiés, accessibles publiquement
16050
15902
  * @param {*} [options] Override http request option.
16051
15903
  * @throws {RequiredError}
16052
- * @memberof SportsManagerApi
15904
+ * @memberof SportsPublicApi
16053
15905
  */
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));
15906
+ public getVerifiedSports(options?: RawAxiosRequestConfig) {
15907
+ return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
16056
15908
  }
16057
15909
  }
16058
15910
 
@@ -17169,45 +17021,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
17169
17021
  options: localVarRequestOptions,
17170
17022
  };
17171
17023
  },
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
- },
17211
17024
  /**
17212
17025
  *
17213
17026
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -17247,45 +17060,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
17247
17060
  options: localVarRequestOptions,
17248
17061
  };
17249
17062
  },
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
- },
17289
17063
  /**
17290
17064
  *
17291
17065
  * @param {*} [options] Override http request option.
@@ -18222,45 +17996,6 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
18222
17996
  options: localVarRequestOptions,
18223
17997
  };
18224
17998
  },
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
- },
18264
17999
  /**
18265
18000
  *
18266
18001
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -18568,18 +18303,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
18568
18303
  const localVarOperationServerBasePath = operationServerMap['UsersApi.addOrganization']?.[localVarOperationServerIndex]?.url;
18569
18304
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18570
18305
  },
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
- },
18583
18306
  /**
18584
18307
  *
18585
18308
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -18592,18 +18315,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
18592
18315
  const localVarOperationServerBasePath = operationServerMap['UsersApi.changePassword']?.[localVarOperationServerIndex]?.url;
18593
18316
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18594
18317
  },
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
- },
18607
18318
  /**
18608
18319
  *
18609
18320
  * @param {*} [options] Override http request option.
@@ -18621,7 +18332,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
18621
18332
  * @param {*} [options] Override http request option.
18622
18333
  * @throws {RequiredError}
18623
18334
  */
18624
- async getBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingDetailResponse>> {
18335
+ async getBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingSummary>> {
18625
18336
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingDetail(bookingId, options);
18626
18337
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18627
18338
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getBookingDetail']?.[localVarOperationServerIndex]?.url;
@@ -18756,7 +18467,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
18756
18467
  * @param {*} [options] Override http request option.
18757
18468
  * @throws {RequiredError}
18758
18469
  */
18759
- async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingSummary>>> {
18470
+ async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>> {
18760
18471
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBookings(limit, skip, options);
18761
18472
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18762
18473
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
@@ -18902,18 +18613,6 @@ export const UsersApiFp = function(configuration?: Configuration) {
18902
18613
  const localVarOperationServerBasePath = operationServerMap['UsersApi.resetPassword']?.[localVarOperationServerIndex]?.url;
18903
18614
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18904
18615
  },
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
- },
18917
18616
  /**
18918
18617
  *
18919
18618
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -19035,15 +18734,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19035
18734
  addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
19036
18735
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
19037
18736
  },
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
- },
19047
18737
  /**
19048
18738
  *
19049
18739
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -19053,15 +18743,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19053
18743
  changePassword(requestParameters: UsersApiChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChangePasswordResponse> {
19054
18744
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
19055
18745
  },
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
- },
19065
18746
  /**
19066
18747
  *
19067
18748
  * @param {*} [options] Override http request option.
@@ -19076,7 +18757,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19076
18757
  * @param {*} [options] Override http request option.
19077
18758
  * @throws {RequiredError}
19078
18759
  */
19079
- getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingDetailResponse> {
18760
+ getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingSummary> {
19080
18761
  return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
19081
18762
  },
19082
18763
  /**
@@ -19169,7 +18850,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19169
18850
  * @param {*} [options] Override http request option.
19170
18851
  * @throws {RequiredError}
19171
18852
  */
19172
- getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingSummary>> {
18853
+ getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
19173
18854
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
19174
18855
  },
19175
18856
  /**
@@ -19270,15 +18951,6 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
19270
18951
  resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
19271
18952
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
19272
18953
  },
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
- },
19282
18954
  /**
19283
18955
  *
19284
18956
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -19387,20 +19059,6 @@ export interface UsersApiAddOrganizationRequest {
19387
19059
  readonly addOrganizationRequest: AddOrganizationRequest
19388
19060
  }
19389
19061
 
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
-
19404
19062
  /**
19405
19063
  * Request parameters for changePassword operation in UsersApi.
19406
19064
  * @export
@@ -19415,20 +19073,6 @@ export interface UsersApiChangePasswordRequest {
19415
19073
  readonly changePasswordRequestBody: ChangePasswordRequestBody
19416
19074
  }
19417
19075
 
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
-
19432
19076
  /**
19433
19077
  * Request parameters for getBookingDetail operation in UsersApi.
19434
19078
  * @export
@@ -19779,20 +19423,6 @@ export interface UsersApiResetPasswordRequest {
19779
19423
  readonly resetPasswordRequest: ResetPasswordRequest
19780
19424
  }
19781
19425
 
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
-
19796
19426
  /**
19797
19427
  * Request parameters for signInOrSignUpWithGoogle operation in UsersApi.
19798
19428
  * @export
@@ -19931,17 +19561,6 @@ export class UsersApi extends BaseAPI {
19931
19561
  return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
19932
19562
  }
19933
19563
 
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
-
19945
19564
  /**
19946
19565
  *
19947
19566
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -19953,17 +19572,6 @@ export class UsersApi extends BaseAPI {
19953
19572
  return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
19954
19573
  }
19955
19574
 
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
-
19967
19575
  /**
19968
19576
  *
19969
19577
  * @param {*} [options] Override http request option.
@@ -20220,17 +19828,6 @@ export class UsersApi extends BaseAPI {
20220
19828
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
20221
19829
  }
20222
19830
 
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
-
20234
19831
  /**
20235
19832
  *
20236
19833
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.