@gooday_corp/gooday-api-client 1.2.101 → 1.2.103
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 +121 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -4876,6 +4876,56 @@ export interface PlanUpsertPayloadDTO {
|
|
|
4876
4876
|
*/
|
|
4877
4877
|
'plan': string;
|
|
4878
4878
|
}
|
|
4879
|
+
/**
|
|
4880
|
+
*
|
|
4881
|
+
* @export
|
|
4882
|
+
* @interface PrepaidServiceAvailabilityPayloadDTO
|
|
4883
|
+
*/
|
|
4884
|
+
export interface PrepaidServiceAvailabilityPayloadDTO {
|
|
4885
|
+
/**
|
|
4886
|
+
* Start date for the events
|
|
4887
|
+
* @type {string}
|
|
4888
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4889
|
+
*/
|
|
4890
|
+
'startDate': string;
|
|
4891
|
+
/**
|
|
4892
|
+
* End date for the events
|
|
4893
|
+
* @type {string}
|
|
4894
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4895
|
+
*/
|
|
4896
|
+
'endDate': string;
|
|
4897
|
+
/**
|
|
4898
|
+
* Staff id for this event
|
|
4899
|
+
* @type {string}
|
|
4900
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4901
|
+
*/
|
|
4902
|
+
'staff'?: string;
|
|
4903
|
+
/**
|
|
4904
|
+
* No of people for this booking
|
|
4905
|
+
* @type {number}
|
|
4906
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4907
|
+
*/
|
|
4908
|
+
'noOfPeople': number;
|
|
4909
|
+
/**
|
|
4910
|
+
* Whats On Id
|
|
4911
|
+
* @type {string}
|
|
4912
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4913
|
+
*/
|
|
4914
|
+
'id': string;
|
|
4915
|
+
}
|
|
4916
|
+
/**
|
|
4917
|
+
*
|
|
4918
|
+
* @export
|
|
4919
|
+
* @interface PrepaidServiceAvailabilityResponseDTO
|
|
4920
|
+
*/
|
|
4921
|
+
export interface PrepaidServiceAvailabilityResponseDTO {
|
|
4922
|
+
/**
|
|
4923
|
+
* Flag to indicate whether user can do booking or not
|
|
4924
|
+
* @type {boolean}
|
|
4925
|
+
* @memberof PrepaidServiceAvailabilityResponseDTO
|
|
4926
|
+
*/
|
|
4927
|
+
'isBookingAllowed': boolean;
|
|
4928
|
+
}
|
|
4879
4929
|
/**
|
|
4880
4930
|
*
|
|
4881
4931
|
* @export
|
|
@@ -16186,6 +16236,45 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
16186
16236
|
options: localVarRequestOptions,
|
|
16187
16237
|
};
|
|
16188
16238
|
},
|
|
16239
|
+
/**
|
|
16240
|
+
*
|
|
16241
|
+
* @param {PrepaidServiceAvailabilityPayloadDTO} prepaidServiceAvailabilityPayloadDTO
|
|
16242
|
+
* @param {*} [options] Override http request option.
|
|
16243
|
+
* @throws {RequiredError}
|
|
16244
|
+
*/
|
|
16245
|
+
prepaidServiceControllerPrepaidServiceAvailability: async (prepaidServiceAvailabilityPayloadDTO: PrepaidServiceAvailabilityPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16246
|
+
// verify required parameter 'prepaidServiceAvailabilityPayloadDTO' is not null or undefined
|
|
16247
|
+
assertParamExists('prepaidServiceControllerPrepaidServiceAvailability', 'prepaidServiceAvailabilityPayloadDTO', prepaidServiceAvailabilityPayloadDTO)
|
|
16248
|
+
const localVarPath = `/v1/prepaid-service/availability`;
|
|
16249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16250
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16251
|
+
let baseOptions;
|
|
16252
|
+
if (configuration) {
|
|
16253
|
+
baseOptions = configuration.baseOptions;
|
|
16254
|
+
}
|
|
16255
|
+
|
|
16256
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16257
|
+
const localVarHeaderParameter = {} as any;
|
|
16258
|
+
const localVarQueryParameter = {} as any;
|
|
16259
|
+
|
|
16260
|
+
// authentication bearer required
|
|
16261
|
+
// http bearer authentication required
|
|
16262
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16263
|
+
|
|
16264
|
+
|
|
16265
|
+
|
|
16266
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16267
|
+
|
|
16268
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16269
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16270
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16271
|
+
localVarRequestOptions.data = serializeDataIfNeeded(prepaidServiceAvailabilityPayloadDTO, localVarRequestOptions, configuration)
|
|
16272
|
+
|
|
16273
|
+
return {
|
|
16274
|
+
url: toPathString(localVarUrlObj),
|
|
16275
|
+
options: localVarRequestOptions,
|
|
16276
|
+
};
|
|
16277
|
+
},
|
|
16189
16278
|
/**
|
|
16190
16279
|
*
|
|
16191
16280
|
* @param {string} id
|
|
@@ -16323,6 +16412,18 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
|
|
|
16323
16412
|
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerFindService']?.[localVarOperationServerIndex]?.url;
|
|
16324
16413
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16325
16414
|
},
|
|
16415
|
+
/**
|
|
16416
|
+
*
|
|
16417
|
+
* @param {PrepaidServiceAvailabilityPayloadDTO} prepaidServiceAvailabilityPayloadDTO
|
|
16418
|
+
* @param {*} [options] Override http request option.
|
|
16419
|
+
* @throws {RequiredError}
|
|
16420
|
+
*/
|
|
16421
|
+
async prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO: PrepaidServiceAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrepaidServiceAvailabilityResponseDTO>> {
|
|
16422
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO, options);
|
|
16423
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16424
|
+
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerPrepaidServiceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
16425
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16426
|
+
},
|
|
16326
16427
|
/**
|
|
16327
16428
|
*
|
|
16328
16429
|
* @param {string} id
|
|
@@ -16393,6 +16494,15 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
|
|
|
16393
16494
|
prepaidServiceControllerFindService(prepaidServiceFindDTO: PrepaidServiceFindDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceResponseDTO> {
|
|
16394
16495
|
return localVarFp.prepaidServiceControllerFindService(prepaidServiceFindDTO, options).then((request) => request(axios, basePath));
|
|
16395
16496
|
},
|
|
16497
|
+
/**
|
|
16498
|
+
*
|
|
16499
|
+
* @param {PrepaidServiceAvailabilityPayloadDTO} prepaidServiceAvailabilityPayloadDTO
|
|
16500
|
+
* @param {*} [options] Override http request option.
|
|
16501
|
+
* @throws {RequiredError}
|
|
16502
|
+
*/
|
|
16503
|
+
prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO: PrepaidServiceAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceAvailabilityResponseDTO> {
|
|
16504
|
+
return localVarFp.prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO, options).then((request) => request(axios, basePath));
|
|
16505
|
+
},
|
|
16396
16506
|
/**
|
|
16397
16507
|
*
|
|
16398
16508
|
* @param {string} id
|
|
@@ -16465,6 +16575,17 @@ export class PrepaidServiceApi extends BaseAPI {
|
|
|
16465
16575
|
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerFindService(prepaidServiceFindDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16466
16576
|
}
|
|
16467
16577
|
|
|
16578
|
+
/**
|
|
16579
|
+
*
|
|
16580
|
+
* @param {PrepaidServiceAvailabilityPayloadDTO} prepaidServiceAvailabilityPayloadDTO
|
|
16581
|
+
* @param {*} [options] Override http request option.
|
|
16582
|
+
* @throws {RequiredError}
|
|
16583
|
+
* @memberof PrepaidServiceApi
|
|
16584
|
+
*/
|
|
16585
|
+
public prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO: PrepaidServiceAvailabilityPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
16586
|
+
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16587
|
+
}
|
|
16588
|
+
|
|
16468
16589
|
/**
|
|
16469
16590
|
*
|
|
16470
16591
|
* @param {string} id
|