@tennac-booking/sdk 1.0.86 → 1.0.87

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 (96) hide show
  1. package/.openapi-generator/FILES +256 -243
  2. package/README.md +47 -25
  3. package/api.ts +2445 -1308
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +2048 -1281
  8. package/dist/api.js +841 -270
  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 +2048 -1281
  16. package/dist/esm/api.js +834 -263
  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/{DeleteClubSettingsResponse.md → AddPaymentMethodRequestBody.md} +5 -5
  28. package/docs/BookingDetailResponse.md +46 -0
  29. package/docs/BookingInfo.md +2 -2
  30. package/docs/BookingPopulated.md +3 -3
  31. package/docs/BookingResponse.md +0 -2
  32. package/docs/BookingSummary.md +2 -54
  33. package/docs/BookingsApi.md +0 -55
  34. package/docs/ClubAnalyticsStaffApi.md +173 -0
  35. package/docs/{BookingSportInfo.md → ClubDaySchedule.md} +7 -7
  36. package/docs/ClubGeneralSettingsResponse.md +32 -0
  37. package/docs/ClubHoursSettingsResponse.md +22 -0
  38. package/docs/ClubLocationSettings.md +26 -0
  39. package/docs/ClubPlayerBookingItem.md +36 -0
  40. package/docs/ClubPlayerBookingsPagination.md +28 -0
  41. package/docs/ClubPlayerBookingsResponse.md +24 -0
  42. package/docs/ClubPlayerDetailResponse.md +46 -0
  43. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
  44. package/docs/ClubPlayerStatisticsResponse.md +42 -0
  45. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
  46. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
  47. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
  48. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
  49. package/docs/ClubPlayerSubscriptionSummary.md +28 -0
  50. package/docs/ClubPresentationSettingsResponse.md +26 -0
  51. package/docs/ClubPricingPeriodResponse.md +30 -0
  52. package/docs/ClubReservationSettingsResponse.md +28 -0
  53. package/docs/ClubResponse.md +0 -8
  54. package/docs/ClubSettingsManagerApi.md +54 -55
  55. package/docs/ClubSettingsStaffApi.md +139 -0
  56. package/docs/ClubWeeklySchedule.md +32 -0
  57. package/docs/ClubsManagerApi.md +52 -0
  58. package/docs/ClubsStaffApi.md +44 -0
  59. package/docs/{BookingCourtInfo.md → ConfirmPaymentMethodRequestBody.md} +5 -7
  60. package/docs/{BookingPriceBody.md → ConfirmPaymentMethodResponse.md} +7 -7
  61. package/docs/CreateBookingRequest.md +2 -2
  62. package/docs/CreateEventRequest.md +3 -1
  63. package/docs/EventResponse.md +1 -1
  64. package/docs/IUserAttributes.md +12 -2
  65. package/docs/PartialClubResponse.md +0 -8
  66. package/docs/PartialClubWeeklySchedule.md +33 -0
  67. package/docs/PaymentMethodSetupResponse.md +24 -0
  68. package/docs/QuickReservationClubSummary.md +0 -4
  69. package/docs/{EventResponseCourtsInner.md → SetupPaymentMethodRequestBody.md} +5 -3
  70. package/docs/SetupPaymentMethodResponse.md +24 -0
  71. package/docs/SlotInfo.md +2 -2
  72. package/docs/StaffUserProfileResponse.md +12 -2
  73. package/docs/SubscribeRequestBody.md +0 -2
  74. package/docs/UpdateClubGeneralSettingsRequest.md +34 -0
  75. package/docs/UpdateClubHoursSettingsRequest.md +22 -0
  76. package/docs/UpdateClubPresentationSettingsRequest.md +26 -0
  77. package/docs/UpdateClubReservationSettingsRequest.md +28 -0
  78. package/docs/UpdateEventRequest.md +1 -1
  79. package/docs/UserProfileResponse.md +12 -4
  80. package/docs/UsersApi.md +160 -4
  81. package/index.ts +1 -1
  82. package/package.json +1 -1
  83. package/docs/BookingClubInfo.md +0 -28
  84. package/docs/BookingPaymentStatus.md +0 -24
  85. package/docs/BookingPlayerPaymentSummary.md +0 -34
  86. package/docs/BookingPriceResponse.md +0 -22
  87. package/docs/BookingSlotInfo.md +0 -30
  88. package/docs/ClubSettingsResponse.md +0 -39
  89. package/docs/CreateClubSettingsRequest.md +0 -34
  90. package/docs/InvoiceStatus.md +0 -22
  91. package/docs/PlayerPrice.md +0 -30
  92. package/docs/QuickReservationClubSport.md +0 -22
  93. package/docs/SportsPublicApi.md +0 -53
  94. package/docs/SubscriptionInfo.md +0 -24
  95. package/docs/UpdateClubSettingsRequest.md +0 -32
  96. package/docs/UserBookingsResponse.md +0 -28
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.86
7
+ * The version of the OpenAPI document: 1.0.77
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -92,6 +92,19 @@ export interface AddOrganizationRequest {
92
92
  */
93
93
  'organizationId'?: string;
94
94
  }
95
+ /**
96
+ *
97
+ * @export
98
+ * @interface AddPaymentMethodRequestBody
99
+ */
100
+ export interface AddPaymentMethodRequestBody {
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof AddPaymentMethodRequestBody
105
+ */
106
+ 'paymentMethodId': string;
107
+ }
95
108
  /**
96
109
  *
97
110
  * @export
@@ -150,58 +163,93 @@ export interface BookingAnalyticsResponse {
150
163
  /**
151
164
  *
152
165
  * @export
153
- * @interface BookingClubInfo
166
+ * @interface BookingDetailResponse
154
167
  */
155
- export interface BookingClubInfo {
168
+ export interface BookingDetailResponse {
156
169
  /**
157
170
  *
158
171
  * @type {string}
159
- * @memberof BookingClubInfo
172
+ * @memberof BookingDetailResponse
160
173
  */
161
174
  'id': string;
162
175
  /**
163
176
  *
164
177
  * @type {string}
165
- * @memberof BookingClubInfo
178
+ * @memberof BookingDetailResponse
166
179
  */
167
- 'name'?: string | null;
180
+ 'clubPicture'?: string;
168
181
  /**
169
182
  *
170
183
  * @type {string}
171
- * @memberof BookingClubInfo
184
+ * @memberof BookingDetailResponse
172
185
  */
173
- 'picture'?: string | null;
186
+ 'courtName'?: string;
174
187
  /**
175
188
  *
176
189
  * @type {string}
177
- * @memberof BookingClubInfo
190
+ * @memberof BookingDetailResponse
178
191
  */
179
- 'address'?: string | null;
192
+ 'sportName'?: string;
180
193
  /**
181
- * Construct a type with a set of properties K of type T
182
- * @type {{ [key: string]: any; }}
183
- * @memberof BookingClubInfo
194
+ *
195
+ * @type {string}
196
+ * @memberof BookingDetailResponse
184
197
  */
185
- 'location'?: { [key: string]: any; } | null;
186
- }
187
- /**
188
- *
189
- * @export
190
- * @interface BookingCourtInfo
191
- */
192
- export interface BookingCourtInfo {
198
+ 'startDate'?: string;
199
+ /**
200
+ *
201
+ * @type {string}
202
+ * @memberof BookingDetailResponse
203
+ */
204
+ 'myPaymentStatus'?: string;
193
205
  /**
194
206
  *
195
207
  * @type {string}
196
- * @memberof BookingCourtInfo
208
+ * @memberof BookingDetailResponse
209
+ */
210
+ 'bookingStatus'?: string;
211
+ /**
212
+ *
213
+ * @type {Array<string>}
214
+ * @memberof BookingDetailResponse
197
215
  */
198
- 'id'?: string | null;
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;
199
229
  /**
200
230
  *
201
231
  * @type {string}
202
- * @memberof BookingCourtInfo
232
+ * @memberof BookingDetailResponse
233
+ */
234
+ 'timeBeforeCancel'?: string | null;
235
+ /**
236
+ *
237
+ * @type {BookingSummaryClubAddress}
238
+ * @memberof BookingDetailResponse
203
239
  */
204
- 'name'?: string | null;
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; }>;
205
253
  }
206
254
  /**
207
255
  *
@@ -311,10 +359,10 @@ export interface BookingInfo {
311
359
  'totalPrice': number;
312
360
  /**
313
361
  * ID du créneau
314
- * @type {Array<string>}
362
+ * @type {string}
315
363
  * @memberof BookingInfo
316
364
  */
317
- 'slotIds': Array<string>;
365
+ 'slotId': string;
318
366
  /**
319
367
  * Indique si le créateur paie pour tous
320
368
  * @type {boolean}
@@ -372,33 +420,6 @@ export interface BookingInfo {
372
420
  }
373
421
 
374
422
 
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
-
402
423
  /**
403
424
  *
404
425
  * @export
@@ -494,63 +515,6 @@ export interface BookingPaymentStatusResponseSummary {
494
515
  */
495
516
  'totalPlayers': number;
496
517
  }
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
-
554
518
  /**
555
519
  *
556
520
  * @export
@@ -576,11 +540,17 @@ export interface BookingPopulated {
576
540
  */
577
541
  'creator': UserInfo;
578
542
  /**
579
- * Information(s) des créneaux
580
- * @type {Array<SlotInfo>}
543
+ *
544
+ * @type {SlotInfo}
545
+ * @memberof BookingPopulated
546
+ */
547
+ 'slotInfos': SlotInfo;
548
+ /**
549
+ *
550
+ * @type {Array<UserInfo>}
581
551
  * @memberof BookingPopulated
582
552
  */
583
- 'slotInfos': Array<SlotInfo>;
553
+ 'players': Array<UserInfo>;
584
554
  /**
585
555
  * Statut des paiements par joueur
586
556
  * @type {Array<PaymentByPlayerInfo>}
@@ -611,12 +581,6 @@ export interface BookingPopulated {
611
581
  * @memberof BookingPopulated
612
582
  */
613
583
  'isCreatorPayingAll': boolean;
614
- /**
615
- *
616
- * @type {Array<string>}
617
- * @memberof BookingPopulated
618
- */
619
- 'playersIds': Array<string>;
620
584
  /**
621
585
  *
622
586
  * @type {Array<BookingHistoryPopulated>}
@@ -650,44 +614,6 @@ export interface BookingPopulated {
650
614
  }
651
615
 
652
616
 
653
- /**
654
- *
655
- * @export
656
- * @interface BookingPriceBody
657
- */
658
- export interface BookingPriceBody {
659
- /**
660
- *
661
- * @type {Array<string>}
662
- * @memberof BookingPriceBody
663
- */
664
- 'slotIds': Array<string>;
665
- /**
666
- *
667
- * @type {Array<string>}
668
- * @memberof BookingPriceBody
669
- */
670
- 'players': Array<string>;
671
- }
672
- /**
673
- *
674
- * @export
675
- * @interface BookingPriceResponse
676
- */
677
- export interface BookingPriceResponse {
678
- /**
679
- *
680
- * @type {boolean}
681
- * @memberof BookingPriceResponse
682
- */
683
- 'creatorNeedsToRegisterPaymentMethod': boolean;
684
- /**
685
- *
686
- * @type {Array<PlayerPrice>}
687
- * @memberof BookingPriceResponse
688
- */
689
- 'playerPrices': Array<PlayerPrice>;
690
- }
691
617
  /**
692
618
  *
693
619
  * @export
@@ -718,12 +644,6 @@ export interface BookingResponse {
718
644
  * @memberof BookingResponse
719
645
  */
720
646
  'onsitePayments'?: Array<BookingResponseOnsitePaymentsInner>;
721
- /**
722
- *
723
- * @type {string}
724
- * @memberof BookingResponse
725
- */
726
- 'setupNoShowPaymentUrl'?: string;
727
647
  /**
728
648
  * Message de confirmation
729
649
  * @type {string}
@@ -750,68 +670,6 @@ export interface BookingResponseOnsitePaymentsInner {
750
670
  */
751
671
  'playerId': string;
752
672
  }
753
- /**
754
- *
755
- * @export
756
- * @interface BookingSlotInfo
757
- */
758
- export interface BookingSlotInfo {
759
- /**
760
- *
761
- * @type {string}
762
- * @memberof BookingSlotInfo
763
- */
764
- 'id': string;
765
- /**
766
- *
767
- * @type {string}
768
- * @memberof BookingSlotInfo
769
- */
770
- 'startDate'?: string | null;
771
- /**
772
- *
773
- * @type {string}
774
- * @memberof BookingSlotInfo
775
- */
776
- 'endDate'?: string | null;
777
- /**
778
- *
779
- * @type {number}
780
- * @memberof BookingSlotInfo
781
- */
782
- 'durationMinutes'?: number | null;
783
- /**
784
- *
785
- * @type {BookingCourtInfo}
786
- * @memberof BookingSlotInfo
787
- */
788
- 'court'?: BookingCourtInfo | null;
789
- /**
790
- *
791
- * @type {BookingSportInfo}
792
- * @memberof BookingSlotInfo
793
- */
794
- 'sport'?: BookingSportInfo | null;
795
- }
796
- /**
797
- *
798
- * @export
799
- * @interface BookingSportInfo
800
- */
801
- export interface BookingSportInfo {
802
- /**
803
- *
804
- * @type {string}
805
- * @memberof BookingSportInfo
806
- */
807
- 'id'?: string | null;
808
- /**
809
- *
810
- * @type {string}
811
- * @memberof BookingSportInfo
812
- */
813
- 'key'?: string | null;
814
- }
815
673
  /**
816
674
  *
817
675
  * @export
@@ -848,251 +706,93 @@ export interface BookingSummary {
848
706
  * @type {string}
849
707
  * @memberof BookingSummary
850
708
  */
851
- 'clubId': string;
709
+ 'clubPicture'?: string;
852
710
  /**
853
711
  *
854
712
  * @type {string}
855
713
  * @memberof BookingSummary
856
714
  */
857
- 'userId': string;
715
+ 'courtName'?: string;
858
716
  /**
859
717
  *
860
- * @type {Array<string>}
718
+ * @type {string}
861
719
  * @memberof BookingSummary
862
720
  */
863
- 'playersIds': Array<string>;
721
+ 'sportName'?: string;
864
722
  /**
865
723
  *
866
- * @type {BookingStatus}
724
+ * @type {string}
867
725
  * @memberof BookingSummary
868
726
  */
869
- 'status': BookingStatus;
727
+ 'startDate'?: string;
870
728
  /**
871
729
  *
872
- * @type {Array<BookingPaymentStatus>}
730
+ * @type {string}
873
731
  * @memberof BookingSummary
874
732
  */
875
- 'paymentByPlayersStatus': Array<BookingPaymentStatus>;
733
+ 'myPaymentStatus'?: string;
876
734
  /**
877
735
  *
878
- * @type {boolean}
736
+ * @type {string}
879
737
  * @memberof BookingSummary
880
738
  */
881
- 'isCreatorPayingAll': boolean;
739
+ 'bookingStatus'?: string;
882
740
  /**
883
741
  *
884
- * @type {number}
742
+ * @type {Array<string>}
885
743
  * @memberof BookingSummary
886
744
  */
887
- 'totalPrice': number;
745
+ 'playersName': Array<string>;
888
746
  /**
889
747
  *
890
- * @type {Array<string>}
748
+ * @type {number}
891
749
  * @memberof BookingSummary
892
750
  */
893
- 'slotIds': Array<string>;
751
+ 'myAmountToPay': number;
894
752
  /**
895
753
  *
896
- * @type {boolean}
754
+ * @type {number}
897
755
  * @memberof BookingSummary
898
756
  */
899
- 'isPublic': boolean;
757
+ 'totalAmount': number;
900
758
  /**
901
759
  *
902
760
  * @type {string}
903
761
  * @memberof BookingSummary
904
762
  */
905
- 'creatorPaymentMethodId'?: string | null;
763
+ 'timeBeforeCancel'?: string | null;
906
764
  /**
907
765
  *
908
- * @type {boolean}
766
+ * @type {BookingSummaryClubAddress}
909
767
  * @memberof BookingSummary
910
768
  */
911
- 'paymentMethodSetupCompleted': boolean;
769
+ 'clubAddress'?: BookingSummaryClubAddress | null;
912
770
  /**
913
771
  *
914
- * @type {number}
772
+ * @type {BookingHistoryPopulated}
915
773
  * @memberof BookingSummary
916
774
  */
