@gooday_corp/gooday-api-client 1.2.114 → 1.2.115-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 +146 -390
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -566,6 +566,7 @@ export const BookingConfirmPayloadStatusEnum = {
566
566
  Rescheduled: 'RESCHEDULED',
567
567
  NoShow: 'NO_SHOW',
568
568
  Rejected: 'REJECTED',
569
+ Pending: 'PENDING',
569
570
  Cancelled: 'CANCELLED'
570
571
  } as const;
571
572
 
@@ -761,10 +762,10 @@ export interface BookingEntity {
761
762
  'serviceId': PrepaidServiceEntity;
762
763
  /**
763
764
  *
764
- * @type {StripeSetupIntentPaymentResponse}
765
+ * @type {BookingPaymentCreateResponse}
765
766
  * @memberof BookingEntity
766
767
  */
767
- 'paymentMethod': StripeSetupIntentPaymentResponse;
768
+ 'paymentMethod': BookingPaymentCreateResponse;
768
769
  /**
769
770
  *
770
771
  * @type {Array<TagsResponse>}
@@ -786,6 +787,7 @@ export const BookingEntityStatusEnum = {
786
787
  Rescheduled: 'RESCHEDULED',
787
788
  NoShow: 'NO_SHOW',
788
789
  Rejected: 'REJECTED',
790
+ Pending: 'PENDING',
789
791
  Cancelled: 'CANCELLED'
790
792
  } as const;
791
793
 
@@ -798,6 +800,93 @@ export const BookingEntityMethodEnum = {
798
800
 
799
801
  export type BookingEntityMethodEnum = typeof BookingEntityMethodEnum[keyof typeof BookingEntityMethodEnum];
800
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
+ }
801
890
  /**
802
891
  *
803
892
  * @export
@@ -939,10 +1028,10 @@ export interface BookingResponse {
939
1028
  'serviceId': PrepaidServiceEntity;
940
1029
  /**
941
1030
  *
942
- * @type {StripeSetupIntentPaymentResponse}
1031
+ * @type {BookingPaymentCreateResponse}
943
1032
  * @memberof BookingResponse
944
1033
  */
945
- 'paymentMethod': StripeSetupIntentPaymentResponse;
1034
+ 'paymentMethod': BookingPaymentCreateResponse;
946
1035
  /**
947
1036
  *
948
1037
  * @type {string}
@@ -971,6 +1060,7 @@ export const BookingResponseStatusEnum = {
971
1060
  Rescheduled: 'RESCHEDULED',
972
1061
  NoShow: 'NO_SHOW',
973
1062
  Rejected: 'REJECTED',
1063
+ Pending: 'PENDING',
974
1064
  Cancelled: 'CANCELLED'
975
1065
  } as const;
976
1066
 
@@ -1033,31 +1123,6 @@ export interface BookingRulesPayloadDTO {
1033
1123
  */
1034
1124
  'finalBookingTimeAbsolute': string;
1035
1125
  }
1036
- /**
1037
- *
1038
- * @export
1039
- * @interface BookingServicePayload
1040
- */
1041
- export interface BookingServicePayload {
1042
- /**
1043
- *
1044
- * @type {string}
1045
- * @memberof BookingServicePayload
1046
- */
1047
- 'selectedStaff': string;
1048
- /**
1049
- *
1050
- * @type {number}
1051
- * @memberof BookingServicePayload
1052
- */
1053
- 'quantity': number;
1054
- /**
1055
- *
1056
- * @type {string}
1057
- * @memberof BookingServicePayload
1058
- */
1059
- 'serviceId': string;
1060
- }
1061
1126
  /**
1062
1127
  *
1063
1128
  * @export
@@ -2664,10 +2729,16 @@ export interface CreateBookingPayload {
2664
2729
  'serviceId'?: string;
2665
2730
  /**
2666
2731
  *
2667
- * @type {StripeSetupIntentPaymentResponse}
2732
+ * @type {BookingPaymentCreateResponse}
2668
2733
  * @memberof CreateBookingPayload
2669
2734
  */
