@gooday_corp/gooday-api-client 1.2.115-beta → 1.2.115

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 +341 -135
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -762,10 +762,10 @@ export interface BookingEntity {
762
762
  'serviceId': PrepaidServiceEntity;
763
763
  /**
764
764
  *
765
- * @type {BookingPaymentCreateResponse}
765
+ * @type {StripeSetupIntentPaymentResponse}
766
766
  * @memberof BookingEntity
767
767
  */
768
- 'paymentMethod': BookingPaymentCreateResponse;
768
+ 'paymentMethod': StripeSetupIntentPaymentResponse;
769
769
  /**
770
770
  *
771
771
  * @type {Array<TagsResponse>}
@@ -800,93 +800,6 @@ export const BookingEntityMethodEnum = {
800
800
 
801
801
  export type BookingEntityMethodEnum = typeof BookingEntityMethodEnum[keyof typeof BookingEntityMethodEnum];
802
802
 
803
- /**
804
- *
805
- * @export
806
- * @interface BookingPaymentCreateResponse
807
- */
808
- export interface BookingPaymentCreateResponse {
809
- /**
810
- * Payment method ID
811
- * @type {string}
812
- * @memberof BookingPaymentCreateResponse
813
- */
814
- 'paymentId': string;
815
- /**
816
- * Payment intent ID
817
- * @type {string}
818
- * @memberof BookingPaymentCreateResponse
819
- */
820
- 'paymentIntent': string;
821
- /**
822
- *
823
- * @type {string}
824
- * @memberof BookingPaymentCreateResponse
825
- */
826
- 'ephemeralKey': string;
827
- /**
828
- *
829
- * @type {string}
830
- * @memberof BookingPaymentCreateResponse
831
- */
832
- 'customer': string;
833
- /**
834
- * Only available if payment is recurring
835
- * @type {string}
836
- * @memberof BookingPaymentCreateResponse
837
- */
838
- 'subscriptionId'?: string;
839
- /**
840
- * Final booking price shown to customer
841
- * @type {number}
842
- * @memberof BookingPaymentCreateResponse
843
- */
844
- 'price': number;
845
- /**
846
- * Only available if payment is recurring
847
- * @type {string}
848
- * @memberof BookingPaymentCreateResponse
849
- */
850
- 'frequency'?: string;
851
- /**
852
- *
853
- * @type {string}
854
- * @memberof BookingPaymentCreateResponse
855
- */
856
- 'currency': string;
857
- }
858
- /**
859
- *
860
- * @export
861
- * @interface BookingPaymentCreateResponseDTO
862
- */
863
- export interface BookingPaymentCreateResponseDTO {
864
- /**
865
- * statusCode
866
- * @type {number}
867
- * @memberof BookingPaymentCreateResponseDTO
868
- */
869
- 'statusCode': number;
870
- /**
871
- *
872
- * @type {BookingPaymentCreateResponse}
873
- * @memberof BookingPaymentCreateResponseDTO
874
- */
875
- 'data': BookingPaymentCreateResponse;
876
- }
877
- /**
878
- *
879
- * @export
880
- * @interface BookingPaymentPayloadDTO
881
- */
882
- export interface BookingPaymentPayloadDTO {
883
- /**
884
- * Booking ID
885
- * @type {string}
886
- * @memberof BookingPaymentPayloadDTO
887
- */
888
- 'id': string;
889
- }
890
803
  /**
891
804
  *
892
805
  * @export
@@ -1028,10 +941,10 @@ export interface BookingResponse {
1028
941
  'serviceId': PrepaidServiceEntity;
1029
942
  /**
1030
943
  *
1031
- * @type {BookingPaymentCreateResponse}
944
+ * @type {StripeSetupIntentPaymentResponse}
1032
945
  * @memberof BookingResponse
1033
946
  */
1034
- 'paymentMethod': BookingPaymentCreateResponse;
947
+ 'paymentMethod': StripeSetupIntentPaymentResponse;
1035
948
  /**
1036
949
  *
1037
950
  * @type {string}
@@ -2729,10 +2642,10 @@ export interface CreateBookingPayload {
2729
2642
  'serviceId'?: string;
2730
2643
  /**
2731
2644
  *
2732
- * @type {BookingPaymentCreateResponse}
2645
+ * @type {StripeSetupIntentPaymentResponse}
2733
2646
  * @memberof CreateBookingPayload
2734
2647
  */
2735
- 'paymentMethod'?: BookingPaymentCreateResponse;
2648
+ 'paymentMethod'?: StripeSetupIntentPaymentResponse;
2736
2649
  /**
2737
2650
  *
2738
2651
  * @type {string}
@@ -5000,6 +4913,19 @@ export interface PlanResponseDTO {
5000
4913
  */
5001
4914
  'data': Array<PlanEntity>;
5002
4915
  }
