reach-api-sdk 1.0.152 → 1.0.154
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 +37 -16
- package/dist/reach-sdk.js +65 -27
- package/package.json +1 -1
- package/src/definition/swagger.yaml +196 -74
- package/src/services/StripeAccountService.ts +0 -38
- package/src/services/TenantsService.ts +27 -0
- 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
|
-
linkVenue({ 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
|
|
@@ -43909,6 +43893,17 @@ declare class TenantsService {
|
|
|
43909
43893
|
*/
|
|
43910
43894
|
id: string;
|
|
43911
43895
|
}): CancelablePromise<boolean>;
|
|
43896
|
+
/**
|
|
43897
|
+
* Unlinks a stripe account from a tenant. />.
|
|
43898
|
+
* @returns Tenant Success
|
|
43899
|
+
* @throws ApiError
|
|
43900
|
+
*/
|
|
43901
|
+
unlinkStripeAccount({ tenantId, }: {
|
|
43902
|
+
/**
|
|
43903
|
+
* The tenant Id.
|
|
43904
|
+
*/
|
|
43905
|
+
tenantId: string;
|
|
43906
|
+
}): CancelablePromise<Tenant>;
|
|
43912
43907
|
/**
|
|
43913
43908
|
* Registers the tenants domain with Apple pay in Stripe. />.
|
|
43914
43909
|
* @returns string Success
|
|
@@ -48416,6 +48411,32 @@ declare class VenuesService {
|
|
|
48416
48411
|
*/
|
|
48417
48412
|
requestBody?: VenueCreate;
|
|
48418
48413
|
}): CancelablePromise<Venue>;
|
|
48414
|
+
/**
|
|
48415
|
+
* Links a stripe account to a venue. />.
|
|
48416
|
+
* @returns Venue Success
|
|
48417
|
+
* @throws ApiError
|
|
48418
|
+
*/
|
|
48419
|
+
linkStripeAccount({ venueId, stripeAccountId, }: {
|
|
48420
|
+
/**
|
|
48421
|
+
* The venue Id.
|
|
48422
|
+
*/
|
|
48423
|
+
venueId: string;
|
|
48424
|
+
/**
|
|
48425
|
+
* The venue Id.
|
|
48426
|
+
*/
|
|
48427
|
+
stripeAccountId: string;
|
|
48428
|
+
}): CancelablePromise<Venue>;
|
|
48429
|
+
/**
|
|
48430
|
+
* Unlinks a stripe account from a venue. />.
|
|
48431
|
+
* @returns Venue Success
|
|
48432
|
+
* @throws ApiError
|
|
48433
|
+
*/
|
|
48434
|
+
unlinkStripeAccount({ venueId, }: {
|
|
48435
|
+
/**
|
|
48436
|
+
* The venue Id.
|
|
48437
|
+
*/
|
|
48438
|
+
venueId: string;
|
|
48439
|
+
}): CancelablePromise<Venue>;
|
|
48419
48440
|
/**
|
|
48420
48441
|
* Generates an id for use in a Venue create client side process.
|
|
48421
48442
|
* @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
|
-
linkVenue({
|
|
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
|
|
@@ -32049,6 +32022,27 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
32049
32022
|
}
|
|
32050
32023
|
});
|
|
32051
32024
|
}
|
|
32025
|
+
/**
|
|
32026
|
+
* Unlinks a stripe account from a tenant. />.
|
|
32027
|
+
* @returns Tenant Success
|
|
32028
|
+
* @throws ApiError
|
|
32029
|
+
*/
|
|
32030
|
+
unlinkStripeAccount({
|
|
32031
|
+
tenantId
|
|
32032
|
+
}) {
|
|
32033
|
+
return this.httpRequest.request({
|
|
32034
|
+
method: "PATCH",
|
|
32035
|
+
url: "/api/tenants/{tenantId}/unlink-stripe-account",
|
|
32036
|
+
path: {
|
|
32037
|
+
tenantId
|
|
32038
|
+
},
|
|
32039
|
+
errors: {
|
|
32040
|
+
400: `Bad Request`,
|
|
32041
|
+
422: `Client Error`,
|
|
32042
|
+
500: `Server Error`
|
|
32043
|
+
}
|
|
32044
|
+
});
|
|
32045
|
+
}
|
|
32052
32046
|
/**
|
|
32053
32047
|
* Registers the tenants domain with Apple pay in Stripe. />.
|
|
32054
32048
|
* @returns string Success
|
|
@@ -35951,6 +35945,50 @@ const request = (config, options, axiosClient = axios) => {
|
|
|
35951
35945
|
}
|
|
35952
35946
|
});
|
|
35953
35947
|
}
|
|
35948
|
+
/**
|
|
35949
|
+
* Links a stripe account to a venue. />.
|
|
35950
|
+
* @returns Venue Success
|
|
35951
|
+
* @throws ApiError
|
|
35952
|
+
*/
|
|
35953
|
+
linkStripeAccount({
|
|
35954
|
+
venueId,
|
|
35955
|
+
stripeAccountId
|
|
35956
|
+
}) {
|
|
35957
|
+
return this.httpRequest.request({
|
|
35958
|
+
method: "PATCH",
|
|
35959
|
+
url: "/api/venues/{venueId}/link-stripe-account/{stripeAccountId}",
|
|
35960
|
+
path: {
|
|
35961
|
+
venueId,
|
|
35962
|
+
stripeAccountId
|
|
35963
|
+
},
|
|
35964
|
+
errors: {
|
|
35965
|
+
400: `Bad Request`,
|
|
35966
|
+
422: `Client Error`,
|
|
35967
|
+
500: `Server Error`
|
|
35968
|
+
}
|
|
35969
|
+
});
|
|
35970
|
+
}
|
|
35971
|
+
/**
|
|
35972
|
+
* Unlinks a stripe account from a venue. />.
|
|
35973
|
+
* @returns Venue Success
|
|
35974
|
+
* @throws ApiError
|
|
35975
|
+
*/
|
|
35976
|
+
unlinkStripeAccount({
|
|
35977
|
+
venueId
|
|
35978
|
+
}) {
|
|
35979
|
+
return this.httpRequest.request({
|
|
35980
|
+
method: "PATCH",
|
|
35981
|
+
url: "/api/venues/{venueId}/unlink-stripe-account",
|
|
35982
|
+
path: {
|
|
35983
|
+
venueId
|
|
35984
|
+
},
|
|
35985
|
+
errors: {
|
|
35986
|
+
400: `Bad Request`,
|
|
35987
|
+
422: `Client Error`,
|
|
35988
|
+
500: `Server Error`
|
|
35989
|
+
}
|
|
35990
|
+
});
|
|
35991
|
+
}
|
|
35954
35992
|
/**
|
|
35955
35993
|
* Generates an id for use in a Venue create client side process.
|
|
35956
35994
|
* @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: LinkVenue
|
|
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:
|
|
@@ -93972,6 +93898,69 @@ paths:
|
|
|
93972
93898
|
text/json:
|
|
93973
93899
|
schema:
|
|
93974
93900
|
$ref: '#/components/schemas/ValidationResultModel'
|
|
93901
|
+
'/api/tenants/{tenantId}/unlink-stripe-account':
|
|
93902
|
+
patch:
|
|
93903
|
+
tags:
|
|
93904
|
+
- Tenants
|
|
93905
|
+
summary: Unlinks a stripe account from a tenant. />.
|
|
93906
|
+
operationId: UnlinkStripeAccount
|
|
93907
|
+
parameters:
|
|
93908
|
+
- name: tenantId
|
|
93909
|
+
in: path
|
|
93910
|
+
description: The tenant Id.
|
|
93911
|
+
required: true
|
|
93912
|
+
schema:
|
|
93913
|
+
type: string
|
|
93914
|
+
format: uuid
|
|
93915
|
+
responses:
|
|
93916
|
+
'200':
|
|
93917
|
+
description: Success
|
|
93918
|
+
content:
|
|
93919
|
+
text/plain:
|
|
93920
|
+
schema:
|
|
93921
|
+
$ref: '#/components/schemas/Tenant'
|
|
93922
|
+
application/json:
|
|
93923
|
+
schema:
|
|
93924
|
+
$ref: '#/components/schemas/Tenant'
|
|
93925
|
+
text/json:
|
|
93926
|
+
schema:
|
|
93927
|
+
$ref: '#/components/schemas/Tenant'
|
|
93928
|
+
'400':
|
|
93929
|
+
description: Bad Request
|
|
93930
|
+
content:
|
|
93931
|
+
text/plain:
|
|
93932
|
+
schema:
|
|
93933
|
+
$ref: '#/components/schemas/ReachError'
|
|
93934
|
+
application/json:
|
|
93935
|
+
schema:
|
|
93936
|
+
$ref: '#/components/schemas/ReachError'
|
|
93937
|
+
text/json:
|
|
93938
|
+
schema:
|
|
93939
|
+
$ref: '#/components/schemas/ReachError'
|
|
93940
|
+
'500':
|
|
93941
|
+
description: Server Error
|
|
93942
|
+
content:
|
|
93943
|
+
text/plain:
|
|
93944
|
+
schema:
|
|
93945
|
+
$ref: '#/components/schemas/ReachError'
|
|
93946
|
+
application/json:
|
|
93947
|
+
schema:
|
|
93948
|
+
$ref: '#/components/schemas/ReachError'
|
|
93949
|
+
text/json:
|
|
93950
|
+
schema:
|
|
93951
|
+
$ref: '#/components/schemas/ReachError'
|
|
93952
|
+
'422':
|
|
93953
|
+
description: Client Error
|
|
93954
|
+
content:
|
|
93955
|
+
text/plain:
|
|
93956
|
+
schema:
|
|
93957
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
93958
|
+
application/json:
|
|
93959
|
+
schema:
|
|
93960
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
93961
|
+
text/json:
|
|
93962
|
+
schema:
|
|
93963
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
93975
93964
|
'/api/tenants/{id}/register-apple-pay-domain':
|
|
93976
93965
|
get:
|
|
93977
93966
|
tags:
|
|
@@ -105852,6 +105841,139 @@ paths:
|
|
|
105852
105841
|
text/json:
|
|
105853
105842
|
schema:
|
|
105854
105843
|
$ref: '#/components/schemas/ValidationResultModel'
|
|
105844
|
+
'/api/venues/{venueId}/link-stripe-account/{stripeAccountId}':
|
|
105845
|
+
patch:
|
|
105846
|
+
tags:
|
|
105847
|
+
- Venues
|
|
105848
|
+
summary: Links a stripe account to a venue. />.
|
|
105849
|
+
operationId: LinkStripeAccount
|
|
105850
|
+
parameters:
|
|
105851
|
+
- name: venueId
|
|
105852
|
+
in: path
|
|
105853
|
+
description: The venue Id.
|
|
105854
|
+
required: true
|
|
105855
|
+
schema:
|
|
105856
|
+
type: string
|
|
105857
|
+
format: uuid
|
|
105858
|
+
- name: stripeAccountId
|
|
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'
|
|
105914
|
+
'/api/venues/{venueId}/unlink-stripe-account':
|
|
105915
|
+
patch:
|
|
105916
|
+
tags:
|
|
105917
|
+
- Venues
|
|
105918
|
+
summary: Unlinks a stripe account from a venue. />.
|
|
105919
|
+
operationId: UnlinkStripeAccount
|
|
105920
|
+
parameters:
|
|
105921
|
+
- name: venueId
|
|
105922
|
+
in: path
|
|
105923
|
+
description: The venue Id.
|
|
105924
|
+
required: true
|
|
105925
|
+
schema:
|
|
105926
|
+
type: string
|
|
105927
|
+
format: uuid
|
|
105928
|
+
responses:
|
|
105929
|
+
'200':
|
|
105930
|
+
description: Success
|
|
105931
|
+
content:
|
|
105932
|
+
text/plain:
|
|
105933
|
+
schema:
|
|
105934
|
+
$ref: '#/components/schemas/Venue'
|
|
105935
|
+
application/json:
|
|
105936
|
+
schema:
|
|
105937
|
+
$ref: '#/components/schemas/Venue'
|
|
105938
|
+
text/json:
|
|
105939
|
+
schema:
|
|
105940
|
+
$ref: '#/components/schemas/Venue'
|
|
105941
|
+
'400':
|
|
105942
|
+
description: Bad Request
|
|
105943
|
+
content:
|
|
105944
|
+
text/plain:
|
|
105945
|
+
schema:
|
|
105946
|
+
$ref: '#/components/schemas/ReachError'
|
|
105947
|
+
application/json:
|
|
105948
|
+
schema:
|
|
105949
|
+
$ref: '#/components/schemas/ReachError'
|
|
105950
|
+
text/json:
|
|
105951
|
+
schema:
|
|
105952
|
+
$ref: '#/components/schemas/ReachError'
|
|
105953
|
+
'500':
|
|
105954
|
+
description: Server Error
|
|
105955
|
+
content:
|
|
105956
|
+
text/plain:
|
|
105957
|
+
schema:
|
|
105958
|
+
$ref: '#/components/schemas/ReachError'
|
|
105959
|
+
application/json:
|
|
105960
|
+
schema:
|
|
105961
|
+
$ref: '#/components/schemas/ReachError'
|
|
105962
|
+
text/json:
|
|
105963
|
+
schema:
|
|
105964
|
+
$ref: '#/components/schemas/ReachError'
|
|
105965
|
+
'422':
|
|
105966
|
+
description: Client Error
|
|
105967
|
+
content:
|
|
105968
|
+
text/plain:
|
|
105969
|
+
schema:
|
|
105970
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105971
|
+
application/json:
|
|
105972
|
+
schema:
|
|
105973
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105974
|
+
text/json:
|
|
105975
|
+
schema:
|
|
105976
|
+
$ref: '#/components/schemas/ValidationResultModel'
|
|
105855
105977
|
/api/venues/create/generate-id:
|
|
105856
105978
|
get:
|
|
105857
105979
|
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 linkVenue({
|
|
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
|
|
@@ -268,6 +268,33 @@ export class TenantsService {
|
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
/**
|
|
272
|
+
* Unlinks a stripe account from a tenant. />.
|
|
273
|
+
* @returns Tenant Success
|
|
274
|
+
* @throws ApiError
|
|
275
|
+
*/
|
|
276
|
+
public unlinkStripeAccount({
|
|
277
|
+
tenantId,
|
|
278
|
+
}: {
|
|
279
|
+
/**
|
|
280
|
+
* The tenant Id.
|
|
281
|
+
*/
|
|
282
|
+
tenantId: string;
|
|
283
|
+
}): CancelablePromise<Tenant> {
|
|
284
|
+
return this.httpRequest.request({
|
|
285
|
+
method: 'PATCH',
|
|
286
|
+
url: '/api/tenants/{tenantId}/unlink-stripe-account',
|
|
287
|
+
path: {
|
|
288
|
+
tenantId: tenantId,
|
|
289
|
+
},
|
|
290
|
+
errors: {
|
|
291
|
+
400: `Bad Request`,
|
|
292
|
+
422: `Client Error`,
|
|
293
|
+
500: `Server Error`,
|
|
294
|
+
},
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
|
|
271
298
|
/**
|
|
272
299
|
* Registers the tenants domain with Apple pay in Stripe. />.
|
|
273
300
|
* @returns string 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
|
+
* Unlinks a stripe account from a venue. />.
|
|
187
|
+
* @returns Venue Success
|
|
188
|
+
* @throws ApiError
|
|
189
|
+
*/
|
|
190
|
+
public unlinkStripeAccount({
|
|
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}/unlink-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
|