@gooday_corp/gooday-api-client 1.2.108 → 1.2.109-beta

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 +96 -0
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -6001,6 +6001,31 @@ export interface StandardBookingSlotsPayload {
6001
6001
  */
6002
6002
  'id': string;
6003
6003
  }
6004
+ /**
6005
+ *
6006
+ * @export
6007
+ * @interface StripeBookingPayloadDTO
6008
+ */
6009
+ export interface StripeBookingPayloadDTO {
6010
+ /**
6011
+ *
6012
+ * @type {number}
6013
+ * @memberof StripeBookingPayloadDTO
6014
+ */
6015
+ 'quantity': number;
6016
+ /**
6017
+ *
6018
+ * @type {string}
6019
+ * @memberof StripeBookingPayloadDTO
6020
+ */
6021
+ 'serviceId': string;
6022
+ /**
6023
+ *
6024
+ * @type {string}
6025
+ * @memberof StripeBookingPayloadDTO
6026
+ */
6027
+ 'staff': string;
6028
+ }
6004
6029
  /**
6005
6030
  *
6006
6031
  * @export
@@ -15809,6 +15834,45 @@ export class OAuthApi extends BaseAPI {
15809
15834
  */
15810
15835
  export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
15811
15836
  return {
15837
+ /**
15838
+ *
15839
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
15840
+ * @param {*} [options] Override http request option.
15841
+ * @throws {RequiredError}
15842
+ */
15843
+ paymentControllerCreateBookingSetupIntentPayment: async (stripeBookingPayloadDTO: StripeBookingPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15844
+ // verify required parameter 'stripeBookingPayloadDTO' is not null or undefined
15845
+ assertParamExists('paymentControllerCreateBookingSetupIntentPayment', 'stripeBookingPayloadDTO', stripeBookingPayloadDTO)
15846
+ const localVarPath = `/v1/payment/create-booking-setup-intent-payment`;
15847
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15848
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15849
+ let baseOptions;
15850
+ if (configuration) {
15851
+ baseOptions = configuration.baseOptions;
15852
+ }
15853
+
15854
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15855
+ const localVarHeaderParameter = {} as any;
15856
+ const localVarQueryParameter = {} as any;
15857
+
15858
+ // authentication bearer required
15859
+ // http bearer authentication required
15860
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15861
+
15862
+
15863
+
15864
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15865
+
15866
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15867
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15868
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15869
+ localVarRequestOptions.data = serializeDataIfNeeded(stripeBookingPayloadDTO, localVarRequestOptions, configuration)
15870
+
15871
+ return {
15872
+ url: toPathString(localVarUrlObj),
15873
+ options: localVarRequestOptions,
15874
+ };
15875
+ },
15812
15876
  /**
15813
15877
  *
15814
15878
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16054,6 +16118,18 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16054
16118
  export const PlansApiFp = function(configuration?: Configuration) {
16055
16119
  const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
16056
16120
  return {
16121
+ /**
16122
+ *
16123
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16124
+ * @param {*} [options] Override http request option.
16125
+ * @throws {RequiredError}
16126
+ */
16127
+ async paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeSetupIntentPaymentResponseDTO>> {
16128
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options);
16129
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16130
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateBookingSetupIntentPayment']?.[localVarOperationServerIndex]?.url;
16131
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16132
+ },
16057
16133
  /**
16058
16134
  *
16059
16135
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16145,6 +16221,15 @@ export const PlansApiFp = function(configuration?: Configuration) {
16145
16221
  export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16146
16222
  const localVarFp = PlansApiFp(configuration)
16147
16223
  return {
16224
+ /**
16225
+ *
16226
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16227
+ * @param {*} [options] Override http request option.
16228
+ * @throws {RequiredError}
16229
+ */
16230
+ paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentPaymentResponseDTO> {
16231
+ return localVarFp.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(axios, basePath));
16232
+ },
16148
16233
  /**
16149
16234
  *
16150
16235
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16215,6 +16300,17 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16215
16300
  * @extends {BaseAPI}
16216
16301
  */
16217
16302
  export class PlansApi extends BaseAPI {
16303
+ /**
16304
+ *
16305
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16306
+ * @param {*} [options] Override http request option.
16307
+ * @throws {RequiredError}
16308
+ * @memberof PlansApi
16309
+ */
16310
+ public paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig) {
16311
+ return PlansApiFp(this.configuration).paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16312
+ }
16313
+
16218
16314
  /**
16219
16315
  *
16220
16316
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.108",
3
+ "version": "1.2.109-beta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},