@tennac-booking/sdk 1.0.15 → 1.0.81

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/dist/esm/base.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/esm/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Pickle Ball API
3
3
  * API for managing pickle ball games and players
4
4
  *
5
- * The version of the OpenAPI document: 1.0.14
5
+ * The version of the OpenAPI document: 1.0.17
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Pickle Ball API
6
6
  * API for managing pickle ball games and players
7
7
  *
8
- * The version of the OpenAPI document: 1.0.14
8
+ * The version of the OpenAPI document: 1.0.17
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,22 @@
1
+ # CancelBookingResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | Message de confirmation | [default to undefined]
9
+ **booking** | [**CancelBookingResponseBooking**](CancelBookingResponseBooking.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { CancelBookingResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: CancelBookingResponse = {
17
+ message,
18
+ booking,
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)
@@ -0,0 +1,30 @@
1
+ # CancelBookingResponseBooking
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID de la réservation | [default to undefined]
9
+ **status** | **string** | Nouveau statut de la réservation | [default to undefined]
10
+ **cancelledAt** | **string** | Date et heure d\'annulation | [default to undefined]
11
+ **cancelledBy** | **string** | ID de l\'utilisateur qui a annulé | [default to undefined]
12
+ **cancelledByManager** | **boolean** | Indique si annulé par un gestionnaire | [default to undefined]
13
+ **cancellationReason** | **string** | Raison de l\'annulation (si fournie) | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { CancelBookingResponseBooking } from '@tennac-booking/sdk';
19
+
20
+ const instance: CancelBookingResponseBooking = {
21
+ id,
22
+ status,
23
+ cancelledAt,
24
+ cancelledBy,
25
+ cancelledByManager,
26
+ cancellationReason,
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)
@@ -0,0 +1,22 @@
1
+ # ConfirmPaymentMethodSetupRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **userId** | **string** | ID de l\'utilisateur | [default to undefined]
9
+ **setupIntentId** | **string** | ID du Setup Intent à confirmer | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ConfirmPaymentMethodSetupRequestBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: ConfirmPaymentMethodSetupRequestBody = {
17
+ userId,
18
+ setupIntentId,
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)
@@ -0,0 +1,22 @@
1
+ # ConfirmPaymentMethodSetupResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | Message de confirmation | [optional] [default to undefined]
9
+ **paymentMethodId** | **string** | ID de la méthode de paiement configurée | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ConfirmPaymentMethodSetupResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ConfirmPaymentMethodSetupResponse = {
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,19 +5,20 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **id** | **string** | | [optional] [default to undefined]
9
- **name** | **string** | | [optional] [default to undefined]
10
- **status** | **string** | | [optional] [default to undefined]
11
- **comments** | **string** | | [optional] [default to undefined]
12
- **slotDefaultDuration** | **number** | | [optional] [default to undefined]
13
- **startTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
14
- **endTimeInTheDayInMinutes** | **number** | | [optional] [default to undefined]
15
- **sportId** | **string** | | [optional] [default to undefined]
16
- **clubId** | **string** | | [optional] [default to undefined]
17
- **surface** | **string** | | [optional] [default to undefined]
18
- **isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [optional] [default to undefined]
19
- **createdAt** | **string** | | [optional] [default to undefined]
20
- **updatedAt** | **string** | | [optional] [default to undefined]
8
+ **id** | **string** | | [default to undefined]
9
+ **name** | **string** | | [default to undefined]
10
+ **status** | **string** | | [default to undefined]
11
+ **comments** | **string** | | [default to undefined]
12
+ **slotDefaultDuration** | **number** | | [default to undefined]
13
+ **startTimeInTheDayInMinutes** | **number** | | [default to undefined]
14
+ **endTimeInTheDayInMinutes** | **number** | | [default to undefined]
15
+ **pricePerSlotInCents** | **number** | | [default to undefined]
16
+ **sportId** | **string** | | [default to undefined]
17
+ **clubId** | **string** | | [default to undefined]
18
+ **surface** | **string** | | [default to undefined]
19
+ **isIndoor** | **boolean** | Indique si le terrain est en intérieur ou extérieur | [default to undefined]
20
+ **createdAt** | **string** | | [default to undefined]
21
+ **updatedAt** | **string** | | [default to undefined]
21
22
 
22
23
  ## Example
23
24
 
@@ -32,6 +33,7 @@ const instance: CourtResponse = {
32
33
  slotDefaultDuration,
33
34
  startTimeInTheDayInMinutes,
34
35
  endTimeInTheDayInMinutes,
36
+ pricePerSlotInCents,
35
37
  sportId,
36
38
  clubId,
37
39
  surface,
@@ -0,0 +1,22 @@
1
+ # ManagerCancelBookingResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | Message de confirmation | [default to undefined]
9
+ **booking** | [**ManagerCancelBookingResponseBooking**](ManagerCancelBookingResponseBooking.md) | | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { ManagerCancelBookingResponse } from '@tennac-booking/sdk';
15
+
16
+ const instance: ManagerCancelBookingResponse = {
17
+ message,
18
+ booking,
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)
@@ -0,0 +1,30 @@
1
+ # ManagerCancelBookingResponseBooking
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **id** | **string** | ID de la réservation | [default to undefined]
9
+ **status** | **string** | Nouveau statut de la réservation | [default to undefined]
10
+ **cancellationReason** | **string** | Raison de l\'annulation par le gestionnaire | [default to undefined]
11
+ **cancelledAt** | **string** | Date et heure d\'annulation | [default to undefined]
12
+ **cancelledBy** | **string** | ID du gestionnaire qui a annulé | [default to undefined]
13
+ **cancelledByManager** | **boolean** | Toujours true pour les annulations par gestionnaire | [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { ManagerCancelBookingResponseBooking } from '@tennac-booking/sdk';
19
+
20
+ const instance: ManagerCancelBookingResponseBooking = {
21
+ id,
22
+ status,
23
+ cancellationReason,
24
+ cancelledAt,
25
+ cancelledBy,
26
+ cancelledByManager,
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)
@@ -0,0 +1,22 @@
1
+ # SetupPaymentMethodRequestBody
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **userId** | **string** | ID de l\'utilisateur | [default to undefined]
9
+ **clubId** | **string** | ID du club | [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { SetupPaymentMethodRequestBody } from '@tennac-booking/sdk';
15
+
16
+ const instance: SetupPaymentMethodRequestBody = {
17
+ userId,
18
+ clubId,
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)
@@ -0,0 +1,24 @@
1
+ # SetupPaymentMethodResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **setupIntentId** | **string** | ID du Setup Intent Stripe | [optional] [default to undefined]
9
+ **clientSecret** | **string** | Client secret pour la configuration côté client | [optional] [default to undefined]
10
+ **message** | **string** | Message de confirmation | [optional] [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)
@@ -0,0 +1,121 @@
1
+ # UserPaymentApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | Confirme la configuration d\'une méthode de paiement|
8
+ |[**setupPaymentMethod**](#setuppaymentmethod) | **POST** /api/users/setupPaymentMethod | Configure une méthode de paiement pour un utilisateur|
9
+
10
+ # **confirmPaymentMethodSetup**
11
+ > ConfirmPaymentMethodSetupResponse confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody)
12
+
13
+ Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
14
+
15
+ ### Example
16
+
17
+ ```typescript
18
+ import {
19
+ UserPaymentApi,
20
+ Configuration,
21
+ ConfirmPaymentMethodSetupRequestBody
22
+ } from '@tennac-booking/sdk';
23
+
24
+ const configuration = new Configuration();
25
+ const apiInstance = new UserPaymentApi(configuration);
26
+
27
+ let confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody; //
28
+
29
+ const { status, data } = await apiInstance.confirmPaymentMethodSetup(
30
+ confirmPaymentMethodSetupRequestBody
31
+ );
32
+ ```
33
+
34
+ ### Parameters
35
+
36
+ |Name | Type | Description | Notes|
37
+ |------------- | ------------- | ------------- | -------------|
38
+ | **confirmPaymentMethodSetupRequestBody** | **ConfirmPaymentMethodSetupRequestBody**| | |
39
+
40
+
41
+ ### Return type
42
+
43
+ **ConfirmPaymentMethodSetupResponse**
44
+
45
+ ### Authorization
46
+
47
+ [bearerAuth](../README.md#bearerAuth)
48
+
49
+ ### HTTP request headers
50
+
51
+ - **Content-Type**: application/json
52
+ - **Accept**: application/json
53
+
54
+
55
+ ### HTTP response details
56
+ | Status code | Description | Response headers |
57
+ |-------------|-------------|------------------|
58
+ |**200** | Méthode de paiement confirmée avec succès | - |
59
+ |**400** | Requête invalide | - |
60
+ |**401** | Non autorisé | - |
61
+ |**404** | Ressource non trouvée | - |
62
+ |**500** | Erreur serveur interne | - |
63
+
64
+ [[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)
65
+
66
+ # **setupPaymentMethod**
67
+ > SetupPaymentMethodResponse setupPaymentMethod(setupPaymentMethodRequestBody)
68
+
69
+ Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
70
+
71
+ ### Example
72
+
73
+ ```typescript
74
+ import {
75
+ UserPaymentApi,
76
+ Configuration,
77
+ SetupPaymentMethodRequestBody
78
+ } from '@tennac-booking/sdk';
79
+
80
+ const configuration = new Configuration();
81
+ const apiInstance = new UserPaymentApi(configuration);
82
+
83
+ let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
84
+
85
+ const { status, data } = await apiInstance.setupPaymentMethod(
86
+ setupPaymentMethodRequestBody
87
+ );
88
+ ```
89
+
90
+ ### Parameters
91
+
92
+ |Name | Type | Description | Notes|
93
+ |------------- | ------------- | ------------- | -------------|
94
+ | **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
95
+
96
+
97
+ ### Return type
98
+
99
+ **SetupPaymentMethodResponse**
100
+
101
+ ### Authorization
102
+
103
+ [bearerAuth](../README.md#bearerAuth)
104
+
105
+ ### HTTP request headers
106
+
107
+ - **Content-Type**: application/json
108
+ - **Accept**: application/json
109
+
110
+
111
+ ### HTTP response details
112
+ | Status code | Description | Response headers |
113
+ |-------------|-------------|------------------|
114
+ |**200** | Setup Intent créé avec succès | - |
115
+ |**400** | Requête invalide | - |
116
+ |**401** | Non autorisé | - |
117
+ |**404** | Ressource non trouvée | - |
118
+ |**500** | Erreur serveur interne | - |
119
+
120
+ [[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)
121
+
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Pickle Ball API
5
5
  * API for managing pickle ball games and players
6
6
  *
7
- * The version of the OpenAPI document: 1.0.14
7
+ * The version of the OpenAPI document: 1.0.17
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.15",
3
+ "version": "1.0.81",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "publishConfig": {