@tennac-booking/sdk 1.0.115 → 1.0.117

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 (45) hide show
  1. package/.openapi-generator/FILES +308 -300
  2. package/README.md +13 -2
  3. package/api.ts +562 -21
  4. package/base.ts +1 -1
  5. package/common.ts +1 -1
  6. package/configuration.ts +1 -1
  7. package/dist/api.d.ts +445 -21
  8. package/dist/api.js +222 -25
  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 +445 -21
  16. package/dist/esm/api.js +218 -21
  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/BookingsUserApi.md +1 -1
  28. package/docs/CheckTeamNameAvailability200Response.md +20 -0
  29. package/docs/ClientApi.md +49 -2
  30. package/docs/ClientFullOnboardingResponseClub.md +2 -0
  31. package/docs/ClientOnboardingRequestBody.md +2 -0
  32. package/docs/ClientSubscription.md +31 -0
  33. package/docs/ClientSubscriptionItem.md +25 -0
  34. package/docs/ClientSubscriptionsResponse.md +21 -0
  35. package/docs/ClubsApi.md +2 -2
  36. package/docs/EstimateEventPrice200Response.md +32 -0
  37. package/docs/EstimateEventPriceRequest.md +26 -0
  38. package/docs/EstimateEventPriceRequestSharesInner.md +22 -0
  39. package/docs/EventsApi.md +115 -0
  40. package/docs/JoinEventRequest.md +2 -0
  41. package/docs/JoinEventRequestPlayersPaymentMethodsInner.md +2 -0
  42. package/docs/JoinEventResponse.md +14 -0
  43. package/docs/JoinEventResponseOnsitePaymentsInner.md +24 -0
  44. package/index.ts +1 -1
  45. package/package.json +1 -1
@@ -5,6 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
+ **clubType** | **string** | | [optional] [default to undefined]
8
9
  **clubOnboardingLink** | **string** | | [optional] [default to undefined]
9
10
  **stripeAccountId** | **string** | | [default to undefined]
10
11
  **clubId** | **string** | | [default to undefined]
@@ -15,6 +16,7 @@ Name | Type | Description | Notes
15
16
  import { ClientFullOnboardingResponseClub } from '@tennac-booking/sdk';
16
17
 