917
- 'noShowChargeAmount'?: number | null;
775
+ 'bookingHistory'?: BookingHistoryPopulated;
776
+ }
777
+ /**
778
+ *
779
+ * @export
780
+ * @interface BookingSummaryClubAddress
781
+ */
782
+ export interface BookingSummaryClubAddress {
783
+ }
784
+ /**
785
+ *
786
+ * @export
787
+ * @interface CancelBookingResponse
788
+ */
789
+ export interface CancelBookingResponse {
918
790
  /**
919
- *
920
- * @type {boolean}
921
- * @memberof BookingSummary
791
+ * Message de confirmation
792
+ * @type {string}
793
+ * @memberof CancelBookingResponse
922
794
  */
923
- 'noShowChargeApplied'?: boolean;
924
- /**
925
- *
926
- * @type {string}
927
- * @memberof BookingSummary
928
- */
929
- 'noShowChargeIntentId'?: string | null;
930
- /**
931
- *
932
- * @type {string}
933
- * @memberof BookingSummary
934
- */
935
- 'cancellationReason'?: string | null;
936
- /**
937
- *
938
- * @type {string}
939
- * @memberof BookingSummary
940
- */
941
- 'cancelledBy'?: string | null;
942
- /**
943
- *
944
- * @type {string}
945
- * @memberof BookingSummary
946
- */
947
- 'cancelledAt'?: string | null;
948
- /**
949
- *
950
- * @type {boolean}
951
- * @memberof BookingSummary
952
- */
953
- 'cancelledByManager'?: boolean;
954
- /**
955
- *
956
- * @type {string}
957
- * @memberof BookingSummary
958
- */
959
- 'createdAt': string | null;
960
- /**
961
- *
962
- * @type {string}
963
- * @memberof BookingSummary
964
- */
965
- 'updatedAt': string | null;
966
- /**
967
- *
968
- * @type {number}
969
- * @memberof BookingSummary
970
- */
971
- 'playersCount'?: number | null;
972
- /**
973
- *
974
- * @type {string}
975
- * @memberof BookingSummary
976
- */
977
- 'clubPicture'?: string;
978
- /**
979
- *
980
- * @type {string}
981
- * @memberof BookingSummary
982
- */
983
- 'courtName'?: string;
984
- /**
985
- *
986
- * @type {string}
987
- * @memberof BookingSummary
988
- */
989
- 'sportName'?: string;
990
- /**
991
- *
992
- * @type {string}
993
- * @memberof BookingSummary
994
- */
995
- 'startDate'?: string;
996
- /**
997
- *
998
- * @type {InvoiceStatus}
999
- * @memberof BookingSummary
1000
- */
1001
- 'myPaymentStatus'?: InvoiceStatus | null;
1002
- /**
1003
- *
1004
- * @type {string}
1005
- * @memberof BookingSummary
1006
- */
1007
- 'bookingStatus'?: string;
1008
- /**
1009
- *
1010
- * @type {Array<string>}
1011
- * @memberof BookingSummary
1012
- */
1013
- 'playersName': Array<string>;
1014
- /**
1015
- *
1016
- * @type {number}
1017
- * @memberof BookingSummary
1018
- */
1019
- 'myAmountToPay': number;
1020
- /**
1021
- *
1022
- * @type {number}
1023
- * @memberof BookingSummary
1024
- */
1025
- 'totalAmount': number;
1026
- /**
1027
- *
1028
- * @type {string}
1029
- * @memberof BookingSummary
1030
- */
1031
- 'timeBeforeCancel'?: string | null;
1032
- /**
1033
- *
1034
- * @type {BookingSummaryClubAddress}
1035
- * @memberof BookingSummary
1036
- */
1037
- 'clubAddress'?: BookingSummaryClubAddress | null;
1038
- /**
1039
- *
1040
- * @type {Array<BookingHistoryPopulated>}
1041
- * @memberof BookingSummary
1042
- */
1043
- 'bookingHistory'?: Array<BookingHistoryPopulated>;
1044
- /**
1045
- *
1046
- * @type {BookingClubInfo}
1047
- * @memberof BookingSummary
1048
- */
1049
- 'club'?: BookingClubInfo | null;
1050
- /**
1051
- *
1052
- * @type {Array<BookingSlotInfo>}
1053
- * @memberof BookingSummary
1054
- */
1055
- 'slots': Array<BookingSlotInfo>;
1056
- /**
1057
- *
1058
- * @type {BookingCourtInfo}
1059
- * @memberof BookingSummary
1060
- */
1061
- 'court'?: BookingCourtInfo | null;
1062
- /**
1063
- *
1064
- * @type {BookingSportInfo}
1065
- * @memberof BookingSummary
1066
- */
1067
- 'sport'?: BookingSportInfo | null;
1068
- /**
1069
- *
1070
- * @type {Array<BookingPlayerPaymentSummary>}
1071
- * @memberof BookingSummary
1072
- */
1073
- 'players': Array<BookingPlayerPaymentSummary>;
1074
- }
1075
-
1076
-
1077
- /**
1078
- *
1079
- * @export
1080
- * @interface BookingSummaryClubAddress
1081
- */
1082
- export interface BookingSummaryClubAddress {
1083
- }
1084
- /**
1085
- *
1086
- * @export
1087
- * @interface CancelBookingResponse
1088
- */
1089
- export interface CancelBookingResponse {
1090
- /**
1091
- * Message de confirmation
1092
- * @type {string}
1093
- * @memberof CancelBookingResponse
1094
- */
1095
- 'message': string;
795
+ 'message': string;
1096
796
  /**
1097
797
  *
1098
798
  * @type {BookingInfo}
@@ -1230,170 +930,842 @@ export interface CheckedInPlayer {
1230
930
  /**
1231
931
  * ID du joueur
1232
932
  * @type {string}
1233
- * @memberof CheckedInPlayer
933
+ * @memberof CheckedInPlayer
934
+ */
935
+ 'playerId': string;
936
+ /**
937
+ * ID de la facture
938
+ * @type {string}
939
+ * @memberof CheckedInPlayer
940
+ */
941
+ 'invoiceId': string;
942
+ /**
943
+ * Montant payé
944
+ * @type {number}
945
+ * @memberof CheckedInPlayer
946
+ */
947
+ 'amount': number;
948
+ /**
949
+ * Statut précédent (optionnel)
950
+ * @type {string}
951
+ * @memberof CheckedInPlayer
952
+ */
953
+ 'previousStatus'?: string;
954
+ /**
955
+ * Nouveau statut (optionnel)
956
+ * @type {string}
957
+ * @memberof CheckedInPlayer
958
+ */
959
+ 'newStatus'?: string;
960
+ /**
961
+ * Statut actuel
962
+ * @type {string}
963
+ * @memberof CheckedInPlayer
964
+ */
965
+ 'status'?: string;
966
+ /**
967
+ *
968
+ * @type {PaymentMethod}
969
+ * @memberof CheckedInPlayer
970
+ */
971
+ 'paymentMethod'?: PaymentMethod;
972
+ /**
973
+ * Note additionnelle
974
+ * @type {string}
975
+ * @memberof CheckedInPlayer
976
+ */
977
+ 'note'?: string;
978
+ }
979
+
980
+
981
+ /**
982
+ *
983
+ * @export
984
+ * @interface ClubDaySchedule
985
+ */
986
+ export interface ClubDaySchedule {
987
+ /**
988
+ *
989
+ * @type {string}
990
+ * @memberof ClubDaySchedule
991
+ */
992
+ 'open': string;
993
+ /**
994
+ *
995
+ * @type {string}
996
+ * @memberof ClubDaySchedule
997
+ */
998
+ 'close': string;
999
+ }
1000
+ /**
1001
+ *
1002
+ * @export
1003
+ * @interface ClubGeneralSettingsResponse
1004
+ */
1005
+ export interface ClubGeneralSettingsResponse {
1006
+ /**
1007
+ *
1008
+ * @type {string}
1009
+ * @memberof ClubGeneralSettingsResponse
1010
+ */
1011
+ 'name': string;
1012
+ /**
1013
+ *
1014
+ * @type {string}
1015
+ * @memberof ClubGeneralSettingsResponse
1016
+ */
1017
+ 'email'?: string;
1018
+ /**
1019
+ *
1020
+ * @type {string}
1021
+ * @memberof ClubGeneralSettingsResponse
1022
+ */
1023
+ 'phone'?: string;
1024
+ /**
1025
+ *
1026
+ * @type {string}
1027
+ * @memberof ClubGeneralSettingsResponse
1028
+ */
1029
+ 'websiteUrl'?: string;
1030
+ /**
1031
+ *
1032
+ * @type {string}
1033
+ * @memberof ClubGeneralSettingsResponse
1034
+ */
1035
+ 'logo'?: string | null;
1036
+ /**
1037
+ *
1038
+ * @type {ClubLocationSettings}
1039
+ * @memberof ClubGeneralSettingsResponse
1040
+ */
1041
+ 'location': ClubLocationSettings;
1042
+ /**
1043
+ *
1044
+ * @type {string}
1045
+ * @memberof ClubGeneralSettingsResponse
1046
+ */
1047
+ 'stripeUrl'?: string | null;
1048
+ }
1049
+ /**
1050
+ *
1051
+ * @export
1052
+ * @interface ClubHoursSettingsResponse
1053
+ */
1054
+ export interface ClubHoursSettingsResponse {
1055
+ /**
1056
+ *
1057
+ * @type {ClubWeeklySchedule}
1058
+ * @memberof ClubHoursSettingsResponse
1059
+ */
1060
+ 'schedule': ClubWeeklySchedule;
1061
+ /**
1062
+ *
1063
+ * @type {Array<ClubPricingPeriodResponse>}
1064
+ * @memberof ClubHoursSettingsResponse
1065
+ */
1066
+ 'pricingPeriods': Array<ClubPricingPeriodResponse>;
1067
+ }
1068
+ /**
1069
+ *
1070
+ * @export
1071
+ * @interface ClubLocationSettings
1072
+ */
1073
+ export interface ClubLocationSettings {
1074
+ /**
1075
+ *
1076
+ * @type {string}
1077
+ * @memberof ClubLocationSettings
1078
+ */
1079
+ 'address'?: string;
1080
+ /**
1081
+ *
1082
+ * @type {string}
1083
+ * @memberof ClubLocationSettings
1084
+ */
1085
+ 'zipCode'?: string;
1086
+ /**
1087
+ *
1088
+ * @type {string}
1089
+ * @memberof ClubLocationSettings
1090
+ */
1091
+ 'city'?: string;
1092
+ /**
1093
+ *
1094
+ * @type {string}
1095
+ * @memberof ClubLocationSettings
1096
+ */
1097
+ 'country'?: string;
1098
+ }
1099
+ /**
1100
+ *
1101
+ * @export
1102
+ * @interface ClubMemberResponse
1103
+ */
1104
+ export interface ClubMemberResponse {
1105
+ /**
1106
+ *
1107
+ * @type {ClubMemberResponseUser}
1108
+ * @memberof ClubMemberResponse
1109
+ */
1110
+ 'user': ClubMemberResponseUser;
1111
+ /**
1112
+ * Rôle du membre dans le club
1113
+ * @type {string}
1114
+ * @memberof ClubMemberResponse
1115
+ */
1116
+ 'role': string;
1117
+ /**
1118
+ * Droits du membre dans le club
1119
+ * @type {Array<string>}
1120
+ * @memberof ClubMemberResponse
1121
+ */
1122
+ 'rights': Array<string>;
1123
+ }
1124
+ /**
1125
+ * Utilisateur (membre)
1126
+ * @export
1127
+ * @interface ClubMemberResponseUser
1128
+ */
1129
+ export interface ClubMemberResponseUser {
1130
+ /**
1131
+ *
1132
+ * @type {string}
1133
+ * @memberof ClubMemberResponseUser
1134
+ */
1135
+ 'email': string;
1136
+ /**
1137
+ *
1138
+ * @type {string}
1139
+ * @memberof ClubMemberResponseUser
1140
+ */
1141
+ 'lastName': string;
1142
+ /**
1143
+ *
1144
+ * @type {string}
1145
+ * @memberof ClubMemberResponseUser
1146
+ */
1147
+ 'firstName': string;
1148
+ /**
1149
+ *
1150
+ * @type {string}
1151
+ * @memberof ClubMemberResponseUser
1152
+ */
1153
+ 'id': string;
1154
+ }
1155
+ /**
1156
+ *
1157
+ * @export
1158
+ * @interface ClubPlayerBookingItem
1159
+ */
1160
+ export interface ClubPlayerBookingItem {
1161
+ /**
1162
+ * ID de la réservation
1163
+ * @type {string}
1164
+ * @memberof ClubPlayerBookingItem
1165
+ */
1166
+ 'id': string;
1167
+ /**
1168
+ * Date de début de la réservation
1169
+ * @type {string}
1170
+ * @memberof ClubPlayerBookingItem
1171
+ */
1172
+ 'startDate': string | null;
1173
+ /**
1174
+ * Date de fin de la réservation
1175
+ * @type {string}
1176
+ * @memberof ClubPlayerBookingItem
1177
+ */
1178
+ 'endDate': string | null;
1179
+ /**
1180
+ * Nom du terrain ou emplacement
1181
+ * @type {string}
1182
+ * @memberof ClubPlayerBookingItem
1183
+ */
1184
+ 'location': string | null;
1185
+ /**
1186
+ * Nom du sport associé
1187
+ * @type {string}
1188
+ * @memberof ClubPlayerBookingItem
1189
+ */
1190
+ 'sport': string | null;
1191
+ /**
1192
+ * Statut de la réservation
1193
+ * @type {string}
1194
+ * @memberof ClubPlayerBookingItem
1195
+ */
1196
+ 'status': string;
1197
+ /**
1198
+ * Prix total de la réservation en centimes
1199
+ * @type {number}
1200
+ * @memberof ClubPlayerBookingItem
1201
+ */
1202
+ 'totalPrice': number;
1203
+ /**
1204
+ * Indique si le joueur est le créateur de la réservation
1205
+ * @type {boolean}
1206
+ * @memberof ClubPlayerBookingItem
1207
+ */
1208
+ 'isCreator': boolean;
1209
+ /**
1210
+ * Nombre total de participants
1211
+ * @type {number}
1212
+ * @memberof ClubPlayerBookingItem
1213
+ */
1214
+ 'participantsCount': number;
1215
+ }
1216
+ /**
1217
+ *
1218
+ * @export
1219
+ * @interface ClubPlayerBookingsPagination
1220
+ */
1221
+ export interface ClubPlayerBookingsPagination {
1222
+ /**
1223
+ * Page courante (1-based)
1224
+ * @type {number}
1225
+ * @memberof ClubPlayerBookingsPagination
1226
+ */
1227
+ 'page': number;
1228
+ /**
1229
+ * Nombre d\'éléments par page
1230
+ * @type {number}
1231
+ * @memberof ClubPlayerBookingsPagination
1232
+ */
1233
+ 'pageSize': number;
1234
+ /**
1235
+ * Nombre total d\'éléments disponibles
1236
+ * @type {number}
1237
+ * @memberof ClubPlayerBookingsPagination
1238
+ */
1239
+ 'totalItems': number;
1240
+ /**
1241
+ * Nombre total de pages disponibles
1242
+ * @type {number}
1243
+ * @memberof ClubPlayerBookingsPagination
1244
+ */
1245
+ 'totalPages': number;
1246
+ /**
1247
+ * Existence d\'une page suivante
1248
+ * @type {boolean}
1249
+ * @memberof ClubPlayerBookingsPagination
1250
+ */
1251
+ 'hasMore': boolean;
1252
+ }
1253
+ /**
1254
+ *
1255
+ * @export
1256
+ * @interface ClubPlayerBookingsResponse
1257
+ */
1258
+ export interface ClubPlayerBookingsResponse {
1259
+ /**
1260
+ * Réservations à venir
1261
+ * @type {Array<ClubPlayerBookingItem>}
1262
+ * @memberof ClubPlayerBookingsResponse
1263
+ */
1264
+ 'upcomingBookings': Array<ClubPlayerBookingItem>;
1265
+ /**
1266
+ * Réservations passées
1267
+ * @type {Array<ClubPlayerBookingItem>}
1268
+ * @memberof ClubPlayerBookingsResponse
1269
+ */
1270
+ 'pastBookings': Array<ClubPlayerBookingItem>;
1271
+ /**
1272
+ *
1273
+ * @type {ClubPlayerBookingsPagination}
1274
+ * @memberof ClubPlayerBookingsResponse
1275
+ */
1276
+ 'pastPagination'?: ClubPlayerBookingsPagination;
1277
+ }
1278
+ /**
1279
+ *
1280
+ * @export
1281
+ * @interface ClubPlayerDetailResponse
1282
+ */
1283
+ export interface ClubPlayerDetailResponse {
1284
+ /**
1285
+ * ID du joueur
1286
+ * @type {string}
1287
+ * @memberof ClubPlayerDetailResponse
1288
+ */
1289
+ 'id': string;
1290
+ /**
1291
+ * Nom complet
1292
+ * @type {string}
1293
+ * @memberof ClubPlayerDetailResponse
1294
+ */
1295
+ 'name': string;
1296
+ /**
1297
+ * Prénom
1298
+ * @type {string}
1299
+ * @memberof ClubPlayerDetailResponse
1300
+ */
1301
+ 'firstName': string;
1302
+ /**
1303
+ * Nom
1304
+ * @type {string}
1305
+ * @memberof ClubPlayerDetailResponse
1306
+ */
1307
+ 'lastName': string;
1308
+ /**
1309
+ * Email
1310
+ * @type {string}
1311
+ * @memberof ClubPlayerDetailResponse
1312
+ */
1313
+ 'email': string;
1314
+ /**
1315
+ * Numéro de téléphone
1316
+ * @type {string}
1317
+ * @memberof ClubPlayerDetailResponse
1318
+ */
1319
+ 'phoneNumber': string | null;
1320
+ /**
1321
+ * URL de la photo de profil
1322
+ * @type {string}
1323
+ * @memberof ClubPlayerDetailResponse
1324
+ */
1325
+ 'profilePictureUrl': string | null;
1326
+ /**
1327
+ * Compte vérifié
1328
+ * @type {boolean}
1329
+ * @memberof ClubPlayerDetailResponse
1330
+ */
1331
+ 'isAccountVerified': boolean;
1332
+ /**
1333
+ * Abonnements au club courant
1334
+ * @type {Array<ClubPlayerSubscriptionSummary>}
1335
+ * @memberof ClubPlayerDetailResponse
1336
+ */
1337
+ 'subscriptionsToMyClub': Array<ClubPlayerSubscriptionSummary>;
1338
+ /**
1339
+ * Description du profil
1340
+ * @type {string}
1341
+ * @memberof ClubPlayerDetailResponse
1342
+ */
1343
+ 'profileDescription': string | null;
1344
+ /**
1345
+ * Genre
1346
+ * @type {string}
1347
+ * @memberof ClubPlayerDetailResponse
1348
+ */
1349
+ 'gender': string | null;
1350
+ /**
1351
+ * Ville
1352
+ * @type {string}
1353
+ * @memberof ClubPlayerDetailResponse
1354
+ */
1355
+ 'city': string | null;
1356
+ /**
1357
+ * Niveaux par sport
1358
+ * @type {Array<ClubPlayerDetailResponseSportsLevelsInner>}
1359
+ * @memberof ClubPlayerDetailResponse
1360
+ */
1361
+ 'sportsLevels': Array<ClubPlayerDetailResponseSportsLevelsInner>;
1362
+ /**
1363
+ * Date de naissance
1364
+ * @type {string}
1365
+ * @memberof ClubPlayerDetailResponse
1366
+ */
1367
+ 'birthDate': string | null;
1368
+ }
1369
+ /**
1370
+ *
1371
+ * @export
1372
+ * @interface ClubPlayerDetailResponseSportsLevelsInner
1373
+ */
1374
+ export interface ClubPlayerDetailResponseSportsLevelsInner {
1375
+ /**
1376
+ *
1377
+ * @type {string}
1378
+ * @memberof ClubPlayerDetailResponseSportsLevelsInner
1379
+ */
1380
+ 'level': string | null;
1381
+ /**
1382
+ *
1383
+ * @type {string}
1384
+ * @memberof ClubPlayerDetailResponseSportsLevelsInner
1385
+ */
1386
+ 'sport': string | null;
1387
+ }
1388
+ /**
1389
+ *
1390
+ * @export
1391
+ * @interface ClubPlayerResponse
1392
+ */
1393
+ export interface ClubPlayerResponse {
1394
+ /**
1395
+ * ID de l\'utilisateur
1396
+ * @type {string}
1397
+ * @memberof ClubPlayerResponse
1398
+ */
1399
+ 'id': string;
1400
+ /**
1401
+ * Prénom
1402
+ * @type {string}
1403
+ * @memberof ClubPlayerResponse
1404
+ */
1405
+ 'firstName': string;
1406
+ /**
1407
+ * Nom
1408
+ * @type {string}
1409
+ * @memberof ClubPlayerResponse
1410
+ */
1411
+ 'lastName': string;
1412
+ /**
1413
+ * Genre
1414
+ * @type {string}
1415
+ * @memberof ClubPlayerResponse
1416
+ */
1417
+ 'gender'?: string;
1418
+ /**
1419
+ * Email
1420
+ * @type {string}
1421
+ * @memberof ClubPlayerResponse
1422
+ */
1423
+ 'email': string;
1424
+ /**
1425
+ * Photo de profil
1426
+ * @type {string}
1427
+ * @memberof ClubPlayerResponse
1428
+ */
1429
+ 'profilePicture'?: string;
1430
+ /**
1431
+ * Compte vérifié
1432
+ * @type {boolean}
1433
+ * @memberof ClubPlayerResponse
1434
+ */
1435
+ 'isAccountVerified': boolean;
1436
+ /**
1437
+ * Profil visible
1438
+ * @type {boolean}
1439
+ * @memberof ClubPlayerResponse
1440
+ */
1441
+ 'isProfileVisible': boolean;
1442
+ /**
1443
+ * Abonné au club
1444
+ * @type {boolean}
1445
+ * @memberof ClubPlayerResponse
1446
+ */
1447
+ 'isSubscribedToClub': boolean;
1448
+ }
1449
+ /**
1450
+ *
1451
+ * @export
1452
+ * @interface ClubPlayerStatisticsResponse
1453
+ */
1454
+ export interface ClubPlayerStatisticsResponse {
1455
+ /**
1456
+ * Nombre total de réservations (tous clubs confondus)
1457
+ * @type {number}
1458
+ * @memberof ClubPlayerStatisticsResponse
1459
+ */
1460
+ 'totalBookings': number;
1461
+ /**
1462
+ * Nombre total de réservations dans le club courant
1463
+ * @type {number}
1464
+ * @memberof ClubPlayerStatisticsResponse
1465
+ */
1466
+ 'totalBookingsInMyClub': number;
1467
+ /**
1468
+ * Somme totale dépensée dans le club courant (centimes)
1469
+ * @type {number}
1470
+ * @memberof ClubPlayerStatisticsResponse
1471
+ */
1472
+ 'totalSpentAmount': number;
1473
+ /**
1474
+ * Sport le plus pratiqué dans le club courant
1475
+ * @type {string}
1476
+ * @memberof ClubPlayerStatisticsResponse
1477
+ */
1478
+ 'favoriteSport': string | null;
1479
+ /**
1480
+ * Temps moyen entre la réservation et le début du créneau (heures)
1481
+ * @type {number}
1482
+ * @memberof ClubPlayerStatisticsResponse
1483
+ */
1484
+ 'averageBookingLeadTimeHours': number | null;
1485
+ /**
1486
+ * Taux d\'annulation dans le club courant (0-1)
1487
+ * @type {number}
1488
+ * @memberof ClubPlayerStatisticsResponse
1489
+ */
1490
+ 'bookingCancellationRate': number;
1491
+ /**
1492
+ * Nombre d\'abonnements actifs au club courant
1493
+ * @type {number}
1494
+ * @memberof ClubPlayerStatisticsResponse
1495
+ */
1496
+ 'activeSubscriptionsToMyClub': number;
1497
+ /**
1498
+ * Heure de créneau favorite dans le club courant (format HH:00)
1499
+ * @type {string}
1500
+ * @memberof ClubPlayerStatisticsResponse
1501
+ */
1502
+ 'favoriteTimeSlot': string | null;
1503
+ /**
1504
+ *
1505
+ * @type {ClubPlayerStatisticsResponseFavoriteClub}
1506
+ * @memberof ClubPlayerStatisticsResponse
1507
+ */
1508
+ 'favoriteClub': ClubPlayerStatisticsResponseFavoriteClub | null;
1509
+ /**
1510
+ *
1511
+ * @type {ClubPlayerStatisticsResponseMostPlayedClub}
1512
+ * @memberof ClubPlayerStatisticsResponse
1513
+ */
1514
+ 'mostPlayedClub': ClubPlayerStatisticsResponseMostPlayedClub | null;
1515
+ /**
1516
+ * Évolution quotidienne des montants dépensés ce mois-ci
1517
+ * @type {Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>}
1518
+ * @memberof ClubPlayerStatisticsResponse
1519
+ */
1520
+ 'bookingAmountEvolutionThisMonth': Array<ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner>;
1521
+ /**
1522
+ * Joueurs les plus joués dans le club courant
1523
+ * @type {Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>}
1524
+ * @memberof ClubPlayerStatisticsResponse
1525
+ */
1526
+ 'mostPlayedPartners': Array<ClubPlayerStatisticsResponseMostPlayedPartnersInner>;
1527
+ }
1528
+ /**
1529
+ *
1530
+ * @export
1531
+ * @interface ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1532
+ */
1533
+ export interface ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner {
1534
+ /**
1535
+ *
1536
+ * @type {number}
1537
+ * @memberof ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1538
+ */
1539
+ 'amount': number;
1540
+ /**
1541
+ *
1542
+ * @type {number}
1543
+ * @memberof ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner
1544
+ */
1545
+ 'day': number;
1546
+ }
1547
+ /**
1548
+ * Club favori selon le profil utilisateur
1549
+ * @export
1550
+ * @interface ClubPlayerStatisticsResponseFavoriteClub
1551
+ */
1552
+ export interface ClubPlayerStatisticsResponseFavoriteClub {
1553
+ /**
1554
+ *
1555
+ * @type {string}
1556
+ * @memberof ClubPlayerStatisticsResponseFavoriteClub
1234
1557
  */
1235
- 'playerId': string;
1558
+ 'name': string | null;
1236
1559
  /**
1237
- * ID de la facture
1560
+ *
1238
1561
  * @type {string}
1239
- * @memberof CheckedInPlayer
1562
+ * @memberof ClubPlayerStatisticsResponseFavoriteClub
1240
1563
  */
1241
- 'invoiceId': string;
1564
+ 'clubId': string;
1565
+ }
1566
+ /**
1567
+ * Club où le joueur a le plus joué
1568
+ * @export
1569
+ * @interface ClubPlayerStatisticsResponseMostPlayedClub
1570
+ */
1571
+ export interface ClubPlayerStatisticsResponseMostPlayedClub {
1242
1572
  /**
1243
- * Montant payé
1573
+ *
1244
1574
  * @type {number}
1245
- * @memberof CheckedInPlayer
1575
+ * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1246
1576
  */
1247
- 'amount': number;
1577
+ 'bookingsCount': number;
1248
1578
  /**
1249
- * Statut précédent (optionnel)
1579
+ *
1250
1580
  * @type {string}
1251
- * @memberof CheckedInPlayer
1581
+ * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1252
1582
  */
1253
- 'previousStatus'?: string;
1583
+ 'name': string | null;
1254
1584
  /**
1255
- * Nouveau statut (optionnel)
1585
+ *
1256
1586
  * @type {string}
1257
- * @memberof CheckedInPlayer
1587
+ * @memberof ClubPlayerStatisticsResponseMostPlayedClub
1258
1588
  */
1259
- 'newStatus'?: string;
1589
+ 'clubId': string;
1590
+ }
1591
+ /**
1592
+ *
1593
+ * @export
1594
+ * @interface ClubPlayerStatisticsResponseMostPlayedPartnersInner
1595
+ */
1596
+ export interface ClubPlayerStatisticsResponseMostPlayedPartnersInner {
1260
1597
  /**
1261
- * Statut actuel
1598
+ *
1599
+ * @type {number}
1600
+ * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1601
+ */
1602
+ 'bookingsTogether': number;
1603
+ /**
1604
+ *
1262
1605
  * @type {string}
1263
- * @memberof CheckedInPlayer
1606
+ * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1264
1607
  */
1265
- 'status'?: string;
1608
+ 'lastName': string | null;
1266
1609
  /**
1267
1610
  *
1268
- * @type {PaymentMethod}
1269
- * @memberof CheckedInPlayer
1611
+ * @type {string}
1612
+ * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1270
1613
  */
1271
- 'paymentMethod'?: PaymentMethod;
1614
+ 'firstName': string | null;
1272
1615
  /**
1273
- * Note additionnelle
1616
+ *
1274
1617
  * @type {string}
1275
- * @memberof CheckedInPlayer
1618
+ * @memberof ClubPlayerStatisticsResponseMostPlayedPartnersInner
1276
1619
  */
1277
- 'note'?: string;
1620
+ 'userId': string;
1278
1621
  }
