reach-api-sdk 1.0.151 → 1.0.153
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/dist/reach-sdk.d.ts +26 -16
- package/dist/reach-sdk.js +44 -27
- package/package.json +1 -1
- package/src/definition/swagger.yaml +133 -74
- package/src/services/StripeAccountService.ts +0 -38
- package/src/services/VenuesService.ts +60 -0
package/dist/reach-sdk.d.ts
CHANGED
|
@@ -39216,22 +39216,6 @@ type StripeAccountPost = {
|
|
|
39216
39216
|
declare class StripeAccountService {
|
|
39217
39217
|
readonly httpRequest: BaseHttpRequest;
|
|
39218
39218
|
constructor(httpRequest: BaseHttpRequest);
|
|
39219
|
-
/**
|
|
39220
|
-
* Links a stripe account to a venue. />.
|
|
39221
|
-
* @returns StripeAccount Success
|
|
39222
|
-
* @throws ApiError
|
|
39223
|
-
*/
|
|
39224
|
-
takeOffline({ venueId, stripeAccuntId, stripeAccountId, }: {
|
|
39225
|
-
/**
|
|
39226
|
-
* The venue Id.
|
|
39227
|
-
*/
|
|
39228
|
-
venueId: string;
|
|
39229
|
-
stripeAccuntId: string;
|
|
39230
|
-
/**
|
|
39231
|
-
* The venue Id.
|
|
39232
|
-
*/
|
|
39233
|
-
stripeAccountId?: string;
|
|
39234
|
-
}): CancelablePromise<StripeAccount>;
|
|
39235
39219
|
/**
|
|
39236
39220
|
* Gets the tenants stripe account details. />.
|
|
39237
39221
|
* @returns StripeAccount Success
|
|
@@ -48416,6 +48400,32 @@ declare class VenuesService {
|
|
|
48416
48400
|
*/
|
|
48417
48401
|
requestBody?: VenueCreate;
|
|
48418
48402
|
}): CancelablePromise<Venue>;
|
|
48403
|
+
/**
|
|
48404
|
+
* Links a stripe account to a venue. />.
|
|
48405
|
+
* @returns Venue Success
|
|
48406
|
+
* @throws ApiError
|
|
48407
|
+
*/
|
|
48408
|
+
linkStripeAccount({ venueId, stripeAccountId, }: {
|
|
48409
|
+
/**
|
|
48410
|
+
* The venue Id.
|
|
48411
|
+
*/
|
|
48412
|
+
venueId: string;
|
|
48413
|
+
/**
|
|
48414
|
+
* The venue Id.
|
|
48415
|
+
*/
|
|
48416
|
+
stripeAccountId: string;
|
|
48417
|
+
}): CancelablePromise<Venue>;
|
|
48418
|
+
/**
|
|
48419
|
+
* Removes a stripe account from a venue. />.
|
|
48420
|
+
* @returns Venue Success
|
|
48421
|
+
* @throws ApiError
|
|
48422
|
+
*/
|
|
48423
|
+
removeStripeAccount({ venueId, }: {
|
|
48424
|
+
/**
|
|
48425
|
+
* The venue Id.
|
|
48426
|
+
*/
|
|
48427
|
+
venueId: string;
|
|
48428
|
+
}): CancelablePromise<Venue>;
|
|
48419
48429
|
/**
|
|
48420
48430
|
* Generates an id for use in a Venue create client side process.
|
|
48421
48431
|
* @returns string Success
|
package/dist/reach-sdk.js
CHANGED
|
@@ -28158,33 +28158,6 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
28158
28158
|
constructor(httpRequest) {
|
|
28159
28159
|
this.httpRequest = httpRequest;
|
|
28160
28160
|
}
|
|
28161
|
-
/**
|
|
28162
|
-
* Links a stripe account to a venue. />.
|
|
28163
|
-
* @returns StripeAccount Success
|
|
28164
|
-
* @throws ApiError
|
|
28165
|
-
*/
|
|
28166
|
-
takeOffline({
|
|
28167
|
-
venueId,
|
|
28168
|
-
stripeAccuntId,
|
|
28169
|
-
stripeAccountId
|
|
28170
|
-
}) {
|
|
28171
|
-
return this.httpRequest.request({
|
|
28172
|
-
method: "PATCH",
|
|
28173
|
-
url: "/api/stripe-accounts/{stripeAccuntId}/link-venue/{venueId}",
|
|
28174
|
-
path: {
|
|
28175
|
-
venueId,
|
|
28176
|
-
stripeAccuntId
|
|
28177
|
-
},
|
|
28178
|
-
query: {
|
|
28179
|
-
stripeAccountId
|
|
28180
|
-
},
|
|
28181
|
-
errors: {
|
|
28182
|
-
400: `Bad Request`,
|
|
28183
|
-
422: `Client Error`,
|
|
28184
|
-
500: `Server Error`
|
|
28185
|
-
}
|
|
28186
|
-
});
|
|
28187
|
-
}
|
|
28188
28161
|
/**
|
|
28189
28162
|
* Gets the tenants stripe account details. />.
|
|
28190
28163
|
* @returns StripeAccount Success
|
|
@@ -35951,6 +35924,50 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35951
35924
|
}
|
|
35952
35925
|
});
|
|
35953
35926
|
}
|
|
35927
|
+
/**
|
|
35928
|
+
* Links a stripe account to a venue. />.
|
|
35929
|
+
* @returns Venue Success
|
|
35930
|
+
* @throws ApiError
|
|
35931
|
+
*/
|
|
35932
|
+
linkStripeAccount({
|
|
35933
|
+
venueId,
|
|
35934
|
+
stripeAccountId
|
|
35935
|
+
}) {
|
|
35936
|
+
return this.httpRequest.request({
|
|
35937
|
+
method: "PATCH",
|
|
35938
|
+
url: "/api/venues/{venueId}/link-stripe-account/{stripeAccountId}",
|
|
35939
|
+
path: {
|
|
35940
|
+
venueId,
|
|
35941
|
+
stripeAccountId
|
|
35942
|
+
},
|
|
35943
|
+
errors: {
|
|
35944
|
+
400: `Bad Request`,
|
|
35945
|
+
422: `Client Error`,
|
|
35946
|
+
500: `Server Error`
|
|
35947
|
+
}
|
|
35948
|
+
});
|
|
35949
|
+
}
|
|
35950
|
+
/**
|
|
35951
|
+
* Removes a stripe account from a venue. />.
|
|
35952
|
+
* @returns Venue Success
|
|
35953
|
+
* @throws ApiError
|
|
35954
|
+
*/
|
|
35955
|
+
removeStripeAccount({
|
|
35956
|
+
venueId
|
|
35957
|
+
}) {
|
|
35958
|
+
return this.httpRequest.request({
|
|
35959
|
+
method: "PATCH",
|
|
35960
|
+
url: "/api/venues/{venueId}/remove-stripe-account",
|
|
35961
|
+
path: {
|
|
35962
|
+
venueId
|
|
35963
|
+
},
|
|
35964
|
+
errors: {
|
|
35965
|
+
400: `Bad Request`,
|
|
35966
|
+
422: `Client Error`,
|
|
35967
|
+
500: `Server Error`
|
|
35968
|
+
}
|
|
35969
|
+
});
|
|
35970
|
+
}
|
|
35954
35971
|
/**
|
|
35955
35972
|
* Generates an id for use in a Venue create client side process.
|
|
35956
35973
|
* @returns string Success
|
package/package.json
CHANGED
|
@@ -82174,80 +82174,6 @@ paths:
|
|
|
82174
82174
|
text/json:
|
|
82175
82175
|
schema:
|
|
82176
82176
|
$ref: '#/components/schemas/ValidationResultModel'
|
|
82177
|
-
'/api/stripe-accounts/{stripeAccuntId}/link-venue/{venueId}':
|
|
82178
|
-
patch:
|
|
82179
|
-
tags:
|
|
82180
|
-
- StripeAccount
|
|
82181
|
-
summary: Links a stripe account to a venue. />.
|
|
82182
|
-
operationId: TakeOffline
|
|
82183
|
-
parameters:
|
|
82184
|
-
- name: stripeAccountId
|
|
82185
|
-
in: query
|
|
82186
|
-
description: The venue Id.
|
|
82187
|
-
schema:
|
|
82188
|
-
type: string
|
|
82189
|
-
format: uuid
|
|
82190
|
-
- name: venueId
|
|
82191
|
-
in: path
|
|
82192
|
-
description: The venue Id.
|
|
82193
|
-
required: true
|
|
82194
|
-
schema:
|
|
82195
|
-
type: string
|
|
82196
|
-
format: uuid
|
|
82197
|
-
- name: stripeAccuntId
|
|
82198
|
-
in: path
|
|
82199
|
-
required: true
|
|
82200
|
-
schema:
|
|
82201
|
-
type: string
|
|
82202
|
-
responses:
|
|
82203
|
-
'200':
|
|
82204
|
-
description: Success
|
|
82205
|
-
content:
|
|
82206
|
-
text/plain:
|
|
82207
|
-
schema:
|
|
82208
|
-
$ref: '#/components/schemas/StripeAccount'
|
|
82209
|
-
application/json:
|
|
82210
|
-
schema:
|
|
82211
|
-
$ref: '#/components/schemas/StripeAccount'
|
|
82212
|
-
text/json:
|
|
82213
|
-
schema:
|
|
82214
|
-
$ref: '#/components/schemas/StripeAccount'
|
|
82215
|
-
'400':
|
|
82216
|
-
description: Bad Request
|
|
82217
|
-
content:
|
|
82218
|
-
text/plain:
|
|
82219
|
-
schema:
|
|
82220
|
-
$ref: '#/components/schemas/ReachError'
|
|
82221
|
-
application/json:
|
|
82222
|
-
schema:
|
|
82223
|
-
$ref: '#/components/schemas/ReachError'
|
|
82224
|
-
text/json:
|
|
82225
|
-
schema:
|
|
82226
|
-
$ref: '#/components/schemas/ReachError'
|
|
82227
|
-
'500':
|
|
82228
|
-
description: Server Error
|
|
82229
|
-
content:
|
|
82230
|
-
text/plain:
|
|
82231
|
-
schema:
|
|
82232
|
-
$ref: '#/components/schemas/ReachError'
|
|
82233
|
-
application/json:
|
|
82234
|
-
schema:
|
|
82235
|
-
$ref: '#/components/schemas/ReachError'
|
|
82236
|
-
text/json:
|
|
82237
|
-
schema:
|
|
82238
|
-
$ref: '#/components/schemas/ReachError'
|
|
82239
|
-
'422':
|
|
82240
|
-
description: Client Error
|
|
82241
|
-
content:
|
|
82242
|
-
text/plain:
|
|
82243
|
-
schema:
|
|
82244
|
-
$ref: '#/components/schemas/ValidationResultModel'
|
|
82245
|
-
application/json:
|
|
82246
|
-
schema:
|
|
82247
|
-
$ref: '#/components/schemas/ValidationResultModel'
|
|
82248
|
-
text/json:
|
|
82249
|
-
schema:
|
|
82250
|
-
$ref: '#/components/schemas/ValidationResultModel'
|
|
82251
82177
|
'/api/stripe-accounts/{id}/update-stripe-status':
|
|
82252
82178
|
patch:
|
|
82253
82179
|
tags:
|
|
@@ -105852,6 +105778,139 @@ paths:
|
|
|
105852
105778
|
text/json:
|
|
105853
105779
|
schema:
|
|
105854
105780
|
$ref: '#/components/schemas/ValidationResultModel'
|
|
105781
|
+
'/api/venues/{venueId}/link-stripe-account/{stripeAccountId}':
|
|
105782
|
+
patch:
|
|
105783
|
+
tags:
|
|
105784
|
+
- Venues
|
|
105785
|
+
summary: Links a stripe account to a venue. />.
|
|
105786
|
+
operationId: LinkStripeAccount
|
|
105787
|
+
parameters:
|
|
105788
|
+
- name: venueId
|
|
105789
|
+
in: path
|
|
105790
|
+
description: The venue Id.
|
|
105791
|
+
required: true
|
|
105792
|
+
schema:
|
|
105793
|
+
type: string
|
|
105794
|
+
format: uuid
|
|
105795
|
+
- name: stripeAccountId
|
|
105796
|
+
in: path
|
|
105797
|
+
description: The venue Id.
|
|
105798
|
+
required: true
|
|
105799
|
+
schema:
|
|
105800
|
+
type: string
|
|
105801
|
+
format: uuid
|
|
105802
|
+
responses:
|
|
105803
|
+
'200':
|
|
105804
|
+
description: Success
|
|
105805
|
+
content:
|
|
105806
|
+
text/plain:
|
|
105807
|
+
schema:
|
|
105808
|
+
$ref: '#/components/schemas/Venue'
|
|
105809
|
+
application/json:
|
|
105810
|
+
schema:
|
|
105811
|
+
$ref: '#/components/schemas/Venue'
|
|
105812
|
+
text/json:
|
|
105813
|
+
schema:
|
|
105814
|
+
$ref: '#/components/schemas/Venue'
|
|
105815
|
+
'400':
|
|
105816
|
+
description: Bad Request
|
|
105817
|
+
content:
|
|
105818
|
+
text/plain:
|
|
105819
|
+
schema:
|
|
105820
|
+
$ref: '#/components/schemas/ReachError'
|
|
105821
|
+
application/json:
|
|
105822
|
+
schema:
|
|
105823
|
+
$ref: '#/components/schemas/ReachError'
|
|
105824
|
+
text/json:
|
|
105825
|
+
schema:
|
|
105826
|
+
$ref: '#/components/schemas/ReachError'
|
|
105827
|
+
'500':
|
|
105828
|
+
description: Server Error
|
|
105829
|
+
content:
|
|
105830
|
+
text/plain:
|
|
105831
|
+
schema:
|
|
105832
|
+
$ref: '#/components/schemas/ReachError'
|
|
105833
|
+
application/json:
|
|
105834
|
+
schema:
|
|
105835
|
+
$ref: '#/components/schemas/ReachError'
|
|
105836
|
+
text/json:
|
|
105837
|
+
schema:
|
|
105838
|
+
$ref: '#/components/schemas/ReachError'
|
|
105839
|
+
'422':
|
|
105840
|
+
description: Client Error
|
|
105841
|
+
content:
|
|
105842
|
+
text/plain:
|
|
105843
|
+
schema:
|
|
105844
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105845
|
+
application/json:
|
|
105846
|
+
schema:
|
|
105847
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105848
|
+
text/json:
|
|
105849
|
+
schema:
|
|
105850
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105851
|
+
'/api/venues/{venueId}/remove-stripe-account':
|
|
105852
|
+
patch:
|
|
105853
|
+
tags:
|
|
105854
|
+
- Venues
|
|
105855
|
+
summary: Removes a stripe account from a venue. />.
|
|
105856
|
+
operationId: RemoveStripeAccount
|
|
105857
|
+
parameters:
|
|
105858
|
+
- name: venueId
|
|
105859
|
+
in: path
|
|
105860
|
+
description: The venue Id.
|
|
105861
|
+
required: true
|
|
105862
|
+
schema:
|
|
105863
|
+
type: string
|
|
105864
|
+
format: uuid
|
|
105865
|
+
responses:
|
|
105866
|
+
'200':
|
|
105867
|
+
description: Success
|
|
105868
|
+
content:
|
|
105869
|
+
text/plain:
|
|
105870
|
+
schema:
|
|
105871
|
+
$ref: '#/components/schemas/Venue'
|
|
105872
|
+
application/json:
|
|
105873
|
+
schema:
|
|
105874
|
+
$ref: '#/components/schemas/Venue'
|
|
105875
|
+
text/json:
|
|
105876
|
+
schema:
|
|
105877
|
+
$ref: '#/components/schemas/Venue'
|
|
105878
|
+
'400':
|
|
105879
|
+
description: Bad Request
|
|
105880
|
+
content:
|
|
105881
|
+
text/plain:
|
|
105882
|
+
schema:
|
|
105883
|
+
$ref: '#/components/schemas/ReachError'
|
|
105884
|
+
application/json:
|
|
105885
|
+
schema:
|
|
105886
|
+
$ref: '#/components/schemas/ReachError'
|
|
105887
|
+
text/json:
|
|
105888
|
+
schema:
|
|
105889
|
+
$ref: '#/components/schemas/ReachError'
|
|
105890
|
+
'500':
|
|
105891
|
+
description: Server Error
|
|
105892
|
+
content:
|
|
105893
|
+
text/plain:
|
|
105894
|
+
schema:
|
|
105895
|
+
$ref: '#/components/schemas/ReachError'
|
|
105896
|
+
application/json:
|
|
105897
|
+
schema:
|
|
105898
|
+
$ref: '#/components/schemas/ReachError'
|
|
105899
|
+
text/json:
|
|
105900
|
+
schema:
|
|
105901
|
+
$ref: '#/components/schemas/ReachError'
|
|
105902
|
+
'422':
|
|
105903
|
+
description: Client Error
|
|
105904
|
+
content:
|
|
105905
|
+
text/plain:
|
|
105906
|
+
schema:
|
|
105907
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105908
|
+
application/json:
|
|
105909
|
+
schema:
|
|
105910
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105911
|
+
text/json:
|
|
105912
|
+
schema:
|
|
105913
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105855
105914
|
/api/venues/create/generate-id:
|
|
105856
105915
|
get:
|
|
105857
105916
|
tags:
|
|
@@ -14,44 +14,6 @@ import type { BaseHttpRequest } from '../core/BaseHttpRequest';
|
|
|
14
14
|
export class StripeAccountService {
|
|
15
15
|
constructor(public readonly httpRequest: BaseHttpRequest) {}
|
|
16
16
|
|
|
17
|
-
/**
|
|
18
|
-
* Links a stripe account to a venue. />.
|
|
19
|
-
* @returns StripeAccount Success
|
|
20
|
-
* @throws ApiError
|
|
21
|
-
*/
|
|
22
|
-
public takeOffline({
|
|
23
|
-
venueId,
|
|
24
|
-
stripeAccuntId,
|
|
25
|
-
stripeAccountId,
|
|
26
|
-
}: {
|
|
27
|
-
/**
|
|
28
|
-
* The venue Id.
|
|
29
|
-
*/
|
|
30
|
-
venueId: string;
|
|
31
|
-
stripeAccuntId: string;
|
|
32
|
-
/**
|
|
33
|
-
* The venue Id.
|
|
34
|
-
*/
|
|
35
|
-
stripeAccountId?: string;
|
|
36
|
-
}): CancelablePromise<StripeAccount> {
|
|
37
|
-
return this.httpRequest.request({
|
|
38
|
-
method: 'PATCH',
|
|
39
|
-
url: '/api/stripe-accounts/{stripeAccuntId}/link-venue/{venueId}',
|
|
40
|
-
path: {
|
|
41
|
-
venueId: venueId,
|
|
42
|
-
stripeAccuntId: stripeAccuntId,
|
|
43
|
-
},
|
|
44
|
-
query: {
|
|
45
|
-
stripeAccountId: stripeAccountId,
|
|
46
|
-
},
|
|
47
|
-
errors: {
|
|
48
|
-
400: `Bad Request`,
|
|
49
|
-
422: `Client Error`,
|
|
50
|
-
500: `Server Error`,
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
|
|
55
17
|
/**
|
|
56
18
|
* Gets the tenants stripe account details. />.
|
|
57
19
|
* @returns StripeAccount Success
|
|
@@ -149,6 +149,66 @@ export class VenuesService {
|
|
|
149
149
|
});
|
|
150
150
|
}
|
|
151
151
|
|
|
152
|
+
/**
|
|
153
|
+
* Links a stripe account to a venue. />.
|
|
154
|
+
* @returns Venue Success
|
|
155
|
+
* @throws ApiError
|
|
156
|
+
*/
|
|
157
|
+
public linkStripeAccount({
|
|
158
|
+
venueId,
|
|
159
|
+
stripeAccountId,
|
|
160
|
+
}: {
|
|
161
|
+
/**
|
|
162
|
+
* The venue Id.
|
|
163
|
+
*/
|
|
164
|
+
venueId: string;
|
|
165
|
+
/**
|
|
166
|
+
* The venue Id.
|
|
167
|
+
*/
|
|
168
|
+
stripeAccountId: string;
|
|
169
|
+
}): CancelablePromise<Venue> {
|
|
170
|
+
return this.httpRequest.request({
|
|
171
|
+
method: 'PATCH',
|
|
172
|
+
url: '/api/venues/{venueId}/link-stripe-account/{stripeAccountId}',
|
|
173
|
+
path: {
|
|
174
|
+
venueId: venueId,
|
|
175
|
+
stripeAccountId: stripeAccountId,
|
|
176
|
+
},
|
|
177
|
+
errors: {
|
|
178
|
+
400: `Bad Request`,
|
|
179
|
+
422: `Client Error`,
|
|
180
|
+
500: `Server Error`,
|
|
181
|
+
},
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Removes a stripe account from a venue. />.
|
|
187
|
+
* @returns Venue Success
|
|
188
|
+
* @throws ApiError
|
|
189
|
+
*/
|
|
190
|
+
public removeStripeAccount({
|
|
191
|
+
venueId,
|
|
192
|
+
}: {
|
|
193
|
+
/**
|
|
194
|
+
* The venue Id.
|
|
195
|
+
*/
|
|
196
|
+
venueId: string;
|
|
197
|
+
}): CancelablePromise<Venue> {
|
|
198
|
+
return this.httpRequest.request({
|
|
199
|
+
method: 'PATCH',
|
|
200
|
+
url: '/api/venues/{venueId}/remove-stripe-account',
|
|
201
|
+
path: {
|
|
202
|
+
venueId: venueId,
|
|
203
|
+
},
|
|
204
|
+
errors: {
|
|
205
|
+
400: `Bad Request`,
|
|
206
|
+
422: `Client Error`,
|
|
207
|
+
500: `Server Error`,
|
|
208
|
+
},
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
|
|
152
212
|
/**
|
|
153
213
|
* Generates an id for use in a Venue create client side process.
|
|
154
214
|
* @returns string Success
|