@gooday_corp/gooday-api-client 1.2.109 → 1.2.112
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/api.ts +239 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1058,6 +1058,34 @@ export interface BookingServicePayload {
|
|
|
1058
1058
|
*/
|
|
1059
1059
|
'serviceId': string;
|
|
1060
1060
|
}
|
|
1061
|
+
/**
|
|
1062
|
+
*
|
|
1063
|
+
* @export
|
|
1064
|
+
* @interface BusinessConnectedAccount
|
|
1065
|
+
*/
|
|
1066
|
+
export interface BusinessConnectedAccount {
|
|
1067
|
+
/**
|
|
1068
|
+
* Account ID
|
|
1069
|
+
* @type {string}
|
|
1070
|
+
* @memberof BusinessConnectedAccount
|
|
1071
|
+
*/
|
|
1072
|
+
'id': string;
|
|
1073
|
+
/**
|
|
1074
|
+
* Flag indicates account has been verified or not
|
|
1075
|
+
* @type {string}
|
|
1076
|
+
* @memberof BusinessConnectedAccount
|
|
1077
|
+
*/
|
|
1078
|
+
'status': BusinessConnectedAccountStatusEnum;
|
|
1079
|
+
}
|
|
1080
|
+
|
|
1081
|
+
export const BusinessConnectedAccountStatusEnum = {
|
|
1082
|
+
Pending: 'PENDING',
|
|
1083
|
+
VerificationRequired: 'VERIFICATION_REQUIRED',
|
|
1084
|
+
Connected: 'CONNECTED'
|
|
1085
|
+
} as const;
|
|
1086
|
+
|
|
1087
|
+
export type BusinessConnectedAccountStatusEnum = typeof BusinessConnectedAccountStatusEnum[keyof typeof BusinessConnectedAccountStatusEnum];
|
|
1088
|
+
|
|
1061
1089
|
/**
|
|
1062
1090
|
*
|
|
1063
1091
|
* @export
|
|
@@ -1209,6 +1237,12 @@ export interface BusinessEntity {
|
|
|
1209
1237
|
* @memberof BusinessEntity
|
|
1210
1238
|
*/
|
|
1211
1239
|
'businessCategory'?: string;
|
|
1240
|
+
/**
|
|
1241
|
+
* Connected business account ID
|
|
1242
|
+
* @type {string}
|
|
1243
|
+
* @memberof BusinessEntity
|
|
1244
|
+
*/
|
|
1245
|
+
'accountId'?: string;
|
|
1212
1246
|
/**
|
|
1213
1247
|
* Business verification status
|
|
1214
1248
|
* @type {string}
|
|
@@ -7065,6 +7099,25 @@ export interface UserWaitingListResponseDTO {
|
|
|
7065
7099
|
*/
|
|
7066
7100
|
'data': UserWaitingListPayloadDTO;
|
|
7067
7101
|
}
|
|
7102
|
+
/**
|
|
7103
|
+
*
|
|
7104
|
+
* @export
|
|
7105
|
+
* @interface VerificationLinkResponseDTO
|
|
7106
|
+
*/
|
|
7107
|
+
export interface VerificationLinkResponseDTO {
|
|
7108
|
+
/**
|
|
7109
|
+
* Verification link
|
|
7110
|
+
* @type {string}
|
|
7111
|
+
* @memberof VerificationLinkResponseDTO
|
|
7112
|
+
*/
|
|
7113
|
+
'link': string;
|
|
7114
|
+
/**
|
|
7115
|
+
* Expiration when link will be invalid
|
|
7116
|
+
* @type {number}
|
|
7117
|
+
* @memberof VerificationLinkResponseDTO
|
|
7118
|
+
*/
|
|
7119
|
+
'expires': number;
|
|
7120
|
+
}
|
|
7068
7121
|
/**
|
|
7069
7122
|
*
|
|
7070
7123
|
* @export
|
|
@@ -15858,6 +15911,72 @@ export class OAuthApi extends BaseAPI {
|
|
|
15858
15911
|
*/
|
|
15859
15912
|
export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
15860
15913
|
return {
|
|
15914
|
+
/**
|
|
15915
|
+
*
|
|
15916
|
+
* @param {*} [options] Override http request option.
|
|
15917
|
+
* @throws {RequiredError}
|
|
15918
|
+
*/
|
|
15919
|
+
paymentControllerConnectAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15920
|
+
const localVarPath = `/v1/payment/connect-account`;
|
|
15921
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15922
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15923
|
+
let baseOptions;
|
|
15924
|
+
if (configuration) {
|
|
15925
|
+
baseOptions = configuration.baseOptions;
|
|
15926
|
+
}
|
|
15927
|
+
|
|
15928
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15929
|
+
const localVarHeaderParameter = {} as any;
|
|
15930
|
+
const localVarQueryParameter = {} as any;
|
|
15931
|
+
|
|
15932
|
+
// authentication bearer required
|
|
15933
|
+
// http bearer authentication required
|
|
15934
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15935
|
+
|
|
15936
|
+
|
|
15937
|
+
|
|
15938
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15939
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15940
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15941
|
+
|
|
15942
|
+
return {
|
|
15943
|
+
url: toPathString(localVarUrlObj),
|
|
15944
|
+
options: localVarRequestOptions,
|
|
15945
|
+
};
|
|
15946
|
+
},
|
|
15947
|
+
/**
|
|
15948
|
+
*
|
|
15949
|
+
* @param {*} [options] Override http request option.
|
|
15950
|
+
* @throws {RequiredError}
|
|
15951
|
+
*/
|
|
15952
|
+
paymentControllerCreateAccountVerificationLink: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15953
|
+
const localVarPath = `/v1/payment/verification-link`;
|
|
15954
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15955
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15956
|
+
let baseOptions;
|
|
15957
|
+
if (configuration) {
|
|
15958
|
+
baseOptions = configuration.baseOptions;
|
|
15959
|
+
}
|
|
15960
|
+
|
|
15961
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
15962
|
+
const localVarHeaderParameter = {} as any;
|
|
15963
|
+
const localVarQueryParameter = {} as any;
|
|
15964
|
+
|
|
15965
|
+
// authentication bearer required
|
|
15966
|
+
// http bearer authentication required
|
|
15967
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15968
|
+
|
|
15969
|
+
|
|
15970
|
+
|
|
15971
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15972
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15973
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15974
|
+
|
|
15975
|
+
return {
|
|
15976
|
+
url: toPathString(localVarUrlObj),
|
|
15977
|
+
options: localVarRequestOptions,
|
|
15978
|
+
};
|
|
15979
|
+
},
|
|
15861
15980
|
/**
|
|
15862
15981
|
*
|
|
15863
15982
|
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
@@ -16068,6 +16187,39 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
16068
16187
|
options: localVarRequestOptions,
|
|
16069
16188
|
};
|
|
16070
16189
|
},
|
|
16190
|
+
/**
|
|
16191
|
+
*
|
|
16192
|
+
* @param {*} [options] Override http request option.
|
|
16193
|
+
* @throws {RequiredError}
|
|
16194
|
+
*/
|
|
16195
|
+
paymentControllerRetrieveConnectedAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16196
|
+
const localVarPath = `/v1/payment/connected-account`;
|
|
16197
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16198
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16199
|
+
let baseOptions;
|
|
16200
|
+
if (configuration) {
|
|
16201
|
+
baseOptions = configuration.baseOptions;
|
|
16202
|
+
}
|
|
16203
|
+
|
|
16204
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16205
|
+
const localVarHeaderParameter = {} as any;
|
|
16206
|
+
const localVarQueryParameter = {} as any;
|
|
16207
|
+
|
|
16208
|
+
// authentication bearer required
|
|
16209
|
+
// http bearer authentication required
|
|
16210
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16211
|
+
|
|
16212
|
+
|
|
16213
|
+
|
|
16214
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16215
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16216
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16217
|
+
|
|
16218
|
+
return {
|
|
16219
|
+
url: toPathString(localVarUrlObj),
|
|
16220
|
+
options: localVarRequestOptions,
|
|
16221
|
+
};
|
|
16222
|
+
},
|
|
16071
16223
|
/**
|
|
16072
16224
|
*
|
|
16073
16225
|
* @param {*} [options] Override http request option.
|
|
@@ -16142,6 +16294,28 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
16142
16294
|
export const PlansApiFp = function(configuration?: Configuration) {
|
|
16143
16295
|
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
16144
16296
|
return {
|
|
16297
|
+
/**
|
|
16298
|
+
*
|
|
16299
|
+
* @param {*} [options] Override http request option.
|
|
16300
|
+
* @throws {RequiredError}
|
|
16301
|
+
*/
|
|
16302
|
+
async paymentControllerConnectAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessConnectedAccount>> {
|
|
16303
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerConnectAccount(options);
|
|
16304
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16305
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerConnectAccount']?.[localVarOperationServerIndex]?.url;
|
|
16306
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16307
|
+
},
|
|
16308
|
+
/**
|
|
16309
|
+
*
|
|
16310
|
+
* @param {*} [options] Override http request option.
|
|
16311
|
+
* @throws {RequiredError}
|
|
16312
|
+
*/
|
|
16313
|
+
async paymentControllerCreateAccountVerificationLink(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerificationLinkResponseDTO>> {
|
|
16314
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateAccountVerificationLink(options);
|
|
16315
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16316
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateAccountVerificationLink']?.[localVarOperationServerIndex]?.url;
|
|
16317
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16318
|
+
},
|
|
16145
16319
|
/**
|
|
16146
16320
|
*
|
|
16147
16321
|
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
@@ -16212,6 +16386,17 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
16212
16386
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerPlanUpsert']?.[localVarOperationServerIndex]?.url;
|
|
16213
16387
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16214
16388
|
},
|
|
16389
|
+
/**
|
|
16390
|
+
*
|
|
16391
|
+
* @param {*} [options] Override http request option.
|
|
16392
|
+
* @throws {RequiredError}
|
|
16393
|
+
*/
|
|
16394
|
+
async paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessConnectedAccount>> {
|
|
16395
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRetrieveConnectedAccount(options);
|
|
16396
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16397
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRetrieveConnectedAccount']?.[localVarOperationServerIndex]?.url;
|
|
16398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16399
|
+
},
|
|
16215
16400
|
/**
|
|
16216
16401
|
*
|
|
16217
16402
|
* @param {*} [options] Override http request option.
|
|
@@ -16245,6 +16430,22 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
16245
16430
|
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
16246
16431
|
const localVarFp = PlansApiFp(configuration)
|
|
16247
16432
|
return {
|
|
16433
|
+
/**
|
|
16434
|
+
*
|
|
16435
|
+
* @param {*} [options] Override http request option.
|
|
16436
|
+
* @throws {RequiredError}
|
|
16437
|
+
*/
|
|
16438
|
+
paymentControllerConnectAccount(options?: RawAxiosRequestConfig): AxiosPromise<BusinessConnectedAccount> {
|
|
16439
|
+
return localVarFp.paymentControllerConnectAccount(options).then((request) => request(axios, basePath));
|
|
16440
|
+
},
|
|
16441
|
+
/**
|
|
16442
|
+
*
|
|
16443
|
+
* @param {*} [options] Override http request option.
|
|
16444
|
+
* @throws {RequiredError}
|
|
16445
|
+
*/
|
|
16446
|
+
paymentControllerCreateAccountVerificationLink(options?: RawAxiosRequestConfig): AxiosPromise<VerificationLinkResponseDTO> {
|
|
16447
|
+
return localVarFp.paymentControllerCreateAccountVerificationLink(options).then((request) => request(axios, basePath));
|
|
16448
|
+
},
|
|
16248
16449
|
/**
|
|
16249
16450
|
*
|
|
16250
16451
|
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
@@ -16297,6 +16498,14 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
16297
16498
|
paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripePlanUpsertResponseDTO> {
|
|
16298
16499
|
return localVarFp.paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(axios, basePath));
|
|
16299
16500
|
},
|
|
16501
|
+
/**
|
|
16502
|
+
*
|
|
16503
|
+
* @param {*} [options] Override http request option.
|
|
16504
|
+
* @throws {RequiredError}
|
|
16505
|
+
*/
|
|
16506
|
+
paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): AxiosPromise<BusinessConnectedAccount> {
|
|
16507
|
+
return localVarFp.paymentControllerRetrieveConnectedAccount(options).then((request) => request(axios, basePath));
|
|
16508
|
+
},
|
|
16300
16509
|
/**
|
|
16301
16510
|
*
|
|
16302
16511
|
* @param {*} [options] Override http request option.
|
|
@@ -16324,6 +16533,26 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
16324
16533
|
* @extends {BaseAPI}
|
|
16325
16534
|
*/
|
|
16326
16535
|
export class PlansApi extends BaseAPI {
|
|
16536
|
+
/**
|
|
16537
|
+
*
|
|
16538
|
+
* @param {*} [options] Override http request option.
|
|
16539
|
+
* @throws {RequiredError}
|
|
16540
|
+
* @memberof PlansApi
|
|
16541
|
+
*/
|
|
16542
|
+
public paymentControllerConnectAccount(options?: RawAxiosRequestConfig) {
|
|
16543
|
+
return PlansApiFp(this.configuration).paymentControllerConnectAccount(options).then((request) => request(this.axios, this.basePath));
|
|
16544
|
+
}
|
|
16545
|
+
|
|
16546
|
+
/**
|
|
16547
|
+
*
|
|
16548
|
+
* @param {*} [options] Override http request option.
|
|
16549
|
+
* @throws {RequiredError}
|
|
16550
|
+
* @memberof PlansApi
|
|
16551
|
+
*/
|
|
16552
|
+
public paymentControllerCreateAccountVerificationLink(options?: RawAxiosRequestConfig) {
|
|
16553
|
+
return PlansApiFp(this.configuration).paymentControllerCreateAccountVerificationLink(options).then((request) => request(this.axios, this.basePath));
|
|
16554
|
+
}
|
|
16555
|
+
|
|
16327
16556
|
/**
|
|
16328
16557
|
*
|
|
16329
16558
|
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
@@ -16388,6 +16617,16 @@ export class PlansApi extends BaseAPI {
|
|
|
16388
16617
|
return PlansApiFp(this.configuration).paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16389
16618
|
}
|
|
16390
16619
|
|
|
16620
|
+
/**
|
|
16621
|
+
*
|
|
16622
|
+
* @param {*} [options] Override http request option.
|
|
16623
|
+
* @throws {RequiredError}
|
|
16624
|
+
* @memberof PlansApi
|
|
16625
|
+
*/
|
|
16626
|
+
public paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig) {
|
|
16627
|
+
return PlansApiFp(this.configuration).paymentControllerRetrieveConnectedAccount(options).then((request) => request(this.axios, this.basePath));
|
|
16628
|
+
}
|
|
16629
|
+
|
|
16391
16630
|
/**
|
|
16392
16631
|
*
|
|
16393
16632
|
* @param {*} [options] Override http request option.
|