@gooday_corp/gooday-api-client 1.2.109 → 1.2.110
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 +177 -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,39 @@ 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
|
+
paymentControllerCreateAccountVerificationLink: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15920
|
+
const localVarPath = `/v1/payment/verification-link`;
|
|
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
|
+
},
|
|
15861
15947
|
/**
|
|
15862
15948
|
*
|
|
15863
15949
|
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
@@ -16068,6 +16154,39 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
16068
16154
|
options: localVarRequestOptions,
|
|
16069
16155
|
};
|
|
16070
16156
|
},
|
|
16157
|
+
/**
|
|
16158
|
+
*
|
|
16159
|
+
* @param {*} [options] Override http request option.
|
|
16160
|
+
* @throws {RequiredError}
|
|
16161
|
+
*/
|
|
16162
|
+
paymentControllerRetrieveConnectedAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16163
|
+
const localVarPath = `/v1/payment/connected-account`;
|
|
16164
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16165
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16166
|
+
let baseOptions;
|
|
16167
|
+
if (configuration) {
|
|
16168
|
+
baseOptions = configuration.baseOptions;
|
|
16169
|
+
}
|
|
16170
|
+
|
|
16171
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
16172
|
+
const localVarHeaderParameter = {} as any;
|
|
16173
|
+
const localVarQueryParameter = {} as any;
|
|
16174
|
+
|
|
16175
|
+
// authentication bearer required
|
|
16176
|
+
// http bearer authentication required
|
|
16177
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16178
|
+
|
|
16179
|
+
|
|
16180
|
+
|
|
16181
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16182
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16183
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16184
|
+
|
|
16185
|
+
return {
|
|
16186
|
+
url: toPathString(localVarUrlObj),
|
|
16187
|
+
options: localVarRequestOptions,
|
|
16188
|
+
};
|
|
16189
|
+
},
|
|
16071
16190
|
/**
|
|
16072
16191
|
*
|
|
16073
16192
|
* @param {*} [options] Override http request option.
|
|
@@ -16142,6 +16261,17 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
16142
16261
|
export const PlansApiFp = function(configuration?: Configuration) {
|
|
16143
16262
|
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
16144
16263
|
return {
|
|
16264
|
+
/**
|
|
16265
|
+
*
|
|
16266
|
+
* @param {*} [options] Override http request option.
|
|
16267
|
+
* @throws {RequiredError}
|
|
16268
|
+
*/
|
|
16269
|
+
async paymentControllerCreateAccountVerificationLink(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VerificationLinkResponseDTO>> {
|
|
16270
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateAccountVerificationLink(options);
|
|
16271
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16272
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateAccountVerificationLink']?.[localVarOperationServerIndex]?.url;
|
|
16273
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16274
|
+
},
|
|
16145
16275
|
/**
|
|
16146
16276
|
*
|
|
16147
16277
|
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
@@ -16212,6 +16342,17 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
16212
16342
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerPlanUpsert']?.[localVarOperationServerIndex]?.url;
|
|
16213
16343
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16214
16344
|
},
|
|
16345
|
+
/**
|
|
16346
|
+
*
|
|
16347
|
+
* @param {*} [options] Override http request option.
|
|
16348
|
+
* @throws {RequiredError}
|
|
16349
|
+
*/
|
|
16350
|
+
async paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessConnectedAccount>> {
|
|
16351
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRetrieveConnectedAccount(options);
|
|
16352
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16353
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRetrieveConnectedAccount']?.[localVarOperationServerIndex]?.url;
|
|
16354
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16355
|
+
},
|
|
16215
16356
|
/**
|
|
16216
16357
|
*
|
|
16217
16358
|
* @param {*} [options] Override http request option.
|
|
@@ -16245,6 +16386,14 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
16245
16386
|
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
16246
16387
|
const localVarFp = PlansApiFp(configuration)
|
|
16247
16388
|
return {
|
|
16389
|
+
/**
|
|
16390
|
+
*
|
|
16391
|
+
* @param {*} [options] Override http request option.
|
|
16392
|
+
* @throws {RequiredError}
|
|
16393
|
+
*/
|
|
16394
|
+
paymentControllerCreateAccountVerificationLink(options?: RawAxiosRequestConfig): AxiosPromise<VerificationLinkResponseDTO> {
|
|
16395
|
+
return localVarFp.paymentControllerCreateAccountVerificationLink(options).then((request) => request(axios, basePath));
|
|
16396
|
+
},
|
|
16248
16397
|
/**
|
|
16249
16398
|
*
|
|
16250
16399
|
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
@@ -16297,6 +16446,14 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
16297
16446
|
paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripePlanUpsertResponseDTO> {
|
|
16298
16447
|
return localVarFp.paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(axios, basePath));
|
|
16299
16448
|
},
|
|
16449
|
+
/**
|
|
16450
|
+
*
|
|
16451
|
+
* @param {*} [options] Override http request option.
|
|
16452
|
+
* @throws {RequiredError}
|
|
16453
|
+
*/
|
|
16454
|
+
paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): AxiosPromise<BusinessConnectedAccount> {
|
|
16455
|
+
return localVarFp.paymentControllerRetrieveConnectedAccount(options).then((request) => request(axios, basePath));
|
|
16456
|
+
},
|
|
16300
16457
|
/**
|
|
16301
16458
|
*
|
|
16302
16459
|
* @param {*} [options] Override http request option.
|
|
@@ -16324,6 +16481,16 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
16324
16481
|
* @extends {BaseAPI}
|
|
16325
16482
|
*/
|
|
16326
16483
|
export class PlansApi extends BaseAPI {
|
|
16484
|
+
/**
|
|
16485
|
+
*
|
|
16486
|
+
* @param {*} [options] Override http request option.
|
|
16487
|
+
* @throws {RequiredError}
|
|
16488
|
+
* @memberof PlansApi
|
|
16489
|
+
*/
|
|
16490
|
+
public paymentControllerCreateAccountVerificationLink(options?: RawAxiosRequestConfig) {
|
|
16491
|
+
return PlansApiFp(this.configuration).paymentControllerCreateAccountVerificationLink(options).then((request) => request(this.axios, this.basePath));
|
|
16492
|
+
}
|
|
16493
|
+
|
|
16327
16494
|
/**
|
|
16328
16495
|
*
|
|
16329
16496
|
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
@@ -16388,6 +16555,16 @@ export class PlansApi extends BaseAPI {
|
|
|
16388
16555
|
return PlansApiFp(this.configuration).paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16389
16556
|
}
|
|
16390
16557
|
|
|
16558
|
+
/**
|
|
16559
|
+
*
|
|
16560
|
+
* @param {*} [options] Override http request option.
|
|
16561
|
+
* @throws {RequiredError}
|
|
16562
|
+
* @memberof PlansApi
|
|
16563
|
+
*/
|
|
16564
|
+
public paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig) {
|
|
16565
|
+
return PlansApiFp(this.configuration).paymentControllerRetrieveConnectedAccount(options).then((request) => request(this.axios, this.basePath));
|
|
16566
|
+
}
|
|
16567
|
+
|
|
16391
16568
|
/**
|
|
16392
16569
|
*
|
|
16393
16570
|
* @param {*} [options] Override http request option.
|