@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/.openapi-generator/FILES +134 -125
- package/README.md +12 -2
- package/api.ts +457 -14
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +352 -14
- package/dist/api.js +188 -3
- 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 +352 -14
- package/dist/esm/api.js +181 -1
- 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/CancelBookingResponse.md +22 -0
- package/docs/CancelBookingResponseBooking.md +30 -0
- package/docs/ConfirmPaymentMethodSetupRequestBody.md +22 -0
- package/docs/ConfirmPaymentMethodSetupResponse.md +22 -0
- package/docs/CourtResponse.md +15 -13
- package/docs/ManagerCancelBookingResponse.md +22 -0
- package/docs/ManagerCancelBookingResponseBooking.md +30 -0
- package/docs/SetupPaymentMethodRequestBody.md +22 -0
- package/docs/SetupPaymentMethodResponse.md +24 -0
- package/docs/UserPaymentApi.md +121 -0
- package/index.ts +1 -1
- package/package.json +1 -1
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.
|
|
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/esm/common.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.
|
|
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/common.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.
|
|
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.
|
|
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.
|
|
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/esm/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.
|
|
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.
|
|
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.
|
|
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.
|
|
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)
|
package/docs/CourtResponse.md
CHANGED
|
@@ -5,19 +5,20 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**id** | **string** | | [
|
|
9
|
-
**name** | **string** | | [
|
|
10
|
-
**status** | **string** | | [
|
|
11
|
-
**comments** | **string** | | [
|
|
12
|
-
**slotDefaultDuration** | **number** | | [
|
|
13
|
-
**startTimeInTheDayInMinutes** | **number** | | [
|
|
14
|
-
**endTimeInTheDayInMinutes** | **number** | | [
|
|
15
|
-
**
|
|
16
|
-
**
|
|
17
|
-
**
|
|
18
|
-
**
|
|
19
|
-
**
|
|
20
|
-
**
|
|
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.
|
|
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).
|