1279
-
1280
-
1281
1622
  /**
1282
1623
  *
1283
1624
  * @export
1284
- * @interface ClubMemberResponse
1625
+ * @interface ClubPlayerSubscriptionSummary
1285
1626
  */
1286
- export interface ClubMemberResponse {
1627
+ export interface ClubPlayerSubscriptionSummary {
1287
1628
  /**
1288
- *
1289
- * @type {ClubMemberResponseUser}
1290
- * @memberof ClubMemberResponse
1629
+ * ID du plan d\'abonnement
1630
+ * @type {string}
1631
+ * @memberof ClubPlayerSubscriptionSummary
1291
1632
  */
1292
- 'user': ClubMemberResponseUser;
1633
+ 'id': string;
1293
1634
  /**
1294
- * Rôle du membre dans le club
1635
+ * Nom du plan
1295
1636
  * @type {string}
1296
- * @memberof ClubMemberResponse
1637
+ * @memberof ClubPlayerSubscriptionSummary
1297
1638
  */
1298
- 'role': string;
1639
+ 'name': string | null;
1299
1640
  /**
1300
- * Droits du membre dans le club
1301
- * @type {Array<string>}
1302
- * @memberof ClubMemberResponse
1641
+ * Montant en centimes
1642
+ * @type {number}
1643
+ * @memberof ClubPlayerSubscriptionSummary
1303
1644
  */
1304
- 'rights': Array<string>;
1645
+ 'amountInCents': number | null;
1646
+ /**
1647
+ * Devise
1648
+ * @type {string}
1649
+ * @memberof ClubPlayerSubscriptionSummary
1650
+ */
1651
+ 'currency': string | null;
1652
+ /**
1653
+ * Intervalle de facturation
1654
+ * @type {string}
1655
+ * @memberof ClubPlayerSubscriptionSummary
1656
+ */
1657
+ 'interval': string | null;
1305
1658
  }
1306
1659
  /**
1307
- * Utilisateur (membre)
1660
+ *
1308
1661
  * @export
1309
- * @interface ClubMemberResponseUser
1662
+ * @interface ClubPresentationSettingsResponse
1310
1663
  */
1311
- export interface ClubMemberResponseUser {
1664
+ export interface ClubPresentationSettingsResponse {
1312
1665
  /**
1313
1666
  *
1314
1667
  * @type {string}
1315
- * @memberof ClubMemberResponseUser
1668
+ * @memberof ClubPresentationSettingsResponse
1316
1669
  */
1317
- 'email': string;
1670
+ 'description'?: string;
1318
1671
  /**
1319
1672
  *
1320
- * @type {string}
1321
- * @memberof ClubMemberResponseUser
1673
+ * @type {Array<string>}
1674
+ * @memberof ClubPresentationSettingsResponse
1322
1675
  */
1323
- 'lastName': string;
1676
+ 'tags': Array<string>;
1324
1677
  /**
1325
1678
  *
1326
- * @type {string}
1327
- * @memberof ClubMemberResponseUser
1679
+ * @type {Array<string>}
1680
+ * @memberof ClubPresentationSettingsResponse
1328
1681
  */
1329
- 'firstName': string;
1682
+ 'bannerImages': Array<string>;
1330
1683
  /**
1331
1684
  *
1332
- * @type {string}
1333
- * @memberof ClubMemberResponseUser
1685
+ * @type {Array<string>}
1686
+ * @memberof ClubPresentationSettingsResponse
1334
1687
  */
1335
- 'id': string;
1688
+ 'galleryImages': Array<string>;
1336
1689
  }
1337
1690
  /**
1338
1691
  *
1339
1692
  * @export
1340
- * @interface ClubPlayerResponse
1693
+ * @interface ClubPricingPeriodResponse
1341
1694
  */
1342
- export interface ClubPlayerResponse {
1695
+ export interface ClubPricingPeriodResponse {
1343
1696
  /**
1344
- * ID de l\'utilisateur
1697
+ *
1345
1698
  * @type {string}
1346
- * @memberof ClubPlayerResponse
1699
+ * @memberof ClubPricingPeriodResponse
1347
1700
  */
1348
1701
  'id': string;
1349
1702
  /**
1350
- * Prénom
1703
+ *
1351
1704
  * @type {string}
1352
- * @memberof ClubPlayerResponse
1705
+ * @memberof ClubPricingPeriodResponse
1353
1706
  */
1354
- 'firstName': string;
1707
+ 'name': string;
1355
1708
  /**
1356
- * Nom
1357
- * @type {string}
1358
- * @memberof ClubPlayerResponse
1709
+ *
1710
+ * @type {Array<string>}
1711
+ * @memberof ClubPricingPeriodResponse
1359
1712
  */
1360
- 'lastName': string;
1713
+ 'days': Array<string>;
1361
1714
  /**
1362
- * Genre
1715
+ *
1363
1716
  * @type {string}
1364
- * @memberof ClubPlayerResponse
1717
+ * @memberof ClubPricingPeriodResponse
1365
1718
  */
1366
- 'gender'?: string;
1719
+ 'startTime': string;
1367
1720
  /**
1368
- * Email
1721
+ *
1369
1722
  * @type {string}
1370
- * @memberof ClubPlayerResponse
1723
+ * @memberof ClubPricingPeriodResponse
1371
1724
  */
1372
- 'email': string;
1725
+ 'endTime': string;
1373
1726
  /**
1374
- * Photo de profil
1375
- * @type {string}
1376
- * @memberof ClubPlayerResponse
1727
+ *
1728
+ * @type {number}
1729
+ * @memberof ClubPricingPeriodResponse
1377
1730
  */
1378
- 'profilePicture'?: string;
1731
+ 'variation': number;
1732
+ }
1733
+ /**
1734
+ *
1735
+ * @export
1736
+ * @interface ClubReservationSettingsResponse
1737
+ */
1738
+ export interface ClubReservationSettingsResponse {
1379
1739
  /**
1380
- * Compte vérifié
1381
- * @type {boolean}
1382
- * @memberof ClubPlayerResponse
1740
+ *
1741
+ * @type {number}
1742
+ * @memberof ClubReservationSettingsResponse
1383
1743
  */
1384
- 'isAccountVerified': boolean;
1744
+ 'maxWeeklyBookings': number | null;
1385
1745
  /**
1386
- * Profil visible
1746
+ *
1387
1747
  * @type {boolean}
1388
- * @memberof ClubPlayerResponse
1748
+ * @memberof ClubReservationSettingsResponse
1389
1749
  */
1390
- 'isProfileVisible': boolean;
1750
+ 'unlimitedWeeklyBookings': boolean;
1391
1751
  /**
1392
- * Abonné au club
1393
- * @type {boolean}
1394
- * @memberof ClubPlayerResponse
1752
+ *
1753
+ * @type {number}
1754
+ * @memberof ClubReservationSettingsResponse
1395
1755
  */
1396
- 'isSubscribedToClub': boolean;
1756
+ 'sameTimeBookingsLimit': number;
1757
+ /**
1758
+ *
1759
+ * @type {number}
1760
+ * @memberof ClubReservationSettingsResponse
1761
+ */
1762
+ 'cancellationDelayInHours': number;
1763
+ /**
1764
+ *
1765
+ * @type {number}
1766
+ * @memberof ClubReservationSettingsResponse
1767
+ */
1768
+ 'bookingPeriodInDays': number;
1397
1769
  }
1398
1770
  /**
1399
1771
  *
@@ -1485,30 +1857,6 @@ export interface ClubResponse {
1485
1857
  * @memberof ClubResponse
1486
1858
  */
1487
1859
  'sports'?: Array<string>;
1488
- /**
1489
- * Autoriser plusieurs réservations en même temps
1490
- * @type {boolean}
1491
- * @memberof ClubResponse
1492
- */
1493
- 'allowMultipleBookingsAtTheSameTime'?: boolean | null;
1494
- /**
1495
- * Limite de réservations simultanées (même créneau)
1496
- * @type {number}
1497
- * @memberof ClubResponse
1498
- */
1499
- 'sameTimeBookingsLimit'?: number | null;
1500
- /**
1501
- * Limite d\'annulation en heures
1502
- * @type {number}
1503
- * @memberof ClubResponse
1504
- */
1505
- 'cancellationLimitHours'?: number | null;
1506
- /**
1507
- * Nombre maximum de réservations par semaine
1508
- * @type {number}
1509
- * @memberof ClubResponse
1510
- */
1511
- 'maxWeeklyBookings'?: number | null;
1512
1860
  /**
1513
1861
  *
1514
1862
  * @type {ClubResponseCreatedAt}
@@ -1650,73 +1998,6 @@ export const ClubRoleResponseRoleEnum = {
1650
1998
 
1651
1999
  export type ClubRoleResponseRoleEnum = typeof ClubRoleResponseRoleEnum[keyof typeof ClubRoleResponseRoleEnum];
1652
2000
 
1653
- /**
1654
- * Types TSOA pour les paramètres du club
1655
- * @export
1656
- * @interface ClubSettingsResponse
1657
- */
1658
- export interface ClubSettingsResponse {
1659
- /**
1660
- * ID unique des paramètres
1661
- * @type {string}
1662
- * @memberof ClubSettingsResponse
1663
- */
1664
- '_id': string;
1665
- /**
1666
- * ID du club
1667
- * @type {string}
1668
- * @memberof ClubSettingsResponse
1669
- */
1670
- 'clubId': string;
1671
- /**
1672
- * Nombre maximum de réservations par semaine
1673
- * @type {number}
1674
- * @memberof ClubSettingsResponse
1675
- */
1676
- 'maxWeeklyBookings': number;
1677
- /**
1678
- * Limite de réservations simultanées
1679
- * @type {number}
1680
- * @memberof ClubSettingsResponse
1681
- */
1682
- 'sameTimeBookingsLimit'?: number;
1683
- /**
1684
- * Limite d\'annulation en heures
1685
- * @type {number}
1686
- * @memberof ClubSettingsResponse
1687
- */
1688
- 'cancellationLimitHours': number;
1689
- /**
1690
- * Période de disponibilité en jours
1691
- * @type {number}
1692
- * @memberof ClubSettingsResponse
1693
- */
1694
- 'availabilityPeriodInDays': number;
1695
- /**
1696
- * Liste des sponsors
1697
- * @type {Array<string>}
1698
- * @memberof ClubSettingsResponse
1699
- */
1700
- 'sponsors': Array<string>;
1701
- /**
1702
- * Temps avant paiement en minutes
1703
- * @type {number}
1704
- * @memberof ClubSettingsResponse
1705
- */
1706
- 'timeBeforePayment': number;
1707
- /**
1708
- * Date de création
1709
- * @type {string}
1710
- * @memberof ClubSettingsResponse
1711
- */
1712
- 'createdAt': string;
1713
- /**
1714
- * Date de mise à jour
1715
- * @type {string}
1716
- * @memberof ClubSettingsResponse
1717
- */
1718
- 'updatedAt': string;
1719
- }
1720
2001
  /**
1721
2002
  *
1722
2003
  * @export
@@ -1783,20 +2064,101 @@ export interface ClubSummary {
1783
2064
  * @type {number}
1784
2065
  * @memberof ClubSummary
1785
2066
  */
1786
- 'visitCount'?: number;
2067
+ 'visitCount'?: number;
2068
+ }
2069
+ /**
2070
+ *
2071
+ * @export
2072
+ * @interface ClubUserCountResponse
2073
+ */
2074
+ export interface ClubUserCountResponse {
2075
+ /**
2076
+ * Nombre d\'utilisateurs du club
2077
+ * @type {number}
2078
+ * @memberof ClubUserCountResponse
2079
+ */
2080
+ 'count': number;
2081
+ }
2082
+ /**
2083
+ *
2084
+ * @export
2085
+ * @interface ClubWeeklySchedule
2086
+ */
2087
+ export interface ClubWeeklySchedule {
2088
+ /**
2089
+ *
2090
+ * @type {ClubDaySchedule}
2091
+ * @memberof ClubWeeklySchedule
2092
+ */
2093
+ 'sunday': ClubDaySchedule | null;
2094
+ /**
2095
+ *
2096
+ * @type {ClubDaySchedule}
2097
+ * @memberof ClubWeeklySchedule
2098
+ */
2099
+ 'saturday': ClubDaySchedule | null;
2100
+ /**
2101
+ *
2102
+ * @type {ClubDaySchedule}
2103
+ * @memberof ClubWeeklySchedule
2104
+ */
2105
+ 'friday': ClubDaySchedule | null;
2106
+ /**
2107
+ *
2108
+ * @type {ClubDaySchedule}
2109
+ * @memberof ClubWeeklySchedule
2110
+ */
2111
+ 'thursday': ClubDaySchedule | null;
2112
+ /**
2113
+ *
2114
+ * @type {ClubDaySchedule}
2115
+ * @memberof ClubWeeklySchedule
2116
+ */
2117
+ 'wednesday': ClubDaySchedule | null;
2118
+ /**
2119
+ *
2120
+ * @type {ClubDaySchedule}
2121
+ * @memberof ClubWeeklySchedule
2122
+ */
2123
+ 'tuesday': ClubDaySchedule | null;
2124
+ /**
2125
+ *
2126
+ * @type {ClubDaySchedule}
2127
+ * @memberof ClubWeeklySchedule
2128
+ */
2129
+ 'monday': ClubDaySchedule | null;
2130
+ }
2131
+ /**
2132
+ *
2133
+ * @export
2134
+ * @interface ConfirmPaymentMethodRequestBody
2135
+ */
2136
+ export interface ConfirmPaymentMethodRequestBody {
2137
+ /**
2138
+ *
2139
+ * @type {string}
2140
+ * @memberof ConfirmPaymentMethodRequestBody
2141
+ */
2142
+ 'setupIntentId': string;
1787
2143
  }
1788
2144
  /**
1789
2145
  *
1790
2146
  * @export
1791
- * @interface ClubUserCountResponse
2147
+ * @interface ConfirmPaymentMethodResponse
1792
2148
  */
1793
- export interface ClubUserCountResponse {
2149
+ export interface ConfirmPaymentMethodResponse {
1794
2150
  /**
1795
- * Nombre d\'utilisateurs du club
1796
- * @type {number}
1797
- * @memberof ClubUserCountResponse
2151
+ *
2152
+ * @type {string}
2153
+ * @memberof ConfirmPaymentMethodResponse
1798
2154
  */
1799
- 'count': number;
2155
+ 'message': string;
2156
+ /**
2157
+ *
2158
+ * @type {string}
2159
+ * @memberof ConfirmPaymentMethodResponse
2160
+ */
2161
+ 'paymentMethodId'?: string | null;
1800
2162
  }
1801
2163
  /**
1802
2164
  *
@@ -1960,10 +2322,10 @@ export type CourtStatus = typeof CourtStatus[keyof typeof CourtStatus];
1960
2322
  export interface CreateBookingRequest {
1961
2323
  /**
1962
2324
  * ID du créneau à réserver
1963
- * @type {Array<string>}
2325
+ * @type {string}
1964
2326
  * @memberof CreateBookingRequest
1965
2327
  */
1966
- 'slotIds': Array<string>;
2328
+ 'slotId': string;
1967
2329
  /**
1968
2330
  * Liste des joueurs avec leurs méthodes de paiement
1969
2331
  * @type {Array<PlayerWithPaymentMethod>}
@@ -2044,61 +2406,6 @@ export const CreateClubRoleRequestRoleEnum = {
2044
2406
 
2045
2407
  export type CreateClubRoleRequestRoleEnum = typeof CreateClubRoleRequestRoleEnum[keyof typeof CreateClubRoleRequestRoleEnum];
2046
2408
 
2047
- /**
2048
- *
2049
- * @export
2050
- * @interface CreateClubSettingsRequest
2051
- */
2052
- export interface CreateClubSettingsRequest {
2053
- /**
2054
- * ID du club
2055
- * @type {string}
2056
- * @memberof CreateClubSettingsRequest
2057
- */
2058
- 'clubId': string;
2059
- /**
2060
- * Nombre maximum de réservations par semaine
2061
- * @type {number}
2062
- * @memberof CreateClubSettingsRequest
2063
- */
2064
- 'maxWeeklyBookings'?: number;
2065
- /**
2066
- * Autoriser plusieurs réservations en même temps
2067
- * @type {boolean}
2068
- * @memberof CreateClubSettingsRequest
2069
- */
2070
- 'allowMultipleBookingsAtTheSameTime'?: boolean;
2071
- /**
2072
- * Limite de réservations simultanées
2073
- * @type {number}
2074
- * @memberof CreateClubSettingsRequest
2075
- */
2076
- 'sameTimeBookingsLimit'?: number;
2077
- /**
2078
- * Limite d\'annulation en heures
2079
- * @type {number}
2080
- * @memberof CreateClubSettingsRequest
2081
- */
2082
- 'cancellationLimitHours'?: number;
2083
- /**
2084
- * Période de disponibilité en jours
2085
- * @type {number}
2086
- * @memberof CreateClubSettingsRequest
2087
- */
2088
- 'availabilityPeriodInDays'?: number;
2089
- /**
2090
- * Liste des sponsors
2091
- * @type {Array<string>}
2092
- * @memberof CreateClubSettingsRequest
2093
- */
2094
- 'sponsors'?: Array<string>;
2095
- /**
2096
- * Temps avant paiement en minutes
2097
- * @type {number}
2098
- * @memberof CreateClubSettingsRequest
2099
- */
2100
- 'timeBeforePayment'?: number;
2101
- }
2102
2409
  /**
2103
2410
  *
2104
2411
  * @export
@@ -2211,10 +2518,10 @@ export interface CreateEventRequest {
2211
2518
  'endDate': string;
2212
2519
  /**
2213
2520
  *
2214
- * @type {Array<EventResponseCourtsInner>}
2521
+ * @type {Array<string>}
2215
2522
  * @memberof CreateEventRequest
2216
2523
  */
2217
- 'courts': Array<EventResponseCourtsInner>;
2524
+ 'courts': Array<string>;
2218
2525
  /**
2219
2526
  *
2220
2527
  * @type {Array<string>}
@@ -2275,6 +2582,12 @@ export interface CreateEventRequest {
2275
2582
  * @memberof CreateEventRequest
2276
2583
  */
2277
2584
  'subscriberPrices'?: Array<SubscriberPrice>;
2585
+ /**
2586
+ *
2587
+ * @type {Array<number>}
2588
+ * @memberof CreateEventRequest
2589
+ */
2590
+ 'levels'?: Array<number>;
2278
2591
  /**
2279
2592
  *
2280
2593
  * @type {string}
@@ -2576,19 +2889,6 @@ export interface DeleteClubRoleResponse {
2576
2889
  */
2577
2890
  'message': string;
2578
2891
  }
2579
- /**
2580
- *
2581
- * @export
2582
- * @interface DeleteClubSettingsResponse
2583
- */
2584
- export interface DeleteClubSettingsResponse {
2585
- /**
2586
- * Message de confirmation
2587
- * @type {string}
2588
- * @memberof DeleteClubSettingsResponse
2589
- */
2590
- 'message': string;
2591
- }
2592
2892
  /**
2593
2893
  *
2594
2894
  * @export
@@ -2713,10 +3013,10 @@ export interface EventResponse {
2713
3013
  'endDate': string;
2714
3014
  /**
2715
3015
  *
2716
- * @type {Array<EventResponseCourtsInner>}
3016
+ * @type {Array<string>}
2717
3017
  * @memberof EventResponse
2718
3018
  */
2719
- 'courts': Array<EventResponseCourtsInner>;
3019
+ 'courts': Array<string>;
2720
3020
  /**
2721
3021
  *
2722
3022
  * @type {Array<SportWithLevels>}
@@ -2837,13 +3137,6 @@ export const EventResponseVisibilityTypeEnum = {
2837
3137
 
2838
3138
  export type EventResponseVisibilityTypeEnum = typeof EventResponseVisibilityTypeEnum[keyof typeof EventResponseVisibilityTypeEnum];
2839
3139
 
2840
- /**
2841
- *
2842
- * @export
2843
- * @interface EventResponseCourtsInner
2844
- */
2845
- export interface EventResponseCourtsInner {
2846
- }
2847
3140
  /**
2848
3141
  *
2849
3142
  * @export
@@ -3417,12 +3710,24 @@ export interface IUserAttributes {
3417
3710
  * @memberof IUserAttributes
3418
3711
  */
3419
3712
  'isAccountVerified': boolean;
3713
+ /**
3714
+ *
3715
+ * @type {boolean}
3716
+ * @memberof IUserAttributes
3717
+ */
3718
+ 'isCreditCardRegistered'?: boolean;
3420
3719
  /**
3421
3720
  *
3422
3721
  * @type {Array<ILevelBySports>}
3423
3722
  * @memberof IUserAttributes
3424
3723
  */
3425
3724
  'levelBySports'?: Array<ILevelBySports>;
3725
+ /**
3726
+ *
3727
+ * @type {string}
3728
+ * @memberof IUserAttributes
3729
+ */
3730
+ 'stripeCustomerId'?: string;
3426
3731
  /**
3427
3732
  *
3428
3733
  * @type {string}
@@ -3495,6 +3800,30 @@ export interface IUserAttributes {
3495
3800
  * @memberof IUserAttributes
3496
3801
  */
3497
3802
  'isLevelCertified'?: boolean;
3803
+ /**
3804
+ *
3805
+ * @type {Array<string>}
3806
+ * @memberof IUserAttributes
3807
+ */
3808
+ 'paymentMethods'?: Array<string>;
3809
+ /**
3810
+ *
3811
+ * @type {string}
3812
+ * @memberof IUserAttributes
3813
+ */
3814
+ 'defaultPaymentMethodId'?: string;
3815
+ /**
3816
+ *
3817
+ * @type {boolean}
3818
+ * @memberof IUserAttributes
3819
+ */
3820
+ 'paymentMethodSetupCompleted': boolean;
3821
+ /**
3822
+ *
3823
+ * @type {string}
3824
+ * @memberof IUserAttributes
3825
+ */
3826
+ 'setupIntentId'?: string;
3498
3827
  /**
3499
3828
  *
3500
3829
  * @type {Array<string>}
@@ -3525,12 +3854,6 @@ export interface IUserAttributes {
3525
3854
  * @memberof IUserAttributes
3526
3855
  */
3527
3856
  'sports'?: { [key: string]: any; };
3528
- /**
3529
- *
3530
- * @type {string}
3531
- * @memberof IUserAttributes
3532
- */
3533
- 'stripeCustomerId'?: string;
3534
3857
  }
3535
3858
 
3536
3859
 
@@ -3688,26 +4011,6 @@ export interface InvoiceInfo {
3688
4011
  */
3689
4012
  'status': string;
3690
4013
  }
3691
- /**
3692
- *
3693
- * @export
3694
- * @enum {string}
3695
- */
3696
-
3697
- export const InvoiceStatus = {
3698
- SetupPending: 'setup_pending',
3699
- SetupSuccess: 'setup_success',
3700
- Pending: 'pending',
3701
- Paid: 'paid',
3702
- Failed: 'failed',
3703
- Authorized: 'authorized',
3704
- Canceled: 'canceled',
3705
- Expired: 'expired'
3706
- } as const;
3707
-
3708
- export type InvoiceStatus = typeof InvoiceStatus[keyof typeof InvoiceStatus];
3709
-
3710
-
3711
4014
  /**
3712
4015
  *
3713
4016
  * @export
@@ -4099,41 +4402,66 @@ export interface PartialClubResponse {
4099
4402
  */
4100
4403
  'sports'?: Array<string>;
4101
4404
  /**
4102
- * Autoriser plusieurs réservations en même temps
4103
- * @type {boolean}
4405
+ *
4406
+ * @type {ClubResponseCreatedAt}
4104
4407
  * @memberof PartialClubResponse
4105
4408
  */
4106
- 'allowMultipleBookingsAtTheSameTime'?: boolean;
4409
+ 'createdAt'?: ClubResponseCreatedAt;
4107
4410
  /**
4108
- * Limite de réservations simultanées (même créneau)
4109
- * @type {number}
4411
+ *
4412
+ * @type {ClubResponseUpdatedAt}
4110
4413
  * @memberof PartialClubResponse
4111
4414
  */
4112
- 'sameTimeBookingsLimit'?: number;
4415
+ 'updatedAt'?: ClubResponseUpdatedAt;
4416
+ }
4417
+ /**
4418
+ * Make all properties in T optional
4419
+ * @export
4420
+ * @interface PartialClubWeeklySchedule
4421
+ */
4422
+ export interface PartialClubWeeklySchedule {
4113
4423
  /**
4114
- * Limite d\'annulation en heures
4115
- * @type {number}
4116
- * @memberof PartialClubResponse
4424
+ *
4425
+ * @type {ClubDaySchedule}
4426
+ * @memberof PartialClubWeeklySchedule
4117
4427
  */
4118
- 'cancellationLimitHours'?: number;
4428
+ 'monday'?: ClubDaySchedule;
4119
4429
  /**
4120
- * Nombre maximum de réservations par semaine
4121
- * @type {number}
4122
- * @memberof PartialClubResponse
4430
+ *
4431
+ * @type {ClubDaySchedule}
4432
+ * @memberof PartialClubWeeklySchedule
4123
4433
  */
4124
- 'maxWeeklyBookings'?: number;
4434
+ 'tuesday'?: ClubDaySchedule;
4125
4435
  /**
4126
4436
  *
4127
- * @type {ClubResponseCreatedAt}
4128
- * @memberof PartialClubResponse
4437
+ * @type {ClubDaySchedule}
4438
+ * @memberof PartialClubWeeklySchedule
4129
4439
  */
4130
- 'createdAt'?: ClubResponseCreatedAt;
4440
+ 'wednesday'?: ClubDaySchedule;
4131
4441
  /**
4132
4442
  *
4133
- * @type {ClubResponseUpdatedAt}
4134
- * @memberof PartialClubResponse
4443
+ * @type {ClubDaySchedule}
4444
+ * @memberof PartialClubWeeklySchedule
4135
4445
  */
4136
- 'updatedAt'?: ClubResponseUpdatedAt;
4446
+ 'thursday'?: ClubDaySchedule;
4447
+ /**
4448
+ *
4449
+ * @type {ClubDaySchedule}
4450
+ * @memberof PartialClubWeeklySchedule
4451
+ */
4452
+ 'friday'?: ClubDaySchedule;
4453
+ /**
4454
+ *
4455
+ * @type {ClubDaySchedule}
4456
+ * @memberof PartialClubWeeklySchedule
4457
+ */
4458
+ 'saturday'?: ClubDaySchedule;
4459
+ /**
4460
+ *
4461
+ * @type {ClubDaySchedule}
4462
+ * @memberof PartialClubWeeklySchedule
4463
+ */
4464
+ 'sunday'?: ClubDaySchedule;
4137
4465
  }