2670
- 'paymentMethod'?: StripeSetupIntentPaymentResponse;
2735
+ 'paymentMethod'?: BookingPaymentCreateResponse;
2736
+ /**
2737
+ *
2738
+ * @type {string}
2739
+ * @memberof CreateBookingPayload
2740
+ */
2741
+ 'discountId'?: string;
2671
2742
  }
2672
2743
  /**
2673
2744
  *
@@ -3013,6 +3084,7 @@ export const CreateWaitlistBookingCollaboratorPayloadStatusEnum = {
3013
3084
  Rescheduled: 'RESCHEDULED',
3014
3085
  NoShow: 'NO_SHOW',
3015
3086
  Rejected: 'REJECTED',
3087
+ Pending: 'PENDING',
3016
3088
  Cancelled: 'CANCELLED'
3017
3089
  } as const;
3018
3090
 
@@ -3559,6 +3631,7 @@ export const FindBookingPayloadStatusEnum = {
3559
3631
  Rescheduled: 'RESCHEDULED',
3560
3632
  NoShow: 'NO_SHOW',
3561
3633
  Rejected: 'REJECTED',
3634
+ Pending: 'PENDING',
3562
3635
  Cancelled: 'CANCELLED'
3563
3636
  } as const;
3564
3637
 
@@ -4927,19 +5000,6 @@ export interface PlanResponseDTO {
4927
5000
  */
4928
5001
  'data': Array<PlanEntity>;
4929
5002
  }
4930
- /**
4931
- *
4932
- * @export
4933
- * @interface PlanUpsertPayloadDTO
4934
- */
4935
- export interface PlanUpsertPayloadDTO {
4936
- /**
4937
- * Plan id
4938
- * @type {string}
4939
- * @memberof PlanUpsertPayloadDTO
4940
- */
4941
- 'plan': string;
4942
- }
4943
5003
  /**
4944
5004
  *
4945
5005
  * @export
@@ -6035,168 +6095,6 @@ export interface StandardBookingSlotsPayload {
6035
6095
  */
6036
6096
  'id': string;
6037
6097
  }
