@tennac-booking/sdk 1.0.14 → 1.0.15

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.
@@ -1,64 +0,0 @@
1
- # BookingsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**createBooking**](#createbooking) | **POST** /api/bookings | Créer une réservation|
8
-
9
- # **createBooking**
10
- > BookingResponse createBooking(createBookingRequest)
11
-
12
- Crée une nouvelle réservation avec gestion des paiements (créateur paie tout ou paiement divisé)
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- BookingsApi,
19
- Configuration,
20
- CreateBookingRequest
21
- } from '@tennac-booking/sdk';
22
-
23
- const configuration = new Configuration();
24
- const apiInstance = new BookingsApi(configuration);
25
-
26
- let createBookingRequest: CreateBookingRequest; //
27
-
28
- const { status, data } = await apiInstance.createBooking(
29
- createBookingRequest
30
- );
31
- ```
32
-
33
- ### Parameters
34
-
35
- |Name | Type | Description | Notes|
36
- |------------- | ------------- | ------------- | -------------|
37
- | **createBookingRequest** | **CreateBookingRequest**| | |
38
-
39
-
40
- ### Return type
41
-
42
- **BookingResponse**
43
-
44
- ### Authorization
45
-
46
- [bearerAuth](../README.md#bearerAuth)
47
-
48
- ### HTTP request headers
49
-
50
- - **Content-Type**: application/json
51
- - **Accept**: application/json
52
-
53
-
54
- ### HTTP response details
55
- | Status code | Description | Response headers |
56
- |-------------|-------------|------------------|
57
- |**201** | Réservation créée avec succès | - |
58
- |**400** | Requête invalide | - |
59
- |**401** | Non autorisé | - |
60
- |**404** | Ressource non trouvée | - |
61
- |**500** | Erreur serveur interne | - |
62
-
63
- [[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)
64
-
@@ -1,128 +0,0 @@
1
- # ClubSlotsApi
2
-
3
- All URIs are relative to *https://api.mon-domaine.com*
4
-
5
- |Method | HTTP request | Description|
6
- |------------- | ------------- | -------------|
7
- |[**getAvailableSlotsBySports**](#getavailableslotsbysports) | **GET** /api/clubs/{id}/sports/{sportId}/slots | Obtenir tous les slots disponibles pour un sport dans un club|
8
- |[**getAvailableSlotsBySportsAndDay**](#getavailableslotsbysportsandday) | **GET** /api/clubs/{id}/sports/{sportId}/slots/{day} | Obtenir les slots disponibles pour un jour donné|
9
-
10
- # **getAvailableSlotsBySports**
11
- > SlotsResponse getAvailableSlotsBySports()
12
-
13
-
14
- ### Example
15
-
16
- ```typescript
17
- import {
18
- ClubSlotsApi,
19
- Configuration
20
- } from '@tennac-booking/sdk';
21
-
22
- const configuration = new Configuration();
23
- const apiInstance = new ClubSlotsApi(configuration);
24
-
25
- let id: string; //ID du club (default to undefined)
26
- let sportId: string; //ID du sport (default to undefined)
27
- let start: string; //Date de début (format ISO) (optional) (default to undefined)
28
- let end: string; //Date de fin (format ISO) (optional) (default to undefined)
29
-
30
- const { status, data } = await apiInstance.getAvailableSlotsBySports(
31
- id,
32
- sportId,
33
- start,
34
- end
35
- );
36
- ```
37
-
38
- ### Parameters
39
-
40
- |Name | Type | Description | Notes|
41
- |------------- | ------------- | ------------- | -------------|
42
- | **id** | [**string**] | ID du club | defaults to undefined|
43
- | **sportId** | [**string**] | ID du sport | defaults to undefined|
44
- | **start** | [**string**] | Date de début (format ISO) | (optional) defaults to undefined|
45
- | **end** | [**string**] | Date de fin (format ISO) | (optional) defaults to undefined|
46
-
47
-
48
- ### Return type
49
-
50
- **SlotsResponse**
51
-
52
- ### Authorization
53
-
54
- [bearerAuth](../README.md#bearerAuth)
55
-
56
- ### HTTP request headers
57
-
58
- - **Content-Type**: Not defined
59
- - **Accept**: application/json
60
-
61
-
62
- ### HTTP response details
63
- | Status code | Description | Response headers |
64
- |-------------|-------------|------------------|
65
- |**200** | Liste des créneaux disponibles | - |
66
- |**400** | Requête invalide | - |
67
- |**500** | Erreur serveur interne | - |
68
-
69
- [[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)
70
-
71
- # **getAvailableSlotsBySportsAndDay**
72
- > SlotsResponse getAvailableSlotsBySportsAndDay()
73
-
74
-
75
- ### Example
76
-
77
- ```typescript
78
- import {
79
- ClubSlotsApi,
80
- Configuration
81
- } from '@tennac-booking/sdk';
82
-
83
- const configuration = new Configuration();
84
- const apiInstance = new ClubSlotsApi(configuration);
85
-
86
- let id: string; //ID du club (default to undefined)
87
- let sportId: string; //ID du sport (default to undefined)
88
- let day: string; //Date du jour (format YYYY-MM-DD) (default to undefined)
89
-
90
- const { status, data } = await apiInstance.getAvailableSlotsBySportsAndDay(
91
- id,
92
- sportId,
93
- day
94
- );
95
- ```
96
-
97
- ### Parameters
98
-
99
- |Name | Type | Description | Notes|
100
- |------------- | ------------- | ------------- | -------------|
101
- | **id** | [**string**] | ID du club | defaults to undefined|
102
- | **sportId** | [**string**] | ID du sport | defaults to undefined|
103
- | **day** | [**string**] | Date du jour (format YYYY-MM-DD) | defaults to undefined|
104
-
105
-
106
- ### Return type
107
-
108
- **SlotsResponse**
109
-
110
- ### Authorization
111
-
112
- [bearerAuth](../README.md#bearerAuth)
113
-
114
- ### HTTP request headers
115
-
116
- - **Content-Type**: Not defined
117
- - **Accept**: application/json
118
-
119
-
120
- ### HTTP response details
121
- | Status code | Description | Response headers |
122
- |-------------|-------------|------------------|
123
- |**200** | Liste des créneaux disponibles pour le jour donné | - |
124
- |**400** | Requête invalide | - |
125
- |**500** | Erreur serveur interne | - |
126
-
127
- [[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)
128
-