4916
+ /**
4917
+ *
4918
+ * @export
4919
+ * @interface PlanUpsertPayloadDTO
4920
+ */
4921
+ export interface PlanUpsertPayloadDTO {
4922
+ /**
4923
+ * Plan id
4924
+ * @type {string}
4925
+ * @memberof PlanUpsertPayloadDTO
4926
+ */
4927
+ 'plan': string;
4928
+ }
5003
4929
  /**
5004
4930
  *
5005
4931
  * @export
@@ -6095,6 +6021,144 @@ export interface StandardBookingSlotsPayload {
6095
6021
  */
6096
6022
  'id': string;
6097
6023
  }
6024
+ /**
6025
+ *
6026
+ * @export
6027
+ * @interface StripeBookingPayloadDTO
6028
+ */
6029
+ export interface StripeBookingPayloadDTO {
6030
+ /**
6031
+ *
6032
+ * @type {string}
6033
+ * @memberof StripeBookingPayloadDTO
6034
+ */
6035
+ 'bookingId': string;
6036
+ }
6037
+ /**
6038
+ *
6039
+ * @export
6040
+ * @interface StripePaymentDTO
6041
+ */
6042
+ export interface StripePaymentDTO {
6043
+ /**
6044
+ * Stripe ephemeral Key
6045
+ * @type {string}
6046
+ * @memberof StripePaymentDTO
6047
+ */
6048
+ 'ephemeralKey': string;
6049
+ /**
6050
+ * Stripe ClientSecret
6051
+ * @type {string}
6052
+ * @memberof StripePaymentDTO
6053
+ */
6054
+ 'clientSecret': string;
6055
+ }
6056
+ /**
6057
+ *
6058
+ * @export
6059
+ * @interface StripePlanUpsertResponseDTO
6060
+ */
6061
+ export interface StripePlanUpsertResponseDTO {
6062
+ /**
6063
+ * statusCode
6064
+ * @type {number}
6065
+ * @memberof StripePlanUpsertResponseDTO
6066
+ */
6067
+ 'statusCode': number;
6068
+ /**
6069
+ * Stripe Intent Data
6070
+ * @type {StripePaymentDTO}
6071
+ * @memberof StripePlanUpsertResponseDTO
6072
+ */
6073
+ 'data': StripePaymentDTO;
6074
+ }
6075
+ /**
6076
+ *
6077
+ * @export
6078
+ * @interface StripeSetupIntentPaymentPayloadDTO
6079
+ */
6080
+ export interface StripeSetupIntentPaymentPayloadDTO {
6081
+ /**
6082
+ *
6083
+ * @type {string}
6084
+ * @memberof StripeSetupIntentPaymentPayloadDTO
6085
+ */
6086
+ 'bookingId'?: string;
6087
+ }
6088
+ /**
6089
+ *
6090
+ * @export
6091
+ * @interface StripeSetupIntentPaymentResponse
6092
+ */
6093
+ export interface StripeSetupIntentPaymentResponse {
6094
+ /**
6095
+ *
6096
+ * @type {string}
6097
+ * @memberof StripeSetupIntentPaymentResponse
6098
+ */
6099
+ 'paymentId': string;
6100
+ /**
6101
+ *
6102
+ * @type {string}
6103
+ * @memberof StripeSetupIntentPaymentResponse
6104
+ */
6105
+ 'paymentIntent': string;
6106
+ /**
6107
+ *
6108
+ * @type {string}
6109
+ * @memberof StripeSetupIntentPaymentResponse
6110
+ */
6111
+ 'ephemeralKey': string;
6112
+ /**
6113
+ *
6114
+ * @type {string}
6115
+ * @memberof StripeSetupIntentPaymentResponse
6116
+ */
6117
+ 'customer': string;
6118
+ /**
6119
+ *
6120
+ * @type {string}
6121
+ * @memberof StripeSetupIntentPaymentResponse
6122
+ */
6123
+ 'subscriptionId'?: string;
6124
+ /**
6125
+ *
6126
+ * @type {number}
6127
+ * @memberof StripeSetupIntentPaymentResponse
6128
+ */
6129
+ 'price'?: number;
6130
+ /**
6131
+ *
6132
+ * @type {string}
6133
+ * @memberof StripeSetupIntentPaymentResponse
6134
+ */
6135
+ 'frequency'?: string;
6136
+ /**
6137
+ *
6138
+ * @type {string}
6139
+ * @memberof StripeSetupIntentPaymentResponse
6140
+ */
6141
+ 'currency'?: string;
6142
+ }
6143
+ /**
6144
+ *
6145
+ * @export
6146
+ * @interface StripeSetupIntentPaymentResponseDTO
6147
+ */
6148
+ export interface StripeSetupIntentPaymentResponseDTO {
6149
+ /**
6150
+ * statusCode
6151
+ * @type {number}
6152
+ * @memberof StripeSetupIntentPaymentResponseDTO
6153
+ */
6154
+ 'statusCode': number;
6155
+ /**
6156
+ *
6157
+ * @type {StripeSetupIntentPaymentResponse}
6158
+ * @memberof StripeSetupIntentPaymentResponseDTO
6159
+ */
6160
+ 'data': StripeSetupIntentPaymentResponse;
6161
+ }
6098
6162
  /**
6099
6163
  *
6100
6164
  * @export
@@ -15875,6 +15939,45 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
15875
15939
  options: localVarRequestOptions,
15876
15940
  };
15877
15941
  },
15942
+ /**
15943
+ *
15944
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
15945
+ * @param {*} [options] Override http request option.
15946
+ * @throws {RequiredError}
15947
+ */
15948
+ paymentControllerCreateBookingSetupIntentPayment: async (stripeBookingPayloadDTO: StripeBookingPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15949
+ // verify required parameter 'stripeBookingPayloadDTO' is not null or undefined
15950
+ assertParamExists('paymentControllerCreateBookingSetupIntentPayment', 'stripeBookingPayloadDTO', stripeBookingPayloadDTO)
15951
+ const localVarPath = `/v1/payment/create-booking-setup-intent-payment`;
15952
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15953
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15954
+ let baseOptions;
15955
+ if (configuration) {
15956
+ baseOptions = configuration.baseOptions;
15957
+ }
15958
+
15959
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15960
+ const localVarHeaderParameter = {} as any;
15961
+ const localVarQueryParameter = {} as any;
15962
+
15963
+ // authentication bearer required
15964
+ // http bearer authentication required
15965
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15966
+
15967
+
15968
+
15969
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15970
+
15971
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15972
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15973
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15974
+ localVarRequestOptions.data = serializeDataIfNeeded(stripeBookingPayloadDTO, localVarRequestOptions, configuration)
15975
+
15976
+ return {
15977
+ url: toPathString(localVarUrlObj),
15978
+ options: localVarRequestOptions,
15979
+ };
15980
+ },
15878
15981
  /**
15879
15982
  *
15880
15983
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -15939,6 +16042,45 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
15939
16042
  options: localVarRequestOptions,
15940
16043
  };
15941
16044
  },
16045
+ /**
16046
+ *
16047
+ * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
16048
+ * @param {*} [options] Override http request option.
16049
+ * @throws {RequiredError}
16050
+ */
16051
+ paymentControllerCreateSetupIntentPayment: async (stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16052
+ // verify required parameter 'stripeSetupIntentPaymentPayloadDTO' is not null or undefined
16053
+ assertParamExists('paymentControllerCreateSetupIntentPayment', 'stripeSetupIntentPaymentPayloadDTO', stripeSetupIntentPaymentPayloadDTO)
16054
+ const localVarPath = `/v1/payment/create-setup-intent-payment`;
16055
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16056
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16057
+ let baseOptions;
16058
+ if (configuration) {
16059
+ baseOptions = configuration.baseOptions;
16060
+ }
16061
+
16062
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16063
+ const localVarHeaderParameter = {} as any;
16064
+ const localVarQueryParameter = {} as any;
16065
+
16066
+ // authentication bearer required
16067
+ // http bearer authentication required
16068
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16069
+
16070
+
16071
+
16072
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16073
+
16074
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16075
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16076
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16077
+ localVarRequestOptions.data = serializeDataIfNeeded(stripeSetupIntentPaymentPayloadDTO, localVarRequestOptions, configuration)
16078
+
16079
+ return {
16080
+ url: toPathString(localVarUrlObj),
16081
+ options: localVarRequestOptions,
16082
+ };
16083
+ },
15942
16084
  /**
15943
16085
  *
15944
16086
  * @param {*} [options] Override http request option.
@@ -15970,11 +16112,14 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
15970
16112
  },
15971
16113
  /**
15972
16114
  *
16115
+ * @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
15973
16116
  * @param {*} [options] Override http request option.
15974
16117
  * @throws {RequiredError}
15975
16118
  */