17
18
  const instance: ClientFullOnboardingResponseClub = {
19
+ clubType,
18
20
  clubOnboardingLink,
19
21
  stripeAccountId,
20
22
  clubId,
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
13
13
  **city** | **string** | Ville du club (optionnel) | [optional] [default to undefined]
14
14
  **postalCode** | **string** | Code postal du club (optionnel) | [optional] [default to undefined]
15
15
  **country** | **string** | Pays du club (optionnel) | [optional] [default to undefined]
16
+ **clubType** | **string** | Type de club souhaité (public | school) | [optional] [default to undefined]
16
17
 
17
18
  ## Example
18
19
 
@@ -27,6 +28,7 @@ const instance: ClientOnboardingRequestBody = {
27
28
  city,
28
29
  postalCode,
29
30
  country,
31
+ clubType,
30
32
  };
31
33
  ```
32
34
 
@@ -0,0 +1,31 @@
1
+ # ClientSubscription
2
+
3
+ Abonnement Stripe simplifié
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **id** | **string** | | [default to undefined]
10
+ **status** | **string** | | [default to undefined]
11
+ **currentPeriodStart** | **number** | | [default to undefined]
12
+ **currentPeriodEnd** | **number** | | [default to undefined]
13
+ **cancelAtPeriodEnd** | **boolean** | | [default to undefined]
14
+ **items** | [**Array<ClientSubscriptionItem>**](ClientSubscriptionItem.md) | | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { ClientSubscription } from '@tennac-booking/sdk';
20
+
21
+ const instance: ClientSubscription = {
22
+ id,
23
+ status,
24
+ currentPeriodStart,
25
+ currentPeriodEnd,
26
+ cancelAtPeriodEnd,
27
+ items,
28
+ };
29
+ ```
30
+
31
+ [[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,25 @@
1
+ # ClientSubscriptionItem
2
+
3
+ Item d\'abonnement Stripe simplifié
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **priceId** | **string** | | [default to undefined]
10
+ **productId** | **string** | | [optional] [default to undefined]
11
+ **quantity** | **number** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { ClientSubscriptionItem } from '@tennac-booking/sdk';
17
+
18
+ const instance: ClientSubscriptionItem = {
19
+ priceId,
20
+ productId,
21
+ quantity,
22
+ };
23
+ ```
24
+
25
+ [[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,21 @@
1
+ # ClientSubscriptionsResponse
2
+
3
+ Réponse liste des abonnements Stripe du client
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **subscriptions** | [**Array<ClientSubscription>**](ClientSubscription.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ClientSubscriptionsResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ClientSubscriptionsResponse = {
17
+ subscriptions,
18
+ };
19
+ ```
20
+
21
+ [[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/ClubsApi.md CHANGED
@@ -22,7 +22,7 @@ All URIs are relative to *http://localhost*
22
22
  # **getActiveClubs**
23
23
  > Array<PartialClubActiveResponse> getActiveClubs()
24
24
 
25
- Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
25
+ Récupère la liste des clubs actifs publics Authentification optionnelle : si authentifié, retourne aussi les clubs vérifiés
26
26
 
27
27
  ### Example
28
28
 
@@ -476,7 +476,7 @@ No authorization required
476
476
  # **getClubsWithVerificationDomains**
477
477
  > Array<GetClubsWithVerificationDomains200ResponseInner> getClubsWithVerificationDomains()
478
478
 
479
- Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
479
+ Récupère la liste des clubs qui ont des domaines d\'email pour vérification Accessible sans token
480
480
 
481
481
  ### Example
482
482
 
@@ -0,0 +1,32 @@
1
+ # EstimateEventPrice200Response
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **perPayerAfterCredits** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
9
+ **totalAfterCredits** | **number** | | [optional] [default to undefined]
10
+ **creditsAppliedInCents** | **number** | | [optional] [default to undefined]
11
+ **currency** | **string** | | [default to undefined]
12
+ **total** | **number** | | [default to undefined]
13
+ **perPayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
14
+ **perPlayer** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [default to undefined]
15
+
16
+ ## Example
17
+
18
+ ```typescript
19
+ import { EstimateEventPrice200Response } from '@tennac-booking/sdk';
20
+
21
+ const instance: EstimateEventPrice200Response = {
22
+ perPayerAfterCredits,
23
+ totalAfterCredits,
24
+ creditsAppliedInCents,
25
+ currency,
26
+ total,
27
+ perPayer,
28
+ perPlayer,
29
+ };
30
+ ```
31
+
32
+ [[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,26 @@
1
+ # EstimateEventPriceRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **creditToUseInCents** | **number** | | [optional] [default to undefined]
9
+ **creatorId** | **string** | | [optional] [default to undefined]
10
+ **shares** | [**Array&lt;EstimateEventPriceRequestSharesInner&gt;**](EstimateEventPriceRequestSharesInner.md) | | [optional] [default to undefined]
11
+ **playerIds** | **Array&lt;string&gt;** | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { EstimateEventPriceRequest } from '@tennac-booking/sdk';
17
+
18
+ const instance: EstimateEventPriceRequest = {
19
+ creditToUseInCents,
20
+ creatorId,
21
+ shares,
22
+ playerIds,
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,22 @@
1
+ # EstimateEventPriceRequestSharesInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **paysAlsoFor** | **Array&lt;string&gt;** | | [optional] [default to undefined]
9
+ **playerId** | **string** | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { EstimateEventPriceRequestSharesInner } from '@tennac-booking/sdk';
15
+
16
+ const instance: EstimateEventPriceRequestSharesInner = {
17
+ paysAlsoFor,
18
+ playerId,
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)
package/docs/EventsApi.md CHANGED
@@ -4,11 +4,126 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  |Method | HTTP request | Description|
6
6
  |------------- | ------------- | -------------|
7
+ |[**checkTeamNameAvailability**](#checkteamnameavailability) | **GET** /api/events/{eventId}/team-name-availability | |
8
+ |[**estimateEventPrice**](#estimateeventprice) | **POST** /api/events/{eventId}/estimate-price | |
7
9
  |[**getEventById**](#geteventbyid) | **GET** /api/events/{eventId} | |
8
10
  |[**getPublishedEventsByClubId**](#getpublishedeventsbyclubid) | **GET** /api/events | |
9
11
  |[**joinEvent**](#joinevent) | **POST** /api/events/{eventId}/join | |
10
12
  |[**leaveEvent**](#leaveevent) | **DELETE** /api/events/{eventId}/leave | |
11
13
 
14
+ # **checkTeamNameAvailability**
15
+ > CheckTeamNameAvailability200Response checkTeamNameAvailability()
16
+
17
+ Check team name availability for TEAM participation events
18
+
19
+ ### Example
20
+
21
+ ```typescript
22
+ import {
23
+ EventsApi,
24
+ Configuration
25
+ } from '@tennac-booking/sdk';
26
+
27
+ const configuration = new Configuration();
28
+ const apiInstance = new EventsApi(configuration);
29
+
30
+ let eventId: string; // (default to undefined)
31
+ let teamName: string; // (optional) (default to undefined)
32
+
33
+ const { status, data } = await apiInstance.checkTeamNameAvailability(
34
+ eventId,
35
+ teamName
36
+ );
37
+ ```
38
+
39
+ ### Parameters
40
+
41
+ |Name | Type | Description | Notes|
42
+ |------------- | ------------- | ------------- | -------------|
43
+ | **eventId** | [**string**] | | defaults to undefined|
44
+ | **teamName** | [**string**] | | (optional) defaults to undefined|
45
+
46
+
47
+ ### Return type
48
+
49
+ **CheckTeamNameAvailability200Response**
50
+
51
+ ### Authorization
52
+
53
+ No authorization required
54
+
55
+ ### HTTP request headers
56
+
57
+ - **Content-Type**: Not defined
58
+ - **Accept**: application/json
59
+
60
+
61
+ ### HTTP response details
62
+ | Status code | Description | Response headers |
63
+ |-------------|-------------|------------------|
64
+ |**200** | Team name availability | - |
65
+ |**400** | Bad Request | - |
66
+ |**404** | Not Found | - |
67
+
68
+ [[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)
69
+
70
+ # **estimateEventPrice**
71
+ > EstimateEventPrice200Response estimateEventPrice(estimateEventPriceRequest)
72
+
73
+ Estime le prix de participation à un événement pour une liste de joueurs
74
+
75
+ ### Example
76
+
77
+ ```typescript
78
+ import {
79
+ EventsApi,
80
+ Configuration,
81
+ EstimateEventPriceRequest
82
+ } from '@tennac-booking/sdk';
83
+
84
+ const configuration = new Configuration();
85
+ const apiInstance = new EventsApi(configuration);
86
+
87
+ let eventId: string; // (default to undefined)
88
+ let estimateEventPriceRequest: EstimateEventPriceRequest; //
89
+
90
+ const { status, data } = await apiInstance.estimateEventPrice(
91
+ eventId,
92
+ estimateEventPriceRequest
93
+ );
94
+ ```
95
+
96
+ ### Parameters
97
+
98
+ |Name | Type | Description | Notes|
99
+ |------------- | ------------- | ------------- | -------------|
100
+ | **estimateEventPriceRequest** | **EstimateEventPriceRequest**| | |
101
+ | **eventId** | [**string**] | | defaults to undefined|
102
+
103
+
104
+ ### Return type
105
+
106
+ **EstimateEventPrice200Response**
107
+
108
+ ### Authorization
109
+
110
+ No authorization required
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: application/json
115
+ - **Accept**: application/json
116
+
117
+
118
+ ### HTTP response details
119
+ | Status code | Description | Response headers |
120
+ |-------------|-------------|------------------|
121
+ |**200** | Prix estimé pour l\&#39;événement | - |
122
+ |**400** | Requête invalide | - |
123
+ |**404** | Événement introuvable | - |
124
+
125
+ [[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)
126
+
12
127
  # **getEventById**
13
128
  > PublishEventResponse getEventById()
14
129
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
12
12
  **playersPaymentMethods** | [**Array&lt;JoinEventRequestPlayersPaymentMethodsInner&gt;**](JoinEventRequestPlayersPaymentMethodsInner.md) | | [optional] [default to undefined]
13
13
  **useDefaultPaymentMethod** | **boolean** | | [optional] [default to undefined]
14
+ **creditToUseInCents** | **number** | | [optional] [default to undefined]
14
15
 
15
16
  ## Example
16
17
 
@@ -24,6 +25,7 @@ const instance: JoinEventRequest = {
24
25
  paymentMethod,
25
26
  playersPaymentMethods,
26
27
  useDefaultPaymentMethod,
28
+ creditToUseInCents,
27
29
  };
28
30
  ```
29
31
 
@@ -5,6 +5,7 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
+ **paysAlsoFor** | **Array&lt;string&gt;** | | [optional] [default to undefined]
8
9
  **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
9
10
  **id** | **string** | | [default to undefined]
10
11
 
@@ -14,6 +15,7 @@ Name | Type | Description | Notes
14
15
  import { JoinEventRequestPlayersPaymentMethodsInner } from '@tennac-booking/sdk';
15
16
 
16
17
  const instance: JoinEventRequestPlayersPaymentMethodsInner = {
18
+ paysAlsoFor,
17
19
  paymentMethod,
18
20
  id,
19
21
  };
@@ -7,6 +7,13 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **message** | **string** | | [default to undefined]
9
9
  **event** | [**EventResponse**](EventResponse.md) | | [default to undefined]
10
+ **paymentLinks** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
11
+ **onsitePayments** | [**Array&lt;JoinEventResponseOnsitePaymentsInner&gt;**](JoinEventResponseOnsitePaymentsInner.md) | | [optional] [default to undefined]
12
+ **setupNoShowPaymentUrl** | **string** | | [optional] [default to undefined]
13
+ **invoices** | [**Array&lt;CheckInEventParticipants200ResponseInvoicesInner&gt;**](CheckInEventParticipants200ResponseInvoicesInner.md) | | [optional] [default to undefined]
14
+ **creditsAppliedInCents** | **number** | | [optional] [default to undefined]
15
+ **totalAfterCredits** | **number** | | [optional] [default to undefined]
16
+ **perPayerAfterCredits** | **{ [key: string]: number; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
10
17
 
11
18
  ## Example
12
19
 
@@ -16,6 +23,13 @@ import { JoinEventResponse } from '@tennac-booking/sdk';
16
23
  const instance: JoinEventResponse = {
17
24
  message,
18
25
  event,
26
+ paymentLinks,
27
+ onsitePayments,
28
+ setupNoShowPaymentUrl,
29
+ invoices,
30
+ creditsAppliedInCents,
31
+ totalAfterCredits,
32
+ perPayerAfterCredits,
19
33
  };
20
34
  ```
21
35
 
@@ -0,0 +1,24 @@
1
+ # JoinEventResponseOnsitePaymentsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [default to undefined]
9
+ **amount** | **number** | | [default to undefined]
10
+ **playerId** | **string** | | [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { JoinEventResponseOnsitePaymentsInner } from '@tennac-booking/sdk';
16
+
17
+ const instance: JoinEventResponseOnsitePaymentsInner = {
18
+ paymentMethod,
19
+ amount,
20
+ playerId,
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/index.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.110
7
+ * The version of the OpenAPI document: 1.0.117
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.115",
3
+ "version": "1.0.117",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {