@gooday_corp/gooday-api-client 1.2.105 → 1.2.106
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
|
@@ -2477,6 +2477,18 @@ export interface CreateBookingCollaboratorPayload {
|
|
|
2477
2477
|
* @memberof CreateBookingCollaboratorPayload
|
|
2478
2478
|
*/
|
|
2479
2479
|
'name'?: string;
|
|
2480
|
+
/**
|
|
2481
|
+
*
|
|
2482
|
+
* @type {string}
|
|
2483
|
+
* @memberof CreateBookingCollaboratorPayload
|
|
2484
|
+
*/
|
|
2485
|
+
'firstName'?: string;
|
|
2486
|
+
/**
|
|
2487
|
+
*
|
|
2488
|
+
* @type {string}
|
|
2489
|
+
* @memberof CreateBookingCollaboratorPayload
|
|
2490
|
+
*/
|
|
2491
|
+
'lastName'?: string;
|
|
2480
2492
|
/**
|
|
2481
2493
|
* The mobile phone number of the customer
|
|
2482
2494
|
* @type {string}
|
|
@@ -5007,6 +5019,44 @@ export interface PrepaidServiceDiscount {
|
|
|
5007
5019
|
*/
|
|
5008
5020
|
'percentage': string;
|
|
5009
5021
|
}
|
|
5022
|
+
/**
|
|
5023
|
+
*
|
|
5024
|
+
* @export
|
|
5025
|
+
* @interface PrepaidServiceDiscountCodePayloadDTO
|
|
5026
|
+
*/
|
|
5027
|
+
export interface PrepaidServiceDiscountCodePayloadDTO {
|
|
5028
|
+
/**
|
|
5029
|
+
*
|
|
5030
|
+
* @type {string}
|
|
5031
|
+
* @memberof PrepaidServiceDiscountCodePayloadDTO
|
|
5032
|
+
*/
|
|
5033
|
+
'name': string;
|
|
5034
|
+
/**
|
|
5035
|
+
*
|
|
5036
|
+
* @type {string}
|
|
5037
|
+
* @memberof PrepaidServiceDiscountCodePayloadDTO
|
|
5038
|
+
*/
|
|
5039
|
+
'id': string;
|
|
5040
|
+
}
|
|
5041
|
+
/**
|
|
5042
|
+
*
|
|
5043
|
+
* @export
|
|
5044
|
+
* @interface PrepaidServiceDiscountCodeResponseDTO
|
|
5045
|
+
*/
|
|
5046
|
+
export interface PrepaidServiceDiscountCodeResponseDTO {
|
|
5047
|
+
/**
|
|
5048
|
+
* statusCode
|
|
5049
|
+
* @type {number}
|
|
5050
|
+
* @memberof PrepaidServiceDiscountCodeResponseDTO
|
|
5051
|
+
*/
|
|
5052
|
+
'statusCode': number;
|
|
5053
|
+
/**
|
|
5054
|
+
*
|
|
5055
|
+
* @type {string}
|
|
5056
|
+
* @memberof PrepaidServiceDiscountCodeResponseDTO
|
|
5057
|
+
*/
|
|
5058
|
+
'data': string;
|
|
5059
|
+
}
|
|
5010
5060
|
/**
|
|
5011
5061
|
*
|
|
5012
5062
|
* @export
|
|
@@ -16348,6 +16398,45 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
16348
16398
|
options: localVarRequestOptions,
|
|
16349
16399
|
};
|
|
16350
16400
|
},
|
|
16401
|
+
/**
|
|
16402
|
+
*
|
|
16403
|
+
* @param {PrepaidServiceDiscountCodePayloadDTO} prepaidServiceDiscountCodePayloadDTO
|
|
16404
|
+
* @param {*} [options] Override http request option.
|
|
16405
|
+
* @throws {RequiredError}
|
|
16406
|
+
*/
|
|
16407
|
+
prepaidServiceControllerDiscountCodeApply: async (prepaidServiceDiscountCodePayloadDTO: PrepaidServiceDiscountCodePayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
16408
|
+
// verify required parameter 'prepaidServiceDiscountCodePayloadDTO' is not null or undefined
|
|
16409
|
+
assertParamExists('prepaidServiceControllerDiscountCodeApply', 'prepaidServiceDiscountCodePayloadDTO', prepaidServiceDiscountCodePayloadDTO)
|
|
16410
|
+
const localVarPath = `/v1/prepaid-service/discount`;
|
|
16411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16413
|
+
let baseOptions;
|
|
16414
|
+
if (configuration) {
|
|
16415
|
+
baseOptions = configuration.baseOptions;
|
|
16416
|
+
}
|
|
16417
|
+
|
|
16418
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
16419
|
+
const localVarHeaderParameter = {} as any;
|
|
16420
|
+
const localVarQueryParameter = {} as any;
|
|
16421
|
+
|
|
16422
|
+
// authentication bearer required
|
|
16423
|
+
// http bearer authentication required
|
|
16424
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
16425
|
+
|
|
16426
|
+
|
|
16427
|
+
|
|
16428
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16429
|
+
|
|
16430
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16432
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
16433
|
+
localVarRequestOptions.data = serializeDataIfNeeded(prepaidServiceDiscountCodePayloadDTO, localVarRequestOptions, configuration)
|
|
16434
|
+
|
|
16435
|
+
return {
|
|
16436
|
+
url: toPathString(localVarUrlObj),
|
|
16437
|
+
options: localVarRequestOptions,
|
|
16438
|
+
};
|
|
16439
|
+
},
|
|
16351
16440
|
/**
|
|
16352
16441
|
*
|
|
16353
16442
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -16551,6 +16640,18 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
|
|
|
16551
16640
|
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerDeleteService']?.[localVarOperationServerIndex]?.url;
|
|
16552
16641
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16553
16642
|
},
|
|
16643
|
+
/**
|
|
16644
|
+
*
|
|
16645
|
+
* @param {PrepaidServiceDiscountCodePayloadDTO} prepaidServiceDiscountCodePayloadDTO
|
|
16646
|
+
* @param {*} [options] Override http request option.
|
|
16647
|
+
* @throws {RequiredError}
|
|
16648
|
+
*/
|
|
16649
|
+
async prepaidServiceControllerDiscountCodeApply(prepaidServiceDiscountCodePayloadDTO: PrepaidServiceDiscountCodePayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrepaidServiceDiscountCodeResponseDTO>> {
|
|
16650
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.prepaidServiceControllerDiscountCodeApply(prepaidServiceDiscountCodePayloadDTO, options);
|
|
16651
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
16652
|
+
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerDiscountCodeApply']?.[localVarOperationServerIndex]?.url;
|
|
16653
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16654
|
+
},
|
|
16554
16655
|
/**
|
|
16555
16656
|
*
|
|
16556
16657
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -16636,6 +16737,15 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
|
|
|
16636
16737
|
prepaidServiceControllerDeleteService(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceDTO> {
|
|
16637
16738
|
return localVarFp.prepaidServiceControllerDeleteService(id, options).then((request) => request(axios, basePath));
|
|
16638
16739
|
},
|
|
16740
|
+
/**
|
|
16741
|
+
*
|
|
16742
|
+
* @param {PrepaidServiceDiscountCodePayloadDTO} prepaidServiceDiscountCodePayloadDTO
|
|
16743
|
+
* @param {*} [options] Override http request option.
|
|
16744
|
+
* @throws {RequiredError}
|
|
16745
|
+
*/
|
|
16746
|
+
prepaidServiceControllerDiscountCodeApply(prepaidServiceDiscountCodePayloadDTO: PrepaidServiceDiscountCodePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceDiscountCodeResponseDTO> {
|
|
16747
|
+
return localVarFp.prepaidServiceControllerDiscountCodeApply(prepaidServiceDiscountCodePayloadDTO, options).then((request) => request(axios, basePath));
|
|
16748
|
+
},
|
|
16639
16749
|
/**
|
|
16640
16750
|
*
|
|
16641
16751
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -16715,6 +16825,17 @@ export class PrepaidServiceApi extends BaseAPI {
|
|
|
16715
16825
|
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerDeleteService(id, options).then((request) => request(this.axios, this.basePath));
|
|
16716
16826
|
}
|
|
16717
16827
|
|
|
16828
|
+
/**
|
|
16829
|
+
*
|
|
16830
|
+
* @param {PrepaidServiceDiscountCodePayloadDTO} prepaidServiceDiscountCodePayloadDTO
|
|
16831
|
+
* @param {*} [options] Override http request option.
|
|
16832
|
+
* @throws {RequiredError}
|
|
16833
|
+
* @memberof PrepaidServiceApi
|
|
16834
|
+
*/
|
|
16835
|
+
public prepaidServiceControllerDiscountCodeApply(prepaidServiceDiscountCodePayloadDTO: PrepaidServiceDiscountCodePayloadDTO, options?: RawAxiosRequestConfig) {
|
|
16836
|
+
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerDiscountCodeApply(prepaidServiceDiscountCodePayloadDTO, options).then((request) => request(this.axios, this.basePath));
|
|
16837
|
+
}
|
|
16838
|
+
|
|
16718
16839
|
/**
|
|
16719
16840
|
*
|
|
16720
16841
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|