@gooday_corp/gooday-api-client 1.2.73 → 1.2.74-alpha

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.
Files changed (2) hide show
  1. package/api.ts +209 -13
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -827,6 +827,12 @@ export interface BookingEntity {
827
827
  * @memberof BookingEntity
828
828
  */
829
829
  'tags': Array<TagsResponse>;
830
+ /**
831
+ *
832
+ * @type {string}
833
+ * @memberof BookingEntity
834
+ */
835
+ 'whatsOn': string;
830
836
  }
831
837
 
832
838
  export const BookingEntityStatusEnum = {
@@ -993,6 +999,12 @@ export interface BookingResponse {
993
999
  * @memberof BookingResponse
994
1000
  */
995
1001
  'paymentMethod': StripeSetupIntentPaymentResponse;
1002
+ /**
1003
+ *
1004
+ * @type {string}
1005
+ * @memberof BookingResponse
1006
+ */
1007
+ 'whatsOn': string;
996
1008
  }
997
1009
 
998
1010
  export const BookingResponseMethodEnum = {
@@ -2516,6 +2528,12 @@ export interface CreateBookingPayload {
2516
2528
  * @memberof CreateBookingPayload
2517
2529
  */
2518
2530
  'paymentMethod': StripeSetupIntentPaymentResponse;
2531
+ /**
2532
+ *
2533
+ * @type {string}
2534
+ * @memberof CreateBookingPayload
2535
+ */
2536
+ 'whatsOn': string;
2519
2537
  }
2520
2538
  /**
2521
2539
  *
@@ -4869,12 +4887,6 @@ export interface PrepaidServiceEntity {
4869
4887
  * @memberof PrepaidServiceEntity
4870
4888
  */
4871
4889
  'duration': Array<PrepaidServiceTimeDuration>;
4872
- /**
4873
- *
4874
- * @type {number}
4875
- * @memberof PrepaidServiceEntity
4876
- */
4877
- 'capacity': number;
4878
4890
  /**
4879
4891
  *
4880
4892
  * @type {boolean}
@@ -5098,7 +5110,7 @@ export interface PrepaidServicePayloadDTO {
5098
5110
  * @type {ServiceEndRepeat}
5099
5111
  * @memberof PrepaidServicePayloadDTO
5100
5112
  */
5101
- 'repeat': ServiceEndRepeat;
5113
+ 'repeat'?: ServiceEndRepeat;
5102
5114
  /**
5103
5115
  *
5104
5116
  * @type {Array<PrepaidServiceDiscount>}
@@ -5366,25 +5378,25 @@ export interface Repeat {
5366
5378
  * @type {string}
5367
5379
  * @memberof Repeat
5368
5380
  */
5369
- 'finalBookingTime'?: RepeatFinalBookingTimeEnum;
5381
+ 'finalBookingTime': RepeatFinalBookingTimeEnum;
5370
5382
  /**
5371
5383
  * to
5372
5384
  * @type {string}
5373
5385
  * @memberof Repeat
5374
5386
  */
5375
- 'time'?: string;
5387
+ 'time': string;
5376
5388
  /**
5377
5389
  *
5378
5390
  * @type {string}
5379
5391
  * @memberof Repeat
5380
5392
  */
5381
- 'repeat'?: RepeatRepeatEnum;
5393
+ 'repeat': RepeatRepeatEnum;
5382
5394
  /**
5383
5395
  *
5384
5396
  * @type {string}
5385
5397
  * @memberof Repeat
5386
5398
  */
5387
- 'repeatEndDate'?: string;
5399
+ 'repeatEndDate': string;
5388
5400
  }
5389
5401
 
5390
5402
  export const RepeatFinalBookingTimeEnum = {
@@ -5817,6 +5829,18 @@ export interface StripeSetupIntentPaymentPayloadDTO {
5817
5829
  * @memberof StripeSetupIntentPaymentPayloadDTO
5818
5830
  */
5819
5831
  'service': Array<string>;
5832
+ /**
5833
+ *
5834
+ * @type {string}
5835
+ * @memberof StripeSetupIntentPaymentPayloadDTO
5836
+ */
5837
+ 'eventId': string;
5838
+ /**
5839
+ *
5840
+ * @type {string}
5841
+ * @memberof StripeSetupIntentPaymentPayloadDTO
5842
+ */
5843
+ 'discountId': string;
5820
5844
  }
5821
5845
  /**
5822
5846
  *
@@ -7057,6 +7081,38 @@ export interface WhatsDiscountCodeResponseDTO {
7057
7081
  */
7058
7082
  'statusCode': number;
7059
7083
  }
7084
+ /**
7085
+ *
7086
+ * @export
7087
+ * @interface WhatsOnAvailabilityPayloadDTO
7088
+ */
7089
+ export interface WhatsOnAvailabilityPayloadDTO {
7090
+ /**
7091
+ *
7092
+ * @type {number}
7093
+ * @memberof WhatsOnAvailabilityPayloadDTO
7094
+ */
7095
+ 'customers': number;
7096
+ /**
7097
+ *
7098
+ * @type {string}
7099
+ * @memberof WhatsOnAvailabilityPayloadDTO
7100
+ */
7101
+ 'id': string;
7102
+ }
7103
+ /**
7104
+ *
7105
+ * @export
7106
+ * @interface WhatsOnAvailabilityResponseDTO
7107
+ */
7108
+ export interface WhatsOnAvailabilityResponseDTO {
7109
+ /**
7110
+ * statusCode
7111
+ * @type {number}
7112
+ * @memberof WhatsOnAvailabilityResponseDTO
7113
+ */
7114
+ 'statusCode': number;
7115
+ }
7060
7116
  /**
7061
7117
  *
7062
7118
  * @export
@@ -15774,6 +15830,43 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
15774
15830
  options: localVarRequestOptions,
15775
15831
  };
15776
15832
  },
15833
+ /**
15834
+ *
15835
+ * @param {string} id
15836
+ * @param {*} [options] Override http request option.
15837
+ * @throws {RequiredError}
15838
+ */
15839
+ prepaidServiceControllerDeleteService: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
15840
+ // verify required parameter 'id' is not null or undefined
15841
+ assertParamExists('prepaidServiceControllerDeleteService', 'id', id)
15842
+ const localVarPath = `/v1/prepaid-service/delete/{id}`
15843
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
15844
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
15845
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
15846
+ let baseOptions;
15847
+ if (configuration) {
15848
+ baseOptions = configuration.baseOptions;
15849
+ }
15850
+
15851
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
15852
+ const localVarHeaderParameter = {} as any;
15853
+ const localVarQueryParameter = {} as any;
15854
+
15855
+ // authentication bearer required
15856
+ // http bearer authentication required
15857
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
15858
+
15859
+
15860
+
15861
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
15862
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15863
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
15864
+
15865
+ return {
15866
+ url: toPathString(localVarUrlObj),
15867
+ options: localVarRequestOptions,
15868
+ };
15869
+ },
15777
15870
  /**
15778
15871
  *
15779
15872
  * @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
@@ -15926,6 +16019,18 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
15926
16019
  const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerCreateService']?.[localVarOperationServerIndex]?.url;
15927
16020
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15928
16021
  },
16022
+ /**
16023
+ *
16024
+ * @param {string} id
16025
+ * @param {*} [options] Override http request option.
16026
+ * @throws {RequiredError}
16027
+ */
16028
+ async prepaidServiceControllerDeleteService(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PrepaidServiceDTO>> {
16029
+ const localVarAxiosArgs = await localVarAxiosParamCreator.prepaidServiceControllerDeleteService(id, options);
16030
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16031
+ const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerDeleteService']?.[localVarOperationServerIndex]?.url;
16032
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16033
+ },
15929
16034
  /**
15930
16035
  *
15931
16036
  * @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
@@ -15990,6 +16095,15 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
15990
16095
  prepaidServiceControllerCreateService(prepaidServicePayloadDTO: PrepaidServicePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceDTO> {
15991
16096
  return localVarFp.prepaidServiceControllerCreateService(prepaidServicePayloadDTO, options).then((request) => request(axios, basePath));
15992
16097
  },
16098
+ /**
16099
+ *
16100
+ * @param {string} id
16101
+ * @param {*} [options] Override http request option.
16102
+ * @throws {RequiredError}
16103
+ */
16104
+ prepaidServiceControllerDeleteService(id: string, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceDTO> {
16105
+ return localVarFp.prepaidServiceControllerDeleteService(id, options).then((request) => request(axios, basePath));
16106
+ },
15993
16107
  /**
15994
16108
  *
15995
16109
  * @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
@@ -16049,6 +16163,17 @@ export class PrepaidServiceApi extends BaseAPI {
16049
16163
  return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerCreateService(prepaidServicePayloadDTO, options).then((request) => request(this.axios, this.basePath));
16050
16164
  }
16051
16165
 
16166
+ /**
16167
+ *
16168
+ * @param {string} id
16169
+ * @param {*} [options] Override http request option.
16170
+ * @throws {RequiredError}
16171
+ * @memberof PrepaidServiceApi
16172
+ */
16173
+ public prepaidServiceControllerDeleteService(id: string, options?: RawAxiosRequestConfig) {
16174
+ return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerDeleteService(id, options).then((request) => request(this.axios, this.basePath));
16175
+ }
16176
+
16052
16177
  /**
16053
16178
  *
16054
16179
  * @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
@@ -18934,7 +19059,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18934
19059
  whatsOnControllerDeleteWhatsOn: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18935
19060
  // verify required parameter 'id' is not null or undefined
18936
19061
  assertParamExists('whatsOnControllerDeleteWhatsOn', 'id', id)
18937
- const localVarPath = `/v1/whats-on/{id}`
19062
+ const localVarPath = `/v1/whats-on/delete/{id}`
18938
19063
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18939
19064
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18940
19065
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18943,7 +19068,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18943
19068
  baseOptions = configuration.baseOptions;
18944
19069
  }
18945
19070
 
18946
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
19071
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18947
19072
  const localVarHeaderParameter = {} as any;
18948
19073
  const localVarQueryParameter = {} as any;
18949
19074
 
@@ -19278,6 +19403,45 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
19278
19403
  options: localVarRequestOptions,
19279
19404
  };
19280
19405
  },
19406
+ /**
19407
+ *
19408
+ * @param {WhatsOnAvailabilityPayloadDTO} whatsOnAvailabilityPayloadDTO
19409
+ * @param {*} [options] Override http request option.
19410
+ * @throws {RequiredError}
19411
+ */
19412
+ whatsOnControllerWhatsOnAvailability: async (whatsOnAvailabilityPayloadDTO: WhatsOnAvailabilityPayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
19413
+ // verify required parameter 'whatsOnAvailabilityPayloadDTO' is not null or undefined
19414
+ assertParamExists('whatsOnControllerWhatsOnAvailability', 'whatsOnAvailabilityPayloadDTO', whatsOnAvailabilityPayloadDTO)
19415
+ const localVarPath = `/v1/whats-on/availability`;
19416
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
19417
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19418
+ let baseOptions;
19419
+ if (configuration) {
19420
+ baseOptions = configuration.baseOptions;
19421
+ }
19422
+
19423
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
19424
+ const localVarHeaderParameter = {} as any;
19425
+ const localVarQueryParameter = {} as any;
19426
+
19427
+ // authentication bearer required
19428
+ // http bearer authentication required
19429
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
19430
+
19431
+
19432
+
19433
+ localVarHeaderParameter['Content-Type'] = 'application/json';
19434
+
19435
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
19436
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19437
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
19438
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsOnAvailabilityPayloadDTO, localVarRequestOptions, configuration)
19439
+
19440
+ return {
19441
+ url: toPathString(localVarUrlObj),
19442
+ options: localVarRequestOptions,
19443
+ };
19444
+ },
19281
19445
  /**
19282
19446
  *
19283
19447
  * @param {string} id
@@ -19447,6 +19611,18 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
19447
19611
  const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerUpdateById']?.[localVarOperationServerIndex]?.url;
19448
19612
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19449
19613
  },
19614
+ /**
19615
+ *
19616
+ * @param {WhatsOnAvailabilityPayloadDTO} whatsOnAvailabilityPayloadDTO
19617
+ * @param {*} [options] Override http request option.
19618
+ * @throws {RequiredError}
19619
+ */
19620
+ async whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO: WhatsOnAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsOnAvailabilityResponseDTO>> {
19621
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO, options);
19622
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19623
+ const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerWhatsOnAvailability']?.[localVarOperationServerIndex]?.url;
19624
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19625
+ },
19450
19626
  /**
19451
19627
  *
19452
19628
  * @param {string} id
@@ -19561,6 +19737,15 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
19561
19737
  whatsOnControllerUpdateById(id: string, whatsOnPayloadDTO: WhatsOnPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnDTO> {
19562
19738
  return localVarFp.whatsOnControllerUpdateById(id, whatsOnPayloadDTO, options).then((request) => request(axios, basePath));
19563
19739
  },
19740
+ /**
19741
+ *
19742
+ * @param {WhatsOnAvailabilityPayloadDTO} whatsOnAvailabilityPayloadDTO
19743
+ * @param {*} [options] Override http request option.
19744
+ * @throws {RequiredError}
19745
+ */
19746
+ whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO: WhatsOnAvailabilityPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnAvailabilityResponseDTO> {
19747
+ return localVarFp.whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO, options).then((request) => request(axios, basePath));
19748
+ },
19564
19749
  /**
19565
19750
  *
19566
19751
  * @param {string} id
@@ -19692,6 +19877,17 @@ export class WhatsOnApi extends BaseAPI {
19692
19877
  return WhatsOnApiFp(this.configuration).whatsOnControllerUpdateById(id, whatsOnPayloadDTO, options).then((request) => request(this.axios, this.basePath));
19693
19878
  }
19694
19879
 
19880
+ /**
19881
+ *
19882
+ * @param {WhatsOnAvailabilityPayloadDTO} whatsOnAvailabilityPayloadDTO
19883
+ * @param {*} [options] Override http request option.
19884
+ * @throws {RequiredError}
19885
+ * @memberof WhatsOnApi
19886
+ */
19887
+ public whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO: WhatsOnAvailabilityPayloadDTO, options?: RawAxiosRequestConfig) {
19888
+ return WhatsOnApiFp(this.configuration).whatsOnControllerWhatsOnAvailability(whatsOnAvailabilityPayloadDTO, options).then((request) => request(this.axios, this.basePath));
19889
+ }
19890
+
19695
19891
  /**
19696
19892
  *
19697
19893
  * @param {string} id
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.73",
3
+ "version": "1.2.74-alpha",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},