@tennac-booking/sdk 1.0.45 → 1.0.46
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 +1 -0
- package/README.md +37 -37
- package/api.ts +37 -37
- package/dist/api.js +37 -37
- package/dist/esm/api.js +37 -37
- package/docs/UsersApi.md +37 -37
- package/package.json +1 -1
- package/docs/AddFavoritePlayerRequestBody.md +0 -20
- package/docs/FavoriteClubItem.md +0 -26
- package/docs/FavoriteClubResponse.md +0 -22
- package/docs/FavoritePlayerPublic.md +0 -28
- package/docs/FavoritePlayersIdsResponse.md +0 -22
- package/docs/GetUserRolesResponse.md +0 -20
- package/docs/GetUserRolesResponseRolesInner.md +0 -26
- package/docs/GetUserSubscriptionsResponse.md +0 -22
- package/docs/GoogleSignInRequestBody.md +0 -20
- package/docs/GoogleSignInResponse.md +0 -24
- package/docs/InitiateSubscriptionSessionRequestBody.md +0 -26
- package/docs/InitiateSubscriptionSessionResponse.md +0 -22
- package/docs/ProfileVisibilityResponse.md +0 -20
- package/docs/StaffProfileApi.md +0 -110
- package/docs/UserApi.md +0 -63
- package/docs/UserAuthenticationApi.md +0 -226
- package/docs/UserBookingsResponse.md +0 -26
- package/docs/UserCityResponse.md +0 -20
- package/docs/UserDescriptionResponse.md +0 -20
- package/docs/UserFavoriteClubsResponse.md +0 -20
- package/docs/UserPaymentApi.md +0 -176
- package/docs/UserProfileApi.md +0 -1254
- package/docs/UserResponse.md +0 -38
- package/docs/UserSubscriptionsApi.md +0 -222
package/docs/UserPaymentApi.md
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
# UserPaymentApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to */api*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**addPaymentMethodSetup**](#addpaymentmethodsetup) | **POST** /api/users/addPaymentMethodSetup | Ajoute une méthode de paiement Stripe à la liste de l\'utilisateur|
|
|
8
|
-
|[**confirmPaymentMethodSetup**](#confirmpaymentmethodsetup) | **POST** /api/users/confirmPaymentMethodSetup | Confirme la configuration d\'une méthode de paiement|
|
|
9
|
-
|[**setupPaymentMethod**](#setuppaymentmethod) | **POST** /api/users/setupPaymentMethod | Configure une méthode de paiement pour un utilisateur|
|
|
10
|
-
|
|
11
|
-
# **addPaymentMethodSetup**
|
|
12
|
-
> AddPaymentMethodSetupResponse addPaymentMethodSetup(addPaymentMethodSetupRequestBody)
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
UserPaymentApi,
|
|
20
|
-
Configuration,
|
|
21
|
-
AddPaymentMethodSetupRequestBody
|
|
22
|
-
} from '@tennac-booking/sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new UserPaymentApi(configuration);
|
|
26
|
-
|
|
27
|
-
let addPaymentMethodSetupRequestBody: AddPaymentMethodSetupRequestBody; //
|
|
28
|
-
|
|
29
|
-
const { status, data } = await apiInstance.addPaymentMethodSetup(
|
|
30
|
-
addPaymentMethodSetupRequestBody
|
|
31
|
-
);
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Parameters
|
|
35
|
-
|
|
36
|
-
|Name | Type | Description | Notes|
|
|
37
|
-
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **addPaymentMethodSetupRequestBody** | **AddPaymentMethodSetupRequestBody**| | |
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### Return type
|
|
42
|
-
|
|
43
|
-
**AddPaymentMethodSetupResponse**
|
|
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 ajoutée | - |
|
|
59
|
-
|**400** | Requête invalide | - |
|
|
60
|
-
|**401** | Non autorisé | - |
|
|
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
|
-
# **confirmPaymentMethodSetup**
|
|
66
|
-
> ConfirmPaymentMethodSetupResponse confirmPaymentMethodSetup(confirmPaymentMethodSetupRequestBody)
|
|
67
|
-
|
|
68
|
-
Confirme que la méthode de paiement a été configurée avec succès et la sauvegarde pour l\'utilisateur
|
|
69
|
-
|
|
70
|
-
### Example
|
|
71
|
-
|
|
72
|
-
```typescript
|
|
73
|
-
import {
|
|
74
|
-
UserPaymentApi,
|
|
75
|
-
Configuration,
|
|
76
|
-
ConfirmPaymentMethodSetupRequestBody
|
|
77
|
-
} from '@tennac-booking/sdk';
|
|
78
|
-
|
|
79
|
-
const configuration = new Configuration();
|
|
80
|
-
const apiInstance = new UserPaymentApi(configuration);
|
|
81
|
-
|
|
82
|
-
let confirmPaymentMethodSetupRequestBody: ConfirmPaymentMethodSetupRequestBody; //
|
|
83
|
-
|
|
84
|
-
const { status, data } = await apiInstance.confirmPaymentMethodSetup(
|
|
85
|
-
confirmPaymentMethodSetupRequestBody
|
|
86
|
-
);
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
### Parameters
|
|
90
|
-
|
|
91
|
-
|Name | Type | Description | Notes|
|
|
92
|
-
|------------- | ------------- | ------------- | -------------|
|
|
93
|
-
| **confirmPaymentMethodSetupRequestBody** | **ConfirmPaymentMethodSetupRequestBody**| | |
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
### Return type
|
|
97
|
-
|
|
98
|
-
**ConfirmPaymentMethodSetupResponse**
|
|
99
|
-
|
|
100
|
-
### Authorization
|
|
101
|
-
|
|
102
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
103
|
-
|
|
104
|
-
### HTTP request headers
|
|
105
|
-
|
|
106
|
-
- **Content-Type**: application/json
|
|
107
|
-
- **Accept**: application/json
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
### HTTP response details
|
|
111
|
-
| Status code | Description | Response headers |
|
|
112
|
-
|-------------|-------------|------------------|
|
|
113
|
-
|**200** | Méthode de paiement confirmée avec succès | - |
|
|
114
|
-
|**400** | Requête invalide | - |
|
|
115
|
-
|**401** | Non autorisé | - |
|
|
116
|
-
|**404** | Ressource non trouvée | - |
|
|
117
|
-
|**500** | Erreur serveur interne | - |
|
|
118
|
-
|
|
119
|
-
[[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)
|
|
120
|
-
|
|
121
|
-
# **setupPaymentMethod**
|
|
122
|
-
> SetupPaymentMethodResponse setupPaymentMethod(setupPaymentMethodRequestBody)
|
|
123
|
-
|
|
124
|
-
Initie la configuration d\'une méthode de paiement via Stripe Setup Intent pour permettre les futurs paiements
|
|
125
|
-
|
|
126
|
-
### Example
|
|
127
|
-
|
|
128
|
-
```typescript
|
|
129
|
-
import {
|
|
130
|
-
UserPaymentApi,
|
|
131
|
-
Configuration,
|
|
132
|
-
SetupPaymentMethodRequestBody
|
|
133
|
-
} from '@tennac-booking/sdk';
|
|
134
|
-
|
|
135
|
-
const configuration = new Configuration();
|
|
136
|
-
const apiInstance = new UserPaymentApi(configuration);
|
|
137
|
-
|
|
138
|
-
let setupPaymentMethodRequestBody: SetupPaymentMethodRequestBody; //
|
|
139
|
-
|
|
140
|
-
const { status, data } = await apiInstance.setupPaymentMethod(
|
|
141
|
-
setupPaymentMethodRequestBody
|
|
142
|
-
);
|
|
143
|
-
```
|
|
144
|
-
|
|
145
|
-
### Parameters
|
|
146
|
-
|
|
147
|
-
|Name | Type | Description | Notes|
|
|
148
|
-
|------------- | ------------- | ------------- | -------------|
|
|
149
|
-
| **setupPaymentMethodRequestBody** | **SetupPaymentMethodRequestBody**| | |
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
### Return type
|
|
153
|
-
|
|
154
|
-
**SetupPaymentMethodResponse**
|
|
155
|
-
|
|
156
|
-
### Authorization
|
|
157
|
-
|
|
158
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
159
|
-
|
|
160
|
-
### HTTP request headers
|
|
161
|
-
|
|
162
|
-
- **Content-Type**: application/json
|
|
163
|
-
- **Accept**: application/json
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
### HTTP response details
|
|
167
|
-
| Status code | Description | Response headers |
|
|
168
|
-
|-------------|-------------|------------------|
|
|
169
|
-
|**200** | Setup Intent créé avec succès | - |
|
|
170
|
-
|**400** | Requête invalide | - |
|
|
171
|
-
|**401** | Non autorisé | - |
|
|
172
|
-
|**404** | Ressource non trouvée | - |
|
|
173
|
-
|**500** | Erreur serveur interne | - |
|
|
174
|
-
|
|
175
|
-
[[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)
|
|
176
|
-
|