@tennac-booking/sdk 1.0.75 → 1.0.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.openapi-generator/FILES +245 -234
  2. package/README.md +22 -5
  3. package/api.ts +1239 -466
  4. package/dist/api.d.ts +1015 -405
  5. package/dist/api.js +394 -160
  6. package/dist/esm/api.d.ts +1015 -405
  7. package/dist/esm/api.js +393 -155
  8. package/docs/{BookingPriceBody.md → AddPaymentMethodRequestBody.md} +5 -7
  9. package/docs/BookingInfo.md +2 -2
  10. package/docs/BookingPopulated.md +0 -2
  11. package/docs/BookingResponse.md +0 -2
  12. package/docs/BookingsApi.md +0 -52
  13. package/docs/ClubAnalyticsStaffApi.md +167 -0
  14. package/docs/ClubPlayerBookingItem.md +36 -0
  15. package/docs/ClubPlayerBookingsResponse.md +22 -0
  16. package/docs/ClubPlayerDetailResponse.md +46 -0
  17. package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
  18. package/docs/ClubPlayerStatisticsResponse.md +42 -0
  19. package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
  20. package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
  21. package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
  22. package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
  23. package/docs/ClubPlayerSubscriptionSummary.md +28 -0
  24. package/docs/ClubResponse.md +0 -8
  25. package/docs/ClubSettingsResponse.md +2 -0
  26. package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
  27. package/docs/ConfirmPaymentMethodResponse.md +22 -0
  28. package/docs/CreateBookingRequest.md +2 -2
  29. package/docs/CreateEventRequest.md +2 -0
  30. package/docs/IUserAttributes.md +12 -2
  31. package/docs/PartialClubResponse.md +0 -8
  32. package/docs/PaymentMethodSetupResponse.md +24 -0
  33. package/docs/SetupPaymentMethodRequestBody.md +20 -0
  34. package/docs/SetupPaymentMethodResponse.md +24 -0
  35. package/docs/SlotInfo.md +2 -2
  36. package/docs/StaffUserProfileResponse.md +12 -2
  37. package/docs/SubscribeRequestBody.md +0 -2
  38. package/docs/UserProfileResponse.md +12 -4
  39. package/docs/UsersApi.md +156 -0
  40. package/package.json +1 -1
  41. package/docs/PlayerPrice.md +0 -30
  42. package/docs/SportsPublicApi.md +0 -53
  43. package/docs/SubscriptionInfo.md +0 -24
@@ -0,0 +1,20 @@
1
+ # ConfirmPaymentMethodRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **setupIntentId** | **string** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ConfirmPaymentMethodRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: ConfirmPaymentMethodRequestBody = {
16
+ setupIntentId,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # ConfirmPaymentMethodResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **paymentMethodId** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ConfirmPaymentMethodResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ConfirmPaymentMethodResponse = {
17
+ message,
18
+ paymentMethodId,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **slotIds** | **Array<string>** | ID du créneau à réserver | [default to undefined]
8
+ **slotId** | **string** | ID du créneau à réserver | [default to undefined]
9
9
  **players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des joueurs avec leurs méthodes de paiement | [default to undefined]
10
10
  **isCreatorPayingAll** | **boolean** | Indique si le créateur paie pour tous les joueurs | [optional] [default to undefined]
11
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
@@ -17,7 +17,7 @@ Name | Type | Description | Notes
17
17
  import { CreateBookingRequest } from '@tennac-booking/sdk';
18
18
 
