@gooday_corp/gooday-api-client 1.1.10-alpha → 1.1.10-delta

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 +122 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -996,6 +996,12 @@ export interface PlanEntity {
996
996
  * @memberof PlanEntity
997
997
  */
998
998
  'description': string;
999
+ /**
1000
+ *
1001
+ * @type {string}
1002
+ * @memberof PlanEntity
1003
+ */
1004
+ 'currency': string;
999
1005
  /**
1000
1006
  * Array of features included in the plan
1001
1007
  * @type {Array<PlanFeature>}
@@ -1352,6 +1358,50 @@ export interface SkillDto {
1352
1358
  */
1353
1359
  'weightage': number;
1354
1360
  }
1361
+ /**
1362
+ *
1363
+ * @export
1364
+ * @interface StripPaymentDTO
1365
+ */
1366
+ export interface StripPaymentDTO {
1367
+ /**
1368
+ * Strip Customer ID
1369
+ * @type {string}
1370
+ * @memberof StripPaymentDTO
1371
+ */
1372
+ 'customerId': string;
1373
+ /**
1374
+ * Strip ephemeral Key
1375
+ * @type {string}
1376
+ * @memberof StripPaymentDTO
1377
+ */
1378
+ 'ephemeralKey': string;
1379
+ /**
1380
+ * Strip ClientSecret
1381
+ * @type {string}
1382
+ * @memberof StripPaymentDTO
1383
+ */
1384
+ 'clientSecret': string;
1385
+ }
1386
+ /**
1387
+ *
1388
+ * @export
1389
+ * @interface StripePaymentIntentResponseDTO
1390
+ */
1391
+ export interface StripePaymentIntentResponseDTO {
1392
+ /**
1393
+ * statuscCode
1394
+ * @type {number}
1395
+ * @memberof StripePaymentIntentResponseDTO
1396
+ */
1397
+ 'statusCode': number;
1398
+ /**
1399
+ * Strip Intent Data
1400
+ * @type {StripPaymentDTO}
1401
+ * @memberof StripePaymentIntentResponseDTO
1402
+ */
1403
+ 'data': StripPaymentDTO;
1404
+ }
1355
1405
  /**
1356
1406
  *
1357
1407
  * @export
@@ -3647,6 +3697,46 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
3647
3697
  options: localVarRequestOptions,
3648
3698
  };
3649
3699
  },
3700
+ /**
3701
+ *
3702
+ * @param {string} planId Strip Plan ID
3703
+ * @param {*} [options] Override http request option.
3704
+ * @throws {RequiredError}
3705
+ */
3706
+ paymentControllerGetPaymentSecretForIntent: async (planId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3707
+ // verify required parameter 'planId' is not null or undefined
3708
+ assertParamExists('paymentControllerGetPaymentSecretForIntent', 'planId', planId)
3709
+ const localVarPath = `/v1/payment/payment-secret-for-intent`;
3710
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3711
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3712
+ let baseOptions;
3713
+ if (configuration) {
3714
+ baseOptions = configuration.baseOptions;
3715
+ }
3716
+
3717
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3718
+ const localVarHeaderParameter = {} as any;
3719
+ const localVarQueryParameter = {} as any;
3720
+
3721
+ // authentication bearer required
3722
+ // http bearer authentication required
3723
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
3724
+
3725
+ if (planId !== undefined) {
3726
+ localVarQueryParameter['planId'] = planId;
3727
+ }
3728
+
3729
+
3730
+
3731
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3732
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3733
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3734
+
3735
+ return {
3736
+ url: toPathString(localVarUrlObj),
3737
+ options: localVarRequestOptions,
3738
+ };
3739
+ },
3650
3740
  /**
3651
3741
  *
3652
3742
  * @param {*} [options] Override http request option.
@@ -3734,6 +3824,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
3734
3824
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreatePaymentLink']?.[localVarOperationServerIndex]?.url;
3735
3825
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3736
3826
  },
3827
+ /**
3828
+ *
3829
+ * @param {string} planId Strip Plan ID
3830
+ * @param {*} [options] Override http request option.
3831
+ * @throws {RequiredError}
3832
+ */
3833
+ async paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePaymentIntentResponseDTO>> {
3834
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerGetPaymentSecretForIntent(planId, options);
3835
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
3836
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerGetPaymentSecretForIntent']?.[localVarOperationServerIndex]?.url;
3837
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3838
+ },
3737
3839
  /**
3738
3840
  *
3739
3841
  * @param {*} [options] Override http request option.
@@ -3776,6 +3878,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
3776
3878
  paymentControllerCreatePaymentLink(createPaymentLinkDTO: CreatePaymentLinkDTO, options?: RawAxiosRequestConfig): AxiosPromise<void> {
3777
3879
  return localVarFp.paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(axios, basePath));
3778
3880
  },
3881
+ /**
3882
+ *
3883
+ * @param {string} planId Strip Plan ID
3884
+ * @param {*} [options] Override http request option.
3885
+ * @throws {RequiredError}
3886
+ */
3887
+ paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig): AxiosPromise<StripePaymentIntentResponseDTO> {
3888
+ return localVarFp.paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(axios, basePath));
3889
+ },
3779
3890
  /**
3780
3891
  *
3781
3892
  * @param {*} [options] Override http request option.
@@ -3814,6 +3925,17 @@ export class PlansApi extends BaseAPI {
3814
3925
  return PlansApiFp(this.configuration).paymentControllerCreatePaymentLink(createPaymentLinkDTO, options).then((request) => request(this.axios, this.basePath));
3815
3926
  }
3816
3927
 
3928
+ /**
3929
+ *
3930
+ * @param {string} planId Strip Plan ID
3931
+ * @param {*} [options] Override http request option.
3932
+ * @throws {RequiredError}
3933
+ * @memberof PlansApi
3934
+ */
3935
+ public paymentControllerGetPaymentSecretForIntent(planId: string, options?: RawAxiosRequestConfig) {
3936
+ return PlansApiFp(this.configuration).paymentControllerGetPaymentSecretForIntent(planId, options).then((request) => request(this.axios, this.basePath));
3937
+ }
3938
+
3817
3939
  /**
3818
3940
  *
3819
3941
  * @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.1.10-alpha",
3
+ "version": "1.1.10-delta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},