15976
- paymentControllerRetrieveConnectedAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15977
- const localVarPath = `/v1/payment/connected-account`;
16119
+ paymentControllerPlanUpsert: async (planUpsertPayloadDTO: PlanUpsertPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16120
+ // verify required parameter 'planUpsertPayloadDTO' is not null or undefined
16121
+ assertParamExists('paymentControllerPlanUpsert', 'planUpsertPayloadDTO', planUpsertPayloadDTO)
16122
+ const localVarPath = `/v1/payment/plan`;
15978
16123
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
15979
16124
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15980
16125
  let baseOptions;
@@ -15982,7 +16127,7 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
15982
16127
  baseOptions = configuration.baseOptions;
15983
16128
  }
15984
16129
 
15985
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16130
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15986
16131
  const localVarHeaderParameter = {} as any;
15987
16132
  const localVarQueryParameter = {} as any;
15988
16133
 
@@ -15992,9 +16137,12 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
15992
16137
 
15993
16138
 
15994
16139
 
16140
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16141
+
15995
16142
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15996
16143
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15997
16144
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16145
+ localVarRequestOptions.data = serializeDataIfNeeded(planUpsertPayloadDTO, localVarRequestOptions, configuration)
15998
16146
 
15999
16147
  return {
16000
16148
  url: toPathString(localVarUrlObj),
@@ -16006,8 +16154,8 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16006
16154
  * @param {*} [options] Override http request option.
16007
16155
  * @throws {RequiredError}
16008
16156
  */
16009
- paymentControllerRevenueCatWebhook: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16010
- const localVarPath = `/v1/payment/revenuecat-webhook`;
16157
+ paymentControllerRetrieveConnectedAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16158
+ const localVarPath = `/v1/payment/connected-account`;
16011
16159
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16012
16160
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16013
16161
  let baseOptions;
@@ -16015,10 +16163,14 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16015
16163
  baseOptions = configuration.baseOptions;
16016
16164
  }