6038
- /**
6039
- *
6040
- * @export
6041
- * @interface StripeBookingPayloadDTO
6042
- */
6043
- export interface StripeBookingPayloadDTO {
6044
- /**
6045
- *
6046
- * @type {number}
6047
- * @memberof StripeBookingPayloadDTO
6048
- */
6049
- 'quantity': number;
6050
- /**
6051
- *
6052
- * @type {string}
6053
- * @memberof StripeBookingPayloadDTO
6054
- */
6055
- 'serviceId': string;
6056
- /**
6057
- *
6058
- * @type {string}
6059
- * @memberof StripeBookingPayloadDTO
6060
- */
6061
- 'staff': string;
6062
- }
6063
- /**
6064
- *
6065
- * @export
6066
- * @interface StripePaymentDTO
6067
- */
6068
- export interface StripePaymentDTO {
6069
- /**
6070
- * Stripe ephemeral Key
6071
- * @type {string}
6072
- * @memberof StripePaymentDTO
6073
- */
6074
- 'ephemeralKey': string;
6075
- /**
6076
- * Stripe ClientSecret
6077
- * @type {string}
6078
- * @memberof StripePaymentDTO
6079
- */
6080
- 'clientSecret': string;
6081
- }
6082
- /**
6083
- *
6084
- * @export
6085
- * @interface StripePlanUpsertResponseDTO
6086
- */
6087
- export interface StripePlanUpsertResponseDTO {
6088
- /**
6089
- * statusCode
6090
- * @type {number}
6091
- * @memberof StripePlanUpsertResponseDTO
6092
- */
6093
- 'statusCode': number;
6094
- /**
6095
- * Stripe Intent Data
6096
- * @type {StripePaymentDTO}
6097
- * @memberof StripePlanUpsertResponseDTO
6098
- */
6099
- 'data': StripePaymentDTO;
6100
- }
6101
- /**
6102
- *
6103
- * @export
6104
- * @interface StripeSetupIntentPaymentPayloadDTO
6105
- */
6106
- export interface StripeSetupIntentPaymentPayloadDTO {
6107
- /**
6108
- *
6109
- * @type {BookingServicePayload}
6110
- * @memberof StripeSetupIntentPaymentPayloadDTO
6111
- */
6112
- 'service'?: BookingServicePayload;
6113
- /**
6114
- *
6115
- * @type {string}
6116
- * @memberof StripeSetupIntentPaymentPayloadDTO
6117
- */
6118
- 'eventId'?: string;
6119
- /**
6120
- *
6121
- * @type {string}
6122
- * @memberof StripeSetupIntentPaymentPayloadDTO
6123
- */
6124
- 'discountId'?: string;
6125
- }
6126
- /**
6127
- *
6128
- * @export
6129
- * @interface StripeSetupIntentPaymentResponse
6130
- */
6131
- export interface StripeSetupIntentPaymentResponse {
6132
- /**
6133
- *
6134
- * @type {string}
6135
- * @memberof StripeSetupIntentPaymentResponse
6136
- */
6137
- 'paymentId': string;
6138
- /**
6139
- *
6140
- * @type {string}
6141
- * @memberof StripeSetupIntentPaymentResponse
6142
- */
6143
- 'paymentIntent': string;
6144
- /**
6145
- *
6146
- * @type {string}
6147
- * @memberof StripeSetupIntentPaymentResponse
6148
- */
6149
- 'ephemeralKey': string;
6150
- /**
6151
- *
6152
- * @type {string}
6153
- * @memberof StripeSetupIntentPaymentResponse
6154
- */
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;
6180
- }
6181
- /**
6182
- *
6183
- * @export
6184
- * @interface StripeSetupIntentPaymentResponseDTO
6185
- */
6186
- export interface StripeSetupIntentPaymentResponseDTO {
6187
- /**
6188
- * statusCode
6189
- * @type {number}
6190
- * @memberof StripeSetupIntentPaymentResponseDTO
6191
- */
6192
- 'statusCode': number;
6193
- /**
6194
- *
6195
- * @type {StripeSetupIntentPaymentResponse}
6196
- * @memberof StripeSetupIntentPaymentResponseDTO
6197
- */
6198
- 'data': StripeSetupIntentPaymentResponse;
6199
- }
6200
6098
  /**
6201
6099
  *
6202
6100
  * @export
@@ -15977,45 +15875,6 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
15977
15875
  options: localVarRequestOptions,
15978
15876
  };
15979
15877
  },
15980
- /**
15981
- *
15982
- * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
15983
- * @param {*} [options] Override http request option.
15984
- * @throws {RequiredError}
15985
- */
15986
- paymentControllerCreateBookingSetupIntentPayment: async (stripeBookingPayloadDTO: StripeBookingPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15987
- // verify required parameter 'stripeBookingPayloadDTO' is not null or undefined
15988
- assertParamExists('paymentControllerCreateBookingSetupIntentPayment', 'stripeBookingPayloadDTO', stripeBookingPayloadDTO)
15989
- const localVarPath = `/v1/payment/create-booking-setup-intent-payment`;
15990
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
15991
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15992
- let baseOptions;
15993
- if (configuration) {
15994
- baseOptions = configuration.baseOptions;
15995
- }
15996
-
15997
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15998
- const localVarHeaderParameter = {} as any;
15999
- const localVarQueryParameter = {} as any;
16000
-
16001
- // authentication bearer required
16002
- // http bearer authentication required
16003
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
16004
-
16005
-
16006
-
16007
- localVarHeaderParameter['Content-Type'] = 'application/json';
16008
-
16009
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16010
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16011
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16012
- localVarRequestOptions.data = serializeDataIfNeeded(stripeBookingPayloadDTO, localVarRequestOptions, configuration)
16013
-
16014
- return {
16015
- url: toPathString(localVarUrlObj),
16016
- options: localVarRequestOptions,
16017
- };
16018
- },
16019
15878
  /**
16020
15879
  *
16021
15880
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16080,45 +15939,6 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16080
15939
  options: localVarRequestOptions,
16081
15940
  };
16082
15941
  },
16083
- /**
16084
- *
16085
- * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
16086
- * @param {*} [options] Override http request option.
16087
- * @throws {RequiredError}
16088
- */
16089
- paymentControllerCreateSetupIntentPayment: async (stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16090
- // verify required parameter 'stripeSetupIntentPaymentPayloadDTO' is not null or undefined
16091
- assertParamExists('paymentControllerCreateSetupIntentPayment', 'stripeSetupIntentPaymentPayloadDTO', stripeSetupIntentPaymentPayloadDTO)
16092
- const localVarPath = `/v1/payment/create-setup-intent-payment`;
16093
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
16094
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16095
- let baseOptions;
16096
- if (configuration) {
16097
- baseOptions = configuration.baseOptions;
16098
- }
16099
-
16100
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16101
- const localVarHeaderParameter = {} as any;
16102
- const localVarQueryParameter = {} as any;
16103
-
16104
- // authentication bearer required
16105
- // http bearer authentication required
16106
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
16107
-
16108
-
16109
-
16110
- localVarHeaderParameter['Content-Type'] = 'application/json';
16111
-
16112
- setSearchParams(localVarUrlObj, localVarQueryParameter);
16113
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16114
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16115
- localVarRequestOptions.data = serializeDataIfNeeded(stripeSetupIntentPaymentPayloadDTO, localVarRequestOptions, configuration)
16116
-
16117
- return {
16118
- url: toPathString(localVarUrlObj),
16119
- options: localVarRequestOptions,
16120
- };
16121
- },
16122
15942
  /**
16123
15943
  *
16124
15944
  * @param {*} [options] Override http request option.
@@ -16150,14 +15970,11 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16150
15970
  },
16151
15971
  /**
16152
15972
  *
16153
- * @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
16154
15973
  * @param {*} [options] Override http request option.
16155
15974
  * @throws {RequiredError}
16156
15975
  */