4138
4466
  /**
4139
4467
  *
@@ -4182,6 +4510,31 @@ export const PaymentMethod = {
4182
4510
  export type PaymentMethod = typeof PaymentMethod[keyof typeof PaymentMethod];
4183
4511
 
4184
4512
 
4513
+ /**
4514
+ *
4515
+ * @export
4516
+ * @interface PaymentMethodSetupResponse
4517
+ */
4518
+ export interface PaymentMethodSetupResponse {
4519
+ /**
4520
+ *
4521
+ * @type {string}
4522
+ * @memberof PaymentMethodSetupResponse
4523
+ */
4524
+ 'message': string;
4525
+ /**
4526
+ *
4527
+ * @type {Array<string>}
4528
+ * @memberof PaymentMethodSetupResponse
4529
+ */
4530
+ 'paymentMethods': Array<string>;
4531
+ /**
4532
+ *
4533
+ * @type {string}
4534
+ * @memberof PaymentMethodSetupResponse
4535
+ */
4536
+ 'defaultPaymentMethodId'?: string | null;
4537
+ }
4185
4538
  /**
4186
4539
  * From T, pick a set of properties whose keys are in the union K
4187
4540
  * @export
@@ -4434,49 +4787,6 @@ export interface PlayerPaymentInfo {
4434
4787
  }
4435
4788
 
4436
4789
 
4437
- /**
4438
- *
4439
- * @export
4440
- * @interface PlayerPrice
4441
- */
4442
- export interface PlayerPrice {
4443
- /**
4444
- *
4445
- * @type {string}
4446
- * @memberof PlayerPrice
4447
- */
4448
- 'playerId': string;
4449
- /**
4450
- *
4451
- * @type {string}
4452
- * @memberof PlayerPrice
4453
- */
4454
- 'firstName'?: string;
4455
- /**
4456
- *
4457
- * @type {string}
4458
- * @memberof PlayerPrice
4459
- */
4460
- 'lastName'?: string;
4461
- /**
4462
- *
4463
- * @type {Array<SubscriptionInfo>}
4464
- * @memberof PlayerPrice
4465
- */
4466
- 'subscriptions': Array<SubscriptionInfo>;
4467
- /**
4468
- *
4469
- * @type {number}
4470
- * @memberof PlayerPrice
4471
- */
4472
- 'creditAvailablesInCents'?: number;
4473
- /**
4474
- *
4475
- * @type {number}
4476
- * @memberof PlayerPrice
4477
- */
4478
- 'price': number;
4479
- }
4480
4790
  /**
4481
4791
  *
4482
4792
  * @export
@@ -4748,25 +5058,6 @@ export interface PublishEventResponse {
4748
5058
  */
4749
5059
  'event': EventResponse;
4750
5060
  }
4751
- /**
4752
- *
4753
- * @export
4754
- * @interface QuickReservationClubSport
4755
- */
4756
- export interface QuickReservationClubSport {
4757
- /**
4758
- * ID du sport
4759
- * @type {string}
4760
- * @memberof QuickReservationClubSport
4761
- */
4762
- 'id': string;
4763
- /**
4764
- * Clé du sport
4765
- * @type {string}
4766
- * @memberof QuickReservationClubSport
4767
- */
4768
- 'key'?: string;
4769
- }
4770
5061
  /**
4771
5062
  *
4772
5063
  * @export
@@ -4785,12 +5076,6 @@ export interface QuickReservationClubSummary {
4785
5076
  * @memberof QuickReservationClubSummary
4786
5077
  */
4787
5078
  'clubName': string;
4788
- /**
4789
- * Description du club
4790
- * @type {string}
4791
- * @memberof QuickReservationClubSummary
4792
- */
4793
- 'description'?: string;
4794
5079
  /**
4795
5080
  * Distance par rapport à la recherche, en mètres
4796
5081
  * @type {number}
@@ -4809,12 +5094,6 @@ export interface QuickReservationClubSummary {
4809
5094
  * @memberof QuickReservationClubSummary
4810
5095
  */
4811
5096
  'slots': Array<QuickReservationSlotSummary>;
4812
- /**
4813
- * Sports disponibles dans le club
4814
- * @type {Array<QuickReservationClubSport>}
4815
- * @memberof QuickReservationClubSummary
4816
- */
4817
- 'sports'?: Array<QuickReservationClubSport>;
4818
5097
  }
4819
5098
  /**
4820
5099
  * Localisation du club
@@ -5183,26 +5462,64 @@ export interface RequestPasswordReset200Response {
5183
5462
  * @type {string}
5184
5463
  * @memberof RequestPasswordReset200Response
5185
5464
  */
5186
- 'message': string;
5465
+ 'message': string;
5466
+ }
5467
+ /**
5468
+ *
5469
+ * @export
5470
+ * @interface ResetPasswordRequest
5471
+ */
5472
+ export interface ResetPasswordRequest {
5473
+ /**
5474
+ *
5475
+ * @type {string}
5476
+ * @memberof ResetPasswordRequest
5477
+ */
5478
+ 'newPassword'?: string;
5479
+ /**
5480
+ *
5481
+ * @type {string}
5482
+ * @memberof ResetPasswordRequest
5483
+ */
5484
+ 'token'?: string;
5485
+ }
5486
+ /**
5487
+ *
5488
+ * @export
5489
+ * @interface SetupPaymentMethodRequestBody
5490
+ */
5491
+ export interface SetupPaymentMethodRequestBody {
5492
+ /**
5493
+ *
5494
+ * @type {string}
5495
+ * @memberof SetupPaymentMethodRequestBody
5496
+ */
5497
+ 'clubId': string;
5187
5498
  }
5188
5499
  /**
5189
5500
  *
5190
5501
  * @export
5191
- * @interface ResetPasswordRequest
5502
+ * @interface SetupPaymentMethodResponse
5192
5503
  */
5193
- export interface ResetPasswordRequest {
5504
+ export interface SetupPaymentMethodResponse {
5194
5505
  /**
5195
5506
  *
5196
5507
  * @type {string}
5197
- * @memberof ResetPasswordRequest
5508
+ * @memberof SetupPaymentMethodResponse
5198
5509
  */
5199
- 'newPassword'?: string;
5510
+ 'setupIntentId': string;
5200
5511
  /**
5201
5512
  *
5202
5513
  * @type {string}
5203
- * @memberof ResetPasswordRequest
5514
+ * @memberof SetupPaymentMethodResponse
5204
5515
  */
5205
- 'token'?: string;
5516
+ 'clientSecret': string;
5517
+ /**
5518
+ *
5519
+ * @type {string}
5520
+ * @memberof SetupPaymentMethodResponse
5521
+ */
5522
+ 'message': string;
5206
5523
  }
5207
5524
  /**
5208
5525
  *
@@ -5233,7 +5550,7 @@ export interface SlotInfo {
5233
5550
  * @type {CourtInfo}
5234
5551
  * @memberof SlotInfo
5235
5552
  */
5236
- 'courtId': CourtInfo;
5553
+ 'court': CourtInfo;
5237
5554
  }
5238
5555
  /**
5239
5556
  *
@@ -5480,12 +5797,24 @@ export interface StaffUserProfileResponse {
5480
5797
  * @memberof StaffUserProfileResponse
5481
5798
  */
5482
5799
  'isAccountVerified': boolean;
5800
+ /**
5801
+ *
5802
+ * @type {boolean}
5803
+ * @memberof StaffUserProfileResponse
5804
+ */
5805
+ 'isCreditCardRegistered'?: boolean;
5483
5806
  /**
5484
5807
  *
5485
5808
  * @type {Array<ILevelBySports>}
5486
5809
  * @memberof StaffUserProfileResponse
5487
5810
  */
5488
5811
  'levelBySports'?: Array<ILevelBySports>;
5812
+ /**
5813
+ *
5814
+ * @type {string}
5815
+ * @memberof StaffUserProfileResponse
5816
+ */
5817
+ 'stripeCustomerId'?: string;
5489
5818
  /**
5490
5819
  *
5491
5820
  * @type {string}
@@ -5558,6 +5887,30 @@ export interface StaffUserProfileResponse {
5558
5887
  * @memberof StaffUserProfileResponse
5559
5888
  */
5560
5889
  'isLevelCertified'?: boolean;
5890
+ /**
5891
+ *
5892
+ * @type {Array<string>}
5893
+ * @memberof StaffUserProfileResponse
5894
+ */
5895
+ 'paymentMethods'?: Array<string>;
5896
+ /**
5897
+ *
5898
+ * @type {string}
5899
+ * @memberof StaffUserProfileResponse
5900
+ */
5901
+ 'defaultPaymentMethodId'?: string;
5902
+ /**
5903
+ *
5904
+ * @type {boolean}
5905
+ * @memberof StaffUserProfileResponse
5906
+ */
5907
+ 'paymentMethodSetupCompleted': boolean;
5908
+ /**
5909
+ *
5910
+ * @type {string}
5911
+ * @memberof StaffUserProfileResponse
5912
+ */
5913
+ 'setupIntentId'?: string;
5561
5914
  /**
5562
5915
  *
5563
5916
  * @type {Array<string>}
@@ -5588,12 +5941,6 @@ export interface StaffUserProfileResponse {
5588
5941
  * @memberof StaffUserProfileResponse
5589
5942
  */
5590
5943
  'sports'?: { [key: string]: any; };
5591
- /**
5592
- *
5593
- * @type {string}
5594
- * @memberof StaffUserProfileResponse
5595
- */
5596
- 'stripeCustomerId'?: string;
5597
5944
  /**
5598
5945
  *
5599
5946
  * @type {boolean}
@@ -6887,12 +7234,6 @@ export interface SubscribeRequestBody {
6887
7234
  * @memberof SubscribeRequestBody
6888
7235
  */
6889
7236
  'priceId': string;
6890
- /**
6891
- *
6892
- * @type {boolean}
6893
- * @memberof SubscribeRequestBody
6894
- */
6895
- 'useDefaultPaymentMethod'?: boolean;
6896
7237
  }
6897
7238
  /**
6898
7239
  *
@@ -6913,31 +7254,6 @@ export interface SubscriberPrice {
6913
7254
  */
6914
7255
  'amount': number;
6915
7256
  }
6916
- /**
6917
- *
6918
- * @export
6919
- * @interface SubscriptionInfo
6920
- */
6921
- export interface SubscriptionInfo {
6922
- /**
6923
- *
6924
- * @type {string}
6925
- * @memberof SubscriptionInfo
6926
- */
6927
- 'subscriptionPlanName'?: string;
6928
- /**
6929
- *
6930
- * @type {string}
6931
- * @memberof SubscriptionInfo
6932
- */
6933
- 'subscriptionDescription'?: string;
6934
- /**
6935
- *
6936
- * @type {number}
6937
- * @memberof SubscriptionInfo
6938
- */
6939
- 'reducedAmountInCents'?: number;
6940
- }
6941
7257
  /**
6942
7258
  *
6943
7259
  * @export
@@ -7055,6 +7371,111 @@ export interface UpdateActuality200Response {
7055
7371
  */
7056
7372
  'actuality': any;
7057
7373
  }
7374
+ /**
7375
+ *
7376
+ * @export
7377
+ * @interface UpdateClubGeneralSettingsRequest
7378
+ */
7379
+ export interface UpdateClubGeneralSettingsRequest {
7380
+ /**
7381
+ *
7382
+ * @type {string}
7383
+ * @memberof UpdateClubGeneralSettingsRequest
7384
+ */
7385
+ 'name'?: string;
7386
+ /**
7387
+ *
7388
+ * @type {string}
7389
+ * @memberof UpdateClubGeneralSettingsRequest
7390
+ */
7391
+ 'email'?: string;
7392
+ /**
7393
+ *
7394
+ * @type {string}
7395
+ * @memberof UpdateClubGeneralSettingsRequest
7396
+ */
7397
+ 'phone'?: string;
7398
+ /**
7399
+ *
7400
+ * @type {string}
7401
+ * @memberof UpdateClubGeneralSettingsRequest
7402
+ */
7403
+ 'websiteUrl'?: string;
7404
+ /**
7405
+ *
7406
+ * @type {string}
7407
+ * @memberof UpdateClubGeneralSettingsRequest
7408
+ */
7409
+ 'description'?: string;
7410
+ /**
7411
+ *
7412
+ * @type {string}
7413
+ * @memberof UpdateClubGeneralSettingsRequest
7414
+ */
7415
+ 'rib'?: string | null;
7416
+ /**
7417
+ *
7418
+ * @type {string}
7419
+ * @memberof UpdateClubGeneralSettingsRequest
7420
+ */
7421
+ 'logo'?: string | null;
7422
+ /**
7423
+ *
7424
+ * @type {ClubLocationSettings}
7425
+ * @memberof UpdateClubGeneralSettingsRequest
7426
+ */
7427
+ 'location'?: ClubLocationSettings;
7428
+ }
7429
+ /**
7430
+ *
7431
+ * @export
7432
+ * @interface UpdateClubHoursSettingsRequest
7433
+ */
7434
+ export interface UpdateClubHoursSettingsRequest {
7435
+ /**
7436
+ *
7437
+ * @type {PartialClubWeeklySchedule}
7438
+ * @memberof UpdateClubHoursSettingsRequest
7439
+ */
7440
+ 'schedule'?: PartialClubWeeklySchedule;
7441
+ /**
7442
+ *
7443
+ * @type {Array<ClubPricingPeriodResponse>}
7444
+ * @memberof UpdateClubHoursSettingsRequest
7445
+ */
7446
+ 'pricingPeriods'?: Array<ClubPricingPeriodResponse>;
7447
+ }
7448
+ /**
7449
+ *
7450
+ * @export
7451
+ * @interface UpdateClubPresentationSettingsRequest
7452
+ */
7453
+ export interface UpdateClubPresentationSettingsRequest {
7454
+ /**
7455
+ *
7456
+ * @type {string}
7457
+ * @memberof UpdateClubPresentationSettingsRequest
7458
+ */
7459
+ 'description'?: string;
7460
+ /**
7461
+ *
7462
+ * @type {Array<string>}
7463
+ * @memberof UpdateClubPresentationSettingsRequest
7464
+ */
7465
+ 'tags'?: Array<string>;
7466
+ /**
7467
+ *
7468
+ * @type {Array<string | null>}
7469
+ * @memberof UpdateClubPresentationSettingsRequest
7470
+ */
7471
+ 'bannerImages'?: Array<string | null>;
7472
+ /**
7473
+ *
7474
+ * @type {Array<string | null>}
7475
+ * @memberof UpdateClubPresentationSettingsRequest
7476
+ */
7477
+ 'galleryImages'?: Array<string | null>;
7478
+ }
7058
7479
  /**
7059
7480
  *
7060
7481
  * @export
@@ -7166,6 +7587,43 @@ export interface UpdateClubRequestLocationCoordinates {
7166
7587
  */
7167
7588
  'lat'?: number;
7168
7589
  }
7590
+ /**
7591
+ *
7592
+ * @export
7593
+ * @interface UpdateClubReservationSettingsRequest
7594
+ */
7595
+ export interface UpdateClubReservationSettingsRequest {
7596
+ /**
7597
+ *
7598
+ * @type {number}
7599
+ * @memberof UpdateClubReservationSettingsRequest
7600
+ */
7601
+ 'maxWeeklyBookings': number | null;
7602
+ /**
7603
+ *
7604
+ * @type {boolean}
7605
+ * @memberof UpdateClubReservationSettingsRequest
7606
+ */
7607
+ 'unlimitedWeeklyBookings': boolean;
7608
+ /**
7609
+ *
7610
+ * @type {number}
7611
+ * @memberof UpdateClubReservationSettingsRequest
7612
+ */
7613
+ 'sameTimeBookingsLimit': number;
7614
+ /**
7615
+ *
7616
+ * @type {number}
7617
+ * @memberof UpdateClubReservationSettingsRequest
7618
+ */
7619
+ 'cancellationDelayInHours': number;
7620
+ /**
7621
+ *
7622
+ * @type {number}
7623
+ * @memberof UpdateClubReservationSettingsRequest
7624
+ */
7625
+ 'bookingPeriodInDays': number;
7626
+ }
7169
7627
  /**
7170
7628
  *
7171
7629
  * @export
@@ -7194,55 +7652,6 @@ export const UpdateClubRoleRequestRoleEnum = {
7194
7652
 
7195
7653
  export type UpdateClubRoleRequestRoleEnum = typeof UpdateClubRoleRequestRoleEnum[keyof typeof UpdateClubRoleRequestRoleEnum];
7196
7654
 
7197
- /**
7198
- *
7199
- * @export
7200
- * @interface UpdateClubSettingsRequest
7201
- */
7202
- export interface UpdateClubSettingsRequest {
7203
- /**
7204
- * Nombre maximum de réservations par semaine
7205
- * @type {number}
7206
- * @memberof UpdateClubSettingsRequest
7207
- */
7208
- 'maxWeeklyBookings'?: number;
7209
- /**
7210
- * Autoriser plusieurs réservations en même temps
7211
- * @type {boolean}
7212
- * @memberof UpdateClubSettingsRequest
7213
- */
7214
- 'allowMultipleBookingsAtTheSameTime'?: boolean;
7215
- /**
7216
- * Limite de réservations simultanées
7217
- * @type {number}
7218
- * @memberof UpdateClubSettingsRequest
7219
- */
7220
- 'sameTimeBookingsLimit'?: number;
7221
- /**
7222
- * Limite d\'annulation en heures
7223
- * @type {number}
7224
- * @memberof UpdateClubSettingsRequest
7225
- */
7226
- 'cancellationLimitHours'?: number;
7227
- /**
7228
- * Période de disponibilité en jours
7229
- * @type {number}
7230
- * @memberof UpdateClubSettingsRequest
7231
- */
7232
- 'availabilityPeriodInDays'?: number;
7233
- /**
7234
- * Liste des sponsors
7235
- * @type {Array<string>}
7236
- * @memberof UpdateClubSettingsRequest
7237
- */
7238
- 'sponsors'?: Array<string>;
7239
- /**
7240
- * Temps avant paiement en minutes
7241
- * @type {number}
7242
- * @memberof UpdateClubSettingsRequest
7243
- */
7244
- 'timeBeforePayment'?: number;
7245
- }
7246
7655
  /**
7247
7656
  *
7248
7657
  * @export
@@ -7319,10 +7728,10 @@ export interface UpdateEventRequest {
7319
7728
  'endDate'?: string;
7320
7729
  /**
7321
7730
  *
7322
- * @type {Array<EventResponseCourtsInner>}
7731
+ * @type {Array<string>}
7323
7732
  * @memberof UpdateEventRequest
7324
7733
  */
