@gooday_corp/gooday-api-client 1.2.70 → 1.2.71

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 +113 -23
  2. package/package.json +1 -1
package/api.ts CHANGED
@@ -4814,6 +4814,31 @@ export interface PrepaidServiceDTO {
4814
4814
  */
4815
4815
  'statusCode': number;
4816
4816
  }
4817
+ /**
4818
+ *
4819
+ * @export
4820
+ * @interface PrepaidServiceDiscount
4821
+ */
4822
+ export interface PrepaidServiceDiscount {
4823
+ /**
4824
+ *
4825
+ * @type {string}
4826
+ * @memberof PrepaidServiceDiscount
4827
+ */
4828
+ '_id'?: string;
4829
+ /**
4830
+ *
4831
+ * @type {string}
4832
+ * @memberof PrepaidServiceDiscount
4833
+ */
4834
+ 'name': string;
4835
+ /**
4836
+ *
4837
+ * @type {string}
4838
+ * @memberof PrepaidServiceDiscount
4839
+ */
4840
+ 'percentage': string;
4841
+ }
4817
4842
  /**
4818
4843
  *
4819
4844
  * @export
@@ -4840,10 +4865,10 @@ export interface PrepaidServiceEntity {
4840
4865
  'category': string;
4841
4866
  /**
4842
4867
  *
4843
- * @type {string}
4868
+ * @type {Array<PrepaidServiceTimeDuration>}
4844
4869
  * @memberof PrepaidServiceEntity
4845
4870
  */
4846
- 'duration': string;
4871
+ 'duration': Array<PrepaidServiceTimeDuration>;
4847
4872
  /**
4848
4873
  *
4849
4874
  * @type {number}
@@ -4984,12 +5009,6 @@ export interface PrepaidServicePayloadDTO {
4984
5009
  * @memberof PrepaidServicePayloadDTO
4985
5010
  */
4986
5011
  'category': string;
4987
- /**
4988
- *
4989
- * @type {string}
4990
- * @memberof PrepaidServicePayloadDTO
4991
- */
4992
- 'duration': string;
4993
5012
  /**
4994
5013
  *
4995
5014
  * @type {number}
@@ -5068,6 +5087,18 @@ export interface PrepaidServicePayloadDTO {
5068
5087
  * @memberof PrepaidServicePayloadDTO
5069
5088
  */
5070
5089
  'repeat': ServiceEndRepeat;
5090
+ /**
5091
+ *
5092
+ * @type {PrepaidServiceDiscount}
5093
+ * @memberof PrepaidServicePayloadDTO
5094
+ */
5095
+ 'discounts': PrepaidServiceDiscount;
5096
+ /**
5097
+ *
5098
+ * @type {Array<PrepaidServiceTimeDuration>}
5099
+ * @memberof PrepaidServicePayloadDTO
5100
+ */
5101
+ 'duration': Array<PrepaidServiceTimeDuration>;
5071
5102
  }
5072
5103
  /**
5073
5104
  *
@@ -5088,6 +5119,25 @@ export interface PrepaidServiceResponseDTO {
5088
5119
  */
5089
5120
  'statusCode': number;
5090
5121
  }
5122
+ /**
5123
+ *
5124
+ * @export
5125
+ * @interface PrepaidServiceTimeDuration
5126
+ */
5127
+ export interface PrepaidServiceTimeDuration {
5128
+ /**
5129
+ * Time duration
5130
+ * @type {TimeDuration}
5131
+ * @memberof PrepaidServiceTimeDuration
5132
+ */
5133
+ 'time': TimeDuration;
5134
+ /**
5135
+ * Capacity
5136
+ * @type {number}
5137
+ * @memberof PrepaidServiceTimeDuration
5138
+ */
5139
+ 'capacity': number;
5140
+ }
5091
5141
  /**
5092
5142
  *
5093
5143
  * @export
@@ -6154,6 +6204,25 @@ export interface TaskListResponseDTO {
6154
6204
  */
6155
6205
  'data': Array<TaskEntity>;
6156
6206
  }
6207
+ /**
6208
+ *
6209
+ * @export
6210
+ * @interface TimeDuration
6211
+ */
6212
+ export interface TimeDuration {
6213
+ /**
6214
+ * Start time
6215
+ * @type {string}
6216
+ * @memberof TimeDuration
6217
+ */
6218
+ 'start': string;
6219
+ /**
6220
+ * End Time
6221
+ * @type {string}
6222
+ * @memberof TimeDuration
6223
+ */
6224
+ 'end': string;
6225
+ }
6157
6226
  /**
6158
6227
  *
6159
6228
  * @export
@@ -6932,6 +7001,25 @@ export interface Weather {
6932
7001
  */
6933
7002
  'temperature': number;
6934
7003
  }