16157
- paymentControllerPlanUpsert: async (planUpsertPayloadDTO: PlanUpsertPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16158
- // verify required parameter 'planUpsertPayloadDTO' is not null or undefined
16159
- assertParamExists('paymentControllerPlanUpsert', 'planUpsertPayloadDTO', planUpsertPayloadDTO)
16160
- const localVarPath = `/v1/payment/plan`;
15976
+ paymentControllerRetrieveConnectedAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15977
+ const localVarPath = `/v1/payment/connected-account`;
16161
15978
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16162
15979
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16163
15980
  let baseOptions;
@@ -16165,7 +15982,7 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16165
15982
  baseOptions = configuration.baseOptions;
16166
15983
  }
16167
15984
 
16168
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
15985
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16169
15986
  const localVarHeaderParameter = {} as any;
16170
15987
  const localVarQueryParameter = {} as any;
16171
15988
 
@@ -16175,12 +15992,9 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16175
15992
 
16176
15993
 
16177
15994
 
16178
- localVarHeaderParameter['Content-Type'] = 'application/json';
16179
-
16180
15995
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16181
15996
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16182
15997
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16183
- localVarRequestOptions.data = serializeDataIfNeeded(planUpsertPayloadDTO, localVarRequestOptions, configuration)
16184
15998
 
16185
15999
  return {
16186
16000
  url: toPathString(localVarUrlObj),
@@ -16192,8 +16006,8 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16192
16006
  * @param {*} [options] Override http request option.
16193
16007
  * @throws {RequiredError}
16194
16008
  */
16195
- paymentControllerRetrieveConnectedAccount: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16196
- const localVarPath = `/v1/payment/connected-account`;
16009
+ paymentControllerRevenueCatWebhook: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16010
+ const localVarPath = `/v1/payment/revenuecat-webhook`;
16197
16011
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16198
16012
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16199
16013
  let baseOptions;
@@ -16201,14 +16015,10 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16201
16015
  baseOptions = configuration.baseOptions;
16202
16016
  }
16203
16017
 
16204
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16018
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
16205
16019
  const localVarHeaderParameter = {} as any;
16206
16020
  const localVarQueryParameter = {} as any;
