@gooday_corp/gooday-api-client 1.2.32 → 1.2.34

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 +214 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -517,6 +517,18 @@ export interface BookingResponse {
517
517
  * @memberof BookingResponse
518
518
  */
519
519
  'status': BookingResponseStatusEnum;
520
+ /**
521
+ *
522
+ * @type {number}
523
+ * @memberof BookingResponse
524
+ */
525
+ 'bookingQuantity': number;
526
+ /**
527
+ *
528
+ * @type {Array<BookingServicePayload>}
529
+ * @memberof BookingResponse
530
+ */
531
+ 'services': Array<BookingServicePayload>;
520
532
  }
521
533
 
522
534
  export const BookingResponseMethodEnum = {
@@ -557,6 +569,31 @@ export interface BookingResponseDTO {
557
569
  */
558
570
  'data': BookingResponse;
559
571
  }
572
+ /**
573
+ *
574
+ * @export
575
+ * @interface BookingServicePayload
576
+ */
577
+ export interface BookingServicePayload {
578
+ /**
579
+ *
580
+ * @type {string}
581
+ * @memberof BookingServicePayload
582
+ */
583
+ 'staff': string;
584
+ /**
585
+ *
586
+ * @type {number}
587
+ * @memberof BookingServicePayload
588
+ */
589
+ 'quantity': number;
590
+ /**
591
+ *
592
+ * @type {string}
593
+ * @memberof BookingServicePayload
594
+ */
595
+ 'serviceId': string;
596
+ }
560
597
  /**
561
598
  *
562
599
  * @export
@@ -1955,6 +1992,24 @@ export interface CreateBookingPayload {
1955
1992
  * @memberof CreateBookingPayload
1956
1993
  */
1957
1994
  'tags': Array<string>;
1995
+ /**
1996
+ *
1997
+ * @type {number}
1998
+ * @memberof CreateBookingPayload
1999
+ */
2000
+ 'bookingQuantity': number;
2001
+ /**
2002
+ *
2003
+ * @type {Array<BookingServicePayload>}
2004
+ * @memberof CreateBookingPayload
2005
+ */
2006
+ 'services': Array<BookingServicePayload>;
2007
+ /**
2008
+ *
2009
+ * @type {StripeSetupIntentPaymentResponse}
2010
+ * @memberof CreateBookingPayload
2011
+ */
2012
+ 'paymentMethod': StripeSetupIntentPaymentResponse;
1958
2013
  }
1959
2014
  /**
1960
2015
  *
@@ -4393,6 +4448,94 @@ export interface StripePlanUpsertResponseDTO {
4393
4448
  */
4394
4449
  'data': StripePaymentDTO;
4395
4450
  }
