@gooday_corp/gooday-api-client 1.2.109-beta → 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.
Files changed (2) hide show
  1. package/api.ts +201 -0
  2. 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}
@@ -6119,6 +6153,30 @@ export interface StripeSetupIntentPaymentResponse {
6119
6153
  * @memberof StripeSetupIntentPaymentResponse
6120
6154
  */
6121
6155
  'customer': string;
6156
+ /**
6157
+ *
6158
+ * @type {string}
6159
+ * @memberof StripeSetupIntentPaymentResponse
6160
+ */
6161
+ 'subscriptionId'?: string;
6162
+ /**
6163
+ *
6164
+ * @type {number}
6165
+ * @memberof StripeSetupIntentPaymentResponse
6166
+ */
6167
+ 'price'?: number;
6168
+ /**
6169
+ *
6170
+ * @type {string}
6171
+ * @memberof StripeSetupIntentPaymentResponse
6172
+ */
6173
+ 'frequency'?: string;
6174
+ /**
6175
+ *
6176
+ * @type {string}
6177
+ * @memberof StripeSetupIntentPaymentResponse
6178
+ */
6179
+ 'currency'?: string;
6122
6180
  }
6123
6181
  /**
6124
6182
  *
@@ -7041,6 +7099,25 @@ export interface UserWaitingListResponseDTO {
7041
7099
  */
7042
7100
  'data': UserWaitingListPayloadDTO;
7043
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
+ }
7044
7121
  /**
7045
7122
  *
7046
7123
  * @export
@@ -15834,6 +15911,39 @@ export class OAuthApi extends BaseAPI {
15834
15911
  */
15835
15912
  export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
15836
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
+ },
15837
15947
  /**
15838
15948
  *
15839
15949
  * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
@@ -16044,6 +16154,39 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16044
16154
  options: localVarRequestOptions,
16045
16155
  };
16046
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
+ },
16047
16190
  /**
16048
16191
  *
16049
16192
  * @param {*} [options] Override http request option.
@@ -16118,6 +16261,17 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16118
16261
  export const PlansApiFp = function(configuration?: Configuration) {
16119
16262
  const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
16120
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
+ },
16121
16275
  /**
16122
16276
  *
16123
16277
  * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
@@ -16188,6 +16342,17 @@ export const PlansApiFp = function(configuration?: Configuration) {
16188
16342
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerPlanUpsert']?.[localVarOperationServerIndex]?.url;
16189
16343
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16190
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
+ },
16191
16356
  /**
16192
16357
  *
16193
16358
  * @param {*} [options] Override http request option.
@@ -16221,6 +16386,14 @@ export const PlansApiFp = function(configuration?: Configuration) {
16221
16386
  export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16222
16387
  const localVarFp = PlansApiFp(configuration)
16223
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
+ },
16224
16397
  /**
16225
16398
  *
16226
16399
  * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
@@ -16273,6 +16446,14 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16273
16446
  paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripePlanUpsertResponseDTO> {
16274
16447
  return localVarFp.paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(axios, basePath));
16275
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
+ },
16276
16457
  /**
16277
16458
  *
16278
16459
  * @param {*} [options] Override http request option.
@@ -16300,6 +16481,16 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16300
16481
  * @extends {BaseAPI}
16301
16482
  */
16302
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
+
16303
16494
  /**
16304
16495
  *
16305
16496
  * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
@@ -16364,6 +16555,16 @@ export class PlansApi extends BaseAPI {
16364
16555
  return PlansApiFp(this.configuration).paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16365
16556
  }
16366
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
+
16367
16568
  /**
16368
16569
  *
16369
16570
  * @param {*} [options] Override http request option.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.109-beta",
3
+ "version": "1.2.110",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},