7325
- 'courts'?: Array<EventResponseCourtsInner>;
7734
+ 'courts'?: Array<string>;
7326
7735
  /**
7327
7736
  *
7328
7737
  * @type {Array<string>}
@@ -7589,43 +7998,6 @@ export interface UpdateUserRequestBodyLevelBySportsInner {
7589
7998
  */
7590
7999
  'sport': string;
7591
8000
  }
7592
- /**
7593
- *
7594
- * @export
7595
- * @interface UserBookingsResponse
7596
- */
7597
- export interface UserBookingsResponse {
7598
- /**
7599
- *
7600
- * @type {number}
7601
- * @memberof UserBookingsResponse
7602
- */
7603
- 'total': number;
7604
- /**
7605
- *
7606
- * @type {number}
7607
- * @memberof UserBookingsResponse
7608
- */
7609
- 'limit': number;
7610
- /**
7611
- *
7612
- * @type {number}
7613
- * @memberof UserBookingsResponse
7614
- */
7615
- 'skip': number;
7616
- /**
7617
- *
7618
- * @type {boolean}
7619
- * @memberof UserBookingsResponse
7620
- */
7621
- 'hasMore': boolean;
7622
- /**
7623
- *
7624
- * @type {Array<BookingSummary>}
7625
- * @memberof UserBookingsResponse
7626
- */
7627
- 'bookings': Array<BookingSummary>;
7628
- }
7629
8001
  /**
7630
8002
  *
7631
8003
  * @export
@@ -7890,12 +8262,24 @@ export interface UserProfileResponse {
7890
8262
  * @memberof UserProfileResponse
7891
8263
  */
7892
8264
  'isAccountVerified': boolean;
8265
+ /**
8266
+ *
8267
+ * @type {boolean}
8268
+ * @memberof UserProfileResponse
8269
+ */
8270
+ 'isCreditCardRegistered'?: boolean;
7893
8271
  /**
7894
8272
  *
7895
8273
  * @type {Array<ILevelBySports>}
7896
8274
  * @memberof UserProfileResponse
7897
8275
  */
7898
8276
  'levelBySports'?: Array<ILevelBySports>;
8277
+ /**
8278
+ *
8279
+ * @type {string}
8280
+ * @memberof UserProfileResponse
8281
+ */
8282
+ 'stripeCustomerId'?: string;
7899
8283
  /**
7900
8284
  *
7901
8285
  * @type {string}
@@ -7961,13 +8345,37 @@ export interface UserProfileResponse {
7961
8345
  * @type {string}
7962
8346
  * @memberof UserProfileResponse
7963
8347
  */
7964
- 'updatedAt': string;
8348
+ 'updatedAt': string;
8349
+ /**
8350
+ *
8351
+ * @type {boolean}
8352
+ * @memberof UserProfileResponse
8353
+ */
8354
+ 'isLevelCertified'?: boolean;
8355
+ /**
8356
+ *
8357
+ * @type {Array<string>}
8358
+ * @memberof UserProfileResponse
8359
+ */
8360
+ 'paymentMethods'?: Array<string>;
8361
+ /**
8362
+ *
8363
+ * @type {string}
8364
+ * @memberof UserProfileResponse
8365
+ */
8366
+ 'defaultPaymentMethodId'?: string;
8367
+ /**
8368
+ *
8369
+ * @type {boolean}
8370
+ * @memberof UserProfileResponse
8371
+ */
8372
+ 'paymentMethodSetupCompleted': boolean;
7965
8373
  /**
7966
8374
  *
7967
- * @type {boolean}
8375
+ * @type {string}
7968
8376
  * @memberof UserProfileResponse
7969
8377
  */
7970
- 'isLevelCertified'?: boolean;
8378
+ 'setupIntentId'?: string;
7971
8379
  /**
7972
8380
  *
7973
8381
  * @type {Array<string>}
@@ -7998,12 +8406,6 @@ export interface UserProfileResponse {
7998
8406
  * @memberof UserProfileResponse
7999
8407
  */
8000
8408
  'sports'?: { [key: string]: any; };
8001
- /**
8002
- *
8003
- * @type {string}
8004
- * @memberof UserProfileResponse
8005
- */
8006
- 'stripeCustomerId'?: string;
8007
8409
  /**
8008
8410
  *
8009
8411
  * @type {number}
@@ -8040,12 +8442,6 @@ export interface UserProfileResponse {
8040
8442
  * @memberof UserProfileResponse
8041
8443
  */
8042
8444
  'stripeLinks'?: { [key: string]: any; };
8043
- /**
8044
- *
8045
- * @type {Array<SportResponse>}
8046
- * @memberof UserProfileResponse
8047
- */
8048
- 'verifiedSports'?: Array<SportResponse>;
8049
8445
  }
8050
8446
 
8051
8447
 
@@ -8163,45 +8559,6 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8163
8559
  options: localVarRequestOptions,
8164
8560
  };
8165
8561
  },
8166
- /**
8167
- *
8168
- * @param {BookingPriceBody} bookingPriceBody
8169
- * @param {*} [options] Override http request option.
8170
- * @throws {RequiredError}
8171
- */
8172
- getBookingPrice: async (bookingPriceBody: BookingPriceBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8173
- // verify required parameter 'bookingPriceBody' is not null or undefined
8174
- assertParamExists('getBookingPrice', 'bookingPriceBody', bookingPriceBody)
8175
- const localVarPath = `/api/bookings/booking-price`;
8176
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
8177
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8178
- let baseOptions;
8179
- if (configuration) {
8180
- baseOptions = configuration.baseOptions;
8181
- }
8182
-
8183
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
8184
- const localVarHeaderParameter = {} as any;
8185
- const localVarQueryParameter = {} as any;
8186
-
8187
- // authentication bearerAuth required
8188
- // http bearer authentication required
8189
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
8190
-
8191
-
8192
-
8193
- localVarHeaderParameter['Content-Type'] = 'application/json';
8194
-
8195
- setSearchParams(localVarUrlObj, localVarQueryParameter);
8196
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8197
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
8198
- localVarRequestOptions.data = serializeDataIfNeeded(bookingPriceBody, localVarRequestOptions, configuration)
8199
-
8200
- return {
8201
- url: toPathString(localVarUrlObj),
8202
- options: localVarRequestOptions,
8203
- };
8204
- },
8205
8562
  /**
8206
8563
  * Recherche des créneaux disponibles pour une réservation rapide
8207
8564
  * @param {number} [latitude]
@@ -8212,13 +8569,12 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8212
8569
  * @param {string} [startTime]
8213
8570
  * @param {number} [priceMax]
8214
8571
  * @param {string} [courtTypes]
8215
- * @param {string} [surfaceTypes]
8216
8572
  * @param {number} [limitPerClub]
8217
8573
  * @param {number} [maxClubs]
8218
8574
  * @param {*} [options] Override http request option.
8219
8575
  * @throws {RequiredError}
8220
8576
  */
8221
- 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> => {
8577
+ getQuickReservationSlots: async (latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
8222
8578
  const localVarPath = `/api/bookings/quick-reservations`;
8223
8579
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
8224
8580
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8263,12 +8619,8 @@ export const BookingsApiAxiosParamCreator = function (configuration?: Configurat
8263
8619
  localVarQueryParameter['courtTypes'] = courtTypes;
8264
8620
  }
8265
8621
 
8266
- if (surfaceTypes !== undefined) {
8267
- localVarQueryParameter['surfaceTypes'] = surfaceTypes;
8268
- }
8269
-
8270
8622
  if (limitPerClub !== undefined) {
8271
- localVarQueryParameter['_limitPerClub'] = limitPerClub;
8623
+ localVarQueryParameter['limitPerClub'] = limitPerClub;
8272
8624
  }
8273
8625
 
8274
8626
  if (maxClubs !== undefined) {
@@ -8308,18 +8660,6 @@ export const BookingsApiFp = function(configuration?: Configuration) {
8308
8660
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingHistory']?.[localVarOperationServerIndex]?.url;
8309
8661
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8310
8662
  },
8311
- /**
8312
- *
8313
- * @param {BookingPriceBody} bookingPriceBody
8314
- * @param {*} [options] Override http request option.
8315
- * @throws {RequiredError}
8316
- */
8317
- async getBookingPrice(bookingPriceBody: BookingPriceBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPriceResponse>> {
8318
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingPrice(bookingPriceBody, options);
8319
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8320
- const localVarOperationServerBasePath = operationServerMap['BookingsApi.getBookingPrice']?.[localVarOperationServerIndex]?.url;
8321
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8322
- },
8323
8663
  /**
8324
8664
  * Recherche des créneaux disponibles pour une réservation rapide
8325
8665
  * @param {number} [latitude]
@@ -8330,14 +8670,13 @@ export const BookingsApiFp = function(configuration?: Configuration) {
8330
8670
  * @param {string} [startTime]
8331
8671
  * @param {number} [priceMax]
8332
8672
  * @param {string} [courtTypes]
8333
- * @param {string} [surfaceTypes]
8334
8673
  * @param {number} [limitPerClub]
8335
8674
  * @param {number} [maxClubs]
8336
8675
  * @param {*} [options] Override http request option.
8337
8676
  * @throws {RequiredError}
8338
8677
  */
8339
- 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>> {
8340
- const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, surfaceTypes, limitPerClub, maxClubs, options);
8678
+ async getQuickReservationSlots(latitude?: number, longitude?: number, radiusInKm?: number, date?: string, sportId?: string, startTime?: string, priceMax?: number, courtTypes?: string, limitPerClub?: number, maxClubs?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<QuickReservationResponse>> {
8679
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getQuickReservationSlots(latitude, longitude, radiusInKm, date, sportId, startTime, priceMax, courtTypes, limitPerClub, maxClubs, options);
8341
8680
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
8342
8681
  const localVarOperationServerBasePath = operationServerMap['BookingsApi.getQuickReservationSlots']?.[localVarOperationServerIndex]?.url;
8343
8682
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -8361,15 +8700,6 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
8361
8700
  getBookingHistory(requestParameters: BookingsApiGetBookingHistoryRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingHistoryPopulated> {
8362
8701
  return localVarFp.getBookingHistory(requestParameters.bookingId, options).then((request) => request(axios, basePath));
8363
8702
  },
8364
- /**
8365
- *
8366
- * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
8367
- * @param {*} [options] Override http request option.
8368
- * @throws {RequiredError}
8369
- */
8370
- getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingPriceResponse> {
8371
- return localVarFp.getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(axios, basePath));
8372
- },
8373
8703
  /**
8374
8704
  * Recherche des créneaux disponibles pour une réservation rapide
8375
8705
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -8377,7 +8707,7 @@ export const BookingsApiFactory = function (configuration?: Configuration, baseP
8377
8707
  * @throws {RequiredError}
8378
8708
  */
8379
8709
  getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<QuickReservationResponse> {
8380
- 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));
8710
+ return localVarFp.getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(axios, basePath));
8381
8711
  },
8382
8712
  };
8383
8713
  };
@@ -8396,20 +8726,6 @@ export interface BookingsApiGetBookingHistoryRequest {
8396
8726
  readonly bookingId: string
8397
8727
  }
8398
8728
 
8399
- /**
8400
- * Request parameters for getBookingPrice operation in BookingsApi.
8401
- * @export
8402
- * @interface BookingsApiGetBookingPriceRequest
8403
- */
8404
- export interface BookingsApiGetBookingPriceRequest {
8405
- /**
8406
- *
8407
- * @type {BookingPriceBody}
8408
- * @memberof BookingsApiGetBookingPrice
8409
- */
8410
- readonly bookingPriceBody: BookingPriceBody
8411
- }
8412
-
8413
8729
  /**
8414
8730
  * Request parameters for getQuickReservationSlots operation in BookingsApi.
8415
8731
  * @export
@@ -8472,13 +8788,6 @@ export interface BookingsApiGetQuickReservationSlotsRequest {
8472
8788
  */
8473
8789
  readonly courtTypes?: string
8474
8790
 
8475
- /**
8476
- *
8477
- * @type {string}
8478
- * @memberof BookingsApiGetQuickReservationSlots
8479
- */
8480
- readonly surfaceTypes?: string
8481
-
8482
8791
  /**
8483
8792
  *
8484
8793
  * @type {number}
@@ -8512,17 +8821,6 @@ export class BookingsApi extends BaseAPI {
8512
8821
  return BookingsApiFp(this.configuration).getBookingHistory(requestParameters.bookingId, options).then((request) => request(this.axios, this.basePath));
8513
8822
  }
8514
8823
 
8515
- /**
8516
- *
8517
- * @param {BookingsApiGetBookingPriceRequest} requestParameters Request parameters.
8518
- * @param {*} [options] Override http request option.
8519
- * @throws {RequiredError}
8520
- * @memberof BookingsApi
8521
- */
8522
- public getBookingPrice(requestParameters: BookingsApiGetBookingPriceRequest, options?: RawAxiosRequestConfig) {
8523
- return BookingsApiFp(this.configuration).getBookingPrice(requestParameters.bookingPriceBody, options).then((request) => request(this.axios, this.basePath));
8524
- }
8525
-
8526
8824
  /**
8527
8825
  * Recherche des créneaux disponibles pour une réservation rapide
8528
8826
  * @param {BookingsApiGetQuickReservationSlotsRequest} requestParameters Request parameters.
@@ -8531,7 +8829,7 @@ export class BookingsApi extends BaseAPI {
8531
8829
  * @memberof BookingsApi
8532
8830
  */
8533
8831
  public getQuickReservationSlots(requestParameters: BookingsApiGetQuickReservationSlotsRequest = {}, options?: RawAxiosRequestConfig) {
8534
- 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));
8832
+ return BookingsApiFp(this.configuration).getQuickReservationSlots(requestParameters.latitude, requestParameters.longitude, requestParameters.radiusInKm, requestParameters.date, requestParameters.sportId, requestParameters.startTime, requestParameters.priceMax, requestParameters.courtTypes, requestParameters.limitPerClub, requestParameters.maxClubs, options).then((request) => request(this.axios, this.basePath));
8535
8833
  }
8536
8834
  }
8537
8835
 
@@ -9711,6 +10009,127 @@ export const ClubAnalyticsStaffApiAxiosParamCreator = function (configuration?:
9711
10009
 
9712
10010
 
9713
10011
 
10012
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10013
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10014
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10015
+
10016
+ return {
10017
+ url: toPathString(localVarUrlObj),
10018
+ options: localVarRequestOptions,
10019
+ };
10020
+ },
10021
+ /**
10022
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10023
+ * @param {string} playerId
10024
+ * @param {number} [page]
10025
+ * @param {number} [pageSize]
10026
+ * @param {*} [options] Override http request option.
10027
+ * @throws {RequiredError}
10028
+ */
10029
+ getClubPlayerBookingsById: async (playerId: string, page?: number, pageSize?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10030
+ // verify required parameter 'playerId' is not null or undefined
10031
+ assertParamExists('getClubPlayerBookingsById', 'playerId', playerId)
10032
+ const localVarPath = `/api/club-analytics/players/{playerId}/bookings`
10033
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
10034
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10035
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10036
+ let baseOptions;
10037
+ if (configuration) {
10038
+ baseOptions = configuration.baseOptions;
10039
+ }
10040
+
10041
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10042
+ const localVarHeaderParameter = {} as any;
10043
+ const localVarQueryParameter = {} as any;
10044
+
10045
+ // authentication bearerAuth required
10046
+ // http bearer authentication required
10047
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10048
+
10049
+ if (page !== undefined) {
10050
+ localVarQueryParameter['page'] = page;
10051
+ }
10052
+
10053
+ if (pageSize !== undefined) {
10054
+ localVarQueryParameter['pageSize'] = pageSize;
10055
+ }
10056
+
10057
+
10058
+
10059
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10060
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10061
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10062
+
10063
+ return {
10064
+ url: toPathString(localVarUrlObj),
10065
+ options: localVarRequestOptions,
10066
+ };
10067
+ },
10068
+ /**
10069
+ * Récupère les informations détaillées d\'un joueur par son ID
10070
+ * @param {string} playerId
10071
+ * @param {*} [options] Override http request option.
10072
+ * @throws {RequiredError}
10073
+ */
10074
+ getClubPlayerById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10075
+ // verify required parameter 'playerId' is not null or undefined
10076
+ assertParamExists('getClubPlayerById', 'playerId', playerId)
10077
+ const localVarPath = `/api/club-analytics/players/{playerId}`
10078
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
10079
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10080
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10081
+ let baseOptions;
10082
+ if (configuration) {
10083
+ baseOptions = configuration.baseOptions;
10084
+ }
10085
+
10086
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10087
+ const localVarHeaderParameter = {} as any;
10088
+ const localVarQueryParameter = {} as any;
10089
+
10090
+ // authentication bearerAuth required
10091
+ // http bearer authentication required
10092
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10093
+
10094
+
10095
+
10096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
10097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10098
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
10099
+
10100
+ return {
10101
+ url: toPathString(localVarUrlObj),
10102
+ options: localVarRequestOptions,
10103
+ };
10104
+ },
10105
+ /**
10106
+ * Récupère les statistiques d\'un joueur pour le staff
10107
+ * @param {string} playerId
10108
+ * @param {*} [options] Override http request option.
10109
+ * @throws {RequiredError}
10110
+ */
10111
+ getClubPlayerStatisticsById: async (playerId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
10112
+ // verify required parameter 'playerId' is not null or undefined
10113
+ assertParamExists('getClubPlayerStatisticsById', 'playerId', playerId)
10114
+ const localVarPath = `/api/club-analytics/players/{playerId}/statistics`
10115
+ .replace(`{${"playerId"}}`, encodeURIComponent(String(playerId)));
10116
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
10117
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
10118
+ let baseOptions;
10119
+ if (configuration) {
10120
+ baseOptions = configuration.baseOptions;
10121
+ }
10122
+
10123
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
10124
+ const localVarHeaderParameter = {} as any;
10125
+ const localVarQueryParameter = {} as any;
10126
+
10127
+ // authentication bearerAuth required
10128
+ // http bearer authentication required
10129
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
10130
+
10131
+
10132
+
9714
10133
  setSearchParams(localVarUrlObj, localVarQueryParameter);
9715
10134
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9716
10135
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10077,6 +10496,44 @@ export const ClubAnalyticsStaffApiFp = function(configuration?: Configuration) {
10077
10496
  const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getAnalyticsBySport']?.[localVarOperationServerIndex]?.url;
10078
10497
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10079
10498
  },
10499
+ /**
10500
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10501
+ * @param {string} playerId
10502
+ * @param {number} [page]
10503
+ * @param {number} [pageSize]
10504
+ * @param {*} [options] Override http request option.
10505
+ * @throws {RequiredError}
10506
+ */
10507
+ async getClubPlayerBookingsById(playerId: string, page?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerBookingsResponse>> {
10508
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerBookingsById(playerId, page, pageSize, options);
10509
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10510
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerBookingsById']?.[localVarOperationServerIndex]?.url;
10511
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10512
+ },
10513
+ /**
10514
+ * Récupère les informations détaillées d\'un joueur par son ID
10515
+ * @param {string} playerId
10516
+ * @param {*} [options] Override http request option.
10517
+ * @throws {RequiredError}
10518
+ */
10519
+ async getClubPlayerById(playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerDetailResponse>> {
10520
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerById(playerId, options);
10521
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10522
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerById']?.[localVarOperationServerIndex]?.url;
10523
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10524
+ },
10525
+ /**
10526
+ * Récupère les statistiques d\'un joueur pour le staff
10527
+ * @param {string} playerId
10528
+ * @param {*} [options] Override http request option.
10529
+ * @throws {RequiredError}
10530
+ */
10531
+ async getClubPlayerStatisticsById(playerId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPlayerStatisticsResponse>> {
10532
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPlayerStatisticsById(playerId, options);
10533
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
10534
+ const localVarOperationServerBasePath = operationServerMap['ClubAnalyticsStaffApi.getClubPlayerStatisticsById']?.[localVarOperationServerIndex]?.url;
10535
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
10536
+ },
10080
10537
  /**
10081
10538
  * Récupère la liste des joueurs du club
10082
10539
  * @param {*} [options] Override http request option.
@@ -10201,6 +10658,33 @@ export const ClubAnalyticsStaffApiFactory = function (configuration?: Configurat
10201
10658
  getAnalyticsBySport(requestParameters: ClubAnalyticsStaffApiGetAnalyticsBySportRequest, options?: RawAxiosRequestConfig): AxiosPromise<SportAnalyticsResponse> {
10202
10659
  return localVarFp.getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(axios, basePath));
10203
10660
  },
10661
+ /**
10662
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10663
+ * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
10664
+ * @param {*} [options] Override http request option.
10665
+ * @throws {RequiredError}
10666
+ */
10667
+ getClubPlayerBookingsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerBookingsResponse> {
10668
+ return localVarFp.getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(axios, basePath));
10669
+ },
10670
+ /**
10671
+ * Récupère les informations détaillées d\'un joueur par son ID
10672
+ * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
10673
+ * @param {*} [options] Override http request option.
10674
+ * @throws {RequiredError}
10675
+ */
10676
+ getClubPlayerById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerDetailResponse> {
10677
+ return localVarFp.getClubPlayerById(requestParameters.playerId, options).then((request) => request(axios, basePath));
10678
+ },
10679
+ /**
10680
+ * Récupère les statistiques d\'un joueur pour le staff
10681
+ * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
10682
+ * @param {*} [options] Override http request option.
10683
+ * @throws {RequiredError}
10684
+ */
10685
+ getClubPlayerStatisticsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPlayerStatisticsResponse> {
10686
+ return localVarFp.getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(axios, basePath));
10687
+ },
10204
10688
  /**
10205
10689
  * Récupère la liste des joueurs du club
10206
10690
  * @param {*} [options] Override http request option.
@@ -10289,9 +10773,65 @@ export interface ClubAnalyticsStaffApiGetAnalyticsBySportRequest {
10289
10773
  /**
10290
10774
  *
10291
10775
  * @type {string}
10292
- * @memberof ClubAnalyticsStaffApiGetAnalyticsBySport
10776
+ * @memberof ClubAnalyticsStaffApiGetAnalyticsBySport
10777
+ */
10778
+ readonly sportId: string
10779
+ }
10780
+
10781
+ /**
10782
+ * Request parameters for getClubPlayerBookingsById operation in ClubAnalyticsStaffApi.
10783
+ * @export
10784
+ * @interface ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest
10785
+ */
10786
+ export interface ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest {
10787
+ /**
10788
+ *
10789
+ * @type {string}
10790
+ * @memberof ClubAnalyticsStaffApiGetClubPlayerBookingsById
10791
+ */
10792
+ readonly playerId: string
10793
+
10794
+ /**
10795
+ *
10796
+ * @type {number}
10797
+ * @memberof ClubAnalyticsStaffApiGetClubPlayerBookingsById
10798
+ */
10799
+ readonly page?: number
10800
+
10801
+ /**
10802
+ *
10803
+ * @type {number}
10804
+ * @memberof ClubAnalyticsStaffApiGetClubPlayerBookingsById
10805
+ */
10806
+ readonly pageSize?: number
10807
+ }
10808
+
10809
+ /**
10810
+ * Request parameters for getClubPlayerById operation in ClubAnalyticsStaffApi.
10811
+ * @export
10812
+ * @interface ClubAnalyticsStaffApiGetClubPlayerByIdRequest
10813
+ */
10814
+ export interface ClubAnalyticsStaffApiGetClubPlayerByIdRequest {
10815
+ /**
10816
+ *
10817
+ * @type {string}
10818
+ * @memberof ClubAnalyticsStaffApiGetClubPlayerById
10819
+ */
10820
+ readonly playerId: string
10821
+ }
10822
+
10823
+ /**
10824
+ * Request parameters for getClubPlayerStatisticsById operation in ClubAnalyticsStaffApi.
10825
+ * @export
10826
+ * @interface ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest
10827
+ */
10828
+ export interface ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest {
10829
+ /**
10830
+ *
10831
+ * @type {string}
10832
+ * @memberof ClubAnalyticsStaffApiGetClubPlayerStatisticsById
10293
10833
  */
10294
- readonly sportId: string
10834
+ readonly playerId: string
10295
10835
  }
10296
10836
 
10297
10837
  /**
@@ -10382,6 +10922,39 @@ export class ClubAnalyticsStaffApi extends BaseAPI {
10382
10922
  return ClubAnalyticsStaffApiFp(this.configuration).getAnalyticsBySport(requestParameters.sportId, options).then((request) => request(this.axios, this.basePath));
10383
10923
  }
10384
10924
 
10925
+ /**
10926
+ * Récupère les réservations d\'un joueur par son ID (à venir et passées)
10927
+ * @param {ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest} requestParameters Request parameters.
10928
+ * @param {*} [options] Override http request option.
10929
+ * @throws {RequiredError}
10930
+ * @memberof ClubAnalyticsStaffApi
10931
+ */
10932
+ public getClubPlayerBookingsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerBookingsByIdRequest, options?: RawAxiosRequestConfig) {
10933
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerBookingsById(requestParameters.playerId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
10934
+ }
10935
+
10936
+ /**
10937
+ * Récupère les informations détaillées d\'un joueur par son ID
10938
+ * @param {ClubAnalyticsStaffApiGetClubPlayerByIdRequest} requestParameters Request parameters.
10939
+ * @param {*} [options] Override http request option.
10940
+ * @throws {RequiredError}
10941
+ * @memberof ClubAnalyticsStaffApi
10942
+ */
10943
+ public getClubPlayerById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerByIdRequest, options?: RawAxiosRequestConfig) {
10944
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
10945
+ }
10946
+
10947
+ /**
10948
+ * Récupère les statistiques d\'un joueur pour le staff
10949
+ * @param {ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest} requestParameters Request parameters.
10950
+ * @param {*} [options] Override http request option.
10951
+ * @throws {RequiredError}
10952
+ * @memberof ClubAnalyticsStaffApi
10953
+ */
10954
+ public getClubPlayerStatisticsById(requestParameters: ClubAnalyticsStaffApiGetClubPlayerStatisticsByIdRequest, options?: RawAxiosRequestConfig) {
10955
+ return ClubAnalyticsStaffApiFp(this.configuration).getClubPlayerStatisticsById(requestParameters.playerId, options).then((request) => request(this.axios, this.basePath));
10956
+ }
10957
+
10385
10958
  /**
10386
10959
  * Récupère la liste des joueurs du club
10387
10960
  * @param {*} [options] Override http request option.
@@ -11036,19 +11609,15 @@ export class ClubRolesStaffApi extends BaseAPI {
11036
11609
  export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?: Configuration) {
11037
11610
  return {
11038
11611
  /**
11039
- * Crée les paramètres d\'un club
11040
- * @param {string} clubId
11041
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
11612
+ *
11613
+ * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
11042
11614
  * @param {*} [options] Override http request option.
11043
11615
  * @throws {RequiredError}
11044
11616
  */
