@tennac-booking/sdk 1.0.181 → 1.0.182
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 +13 -0
- package/README.md +18 -0
- package/api.ts +1150 -41
- package/dist/api.d.ts +721 -12
- package/dist/api.js +685 -4
- package/dist/esm/api.d.ts +721 -12
- package/dist/esm/api.js +668 -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 +275 -0
- package/docs/SumupAccountStatusResponse.md +28 -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/SumupReaderInfo.md +34 -0
- package/docs/SumupReadersResponse.md +20 -0
- package/docs/UserClubMembership.md +0 -2
- package/docs/UserProfileResponse.md +0 -2
- package/package.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
|
+
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# SumUpManagerApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *http://localhost*
|
|
4
|
+
|
|
5
|
+
|Method | HTTP request | Description|
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
|[**disconnectSumup**](#disconnectsumup) | **POST** /api/clubs/{clubId}/sumup/disconnect | |
|
|
8
|
+
|[**getSumupConnectUrl**](#getsumupconnecturl) | **GET** /api/clubs/{clubId}/sumup/connect | |
|
|
9
|
+
|[**getSumupStatus**](#getsumupstatus) | **GET** /api/clubs/{clubId}/sumup/status | |
|
|
10
|
+
|[**listSumupReaders**](#listsumupreaders) | **GET** /api/clubs/{clubId}/sumup/readers | |
|
|
11
|
+
|[**selectSumupReader**](#selectsumupreader) | **POST** /api/clubs/{clubId}/sumup/readers/{readerId}/select | |
|
|
12
|
+
|
|
13
|
+
# **disconnectSumup**
|
|
14
|
+
> disconnectSumup()
|
|
15
|
+
|
|
16
|
+
Disconnect SumUp account for a club.
|
|
17
|
+
|
|
18
|
+
### Example
|
|
19
|
+
|
|
20
|
+
```typescript
|
|
21
|
+
import {
|
|
22
|
+
SumUpManagerApi,
|
|
23
|
+
Configuration
|
|
24
|
+
} from '@tennac-booking/sdk';
|
|
25
|
+
|
|
26
|
+
const configuration = new Configuration();
|
|
27
|
+
const apiInstance = new SumUpManagerApi(configuration);
|
|
28
|
+
|
|
29
|
+
let clubId: string; // (default to undefined)
|
|
30
|
+
|
|
31
|
+
const { status, data } = await apiInstance.disconnectSumup(
|
|
32
|
+
clubId
|
|
33
|
+
);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Parameters
|
|
37
|
+
|
|
38
|
+
|Name | Type | Description | Notes|
|
|
39
|
+
|------------- | ------------- | ------------- | -------------|
|
|
40
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
### Return type
|
|
44
|
+
|
|
45
|
+
void (empty response body)
|
|
46
|
+
|
|
47
|
+
### Authorization
|
|
48
|
+
|
|
49
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
50
|
+
|
|
51
|
+
### HTTP request headers
|
|
52
|
+
|
|
53
|
+
- **Content-Type**: Not defined
|
|
54
|
+
- **Accept**: Not defined
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
### HTTP response details
|
|
58
|
+
| Status code | Description | Response headers |
|
|
59
|
+
|-------------|-------------|------------------|
|
|
60
|
+
|**204** | SumUp déconnecté | - |
|
|
61
|
+
|**400** | Bad Request | - |
|
|
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
|
+
# **getSumupConnectUrl**
|
|
66
|
+
> SumupConnectUrlResponse getSumupConnectUrl()
|
|
67
|
+
|
|
68
|
+
Start SumUp OAuth connection for a club.
|
|
69
|
+
|
|
70
|
+
### Example
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
import {
|
|
74
|
+
SumUpManagerApi,
|
|
75
|
+
Configuration
|
|
76
|
+
} from '@tennac-booking/sdk';
|
|
77
|
+
|
|
78
|
+
const configuration = new Configuration();
|
|
79
|
+
const apiInstance = new SumUpManagerApi(configuration);
|
|
80
|
+
|
|
81
|
+
let clubId: string; // (default to undefined)
|
|
82
|
+
|
|
83
|
+
const { status, data } = await apiInstance.getSumupConnectUrl(
|
|
84
|
+
clubId
|
|
85
|
+
);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Parameters
|
|
89
|
+
|
|
90
|
+
|Name | Type | Description | Notes|
|
|
91
|
+
|------------- | ------------- | ------------- | -------------|
|
|
92
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
### Return type
|
|
96
|
+
|
|
97
|
+
**SumupConnectUrlResponse**
|
|
98
|
+
|
|
99
|
+
### Authorization
|
|
100
|
+
|
|
101
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
102
|
+
|
|
103
|
+
### HTTP request headers
|
|
104
|
+
|
|
105
|
+
- **Content-Type**: Not defined
|
|
106
|
+
- **Accept**: application/json
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
### HTTP response details
|
|
110
|
+
| Status code | Description | Response headers |
|
|
111
|
+
|-------------|-------------|------------------|
|
|
112
|
+
|**200** | URL OAuth SumUp | - |
|
|
113
|
+
|**400** | Bad Request | - |
|
|
114
|
+
|
|
115
|
+
[[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)
|
|
116
|
+
|
|
117
|
+
# **getSumupStatus**
|
|
118
|
+
> SumupAccountStatusResponse getSumupStatus()
|
|
119
|
+
|
|
120
|
+
Get SumUp connection status for a club.
|
|
121
|
+
|
|
122
|
+
### Example
|
|
123
|
+
|
|
124
|
+
```typescript
|
|
125
|
+
import {
|
|
126
|
+
SumUpManagerApi,
|
|
127
|
+
Configuration
|
|
128
|
+
} from '@tennac-booking/sdk';
|
|
129
|
+
|
|
130
|
+
const configuration = new Configuration();
|
|
131
|
+
const apiInstance = new SumUpManagerApi(configuration);
|
|
132
|
+
|
|
133
|
+
let clubId: string; // (default to undefined)
|
|
134
|
+
|
|
135
|
+
const { status, data } = await apiInstance.getSumupStatus(
|
|
136
|
+
clubId
|
|
137
|
+
);
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
### Parameters
|
|
141
|
+
|
|
142
|
+
|Name | Type | Description | Notes|
|
|
143
|
+
|------------- | ------------- | ------------- | -------------|
|
|
144
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
### Return type
|
|
148
|
+
|
|
149
|
+
**SumupAccountStatusResponse**
|
|
150
|
+
|
|
151
|
+
### Authorization
|
|
152
|
+
|
|
153
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
154
|
+
|
|
155
|
+
### HTTP request headers
|
|
156
|
+
|
|
157
|
+
- **Content-Type**: Not defined
|
|
158
|
+
- **Accept**: application/json
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### HTTP response details
|
|
162
|
+
| Status code | Description | Response headers |
|
|
163
|
+
|-------------|-------------|------------------|
|
|
164
|
+
|**200** | Statut SumUp | - |
|
|
165
|
+
|**400** | Bad Request | - |
|
|
166
|
+
|
|
167
|
+
[[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)
|
|
168
|
+
|
|
169
|
+
# **listSumupReaders**
|
|
170
|
+
> SumupReadersResponse listSumupReaders()
|
|
171
|
+
|
|
172
|
+
List SumUp readers for a club.
|
|
173
|
+
|
|
174
|
+
### Example
|
|
175
|
+
|
|
176
|
+
```typescript
|
|
177
|
+
import {
|
|
178
|
+
SumUpManagerApi,
|
|
179
|
+
Configuration
|
|
180
|
+
} from '@tennac-booking/sdk';
|
|
181
|
+
|
|
182
|
+
const configuration = new Configuration();
|
|
183
|
+
const apiInstance = new SumUpManagerApi(configuration);
|
|
184
|
+
|
|
185
|
+
let clubId: string; // (default to undefined)
|
|
186
|
+
|
|
187
|
+
const { status, data } = await apiInstance.listSumupReaders(
|
|
188
|
+
clubId
|
|
189
|
+
);
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
### Parameters
|
|
193
|
+
|
|
194
|
+
|Name | Type | Description | Notes|
|
|
195
|
+
|------------- | ------------- | ------------- | -------------|
|
|
196
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### Return type
|
|
200
|
+
|
|
201
|
+
**SumupReadersResponse**
|
|
202
|
+
|
|
203
|
+
### Authorization
|
|
204
|
+
|
|
205
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
206
|
+
|
|
207
|
+
### HTTP request headers
|
|
208
|
+
|
|
209
|
+
- **Content-Type**: Not defined
|
|
210
|
+
- **Accept**: application/json
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
### HTTP response details
|
|
214
|
+
| Status code | Description | Response headers |
|
|
215
|
+
|-------------|-------------|------------------|
|
|
216
|
+
|**200** | Readers SumUp | - |
|
|
217
|
+
|**400** | Bad Request | - |
|
|
218
|
+
|
|
219
|
+
[[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)
|
|
220
|
+
|
|
221
|
+
# **selectSumupReader**
|
|
222
|
+
> selectSumupReader()
|
|
223
|
+
|
|
224
|
+
Select a SumUp reader for a club.
|
|
225
|
+
|
|
226
|
+
### Example
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
import {
|
|
230
|
+
SumUpManagerApi,
|
|
231
|
+
Configuration
|
|
232
|
+
} from '@tennac-booking/sdk';
|
|
233
|
+
|
|
234
|
+
const configuration = new Configuration();
|
|
235
|
+
const apiInstance = new SumUpManagerApi(configuration);
|
|
236
|
+
|
|
237
|
+
let clubId: string; // (default to undefined)
|
|
238
|
+
let readerId: string; // (default to undefined)
|
|
239
|
+
|
|
240
|
+
const { status, data } = await apiInstance.selectSumupReader(
|
|
241
|
+
clubId,
|
|
242
|
+
readerId
|
|
243
|
+
);
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Parameters
|
|
247
|
+
|
|
248
|
+
|Name | Type | Description | Notes|
|
|
249
|
+
|------------- | ------------- | ------------- | -------------|
|
|
250
|
+
| **clubId** | [**string**] | | defaults to undefined|
|
|
251
|
+
| **readerId** | [**string**] | | defaults to undefined|
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
### Return type
|
|
255
|
+
|
|
256
|
+
void (empty response body)
|
|
257
|
+
|
|
258
|
+
### Authorization
|
|
259
|
+
|
|
260
|
+
[bearerAuth](../README.md#bearerAuth)
|
|
261
|
+
|
|
262
|
+
### HTTP request headers
|
|
263
|
+
|
|
264
|
+
- **Content-Type**: Not defined
|
|
265
|
+
- **Accept**: Not defined
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
### HTTP response details
|
|
269
|
+
| Status code | Description | Response headers |
|
|
270
|
+
|-------------|-------------|------------------|
|
|
271
|
+
|**204** | Reader sélectionné | - |
|
|
272
|
+
|**400** | Bad Request | - |
|
|
273
|
+
|
|
274
|
+
[[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)
|
|
275
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# SumupAccountStatusResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**connected** | **boolean** | | [default to undefined]
|
|
9
|
+
**merchantCode** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**readerId** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**scope** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**connectedAt** | **string** | | [optional] [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { SumupAccountStatusResponse } from '@tennac-booking/sdk';
|
|
18
|
+
|
|
19
|
+
const instance: SumupAccountStatusResponse = {
|
|
20
|
+
connected,
|
|
21
|
+
merchantCode,
|
|
22
|
+
readerId,
|
|
23
|
+
scope,
|
|
24
|
+
connectedAt,
|
|
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,20 @@
|
|
|
1
|
+
# SumupCancelPaymentRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**checkoutId** | **string** | | [optional] [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { SumupCancelPaymentRequest } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: SumupCancelPaymentRequest = {
|
|
16
|
+
checkoutId,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,20 @@
|
|
|
1
|
+
# SumupConnectUrlResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**url** | **string** | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { SumupConnectUrlResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: SumupConnectUrlResponse = {
|
|
16
|
+
url,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[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,32 @@
|
|
|
1
|
+
# SumupCreatePaymentRequest
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**amountInCents** | **number** | | [default to undefined]
|
|
9
|
+
**currency** | **string** | | [default to undefined]
|
|
10
|
+
**readerId** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**description** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**reference** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**metadata** | **{ [key: string]: string; }** | Construct a type with a set of properties K of type T | [optional] [default to undefined]
|
|
14
|
+
**userId** | **string** | | [optional] [default to undefined]
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import { SumupCreatePaymentRequest } from '@tennac-booking/sdk';
|
|
20
|
+
|
|
21
|
+
const instance: SumupCreatePaymentRequest = {
|
|
22
|
+
amountInCents,
|
|
23
|
+
currency,
|
|
24
|
+
readerId,
|
|
25
|
+
description,
|
|
26
|
+
reference,
|
|
27
|
+
metadata,
|
|
28
|
+
userId,
|
|
29
|
+
};
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
[[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
|
+
# SumupOAuthCallbackResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**clubId** | **string** | | [default to undefined]
|
|
9
|
+
**merchantCode** | **string** | | [default to undefined]
|
|
10
|
+
**scope** | **string** | | [optional] [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SumupOAuthCallbackResponse } from '@tennac-booking/sdk';
|
|
16
|
+
|
|
17
|
+
const instance: SumupOAuthCallbackResponse = {
|
|
18
|
+
clubId,
|
|
19
|
+
merchantCode,
|
|
20
|
+
scope,
|
|
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,34 @@
|
|
|
1
|
+
# SumupReaderInfo
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**reader_id** | **string** | | [optional] [default to undefined]
|
|
9
|
+
**id** | **string** | | [optional] [default to undefined]
|
|
10
|
+
**serial_number** | **string** | | [optional] [default to undefined]
|
|
11
|
+
**name** | **string** | | [optional] [default to undefined]
|
|
12
|
+
**status** | **string** | | [optional] [default to undefined]
|
|
13
|
+
**model** | **string** | | [optional] [default to undefined]
|
|
14
|
+
**device_type** | **string** | | [optional] [default to undefined]
|
|
15
|
+
**last_seen_at** | **string** | | [optional] [default to undefined]
|
|
16
|
+
|
|
17
|
+
## Example
|
|
18
|
+
|
|
19
|
+
```typescript
|
|
20
|
+
import { SumupReaderInfo } from '@tennac-booking/sdk';
|
|
21
|
+
|
|
22
|
+
const instance: SumupReaderInfo = {
|
|
23
|
+
reader_id,
|
|
24
|
+
id,
|
|
25
|
+
serial_number,
|
|
26
|
+
name,
|
|
27
|
+
status,
|
|
28
|
+
model,
|
|
29
|
+
device_type,
|
|
30
|
+
last_seen_at,
|
|
31
|
+
};
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[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,20 @@
|
|
|
1
|
+
# SumupReadersResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Properties
|
|
5
|
+
|
|
6
|
+
Name | Type | Description | Notes
|
|
7
|
+
------------ | ------------- | ------------- | -------------
|
|
8
|
+
**readers** | [**Array<SumupReaderInfo>**](SumupReaderInfo.md) | | [default to undefined]
|
|
9
|
+
|
|
10
|
+
## Example
|
|
11
|
+
|
|
12
|
+
```typescript
|
|
13
|
+
import { SumupReadersResponse } from '@tennac-booking/sdk';
|
|
14
|
+
|
|
15
|
+
const instance: SumupReadersResponse = {
|
|
16
|
+
readers,
|
|
17
|
+
};
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|