16017
16165
 
16018
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16166
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16019
16167
  const localVarHeaderParameter = {} as any;
16020
16168
  const localVarQueryParameter = {} as any;
16021
16169
 
16170
+ // authentication bearer required
16171
+ // http bearer authentication required
16172
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16173
+
16022
16174
 
16023
16175
 
16024
16176
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -16032,14 +16184,11 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16032
16184
  },
16033
16185
  /**
16034
16186
  *
16035
- * @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
16036
16187
  * @param {*} [options] Override http request option.
16037
16188
  * @throws {RequiredError}
16038
16189
  */
16039
- paymentControllerSetupBookingPayment: async (bookingPaymentPayloadDTO: BookingPaymentPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16040
- // verify required parameter 'bookingPaymentPayloadDTO' is not null or undefined
16041
- assertParamExists('paymentControllerSetupBookingPayment', 'bookingPaymentPayloadDTO', bookingPaymentPayloadDTO)
16042
- const localVarPath = `/v1/payment/booking`;
16190
+ paymentControllerRevenueCatWebhook: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16191
+ const localVarPath = `/v1/payment/revenuecat-webhook`;
16043
16192
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16044
16193
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16045
16194
  let baseOptions;
@@ -16051,18 +16200,11 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16051
16200
  const localVarHeaderParameter = {} as any;
16052
16201
  const localVarQueryParameter = {} as any;
16053
16202
 
16054
- // authentication bearer required
16055
- // http bearer authentication required
16056
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
16057
-
16058
16203
 
16059
16204
 
16060
- localVarHeaderParameter['Content-Type'] = 'application/json';
16061
-
16062
16205
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16063
16206
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16064
16207
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16065
- localVarRequestOptions.data = serializeDataIfNeeded(bookingPaymentPayloadDTO, localVarRequestOptions, configuration)
16066
16208
 
16067
16209
  return {
16068
16210
  url: toPathString(localVarUrlObj),
@@ -16136,6 +16278,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
16136
16278
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateAccountVerificationLink']?.[localVarOperationServerIndex]?.url;
16137
16279
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16138
16280
  },
16281
+ /**
16282
+ *
16283
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16284
+ * @param {*} [options] Override http request option.
16285
+ * @throws {RequiredError}
16286
+ */
16287
+ async paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeSetupIntentPaymentResponseDTO>> {
16288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options);
16289
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16290
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateBookingSetupIntentPayment']?.[localVarOperationServerIndex]?.url;
16291
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16292
+ },
16139
16293
  /**
16140
16294
  *
16141
16295
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16159,6 +16313,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
16159
16313
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateSetupIntent']?.[localVarOperationServerIndex]?.url;
16160
16314
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16161
16315
  },
16316
+ /**
16317
+ *
16318
+ * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
16319
+ * @param {*} [options] Override http request option.
16320
+ * @throws {RequiredError}
16321
+ */
16322
+ async paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeSetupIntentPaymentResponseDTO>> {
16323
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options);
16324
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16325
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateSetupIntentPayment']?.[localVarOperationServerIndex]?.url;
16326
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16327
+ },
16162
16328
  /**
16163
16329
  *
16164
16330
  * @param {*} [options] Override http request option.
@@ -16172,13 +16338,14 @@ export const PlansApiFp = function(configuration?: Configuration) {
16172
16338
  },
16173
16339
  /**
16174
16340
  *
16341
+ * @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
16175
16342
  * @param {*} [options] Override http request option.
16176
16343
  * @throws {RequiredError}
16177
16344
  */
