@tennac-booking/sdk 1.0.230 → 1.0.232
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 +481 -455
- package/README.md +40 -2
- package/api.ts +2262 -33
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +7696 -6240
- package/dist/api.js +4531 -2528
- package/dist/base.d.ts +1 -1
- package/dist/base.js +3 -6
- package/dist/common.d.ts +1 -1
- package/dist/common.js +39 -23
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +3 -63
- package/dist/esm/api.d.ts +7696 -6240
- package/dist/esm/api.js +4513 -2522
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +3 -6
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +39 -23
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +3 -63
- 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/AcceptBookingInvitationRequest.md +20 -0
- package/docs/AcceptBookingInvitationResponse.md +24 -0
- package/docs/BookingClubInfo.md +2 -0
- package/docs/BookingSummary.md +2 -0
- package/docs/BookingsStaffApi.md +57 -1
- package/docs/BookingsUserApi.md +56 -0
- package/docs/CheckInPlayerSumupRequest.md +22 -0
- package/docs/CheckInPlayerSumupResponse.md +24 -0
- package/docs/CheckInSumupPaymentInfo.md +26 -0
- package/docs/JobsApi.md +7 -7
- package/docs/PaymentByPlayerInfo.md +2 -0
- package/docs/PaymentIntentResult.md +28 -0
- package/docs/PaymentProviderType.md +10 -0
- package/docs/PaymentStatus.md +14 -0
- package/docs/PaymentsStaffApi.md +124 -0
- package/docs/SumUpApi.md +63 -0
- package/docs/SumUpManagerApi.md +617 -0
- package/docs/SumupAccountStatusResponse.md +32 -0
- package/docs/SumupCancelPaymentRequest.md +20 -0
- package/docs/SumupConnectUrlResponse.md +20 -0
- package/docs/SumupCreatePaymentRequest.md +32 -0
- package/docs/SumupOAuthCallbackResponse.md +24 -0
- package/docs/SumupPairReaderRequest.md +24 -0
- package/docs/SumupPairReaderResponse.md +20 -0
- package/docs/SumupReaderInfo.md +42 -0
- package/docs/SumupReaderInfoDevice.md +22 -0
- package/docs/SumupReaderResponse.md +20 -0
- package/docs/SumupReaderStatusInfo.md +32 -0
- package/docs/SumupReaderStatusResponse.md +20 -0
- package/docs/SumupReadersResponse.md +20 -0
- package/docs/SumupUpdateReaderRequest.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,28 @@
|
|
|
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)
|
|
@@ -0,0 +1,10 @@
|
|
|
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)
|
|
@@ -0,0 +1,14 @@
|
|
|
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)
|
|
@@ -0,0 +1,124 @@
|
|
|
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
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
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
|
+
|