@gooday_corp/gooday-api-client 1.2.108 → 1.2.109
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.
- package/api.ts +120 -0
- 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
|
|
@@ -6094,6 +6119,30 @@ export interface StripeSetupIntentPaymentResponse {
|
|
|
6094
6119
|
* @memberof StripeSetupIntentPaymentResponse
|
|
6095
6120
|
*/
|
|
6096
6121
|
'customer': string;
|
|
6122
|
+
/**
|
|
6123
|
+
*
|
|
6124
|
+
* @type {string}
|
|
6125
|
+
* @memberof StripeSetupIntentPaymentResponse
|
|
6126
|
+
*/
|
|
6127
|
+
'subscriptionId'?: string;
|
|
6128
|
+
/**
|
|
6129
|
+
*
|
|
6130
|
+
* @type {number}
|
|
6131
|
+
* @memberof StripeSetupIntentPaymentResponse
|
|
6132
|
+
*/
|
|
6133
|
+
'price'?: number;
|
|
6134
|
+
/**
|
|
6135
|
+
*
|
|
6136
|
+
* @type {string}
|
|
6137
|
+
* @memberof StripeSetupIntentPaymentResponse
|
|
6138
|
+
*/
|
|
6139
|
+
'frequency'?: string;
|
|
6140
|
+
/**
|
|
6141
|
+
*
|
|
6142
|
+
* @type {string}
|
|
6143
|
+
* @memberof StripeSetupIntentPaymentResponse
|
|
6144
|
+
*/
|
|
6145
|
+
'currency'?: string;
|
|
6097
6146
|
}
|
|
6098
6147
|
/**
|
|
6099
6148
|
*
|
|
@@ -15809,6 +15858,45 @@ export class OAuthApi extends BaseAPI {
|
|
|
15809
15858
|
*/
|
|
15810
15859
|
export const PlansApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
15811
15860
|
return {
|
|
15861
|
+
/**
|
|
15862
|
+
*
|
|
15863
|
+
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
15864
|
+
* @param {*} [options] Override http request option.
|
|
15865
|
+
* @throws {RequiredError}
|
|
15866
|
+
*/
|
|
15867
|
+
paymentControllerCreateBookingSetupIntentPayment: async (stripeBookingPayloadDTO: StripeBookingPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
15868
|
+
// verify required parameter 'stripeBookingPayloadDTO' is not null or undefined
|
|
15869
|
+
assertParamExists('paymentControllerCreateBookingSetupIntentPayment', 'stripeBookingPayloadDTO', stripeBookingPayloadDTO)
|
|
15870
|
+
const localVarPath = `/v1/payment/create-booking-setup-intent-payment`;
|
|
15871
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
15872
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
15873
|
+
let baseOptions;
|
|
15874
|
+
if (configuration) {
|
|
15875
|
+
baseOptions = configuration.baseOptions;
|
|
15876
|
+
}
|
|
15877
|
+
|
|
15878
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
15879
|
+
const localVarHeaderParameter = {} as any;
|
|
15880
|
+
const localVarQueryParameter = {} as any;
|
|
15881
|
+
|
|
15882
|
+
// authentication bearer required
|
|
15883
|
+
// http bearer authentication required
|
|
15884
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
15885
|
+
|
|
15886
|
+
|
|
15887
|
+
|
|
15888
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15889
|
+
|
|
15890
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15891
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15892
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
15893
|
+
localVarRequestOptions.data = serializeDataIfNeeded(stripeBookingPayloadDTO, localVarRequestOptions, configuration)
|
|
15894
|
+
|
|
15895
|
+
return {
|
|
15896
|
+
url: toPathString(localVarUrlObj),
|
|
15897
|
+
options: localVarRequestOptions,
|
|
15898
|
+
};
|
|
15899
|
+
},
|
|
15812
15900
|
/**
|
|
15813
15901
|
*
|
|
15814
15902
|
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
@@ -16054,6 +16142,18 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
16054
16142
|
export const PlansApiFp = function(configuration?: Configuration) {
|
|
16055
16143
|
const localVarAxiosParamCreator = PlansApiAxiosParamCreator(configuration)
|
|
16056
16144
|
return {
|
|
16145
|
+
/**
|
|
16146
|
+
*
|
|
16147
|
+
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
16148
|
+
* @param {*} [options] Override http request option.
|
|
16149
|
+
* @throws {RequiredError}
|
|
16150
|
+
*/
|
|
16151
|
+
async paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StripeSetupIntentPaymentResponseDTO>> {
|
|
16152
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options);
|
|
16153
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16154
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerCreateBookingSetupIntentPayment']?.[localVarOperationServerIndex]?.url;
|
|
16155
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16156
|
+
},
|
|
16057
16157
|
/**
|
|
16058
16158
|
*
|
|
16059
16159
|
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
@@ -16145,6 +16245,15 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
16145
16245
|
export const PlansApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
16146
16246
|
const localVarFp = PlansApiFp(configuration)
|
|
16147
16247
|
return {
|
|
16248
|
+
/**
|
|
16249
|
+
*
|
|
16250
|
+
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
16251
|
+
* @param {*} [options] Override http request option.
|
|
16252
|
+
* @throws {RequiredError}
|
|
16253
|
+
*/
|
|
16254
|
+
paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<StripeSetupIntentPaymentResponseDTO> {
|
|
16255
|
+
return localVarFp.paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(axios, basePath));
|
|
16256
|
+
},
|
|
16148
16257
|
/**
|
|
16149
16258
|
*
|
|
16150
16259
|
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|
|
@@ -16215,6 +16324,17 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
16215
16324
|
* @extends {BaseAPI}
|
|
16216
16325
|
*/
|
|
16217
16326
|
export class PlansApi extends BaseAPI {
|
|
16327
|
+
/**
|
|
16328
|
+
*
|
|
16329
|
+
* @param {StripeBookingPayloadDTO} stripeBookingPayloadDTO
|
|
16330
|
+
* @param {*} [options] Override http request option.
|
|
16331
|
+
* @throws {RequiredError}
|
|
16332
|
+
* @memberof PlansApi
|
|
16333
|
+
*/
|
|
16334
|
+
public paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO: StripeBookingPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
16335
|
+
return PlansApiFp(this.configuration).paymentControllerCreateBookingSetupIntentPayment(stripeBookingPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16336
|
+
}
|
|
16337
|
+
|
|
16218
16338
|
/**
|
|
16219
16339
|
*
|
|
16220
16340
|
* @param {CreatePaymentLinkDTO} createPaymentLinkDTO
|