16178
- async paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessConnectedAccount>> {
16179
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRetrieveConnectedAccount(options);
16345
+ async paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePlanUpsertResponseDTO>> {
16346
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerPlanUpsert(planUpsertPayloadDTO, options);
16180
16347
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16181
- const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRetrieveConnectedAccount']?.[localVarOperationServerIndex]?.url;
16348
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerPlanUpsert']?.[localVarOperationServerIndex]?.url;
16182
16349
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16183
16350
  },
16184
16351
  /**
@@ -16186,22 +16353,21 @@ export const PlansApiFp = function(configuration?: Configuration) {
16186
16353
  * @param {*} [options] Override http request option.
16187
16354
  * @throws {RequiredError}
16188
16355
  */
16189
- async paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16190
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRevenueCatWebhook(options);
16356
+ async paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessConnectedAccount>> {
16357
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRetrieveConnectedAccount(options);
16191
16358
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16192
- const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRevenueCatWebhook']?.[localVarOperationServerIndex]?.url;
16359
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRetrieveConnectedAccount']?.[localVarOperationServerIndex]?.url;
16193
16360
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16194
16361
  },
16195
16362
  /**
16196
16363
  *
16197
- * @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
16198
16364
  * @param {*} [options] Override http request option.
16199
16365
  * @throws {RequiredError}
16200
16366
  */
16201
- async paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO: BookingPaymentPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPaymentCreateResponseDTO>> {
16202
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO, options);
16367
+ async paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16368
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRevenueCatWebhook(options);
16203
16369
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16204
- const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerSetupBookingPayment']?.[localVarOperationServerIndex]?.url;
16370
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRevenueCatWebhook']?.[localVarOperationServerIndex]?.url;
16205
16371
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16206
16372
  },
