@gooday_corp/gooday-api-client 1.3.31 → 1.3.33
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 +90 -26
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3258,35 +3258,11 @@ export type CreateEventPayloadDTORepeatEnum = typeof CreateEventPayloadDTORepeat
|
|
|
3258
3258
|
*/
|
|
3259
3259
|
export interface CreatePaymentLinkDTO {
|
|
3260
3260
|
/**
|
|
3261
|
-
*
|
|
3261
|
+
* Product ID
|
|
3262
3262
|
* @type {string}
|
|
3263
3263
|
* @memberof CreatePaymentLinkDTO
|
|
3264
3264
|
*/
|
|
3265
|
-
'
|
|
3266
|
-
/**
|
|
3267
|
-
* Recurring interval for the payment
|
|
3268
|
-
* @type {string}
|
|
3269
|
-
* @memberof CreatePaymentLinkDTO
|
|
3270
|
-
*/
|
|
3271
|
-
'interval': string;
|
|
3272
|
-
/**
|
|
3273
|
-
* Amount to be charged in the smallest currency unit (e.g., cents for USD)
|
|
3274
|
-
* @type {number}
|
|
3275
|
-
* @memberof CreatePaymentLinkDTO
|
|
3276
|
-
*/
|
|
3277
|
-
'amount': number;
|
|
3278
|
-
/**
|
|
3279
|
-
* Name of the product or service for which payment is being made
|
|
3280
|
-
* @type {string}
|
|
3281
|
-
* @memberof CreatePaymentLinkDTO
|
|
3282
|
-
*/
|
|
3283
|
-
'name': string;
|
|
3284
|
-
/**
|
|
3285
|
-
* User Id
|
|
3286
|
-
* @type {string}
|
|
3287
|
-
* @memberof CreatePaymentLinkDTO
|
|
3288
|
-
*/
|
|
3289
|
-
'user': string;
|
|
3265
|
+
'productID': string;
|
|
3290
3266
|
}
|
|
3291
3267
|
/**
|
|
3292
3268
|
*
|
|
@@ -6230,6 +6206,25 @@ export interface PriceRangeListResponse {
|
|
|
6230
6206
|
*/
|
|
6231
6207
|
'data': Array<PriceRangeEntity>;
|
|
6232
6208
|
}
|
|
6209
|
+
/**
|
|
6210
|
+
*
|
|
6211
|
+
* @export
|
|
6212
|
+
* @interface ProductResponseDTO
|
|
6213
|
+
*/
|
|
6214
|
+
export interface ProductResponseDTO {
|
|
6215
|
+
/**
|
|
6216
|
+
*
|
|
6217
|
+
* @type {object}
|
|
6218
|
+
* @memberof ProductResponseDTO
|
|
6219
|
+
*/
|
|
6220
|
+
'data': object;
|
|
6221
|
+
/**
|
|
6222
|
+
* statusCode
|
|
6223
|
+
* @type {number}
|
|
6224
|
+
* @memberof ProductResponseDTO
|
|
6225
|
+
*/
|
|
6226
|
+
'statusCode': number;
|
|
6227
|
+
}
|
|
6233
6228
|
/**
|
|
6234
6229
|
*
|
|
6235
6230
|
* @export
|
|
@@ -17375,6 +17370,10 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
17375
17370
|
const localVarHeaderParameter = {} as any;
|
|
17376
17371
|
const localVarQueryParameter = {} as any;
|
|
17377
17372
|
|
|
17373
|
+
// authentication bearer required
|
|
17374
|
+
// http bearer authentication required
|
|
17375
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
17376
|
+
|
|
17378
17377
|
|
|
17379
17378
|
|
|
17380
17379
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
@@ -17500,6 +17499,39 @@ export const PlansApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
17500
17499
|
|
|
17501
17500
|
|
|
17502
17501
|
|
|
17502
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17503
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17504
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
17505
|
+
|
|
17506
|
+
return {
|
|
17507
|
+
url: toPathString(localVarUrlObj),
|
|
17508
|
+
options: localVarRequestOptions,
|
|
17509
|
+
};
|
|
17510
|
+
},
|
|
17511
|
+
/**
|
|
17512
|
+
*
|
|
17513
|
+
* @param {string} id
|
|
17514
|
+
* @param {*} [options] Override http request option.
|
|
17515
|
+
* @throws {RequiredError}
|
|
17516
|
+
*/
|
|
17517
|
+
paymentControllerServiceById: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
17518
|
+
// verify required parameter 'id' is not null or undefined
|
|
17519
|
+
assertParamExists('paymentControllerServiceById', 'id', id)
|
|
17520
|
+
const localVarPath = `/v1/payment/stripe-plan/{id}`
|
|
17521
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
17522
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17523
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17524
|
+
let baseOptions;
|
|
17525
|
+
if (configuration) {
|
|
17526
|
+
baseOptions = configuration.baseOptions;
|
|
17527
|
+
}
|
|
17528
|
+
|
|
17529
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
17530
|
+
const localVarHeaderParameter = {} as any;
|
|
17531
|
+
const localVarQueryParameter = {} as any;
|
|
17532
|
+
|
|
17533
|
+
|
|
17534
|
+
|
|
17503
17535
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17504
17536
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17505
17537
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -17671,6 +17703,18 @@ export const PlansApiFp = function(configuration?: Configuration) {
|
|
|
17671
17703
|
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerRevenueCatWebhook']?.[localVarOperationServerIndex]?.url;
|
|
17672
17704
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17673
17705
|
},
|
|
17706
|
+
/**
|
|
17707
|
+
*
|
|
17708
|
+
* @param {string} id
|
|
17709
|
+
* @param {*} [options] Override http request option.
|
|
17710
|
+
* @throws {RequiredError}
|
|
17711
|
+
*/
|
|
17712
|
+
async paymentControllerServiceById(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductResponseDTO>> {
|
|
17713
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.paymentControllerServiceById(id, options);
|
|
17714
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
17715
|
+
const localVarOperationServerBasePath = operationServerMap['PlansApi.paymentControllerServiceById']?.[localVarOperationServerIndex]?.url;
|
|
17716
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17717
|
+
},
|
|
17674
17718
|
/**
|
|
17675
17719
|
*
|
|
17676
17720
|
* @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
|
|
@@ -17762,6 +17806,15 @@ export const PlansApiFactory = function (configuration?: Configuration, basePath
|
|
|
17762
17806
|
paymentControllerRevenueCatWebhook(options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
17763
17807
|
return localVarFp.paymentControllerRevenueCatWebhook(options).then((request) => request(axios, basePath));
|
|
17764
17808
|
},
|
|
17809
|
+
/**
|
|
17810
|
+
*
|
|
17811
|
+
* @param {string} id
|
|
17812
|
+
* @param {*} [options] Override http request option.
|
|
17813
|
+
* @throws {RequiredError}
|
|
17814
|
+
*/
|
|
17815
|
+
paymentControllerServiceById(id: string, options?: RawAxiosRequestConfig): AxiosPromise<ProductResponseDTO> {
|
|
17816
|
+
return localVarFp.paymentControllerServiceById(id, options).then((request) => request(axios, basePath));
|
|
17817
|
+
},
|
|
17765
17818
|
/**
|
|
17766
17819
|
*
|
|
17767
17820
|
* @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
|
|
@@ -17861,6 +17914,17 @@ export class PlansApi extends BaseAPI {
|
|
|
17861
17914
|
return PlansApiFp(this.configuration).paymentControllerRevenueCatWebhook(options).then((request) => request(this.axios, this.basePath));
|
|
17862
17915
|
}
|
|
17863
17916
|
|
|
17917
|
+
/**
|
|
17918
|
+
*
|
|
17919
|
+
* @param {string} id
|
|
17920
|
+
* @param {*} [options] Override http request option.
|
|
17921
|
+
* @throws {RequiredError}
|
|
17922
|
+
* @memberof PlansApi
|
|
17923
|
+
*/
|
|
17924
|
+
public paymentControllerServiceById(id: string, options?: RawAxiosRequestConfig) {
|
|
17925
|
+
return PlansApiFp(this.configuration).paymentControllerServiceById(id, options).then((request) => request(this.axios, this.basePath));
|
|
17926
|
+
}
|
|
17927
|
+
|
|
17864
17928
|
/**
|
|
17865
17929
|
*
|
|
17866
17930
|
* @param {BookingPaymentPayloadDTO} bookingPaymentPayloadDTO
|