@tennac-booking/sdk 1.0.183 → 1.0.185
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 +412 -426
- package/README.md +3 -23
- package/api.ts +58 -1269
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +55 -821
- package/dist/api.js +15 -767
- 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 +55 -821
- package/dist/esm/api.js +11 -750
- 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/BookingsApi.md +5 -5
- package/docs/JoinOpenBookingRequest.md +26 -0
- package/docs/UserClubMembership.md +2 -0
- package/docs/UserProfileResponse.md +2 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/docs/PaymentIntentResult.md +0 -28
- package/docs/PaymentProviderType.md +0 -10
- package/docs/PaymentStatus.md +0 -14
- package/docs/PaymentsStaffApi.md +0 -124
- package/docs/SumUpApi.md +0 -63
- package/docs/SumUpManagerApi.md +0 -332
- package/docs/SumupAccountStatusResponse.md +0 -32
- package/docs/SumupCancelPaymentRequest.md +0 -20
- package/docs/SumupConnectUrlResponse.md +0 -20
- package/docs/SumupCreatePaymentRequest.md +0 -32
- package/docs/SumupOAuthCallbackResponse.md +0 -24
- package/docs/SumupPairReaderRequest.md +0 -20
- package/docs/SumupPairReaderResponse.md +0 -20
- package/docs/SumupReaderInfo.md +0 -34
- package/docs/SumupReadersResponse.md +0 -20
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/BookingsApi.md
CHANGED
|
@@ -513,7 +513,7 @@ No authorization required
|
|
|
513
513
|
[[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)
|
|
514
514
|
|
|
515
515
|
# **joinOpenBooking**
|
|
516
|
-
> JoinOpenBookingResponse joinOpenBooking(
|
|
516
|
+
> JoinOpenBookingResponse joinOpenBooking(joinOpenBookingRequest)
|
|
517
517
|
|
|
518
518
|
|
|
519
519
|
### Example
|
|
@@ -522,18 +522,18 @@ No authorization required
|
|
|
522
522
|
import {
|
|
523
523
|
BookingsApi,
|
|
524
524
|
Configuration,
|
|
525
|
-
|
|
525
|
+
JoinOpenBookingRequest
|
|
526
526
|
} from '@tennac-booking/sdk';
|
|
527
527
|
|
|
528
528
|
const configuration = new Configuration();
|
|
529
529
|
const apiInstance = new BookingsApi(configuration);
|
|
530
530
|
|
|
531
531
|
let bookingId: string; // (default to undefined)
|
|
532
|
-
let
|
|
532
|
+
let joinOpenBookingRequest: JoinOpenBookingRequest; //
|
|
533
533
|
|
|
534
534
|
const { status, data } = await apiInstance.joinOpenBooking(
|
|
535
535
|
bookingId,
|
|
536
|
-
|
|
536
|
+
joinOpenBookingRequest
|
|
537
537
|
);
|
|
538
538
|
```
|
|
539
539
|
|
|
@@ -541,7 +541,7 @@ const { status, data } = await apiInstance.joinOpenBooking(
|
|
|
541
541
|
|
|
542
542
|
|Name | Type | Description | Notes|
|
|
543
543
|
|------------- | ------------- | ------------- | -------------|
|
|
544
|
-
| **
|
|
544
|
+
| **joinOpenBookingRequest** | **JoinOpenBookingRequest**| | |
|
|
545
545
|
| **bookingId** | [**string**] | | defaults to undefined|
|
|
546
546
|
|
|
547
547
|
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# JoinOpenBookingRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**paymentMethod** | [**PaymentMethod**](PaymentMethod.md) | | [optional] [default to undefined]
|
|
9
|
+
**useDefaultPaymentMethod** | **boolean** | Indique si l\'utilisateur veut utiliser sa méthode de paiement par défaut | [optional] [default to undefined]
|
|
10
|
+
**creditToUseInCents** | **number** | Crédit à utiliser en centimes | [optional] [default to undefined]
|
|
11
|
+
**players** | [**Array<PlayerWithPaymentMethod>**](PlayerWithPaymentMethod.md) | Liste des autres joueurs qui rejoignent également (n\'inclut PAS le joueur qui fait la requête, chacun paie sa part) | [optional] [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { JoinOpenBookingRequest } from '@tennac-booking/sdk';
|
|
17
|
+
|
|
18
|
+
const instance: JoinOpenBookingRequest = {
|
|
19
|
+
paymentMethod,
|
|
20
|
+
useDefaultPaymentMethod,
|
|
21
|
+
creditToUseInCents,
|
|
22
|
+
players,
|
|
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)
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**clubId** | **string** | | [default to undefined]
|
|
9
9
|
**clubName** | **string** | | [default to undefined]
|
|
10
10
|
**clubPicture** | **string** | | [default to undefined]
|
|
11
|
+
**bannerPictures** | **Array<string>** | | [optional] [default to undefined]
|
|
11
12
|
**address** | **string** | | [optional] [default to undefined]
|
|
12
13
|
**description** | **string** | | [optional] [default to undefined]
|
|
13
14
|
**tags** | **Array<string>** | | [optional] [default to undefined]
|
|
@@ -29,6 +30,7 @@ const instance: UserClubMembership = {
|
|
|
29
30
|
clubId,
|
|
30
31
|
clubName,
|
|
31
32
|
clubPicture,
|
|
33
|
+
bannerPictures,
|
|
32
34
|
address,
|
|
33
35
|
description,
|
|
34
36
|
tags,
|
|
@@ -42,6 +42,7 @@ Name | Type | Description | Notes
|
|
|
42
42
|
**subscriptionsCount** | **number** | | [optional] [default to undefined]
|
|
43
43
|
**subscriptions** | [**Array<ClubSubscriptions>**](ClubSubscriptions.md) | | [optional] [default to undefined]
|
|
44
44
|
**clubs** | [**Array<UserClubMembership>**](UserClubMembership.md) | | [optional] [default to undefined]
|
|
45
|
+
**favoriteClubsDetails** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
45
46
|
**frequentlyVisitedClubs** | [**Array<ClubSummary>**](ClubSummary.md) | | [optional] [default to undefined]
|
|
46
47
|
**frequentlyPlayedWith** | [**Array<PlayerSummary>**](PlayerSummary.md) | | [optional] [default to undefined]
|
|
47
48
|
**stripeLinks** | **{ [key: string]: any; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
@@ -91,6 +92,7 @@ const instance: UserProfileResponse = {
|
|
|
91
92
|
subscriptionsCount,
|
|
92
93
|
subscriptions,
|
|
93
94
|
clubs,
|
|
95
|
+
favoriteClubsDetails,
|
|
94
96
|
frequentlyVisitedClubs,
|
|
95
97
|
frequentlyPlayedWith,
|
|
96
98
|
stripeLinks,
|
package/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
# PaymentIntentResult
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Properties
|
|
5
|
-
|
|
6
|
-
Name | Type | Description | Notes
|
|
7
|
-
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**paymentId** | **string** | | [default to undefined]
|
|
9
|
-
**externalId** | **string** | | [default to undefined]
|
|
10
|
-
**status** | [**PaymentStatus**](PaymentStatus.md) | | [default to undefined]
|
|
11
|
-
**provider** | [**PaymentProviderType**](PaymentProviderType.md) | | [default to undefined]
|
|
12
|
-
**readerId** | **string** | | [optional] [default to undefined]
|
|
13
|
-
|
|
14
|
-
## Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import { PaymentIntentResult } from '@tennac-booking/sdk';
|
|
18
|
-
|
|
19
|
-
const instance: PaymentIntentResult = {
|
|
20
|
-
paymentId,
|
|
21
|
-
externalId,
|
|
22
|
-
status,
|
|
23
|
-
provider,
|
|
24
|
-
readerId,
|
|
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)
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# PaymentProviderType
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Enum
|
|
5
|
-
|
|
6
|
-
* `Stripe` (value: `'stripe'`)
|
|
7
|
-
|
|
8
|
-
* `Sumup` (value: `'sumup'`)
|
|
9
|
-
|
|
10
|
-
[[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/PaymentStatus.md
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
# PaymentStatus
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
## Enum
|
|
5
|
-
|
|
6
|
-
* `Pending` (value: `'pending'`)
|
|
7
|
-
|
|
8
|
-
* `Succeeded` (value: `'succeeded'`)
|
|
9
|
-
|
|
10
|
-
* `Failed` (value: `'failed'`)
|
|
11
|
-
|
|
12
|
-
* `Cancelled` (value: `'cancelled'`)
|
|
13
|
-
|
|
14
|
-
[[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/PaymentsStaffApi.md
DELETED
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
# PaymentsStaffApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**cancelSumupPayment**](#cancelsumuppayment) | **POST** /api/clubs/{clubId}/payments/sumup/{paymentId}/cancel | |
|
|
8
|
-
|[**createSumupPayment**](#createsumuppayment) | **POST** /api/clubs/{clubId}/payments/sumup | |
|
|
9
|
-
|
|
10
|
-
# **cancelSumupPayment**
|
|
11
|
-
> cancelSumupPayment()
|
|
12
|
-
|
|
13
|
-
Cancel a SumUp reader checkout.
|
|
14
|
-
|
|
15
|
-
### Example
|
|
16
|
-
|
|
17
|
-
```typescript
|
|
18
|
-
import {
|
|
19
|
-
PaymentsStaffApi,
|
|
20
|
-
Configuration,
|
|
21
|
-
SumupCancelPaymentRequest
|
|
22
|
-
} from '@tennac-booking/sdk';
|
|
23
|
-
|
|
24
|
-
const configuration = new Configuration();
|
|
25
|
-
const apiInstance = new PaymentsStaffApi(configuration);
|
|
26
|
-
|
|
27
|
-
let clubId: string; // (default to undefined)
|
|
28
|
-
let paymentId: string; // (default to undefined)
|
|
29
|
-
let sumupCancelPaymentRequest: SumupCancelPaymentRequest; // (optional)
|
|
30
|
-
|
|
31
|
-
const { status, data } = await apiInstance.cancelSumupPayment(
|
|
32
|
-
clubId,
|
|
33
|
-
paymentId,
|
|
34
|
-
sumupCancelPaymentRequest
|
|
35
|
-
);
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Parameters
|
|
39
|
-
|
|
40
|
-
|Name | Type | Description | Notes|
|
|
41
|
-
|------------- | ------------- | ------------- | -------------|
|
|
42
|
-
| **sumupCancelPaymentRequest** | **SumupCancelPaymentRequest**| | |
|
|
43
|
-
| **clubId** | [**string**] | | defaults to undefined|
|
|
44
|
-
| **paymentId** | [**string**] | | defaults to undefined|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
### Return type
|
|
48
|
-
|
|
49
|
-
void (empty response body)
|
|
50
|
-
|
|
51
|
-
### Authorization
|
|
52
|
-
|
|
53
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
54
|
-
|
|
55
|
-
### HTTP request headers
|
|
56
|
-
|
|
57
|
-
- **Content-Type**: application/json
|
|
58
|
-
- **Accept**: Not defined
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
### HTTP response details
|
|
62
|
-
| Status code | Description | Response headers |
|
|
63
|
-
|-------------|-------------|------------------|
|
|
64
|
-
|**204** | Paiement annulé | - |
|
|
65
|
-
|**400** | Bad Request | - |
|
|
66
|
-
|
|
67
|
-
[[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)
|
|
68
|
-
|
|
69
|
-
# **createSumupPayment**
|
|
70
|
-
> PaymentIntentResult createSumupPayment(sumupCreatePaymentRequest)
|
|
71
|
-
|
|
72
|
-
Start a SumUp reader checkout (manual payment trigger).
|
|
73
|
-
|
|
74
|
-
### Example
|
|
75
|
-
|
|
76
|
-
```typescript
|
|
77
|
-
import {
|
|
78
|
-
PaymentsStaffApi,
|
|
79
|
-
Configuration,
|
|
80
|
-
SumupCreatePaymentRequest
|
|
81
|
-
} from '@tennac-booking/sdk';
|
|
82
|
-
|
|
83
|
-
const configuration = new Configuration();
|
|
84
|
-
const apiInstance = new PaymentsStaffApi(configuration);
|
|
85
|
-
|
|
86
|
-
let clubId: string; // (default to undefined)
|
|
87
|
-
let sumupCreatePaymentRequest: SumupCreatePaymentRequest; //
|
|
88
|
-
|
|
89
|
-
const { status, data } = await apiInstance.createSumupPayment(
|
|
90
|
-
clubId,
|
|
91
|
-
sumupCreatePaymentRequest
|
|
92
|
-
);
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
### Parameters
|
|
96
|
-
|
|
97
|
-
|Name | Type | Description | Notes|
|
|
98
|
-
|------------- | ------------- | ------------- | -------------|
|
|
99
|
-
| **sumupCreatePaymentRequest** | **SumupCreatePaymentRequest**| | |
|
|
100
|
-
| **clubId** | [**string**] | | defaults to undefined|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
### Return type
|
|
104
|
-
|
|
105
|
-
**PaymentIntentResult**
|
|
106
|
-
|
|
107
|
-
### Authorization
|
|
108
|
-
|
|
109
|
-
[bearerAuth](../README.md#bearerAuth)
|
|
110
|
-
|
|
111
|
-
### HTTP request headers
|
|
112
|
-
|
|
113
|
-
- **Content-Type**: application/json
|
|
114
|
-
- **Accept**: application/json
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
### HTTP response details
|
|
118
|
-
| Status code | Description | Response headers |
|
|
119
|
-
|-------------|-------------|------------------|
|
|
120
|
-
|**201** | Paiement SumUp créé | - |
|
|
121
|
-
|**400** | Bad Request | - |
|
|
122
|
-
|
|
123
|
-
[[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)
|
|
124
|
-
|
package/docs/SumUpApi.md
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
# SumUpApi
|
|
2
|
-
|
|
3
|
-
All URIs are relative to *http://localhost*
|
|
4
|
-
|
|
5
|
-
|Method | HTTP request | Description|
|
|
6
|
-
|------------- | ------------- | -------------|
|
|
7
|
-
|[**sumupOauthCallback**](#sumupoauthcallback) | **GET** /api/sumup/oauth/callback | |
|
|
8
|
-
|
|
9
|
-
# **sumupOauthCallback**
|
|
10
|
-
> SumupOAuthCallbackResponse sumupOauthCallback()
|
|
11
|
-
|
|
12
|
-
OAuth callback for SumUp.
|
|
13
|
-
|
|
14
|
-
### Example
|
|
15
|
-
|
|
16
|
-
```typescript
|
|
17
|
-
import {
|
|
18
|
-
SumUpApi,
|
|
19
|
-
Configuration
|
|
20
|
-
} from '@tennac-booking/sdk';
|
|
21
|
-
|
|
22
|
-
const configuration = new Configuration();
|
|
23
|
-
const apiInstance = new SumUpApi(configuration);
|
|
24
|
-
|
|
25
|
-
let code: string; // (default to undefined)
|
|
26
|
-
let state: string; // (default to undefined)
|
|
27
|
-
|
|
28
|
-
const { status, data } = await apiInstance.sumupOauthCallback(
|
|
29
|
-
code,
|
|
30
|
-
state
|
|
31
|
-
);
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Parameters
|
|
35
|
-
|
|
36
|
-
|Name | Type | Description | Notes|
|
|
37
|
-
|------------- | ------------- | ------------- | -------------|
|
|
38
|
-
| **code** | [**string**] | | defaults to undefined|
|
|
39
|
-
| **state** | [**string**] | | defaults to undefined|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
### Return type
|
|
43
|
-
|
|
44
|
-
**SumupOAuthCallbackResponse**
|
|
45
|
-
|
|
46
|
-
### Authorization
|
|
47
|
-
|
|
48
|
-
No authorization required
|
|
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** | Connexion SumUp enregistrée | - |
|
|
60
|
-
|**400** | Bad Request | - |
|
|
61
|
-
|
|
62
|
-
[[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)
|
|
63
|
-
|