11045
- createClubSettings: async (clubId: string, createClubSettingsRequest: CreateClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11046
- // verify required parameter 'clubId' is not null or undefined
11047
- assertParamExists('createClubSettings', 'clubId', clubId)
11048
- // verify required parameter 'createClubSettingsRequest' is not null or undefined
11049
- assertParamExists('createClubSettings', 'createClubSettingsRequest', createClubSettingsRequest)
11050
- const localVarPath = `/api/club-settings/{clubId}`
11051
- .replace(`{${"clubId"}}`, encodeURIComponent(String(clubId)));
11617
+ updateClubGeneralSettings: async (updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11618
+ // verify required parameter 'updateClubGeneralSettingsRequest' is not null or undefined
11619
+ assertParamExists('updateClubGeneralSettings', 'updateClubGeneralSettingsRequest', updateClubGeneralSettingsRequest)
11620
+ const localVarPath = `/api/club-settings/settings/general`;
11052
11621
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11053
11622
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11054
11623
  let baseOptions;
@@ -11056,7 +11625,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11056
11625
  baseOptions = configuration.baseOptions;
11057
11626
  }
11058
11627
 
11059
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
11628
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11060
11629
  const localVarHeaderParameter = {} as any;
11061
11630
  const localVarQueryParameter = {} as any;
11062
11631
 
@@ -11071,7 +11640,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11071
11640
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11072
11641
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11073
11642
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11074
- localVarRequestOptions.data = serializeDataIfNeeded(createClubSettingsRequest, localVarRequestOptions, configuration)
11643
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubGeneralSettingsRequest, localVarRequestOptions, configuration)
11075
11644
 
11076
11645
  return {
11077
11646
  url: toPathString(localVarUrlObj),
@@ -11079,11 +11648,14 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11079
11648
  };
11080
11649
  },
11081
11650
  /**
11082
- * Supprime les paramètres d\'un club
11651
+ * Met à jour les paramètres d\'un club
11652
+ * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
11083
11653
  * @param {*} [options] Override http request option.
11084
11654
  * @throws {RequiredError}
11085
11655
  */
11086
- deleteClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11656
+ updateClubSettings: async (updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11657
+ // verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
11658
+ assertParamExists('updateClubSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest)
11087
11659
  const localVarPath = `/api/club-settings`;
11088
11660
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11089
11661
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -11092,7 +11664,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11092
11664
  baseOptions = configuration.baseOptions;
11093
11665
  }
11094
11666
 
11095
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
11667
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11096
11668
  const localVarHeaderParameter = {} as any;
11097
11669
  const localVarQueryParameter = {} as any;
11098
11670
 
@@ -11102,9 +11674,12 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11102
11674
 
11103
11675
 
11104
11676
 
11677
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11678
+
11105
11679
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11106
11680
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11107
11681
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11682
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration)
11108
11683
 
11109
11684
  return {
11110
11685
  url: toPathString(localVarUrlObj),
@@ -11112,12 +11687,15 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11112
11687
  };
11113
11688
  },
11114
11689
  /**
11115
- * Récupère les paramètres d\'un club
11690
+ *
11691
+ * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
11116
11692
  * @param {*} [options] Override http request option.
11117
11693
  * @throws {RequiredError}
11118
11694
  */
11119
- getClubSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11120
- const localVarPath = `/api/club-settings`;
11695
+ updateHoursSettings: async (updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11696
+ // verify required parameter 'updateClubHoursSettingsRequest' is not null or undefined
11697
+ assertParamExists('updateHoursSettings', 'updateClubHoursSettingsRequest', updateClubHoursSettingsRequest)
11698
+ const localVarPath = `/api/club-settings/hours`;
11121
11699
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11122
11700
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11123
11701
  let baseOptions;
@@ -11125,7 +11703,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11125
11703
  baseOptions = configuration.baseOptions;
11126
11704
  }
11127
11705
 
11128
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
11706
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
11129
11707
  const localVarHeaderParameter = {} as any;
11130
11708
  const localVarQueryParameter = {} as any;
11131
11709
 
@@ -11135,9 +11713,12 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11135
11713
 
11136
11714
 
11137
11715
 
11716
+ localVarHeaderParameter['Content-Type'] = 'application/json';
11717
+
11138
11718
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11139
11719
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11140
11720
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11721
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubHoursSettingsRequest, localVarRequestOptions, configuration)
11141
11722
 
11142
11723
  return {
11143
11724
  url: toPathString(localVarUrlObj),
@@ -11145,15 +11726,15 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11145
11726
  };
11146
11727
  },
11147
11728
  /**
11148
- * Met à jour les paramètres d\'un club
11149
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
11729
+ *
11730
+ * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
11150
11731
  * @param {*} [options] Override http request option.
11151
11732
  * @throws {RequiredError}
11152
11733
  */
