@tennac-booking/sdk 1.0.74 → 1.0.76
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +245 -234
- package/README.md +24 -7
- package/api.ts +1240 -461
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1016 -400
- package/dist/api.js +395 -161
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1016 -400
- package/dist/esm/api.js +394 -156
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/{BookingPriceBody.md → AddPaymentMethodRequestBody.md} +5 -7
- package/docs/BookingInfo.md +2 -2
- package/docs/BookingPopulated.md +0 -2
- package/docs/BookingsApi.md +0 -52
- package/docs/ClubAnalyticsStaffApi.md +167 -0
- package/docs/ClubPlayerBookingItem.md +36 -0
- package/docs/ClubPlayerBookingsResponse.md +22 -0
- package/docs/ClubPlayerDetailResponse.md +46 -0
- package/docs/ClubPlayerDetailResponseSportsLevelsInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponse.md +42 -0
- package/docs/ClubPlayerStatisticsResponseBookingAmountEvolutionThisMonthInner.md +22 -0
- package/docs/ClubPlayerStatisticsResponseFavoriteClub.md +23 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedClub.md +25 -0
- package/docs/ClubPlayerStatisticsResponseMostPlayedPartnersInner.md +26 -0
- package/docs/ClubPlayerSubscriptionSummary.md +28 -0
- package/docs/ClubResponse.md +0 -8
- package/docs/ClubSettingsResponse.md +2 -0
- package/docs/ConfirmPaymentMethodRequestBody.md +20 -0
- package/docs/ConfirmPaymentMethodResponse.md +22 -0
- package/docs/CreateBookingRequest.md +2 -2
- package/docs/CreateEventRequest.md +2 -0
- package/docs/IUserAttributes.md +12 -2
- package/docs/PartialClubResponse.md +0 -8
- package/docs/PaymentMethodSetupResponse.md +24 -0
- package/docs/SetupPaymentMethodRequestBody.md +20 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/SlotInfo.md +2 -2
- package/docs/StaffUserProfileResponse.md +12 -2
- package/docs/SubscribeRequestBody.md +0 -2
- package/docs/UserProfileResponse.md +12 -4
- package/docs/UsersApi.md +156 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/PlayerPrice.md +0 -30
- package/docs/SportsPublicApi.md +0 -53
- package/docs/SubscriptionInfo.md +0 -24
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# ClubPlayerStatisticsResponseMostPlayedPartnersInner
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**bookingsTogether** | **number** | | [default to undefined]
|
|
9
|
+
**lastName** | **string** | | [default to undefined]
|
|
10
|
+
**firstName** | **string** | | [default to undefined]
|
|
11
|
+
**userId** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ClubPlayerStatisticsResponseMostPlayedPartnersInner } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: ClubPlayerStatisticsResponseMostPlayedPartnersInner = {
|
|
19
|
+
bookingsTogether,
|
|
20
|
+
lastName,
|
|
21
|
+
firstName,
|
|
22
|
+
userId,
|
|
23
|
+
};
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
[[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,28 @@
|
|
|
1
|
+
# ClubPlayerSubscriptionSummary
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**id** | **string** | ID du plan d\'abonnement | [default to undefined]
|
|
9
|
+
**name** | **string** | Nom du plan | [default to undefined]
|
|
10
|
+
**amountInCents** | **number** | Montant en centimes | [default to undefined]
|
|
11
|
+
**currency** | **string** | Devise | [default to undefined]
|
|
12
|
+
**interval** | **string** | Intervalle de facturation | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ClubPlayerSubscriptionSummary } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: ClubPlayerSubscriptionSummary = {
|
|
20
|
+
id,
|
|
21
|
+
name,
|
|
22
|
+
amountInCents,
|
|
23
|
+
currency,
|
|
24
|
+
interval,
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[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/ClubResponse.md
CHANGED
|
@@ -19,10 +19,6 @@ Name | Type | Description | Notes
|
|
|
19
19
|
**clubDashBoardUrl** | **string** | URL du dashboard Stripe du club | [optional] [default to undefined]
|
|
20
20
|
**isNoShowEnabled** | **boolean** | Indique si la fonctionnalité \"no show\" est activée | [optional] [default to undefined]
|
|
21
21
|
**sports** | **Array<string>** | Liste des sports proposés par le club (identifiés par leur clé) | [optional] [default to undefined]
|
|
22
|
-
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [optional] [default to undefined]
|
|
23
|
-
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées (même créneau) | [optional] [default to undefined]
|
|
24
|
-
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [optional] [default to undefined]
|
|
25
|
-
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [optional] [default to undefined]
|
|
26
22
|
**createdAt** | [**ClubResponseCreatedAt**](ClubResponseCreatedAt.md) | | [optional] [default to undefined]
|
|
27
23
|
**updatedAt** | [**ClubResponseUpdatedAt**](ClubResponseUpdatedAt.md) | | [optional] [default to undefined]
|
|
28
24
|
|
|
@@ -46,10 +42,6 @@ const instance: ClubResponse = {
|
|
|
46
42
|
clubDashBoardUrl,
|
|
47
43
|
isNoShowEnabled,
|
|
48
44
|
sports,
|
|
49
|
-
allowMultipleBookingsAtTheSameTime,
|
|
50
|
-
sameTimeBookingsLimit,
|
|
51
|
-
cancellationLimitHours,
|
|
52
|
-
maxWeeklyBookings,
|
|
53
45
|
createdAt,
|
|
54
46
|
updatedAt,
|
|
55
47
|
};
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**_id** | **string** | ID unique des paramètres | [default to undefined]
|
|
10
10
|
**clubId** | **string** | ID du club | [default to undefined]
|
|
11
11
|
**maxWeeklyBookings** | **number** | Nombre maximum de réservations par semaine | [default to undefined]
|
|
12
|
+
**allowMultipleBookingsAtTheSameTime** | **boolean** | Autoriser plusieurs réservations en même temps | [default to undefined]
|
|
12
13
|
**sameTimeBookingsLimit** | **number** | Limite de réservations simultanées | [optional] [default to undefined]
|
|
13
14
|
**cancellationLimitHours** | **number** | Limite d\'annulation en heures | [default to undefined]
|
|
14
15
|
**availabilityPeriodInDays** | **number** | Période de disponibilité en jours | [default to undefined]
|
|
@@ -26,6 +27,7 @@ const instance: ClubSettingsResponse = {
|
|
|
26
27
|
_id,
|
|
27
28
|
clubId,
|
|
28
29
|
maxWeeklyBookings,
|
|
30
|
+
allowMultipleBookingsAtTheSameTime,
|
|
29
31
|
sameTimeBookingsLimit,
|
|
30
32
|
cancellationLimitHours,
|
|
31
33
|
availabilityPeriodInDays,
|
|
@@ -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
|
-
**
|
|
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
|
-
|
|
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
|
```
|
package/docs/IUserAttributes.md
CHANGED
|
@@ -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
|
-
**
|
|
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
|
-
|
|
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/index.ts
CHANGED