@gooday_corp/gooday-api-client 1.2.104 → 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 +163 -12
- 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}
|
|
@@ -2513,13 +2525,19 @@ export interface CreateBookingPayload {
|
|
|
2513
2525
|
* @type {string}
|
|
2514
2526
|
* @memberof CreateBookingPayload
|
|
2515
2527
|
*/
|
|
2516
|
-
'
|
|
2528
|
+
'date': string;
|
|
2517
2529
|
/**
|
|
2518
|
-
*
|
|
2530
|
+
*
|
|
2519
2531
|
* @type {string}
|
|
2520
2532
|
* @memberof CreateBookingPayload
|
|
2521
2533
|
*/
|
|
2522
|
-
'
|
|
2534
|
+
'from'?: string;
|
|
2535
|
+
/**
|
|
2536
|
+
*
|
|
2537
|
+
* @type {string}
|
|
2538
|
+
* @memberof CreateBookingPayload
|
|
2539
|
+
*/
|
|
2540
|
+
'to'?: string;
|
|
2523
2541
|
/**
|
|
2524
2542
|
* The venue of the booking
|
|
2525
2543
|
* @type {string}
|
|
@@ -2543,25 +2561,25 @@ export interface CreateBookingPayload {
|
|
|
2543
2561
|
* @type {string}
|
|
2544
2562
|
* @memberof CreateBookingPayload
|
|
2545
2563
|
*/
|
|
2546
|
-
'note'
|
|
2564
|
+
'note'?: string;
|
|
2547
2565
|
/**
|
|
2548
2566
|
* Occasion id
|
|
2549
2567
|
* @type {string}
|
|
2550
2568
|
* @memberof CreateBookingPayload
|
|
2551
2569
|
*/
|
|
2552
|
-
'occasion'
|
|
2570
|
+
'occasion'?: string;
|
|
2553
2571
|
/**
|
|
2554
2572
|
* Calendar attached with booking
|
|
2555
2573
|
* @type {Array<string>}
|
|
2556
2574
|
* @memberof CreateBookingPayload
|
|
2557
2575
|
*/
|
|
2558
|
-
'calendar'
|
|
2576
|
+
'calendar'?: Array<string>;
|
|
2559
2577
|
/**
|
|
2560
2578
|
* Payment method Id
|
|
2561
2579
|
* @type {string}
|
|
2562
2580
|
* @memberof CreateBookingPayload
|
|
2563
2581
|
*/
|
|
2564
|
-
'paymentMethodId'
|
|
2582
|
+
'paymentMethodId'?: string;
|
|
2565
2583
|
/**
|
|
2566
2584
|
* The list of collaborators associated with the booking
|
|
2567
2585
|
* @type {Array<CreateBookingCollaboratorPayload>}
|
|
@@ -2585,19 +2603,19 @@ export interface CreateBookingPayload {
|
|
|
2585
2603
|
* @type {Array<string>}
|
|
2586
2604
|
* @memberof CreateBookingPayload
|
|
2587
2605
|
*/
|
|
2588
|
-
'staffs'
|
|
2606
|
+
'staffs'?: Array<string>;
|
|
2589
2607
|
/**
|
|
2590
2608
|
*
|
|
2591
2609
|
* @type {string}
|
|
2592
2610
|
* @memberof CreateBookingPayload
|
|
2593
2611
|
*/
|
|
2594
|
-
'selectedStaff'
|
|
2612
|
+
'selectedStaff'?: string;
|
|
2595
2613
|
/**
|
|
2596
2614
|
*
|
|
2597
2615
|
* @type {Array<string>}
|
|
2598
2616
|
* @memberof CreateBookingPayload
|
|
2599
2617
|
*/
|
|
2600
|
-
'tags'
|
|
2618
|
+
'tags'?: Array<string>;
|
|
2601
2619
|
/**
|
|
2602
2620
|
*
|
|
2603
2621
|
* @type {number}
|
|
@@ -2609,13 +2627,13 @@ export interface CreateBookingPayload {
|
|
|
2609
2627
|
* @type {string}
|
|
2610
2628
|
* @memberof CreateBookingPayload
|
|
2611
2629
|
*/
|
|
2612
|
-
'serviceId'
|
|
2630
|
+
'serviceId'?: string;
|
|
2613
2631
|
/**
|
|
2614
2632
|
*
|
|
2615
2633
|
* @type {StripeSetupIntentPaymentResponse}
|
|
2616
2634
|
* @memberof CreateBookingPayload
|
|
2617
2635
|
*/
|
|
2618
|
-
'paymentMethod'
|
|
2636
|
+
'paymentMethod'?: StripeSetupIntentPaymentResponse;
|
|
2619
2637
|
}
|
|
2620
2638
|
/**
|
|
2621
2639
|
*
|
|
@@ -3485,6 +3503,12 @@ export interface FindBookingPayload {
|
|
|
3485
3503
|
* @memberof FindBookingPayload
|
|
3486
3504
|
*/
|
|
3487
3505
|
'search'?: string;
|
|
3506
|
+
/**
|
|
3507
|
+
*
|
|
3508
|
+
* @type {string}
|
|
3509
|
+
* @memberof FindBookingPayload
|
|
3510
|
+
*/
|
|
3511
|
+
'venue'?: string;
|
|
3488
3512
|
}
|
|
3489
3513
|
|
|
3490
3514
|
export const FindBookingPayloadViewEnum = {
|
|
@@ -4925,6 +4949,12 @@ export interface PrepaidServiceAvailabilityResponseDTO {
|
|
|
4925
4949
|
* @memberof PrepaidServiceAvailabilityResponseDTO
|
|
4926
4950
|
*/
|
|
4927
4951
|
'isBookingAllowed': boolean;
|
|
4952
|
+
/**
|
|
4953
|
+
*
|
|
4954
|
+
* @type {string}
|
|
4955
|
+
* @memberof PrepaidServiceAvailabilityResponseDTO
|
|
4956
|
+
*/
|
|
4957
|
+
'message': string;
|
|
4928
4958
|
}
|
|
4929
4959
|
/**
|
|
4930
4960
|
*
|
|
@@ -4989,6 +5019,44 @@ export interface PrepaidServiceDiscount {
|
|
|
4989
5019
|
*/
|
|
4990
5020
|
'percentage': string;
|
|
4991
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
|
+
}
|
|
4992
5060
|
/**
|
|
4993
5061
|
*
|
|
4994
5062
|
* @export
|
|
@@ -5503,6 +5571,12 @@ export interface RegularBookingAvailabilityResponseDTO {
|
|
|
5503
5571
|
* @memberof RegularBookingAvailabilityResponseDTO
|
|
5504
5572
|
*/
|
|
5505
5573
|
'isBookingAllowed': boolean;
|
|
5574
|
+
/**
|
|
5575
|
+
*
|
|
5576
|
+
* @type {string}
|
|
5577
|
+
* @memberof RegularBookingAvailabilityResponseDTO
|
|
5578
|
+
*/
|
|
5579
|
+
'message': string;
|
|
5506
5580
|
}
|
|
5507
5581
|
/**
|
|
5508
5582
|
*
|
|
@@ -7259,6 +7333,12 @@ export interface WhatsOnAvailabilityResponseDTO {
|
|
|
7259
7333
|
* @memberof WhatsOnAvailabilityResponseDTO
|
|
7260
7334
|
*/
|
|
7261
7335
|
'isBookingAllowed': boolean;
|
|
7336
|
+
/**
|
|
7337
|
+
*
|
|
7338
|
+
* @type {string}
|
|
7339
|
+
* @memberof WhatsOnAvailabilityResponseDTO
|
|
7340
|
+
*/
|
|
7341
|
+
'message': string;
|
|
7262
7342
|
}
|
|
7263
7343
|
/**
|
|
7264
7344
|
*
|
|
@@ -16318,6 +16398,45 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
|
|
|
16318
16398
|
options: localVarRequestOptions,
|
|
16319
16399
|
};
|
|
16320
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
|
+
},
|
|
16321
16440
|
/**
|
|
16322
16441
|
*
|
|
16323
16442
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -16521,6 +16640,18 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
|
|
|
16521
16640
|
const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerDeleteService']?.[localVarOperationServerIndex]?.url;
|
|
16522
16641
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16523
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
|
+
},
|
|
16524
16655
|
/**
|
|
16525
16656
|
*
|
|
16526
16657
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -16606,6 +16737,15 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
|
|
|
16606
16737
|
prepaidServiceControllerDeleteService(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceDTO> {
|
|
16607
16738
|
return localVarFp.prepaidServiceControllerDeleteService(id, options).then((request) => request(axios, basePath));
|
|
16608
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
|
+
},
|
|
16609
16749
|
/**
|
|
16610
16750
|
*
|
|
16611
16751
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|
|
@@ -16685,6 +16825,17 @@ export class PrepaidServiceApi extends BaseAPI {
|
|
|
16685
16825
|
return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerDeleteService(id, options).then((request) => request(this.axios, this.basePath));
|
|
16686
16826
|
}
|
|
16687
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
|
+
|
|
16688
16839
|
/**
|
|
16689
16840
|
*
|
|
16690
16841
|
* @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
|