16207
16021
 
16208
- // authentication bearer required
16209
- // http bearer authentication required
16210
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
16211
-
16212
16022
 
16213
16023
 
16214
16024
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -16222,11 +16032,14 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16222
16032
  },
16223
16033
  /**
16224
16034
  *
16035
+ * @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
16225
16036
  * @param {*} [options] Override http request option.
16226
16037
  * @throws {RequiredError}
16227
16038
  */
16228
- paymentControllerRevenueCatWebhook: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16229
- const localVarPath = `/v1/payment/revenuecat-webhook`;
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`;
16230
16043
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
16231
16044
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16232
16045
  let baseOptions;
@@ -16238,11 +16051,18 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
16238
16051
  const localVarHeaderParameter = {} as any;
16239
16052
  const localVarQueryParameter = {} as any;
16240
16053
 
16054
+ // authentication bearer required
16055
+ // http bearer authentication required
16056
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16057
+
16241
16058
 
16242
16059
 
16060
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16061
+
16243
16062
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16244
16063
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16245
16064
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16065
+ localVarRequestOptions.data = serializeDataIfNeeded(bookingPaymentPayloadDTO, localVarRequestOptions, configuration)
16246
16066
 
16247
16067
  return {
16248
16068
  url: toPathString(localVarUrlObj),
@@ -16316,18 +16136,6 @@ export const PlansApiFp = function(configuration?: Configuration) {
16316
16136
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateAccountVerificationLink']?.[localVarOperationServerIndex]?.url;
16317
16137
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16318
16138
  },
16319
- /**
16320
- *
16321
- * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16322
- * @param {*} [options] Override http request option.
16323
- * @throws {RequiredError}
16324
- */
16325
- async paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeSetupIntentPaymentResponseDTO>> {
16326
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options);
16327
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16328
- const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateBookingSetupIntentPayment']?.[localVarOperationServerIndex]?.url;
16329
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16330
- },
16331
16139
  /**
16332
16140
  *
16333
16141
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16351,18 +16159,6 @@ export const PlansApiFp = function(configuration?: Configuration) {
16351
16159
  const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateSetupIntent']?.[localVarOperationServerIndex]?.url;
16352
16160
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16353
16161
  },
16354
- /**
16355
- *
16356
- * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
16357
- * @param {*} [options] Override http request option.
16358
- * @throws {RequiredError}
16359
- */
16360
- async paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeSetupIntentPaymentResponseDTO>> {
16361
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options);
16362
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16363
- const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateSetupIntentPayment']?.[localVarOperationServerIndex]?.url;
16364
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16365
- },
16366
16162
  /**
16367
16163
  *
16368
16164
  * @param {*} [options] Override http request option.
@@ -16376,14 +16172,13 @@ export const PlansApiFp = function(configuration?: Configuration) {
16376
16172
  },
16377
16173
  /**
16378
16174
  *
16379
- * @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
16380
16175
  * @param {*} [options] Override http request option.
16381
16176
  * @throws {RequiredError}
16382
16177
  */
16383
- async paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripePlanUpsertResponseDTO>> {
16384
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerPlanUpsert(planUpsertPayloadDTO, options);
16178
+ async paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessConnectedAccount>> {
16179
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRetrieveConnectedAccount(options);
16385
16180
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16386
- const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerPlanUpsert']?.[localVarOperationServerIndex]?.url;
16181
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRetrieveConnectedAccount']?.[localVarOperationServerIndex]?.url;
16387
16182
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16388
16183
  },
16389
16184
  /**
@@ -16391,21 +16186,22 @@ export const PlansApiFp = function(configuration?: Configuration) {
16391
16186
  * @param {*} [options] Override http request option.
16392
16187
  * @throws {RequiredError}
16393
16188
  */
16394
- async paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BusinessConnectedAccount>> {
16395
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRetrieveConnectedAccount(options);
16189
+ async paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16190
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRevenueCatWebhook(options);
16396
16191
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16397
- const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRetrieveConnectedAccount']?.[localVarOperationServerIndex]?.url;
16192
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRevenueCatWebhook']?.[localVarOperationServerIndex]?.url;
16398
16193
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16399
16194
  },
16400
16195
  /**
16401
16196
  *
16197
+ * @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
16402
16198
  * @param {*} [options] Override http request option.
16403
16199
  * @throws {RequiredError}
16404
16200
  */
16405
- async paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16406
- const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerRevenueCatWebhook(options);
16201
+ async paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO: BookingPaymentPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BookingPaymentCreateResponseDTO>> {
16202
+ const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO, options);
16407
16203
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16408
- const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRevenueCatWebhook']?.[localVarOperationServerIndex]?.url;
16204
+ const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerSetupBookingPayment']?.[localVarOperationServerIndex]?.url;
16409
16205
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16410
16206
  },
16411
16207
  /**
@@ -16446,15 +16242,6 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16446
16242
  paymentControllerCreateAccountVerificationLink(options?: RawAxiosRequestConfig): AxiosPromise<VerificationLinkResponseDTO> {
16447
16243
  return localVarFp.paymentControllerCreateAccountVerificationLink(options).then((request) => request(axios, basePath));
16448
16244
  },
16449
- /**
16450
- *
16451
- * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16452
- * @param {*} [options] Override http request option.
16453
- * @throws {RequiredError}
16454
- */
16455
- paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentPaymentResponseDTO> {
16456
- return localVarFp.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(axios, basePath));
16457
- },
16458
16245
  /**
16459
16246
  *
16460
16247
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16472,15 +16259,6 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16472
16259
  paymentControllerCreateSetupIntent(options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentResponseDTO> {
16473
16260
  return localVarFp.paymentControllerCreateSetupIntent(options).then((request) => request(axios, basePath));
16474
16261
  },
16475
- /**
16476
- *
16477
- * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
16478
- * @param {*} [options] Override http request option.
16479
- * @throws {RequiredError}
16480
- */
16481
- paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentPaymentResponseDTO> {
16482
- return localVarFp.paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options).then((request) => request(axios, basePath));
16483
- },
16484
16262
  /**
16485
16263
  *
16486
16264
  * @param {*} [options] Override http request option.
@@ -16491,28 +16269,28 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
16491
16269
  },
16492
16270
  /**
16493
16271
  *
16494
- * @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
16495
16272
  * @param {*} [options] Override http request option.
16496
16273
  * @throws {RequiredError}
16497
16274
  */
16498
- paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripePlanUpsertResponseDTO> {
16499
- return localVarFp.paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(axios, basePath));
16275
+ paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): AxiosPromise<BusinessConnectedAccount> {
16276
+ return localVarFp.paymentControllerRetrieveConnectedAccount(options).then((request) => request(axios, basePath));
16500
16277
  },
16501
16278
  /**
16502
16279
  *
16503
16280
  * @param {*} [options] Override http request option.
16504
16281
  * @throws {RequiredError}
16505
16282
  */
16506
- paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig): AxiosPromise<BusinessConnectedAccount> {
16507
- return localVarFp.paymentControllerRetrieveConnectedAccount(options).then((request) => request(axios, basePath));
16283
+ paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): AxiosPromise<void> {
16284
+ return localVarFp.paymentControllerRevenueCatWebhook(options).then((request) => request(axios, basePath));
16508
16285
  },
16509
16286
  /**
16510
16287
  *
16288
+ * @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
16511
16289
  * @param {*} [options] Override http request option.
16512
16290
  * @throws {RequiredError}
16513
16291
  */
16514
- paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): AxiosPromise<void> {
16515
- return localVarFp.paymentControllerRevenueCatWebhook(options).then((request) => request(axios, basePath));
16292
+ paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO: BookingPaymentPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<BookingPaymentCreateResponseDTO> {
16293
+ return localVarFp.paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO, options).then((request) => request(axios, basePath));
16516
16294
  },
16517
16295
  /**
16518
16296
  *
@@ -16553,17 +16331,6 @@ export class PlansApi extends BaseAPI {
16553
16331
  return PlansApiFp(this.configuration).paymentControllerCreateAccountVerificationLink(options).then((request) => request(this.axios, this.basePath));
16554
16332
  }
16555
16333
 
16556
- /**
16557
- *
16558
- * @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
16559
- * @param {*} [options] Override http request option.
16560
- * @throws {RequiredError}
16561
- * @memberof PlansApi
16562
- */
16563
- public paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig) {
16564
- return PlansApiFp(this.configuration).paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16565
- }
16566
-
16567
16334
  /**
16568
16335
  *
16569
16336
  * @param {CreatePaymentLinkDTO} createPaymentLinkDTO
@@ -16585,17 +16352,6 @@ export class PlansApi extends BaseAPI {
16585
16352
  return PlansApiFp(this.configuration).paymentControllerCreateSetupIntent(options).then((request) => request(this.axios, this.basePath));
16586
16353
  }
16587
16354
 
16588
- /**
16589
- *
16590
- * @param {StripeSetupIntentPaymentPayloadDTO} stripeSetupIntentPaymentPayloadDTO
16591
- * @param {*} [options] Override http request option.
16592
- * @throws {RequiredError}
16593
- * @memberof PlansApi
16594
- */
16595
- public paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO: StripeSetupIntentPaymentPayloadDTO, options?: RawAxiosRequestConfig) {
16596
- return PlansApiFp(this.configuration).paymentControllerCreateSetupIntentPayment(stripeSetupIntentPaymentPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16597
- }
16598
-
16599
16355
  /**
16600
16356
  *
16601
16357
  * @param {*} [options] Override http request option.
@@ -16608,13 +16364,12 @@ export class PlansApi extends BaseAPI {
16608
16364
 
16609
16365
  /**
16610
16366
  *
16611
- * @param {PlanUpsertPayloadDTO} planUpsertPayloadDTO
16612
16367
  * @param {*} [options] Override http request option.
16613
16368
  * @throws {RequiredError}
16614
16369
  * @memberof PlansApi
16615
16370
  */
16616
- public paymentControllerPlanUpsert(planUpsertPayloadDTO: PlanUpsertPayloadDTO, options?: RawAxiosRequestConfig) {
16617
- return PlansApiFp(this.configuration).paymentControllerPlanUpsert(planUpsertPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16371
+ public paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig) {
16372
+ return PlansApiFp(this.configuration).paymentControllerRetrieveConnectedAccount(options).then((request) => request(this.axios, this.basePath));
16618
16373
  }
16619
16374
 
16620
16375
  /**
@@ -16623,18 +16378,19 @@ export class PlansApi extends BaseAPI {
16623
16378
  * @throws {RequiredError}
16624
16379
  * @memberof PlansApi
16625
16380
  */
16626
- public paymentControllerRetrieveConnectedAccount(options?: RawAxiosRequestConfig) {
16627
- return PlansApiFp(this.configuration).paymentControllerRetrieveConnectedAccount(options).then((request) => request(this.axios, this.basePath));
16381
+ public paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig) {
16382
+ return PlansApiFp(this.configuration).paymentControllerRevenueCatWebhook(options).then((request) => request(this.axios, this.basePath));
16628
16383
  }
16629
16384
 
16630
16385
  /**
16631
16386
  *
16387
+ * @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
16632
16388
  * @param {*} [options] Override http request option.
16633
16389
  * @throws {RequiredError}
16634
16390
  * @memberof PlansApi
16635
16391
  */
16636
- public paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig) {
16637
- return PlansApiFp(this.configuration).paymentControllerRevenueCatWebhook(options).then((request) => request(this.axios, this.basePath));
16392
+ public paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO: BookingPaymentPayloadDTO, options?: RawAxiosRequestConfig) {
16393
+ return PlansApiFp(this.configuration).paymentControllerSetupBookingPayment(bookingPaymentPayloadDTO, options).then((request) => request(this.axios, this.basePath));
16638
16394
  }
16639
16395
 
16640
16396
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.114",
3
+ "version": "1.2.115-beta",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},