19
19
  const instance: CreateBookingRequest = {
20
- slotIds,
20
+ slotId,
21
21
  players,
22
22
  isCreatorPayingAll,
23
23
  paymentMethod,
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
22
22
  **teamLimit** | **number** | | [optional] [default to undefined]
23
23
  **price** | **number** | | [optional] [default to undefined]
24
24
  **subscriberPrices** | [**Array<SubscriberPrice>**](SubscriberPrice.md) | | [optional] [default to undefined]
25
+ **levels** | **Array<number>** | | [optional] [default to undefined]
25
26
  **visibilityType** | **string** | | [default to undefined]
26
27
 
27
28
  ## Example
@@ -47,6 +48,7 @@ const instance: CreateEventRequest = {
47
48
  teamLimit,
48
49
  price,
49
50
  subscriberPrices,
51
+ levels,
50
52
  visibilityType,
51
53
  };
52
54
  ```
@@ -13,7 +13,9 @@ Name | Type | Description | Notes
13
13
  **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
14
14
  **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
15
15
  **isAccountVerified** | **boolean** | | [default to undefined]
16
+ **isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
16
17
  **levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
18
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
17
19
  **phone** | **string** | | [optional] [default to undefined]
18
20
  **password** | **string** | | [optional] [default to undefined]
19
21
  **profilePicture** | **string** | | [optional] [default to undefined]
@@ -26,12 +28,15 @@ Name | Type | Description | Notes
26
28
  **createdAt** | **string** | | [default to undefined]
27
29
  **updatedAt** | **string** | | [default to undefined]
28
30
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
31
+ **paymentMethods** | **Array<string>** | | [optional] [default to undefined]
32
+ **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
33
+ **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
34
+ **setupIntentId** | **string** | | [optional] [default to undefined]
29
35
  **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
30
36
  **description** | **string** | | [optional] [default to undefined]
31
37
  **isProfileVisible** | **boolean** | | [default to undefined]
32
38
  **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
33
39
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
34
- **stripeCustomerId** | **string** | | [optional] [default to undefined]
35
40
 
36
41
  ## Example
37
42
 
@@ -47,7 +52,9 @@ const instance: IUserAttributes = {
47
52
  gender,
48
53
  location,
49
54
  isAccountVerified,
55
+ isCreditCardRegistered,
50
56
  levelBySports,
57
+ stripeCustomerId,
51
58
  phone,
52
59
  password,
53
60
  profilePicture,
@@ -60,12 +67,15 @@ const instance: IUserAttributes = {
60
67
  createdAt,
61
68
  updatedAt,
62
69
  isLevelCertified,
70
+ paymentMethods,
71
+ defaultPaymentMethodId,
72
+ paymentMethodSetupCompleted,
73
+ setupIntentId,
63
74
  favoriteClubs,
64
75
  description,
65
76
  isProfileVisible,
66
77
  favoritePlayers,
67
78
  sports,
68
- stripeCustomerId,
69
79
  };
70
80
  ```
71
81
 
@@ -20,10 +20,6 @@ Name | Type | Description | Notes
20
20
  **clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
21
21
  **isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
22
22
  **sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
23
- **allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
24
- **sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
25
- **cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
26
- **maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
27
23
  **createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
28
24
  **updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
29
25
 
@@ -47,10 +43,6 @@ const instance: PartialClubResponse = {
47
43
  clubDashBoardUrl,
48
44
  isNoShowEnabled,
49
45
  sports,
50
- allowMultipleBookingsAtTheSameTime,
51
- sameTimeBookingsLimit,
52
- cancellationLimitHours,
53
- maxWeeklyBookings,
54
46
  createdAt,
55
47
  updatedAt,
56
48
  };
@@ -0,0 +1,24 @@
1
+ # PaymentMethodSetupResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [default to undefined]
9
+ **paymentMethods** | **Array<string>** | | [default to undefined]
10
+ **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { PaymentMethodSetupResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: PaymentMethodSetupResponse = {
18
+ message,
19
+ paymentMethods,
20
+ defaultPaymentMethodId,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,20 @@
1
+ # SetupPaymentMethodRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **clubId** | **string** | | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { SetupPaymentMethodRequestBody } from '@tennac-booking/sdk';
14
+
15
+ const instance: SetupPaymentMethodRequestBody = {
16
+ clubId,
17
+ };
18
+ ```
19
+
20
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # SetupPaymentMethodResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **setupIntentId** | **string** | | [default to undefined]
9
+ **clientSecret** | **string** | | [default to undefined]
10
+ **message** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { SetupPaymentMethodResponse } from '@tennac-booking/sdk';
16
+
17
+ const instance: SetupPaymentMethodResponse = {
18
+ setupIntentId,
19
+ clientSecret,
20
+ message,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
package/docs/SlotInfo.md CHANGED
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  **id** | **string** | ID du slot | [default to undefined]
9
9
  **startDate** | **string** | Date de début | [default to undefined]
10
10
  **endDate** | **string** | Date de fin | [default to undefined]
11
- **courtId** | [**CourtInfo**](CourtInfo.md) | | [default to undefined]
11
+ **court** | [**CourtInfo**](CourtInfo.md) | | [default to undefined]
12
12
 
13
13
  ## Example
14
14
 
@@ -19,7 +19,7 @@ const instance: SlotInfo = {
19
19
  id,
20
20
  startDate,
21
21
  endDate,
22
- courtId,
22
+ court,
23
23
  };
24
24
  ```
25
25
 
@@ -13,7 +13,9 @@ Name | Type | Description | Notes
13
13
  **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
14
14
  **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
15
15
  **isAccountVerified** | **boolean** | | [default to undefined]
16
+ **isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
16
17
  **levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
18
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
17
19
  **phone** | **string** | | [optional] [default to undefined]
18
20
  **password** | **string** | | [optional] [default to undefined]
19
21
  **profilePicture** | **string** | | [optional] [default to undefined]
@@ -26,12 +28,15 @@ Name | Type | Description | Notes
26
28
  **createdAt** | **string** | | [default to undefined]
27
29
  **updatedAt** | **string** | | [default to undefined]
28
30
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
31
+ **paymentMethods** | **Array<string>** | | [optional] [default to undefined]
32
+ **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
33
+ **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
34
+ **setupIntentId** | **string** | | [optional] [default to undefined]
29
35
  **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
30
36
  **description** | **string** | | [optional] [default to undefined]
31
37
  **isProfileVisible** | **boolean** | | [default to undefined]
32
38
  **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
33
39
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
34
- **stripeCustomerId** | **string** | | [optional] [default to undefined]
35
40
  **isSubscribedToMyClub** | **boolean** | | [optional] [default to undefined]
36
41
  **creditOnMyClub** | **number** | | [optional] [default to undefined]
37
42
 
@@ -49,7 +54,9 @@ const instance: StaffUserProfileResponse = {
49
54
  gender,
50
55
  location,
51
56
  isAccountVerified,
57
+ isCreditCardRegistered,
52
58
  levelBySports,
59
+ stripeCustomerId,
53
60
  phone,
54
61
  password,
55
62
  profilePicture,
@@ -62,12 +69,15 @@ const instance: StaffUserProfileResponse = {
62
69
  createdAt,
63
70
  updatedAt,
64
71
  isLevelCertified,
72
+ paymentMethods,
73
+ defaultPaymentMethodId,
74
+ paymentMethodSetupCompleted,
75
+ setupIntentId,
65
76
  favoriteClubs,
66
77
  description,
67
78
  isProfileVisible,
68
79
  favoritePlayers,
69
80
  sports,
70
- stripeCustomerId,
71
81
  isSubscribedToMyClub,
72
82
  creditOnMyClub,
73
83
  };
@@ -7,7 +7,6 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **clubId** | **string** | | [default to undefined]
9
9
  **priceId** | **string** | | [default to undefined]
10
- **useDefaultPaymentMethod** | **boolean** | | [optional] [default to undefined]
11
10
 
12
11
  ## Example
13
12
 
@@ -17,7 +16,6 @@ import { SubscribeRequestBody } from '@tennac-booking/sdk';
17
16
  const instance: SubscribeRequestBody = {
18
17
  clubId,
19
18
  priceId,
20
- useDefaultPaymentMethod,
21
19
  };
22
20
  ```
23
21
 
@@ -13,7 +13,9 @@ Name | Type | Description | Notes
13
13
  **gender** | [**Gender**](Gender.md) | | [optional] [default to undefined]
14
14
  **location** | [**IUserLocation**](IUserLocation.md) | | [optional] [default to undefined]
15
15
  **isAccountVerified** | **boolean** | | [default to undefined]
16
+ **isCreditCardRegistered** | **boolean** | | [optional] [default to undefined]
16
17
  **levelBySports** | [**Array<ILevelBySports>**](ILevelBySports.md) | | [optional] [default to undefined]
18
+ **stripeCustomerId** | **string** | | [optional] [default to undefined]
17
19
  **phone** | **string** | | [optional] [default to undefined]
18
20
  **password** | **string** | | [optional] [default to undefined]
19
21
  **profilePicture** | **string** | | [optional] [default to undefined]
@@ -26,19 +28,21 @@ Name | Type | Description | Notes
26
28
  **createdAt** | **string** | | [default to undefined]
27
29
  **updatedAt** | **string** | | [default to undefined]
28
30
  **isLevelCertified** | **boolean** | | [optional] [default to undefined]
31
+ **paymentMethods** | **Array<string>** | | [optional] [default to undefined]
32
+ **defaultPaymentMethodId** | **string** | | [optional] [default to undefined]
33
+ **paymentMethodSetupCompleted** | **boolean** | | [default to undefined]
34
+ **setupIntentId** | **string** | | [optional] [default to undefined]
29
35
  **favoriteClubs** | **Array<string>** | | [optional] [default to undefined]
30
36
  **description** | **string** | | [optional] [default to undefined]
31
37
  **isProfileVisible** | **boolean** | | [default to undefined]
32
38
  **favoritePlayers** | **Array<string>** | | [optional] [default to undefined]
33
39
  **sports** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
34
- **stripeCustomerId** | **string** | | [optional] [default to undefined]
35
40
  **upcomingBookingsCount** | **number** | | [optional] [default to undefined]
36
41
  **subscriptionsCount** | **number** | | [optional] [default to undefined]
37
42
  **subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
38
43
  **frequentlyVisitedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
39
44
  **frequentlyPlayedWith** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [optional] [default to undefined]
40
45
  **stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
41
- **verifiedSports** | [**Array<SportResponse>**](SportResponse.md) | | [optional] [default to undefined]
42
46
 
43
47
  ## Example
44
48
 
@@ -54,7 +58,9 @@ const instance: UserProfileResponse = {
54
58
  gender,
55
59
  location,
56
60
  isAccountVerified,
61
+ isCreditCardRegistered,
57
62
  levelBySports,
63
+ stripeCustomerId,
58
64
  phone,
59
65
  password,
60
66
  profilePicture,
@@ -67,19 +73,21 @@ const instance: UserProfileResponse = {
67
73
  createdAt,
68
74
  updatedAt,
69
75
  isLevelCertified,
76
+ paymentMethods,
77
+ defaultPaymentMethodId,
78
+ paymentMethodSetupCompleted,
79
+ setupIntentId,
70
80
  favoriteClubs,
71
81
  description,
72
82
  isProfileVisible,
73
83
  favoritePlayers,
74
84
  sports,
75
- stripeCustomerId,
76
85
  upcomingBookingsCount,
77
86
  subscriptionsCount,
78
87
  subscriptions,
79
88
  frequentlyVisitedClubs,
80
89
  frequentlyPlayedWith,
81
90
  stripeLinks,
82
- verifiedSports,
83
91
  };
84
92
  ```
85
93
 
package/docs/UsersApi.md CHANGED
@@ -7,7 +7,9 @@ All URIs are relative to *http://localhost*
7
7
  |[**addFavoriteClub**](#addfavoriteclub) | **POST** /api/users/me/favorite-clubs | |
8
8
  |[**addFavoritePlayer**](#addfavoriteplayer) | **POST** /api/users/me/favoritesPlayers | |
9
9
  |[**addOrganization**](#addorganization) | **POST** /api/users/me/add-organization | |
10
+ |[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | |
10
11
  |[**changePassword**](#changepassword) | **PUT** /api/users/me/password | |
12
+ |[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | |
11
13
  |[**getAllUsers**](#getallusers) | **GET** /api/users | |
12
14
  |[**getBookingDetail**](#getbookingdetail) | **GET** /api/users/me/booking-detail/{bookingId} | |
13
15
  |[**getFavoriteClubs**](#getfavoriteclubs) | **GET** /api/users/me/favorite-clubs | |
@@ -32,6 +34,7 @@ All URIs are relative to *http://localhost*
32
34
  |[**requestEmailVerification**](#requestemailverification) | **POST** /api/users/me/request-email-verification | |
33
35
  |[**requestPasswordReset**](#requestpasswordreset) | **POST** /api/users/request-password-reset | |
34
36
  |[**resetPassword**](#resetpassword) | **POST** /api/users/reset-password | |
37
+ |[**setupOffSessionPaymentMethod**](#setupoffsessionpaymentmethod) | **POST** /api/users/setupOffSessionPaymentMethod | |
35
38
  |[**signInOrSignUpWithGoogle**](#signinorsignupwithgoogle) | **POST** /api/users/googleSignin | |
36
39
  |[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | |
37
40
  |[**updateLevelBySports**](#updatelevelbysports) | **PUT** /api/users/me/level-by-sports | |
@@ -186,6 +189,57 @@ const { status, data } = await apiInstance.addOrganization(
186
189
  - **Accept**: application/json
187
190
 
188
191
 
192
+ ### HTTP response details
193
+ | Status code | Description | Response headers |
194
+ |-------------|-------------|------------------|
195
+ |**200** | Ok | - |
196
+
197
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
198
+
199
+ # **addPaymentMethodSetup**
200
+ > PaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodRequestBody)
201
+
202
+
203
+ ### Example
204
+
205
+ ```typescript
206
+ import {
207
+ UsersApi,
208
+ Configuration,
209
+ AddPaymentMethodRequestBody
210
+ } from '@tennac-booking/sdk';
211
+
212
+ const configuration = new Configuration();
213
+ const apiInstance = new UsersApi(configuration);
214
+
215
+ let addPaymentMethodRequestBody: AddPaymentMethodRequestBody; //
216
+
217
+ const { status, data } = await apiInstance.addPaymentMethodSetup(
218
+ addPaymentMethodRequestBody
219
+ );
220
+ ```
221
+
222
+ ### Parameters
223
+
224
+ |Name | Type | Description | Notes|
225
+ |------------- | ------------- | ------------- | -------------|
226
+ | **addPaymentMethodRequestBody** | **AddPaymentMethodRequestBody**| | |
227
+
228
+
229
+ ### Return type
230
+
231
+ **PaymentMethodSetupResponse**
232
+
233
+ ### Authorization
234
+
235
+ [bearerAuth](../README.md#bearerAuth)
236
+
237
+ ### HTTP request headers
238
+
239
+ - **Content-Type**: application/json
240
+ - **Accept**: application/json
241
+
242
+
189
243
  ### HTTP response details
190
244
  | Status code | Description | Response headers |
191
245
  |-------------|-------------|------------------|
@@ -237,6 +291,57 @@ const { status, data } = await apiInstance.changePassword(
237
291
  - **Accept**: application/json
238
292
 
239
293
 
294
+ ### HTTP response details
295
+ | Status code | Description | Response headers |
296
+ |-------------|-------------|------------------|
297
+ |**200** | Ok | - |
298
+
299
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
300
+
301
+ # **confirmPaymentMethodSetup**
302
+ > ConfirmPaymentMethodResponse confirmPaymentMethodSetup(confirmPaymentMethodRequestBody)
303
+
304
+
305
+ ### Example
306
+
307
+ ```typescript
308
+ import {
309
+ UsersApi,
310
+ Configuration,
311
+ ConfirmPaymentMethodRequestBody
312
+ } from '@tennac-booking/sdk';
313
+
314
+ const configuration = new Configuration();
315
+ const apiInstance = new UsersApi(configuration);
316
+
317
+ let confirmPaymentMethodRequestBody: ConfirmPaymentMethodRequestBody; //
318
+
319
+ const { status, data } = await apiInstance.confirmPaymentMethodSetup(
320
+ confirmPaymentMethodRequestBody
321
+ );
322
+ ```
323
+
324
+ ### Parameters
325
+
326
+ |Name | Type | Description | Notes|
327
+ |------------- | ------------- | ------------- | -------------|
328
+ | **confirmPaymentMethodRequestBody** | **ConfirmPaymentMethodRequestBody**| | |
329
+
330
+
331
+ ### Return type
332
+
333
+ **ConfirmPaymentMethodResponse**
334
+
335
+ ### Authorization
336
+
337
+ [bearerAuth](../README.md#bearerAuth)
338
+
339
+ ### HTTP request headers
340
+
341
+ - **Content-Type**: application/json
342
+ - **Accept**: application/json
343
+
344
+
240
345
  ### HTTP response details
241
346
  | Status code | Description | Response headers |
242
347
  |-------------|-------------|------------------|
@@ -1441,6 +1546,57 @@ No authorization required
1441
1546
  - **Accept**: application/json
1442
1547
 
1443
1548
 
1549
+ ### HTTP response details
1550
+ | Status code | Description | Response headers |
1551
+ |-------------|-------------|------------------|
1552
+ |**200** | Ok | - |
1553
+
1554
+ [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
1555
+
1556
+ # **setupOffSessionPaymentMethod**
1557
+ > SetupPaymentMethodResponse setupOffSessionPaymentMethod(setupPaymentMethodRequestBody)
1558
+
1559
+
1560
+ ### Example
1561
+
1562
+ ```typescript
1563
+ import {
1564
+ UsersApi,
1565
+ Configuration,
1566
+ SetupPaymentMethodRequestBody
1567
+ } from '@tennac-booking/sdk';
1568
+
1569
+ const configuration = new Configuration();
1570
+ const apiInstance = new UsersApi(configuration);
1571
+
1572
+ let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
1573
+
1574
+ const { status, data } = await apiInstance.setupOffSessionPaymentMethod(
1575
+ setupPaymentMethodRequestBody
1576
+ );
1577
+ ```
1578
+
1579
+ ### Parameters
1580
+
1581
+ |Name | Type | Description | Notes|
1582
+ |------------- | ------------- | ------------- | -------------|
1583
+ | **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
1584
+
1585
+
1586
+ ### Return type
1587
+
1588
+ **SetupPaymentMethodResponse**
1589
+
1590
+ ### Authorization
1591
+
1592
+ [bearerAuth](../README.md#bearerAuth)
1593
+
1594
+ ### HTTP request headers
1595
+
1596
+ - **Content-Type**: application/json
1597
+ - **Accept**: application/json
1598
+
1599
+
1444
1600
  ### HTTP response details
1445
1601
  | Status code | Description | Response headers |
1446
1602
  |-------------|-------------|------------------|
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.75",
3
+ "version": "1.0.76",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {
@@ -1,30 +0,0 @@
1
- # PlayerPrice
2
-
3
-
4
- ## Properties
5
-
6
- Name | Type | Description | Notes
7
- ------------ | ------------- | ------------- | -------------
8
- **playerId** | **string** | | [default to undefined]
9
- **firstName** | **string** | | [optional] [default to undefined]
10
- **lastName** | **string** | | [optional] [default to undefined]
11
- **subscriptions** | [**Array<SubscriptionInfo>**](SubscriptionInfo.md) | | [default to undefined]
12
- **creditAvailablesInCents** | **number** | | [optional] [default to undefined]
13
- **price** | **number** | | [default to undefined]
14
-
15
- ## Example
16
-
17
- ```typescript
18
- import { PlayerPrice } from '@tennac-booking/sdk';
19
-
20
- const instance: PlayerPrice = {
21
- playerId,
22
- firstName,
23
- lastName,
24
- subscriptions,
25
- creditAvailablesInCents,
26
- price,
27
- };
28
- ```
29
-
30
- [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,53 +0,0 @@
1
- # SportsPublicApi
2
-
3
- All URIs are relative to *http://localhost*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getVerifiedSports**](#getverifiedsports) | **GET** /api/sports/verified | |
8
-
9
- # **getVerifiedSports**
10
- > Array<SportResponse> getVerifiedSports()
11
-
12
- Récupère tous les sports vérifiés, accessibles publiquement
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- SportsPublicApi,
19
- Configuration
20
- } from '@tennac-booking/sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new SportsPublicApi(configuration);
24
-
25
- const { status, data } = await apiInstance.getVerifiedSports();
26
- ```
27
-
28
- ### Parameters
29
- This endpoint does not have any parameters.
30
-
31
-
32
- ### Return type
33
-
34
- **Array<SportResponse>**
35
-
36
- ### Authorization
37
-
38
- No authorization required
39
-
40
- ### HTTP request headers
41
-
42
- - **Content-Type**: Not defined
43
- - **Accept**: application/json
44
-
45
-
46
- ### HTTP response details
47
- | Status code | Description | Response headers |
48
- |-------------|-------------|------------------|
49
- |**200** | Sports vérifiés | - |
50
- |**500** | Server Error | - |
51
-
52
- [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
53
-