@gooday_corp/gooday-api-client 1.2.72 → 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 +233 -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}
@@ -4959,6 +4971,18 @@ export interface PrepaidServiceEntity {
4959
4971
  * @memberof PrepaidServiceEntity
4960
4972
  */
4961
4973
  'discount': Array<string>;
4974
+ /**
4975
+ *
4976
+ * @type {number}
4977
+ * @memberof PrepaidServiceEntity
4978
+ */
4979
+ 'cancellationFees': number;
4980
+ /**
4981
+ *
4982
+ * @type {string}
4983
+ * @memberof PrepaidServiceEntity
4984
+ */
4985
+ 'cancellationHours': string;
4962
4986
  }
4963
4987
  /**
4964
4988
  *
@@ -5086,7 +5110,7 @@ export interface PrepaidServicePayloadDTO {
5086
5110
  * @type {ServiceEndRepeat}
5087
5111
  * @memberof PrepaidServicePayloadDTO
5088
5112
  */
5089
- 'repeat': ServiceEndRepeat;
5113
+ 'repeat'?: ServiceEndRepeat;
5090
5114
  /**
5091
5115
  *
5092
5116
  * @type {Array<PrepaidServiceDiscount>}
@@ -5099,6 +5123,18 @@ export interface PrepaidServicePayloadDTO {
5099
5123
  * @memberof PrepaidServicePayloadDTO
5100
5124
  */
5101
5125
  'duration': Array<PrepaidServiceTimeDuration>;
5126
+ /**
5127
+ *
5128
+ * @type {number}
5129
+ * @memberof PrepaidServicePayloadDTO
5130
+ */
5131
+ 'cancellationFees': number;
5132
+ /**
5133
+ *
5134
+ * @type {string}
5135
+ * @memberof PrepaidServicePayloadDTO
5136
+ */
5137
+ 'cancellationHours': string;
5102
5138
  }
5103
5139
  /**
5104
5140
  *
@@ -5342,25 +5378,25 @@ export interface Repeat {
5342
5378
  * @type {string}
5343
5379
  * @memberof Repeat
5344
5380
  */
5345
- 'finalBookingTime'?: RepeatFinalBookingTimeEnum;
5381
+ 'finalBookingTime': RepeatFinalBookingTimeEnum;
5346
5382
  /**
5347
5383
  * to
5348
5384
  * @type {string}
5349
5385
  * @memberof Repeat
5350
5386
  */
5351
- 'time'?: string;
5387
+ 'time': string;
5352
5388
  /**
5353
5389
  *
5354
5390
  * @type {string}
5355
5391
  * @memberof Repeat
5356
5392
  */
5357
- 'repeat'?: RepeatRepeatEnum;
5393
+ 'repeat': RepeatRepeatEnum;
5358
5394
  /**
5359
5395
  *
5360
5396
  * @type {string}
5361
5397
  * @memberof Repeat
5362
5398
  */
5363
- 'repeatEndDate'?: string;
5399
+ 'repeatEndDate': string;
5364
5400
  }
5365
5401
 
5366
5402
  export const RepeatFinalBookingTimeEnum = {
@@ -5793,6 +5829,18 @@ export interface StripeSetupIntentPaymentPayloadDTO {
5793
5829
  * @memberof StripeSetupIntentPaymentPayloadDTO
5794
5830
  */
5795
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;
5796
5844
  }
5797
5845
  /**
5798
5846
  *
@@ -7033,6 +7081,38 @@ export interface WhatsDiscountCodeResponseDTO {
7033
7081
  */
7034
7082
  'statusCode': number;
7035
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
+ }
7036
7116
  /**
7037
7117
  *
7038
7118
  * @export
@@ -15750,6 +15830,43 @@ export const PrepaidServiceApiAxiosParamCreator = function (configuration?: Conf
15750
15830
  options: localVarRequestOptions,
15751
15831
  };
15752
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
+ },
15753
15870
  /**
15754
15871
  *
15755
15872
  * @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
@@ -15902,6 +16019,18 @@ export const PrepaidServiceApiFp = function(configuration?: Configuration) {
15902
16019
  const localVarOperationServerBasePath = operationServerMap['PrepaidServiceApi.prepaidServiceControllerCreateService']?.[localVarOperationServerIndex]?.url;
15903
16020
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15904
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
+ },
15905
16034
  /**
15906
16035
  *
15907
16036
  * @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
@@ -15966,6 +16095,15 @@ export const PrepaidServiceApiFactory = function (configuration?: Configuration,
15966
16095
  prepaidServiceControllerCreateService(prepaidServicePayloadDTO: PrepaidServicePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<PrepaidServiceDTO> {
15967
16096
  return localVarFp.prepaidServiceControllerCreateService(prepaidServicePayloadDTO, options).then((request) => request(axios, basePath));
15968
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
+ },
15969
16107
  /**
15970
16108
  *
15971
16109
  * @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
@@ -16025,6 +16163,17 @@ export class PrepaidServiceApi extends BaseAPI {
16025
16163
  return PrepaidServiceApiFp(this.configuration).prepaidServiceControllerCreateService(prepaidServicePayloadDTO, options).then((request) => request(this.axios, this.basePath));
16026
16164
  }
16027
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
+
16028
16177
  /**
16029
16178
  *
16030
16179
  * @param {PrepaidServiceFindDTO} prepaidServiceFindDTO
@@ -18910,7 +19059,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18910
19059
  whatsOnControllerDeleteWhatsOn: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18911
19060
  // verify required parameter 'id' is not null or undefined
18912
19061
  assertParamExists('whatsOnControllerDeleteWhatsOn', 'id', id)
18913
- const localVarPath = `/v1/whats-on/{id}`
19062
+ const localVarPath = `/v1/whats-on/delete/{id}`
18914
19063
  .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18915
19064
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18916
19065
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -18919,7 +19068,7 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18919
19068
  baseOptions = configuration.baseOptions;
18920
19069
  }
18921
19070
 
18922
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
19071
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
18923
19072
  const localVarHeaderParameter = {} as any;
18924
19073
  const localVarQueryParameter = {} as any;
18925
19074
 
@@ -19254,6 +19403,45 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
19254
19403
  options: localVarRequestOptions,
19255
19404
  };
19256
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
+ },
19257
19445
  /**
19258
19446
  *
19259
19447
  * @param {string} id
@@ -19423,6 +19611,18 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
19423
19611
  const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerUpdateById']?.[localVarOperationServerIndex]?.url;
19424
19612
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19425
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
+ },
19426
19626
  /**
19427
19627
  *
19428
19628
  * @param {string} id
@@ -19537,6 +19737,15 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
19537
19737
  whatsOnControllerUpdateById(id: string, whatsOnPayloadDTO: WhatsOnPayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsOnDTO> {
19538
19738
  return localVarFp.whatsOnControllerUpdateById(id, whatsOnPayloadDTO, options).then((request) => request(axios, basePath));
19539
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
+ },
19540
19749
  /**
19541
19750
  *
19542
19751
  * @param {string} id
@@ -19668,6 +19877,17 @@ export class WhatsOnApi extends BaseAPI {
19668
19877
  return WhatsOnApiFp(this.configuration).whatsOnControllerUpdateById(id, whatsOnPayloadDTO, options).then((request) => request(this.axios, this.basePath));
19669
19878
  }
19670
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
+
19671
19891
  /**
19672
19892
  *
19673
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.72",
3
+ "version": "1.2.74-alpha",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},