11153
- updateClubSettings: async (updateClubSettingsRequest: UpdateClubSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11154
- // verify required parameter 'updateClubSettingsRequest' is not null or undefined
11155
- assertParamExists('updateClubSettings', 'updateClubSettingsRequest', updateClubSettingsRequest)
11156
- const localVarPath = `/api/club-settings`;
11734
+ updateReservationSettings: async (updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11735
+ // verify required parameter 'updateClubReservationSettingsRequest' is not null or undefined
11736
+ assertParamExists('updateReservationSettings', 'updateClubReservationSettingsRequest', updateClubReservationSettingsRequest)
11737
+ const localVarPath = `/api/club-settings/reservation`;
11157
11738
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11158
11739
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11159
11740
  let baseOptions;
@@ -11176,7 +11757,7 @@ export const ClubSettingsManagerApiAxiosParamCreator = function (configuration?:
11176
11757
  setSearchParams(localVarUrlObj, localVarQueryParameter);
11177
11758
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11178
11759
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
11179
- localVarRequestOptions.data = serializeDataIfNeeded(updateClubSettingsRequest, localVarRequestOptions, configuration)
11760
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubReservationSettingsRequest, localVarRequestOptions, configuration)
11180
11761
 
11181
11762
  return {
11182
11763
  url: toPathString(localVarUrlObj),
@@ -11194,50 +11775,51 @@ export const ClubSettingsManagerApiFp = function(configuration?: Configuration)
11194
11775
  const localVarAxiosParamCreator = ClubSettingsManagerApiAxiosParamCreator(configuration)
11195
11776
  return {
11196
11777
  /**
11197
- * Crée les paramètres d\'un club
11198
- * @param {string} clubId
11199
- * @param {CreateClubSettingsRequest} createClubSettingsRequest
11778
+ *
11779
+ * @param {UpdateClubGeneralSettingsRequest} updateClubGeneralSettingsRequest
11200
11780
  * @param {*} [options] Override http request option.
11201
11781
  * @throws {RequiredError}
11202
11782
  */
11203
- async createClubSettings(clubId: string, createClubSettingsRequest: CreateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11204
- const localVarAxiosArgs = await localVarAxiosParamCreator.createClubSettings(clubId, createClubSettingsRequest, options);
11783
+ async updateClubGeneralSettings(updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubGeneralSettingsResponse>> {
11784
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubGeneralSettings(updateClubGeneralSettingsRequest, options);
11205
11785
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11206
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.createClubSettings']?.[localVarOperationServerIndex]?.url;
11786
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateClubGeneralSettings']?.[localVarOperationServerIndex]?.url;
11207
11787
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11208
11788
  },
11209
11789
  /**
11210
- * Supprime les paramètres d\'un club
11790
+ * Met à jour les paramètres d\'un club
11791
+ * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
11211
11792
  * @param {*} [options] Override http request option.
11212
11793
  * @throws {RequiredError}
11213
11794
  */
11214
- async deleteClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteClubSettingsResponse>> {
11215
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClubSettings(options);
11795
+ async updateClubSettings(updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubReservationSettingsResponse>> {
11796
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubSettings(updateClubReservationSettingsRequest, options);
11216
11797
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11217
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.deleteClubSettings']?.[localVarOperationServerIndex]?.url;
11798
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateClubSettings']?.[localVarOperationServerIndex]?.url;
11218
11799
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11219
11800
  },
11220
11801
  /**
11221
- * Récupère les paramètres d\'un club
11802
+ *
11803
+ * @param {UpdateClubHoursSettingsRequest} updateClubHoursSettingsRequest
11222
11804
  * @param {*} [options] Override http request option.
11223
11805
  * @throws {RequiredError}
11224
11806
  */
11225
- async getClubSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11226
- const localVarAxiosArgs = await localVarAxiosParamCreator.getClubSettings(options);
11807
+ async updateHoursSettings(updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubHoursSettingsResponse>> {
11808
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateHoursSettings(updateClubHoursSettingsRequest, options);
11227
11809
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11228
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.getClubSettings']?.[localVarOperationServerIndex]?.url;
11810
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateHoursSettings']?.[localVarOperationServerIndex]?.url;
11229
11811
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11230
11812
  },
11231
11813
  /**
11232
- * Met à jour les paramètres d\'un club
11233
- * @param {UpdateClubSettingsRequest} updateClubSettingsRequest
11814
+ *
11815
+ * @param {UpdateClubReservationSettingsRequest} updateClubReservationSettingsRequest
11234
11816
  * @param {*} [options] Override http request option.
11235
11817
  * @throws {RequiredError}
11236
11818
  */
11237
- async updateClubSettings(updateClubSettingsRequest: UpdateClubSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubSettingsResponse>> {
11238
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubSettings(updateClubSettingsRequest, options);
11819
+ async updateReservationSettings(updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubReservationSettingsResponse>> {
11820
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateReservationSettings(updateClubReservationSettingsRequest, options);
11239
11821
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
11240
- const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateClubSettings']?.[localVarOperationServerIndex]?.url;
11822
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsManagerApi.updateReservationSettings']?.[localVarOperationServerIndex]?.url;
11241
11823
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
11242
11824
  },
11243
11825
  }
@@ -11251,61 +11833,56 @@ export const ClubSettingsManagerApiFactory = function (configuration?: Configura
11251
11833
  const localVarFp = ClubSettingsManagerApiFp(configuration)
11252
11834
  return {
11253
11835
  /**
11254
- * Crée les paramètres d\'un club
11255
- * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
11836
+ *
11837
+ * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
11256
11838
  * @param {*} [options] Override http request option.
11257
11839
  * @throws {RequiredError}
11258
11840
  */
11259
- createClubSettings(requestParameters: ClubSettingsManagerApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11260
- return localVarFp.createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(axios, basePath));
11841
+ updateClubGeneralSettings(requestParameters: ClubSettingsManagerApiUpdateClubGeneralSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubGeneralSettingsResponse> {
11842
+ return localVarFp.updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(axios, basePath));
11261
11843
  },
11262
11844
  /**
11263
- * Supprime les paramètres d\'un club
11845
+ * Met à jour les paramètres d\'un club
11846
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
11264
11847
  * @param {*} [options] Override http request option.
11265
11848
  * @throws {RequiredError}
11266
11849
  */
11267
- deleteClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<DeleteClubSettingsResponse> {
11268
- return localVarFp.deleteClubSettings(options).then((request) => request(axios, basePath));
11850
+ updateClubSettings(requestParameters: ClubSettingsManagerApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubReservationSettingsResponse> {
11851
+ return localVarFp.updateClubSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
11269
11852
  },
11270
11853
  /**
11271
- * Récupère les paramètres d\'un club
11854
+ *
11855
+ * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
11272
11856
  * @param {*} [options] Override http request option.
11273
11857
  * @throws {RequiredError}
11274
11858
  */
11275
- getClubSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11276
- return localVarFp.getClubSettings(options).then((request) => request(axios, basePath));
11859
+ updateHoursSettings(requestParameters: ClubSettingsManagerApiUpdateHoursSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubHoursSettingsResponse> {
11860
+ return localVarFp.updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(axios, basePath));
11277
11861
  },
11278
11862
  /**
11279
- * Met à jour les paramètres d\'un club
11280
- * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
11863
+ *
11864
+ * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
11281
11865
  * @param {*} [options] Override http request option.
11282
11866
  * @throws {RequiredError}
11283
11867
  */
11284
- updateClubSettings(requestParameters: ClubSettingsManagerApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubSettingsResponse> {
11285
- return localVarFp.updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(axios, basePath));
11868
+ updateReservationSettings(requestParameters: ClubSettingsManagerApiUpdateReservationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubReservationSettingsResponse> {
11869
+ return localVarFp.updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(axios, basePath));
11286
11870
  },
11287
11871
  };
11288
11872
  };
11289
11873
 
11290
11874
  /**
11291
- * Request parameters for createClubSettings operation in ClubSettingsManagerApi.
11875
+ * Request parameters for updateClubGeneralSettings operation in ClubSettingsManagerApi.
11292
11876
  * @export
11293
- * @interface ClubSettingsManagerApiCreateClubSettingsRequest
11877
+ * @interface ClubSettingsManagerApiUpdateClubGeneralSettingsRequest
11294
11878
  */
11295
- export interface ClubSettingsManagerApiCreateClubSettingsRequest {
11296
- /**
11297
- *
11298
- * @type {string}
11299
- * @memberof ClubSettingsManagerApiCreateClubSettings
11300
- */
11301
- readonly clubId: string
11302
-
11879
+ export interface ClubSettingsManagerApiUpdateClubGeneralSettingsRequest {
11303
11880
  /**
11304
11881
  *
11305
- * @type {CreateClubSettingsRequest}
11306
- * @memberof ClubSettingsManagerApiCreateClubSettings
11882
+ * @type {UpdateClubGeneralSettingsRequest}
11883
+ * @memberof ClubSettingsManagerApiUpdateClubGeneralSettings
11307
11884
  */
11308
- readonly createClubSettingsRequest: CreateClubSettingsRequest
11885
+ readonly updateClubGeneralSettingsRequest: UpdateClubGeneralSettingsRequest
11309
11886
  }
11310
11887
 
11311
11888
  /**
@@ -11316,59 +11893,314 @@ export interface ClubSettingsManagerApiCreateClubSettingsRequest {
11316
11893
  export interface ClubSettingsManagerApiUpdateClubSettingsRequest {
11317
11894
  /**
11318
11895
  *
11319
- * @type {UpdateClubSettingsRequest}
11896
+ * @type {UpdateClubReservationSettingsRequest}
11320
11897
  * @memberof ClubSettingsManagerApiUpdateClubSettings
11321
11898
  */
11322
- readonly updateClubSettingsRequest: UpdateClubSettingsRequest
11899
+ readonly updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest
11323
11900
  }
11324
11901
 
11325
11902
  /**
11326
- * ClubSettingsManagerApi - object-oriented interface
11903
+ * Request parameters for updateHoursSettings operation in ClubSettingsManagerApi.
11904
+ * @export
11905
+ * @interface ClubSettingsManagerApiUpdateHoursSettingsRequest
11906
+ */
11907
+ export interface ClubSettingsManagerApiUpdateHoursSettingsRequest {
11908
+ /**
11909
+ *
11910
+ * @type {UpdateClubHoursSettingsRequest}
11911
+ * @memberof ClubSettingsManagerApiUpdateHoursSettings
11912
+ */
11913
+ readonly updateClubHoursSettingsRequest: UpdateClubHoursSettingsRequest
11914
+ }
11915
+
11916
+ /**
11917
+ * Request parameters for updateReservationSettings operation in ClubSettingsManagerApi.
11918
+ * @export
11919
+ * @interface ClubSettingsManagerApiUpdateReservationSettingsRequest
11920
+ */
11921
+ export interface ClubSettingsManagerApiUpdateReservationSettingsRequest {
11922
+ /**
11923
+ *
11924
+ * @type {UpdateClubReservationSettingsRequest}
11925
+ * @memberof ClubSettingsManagerApiUpdateReservationSettings
11926
+ */
11927
+ readonly updateClubReservationSettingsRequest: UpdateClubReservationSettingsRequest
11928
+ }
11929
+
11930
+ /**
11931
+ * ClubSettingsManagerApi - object-oriented interface
11932
+ * @export
11933
+ * @class ClubSettingsManagerApi
11934
+ * @extends {BaseAPI}
11935
+ */
11936
+ export class ClubSettingsManagerApi extends BaseAPI {
11937
+ /**
11938
+ *
11939
+ * @param {ClubSettingsManagerApiUpdateClubGeneralSettingsRequest} requestParameters Request parameters.
11940
+ * @param {*} [options] Override http request option.
11941
+ * @throws {RequiredError}
11942
+ * @memberof ClubSettingsManagerApi
11943
+ */
11944
+ public updateClubGeneralSettings(requestParameters: ClubSettingsManagerApiUpdateClubGeneralSettingsRequest, options?: RawAxiosRequestConfig) {
11945
+ return ClubSettingsManagerApiFp(this.configuration).updateClubGeneralSettings(requestParameters.updateClubGeneralSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11946
+ }
11947
+
11948
+ /**
11949
+ * Met à jour les paramètres d\'un club
11950
+ * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
11951
+ * @param {*} [options] Override http request option.
11952
+ * @throws {RequiredError}
11953
+ * @memberof ClubSettingsManagerApi
11954
+ */
11955
+ public updateClubSettings(requestParameters: ClubSettingsManagerApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig) {
11956
+ return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11957
+ }
11958
+
11959
+ /**
11960
+ *
11961
+ * @param {ClubSettingsManagerApiUpdateHoursSettingsRequest} requestParameters Request parameters.
11962
+ * @param {*} [options] Override http request option.
11963
+ * @throws {RequiredError}
11964
+ * @memberof ClubSettingsManagerApi
11965
+ */
11966
+ public updateHoursSettings(requestParameters: ClubSettingsManagerApiUpdateHoursSettingsRequest, options?: RawAxiosRequestConfig) {
11967
+ return ClubSettingsManagerApiFp(this.configuration).updateHoursSettings(requestParameters.updateClubHoursSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11968
+ }
11969
+
11970
+ /**
11971
+ *
11972
+ * @param {ClubSettingsManagerApiUpdateReservationSettingsRequest} requestParameters Request parameters.
11973
+ * @param {*} [options] Override http request option.
11974
+ * @throws {RequiredError}
11975
+ * @memberof ClubSettingsManagerApi
11976
+ */
11977
+ public updateReservationSettings(requestParameters: ClubSettingsManagerApiUpdateReservationSettingsRequest, options?: RawAxiosRequestConfig) {
11978
+ return ClubSettingsManagerApiFp(this.configuration).updateReservationSettings(requestParameters.updateClubReservationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11979
+ }
11980
+ }
11981
+
11982
+
11983
+
11984
+ /**
11985
+ * ClubSettingsStaffApi - axios parameter creator
11986
+ * @export
11987
+ */
11988
+ export const ClubSettingsStaffApiAxiosParamCreator = function (configuration?: Configuration) {
11989
+ return {
11990
+ /**
11991
+ *
11992
+ * @param {*} [options] Override http request option.
11993
+ * @throws {RequiredError}
11994
+ */
11995
+ getClubGeneralSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
11996
+ const localVarPath = `/api/club-settings/settings/general`;
11997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
11998
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
11999
+ let baseOptions;
12000
+ if (configuration) {
12001
+ baseOptions = configuration.baseOptions;
12002
+ }
12003
+
12004
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12005
+ const localVarHeaderParameter = {} as any;
12006
+ const localVarQueryParameter = {} as any;
12007
+
12008
+ // authentication bearerAuth required
12009
+ // http bearer authentication required
12010
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12011
+
12012
+
12013
+
12014
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12015
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12016
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12017
+
12018
+ return {
12019
+ url: toPathString(localVarUrlObj),
12020
+ options: localVarRequestOptions,
12021
+ };
12022
+ },
12023
+ /**
12024
+ *
12025
+ * @param {*} [options] Override http request option.
12026
+ * @throws {RequiredError}
12027
+ */
12028
+ getHoursSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12029
+ const localVarPath = `/api/club-settings/hours`;
12030
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12031
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12032
+ let baseOptions;
12033
+ if (configuration) {
12034
+ baseOptions = configuration.baseOptions;
12035
+ }
12036
+
12037
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12038
+ const localVarHeaderParameter = {} as any;
12039
+ const localVarQueryParameter = {} as any;
12040
+
12041
+ // authentication bearerAuth required
12042
+ // http bearer authentication required
12043
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12044
+
12045
+
12046
+
12047
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12048
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12049
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12050
+
12051
+ return {
12052
+ url: toPathString(localVarUrlObj),
12053
+ options: localVarRequestOptions,
12054
+ };
12055
+ },
12056
+ /**
12057
+ *
12058
+ * @param {*} [options] Override http request option.
12059
+ * @throws {RequiredError}
12060
+ */
12061
+ getReservationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12062
+ const localVarPath = `/api/club-settings/reservation`;
12063
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12064
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12065
+ let baseOptions;
12066
+ if (configuration) {
12067
+ baseOptions = configuration.baseOptions;
12068
+ }
12069
+
12070
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
12071
+ const localVarHeaderParameter = {} as any;
12072
+ const localVarQueryParameter = {} as any;
12073
+
12074
+ // authentication bearerAuth required
12075
+ // http bearer authentication required
12076
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12077
+
12078
+
12079
+
12080
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12081
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12082
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12083
+
12084
+ return {
12085
+ url: toPathString(localVarUrlObj),
12086
+ options: localVarRequestOptions,
12087
+ };
12088
+ },
12089
+ }
12090
+ };
12091
+
12092
+ /**
12093
+ * ClubSettingsStaffApi - functional programming interface
12094
+ * @export
12095
+ */
12096
+ export const ClubSettingsStaffApiFp = function(configuration?: Configuration) {
12097
+ const localVarAxiosParamCreator = ClubSettingsStaffApiAxiosParamCreator(configuration)
12098
+ return {
12099
+ /**
12100
+ *
12101
+ * @param {*} [options] Override http request option.
12102
+ * @throws {RequiredError}
12103
+ */
12104
+ async getClubGeneralSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubGeneralSettingsResponse>> {
12105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubGeneralSettings(options);
12106
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12107
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getClubGeneralSettings']?.[localVarOperationServerIndex]?.url;
12108
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12109
+ },
12110
+ /**
12111
+ *
12112
+ * @param {*} [options] Override http request option.
12113
+ * @throws {RequiredError}
12114
+ */
12115
+ async getHoursSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubHoursSettingsResponse>> {
12116
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getHoursSettings(options);
12117
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12118
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getHoursSettings']?.[localVarOperationServerIndex]?.url;
12119
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12120
+ },
12121
+ /**
12122
+ *
12123
+ * @param {*} [options] Override http request option.
12124
+ * @throws {RequiredError}
12125
+ */
12126
+ async getReservationSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubReservationSettingsResponse>> {
12127
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getReservationSettings(options);
12128
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12129
+ const localVarOperationServerBasePath = operationServerMap['ClubSettingsStaffApi.getReservationSettings']?.[localVarOperationServerIndex]?.url;
12130
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12131
+ },
12132
+ }
12133
+ };
12134
+
12135
+ /**
12136
+ * ClubSettingsStaffApi - factory interface
12137
+ * @export
12138
+ */
12139
+ export const ClubSettingsStaffApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
12140
+ const localVarFp = ClubSettingsStaffApiFp(configuration)
12141
+ return {
12142
+ /**
12143
+ *
12144
+ * @param {*} [options] Override http request option.
12145
+ * @throws {RequiredError}
12146
+ */
12147
+ getClubGeneralSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubGeneralSettingsResponse> {
12148
+ return localVarFp.getClubGeneralSettings(options).then((request) => request(axios, basePath));
12149
+ },
12150
+ /**
12151
+ *
12152
+ * @param {*} [options] Override http request option.
12153
+ * @throws {RequiredError}
12154
+ */
12155
+ getHoursSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubHoursSettingsResponse> {
12156
+ return localVarFp.getHoursSettings(options).then((request) => request(axios, basePath));
12157
+ },
12158
+ /**
12159
+ *
12160
+ * @param {*} [options] Override http request option.
12161
+ * @throws {RequiredError}
12162
+ */
12163
+ getReservationSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubReservationSettingsResponse> {
12164
+ return localVarFp.getReservationSettings(options).then((request) => request(axios, basePath));
12165
+ },
12166
+ };
12167
+ };
12168
+
12169
+ /**
12170
+ * ClubSettingsStaffApi - object-oriented interface
11327
12171
  * @export
11328
- * @class ClubSettingsManagerApi
12172
+ * @class ClubSettingsStaffApi
11329
12173
  * @extends {BaseAPI}
11330
12174
  */
11331
- export class ClubSettingsManagerApi extends BaseAPI {
11332
- /**
11333
- * Crée les paramètres d\'un club
11334
- * @param {ClubSettingsManagerApiCreateClubSettingsRequest} requestParameters Request parameters.
11335
- * @param {*} [options] Override http request option.
11336
- * @throws {RequiredError}
11337
- * @memberof ClubSettingsManagerApi
11338
- */
11339
- public createClubSettings(requestParameters: ClubSettingsManagerApiCreateClubSettingsRequest, options?: RawAxiosRequestConfig) {
11340
- return ClubSettingsManagerApiFp(this.configuration).createClubSettings(requestParameters.clubId, requestParameters.createClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
11341
- }
11342
-
12175
+ export class ClubSettingsStaffApi extends BaseAPI {
11343
12176
  /**
11344
- * Supprime les paramètres d\'un club
12177
+ *
11345
12178
  * @param {*} [options] Override http request option.
11346
12179
  * @throws {RequiredError}
11347
- * @memberof ClubSettingsManagerApi
12180
+ * @memberof ClubSettingsStaffApi
11348
12181
  */
11349
- public deleteClubSettings(options?: RawAxiosRequestConfig) {
11350
- return ClubSettingsManagerApiFp(this.configuration).deleteClubSettings(options).then((request) => request(this.axios, this.basePath));
12182
+ public getClubGeneralSettings(options?: RawAxiosRequestConfig) {
12183
+ return ClubSettingsStaffApiFp(this.configuration).getClubGeneralSettings(options).then((request) => request(this.axios, this.basePath));
11351
12184
  }
11352
12185
 
11353
12186
  /**
11354
- * Récupère les paramètres d\'un club
12187
+ *
11355
12188
  * @param {*} [options] Override http request option.
11356
12189
  * @throws {RequiredError}
11357
- * @memberof ClubSettingsManagerApi
12190
+ * @memberof ClubSettingsStaffApi
11358
12191
  */
11359
- public getClubSettings(options?: RawAxiosRequestConfig) {
11360
- return ClubSettingsManagerApiFp(this.configuration).getClubSettings(options).then((request) => request(this.axios, this.basePath));
12192
+ public getHoursSettings(options?: RawAxiosRequestConfig) {
12193
+ return ClubSettingsStaffApiFp(this.configuration).getHoursSettings(options).then((request) => request(this.axios, this.basePath));
11361
12194
  }
11362
12195
 
11363
12196
  /**
11364
- * Met à jour les paramètres d\'un club
11365
- * @param {ClubSettingsManagerApiUpdateClubSettingsRequest} requestParameters Request parameters.
12197
+ *
11366
12198
  * @param {*} [options] Override http request option.
11367
12199
  * @throws {RequiredError}
11368
- * @memberof ClubSettingsManagerApi
12200
+ * @memberof ClubSettingsStaffApi
11369
12201
  */
11370
- public updateClubSettings(requestParameters: ClubSettingsManagerApiUpdateClubSettingsRequest, options?: RawAxiosRequestConfig) {
11371
- return ClubSettingsManagerApiFp(this.configuration).updateClubSettings(requestParameters.updateClubSettingsRequest, options).then((request) => request(this.axios, this.basePath));
12202
+ public getReservationSettings(options?: RawAxiosRequestConfig) {
12203
+ return ClubSettingsStaffApiFp(this.configuration).getReservationSettings(options).then((request) => request(this.axios, this.basePath));
11372
12204
  }
11373
12205
  }
11374
12206
 
@@ -12947,6 +13779,45 @@ export const ClubsManagerApiAxiosParamCreator = function (configuration?: Config
12947
13779
  options: localVarRequestOptions,
12948
13780
  };
12949
13781
  },
13782
+ /**
13783
+ *
13784
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
13785
+ * @param {*} [options] Override http request option.
13786
+ * @throws {RequiredError}
13787
+ */
13788
+ updateClubPresentationSettings: async (updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
13789
+ // verify required parameter 'updateClubPresentationSettingsRequest' is not null or undefined
13790
+ assertParamExists('updateClubPresentationSettings', 'updateClubPresentationSettingsRequest', updateClubPresentationSettingsRequest)
13791
+ const localVarPath = `/api/clubs/settings/presentation`;
13792
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
13793
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13794
+ let baseOptions;
13795
+ if (configuration) {
13796
+ baseOptions = configuration.baseOptions;
13797
+ }
13798
+
13799
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
13800
+ const localVarHeaderParameter = {} as any;
13801
+ const localVarQueryParameter = {} as any;
13802
+
13803
+ // authentication bearerAuth required
13804
+ // http bearer authentication required
13805
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
13806
+
13807
+
13808
+
13809
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13810
+
13811
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
13812
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13813
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
13814
+ localVarRequestOptions.data = serializeDataIfNeeded(updateClubPresentationSettingsRequest, localVarRequestOptions, configuration)
13815
+
13816
+ return {
13817
+ url: toPathString(localVarUrlObj),
13818
+ options: localVarRequestOptions,
13819
+ };
13820
+ },
12950
13821
  /**
12951
13822
  *
12952
13823
  * @param {string} courtId
@@ -13236,6 +14107,18 @@ export const ClubsManagerApiFp = function(configuration?: Configuration) {
13236
14107
  const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.updateClubInfos']?.[localVarOperationServerIndex]?.url;
13237
14108
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13238
14109
  },
14110
+ /**
14111
+ *
14112
+ * @param {UpdateClubPresentationSettingsRequest} updateClubPresentationSettingsRequest
14113
+ * @param {*} [options] Override http request option.
14114
+ * @throws {RequiredError}
14115
+ */
14116
+ async updateClubPresentationSettings(updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
14117
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateClubPresentationSettings(updateClubPresentationSettingsRequest, options);
14118
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
14119
+ const localVarOperationServerBasePath = operationServerMap['ClubsManagerApi.updateClubPresentationSettings']?.[localVarOperationServerIndex]?.url;
14120
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14121
+ },
13239
14122
  /**
13240
14123
  *
13241
14124
  * @param {string} courtId
@@ -13415,6 +14298,15 @@ export const ClubsManagerApiFactory = function (configuration?: Configuration, b
13415
14298
  updateClubInfos(requestParameters: ClubsManagerApiUpdateClubInfosRequest, options?: RawAxiosRequestConfig): AxiosPromise<any> {
13416
14299
  return localVarFp.updateClubInfos(requestParameters.body, options).then((request) => request(axios, basePath));
13417
14300
  },
14301
+ /**
14302
+ *
14303
+ * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
14304
+ * @param {*} [options] Override http request option.
14305
+ * @throws {RequiredError}
14306
+ */
14307
+ updateClubPresentationSettings(requestParameters: ClubsManagerApiUpdateClubPresentationSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
14308
+ return localVarFp.updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(axios, basePath));
14309
+ },
13418
14310
  /**
13419
14311
  *
13420
14312
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -13660,6 +14552,20 @@ export interface ClubsManagerApiUpdateClubInfosRequest {
13660
14552
  readonly body: any
13661
14553
  }
13662
14554
 
14555
+ /**
14556
+ * Request parameters for updateClubPresentationSettings operation in ClubsManagerApi.
14557
+ * @export
14558
+ * @interface ClubsManagerApiUpdateClubPresentationSettingsRequest
14559
+ */
14560
+ export interface ClubsManagerApiUpdateClubPresentationSettingsRequest {
14561
+ /**
14562
+ *
14563
+ * @type {UpdateClubPresentationSettingsRequest}
14564
+ * @memberof ClubsManagerApiUpdateClubPresentationSettings
14565
+ */
14566
+ readonly updateClubPresentationSettingsRequest: UpdateClubPresentationSettingsRequest
14567
+ }
14568
+
13663
14569
  /**
13664
14570
  * Request parameters for updateCourt operation in ClubsManagerApi.
13665
14571
  * @export
@@ -13884,6 +14790,17 @@ export class ClubsManagerApi extends BaseAPI {
13884
14790
  return ClubsManagerApiFp(this.configuration).updateClubInfos(requestParameters.body, options).then((request) => request(this.axios, this.basePath));
13885
14791
  }
13886
14792
 
14793
+ /**
14794
+ *
14795
+ * @param {ClubsManagerApiUpdateClubPresentationSettingsRequest} requestParameters Request parameters.
14796
+ * @param {*} [options] Override http request option.
14797
+ * @throws {RequiredError}
14798
+ * @memberof ClubsManagerApi
14799
+ */
14800
+ public updateClubPresentationSettings(requestParameters: ClubsManagerApiUpdateClubPresentationSettingsRequest, options?: RawAxiosRequestConfig) {
14801
+ return ClubsManagerApiFp(this.configuration).updateClubPresentationSettings(requestParameters.updateClubPresentationSettingsRequest, options).then((request) => request(this.axios, this.basePath));
14802
+ }
14803
+
13887
14804
  /**
13888
14805
  *
13889
14806
  * @param {ClubsManagerApiUpdateCourtRequest} requestParameters Request parameters.
@@ -14005,6 +14922,39 @@ export const ClubsStaffApiAxiosParamCreator = function (configuration?: Configur
14005
14922
 
14006
14923
 
14007
14924
 
14925
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
14926
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14927
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
14928
+
14929
+ return {
14930
+ url: toPathString(localVarUrlObj),
14931
+ options: localVarRequestOptions,
14932
+ };
14933
+ },
14934
+ /**
14935
+ *
14936
+ * @param {*} [options] Override http request option.
14937
+ * @throws {RequiredError}
14938
+ */
14939
+ getClubPresentationSettings: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
14940
+ const localVarPath = `/api/clubs/settings/presentation`;
14941
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
14942
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
14943
+ let baseOptions;
14944
+ if (configuration) {
14945
+ baseOptions = configuration.baseOptions;
14946
+ }
14947
+
14948
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
14949
+ const localVarHeaderParameter = {} as any;
14950
+ const localVarQueryParameter = {} as any;
14951
+
14952
+ // authentication bearerAuth required
14953
+ // http bearer authentication required
14954
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
14955
+
14956
+
14957
+
14008
14958
  setSearchParams(localVarUrlObj, localVarQueryParameter);
14009
14959
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14010
14960
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -14193,6 +15143,17 @@ export const ClubsStaffApiFp = function(configuration?: Configuration) {
14193
15143
  const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubMembers']?.[localVarOperationServerIndex]?.url;
14194
15144
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
14195
15145
  },
15146
+ /**
15147
+ *
15148
+ * @param {*} [options] Override http request option.
15149
+ * @throws {RequiredError}
15150
+ */
15151
+ async getClubPresentationSettings(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClubPresentationSettingsResponse>> {
15152
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getClubPresentationSettings(options);
15153
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15154
+ const localVarOperationServerBasePath = operationServerMap['ClubsStaffApi.getClubPresentationSettings']?.[localVarOperationServerIndex]?.url;
15155
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15156
+ },
14196
15157
  /**
14197
15158
  * Récupère les rôles d\'un club
14198
15159
  * @param {*} [options] Override http request option.
@@ -14272,6 +15233,14 @@ export const ClubsStaffApiFactory = function (configuration?: Configuration, bas
14272
15233
  getClubMembers(options?: RawAxiosRequestConfig): AxiosPromise<GetClubMembers200Response> {
14273
15234
  return localVarFp.getClubMembers(options).then((request) => request(axios, basePath));
14274
15235
  },
15236
+ /**
15237
+ *
15238
+ * @param {*} [options] Override http request option.
15239
+ * @throws {RequiredError}
15240
+ */
15241
+ getClubPresentationSettings(options?: RawAxiosRequestConfig): AxiosPromise<ClubPresentationSettingsResponse> {
15242
+ return localVarFp.getClubPresentationSettings(options).then((request) => request(axios, basePath));
15243
+ },
14275
15244
  /**
14276
15245
  * Récupère les rôles d\'un club
14277
15246
  * @param {*} [options] Override http request option.
@@ -14359,6 +15328,16 @@ export class ClubsStaffApi extends BaseAPI {
14359
15328
  return ClubsStaffApiFp(this.configuration).getClubMembers(options).then((request) => request(this.axios, this.basePath));
14360
15329
  }
14361
15330
 
15331
+ /**
15332
+ *
15333
+ * @param {*} [options] Override http request option.
15334
+ * @throws {RequiredError}
15335
+ * @memberof ClubsStaffApi
15336
+ */
15337
+ public getClubPresentationSettings(options?: RawAxiosRequestConfig) {
15338
+ return ClubsStaffApiFp(this.configuration).getClubPresentationSettings(options).then((request) => request(this.axios, this.basePath));
15339
+ }
15340
+
14362
15341
  /**
14363
15342
  * Récupère les rôles d\'un club
14364
15343
  * @param {*} [options] Override http request option.
@@ -15769,161 +16748,64 @@ export interface SportsManagerApiDeleteSportRequest {
15769
16748
  }
15770
16749
 
15771
16750
  /**
15772
- * Request parameters for updateSport operation in SportsManagerApi.
15773
- * @export
15774
- * @interface SportsManagerApiUpdateSportRequest
15775
- */
15776
- export interface SportsManagerApiUpdateSportRequest {
15777
- /**
15778
- *
15779
- * @type {string}
15780
- * @memberof SportsManagerApiUpdateSport
15781
- */
15782
- readonly id: string
15783
-
15784
- /**
15785
- *
15786
- * @type {UpdateSportRequest}
15787
- * @memberof SportsManagerApiUpdateSport
15788
- */
15789
- readonly updateSportRequest: UpdateSportRequest
15790
- }
15791
-
15792
- /**
15793
- * SportsManagerApi - object-oriented interface
15794
- * @export
15795
- * @class SportsManagerApi
15796
- * @extends {BaseAPI}
15797
- */
15798
- export class SportsManagerApi extends BaseAPI {
15799
- /**
15800
- * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
15801
- * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
15802
- * @param {*} [options] Override http request option.
15803
- * @throws {RequiredError}
15804
- * @memberof SportsManagerApi
15805
- */
15806
- public createSport(requestParameters: SportsManagerApiCreateSportRequest, options?: RawAxiosRequestConfig) {
15807
- return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
15808
- }
15809
-
15810
- /**
15811
- * Supprime un sport (interdit si vérifié)
15812
- * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
15813
- * @param {*} [options] Override http request option.
15814
- * @throws {RequiredError}
15815
- * @memberof SportsManagerApi
15816
- */
15817
- public deleteSport(requestParameters: SportsManagerApiDeleteSportRequest, options?: RawAxiosRequestConfig) {
15818
- return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
15819
- }
15820
-
15821
- /**
15822
- * Met à jour un sport (interdit si vérifié)
15823
- * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
15824
- * @param {*} [options] Override http request option.
15825
- * @throws {RequiredError}
15826
- * @memberof SportsManagerApi
15827
- */
15828
- public updateSport(requestParameters: SportsManagerApiUpdateSportRequest, options?: RawAxiosRequestConfig) {
15829
- return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
15830
- }
15831
- }
15832
-
15833
-
15834
-
15835
- /**
15836
- * SportsPublicApi - axios parameter creator
15837
- * @export
15838
- */
15839
- export const SportsPublicApiAxiosParamCreator = function (configuration?: Configuration) {
15840
- return {
15841
- /**
15842
- * Récupère tous les sports vérifiés, accessibles publiquement
15843
- * @param {*} [options] Override http request option.
15844
- * @throws {RequiredError}
15845
- */
15846
- getVerifiedSports: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15847
- const localVarPath = `/api/sports/verified`;
15848
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15849
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15850
- let baseOptions;
15851
- if (configuration) {
15852
- baseOptions = configuration.baseOptions;
15853
- }
15854
-
15855
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
15856
- const localVarHeaderParameter = {} as any;
15857
- const localVarQueryParameter = {} as any;
15858
-
15859
-
15860
-
15861
- setSearchParams(localVarUrlObj, localVarQueryParameter);
15862
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15863
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15864
-
15865
- return {
15866
- url: toPathString(localVarUrlObj),
15867
- options: localVarRequestOptions,
15868
- };
15869
- },
15870
- }
15871
- };
15872
-
15873
- /**
15874
- * SportsPublicApi - functional programming interface
16751
+ * Request parameters for updateSport operation in SportsManagerApi.
15875
16752
  * @export
16753
+ * @interface SportsManagerApiUpdateSportRequest
15876
16754
  */
15877
- export const SportsPublicApiFp = function(configuration?: Configuration) {
15878
- const localVarAxiosParamCreator = SportsPublicApiAxiosParamCreator(configuration)
15879
- return {
15880
- /**
15881
- * Récupère tous les sports vérifiés, accessibles publiquement
15882
- * @param {*} [options] Override http request option.
15883
- * @throws {RequiredError}
15884
- */
15885
- async getVerifiedSports(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SportResponse>>> {
15886
- const localVarAxiosArgs = await localVarAxiosParamCreator.getVerifiedSports(options);
15887
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
15888
- const localVarOperationServerBasePath = operationServerMap['SportsPublicApi.getVerifiedSports']?.[localVarOperationServerIndex]?.url;
15889
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15890
- },
15891
- }
15892
- };
16755
+ export interface SportsManagerApiUpdateSportRequest {
16756
+ /**
16757
+ *
16758
+ * @type {string}
16759
+ * @memberof SportsManagerApiUpdateSport
16760
+ */
16761
+ readonly id: string
15893
16762
 
15894
- /**
15895
- * SportsPublicApi - factory interface
15896
- * @export
15897
- */
15898
- export const SportsPublicApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
15899
- const localVarFp = SportsPublicApiFp(configuration)
15900
- return {
15901
- /**
15902
- * Récupère tous les sports vérifiés, accessibles publiquement
15903
- * @param {*} [options] Override http request option.
15904
- * @throws {RequiredError}
15905
- */
15906
- getVerifiedSports(options?: RawAxiosRequestConfig): AxiosPromise<Array<SportResponse>> {
15907
- return localVarFp.getVerifiedSports(options).then((request) => request(axios, basePath));
15908
- },
15909
- };
15910
- };
16763
+ /**
16764
+ *
16765
+ * @type {UpdateSportRequest}
16766
+ * @memberof SportsManagerApiUpdateSport
16767
+ */
16768
+ readonly updateSportRequest: UpdateSportRequest
16769
+ }
15911
16770
 
15912
16771
  /**
15913
- * SportsPublicApi - object-oriented interface
16772
+ * SportsManagerApi - object-oriented interface
15914
16773
  * @export
15915
- * @class SportsPublicApi
16774
+ * @class SportsManagerApi
15916
16775
  * @extends {BaseAPI}
15917
16776
  */
15918
- export class SportsPublicApi extends BaseAPI {
16777
+ export class SportsManagerApi extends BaseAPI {
16778
+ /**
16779
+ * Crée un sport (global) avec createdBy = clubId de l\'utilisateur
16780
+ * @param {SportsManagerApiCreateSportRequest} requestParameters Request parameters.
16781
+ * @param {*} [options] Override http request option.
16782
+ * @throws {RequiredError}
16783
+ * @memberof SportsManagerApi
16784
+ */
16785
+ public createSport(requestParameters: SportsManagerApiCreateSportRequest, options?: RawAxiosRequestConfig) {
16786
+ return SportsManagerApiFp(this.configuration).createSport(requestParameters.createSportRequest, options).then((request) => request(this.axios, this.basePath));
16787
+ }
16788
+
16789
+ /**
16790
+ * Supprime un sport (interdit si vérifié)
16791
+ * @param {SportsManagerApiDeleteSportRequest} requestParameters Request parameters.
16792
+ * @param {*} [options] Override http request option.
16793
+ * @throws {RequiredError}
16794
+ * @memberof SportsManagerApi
16795
+ */
16796
+ public deleteSport(requestParameters: SportsManagerApiDeleteSportRequest, options?: RawAxiosRequestConfig) {
16797
+ return SportsManagerApiFp(this.configuration).deleteSport(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
16798
+ }
16799
+
15919
16800
  /**
15920
- * Récupère tous les sports vérifiés, accessibles publiquement
16801
+ * Met à jour un sport (interdit si vérifié)
16802
+ * @param {SportsManagerApiUpdateSportRequest} requestParameters Request parameters.
15921
16803
  * @param {*} [options] Override http request option.
15922
16804
  * @throws {RequiredError}
15923
- * @memberof SportsPublicApi
16805
+ * @memberof SportsManagerApi
15924
16806
  */
15925
- public getVerifiedSports(options?: RawAxiosRequestConfig) {
15926
- return SportsPublicApiFp(this.configuration).getVerifiedSports(options).then((request) => request(this.axios, this.basePath));
16807
+ public updateSport(requestParameters: SportsManagerApiUpdateSportRequest, options?: RawAxiosRequestConfig) {
16808
+ return SportsManagerApiFp(this.configuration).updateSport(requestParameters.id, requestParameters.updateSportRequest, options).then((request) => request(this.axios, this.basePath));
15927
16809
  }
15928
16810
  }
15929
16811
 
@@ -17040,6 +17922,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
17040
17922
  options: localVarRequestOptions,
17041
17923
  };
17042
17924
  },
17925
+ /**
17926
+ *
17927
+ * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
17928
+ * @param {*} [options] Override http request option.
17929
+ * @throws {RequiredError}
17930
+ */
17931
+ addPaymentMethodSetup: async (addPaymentMethodRequestBody: AddPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17932
+ // verify required parameter 'addPaymentMethodRequestBody' is not null or undefined
17933
+ assertParamExists('addPaymentMethodSetup', 'addPaymentMethodRequestBody', addPaymentMethodRequestBody)
17934
+ const localVarPath = `/api/users/addPaymentMethodSetup`;
17935
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17936
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17937
+ let baseOptions;
17938
+ if (configuration) {
17939
+ baseOptions = configuration.baseOptions;
17940
+ }
17941
+
17942
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
17943
+ const localVarHeaderParameter = {} as any;
17944
+ const localVarQueryParameter = {} as any;
17945
+
17946
+ // authentication bearerAuth required
17947
+ // http bearer authentication required
17948
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17949
+
17950
+
17951
+
17952
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17953
+
17954
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17955
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17956
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17957
+ localVarRequestOptions.data = serializeDataIfNeeded(addPaymentMethodRequestBody, localVarRequestOptions, configuration)
17958
+
17959
+ return {
17960
+ url: toPathString(localVarUrlObj),
17961
+ options: localVarRequestOptions,
17962
+ };
17963
+ },
17043
17964
  /**
17044
17965
  *
17045
17966
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -17079,6 +18000,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
17079
18000
  options: localVarRequestOptions,
17080
18001
  };
17081
18002
  },
18003
+ /**
18004
+ *
18005
+ * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
18006
+ * @param {*} [options] Override http request option.
18007
+ * @throws {RequiredError}
18008
+ */
18009
+ confirmPaymentMethodSetup: async (confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18010
+ // verify required parameter 'confirmPaymentMethodRequestBody' is not null or undefined
18011
+ assertParamExists('confirmPaymentMethodSetup', 'confirmPaymentMethodRequestBody', confirmPaymentMethodRequestBody)
18012
+ const localVarPath = `/api/users/confirmPaymentMethodSetup`;
18013
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18014
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18015
+ let baseOptions;
18016
+ if (configuration) {
18017
+ baseOptions = configuration.baseOptions;
18018
+ }
18019
+
18020
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18021
+ const localVarHeaderParameter = {} as any;
18022
+ const localVarQueryParameter = {} as any;
18023
+
18024
+ // authentication bearerAuth required
18025
+ // http bearer authentication required
18026
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
18027
+
18028
+
18029
+
18030
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18031
+
18032
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
18033
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18034
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18035
+ localVarRequestOptions.data = serializeDataIfNeeded(confirmPaymentMethodRequestBody, localVarRequestOptions, configuration)
18036
+
18037
+ return {
18038
+ url: toPathString(localVarUrlObj),
18039
+ options: localVarRequestOptions,
18040
+ };
18041
+ },
17082
18042
  /**
17083
18043
  *
17084
18044
  * @param {*} [options] Override http request option.
@@ -18015,6 +18975,45 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
18015
18975
  options: localVarRequestOptions,
18016
18976
  };
18017
18977
  },
18978
+ /**
18979
+ *
18980
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
18981
+ * @param {*} [options] Override http request option.
18982
+ * @throws {RequiredError}
18983
+ */
18984
+ setupOffSessionPaymentMethod: async (setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18985
+ // verify required parameter 'setupPaymentMethodRequestBody' is not null or undefined
18986
+ assertParamExists('setupOffSessionPaymentMethod', 'setupPaymentMethodRequestBody', setupPaymentMethodRequestBody)
18987
+ const localVarPath = `/api/users/setupOffSessionPaymentMethod`;
18988
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
18989
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18990
+ let baseOptions;
18991
+ if (configuration) {
18992
+ baseOptions = configuration.baseOptions;
18993
+ }
18994
+
18995
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
18996
+ const localVarHeaderParameter = {} as any;
18997
+ const localVarQueryParameter = {} as any;
18998
+
18999
+ // authentication bearerAuth required
19000
+ // http bearer authentication required
19001
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19002
+
19003
+
19004
+
19005
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19006
+
19007
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19008
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19009
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19010
+ localVarRequestOptions.data = serializeDataIfNeeded(setupPaymentMethodRequestBody, localVarRequestOptions, configuration)
19011
+
19012
+ return {
19013
+ url: toPathString(localVarUrlObj),
19014
+ options: localVarRequestOptions,
19015
+ };
19016
+ },
18018
19017
  /**
18019
19018
  *
18020
19019
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -18322,6 +19321,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
18322
19321
  const localVarOperationServerBasePath = operationServerMap['UsersApi.addOrganization']?.[localVarOperationServerIndex]?.url;
18323
19322
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18324
19323
  },
19324
+ /**
19325
+ *
19326
+ * @param {AddPaymentMethodRequestBody} addPaymentMethodRequestBody
19327
+ * @param {*} [options] Override http request option.
19328
+ * @throws {RequiredError}
19329
+ */
19330
+ async addPaymentMethodSetup(addPaymentMethodRequestBody: AddPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PaymentMethodSetupResponse>> {
19331
+ const localVarAxiosArgs = await localVarAxiosParamCreator.addPaymentMethodSetup(addPaymentMethodRequestBody, options);
19332
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19333
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.addPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
19334
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19335
+ },
18325
19336
  /**
18326
19337
  *
18327
19338
  * @param {ChangePasswordRequestBody} changePasswordRequestBody
@@ -18334,6 +19345,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
18334
19345
  const localVarOperationServerBasePath = operationServerMap['UsersApi.changePassword']?.[localVarOperationServerIndex]?.url;
18335
19346
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18336
19347
  },
19348
+ /**
19349
+ *
19350
+ * @param {ConfirmPaymentMethodRequestBody} confirmPaymentMethodRequestBody
19351
+ * @param {*} [options] Override http request option.
19352
+ * @throws {RequiredError}
19353
+ */
19354
+ async confirmPaymentMethodSetup(confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ConfirmPaymentMethodResponse>> {
19355
+ const localVarAxiosArgs = await localVarAxiosParamCreator.confirmPaymentMethodSetup(confirmPaymentMethodRequestBody, options);
19356
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19357
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.confirmPaymentMethodSetup']?.[localVarOperationServerIndex]?.url;
19358
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19359
+ },
18337
19360
  /**
18338
19361
  *
18339
19362
  * @param {*} [options] Override http request option.
@@ -18351,7 +19374,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
18351
19374
  * @param {*} [options] Override http request option.
18352
19375
  * @throws {RequiredError}
18353
19376
  */
18354
- async getBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingSummary>> {
19377
+ async getBookingDetail(bookingId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingDetailResponse>> {
18355
19378
  const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingDetail(bookingId, options);
18356
19379
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18357
19380
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getBookingDetail']?.[localVarOperationServerIndex]?.url;
@@ -18486,7 +19509,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
18486
19509
  * @param {*} [options] Override http request option.
18487
19510
  * @throws {RequiredError}
18488
19511
  */
18489
- async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserBookingsResponse>> {
19512
+ async getUserBookings(limit?: number, skip?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<BookingSummary>>> {
18490
19513
  const localVarAxiosArgs = await localVarAxiosParamCreator.getUserBookings(limit, skip, options);
18491
19514
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18492
19515
  const localVarOperationServerBasePath = operationServerMap['UsersApi.getUserBookings']?.[localVarOperationServerIndex]?.url;
@@ -18632,6 +19655,18 @@ export const UsersApiFp = function(configuration?: Configuration) {
18632
19655
  const localVarOperationServerBasePath = operationServerMap['UsersApi.resetPassword']?.[localVarOperationServerIndex]?.url;
18633
19656
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18634
19657
  },
19658
+ /**
19659
+ *
19660
+ * @param {SetupPaymentMethodRequestBody} setupPaymentMethodRequestBody
19661
+ * @param {*} [options] Override http request option.
19662
+ * @throws {RequiredError}
19663
+ */
19664
+ async setupOffSessionPaymentMethod(setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SetupPaymentMethodResponse>> {
19665
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setupOffSessionPaymentMethod(setupPaymentMethodRequestBody, options);
19666
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19667
+ const localVarOperationServerBasePath = operationServerMap['UsersApi.setupOffSessionPaymentMethod']?.[localVarOperationServerIndex]?.url;
19668
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19669
+ },
18635
19670
  /**
18636
19671
  *
18637
19672
  * @param {GoogleAuthRequestBody} googleAuthRequestBody
@@ -18753,6 +19788,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18753
19788
  addOrganization(requestParameters: UsersApiAddOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
18754
19789
  return localVarFp.addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(axios, basePath));
18755
19790
  },
19791
+ /**
19792
+ *
19793
+ * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
19794
+ * @param {*} [options] Override http request option.
19795
+ * @throws {RequiredError}
19796
+ */
19797
+ addPaymentMethodSetup(requestParameters: UsersApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<PaymentMethodSetupResponse> {
19798
+ return localVarFp.addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
19799
+ },
18756
19800
  /**
18757
19801
  *
18758
19802
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -18762,6 +19806,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18762
19806
  changePassword(requestParameters: UsersApiChangePasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<ChangePasswordResponse> {
18763
19807
  return localVarFp.changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(axios, basePath));
18764
19808
  },
19809
+ /**
19810
+ *
19811
+ * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
19812
+ * @param {*} [options] Override http request option.
19813
+ * @throws {RequiredError}
19814
+ */
19815
+ confirmPaymentMethodSetup(requestParameters: UsersApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig): AxiosPromise<ConfirmPaymentMethodResponse> {
19816
+ return localVarFp.confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
19817
+ },
18765
19818
  /**
18766
19819
  *
18767
19820
  * @param {*} [options] Override http request option.
@@ -18776,7 +19829,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18776
19829
  * @param {*} [options] Override http request option.
18777
19830
  * @throws {RequiredError}
18778
19831
  */
18779
- getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingSummary> {
19832
+ getBookingDetail(requestParameters: UsersApiGetBookingDetailRequest, options?: RawAxiosRequestConfig): AxiosPromise<BookingDetailResponse> {
18780
19833
  return localVarFp.getBookingDetail(requestParameters.bookingId, options).then((request) => request(axios, basePath));
18781
19834
  },
18782
19835
  /**
@@ -18869,7 +19922,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18869
19922
  * @param {*} [options] Override http request option.
18870
19923
  * @throws {RequiredError}
18871
19924
  */
18872
- getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<UserBookingsResponse> {
19925
+ getUserBookings(requestParameters: UsersApiGetUserBookingsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<Array<BookingSummary>> {
18873
19926
  return localVarFp.getUserBookings(requestParameters.limit, requestParameters.skip, options).then((request) => request(axios, basePath));
18874
19927
  },
18875
19928
  /**
@@ -18970,6 +20023,15 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
18970
20023
  resetPassword(requestParameters: UsersApiResetPasswordRequest, options?: RawAxiosRequestConfig): AxiosPromise<RequestPasswordReset200Response> {
18971
20024
  return localVarFp.resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(axios, basePath));
18972
20025
  },
20026
+ /**
20027
+ *
20028
+ * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
20029
+ * @param {*} [options] Override http request option.
20030
+ * @throws {RequiredError}
20031
+ */
20032
+ setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig): AxiosPromise<SetupPaymentMethodResponse> {
20033
+ return localVarFp.setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(axios, basePath));
20034
+ },
18973
20035
  /**
18974
20036
  *
18975
20037
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.
@@ -19078,6 +20140,20 @@ export interface UsersApiAddOrganizationRequest {
19078
20140
  readonly addOrganizationRequest: AddOrganizationRequest
19079
20141
  }
19080
20142
 
20143
+ /**
20144
+ * Request parameters for addPaymentMethodSetup operation in UsersApi.
20145
+ * @export
20146
+ * @interface UsersApiAddPaymentMethodSetupRequest
20147
+ */
20148
+ export interface UsersApiAddPaymentMethodSetupRequest {
20149
+ /**
20150
+ *
20151
+ * @type {AddPaymentMethodRequestBody}
20152
+ * @memberof UsersApiAddPaymentMethodSetup
20153
+ */
20154
+ readonly addPaymentMethodRequestBody: AddPaymentMethodRequestBody
20155
+ }
20156
+
19081
20157
  /**
19082
20158
  * Request parameters for changePassword operation in UsersApi.
19083
20159
  * @export
@@ -19092,6 +20168,20 @@ export interface UsersApiChangePasswordRequest {
19092
20168
  readonly changePasswordRequestBody: ChangePasswordRequestBody
19093
20169
  }
19094
20170
 
20171
+ /**
20172
+ * Request parameters for confirmPaymentMethodSetup operation in UsersApi.
20173
+ * @export
20174
+ * @interface UsersApiConfirmPaymentMethodSetupRequest
20175
+ */
20176
+ export interface UsersApiConfirmPaymentMethodSetupRequest {
20177
+ /**
20178
+ *
20179
+ * @type {ConfirmPaymentMethodRequestBody}
20180
+ * @memberof UsersApiConfirmPaymentMethodSetup
20181
+ */
20182
+ readonly confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody
20183
+ }
20184
+
19095
20185
  /**
19096
20186
  * Request parameters for getBookingDetail operation in UsersApi.
19097
20187
  * @export
@@ -19442,6 +20532,20 @@ export interface UsersApiResetPasswordRequest {
19442
20532
  readonly resetPasswordRequest: ResetPasswordRequest
19443
20533
  }
19444
20534
 
20535
+ /**
20536
+ * Request parameters for setupOffSessionPaymentMethod operation in UsersApi.
20537
+ * @export
20538
+ * @interface UsersApiSetupOffSessionPaymentMethodRequest
20539
+ */
20540
+ export interface UsersApiSetupOffSessionPaymentMethodRequest {
20541
+ /**
20542
+ *
20543
+ * @type {SetupPaymentMethodRequestBody}
20544
+ * @memberof UsersApiSetupOffSessionPaymentMethod
20545
+ */
20546
+ readonly setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody
20547
+ }
20548
+
19445
20549
  /**
19446
20550
  * Request parameters for signInOrSignUpWithGoogle operation in UsersApi.
19447
20551
  * @export
@@ -19580,6 +20684,17 @@ export class UsersApi extends BaseAPI {
19580
20684
  return UsersApiFp(this.configuration).addOrganization(requestParameters.addOrganizationRequest, options).then((request) => request(this.axios, this.basePath));
19581
20685
  }
19582
20686
 
20687
+ /**
20688
+ *
20689
+ * @param {UsersApiAddPaymentMethodSetupRequest} requestParameters Request parameters.
20690
+ * @param {*} [options] Override http request option.
20691
+ * @throws {RequiredError}
20692
+ * @memberof UsersApi
20693
+ */
20694
+ public addPaymentMethodSetup(requestParameters: UsersApiAddPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
20695
+ return UsersApiFp(this.configuration).addPaymentMethodSetup(requestParameters.addPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
20696
+ }
20697
+
19583
20698
  /**
19584
20699
  *
19585
20700
  * @param {UsersApiChangePasswordRequest} requestParameters Request parameters.
@@ -19591,6 +20706,17 @@ export class UsersApi extends BaseAPI {
19591
20706
  return UsersApiFp(this.configuration).changePassword(requestParameters.changePasswordRequestBody, options).then((request) => request(this.axios, this.basePath));
19592
20707
  }
19593
20708
 
20709
+ /**
20710
+ *
20711
+ * @param {UsersApiConfirmPaymentMethodSetupRequest} requestParameters Request parameters.
20712
+ * @param {*} [options] Override http request option.
20713
+ * @throws {RequiredError}
20714
+ * @memberof UsersApi
20715
+ */
20716
+ public confirmPaymentMethodSetup(requestParameters: UsersApiConfirmPaymentMethodSetupRequest, options?: RawAxiosRequestConfig) {
20717
+ return UsersApiFp(this.configuration).confirmPaymentMethodSetup(requestParameters.confirmPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
20718
+ }
20719
+
19594
20720
  /**
19595
20721
  *
19596
20722
  * @param {*} [options] Override http request option.
@@ -19847,6 +20973,17 @@ export class UsersApi extends BaseAPI {
19847
20973
  return UsersApiFp(this.configuration).resetPassword(requestParameters.resetPasswordRequest, options).then((request) => request(this.axios, this.basePath));
19848
20974
  }
19849
20975
 
20976
+ /**
20977
+ *
20978
+ * @param {UsersApiSetupOffSessionPaymentMethodRequest} requestParameters Request parameters.
20979
+ * @param {*} [options] Override http request option.
20980
+ * @throws {RequiredError}
20981
+ * @memberof UsersApi
20982
+ */
20983
+ public setupOffSessionPaymentMethod(requestParameters: UsersApiSetupOffSessionPaymentMethodRequest, options?: RawAxiosRequestConfig) {
20984
+ return UsersApiFp(this.configuration).setupOffSessionPaymentMethod(requestParameters.setupPaymentMethodRequestBody, options).then((request) => request(this.axios, this.basePath));
20985
+ }
20986
+
19850
20987
  /**
19851
20988
  *
19852
20989
  * @param {UsersApiSignInOrSignUpWithGoogleRequest} requestParameters Request parameters.