4451
+ /**
4452
+ *
4453
+ * @export
4454
+ * @interface StripeSetupIntentPayment
4455
+ */
4456
+ export interface StripeSetupIntentPayment {
4457
+ /**
4458
+ *
4459
+ * @type {string}
4460
+ * @memberof StripeSetupIntentPayment
4461
+ */
4462
+ 'staff': string;
4463
+ /**
4464
+ *
4465
+ * @type {number}
4466
+ * @memberof StripeSetupIntentPayment
4467
+ */
4468
+ 'quantity': number;
4469
+ /**
4470
+ *
4471
+ * @type {string}
4472
+ * @memberof StripeSetupIntentPayment
4473
+ */
4474
+ 'serviceId': string;
4475
+ }
4476
+ /**
4477
+ *
4478
+ * @export
4479
+ * @interface StripeSetupIntentPaymentPayloadDTO
4480
+ */
4481
+ export interface StripeSetupIntentPaymentPayloadDTO {
4482
+ /**
4483
+ *
4484
+ * @type {Array<StripeSetupIntentPayment>}
4485
+ * @memberof StripeSetupIntentPaymentPayloadDTO
4486
+ */
4487
+ 'service': Array<StripeSetupIntentPayment>;
4488
+ }
4489
+ /**
4490
+ *
4491
+ * @export
4492
+ * @interface StripeSetupIntentPaymentResponse
4493
+ */
4494
+ export interface StripeSetupIntentPaymentResponse {
4495
+ /**
4496
+ *
4497
+ * @type {string}
4498
+ * @memberof StripeSetupIntentPaymentResponse
4499
+ */
4500
+ 'paymentId': string;
4501
+ /**
4502
+ *
4503
+ * @type {string}
4504
+ * @memberof StripeSetupIntentPaymentResponse
4505
+ */
4506
+ 'paymentIntent': string;
4507
+ /**
4508
+ *
4509
+ * @type {string}
4510
+ * @memberof StripeSetupIntentPaymentResponse
4511
+ */
4512
+ 'ephemeralKey': string;
4513
+ /**
4514
+ *
4515
+ * @type {string}
4516
+ * @memberof StripeSetupIntentPaymentResponse
4517
+ */
4518
+ 'customer': string;
4519
+ }
4520
+ /**
4521
+ *
4522
+ * @export
4523
+ * @interface StripeSetupIntentPaymentResponseDTO
4524
+ */
4525
+ export interface StripeSetupIntentPaymentResponseDTO {
4526
+ /**
4527
+ * statusCode
4528
+ * @type {number}
4529
+ * @memberof StripeSetupIntentPaymentResponseDTO
4530
+ */
4531
+ 'statusCode': number;
4532
+ /**
4533
+ *
4534
+ * @type {StripeSetupIntentPaymentResponse}
4535
+ * @memberof StripeSetupIntentPaymentResponseDTO
4536
+ */
4537
+ 'data': StripeSetupIntentPaymentResponse;
4538
+ }
4396
4539
  /**
4397
4540
  *
4398
4541
  * @export
@@ -11916,6 +12059,45 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
11916
12059
  options: localVarRequestOptions,
11917
12060
  };
11918
12061
  },
12062
+ /**
12063
+ *
12064
+ * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
12065
+ * @param {*} [options] Override http request option.
12066
+ * @throws {RequiredError}
12067
+ */
12068
+ paymentControllerCreateSetupIntentPayment: async (stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
12069
+ // verify required parameter 'stripeSetupIntentPaymentPayloadDTO' is not null or undefined
12070
+ assertParamExists('paymentControllerCreateSetupIntentPayment', 'stripeSetupIntentPaymentPayloadDTO', stripeSetupIntentPaymentPayloadDTO)
12071
+ const localVarPath = `/v1/payment/create-setup-intent-payment`;
12072
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
12073
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12074
+ let baseOptions;
12075
+ if (configuration) {
12076
+ baseOptions = configuration.baseOptions;
12077
+ }
12078
+
12079
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
12080
+ const localVarHeaderParameter = {} as any;
12081
+ const localVarQueryParameter = {} as any;
12082
+
12083
+ // authentication bearer required
12084
+ // http bearer authentication required
12085
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
12086
+
12087
+
12088
+
12089
+ localVarHeaderParameter['Content-Type'] = 'application/json';
12090
+
12091
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
12092
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12093
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
12094
+ localVarRequestOptions.data = serializeDataIfNeeded(stripeSetupIntentPaymentPayloadDTO, localVarRequestOptions, configuration)
12095
+
12096
+ return {
12097
+ url: toPathString(localVarUrlObj),
12098
+ options: localVarRequestOptions,
12099
+ };
12100
+ },
11919
12101
  /**
11920
12102
  *
11921
12103
  * @param {*} [options] Override http request option.
@@ -12081,6 +12263,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
12081
12263
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateSetupIntent']?.[localVarOperationServerIndex]?.url;
12082
12264
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12083
12265
  },
12266
+ /**
12267
+ *
12268
+ * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
12269
+ * @param {*} [options] Override http request option.
12270
+ * @throws {RequiredError}
12271
+ */
12272
+ async paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeSetupIntentPaymentResponseDTO>> {
12273
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options);
12274
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
12275
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateSetupIntentPayment']?.[localVarOperationServerIndex]?.url;
12276
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12277
+ },
12084
12278
  /**
12085
12279
  *
12086
12280
  * @param {*} [options] Override http request option.
@@ -12154,6 +12348,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
12154
12348
  paymentControllerCreateSetupIntent(options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentResponseDTO> {
12155
12349
  return localVarFp.paymentControllerCreateSetupIntent(options).then((request) => request(axios, basePath));
12156
12350
  },
12351
+ /**
12352
+ *
12353
+ * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
12354
+ * @param {*} [options] Override http request option.
12355
+ * @throws {RequiredError}
12356
+ */
12357
+ paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentPaymentResponseDTO> {
12358
+ return localVarFp.paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options).then((request) => request(axios, basePath));
12359
+ },
12157
12360
  /**
12158
12361
  *
12159
12362
  * @param {*} [options] Override http request option.
@@ -12219,6 +12422,17 @@ export class PlansApi extends BaseAPI {
12219
12422
  return PlansApiFp(this.configuration).paymentControllerCreateSetupIntent(options).then((request) => request(this.axios, this.basePath));
12220
12423
  }
12221
12424
 
12425
+ /**
12426
+ *
12427
+ * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
12428
+ * @param {*} [options] Override http request option.
12429
+ * @throws {RequiredError}
12430
+ * @memberof PlansApi
12431
+ */
12432
+ public paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig) {
12433
+ return PlansApiFp(this.configuration).paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options).then((request) => request(this.axios, this.basePath));
12434
+ }
12435
+
12222
12436
  /**
12223
12437
  *
12224
12438
  * @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.32",
3
+ "version": "1.2.34",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},