7004
+ /**
7005
+ *
7006
+ * @export
7007
+ * @interface WhatsDiscountCodePayloadDTO
7008
+ */
7009
+ export interface WhatsDiscountCodePayloadDTO {
7010
+ /**
7011
+ *
7012
+ * @type {string}
7013
+ * @memberof WhatsDiscountCodePayloadDTO
7014
+ */
7015
+ 'name': string;
7016
+ /**
7017
+ *
7018
+ * @type {string}
7019
+ * @memberof WhatsDiscountCodePayloadDTO
7020
+ */
7021
+ 'id': string;
7022
+ }
6935
7023
  /**
6936
7024
  *
6937
7025
  * @export
@@ -18852,15 +18940,14 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18852
18940
  },
18853
18941
  /**
18854
18942
  *
18855
- * @param {string} id
18943
+ * @param {WhatsDiscountCodePayloadDTO} whatsDiscountCodePayloadDTO
18856
18944
  * @param {*} [options] Override http request option.
18857
18945
  * @throws {RequiredError}
18858
18946
  */
18859
- whatsOnControllerDiscountCodeApply: async (id: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18860
- // verify required parameter 'id' is not null or undefined
18861
- assertParamExists('whatsOnControllerDiscountCodeApply', 'id', id)
18862
- const localVarPath = `/v1/whats-on/discount`
18863
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
18947
+ whatsOnControllerDiscountCodeApply: async (whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18948
+ // verify required parameter 'whatsDiscountCodePayloadDTO' is not null or undefined
18949
+ assertParamExists('whatsOnControllerDiscountCodeApply', 'whatsDiscountCodePayloadDTO', whatsDiscountCodePayloadDTO)
18950
+ const localVarPath = `/v1/whats-on/discount`;
18864
18951
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
18865
18952
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18866
18953
  let baseOptions;
@@ -18878,9 +18965,12 @@ export const WhatsOnApiAxiosParamCreator = function (configuration?: Configurati
18878
18965
 
18879
18966
 
18880
18967
 
18968
+ localVarHeaderParameter['Content-Type'] = 'application/json';
18969
+
18881
18970
  setSearchParams(localVarUrlObj, localVarQueryParameter);
18882
18971
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18883
18972
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18973
+ localVarRequestOptions.data = serializeDataIfNeeded(whatsDiscountCodePayloadDTO, localVarRequestOptions, configuration)
18884
18974
 
18885
18975
  return {
18886
18976
  url: toPathString(localVarUrlObj),
@@ -19237,12 +19327,12 @@ export const WhatsOnApiFp = function(configuration?: Configuration) {
19237
19327
  },
19238
19328
  /**
19239
19329
  *
19240
- * @param {string} id
19330
+ * @param {WhatsDiscountCodePayloadDTO} whatsDiscountCodePayloadDTO
19241
19331
  * @param {*} [options] Override http request option.
19242
19332
  * @throws {RequiredError}
19243
19333
  */
19244
- async whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsDiscountCodeResponseDTO>> {
19245
- const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerDiscountCodeApply(id, options);
19334
+ async whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WhatsDiscountCodeResponseDTO>> {
19335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO, options);
19246
19336
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
19247
19337
  const localVarOperationServerBasePath = operationServerMap['WhatsOnApi.whatsOnControllerDiscountCodeApply']?.[localVarOperationServerIndex]?.url;
19248
19338
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -19375,12 +19465,12 @@ export const WhatsOnApiFactory = function (configuration?: Configuration, basePa
19375
19465
  },
19376
19466
  /**
19377
19467
  *
19378
- * @param {string} id
19468
+ * @param {WhatsDiscountCodePayloadDTO} whatsDiscountCodePayloadDTO
19379
19469
  * @param {*} [options] Override http request option.
19380
19470
  * @throws {RequiredError}
19381
19471
  */
19382
- whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig): AxiosPromise<WhatsDiscountCodeResponseDTO> {
19383
- return localVarFp.whatsOnControllerDiscountCodeApply(id, options).then((request) => request(axios, basePath));
19472
+ whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options?: RawAxiosRequestConfig): AxiosPromise<WhatsDiscountCodeResponseDTO> {
19473
+ return localVarFp.whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO, options).then((request) => request(axios, basePath));
19384
19474
  },
19385
19475
  /**
19386
19476
  *
@@ -19490,13 +19580,13 @@ export class WhatsOnApi extends BaseAPI {
19490
19580
 
19491
19581
  /**
19492
19582
  *
19493
- * @param {string} id
19583
+ * @param {WhatsDiscountCodePayloadDTO} whatsDiscountCodePayloadDTO
19494
19584
  * @param {*} [options] Override http request option.
19495
19585
  * @throws {RequiredError}
19496
19586
  * @memberof WhatsOnApi
19497
19587
  */
19498
- public whatsOnControllerDiscountCodeApply(id: string, options?: RawAxiosRequestConfig) {
19499
- return WhatsOnApiFp(this.configuration).whatsOnControllerDiscountCodeApply(id, options).then((request) => request(this.axios, this.basePath));
19588
+ public whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO: WhatsDiscountCodePayloadDTO, options?: RawAxiosRequestConfig) {
19589
+ return WhatsOnApiFp(this.configuration).whatsOnControllerDiscountCodeApply(whatsDiscountCodePayloadDTO, options).then((request) => request(this.axios, this.basePath));
19500
19590
  }
19501
19591
 
19502
19592
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooday_corp/gooday-api-client",
3
- "version": "1.2.70",
3
+ "version": "1.2.71",
4
4
  "description": "API client for Gooday",
5
5
  "main": "index.ts",
6
6
  "scripts": {},