@gooday_corp/gooday-api-client 1.2.101 → 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 +123 -27
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1033,31 +1033,6 @@ export interface BookingRulesPayloadDTO {
|
|
|
1033
1033
|
*/
|
|
1034
1034
|
'finalBookingTimeAbsolute': string;
|
|
1035
1035
|
}
|
|
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
1036
|
/**
|
|
1062
1037
|
*
|
|
1063
1038
|
* @export
|
|
@@ -4876,6 +4851,56 @@ export interface PlanUpsertPayloadDTO {
|
|
|
4876
4851
|
*/
|
|
4877
4852
|
'plan': string;
|
|
4878
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
|
+
}
|
|
4879
4904
|
/**
|
|
4880
4905
|
*
|
|
4881
4906
|
* @export
|
|
@@ -5867,10 +5892,10 @@ export interface StripePlanUpsertResponseDTO {
|
|
|
5867
5892
|
export interface StripeSetupIntentPaymentPayloadDTO {
|
|
5868
5893
|
/**
|
|
5869
5894
|
*
|
|
5870
|
-
* @type {
|
|
5895
|
+
* @type {Array<string>}
|
|
5871
5896
|
* @memberof StripeSetupIntentPaymentPayloadDTO
|
|
5872
5897
|
*/
|
|
5873
|
-
'service'?:
|
|
5898
|
+
'service'?: Array<string>;
|
|
5874
5899
|
/**
|
|
5875
5900
|
*
|
|
5876
5901
|
* @type {string}
|
|
@@ -16186,6 +16211,45 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
16186
16211
|
options: localVarRequestOptions,
|
|
16187
16212
|
};
|
|
16188
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
|
+
},
|
|
16189
16253
|
/**
|
|
16190
16254
|
*
|
|
16191
16255
|
* @param {string} id
|
|
@@ -16323,6 +16387,18 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
|
|
|
16323
16387
|
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerFindService']?.[localVarOperationServerIndex]?.url;
|
|
16324
16388
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16325
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
|
+
},
|
|
16326
16402
|
/**
|
|
16327
16403
|
*
|
|
16328
16404
|
* @param {string} id
|
|
@@ -16393,6 +16469,15 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
|
|
|
16393
16469
|
prepaidServiceControllerFindService(prepaidServiceFindDTO: PrepaidServiceFindDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceResponseDTO> {
|
|
16394
16470
|
return localVarFp.prepaidServiceControllerFindService(prepaidServiceFindDTO, options).then((request) => request(axios, basePath));
|
|
16395
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
|
+
},
|
|
16396
16481
|
/**
|
|
16397
16482
|
*
|
|
16398
16483
|
* @param {string} id
|
|
@@ -16465,6 +16550,17 @@ export class PrepaidServiceApi extends BaseAPI {
|
|
|
16465
16550
|
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerFindService(prepaidServiceFindDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16466
16551
|
}
|
|
16467
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
|
+
|
|
16468
16564
|
/**
|
|
16469
16565
|
*
|
|
16470
16566
|
* @param {string} id
|