@tennac-booking/sdk 1.0.18 → 1.0.19

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.
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | Message de confirmation | [default to undefined]
9
- **booking** | [**CancelBookingResponseBooking**](CancelBookingResponseBooking.md) | | [default to undefined]
8
+ **message** | **string** | | [optional] [default to undefined]
9
+ **booking** | [**CancelBookingResponseBooking**](CancelBookingResponseBooking.md) | | [optional] [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -5,12 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
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]
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **status** | **string** | | [optional] [default to undefined]
10
+ **cancelledAt** | **string** | | [optional] [default to undefined]
11
+ **cancelledBy** | **string** | | [optional] [default to undefined]
12
+ **cancelledByManager** | **boolean** | | [optional] [default to undefined]
13
+ **cancellationReason** | **string** | | [optional] [default to undefined]
14
14
 
15
15
  ## Example
16
16
 
@@ -0,0 +1,20 @@
1
+ # CheckInPlayersRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerIds** | **Array<string>** | Liste des IDs des joueurs qui ont payé/sont arrivés | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { CheckInPlayersRequest } from '@tennac-booking/sdk';
14
+
15
+ const instance: CheckInPlayersRequest = {
16
+ playerIds,
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,30 @@
1
+ # CheckInPlayersResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [optional] [default to undefined]
9
+ **checkedInPlayers** | [**Array<CheckInPlayersResponseCheckedInPlayersInner>**](CheckInPlayersResponseCheckedInPlayersInner.md) | | [optional] [default to undefined]
10
+ **notFoundPlayers** | **Array<string>** | | [optional] [default to undefined]
11
+ **allPlayersCheckedIn** | **boolean** | | [optional] [default to undefined]
12
+ **bookingFullyPaid** | **boolean** | | [optional] [default to undefined]
13
+ **totalPlayers** | **number** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { CheckInPlayersResponse } from '@tennac-booking/sdk';
19
+
20
+ const instance: CheckInPlayersResponse = {
21
+ message,
22
+ checkedInPlayers,
23
+ notFoundPlayers,
24
+ allPlayersCheckedIn,
25
+ bookingFullyPaid,
26
+ totalPlayers,
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,34 @@
1
+ # CheckInPlayersResponseCheckedInPlayersInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **playerId** | **string** | | [optional] [default to undefined]
9
+ **invoiceId** | **string** | | [optional] [default to undefined]
10
+ **amount** | **number** | | [optional] [default to undefined]
11
+ **previousStatus** | **string** | | [optional] [default to undefined]
12
+ **newStatus** | **string** | | [optional] [default to undefined]
13
+ **status** | **string** | | [optional] [default to undefined]
14
+ **paymentMethod** | **string** | | [optional] [default to undefined]
15
+ **note** | **string** | | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { CheckInPlayersResponseCheckedInPlayersInner } from '@tennac-booking/sdk';
21
+
22
+ const instance: CheckInPlayersResponseCheckedInPlayersInner = {
23
+ playerId,
24
+ invoiceId,
25
+ amount,
26
+ previousStatus,
27
+ newStatus,
28
+ status,
29
+ paymentMethod,
30
+ note,
31
+ };
32
+ ```
33
+
34
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
14
14
  **phone** | **string** | | [optional] [default to undefined]
15
15
  **email** | **string** | | [optional] [default to undefined]
16
16
  **website** | **string** | | [optional] [default to undefined]
17
+ **rib** | **string** | | [optional] [default to undefined]
17
18
  **description** | **string** | | [optional] [default to undefined]
18
19
  **logo** | **string** | | [optional] [default to undefined]
19
20
  **isActive** | **boolean** | | [optional] [default to undefined]
@@ -35,6 +36,7 @@ const instance: ClubInfoResponse = {
35
36
  phone,
36
37
  email,
37
38
  website,
39
+ rib,
38
40
  description,
39
41
  logo,
40
42
  isActive,
@@ -0,0 +1,243 @@
1
+ # ManagerBookingsApi
2
+
3
+ All URIs are relative to *https://api.mon-domaine.com*
4
+
5
+ |Method | HTTP request | Description|
6
+ |------------- | ------------- | -------------|
7
+ |[**applyNoShowFee**](#applynoshowfee) | **POST** /api/bookings/{bookingId}/apply-noshow-fee | Appliquer les frais de no-show|
8
+ |[**checkInPlayers**](#checkinplayers) | **POST** /api/bookings/{bookingId}/checkin-players | Enregistrer l\'arrivée des joueurs|
9
+ |[**getBookingPaymentStatus**](#getbookingpaymentstatus) | **GET** /api/bookings/{bookingId}/payment-status | Obtenir le statut des paiements d\'une réservation|
10
+ |[**managerCancelBooking**](#managercancelbooking) | **DELETE** /api/bookings/{bookingId}/manager-cancel | Annuler une réservation (gestionnaire)|
11
+
12
+ # **applyNoShowFee**
13
+ > NoShowFeeResponse applyNoShowFee()
14
+
15
+ Applique les frais de no-show à une réservation. Capture automatiquement les paiements autorisés et charge le créateur pour le montant manquant.
16
+
17
+ ### Example
18
+
19
+ ```typescript
20
+ import {
21
+ ManagerBookingsApi,
22
+ Configuration
23
+ } from '@tennac-booking/sdk';
24
+
25
+ const configuration = new Configuration();
26
+ const apiInstance = new ManagerBookingsApi(configuration);
27
+
28
+ let bookingId: string; //ID MongoDB de la réservation (default to undefined)
29
+
30
+ const { status, data } = await apiInstance.applyNoShowFee(
31
+ bookingId
32
+ );
33
+ ```
34
+
35
+ ### Parameters
36
+
37
+ |Name | Type | Description | Notes|
38
+ |------------- | ------------- | ------------- | -------------|
39
+ | **bookingId** | [**string**] | ID MongoDB de la réservation | defaults to undefined|
40
+
41
+
42
+ ### Return type
43
+
44
+ **NoShowFeeResponse**
45
+
46
+ ### Authorization
47
+
48
+ [bearerAuth](../README.md#bearerAuth)
49
+
50
+ ### HTTP request headers
51
+
52
+ - **Content-Type**: Not defined
53
+ - **Accept**: application/json
54
+
55
+
56
+ ### HTTP response details
57
+ | Status code | Description | Response headers |
58
+ |-------------|-------------|------------------|
59
+ |**200** | Frais de no-show appliqués avec succès | - |
60
+ |**400** | Requête invalide | - |
61
+ |**401** | Non autorisé | - |
62
+ |**403** | Accès interdit | - |
63
+ |**404** | Ressource non trouvée | - |
64
+ |**500** | Erreur serveur interne | - |
65
+
66
+ [[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)
67
+
68
+ # **checkInPlayers**
69
+ > CheckInPlayersResponse checkInPlayers(checkInPlayersRequest)
70
+
71
+ Enregistre l\'arrivée et le paiement des joueurs pour une réservation avec paiement sur place. Met à jour le statut des factures.
72
+
73
+ ### Example
74
+
75
+ ```typescript
76
+ import {
77
+ ManagerBookingsApi,
78
+ Configuration,
79
+ CheckInPlayersRequest
80
+ } from '@tennac-booking/sdk';
81
+
82
+ const configuration = new Configuration();
83
+ const apiInstance = new ManagerBookingsApi(configuration);
84
+
85
+ let bookingId: string; //ID MongoDB de la réservation (default to undefined)
86
+ let checkInPlayersRequest: CheckInPlayersRequest; //
87
+
88
+ const { status, data } = await apiInstance.checkInPlayers(
89
+ bookingId,
90
+ checkInPlayersRequest
91
+ );
92
+ ```
93
+
94
+ ### Parameters
95
+
96
+ |Name | Type | Description | Notes|
97
+ |------------- | ------------- | ------------- | -------------|
98
+ | **checkInPlayersRequest** | **CheckInPlayersRequest**| | |
99
+ | **bookingId** | [**string**] | ID MongoDB de la réservation | defaults to undefined|
100
+
101
+
102
+ ### Return type
103
+
104
+ **CheckInPlayersResponse**
105
+
106
+ ### Authorization
107
+
108
+ [bearerAuth](../README.md#bearerAuth)
109
+
110
+ ### HTTP request headers
111
+
112
+ - **Content-Type**: application/json
113
+ - **Accept**: application/json
114
+
115
+
116
+ ### HTTP response details
117
+ | Status code | Description | Response headers |
118
+ |-------------|-------------|------------------|
119
+ |**200** | Check-in effectué avec succès | - |
120
+ |**400** | Requête invalide | - |
121
+ |**401** | Non autorisé | - |
122
+ |**403** | Accès interdit | - |
123
+ |**404** | Réservation non trouvée | - |
124
+ |**500** | Erreur serveur interne | - |
125
+
126
+ [[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)
127
+
128
+ # **getBookingPaymentStatus**
129
+ > BookingPaymentStatusResponse getBookingPaymentStatus()
130
+
131
+ Récupère le statut détaillé des paiements pour tous les joueurs d\'une réservation. Utile pour l\'interface de check-in.
132
+
133
+ ### Example
134
+
135
+ ```typescript
136
+ import {
137
+ ManagerBookingsApi,
138
+ Configuration
139
+ } from '@tennac-booking/sdk';
140
+
141
+ const configuration = new Configuration();
142
+ const apiInstance = new ManagerBookingsApi(configuration);
143
+
144
+ let bookingId: string; //ID MongoDB de la réservation (default to undefined)
145
+
146
+ const { status, data } = await apiInstance.getBookingPaymentStatus(
147
+ bookingId
148
+ );
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+ |Name | Type | Description | Notes|
154
+ |------------- | ------------- | ------------- | -------------|
155
+ | **bookingId** | [**string**] | ID MongoDB de la réservation | defaults to undefined|
156
+
157
+
158
+ ### Return type
159
+
160
+ **BookingPaymentStatusResponse**
161
+
162
+ ### Authorization
163
+
164
+ [bearerAuth](../README.md#bearerAuth)
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: Not defined
169
+ - **Accept**: application/json
170
+
171
+
172
+ ### HTTP response details
173
+ | Status code | Description | Response headers |
174
+ |-------------|-------------|------------------|
175
+ |**200** | Statut des paiements récupéré avec succès | - |
176
+ |**400** | ID de réservation invalide | - |
177
+ |**401** | Non autorisé | - |
178
+ |**403** | Accès interdit | - |
179
+ |**404** | Réservation non trouvée | - |
180
+ |**500** | Erreur serveur interne | - |
181
+
182
+ [[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)
183
+
184
+ # **managerCancelBooking**
185
+ > ManagerCancelBookingResponse managerCancelBooking(managerCancelBookingRequest)
186
+
187
+ Permet à un gestionnaire d\'annuler n\'importe quelle réservation avec une raison obligatoire. Effectue un remboursement automatique si le paiement a été fait en ligne.
188
+
189
+ ### Example
190
+
191
+ ```typescript
192
+ import {
193
+ ManagerBookingsApi,
194
+ Configuration,
195
+ ManagerCancelBookingRequest
196
+ } from '@tennac-booking/sdk';
197
+
198
+ const configuration = new Configuration();
199
+ const apiInstance = new ManagerBookingsApi(configuration);
200
+
201
+ let bookingId: string; //ID MongoDB de la réservation à annuler (default to undefined)
202
+ let managerCancelBookingRequest: ManagerCancelBookingRequest; //
203
+
204
+ const { status, data } = await apiInstance.managerCancelBooking(
205
+ bookingId,
206
+ managerCancelBookingRequest
207
+ );
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ |Name | Type | Description | Notes|
213
+ |------------- | ------------- | ------------- | -------------|
214
+ | **managerCancelBookingRequest** | **ManagerCancelBookingRequest**| | |
215
+ | **bookingId** | [**string**] | ID MongoDB de la réservation à annuler | defaults to undefined|
216
+
217
+
218
+ ### Return type
219
+
220
+ **ManagerCancelBookingResponse**
221
+
222
+ ### Authorization
223
+
224
+ [bearerAuth](../README.md#bearerAuth)
225
+
226
+ ### HTTP request headers
227
+
228
+ - **Content-Type**: application/json
229
+ - **Accept**: application/json
230
+
231
+
232
+ ### HTTP response details
233
+ | Status code | Description | Response headers |
234
+ |-------------|-------------|------------------|
235
+ |**200** | Réservation annulée par le gestionnaire avec succès | - |
236
+ |**400** | Requête invalide | - |
237
+ |**401** | Non autorisé | - |
238
+ |**403** | Accès interdit | - |
239
+ |**404** | Réservation non trouvée | - |
240
+ |**500** | Erreur serveur interne | - |
241
+
242
+ [[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)
243
+
@@ -0,0 +1,20 @@
1
+ # ManagerCancelBookingRequest
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **reason** | **string** | Raison obligatoire de l\'annulation par le gestionnaire | [default to undefined]
9
+
10
+ ## Example
11
+
12
+ ```typescript
13
+ import { ManagerCancelBookingRequest } from '@tennac-booking/sdk';
14
+
15
+ const instance: ManagerCancelBookingRequest = {
16
+ reason,
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)
@@ -5,8 +5,8 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
- **message** | **string** | Message de confirmation | [default to undefined]
9
- **booking** | [**ManagerCancelBookingResponseBooking**](ManagerCancelBookingResponseBooking.md) | | [default to undefined]
8
+ **message** | **string** | | [optional] [default to undefined]
9
+ **booking** | [**ManagerCancelBookingResponseBooking**](ManagerCancelBookingResponseBooking.md) | | [optional] [default to undefined]
10
10
 
11
11
  ## Example
12
12
 
@@ -5,12 +5,12 @@
5
5
 
6
6
  Name | Type | Description | Notes
7
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]
8
+ **id** | **string** | | [optional] [default to undefined]
9
+ **status** | **string** | | [optional] [default to undefined]
10
+ **cancellationReason** | **string** | | [optional] [default to undefined]
11
+ **cancelledAt** | **string** | | [optional] [default to undefined]
12
+ **cancelledBy** | **string** | | [optional] [default to undefined]
13
+ **cancelledByManager** | **boolean** | | [optional] [default to undefined]
14
14
 
15
15
  ## Example
16
16
 
@@ -0,0 +1,30 @@
1
+ # NoShowFeeResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **message** | **string** | | [optional] [default to undefined]
9
+ **totalExpected** | **number** | | [optional] [default to undefined]
10
+ **totalCaptured** | **number** | | [optional] [default to undefined]
11
+ **missingAmount** | **number** | | [optional] [default to undefined]
12
+ **captureResults** | [**Array<NoShowFeeResponseCaptureResultsInner>**](NoShowFeeResponseCaptureResultsInner.md) | | [optional] [default to undefined]
13
+ **creatorChargeResult** | [**NoShowFeeResponseCreatorChargeResult**](NoShowFeeResponseCreatorChargeResult.md) | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { NoShowFeeResponse } from '@tennac-booking/sdk';
19
+
20
+ const instance: NoShowFeeResponse = {
21
+ message,
22
+ totalExpected,
23
+ totalCaptured,
24
+ missingAmount,
25
+ captureResults,
26
+ creatorChargeResult,
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,30 @@
1
+ # NoShowFeeResponseCaptureResultsInner
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **type** | **string** | | [optional] [default to undefined]
9
+ **playerId** | **string** | | [optional] [default to undefined]
10
+ **paymentIntentId** | **string** | | [optional] [default to undefined]
11
+ **amount** | **number** | | [optional] [default to undefined]
12
+ **status** | **string** | | [optional] [default to undefined]
13
+ **error** | **string** | | [optional] [default to undefined]
14
+
15
+ ## Example
16
+
17
+ ```typescript
18
+ import { NoShowFeeResponseCaptureResultsInner } from '@tennac-booking/sdk';
19
+
20
+ const instance: NoShowFeeResponseCaptureResultsInner = {
21
+ type,
22
+ playerId,
23
+ paymentIntentId,
24
+ amount,
25
+ status,
26
+ error,
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,26 @@
1
+ # NoShowFeeResponseCreatorChargeResult
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **success** | **boolean** | | [optional] [default to undefined]
9
+ **paymentIntentId** | **string** | | [optional] [default to undefined]
10
+ **amount** | **number** | | [optional] [default to undefined]
11
+ **error** | **string** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { NoShowFeeResponseCreatorChargeResult } from '@tennac-booking/sdk';
17
+
18
+ const instance: NoShowFeeResponseCreatorChargeResult = {
19
+ success,
20
+ paymentIntentId,
21
+ amount,
22
+ error,
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tennac-booking/sdk",
3
- "version": "1.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "OpenAPI client for @tennac-booking/sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "publishConfig": {