16207
16373
  /**
@@ -16242,6 +16408,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16242
16408
  paymentControllerCreateAccountVerificationLink(options?: RawAxiosRequestConfig): AxiosPromise<VerificationLinkResponseDTO> {
16243
16409
  return localVarFp.paymentControllerCreateAccountVerificationLink(options).then((request) => request(axios, basePath));
16244
16410
  },
16411
+ /**
16412
+ *
16413
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16414
+ * @param {*} [options] Override http request option.
16415
+ * @throws {RequiredError}
16416
+ */
16417
+ paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentPaymentResponseDTO> {
16418
+ return localVarFp.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(axios, basePath));
16419
+ },
16245
16420
  /**
16246
16421
  *
16247
16422
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16259,6 +16434,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16259
16434
  paymentControllerCreateSetupIntent(options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentResponseDTO> {
16260
16435
  return localVarFp.paymentControllerCreateSetupIntent(options).then((request) => request(axios, basePath));
16261
16436
  },
16437
+ /**
16438
+ *
16439
+ * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
16440
+ * @param {*} [options] Override http request option.
16441
+ * @throws {RequiredError}
16442
+ */
16443
+ paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentPaymentResponseDTO> {
16444
+ return localVarFp.paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options).then((request) => request(axios, basePath));
16445
+ },
16262
16446
  /**
16263
16447
  *
16264
16448
  * @param {*} [options] Override http request option.
@@ -16269,28 +16453,28 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16269
16453
  },
16270
16454
  /**
16271
16455
  *
16456
+ * @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
16272
16457
  * @param {*} [options] Override http request option.
16273
16458
  * @throws {RequiredError}
16274
16459
  */
16275
- paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): AxiosPromise<BusinessConnectedAccount> {
16276
- return localVarFp.paymentControllerRetrieveConnectedAccount(options).then((request) => request(axios, basePath));
16460
+ paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripePlanUpsertResponseDTO> {
16461
+ return localVarFp.paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(axios, basePath));
16277
16462
  },
16278
16463
  /**
16279
16464
  *
16280
16465
  * @param {*} [options] Override http request option.
16281
16466
  * @throws {RequiredError}
16282
16467
  */
16283
- paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): AxiosPromise<void> {
16284
- return localVarFp.paymentControllerRevenueCatWebhook(options).then((request) => request(axios, basePath));
16468
+ paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): AxiosPromise<BusinessConnectedAccount> {
16469
+ return localVarFp.paymentControllerRetrieveConnectedAccount(options).then((request) => request(axios, basePath));
16285
16470
  },
