@tennac-booking/sdk 1.0.13 → 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.
- package/.openapi-generator/FILES +35 -12
- package/README.md +69 -60
- package/api.ts +3550 -3065
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2164 -1751
- package/dist/api.js +2523 -2150
- 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 +2164 -1751
- package/dist/esm/api.js +2429 -2109
- 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/AdminClubSlotsApi.md +62 -0
- package/docs/AdminClubsApi.md +108 -0
- package/docs/ApiErrorResponse.md +1 -1
- package/docs/ChangePasswordResponse.md +1 -1
- package/docs/ClubInfoResponse.md +6 -6
- package/docs/ClubResponse.md +6 -6
- package/docs/ClubRoleResponse.md +6 -6
- package/docs/ClubSettings.md +7 -1
- package/docs/ClubsResponse.md +22 -0
- package/docs/CourtResponse.md +7 -7
- package/docs/CourtStatus.md +5 -2
- package/docs/CreateClubRequest.md +12 -10
- package/docs/CreateClubSettingsRequest.md +28 -0
- package/docs/CreateCourtRequest.md +2 -0
- package/docs/CreatePriceRequest.md +4 -4
- package/docs/CreateSportRequest.md +4 -0
- package/docs/CreateSubscriptionPlanRequest.md +3 -3
- package/docs/DeleteClubSettingsRequest.md +20 -0
- package/docs/{DeleteClub200Response.md → DeleteSlotsResponse.md} +3 -3
- package/docs/{GenerateSlotsForNextThreeWeeks201Response.md → DeleteSport200Response.md} +3 -3
- package/docs/GenerateSlotsResponse.md +20 -0
- package/docs/GetClubInfos200Response.md +30 -0
- package/docs/GetCourtsByClubAndSport200Response.md +26 -0
- package/docs/GetLastSixMonthsTurnover200ResponseInner.md +24 -0
- package/docs/GetNumberOfClubUsers200Response.md +20 -0
- package/docs/GetUserRolesResponseRolesInner.md +4 -6
- package/docs/GoogleSignInRequestBody.md +2 -2
- package/docs/GoogleSignInResponse.md +2 -8
- package/docs/{ClubCourtsApi.md → ManagerClubCourtsApi.md} +5 -5
- package/docs/{ClubRolesApi.md → ManagerClubRolesApi.md} +19 -19
- package/docs/ManagerClubSlotsApi.md +125 -0
- package/docs/{ClubSubscriptionsApi.md → ManagerClubSubscriptionsApi.md} +15 -15
- package/docs/{ClubsApi.md → ManagerClubsApi.md} +11 -209
- package/docs/ManagerSportsApi.md +119 -0
- package/docs/PriceResponse.md +2 -8
- package/docs/RefreshTokenResponse.md +2 -6
- package/docs/SlotResponse.md +2 -8
- package/docs/SportResponse.md +0 -2
- package/docs/{ClubSportsApi.md → StaffClubAnalyticsApi.md} +20 -27
- package/docs/StaffClubBookingsApi.md +59 -0
- package/docs/StaffClubSettingsApi.md +62 -0
- package/docs/StaffClubsApi.md +59 -0
- package/docs/StaffProfileApi.md +54 -0
- package/docs/StaffSportsApi.md +62 -0
- package/docs/SubscriptionPlanResponse.md +4 -8
- package/docs/UpdateClubSettingsRequest.md +28 -0
- package/docs/UpdateSportRequest.md +4 -0
- package/docs/UpdateSubscriptionPlanRequest.md +3 -3
- package/docs/UpdateSubscriptionPlanResponse.md +2 -2
- package/docs/UserApi.md +119 -0
- package/docs/{SportsApi.md → UserAuthenticationApi.md} +54 -57
- package/docs/{BookingsApi.md → UserBookingsApi.md} +32 -32
- package/docs/UserClubCourtsApi.md +64 -0
- package/docs/UserClubSlotsApi.md +181 -0
- package/docs/UserClubSportsApi.md +60 -0
- package/docs/UserClubsApi.md +53 -0
- package/docs/{ClubSettingsApi.md → UserProfileApi.md} +59 -62
- package/docs/UserResponse.md +8 -14
- package/docs/UserSubscriptionsApi.md +222 -0
- package/docs/UsersResponse.md +22 -0
- package/index.ts +1 -1
- package/package.json +32 -1
- package/docs/ClubSlotsApi.md +0 -353
- package/docs/UsersApi.md +0 -844
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# StaffClubSettingsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getClubSettings**](#getclubsettings) | **GET** /api/club-settings | Récupère les paramètres d\'un club|
|
|
8
|
+
|
|
9
|
+
# **getClubSettings**
|
|
10
|
+
> ClubSettings getClubSettings(getClubSettingsRequest)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
StaffClubSettingsApi,
|
|
18
|
+
Configuration,
|
|
19
|
+
GetClubSettingsRequest
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new StaffClubSettingsApi(configuration);
|
|
24
|
+
|
|
25
|
+
let getClubSettingsRequest: GetClubSettingsRequest; //
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.getClubSettings(
|
|
28
|
+
getClubSettingsRequest
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **getClubSettingsRequest** | **GetClubSettingsRequest**| | |
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**ClubSettings**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: application/json
|
|
50
|
+
- **Accept**: application/json
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### HTTP response details
|
|
54
|
+
| Status code | Description | Response headers |
|
|
55
|
+
|-------------|-------------|------------------|
|
|
56
|
+
|**200** | Paramètres du club | - |
|
|
57
|
+
|**401** | Non autorisé | - |
|
|
58
|
+
|**404** | Ressource non trouvée | - |
|
|
59
|
+
|**500** | Erreur serveur interne | - |
|
|
60
|
+
|
|
61
|
+
[[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)
|
|
62
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# StaffClubsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getClubInfos**](#getclubinfos) | **GET** /api/clubs/{id}/infos | Get club information (name, address, email, etc.)|
|
|
8
|
+
|
|
9
|
+
# **getClubInfos**
|
|
10
|
+
> GetClubInfos200Response getClubInfos()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
StaffClubsApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new StaffClubsApi(configuration);
|
|
23
|
+
|
|
24
|
+
let id: string; //ID du club (default to undefined)
|
|
25
|
+
|
|
26
|
+
const { status, data } = await apiInstance.getClubInfos(
|
|
27
|
+
id
|
|
28
|
+
);
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Parameters
|
|
32
|
+
|
|
33
|
+
|Name | Type | Description | Notes|
|
|
34
|
+
|------------- | ------------- | ------------- | -------------|
|
|
35
|
+
| **id** | [**string**] | ID du club | defaults to undefined|
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
### Return type
|
|
39
|
+
|
|
40
|
+
**GetClubInfos200Response**
|
|
41
|
+
|
|
42
|
+
### Authorization
|
|
43
|
+
|
|
44
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
45
|
+
|
|
46
|
+
### HTTP request headers
|
|
47
|
+
|
|
48
|
+
- **Content-Type**: Not defined
|
|
49
|
+
- **Accept**: application/json
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
### HTTP response details
|
|
53
|
+
| Status code | Description | Response headers |
|
|
54
|
+
|-------------|-------------|------------------|
|
|
55
|
+
|**200** | Club information | - |
|
|
56
|
+
|**500** | Erreur serveur interne | - |
|
|
57
|
+
|
|
58
|
+
[[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)
|
|
59
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# StaffProfileApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getUserRolesInClubs**](#getuserrolesinclubs) | **GET** /api/users/me/roles | Récupère les rôles de l\'utilisateur dans les clubs|
|
|
8
|
+
|
|
9
|
+
# **getUserRolesInClubs**
|
|
10
|
+
> GetUserRolesResponse getUserRolesInClubs()
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
StaffProfileApi,
|
|
18
|
+
Configuration
|
|
19
|
+
} from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const configuration = new Configuration();
|
|
22
|
+
const apiInstance = new StaffProfileApi(configuration);
|
|
23
|
+
|
|
24
|
+
const { status, data } = await apiInstance.getUserRolesInClubs();
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Parameters
|
|
28
|
+
This endpoint does not have any parameters.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Return type
|
|
32
|
+
|
|
33
|
+
**GetUserRolesResponse**
|
|
34
|
+
|
|
35
|
+
### Authorization
|
|
36
|
+
|
|
37
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
38
|
+
|
|
39
|
+
### HTTP request headers
|
|
40
|
+
|
|
41
|
+
- **Content-Type**: Not defined
|
|
42
|
+
- **Accept**: application/json
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
### HTTP response details
|
|
46
|
+
| Status code | Description | Response headers |
|
|
47
|
+
|-------------|-------------|------------------|
|
|
48
|
+
|**200** | Liste des rôles dans les clubs | - |
|
|
49
|
+
|**400** | Requête invalide | - |
|
|
50
|
+
|**401** | Non autorisé | - |
|
|
51
|
+
|**500** | Erreur serveur interne | - |
|
|
52
|
+
|
|
53
|
+
[[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)
|
|
54
|
+
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# StaffSportsApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**getAllSports**](#getallsports) | **GET** /api/sports | Récupère la liste des sports d\'un club|
|
|
8
|
+
|
|
9
|
+
# **getAllSports**
|
|
10
|
+
> Array<SportResponse> getAllSports(getAllSportsRequest)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import {
|
|
17
|
+
StaffSportsApi,
|
|
18
|
+
Configuration,
|
|
19
|
+
GetAllSportsRequest
|
|
20
|
+
} from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const configuration = new Configuration();
|
|
23
|
+
const apiInstance = new StaffSportsApi(configuration);
|
|
24
|
+
|
|
25
|
+
let getAllSportsRequest: GetAllSportsRequest; //
|
|
26
|
+
|
|
27
|
+
const { status, data } = await apiInstance.getAllSports(
|
|
28
|
+
getAllSportsRequest
|
|
29
|
+
);
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Parameters
|
|
33
|
+
|
|
34
|
+
|Name | Type | Description | Notes|
|
|
35
|
+
|------------- | ------------- | ------------- | -------------|
|
|
36
|
+
| **getAllSportsRequest** | **GetAllSportsRequest**| | |
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Return type
|
|
40
|
+
|
|
41
|
+
**Array<SportResponse>**
|
|
42
|
+
|
|
43
|
+
### Authorization
|
|
44
|
+
|
|
45
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
46
|
+
|
|
47
|
+
### HTTP request headers
|
|
48
|
+
|
|
49
|
+
- **Content-Type**: application/json
|
|
50
|
+
- **Accept**: application/json
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### HTTP response details
|
|
54
|
+
| Status code | Description | Response headers |
|
|
55
|
+
|-------------|-------------|------------------|
|
|
56
|
+
|**200** | Liste des sports | - |
|
|
57
|
+
|**400** | Requête invalide | - |
|
|
58
|
+
|**401** | Non autorisé | - |
|
|
59
|
+
|**500** | Erreur serveur interne | - |
|
|
60
|
+
|
|
61
|
+
[[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)
|
|
62
|
+
|
|
@@ -6,14 +6,12 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**id** | **string** | | [optional] [default to undefined]
|
|
9
|
-
**stripeProductId** | **string** | | [optional] [default to undefined]
|
|
10
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
11
10
|
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
-
**
|
|
13
|
-
**
|
|
11
|
+
**active** | **boolean** | | [optional] [default to undefined]
|
|
12
|
+
**metadata** | **object** | | [optional] [default to undefined]
|
|
14
13
|
**createdAt** | **string** | | [optional] [default to undefined]
|
|
15
14
|
**updatedAt** | **string** | | [optional] [default to undefined]
|
|
16
|
-
**prices** | [**Array<PriceResponse>**](PriceResponse.md) | | [optional] [default to undefined]
|
|
17
15
|
|
|
18
16
|
## Example
|
|
19
17
|
|
|
@@ -22,14 +20,12 @@ import { SubscriptionPlanResponse } from '@tennac-booking/sdk';
|
|
|
22
20
|
|
|
23
21
|
const instance: SubscriptionPlanResponse = {
|
|
24
22
|
id,
|
|
25
|
-
stripeProductId,
|
|
26
23
|
name,
|
|
27
24
|
description,
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
active,
|
|
26
|
+
metadata,
|
|
30
27
|
createdAt,
|
|
31
28
|
updatedAt,
|
|
32
|
-
prices,
|
|
33
29
|
};
|
|
34
30
|
```
|
|
35
31
|
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# UpdateClubSettingsRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
**reservationStartTime** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**reservationEndTime** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**maxSimultaneousReservations** | **number** | | [optional] [default to undefined]
|
|
12
|
+
**allowWeekendReservations** | **boolean** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { UpdateClubSettingsRequest } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: UpdateClubSettingsRequest = {
|
|
20
|
+
clubId,
|
|
21
|
+
reservationStartTime,
|
|
22
|
+
reservationEndTime,
|
|
23
|
+
maxSimultaneousReservations,
|
|
24
|
+
allowWeekendReservations,
|
|
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)
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
8
|
**key** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
9
11
|
|
|
10
12
|
## Example
|
|
11
13
|
|
|
@@ -14,6 +16,8 @@ import { UpdateSportRequest } from '@tennac-booking/sdk';
|
|
|
14
16
|
|
|
15
17
|
const instance: UpdateSportRequest = {
|
|
16
18
|
key,
|
|
19
|
+
name,
|
|
20
|
+
description,
|
|
17
21
|
};
|
|
18
22
|
```
|
|
19
23
|
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**name** | **string** |
|
|
9
|
-
**description** | **string** |
|
|
10
|
-
**metadata** | **object** |
|
|
8
|
+
**name** | **string** | Nouveau nom du plan d\'abonnement | [optional] [default to undefined]
|
|
9
|
+
**description** | **string** | Nouvelle description du plan d\'abonnement | [optional] [default to undefined]
|
|
10
|
+
**metadata** | **object** | Nouvelles métadonnées pour le plan | [optional] [default to undefined]
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**message** | **string** |
|
|
9
|
-
**plan** | [**
|
|
8
|
+
**message** | **string** | Message de confirmation | [optional] [default to undefined]
|
|
9
|
+
**plan** | [**SubscriptionPlan**](SubscriptionPlan.md) | | [optional] [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|
package/docs/UserApi.md
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
# UserApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.mon-domaine.com*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**subscribeToClub**](#subscribetoclub) | **POST** /api/users/me/subscribe | Abonne l\'utilisateur connecté à un club|
|
|
8
|
+
|[**updateCustomer**](#updatecustomer) | **PUT** /api/users/me/customer | Met à jour le Customer Stripe de l\'utilisateur|
|
|
9
|
+
|
|
10
|
+
# **subscribeToClub**
|
|
11
|
+
> SubscriptionResponse subscribeToClub(subscribeToClubRequestBody)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import {
|
|
18
|
+
UserApi,
|
|
19
|
+
Configuration,
|
|
20
|
+
SubscribeToClubRequestBody
|
|
21
|
+
} from '@tennac-booking/sdk';
|
|
22
|
+
|
|
23
|
+
const configuration = new Configuration();
|
|
24
|
+
const apiInstance = new UserApi(configuration);
|
|
25
|
+
|
|
26
|
+
let subscribeToClubRequestBody: SubscribeToClubRequestBody; //
|
|
27
|
+
|
|
28
|
+
const { status, data } = await apiInstance.subscribeToClub(
|
|
29
|
+
subscribeToClubRequestBody
|
|
30
|
+
);
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Parameters
|
|
34
|
+
|
|
35
|
+
|Name | Type | Description | Notes|
|
|
36
|
+
|------------- | ------------- | ------------- | -------------|
|
|
37
|
+
| **subscribeToClubRequestBody** | **SubscribeToClubRequestBody**| | |
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### Return type
|
|
41
|
+
|
|
42
|
+
**SubscriptionResponse**
|
|
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** | Abonnement créé | - |
|
|
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
|
+
|
|
65
|
+
# **updateCustomer**
|
|
66
|
+
> UpdateCustomerResponse updateCustomer(updateCustomerRequestBody)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
### Example
|
|
70
|
+
|
|
71
|
+
```typescript
|
|
72
|
+
import {
|
|
73
|
+
UserApi,
|
|
74
|
+
Configuration,
|
|
75
|
+
UpdateCustomerRequestBody
|
|
76
|
+
} from '@tennac-booking/sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new UserApi(configuration);
|
|
80
|
+
|
|
81
|
+
let updateCustomerRequestBody: UpdateCustomerRequestBody; //
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.updateCustomer(
|
|
84
|
+
updateCustomerRequestBody
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **updateCustomerRequestBody** | **UpdateCustomerRequestBody**| | |
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**UpdateCustomerResponse**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: application/json
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | Customer mis à jour | - |
|
|
113
|
+
|**400** | Requête invalide | - |
|
|
114
|
+
|**401** | Non autorisé | - |
|
|
115
|
+
|**404** | Ressource non trouvée | - |
|
|
116
|
+
|**500** | Erreur serveur interne | - |
|
|
117
|
+
|
|
118
|
+
[[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)
|
|
119
|
+
|