@gooday_corp/gooday-api-client 1.2.100 → 1.2.102
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
|
@@ -4851,6 +4851,56 @@ export interface PlanUpsertPayloadDTO {
|
|
|
4851
4851
|
*/
|
|
4852
4852
|
'plan': string;
|
|
4853
4853
|
}
|
|
4854
|
+
/**
|
|
4855
|
+
*
|
|
4856
|
+
* @export
|
|
4857
|
+
* @interface PrepaidServiceAvailabilityPayloadDTO
|
|
4858
|
+
*/
|
|
4859
|
+
export interface PrepaidServiceAvailabilityPayloadDTO {
|
|
4860
|
+
/**
|
|
4861
|
+
* Start date for the events
|
|
4862
|
+
* @type {string}
|
|
4863
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4864
|
+
*/
|
|
4865
|
+
'startDate': string;
|
|
4866
|
+
/**
|
|
4867
|
+
* End date for the events
|
|
4868
|
+
* @type {string}
|
|
4869
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4870
|
+
*/
|
|
4871
|
+
'endDate': string;
|
|
4872
|
+
/**
|
|
4873
|
+
* Staff id for this event
|
|
4874
|
+
* @type {string}
|
|
4875
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4876
|
+
*/
|
|
4877
|
+
'staff'?: string;
|
|
4878
|
+
/**
|
|
4879
|
+
* No of people for this booking
|
|
4880
|
+
* @type {number}
|
|
4881
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4882
|
+
*/
|
|
4883
|
+
'noOfPeople': number;
|
|
4884
|
+
/**
|
|
4885
|
+
* Whats On Id
|
|
4886
|
+
* @type {string}
|
|
4887
|
+
* @memberof PrepaidServiceAvailabilityPayloadDTO
|
|
4888
|
+
*/
|
|
4889
|
+
'id': string;
|
|
4890
|
+
}
|
|
4891
|
+
/**
|
|
4892
|
+
*
|
|
4893
|
+
* @export
|
|
4894
|
+
* @interface PrepaidServiceAvailabilityResponseDTO
|
|
4895
|
+
*/
|
|
4896
|
+
export interface PrepaidServiceAvailabilityResponseDTO {
|
|
4897
|
+
/**
|
|
4898
|
+
* Flag to indicate whether user can do booking or not
|
|
4899
|
+
* @type {boolean}
|
|
4900
|
+
* @memberof PrepaidServiceAvailabilityResponseDTO
|
|
4901
|
+
*/
|
|
4902
|
+
'isBookingAllowed': boolean;
|
|
4903
|
+
}
|
|
4854
4904
|
/**
|
|
4855
4905
|
*
|
|
4856
4906
|
* @export
|
|
@@ -16161,6 +16211,45 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
16161
16211
|
options: localVarRequestOptions,
|
|
16162
16212
|
};
|
|
16163
16213
|
},
|
|
16214
|
+
/**
|
|
16215
|
+
*
|
|
16216
|
+
* @param {PrepaidServiceAvailabilityPayloadDTO} prepaidServiceAvailabilityPayloadDTO
|
|
16217
|
+
* @param {*} [options] Override http request option.
|
|
16218
|
+
* @throws {RequiredError}
|
|
16219
|
+
*/
|
|
16220
|
+
prepaidServiceControllerPrepaidServiceAvailability: async (prepaidServiceAvailabilityPayloadDTO: PrepaidServiceAvailabilityPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16221
|
+
// verify required parameter 'prepaidServiceAvailabilityPayloadDTO' is not null or undefined
|
|
16222
|
+
assertParamExists('prepaidServiceControllerPrepaidServiceAvailability', 'prepaidServiceAvailabilityPayloadDTO', prepaidServiceAvailabilityPayloadDTO)
|
|
16223
|
+
const localVarPath = `/v1/prepaid-service/availability`;
|
|
16224
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16225
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16226
|
+
let baseOptions;
|
|
16227
|
+
if (configuration) {
|
|
16228
|
+
baseOptions = configuration.baseOptions;
|
|
16229
|
+
}
|
|
16230
|
+
|
|
16231
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16232
|
+
const localVarHeaderParameter = {} as any;
|
|
16233
|
+
const localVarQueryParameter = {} as any;
|
|
16234
|
+
|
|
16235
|
+
// authentication bearer required
|
|
16236
|
+
// http bearer authentication required
|
|
16237
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16238
|
+
|
|
16239
|
+
|
|
16240
|
+
|
|
16241
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16242
|
+
|
|
16243
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16245
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16246
|
+
localVarRequestOptions.data = serializeDataIfNeeded(prepaidServiceAvailabilityPayloadDTO, localVarRequestOptions, configuration)
|
|
16247
|
+
|
|
16248
|
+
return {
|
|
16249
|
+
url: toPathString(localVarUrlObj),
|
|
16250
|
+
options: localVarRequestOptions,
|
|
16251
|
+
};
|
|
16252
|
+
},
|
|
16164
16253
|
/**
|
|
16165
16254
|
*
|
|
16166
16255
|
* @param {string} id
|
|
@@ -16298,6 +16387,18 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
|
|
|
16298
16387
|
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerFindService']?.[localVarOperationServerIndex]?.url;
|
|
16299
16388
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16300
16389
|
},
|
|
16390
|
+
/**
|
|
16391
|
+
*
|
|
16392
|
+
* @param {PrepaidServiceAvailabilityPayloadDTO} prepaidServiceAvailabilityPayloadDTO
|
|
16393
|
+
* @param {*} [options] Override http request option.
|
|
16394
|
+
* @throws {RequiredError}
|
|
16395
|
+
*/
|
|
16396
|
+
async prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO: PrepaidServiceAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrepaidServiceAvailabilityResponseDTO>> {
|
|
16397
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO, options);
|
|
16398
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16399
|
+
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerPrepaidServiceAvailability']?.[localVarOperationServerIndex]?.url;
|
|
16400
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16401
|
+
},
|
|
16301
16402
|
/**
|
|
16302
16403
|
*
|
|
16303
16404
|
* @param {string} id
|
|
@@ -16368,6 +16469,15 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
|
|
|
16368
16469
|
prepaidServiceControllerFindService(prepaidServiceFindDTO: PrepaidServiceFindDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceResponseDTO> {
|
|
16369
16470
|
return localVarFp.prepaidServiceControllerFindService(prepaidServiceFindDTO, options).then((request) => request(axios, basePath));
|
|
16370
16471
|
},
|
|
16472
|
+
/**
|
|
16473
|
+
*
|
|
16474
|
+
* @param {PrepaidServiceAvailabilityPayloadDTO} prepaidServiceAvailabilityPayloadDTO
|
|
16475
|
+
* @param {*} [options] Override http request option.
|
|
16476
|
+
* @throws {RequiredError}
|
|
16477
|
+
*/
|
|
16478
|
+
prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO: PrepaidServiceAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceAvailabilityResponseDTO> {
|
|
16479
|
+
return localVarFp.prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO, options).then((request) => request(axios, basePath));
|
|
16480
|
+
},
|
|
16371
16481
|
/**
|
|
16372
16482
|
*
|
|
16373
16483
|
* @param {string} id
|
|
@@ -16440,6 +16550,17 @@ export class PrepaidServiceApi extends BaseAPI {
|
|
|
16440
16550
|
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerFindService(prepaidServiceFindDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16441
16551
|
}
|
|
16442
16552
|
|
|
16553
|
+
/**
|
|
16554
|
+
*
|
|
16555
|
+
* @param {PrepaidServiceAvailabilityPayloadDTO} prepaidServiceAvailabilityPayloadDTO
|
|
16556
|
+
* @param {*} [options] Override http request option.
|
|
16557
|
+
* @throws {RequiredError}
|
|
16558
|
+
* @memberof PrepaidServiceApi
|
|
16559
|
+
*/
|
|
16560
|
+
public prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO: PrepaidServiceAvailabilityPayloadDTO, options?: RawAxiosRequestConfig) {
|
|
16561
|
+
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerPrepaidServiceAvailability(prepaidServiceAvailabilityPayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16562
|
+
}
|
|
16563
|
+
|
|
16443
16564
|
/**
|
|
16444
16565
|
*
|
|
16445
16566
|
* @param {string} id
|