16286
16471
  /**
16287
16472
  *
16288
- * @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
16289
16473
  * @param {*} [options] Override http request option.
16290
16474
  * @throws {RequiredError}
16291
16475
  */
16292
- paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO: BookingPaymentPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<BookingPaymentCreateResponseDTO> {
16293
- return localVarFp.paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO, options).then((request) => request(axios, basePath));
16476
+ paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): AxiosPromise<void> {
16477
+ return localVarFp.paymentControllerRevenueCatWebhook(options).then((request) => request(axios, basePath));
16294
16478
  },
16295
16479
  /**
16296
16480
  *
@@ -16331,6 +16515,17 @@ export class PlansApi extends BaseAPI {
16331
16515
  return PlansApiFp(this.configuration).paymentControllerCreateAccountVerificationLink(options).then((request) => request(this.axios, this.basePath));
16332
16516
  }
16333
16517
 
16518
+ /**
16519
+ *
16520
+ * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16521
+ * @param {*} [options] Override http request option.
16522
+ * @throws {RequiredError}
16523
+ * @memberof PlansApi
16524
+ */
16525
+ public paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig) {
16526
+ return PlansApiFp(this.configuration).paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16527
+ }
16528
+
16334
16529
  /**
16335
16530
  *
16336
16531
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16352,6 +16547,17 @@ export class PlansApi extends BaseAPI {
16352
16547
  return PlansApiFp(this.configuration).paymentControllerCreateSetupIntent(options).then((request) => request(this.axios, this.basePath));
16353
16548
  }
16354
16549
 
16550
+ /**
16551
+ *
16552
+ * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
16553
+ * @param {*} [options] Override http request option.
16554
+ * @throws {RequiredError}
16555
+ * @memberof PlansApi
16556
+ */
16557
+ public paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig) {
16558
+ return PlansApiFp(this.configuration).paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16559
+ }
16560
+
16355
16561
  /**
16356
16562
  *
16357
16563
  * @param {*} [options] Override http request option.
@@ -16364,12 +16570,13 @@ export class PlansApi extends BaseAPI {
16364
16570
 
16365
16571
  /**
16366
16572
  *
16573
+ * @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
16367
16574
  * @param {*} [options] Override http request option.
16368
16575
  * @throws {RequiredError}
16369
16576
  * @memberof PlansApi
16370
16577
  */
16371
- public paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig) {
16372
- return PlansApiFp(this.configuration).paymentControllerRetrieveConnectedAccount(options).then((request) => request(this.axios, this.basePath));
16578
+ public paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig) {
16579
+ return PlansApiFp(this.configuration).paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16373
16580
  }
16374
16581
 
16375
16582
  /**
@@ -16378,19 +16585,18 @@ export class PlansApi extends BaseAPI {
16378
16585
  * @throws {RequiredError}
16379
16586
  * @memberof PlansApi
16380
16587
  */
16381
- public paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig) {
16382
- return PlansApiFp(this.configuration).paymentControllerRevenueCatWebhook(options).then((request) => request(this.axios, this.basePath));
16588
+ public paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig) {
16589
+ return PlansApiFp(this.configuration).paymentControllerRetrieveConnectedAccount(options).then((request) => request(this.axios, this.basePath));
16383
16590
  }
16384
16591
 
16385
16592
  /**
16386
16593
  *
16387
- * @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
16388
16594
  * @param {*} [options] Override http request option.
16389
16595
  * @throws {RequiredError}
16390
16596
  * @memberof PlansApi
16391
16597
  */
16392
- public paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO: BookingPaymentPayloadDTO, options?: RawAxiosRequestConfig) {
16393
- return PlansApiFp(this.configuration).paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16598
+ public paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig) {
16599
+ return PlansApiFp(this.configuration).paymentControllerRevenueCatWebhook(options).then((request) => request(this.axios, this.basePath));
16394
16600
  }
16395
16601
 
16396
16602
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.115-beta",
3
+ "version": "1.2.115",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},