ob-parking-sdk 0.0.78 → 0.0.80

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/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * obk-parking
5
5
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6
6
  *
7
- * The version of the OpenAPI document: 1.27.5
7
+ * The version of the OpenAPI document: 1.27.10
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -190,6 +190,278 @@ export const AddParkingTicketType = {
190
190
  export type AddParkingTicketType = typeof AddParkingTicketType[keyof typeof AddParkingTicketType];
191
191
 
192
192
 
193
+ /**
194
+ *
195
+ * @export
196
+ * @interface ApplyCouponBody
197
+ */
198
+ export interface ApplyCouponBody {
199
+ /**
200
+ *
201
+ * @type {string}
202
+ * @memberof ApplyCouponBody
203
+ */
204
+ 'couponCode': string;
205
+ /**
206
+ *
207
+ * @type {string}
208
+ * @memberof ApplyCouponBody
209
+ */
210
+ 'parkingTicketId': string;
211
+ }
212
+ /**
213
+ *
214
+ * @export
215
+ * @interface ApplyCouponResponseFromFS
216
+ */
217
+ export interface ApplyCouponResponseFromFS {
218
+ /**
219
+ *
220
+ * @type {string}
221
+ * @memberof ApplyCouponResponseFromFS
222
+ */
223
+ 'status': string;
224
+ /**
225
+ *
226
+ * @type {string}
227
+ * @memberof ApplyCouponResponseFromFS
228
+ */
229
+ 'message': string;
230
+ /**
231
+ *
232
+ * @type {string}
233
+ * @memberof ApplyCouponResponseFromFS
234
+ */
235
+ 'exeption': string | null;
236
+ /**
237
+ *
238
+ * @type {string}
239
+ * @memberof ApplyCouponResponseFromFS
240
+ */
241
+ 'logId': string;
242
+ /**
243
+ *
244
+ * @type {string}
245
+ * @memberof ApplyCouponResponseFromFS
246
+ */
247
+ 'ticketNo': string;
248
+ /**
249
+ *
250
+ * @type {string}
251
+ * @memberof ApplyCouponResponseFromFS
252
+ */
253
+ 'ticketUid': string;
254
+ /**
255
+ *
256
+ * @type {string}
257
+ * @memberof ApplyCouponResponseFromFS
258
+ */
259
+ 'plateNo': string;
260
+ /**
261
+ *
262
+ * @type {string}
263
+ * @memberof ApplyCouponResponseFromFS
264
+ */
265
+ 'entryDateTime': string;
266
+ /**
267
+ *
268
+ * @type {string}
269
+ * @memberof ApplyCouponResponseFromFS
270
+ */
271
+ 'logDateTime': string;
272
+ /**
273
+ *
274
+ * @type {number}
275
+ * @memberof ApplyCouponResponseFromFS
276
+ */
277
+ 'exitStatus': number;
278
+ /**
279
+ *
280
+ * @type {number}
281
+ * @memberof ApplyCouponResponseFromFS
282
+ */
283
+ 'terminalInId': number;
284
+ /**
285
+ *
286
+ * @type {string}
287
+ * @memberof ApplyCouponResponseFromFS
288
+ */
289
+ 'terminalInName': string;
290
+ /**
291
+ *
292
+ * @type {number}
293
+ * @memberof ApplyCouponResponseFromFS
294
+ */
295
+ 'memberTypeId': number;
296
+ /**
297
+ *
298
+ * @type {string}
299
+ * @memberof ApplyCouponResponseFromFS
300
+ */
301
+ 'memberTypeName': string;
302
+ /**
303
+ *
304
+ * @type {number}
305
+ * @memberof ApplyCouponResponseFromFS
306
+ */
307
+ 'vehicleTypeId': number;
308
+ /**
309
+ *
310
+ * @type {string}
311
+ * @memberof ApplyCouponResponseFromFS
312
+ */
313
+ 'vehicleTypeName': string;
314
+ /**
315
+ *
316
+ * @type {string}
317
+ * @memberof ApplyCouponResponseFromFS
318
+ */
319
+ 'rateCode': string;
320
+ /**
321
+ *
322
+ * @type {string}
323
+ * @memberof ApplyCouponResponseFromFS
324
+ */
325
+ 'rateDetailTH': string;
326
+ /**
327
+ *
328
+ * @type {string}
329
+ * @memberof ApplyCouponResponseFromFS
330
+ */
331
+ 'rateDetailEN': string;
332
+ /**
333
+ *
334
+ * @type {string}
335
+ * @memberof ApplyCouponResponseFromFS
336
+ */
337
+ 'tenantId': string;
338
+ /**
339
+ *
340
+ * @type {string}
341
+ * @memberof ApplyCouponResponseFromFS
342
+ */
343
+ 'tenantName': string;
344
+ /**
345
+ *
346
+ * @type {boolean}
347
+ * @memberof ApplyCouponResponseFromFS
348
+ */
349
+ 'isCardLost': boolean;
350
+ /**
351
+ *
352
+ * @type {number}
353
+ * @memberof ApplyCouponResponseFromFS
354
+ */
355
+ 'parkHH': number;
356
+ /**
357
+ *
358
+ * @type {number}
359
+ * @memberof ApplyCouponResponseFromFS
360
+ */
361
+ 'parkMM': number;
362
+ /**
363
+ *
364
+ * @type {number}
365
+ * @memberof ApplyCouponResponseFromFS
366
+ */
367
+ 'rateHH': number;
368
+ /**
369
+ *
370
+ * @type {number}
371
+ * @memberof ApplyCouponResponseFromFS
372
+ */
373
+ 'freeHH': number;
374
+ /**
375
+ *
376
+ * @type {number}
377
+ * @memberof ApplyCouponResponseFromFS
378
+ */
379
+ 'subTotal': number;
380
+ /**
381
+ *
382
+ * @type {number}
383
+ * @memberof ApplyCouponResponseFromFS
384
+ */
385
+ 'discount': number;
386
+ /**
387
+ *
388
+ * @type {number}
389
+ * @memberof ApplyCouponResponseFromFS
390
+ */
391
+ 'parkFee': number;
392
+ /**
393
+ *
394
+ * @type {number}
395
+ * @memberof ApplyCouponResponseFromFS
396
+ */
397
+ 'cardLostFine': number;
398
+ /**
399
+ *
400
+ * @type {number}
401
+ * @memberof ApplyCouponResponseFromFS
402
+ */
403
+ 'overNightFine': number;
404
+ /**
405
+ *
406
+ * @type {number}
407
+ * @memberof ApplyCouponResponseFromFS
408
+ */
409
+ 'total': number;
410
+ /**
411
+ *
412
+ * @type {boolean}
413
+ * @memberof ApplyCouponResponseFromFS
414
+ */
415
+ 'isInv': boolean;
416
+ /**
417
+ *
418
+ * @type {number}
419
+ * @memberof ApplyCouponResponseFromFS
420
+ */
421
+ 'invRateHH': number;
422
+ /**
423
+ *
424
+ * @type {number}
425
+ * @memberof ApplyCouponResponseFromFS
426
+ */
427
+ 'invFee': number;
428
+ /**
429
+ *
430
+ * @type {boolean}
431
+ * @memberof ApplyCouponResponseFromFS
432
+ */
433
+ 'isPayAtKiosk': boolean;
434
+ /**
435
+ *
436
+ * @type {string}
437
+ * @memberof ApplyCouponResponseFromFS
438
+ */
439
+ 'lastDateTimePaymentAtKiosk': string | null;
440
+ /**
441
+ *
442
+ * @type {number}
443
+ * @memberof ApplyCouponResponseFromFS
444
+ */
445
+ 'payAtKioskAll': number;
446
+ /**
447
+ *
448
+ * @type {number}
449
+ * @memberof ApplyCouponResponseFromFS
450
+ */
451
+ 'durationInMinute': number;
452
+ /**
453
+ *
454
+ * @type {number}
455
+ * @memberof ApplyCouponResponseFromFS
456
+ */
457
+ 'timeUsedInMinute': number;
458
+ /**
459
+ *
460
+ * @type {number}
461
+ * @memberof ApplyCouponResponseFromFS
462
+ */
463
+ 'remainInMinute': number;
464
+ }
193
465
  /**
194
466
  *
195
467
  * @export
@@ -648,6 +920,145 @@ export interface ConfigStorewhitelistExport {
648
920
  */
649
921
  'storeWhiteListIds': Array<string>;
650
922
  }
923
+ /**
924
+ *
925
+ * @export
926
+ * @interface Coupon
927
+ */
928
+ export interface Coupon {
929
+ /**
930
+ *
931
+ * @type {string}
932
+ * @memberof Coupon
933
+ */
934
+ 'id': string;
935
+ /**
936
+ *
937
+ * @type {string}
938
+ * @memberof Coupon
939
+ */
940
+ 'status': string;
941
+ /**
942
+ *
943
+ * @type {string}
944
+ * @memberof Coupon
945
+ */
946
+ 'code': string;
947
+ /**
948
+ *
949
+ * @type {string}
950
+ * @memberof Coupon
951
+ */
952
+ 'validFrom': string;
953
+ /**
954
+ *
955
+ * @type {string}
956
+ * @memberof Coupon
957
+ */
958
+ 'validTo': string;
959
+ }
960
+ /**
961
+ *
962
+ * @export
963
+ * @interface CouponHistory
964
+ */
965
+ export interface CouponHistory {
966
+ /**
967
+ *
968
+ * @type {string}
969
+ * @memberof CouponHistory
970
+ */
971
+ 'id': string;
972
+ /**
973
+ *
974
+ * @type {string}
975
+ * @memberof CouponHistory
976
+ */
977
+ 'uid': string;
978
+ /**
979
+ *
980
+ * @type {string}
981
+ * @memberof CouponHistory
982
+ */
983
+ 'coupon_code': string;
984
+ /**
985
+ *
986
+ * @type {CouponHistoryStatus}
987
+ * @memberof CouponHistory
988
+ */
989
+ 'status': CouponHistoryStatus;
990
+ /**
991
+ *
992
+ * @type {string}
993
+ * @memberof CouponHistory
994
+ */
995
+ 'message'?: string;
996
+ /**
997
+ *
998
+ * @type {string}
999
+ * @memberof CouponHistory
1000
+ */
1001
+ 'chanel': string;
1002
+ /**
1003
+ * Construct a type with a set of properties K of type T
1004
+ * @type {object}
1005
+ * @memberof CouponHistory
1006
+ */
1007
+ 'meta_data': object;
1008
+ /**
1009
+ *
1010
+ * @type {string}
1011
+ * @memberof CouponHistory
1012
+ */
1013
+ 'parking_detail_id': string;
1014
+ /**
1015
+ *
1016
+ * @type {string}
1017
+ * @memberof CouponHistory
1018
+ */
1019
+ 'created_at': string;
1020
+ /**
1021
+ *
1022
+ * @type {string}
1023
+ * @memberof CouponHistory
1024
+ */
1025
+ 'updated_at': string;
1026
+ /**
1027
+ * Construct a type with a set of properties K of type T
1028
+ * @type {object}
1029
+ * @memberof CouponHistory
1030
+ */
1031
+ 'parking_detail': object;
1032
+ }
1033
+
1034
+
1035
+ /**
1036
+ *
1037
+ * @export
1038
+ * @enum {string}
1039
+ */
1040
+
1041
+ export const CouponHistoryChanel = {
1042
+ App: 'APP'
1043
+ } as const;
1044
+
1045
+ export type CouponHistoryChanel = typeof CouponHistoryChanel[keyof typeof CouponHistoryChanel];
1046
+
1047
+
1048
+ /**
1049
+ *
1050
+ * @export
1051
+ * @enum {string}
1052
+ */
1053
+
1054
+ export const CouponHistoryStatus = {
1055
+ Success: 'SUCCESS',
1056
+ Failed: 'FAILED'
1057
+ } as const;
1058
+
1059
+ export type CouponHistoryStatus = typeof CouponHistoryStatus[keyof typeof CouponHistoryStatus];
1060
+
1061
+
651
1062
  /**
652
1063
  *
653
1064
  * @export
@@ -1066,6 +1477,87 @@ export interface GetAllReceiptResponse {
1066
1477
  }
1067
1478
 
1068
1479
 
1480
+ /**
1481
+ *
1482
+ * @export
1483
+ * @interface GetCouponHistoryIndexQuery
1484
+ */
1485
+ export interface GetCouponHistoryIndexQuery {
1486
+ /**
1487
+ *
1488
+ * @type {string}
1489
+ * @memberof GetCouponHistoryIndexQuery
1490
+ */
1491
+ 'order_by'?: string;
1492
+ /**
1493
+ *
1494
+ * @type {string}
1495
+ * @memberof GetCouponHistoryIndexQuery
1496
+ */
1497
+ 'order_direction'?: string;
1498
+ /**
1499
+ *
1500
+ * @type {number}
1501
+ * @memberof GetCouponHistoryIndexQuery
1502
+ */
1503
+ 'page_number'?: number;
1504
+ /**
1505
+ *
1506
+ * @type {number}
1507
+ * @memberof GetCouponHistoryIndexQuery
1508
+ */
1509
+ 'page_size'?: number;
1510
+ /**
1511
+ *
1512
+ * @type {string}
1513
+ * @memberof GetCouponHistoryIndexQuery
1514
+ */
1515
+ 'filter_by'?: string;
1516
+ /**
1517
+ *
1518
+ * @type {string}
1519
+ * @memberof GetCouponHistoryIndexQuery
1520
+ */
1521
+ 'filter_key'?: string;
1522
+ /**
1523
+ *
1524
+ * @type {string}
1525
+ * @memberof GetCouponHistoryIndexQuery
1526
+ */
1527
+ 'parking_detail_id'?: string;
1528
+ /**
1529
+ *
1530
+ * @type {string}
1531
+ * @memberof GetCouponHistoryIndexQuery
1532
+ */
1533
+ 'coupon_code'?: string;
1534
+ /**
1535
+ *
1536
+ * @type {CouponHistoryStatus}
1537
+ * @memberof GetCouponHistoryIndexQuery
1538
+ */
1539
+ 'status'?: CouponHistoryStatus;
1540
+ /**
1541
+ *
1542
+ * @type {string}
1543
+ * @memberof GetCouponHistoryIndexQuery
1544
+ */
1545
+ 'startDate'?: string;
1546
+ /**
1547
+ *
1548
+ * @type {string}
1549
+ * @memberof GetCouponHistoryIndexQuery
1550
+ */
1551
+ 'endDate'?: string;
1552
+ /**
1553
+ *
1554
+ * @type {CouponHistoryChanel}
1555
+ * @memberof GetCouponHistoryIndexQuery
1556
+ */
1557
+ 'chanel'?: CouponHistoryChanel;
1558
+ }
1559
+
1560
+
1069
1561
  /**
1070
1562
  *
1071
1563
  * @export
@@ -1565,6 +2057,12 @@ export interface GetParkingDetailsExportResponse {
1565
2057
  * @memberof GetParkingDetailsExportResponse
1566
2058
  */
1567
2059
  'username': string;
2060
+ /**
2061
+ *
2062
+ * @type {RedemptionType}
2063
+ * @memberof GetParkingDetailsExportResponse
2064
+ */
2065
+ 'redemption_type'?: RedemptionType;
1568
2066
  /**
1569
2067
  *
1570
2068
  * @type {string}
@@ -1668,6 +2166,8 @@ export interface GetParkingDetailsExportResponse {
1668
2166
  */
1669
2167
  'ocr_extract': string;
1670
2168
  }
2169
+
2170
+
1671
2171
  /**
1672
2172
  *
1673
2173
  * @export
@@ -2772,7 +3272,21 @@ export const RedeemType = {
2772
3272
  Redeem: 'REDEEM'
2773
3273
  } as const;
2774
3274
 
2775
- export type RedeemType = typeof RedeemType[keyof typeof RedeemType];
3275
+ export type RedeemType = typeof RedeemType[keyof typeof RedeemType];
3276
+
3277
+
3278
+ /**
3279
+ *
3280
+ * @export
3281
+ * @enum {string}
3282
+ */
3283
+
3284
+ export const RedemptionType = {
3285
+ Coupon: 'Coupon',
3286
+ EStamp: 'E-stamp'
3287
+ } as const;
3288
+
3289
+ export type RedemptionType = typeof RedemptionType[keyof typeof RedemptionType];
2776
3290
 
2777
3291
 
2778
3292
  /**
@@ -3013,6 +3527,25 @@ export interface RemoveVipVehicleBody {
3013
3527
  */
3014
3528
  'deleted_by_email': string;
3015
3529
  }
3530
+ /**
3531
+ *
3532
+ * @export
3533
+ * @interface ResponseDataCouponHistoryArray
3534
+ */
3535
+ export interface ResponseDataCouponHistoryArray {
3536
+ /**
3537
+ *
3538
+ * @type {Array<CouponHistory>}
3539
+ * @memberof ResponseDataCouponHistoryArray
3540
+ */
3541
+ 'data': Array<CouponHistory>;
3542
+ /**
3543
+ *
3544
+ * @type {Pagination}
3545
+ * @memberof ResponseDataCouponHistoryArray
3546
+ */
3547
+ 'pagination'?: Pagination;
3548
+ }
3016
3549
  /**
3017
3550
  *
3018
3551
  * @export
@@ -3539,6 +4072,25 @@ export interface UpdateRegisteredVehicleBody {
3539
4072
  }
3540
4073
 
3541
4074
 
4075
+ /**
4076
+ *
4077
+ * @export
4078
+ * @interface UpgradeToVipBody
4079
+ */
4080
+ export interface UpgradeToVipBody {
4081
+ /**
4082
+ *
4083
+ * @type {string}
4084
+ * @memberof UpgradeToVipBody
4085
+ */
4086
+ 'province'?: string | null;
4087
+ /**
4088
+ *
4089
+ * @type {string}
4090
+ * @memberof UpgradeToVipBody
4091
+ */
4092
+ 'license_plate': string;
4093
+ }
3542
4094
  /**
3543
4095
  *
3544
4096
  * @export
@@ -4467,6 +5019,163 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
4467
5019
  options: localVarRequestOptions,
4468
5020
  };
4469
5021
  },
5022
+ /**
5023
+ *
5024
+ * @param {ApplyCouponBody} applyCouponBody
5025
+ * @param {*} [options] Override http request option.
5026
+ * @throws {RequiredError}
5027
+ */
5028
+ couponApply: async (applyCouponBody: ApplyCouponBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5029
+ // verify required parameter 'applyCouponBody' is not null or undefined
5030
+ assertParamExists('couponApply', 'applyCouponBody', applyCouponBody)
5031
+ const localVarPath = `/coupon/apply`;
5032
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5033
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5034
+ let baseOptions;
5035
+ if (configuration) {
5036
+ baseOptions = configuration.baseOptions;
5037
+ }
5038
+
5039
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5040
+ const localVarHeaderParameter = {} as any;
5041
+ const localVarQueryParameter = {} as any;
5042
+
5043
+
5044
+
5045
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5046
+
5047
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5048
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5049
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5050
+ localVarRequestOptions.data = serializeDataIfNeeded(applyCouponBody, localVarRequestOptions, configuration)
5051
+
5052
+ return {
5053
+ url: toPathString(localVarUrlObj),
5054
+ options: localVarRequestOptions,
5055
+ };
5056
+ },
5057
+ /**
5058
+ *
5059
+ * @param {string} [orderBy]
5060
+ * @param {string} [orderDirection]
5061
+ * @param {number} [pageNumber]
5062
+ * @param {number} [pageSize]
5063
+ * @param {string} [filterBy]
5064
+ * @param {string} [filterKey]
5065
+ * @param {string} [parkingDetailId]
5066
+ * @param {string} [couponCode]
5067
+ * @param {CouponHistoryStatus} [status]
5068
+ * @param {string} [startDate]
5069
+ * @param {string} [endDate]
5070
+ * @param {CouponHistoryChanel} [chanel]
5071
+ * @param {*} [options] Override http request option.
5072
+ * @throws {RequiredError}
5073
+ */
5074
+ couponHistoryIndex: async (orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, parkingDetailId?: string, couponCode?: string, status?: CouponHistoryStatus, startDate?: string, endDate?: string, chanel?: CouponHistoryChanel, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5075
+ const localVarPath = `/coupon-history`;
5076
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5077
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5078
+ let baseOptions;
5079
+ if (configuration) {
5080
+ baseOptions = configuration.baseOptions;
5081
+ }
5082
+
5083
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5084
+ const localVarHeaderParameter = {} as any;
5085
+ const localVarQueryParameter = {} as any;
5086
+
5087
+ if (orderBy !== undefined) {
5088
+ localVarQueryParameter['order_by'] = orderBy;
5089
+ }
5090
+
5091
+ if (orderDirection !== undefined) {
5092
+ localVarQueryParameter['order_direction'] = orderDirection;
5093
+ }
5094
+
5095
+ if (pageNumber !== undefined) {
5096
+ localVarQueryParameter['page_number'] = pageNumber;
5097
+ }
5098
+
5099
+ if (pageSize !== undefined) {
5100
+ localVarQueryParameter['page_size'] = pageSize;
5101
+ }
5102
+
5103
+ if (filterBy !== undefined) {
5104
+ localVarQueryParameter['filter_by'] = filterBy;
5105
+ }
5106
+
5107
+ if (filterKey !== undefined) {
5108
+ localVarQueryParameter['filter_key'] = filterKey;
5109
+ }
5110
+
5111
+ if (parkingDetailId !== undefined) {
5112
+ localVarQueryParameter['parking_detail_id'] = parkingDetailId;
5113
+ }
5114
+
5115
+ if (couponCode !== undefined) {
5116
+ localVarQueryParameter['coupon_code'] = couponCode;
5117
+ }
5118
+
5119
+ if (status !== undefined) {
5120
+ localVarQueryParameter['status'] = status;
5121
+ }
5122
+
5123
+ if (startDate !== undefined) {
5124
+ localVarQueryParameter['startDate'] = startDate;
5125
+ }
5126
+
5127
+ if (endDate !== undefined) {
5128
+ localVarQueryParameter['endDate'] = endDate;
5129
+ }
5130
+
5131
+ if (chanel !== undefined) {
5132
+ localVarQueryParameter['chanel'] = chanel;
5133
+ }
5134
+
5135
+
5136
+
5137
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5139
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5140
+
5141
+ return {
5142
+ url: toPathString(localVarUrlObj),
5143
+ options: localVarRequestOptions,
5144
+ };
5145
+ },
5146
+ /**
5147
+ *
5148
+ * @param {string} couponCode
5149
+ * @param {*} [options] Override http request option.
5150
+ * @throws {RequiredError}
5151
+ */
5152
+ couponValidate: async (couponCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5153
+ // verify required parameter 'couponCode' is not null or undefined
5154
+ assertParamExists('couponValidate', 'couponCode', couponCode)
5155
+ const localVarPath = `/coupon/validate/{couponCode}`
5156
+ .replace(`{${"couponCode"}}`, encodeURIComponent(String(couponCode)));
5157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5159
+ let baseOptions;
5160
+ if (configuration) {
5161
+ baseOptions = configuration.baseOptions;
5162
+ }
5163
+
5164
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5165
+ const localVarHeaderParameter = {} as any;
5166
+ const localVarQueryParameter = {} as any;
5167
+
5168
+
5169
+
5170
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5171
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5172
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5173
+
5174
+ return {
5175
+ url: toPathString(localVarUrlObj),
5176
+ options: localVarRequestOptions,
5177
+ };
5178
+ },
4470
5179
  /**
4471
5180
  *
4472
5181
  * @param {*} [options] Override http request option.
@@ -5669,16 +6378,14 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
5669
6378
  },
5670
6379
  /**
5671
6380
  *
5672
- * @param {string} licensePlate
5673
- * @param {string} [province]
6381
+ * @param {UpgradeToVipBody} upgradeToVipBody
5674
6382
  * @param {*} [options] Override http request option.
5675
6383
  * @throws {RequiredError}
5676
6384
  */
5677
- registeredVehiclesUpgradeToVip: async (licensePlate: string, province?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5678
- // verify required parameter 'licensePlate' is not null or undefined
5679
- assertParamExists('registeredVehiclesUpgradeToVip', 'licensePlate', licensePlate)
5680
- const localVarPath = `/registered-vehicles/upgrade-to-vip/{license-plate}`
5681
- .replace(`{${"license-plate"}}`, encodeURIComponent(String(licensePlate)));
6385
+ registeredVehiclesUpgradeToVip: async (upgradeToVipBody: UpgradeToVipBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
6386
+ // verify required parameter 'upgradeToVipBody' is not null or undefined
6387
+ assertParamExists('registeredVehiclesUpgradeToVip', 'upgradeToVipBody', upgradeToVipBody)
6388
+ const localVarPath = `/registered-vehicles/upgrade-to-vip`;
5682
6389
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
5683
6390
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5684
6391
  let baseOptions;
@@ -5686,19 +6393,18 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
5686
6393
  baseOptions = configuration.baseOptions;
5687
6394
  }
5688
6395
 
5689
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
6396
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
5690
6397
  const localVarHeaderParameter = {} as any;
5691
6398
  const localVarQueryParameter = {} as any;
5692
6399
 
5693
- if (province !== undefined) {
5694
- localVarQueryParameter['province'] = province;
5695
- }
5696
-
5697
6400
 
5698
6401
 
6402
+ localVarHeaderParameter['Content-Type'] = 'application/json';
6403
+
5699
6404
  setSearchParams(localVarUrlObj, localVarQueryParameter);
5700
6405
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5701
6406
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
6407
+ localVarRequestOptions.data = serializeDataIfNeeded(upgradeToVipBody, localVarRequestOptions, configuration)
5702
6408
 
5703
6409
  return {
5704
6410
  url: toPathString(localVarUrlObj),
@@ -6058,6 +6764,47 @@ export const DefaultApiFp = function(configuration?: Configuration) {
6058
6764
  const localVarAxiosArgs = await localVarAxiosParamCreator.configUpdateStoreWhitelist(id, updateConfigStoreWhitelist, options);
6059
6765
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6060
6766
  },
6767
+ /**
6768
+ *
6769
+ * @param {ApplyCouponBody} applyCouponBody
6770
+ * @param {*} [options] Override http request option.
6771
+ * @throws {RequiredError}
6772
+ */
6773
+ async couponApply(applyCouponBody: ApplyCouponBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplyCouponResponseFromFS>> {
6774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.couponApply(applyCouponBody, options);
6775
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6776
+ },
6777
+ /**
6778
+ *
6779
+ * @param {string} [orderBy]
6780
+ * @param {string} [orderDirection]
6781
+ * @param {number} [pageNumber]
6782
+ * @param {number} [pageSize]
6783
+ * @param {string} [filterBy]
6784
+ * @param {string} [filterKey]
6785
+ * @param {string} [parkingDetailId]
6786
+ * @param {string} [couponCode]
6787
+ * @param {CouponHistoryStatus} [status]
6788
+ * @param {string} [startDate]
6789
+ * @param {string} [endDate]
6790
+ * @param {CouponHistoryChanel} [chanel]
6791
+ * @param {*} [options] Override http request option.
6792
+ * @throws {RequiredError}
6793
+ */
6794
+ async couponHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, parkingDetailId?: string, couponCode?: string, status?: CouponHistoryStatus, startDate?: string, endDate?: string, chanel?: CouponHistoryChanel, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseDataCouponHistoryArray>> {
6795
+ const localVarAxiosArgs = await localVarAxiosParamCreator.couponHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, parkingDetailId, couponCode, status, startDate, endDate, chanel, options);
6796
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6797
+ },
6798
+ /**
6799
+ *
6800
+ * @param {string} couponCode
6801
+ * @param {*} [options] Override http request option.
6802
+ * @throws {RequiredError}
6803
+ */
6804
+ async couponValidate(couponCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Coupon>> {
6805
+ const localVarAxiosArgs = await localVarAxiosParamCreator.couponValidate(couponCode, options);
6806
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6807
+ },
6061
6808
  /**
6062
6809
  *
6063
6810
  * @param {*} [options] Override http request option.
@@ -6378,13 +7125,12 @@ export const DefaultApiFp = function(configuration?: Configuration) {
6378
7125
  },
6379
7126
  /**
6380
7127
  *
6381
- * @param {string} licensePlate
6382
- * @param {string} [province]
7128
+ * @param {UpgradeToVipBody} upgradeToVipBody
6383
7129
  * @param {*} [options] Override http request option.
6384
7130
  * @throws {RequiredError}
6385
7131
  */
6386
- async registeredVehiclesUpgradeToVip(licensePlate: string, province?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
6387
- const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesUpgradeToVip(licensePlate, province, options);
7132
+ async registeredVehiclesUpgradeToVip(upgradeToVipBody: UpgradeToVipBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RegisteredVehicleResponse>> {
7133
+ const localVarAxiosArgs = await localVarAxiosParamCreator.registeredVehiclesUpgradeToVip(upgradeToVipBody, options);
6388
7134
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6389
7135
  },
6390
7136
  /**
@@ -6635,6 +7381,44 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
6635
7381
  configUpdateStoreWhitelist(id: string, updateConfigStoreWhitelist: UpdateConfigStoreWhitelist, options?: any): AxiosPromise<StoreWhitelistResponse> {
6636
7382
  return localVarFp.configUpdateStoreWhitelist(id, updateConfigStoreWhitelist, options).then((request) => request(axios, basePath));
6637
7383
  },
7384
+ /**
7385
+ *
7386
+ * @param {ApplyCouponBody} applyCouponBody
7387
+ * @param {*} [options] Override http request option.
7388
+ * @throws {RequiredError}
7389
+ */
7390
+ couponApply(applyCouponBody: ApplyCouponBody, options?: any): AxiosPromise<ApplyCouponResponseFromFS> {
7391
+ return localVarFp.couponApply(applyCouponBody, options).then((request) => request(axios, basePath));
7392
+ },
7393
+ /**
7394
+ *
7395
+ * @param {string} [orderBy]
7396
+ * @param {string} [orderDirection]
7397
+ * @param {number} [pageNumber]
7398
+ * @param {number} [pageSize]
7399
+ * @param {string} [filterBy]
7400
+ * @param {string} [filterKey]
7401
+ * @param {string} [parkingDetailId]
7402
+ * @param {string} [couponCode]
7403
+ * @param {CouponHistoryStatus} [status]
7404
+ * @param {string} [startDate]
7405
+ * @param {string} [endDate]
7406
+ * @param {CouponHistoryChanel} [chanel]
7407
+ * @param {*} [options] Override http request option.
7408
+ * @throws {RequiredError}
7409
+ */
7410
+ couponHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, parkingDetailId?: string, couponCode?: string, status?: CouponHistoryStatus, startDate?: string, endDate?: string, chanel?: CouponHistoryChanel, options?: any): AxiosPromise<ResponseDataCouponHistoryArray> {
7411
+ return localVarFp.couponHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, parkingDetailId, couponCode, status, startDate, endDate, chanel, options).then((request) => request(axios, basePath));
7412
+ },
7413
+ /**
7414
+ *
7415
+ * @param {string} couponCode
7416
+ * @param {*} [options] Override http request option.
7417
+ * @throws {RequiredError}
7418
+ */
7419
+ couponValidate(couponCode: string, options?: any): AxiosPromise<Coupon> {
7420
+ return localVarFp.couponValidate(couponCode, options).then((request) => request(axios, basePath));
7421
+ },
6638
7422
  /**
6639
7423
  *
6640
7424
  * @param {*} [options] Override http request option.
@@ -6930,13 +7714,12 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
6930
7714
  },
6931
7715
  /**
6932
7716
  *
6933
- * @param {string} licensePlate
6934
- * @param {string} [province]
7717
+ * @param {UpgradeToVipBody} upgradeToVipBody
6935
7718
  * @param {*} [options] Override http request option.
6936
7719
  * @throws {RequiredError}
6937
7720
  */
6938
- registeredVehiclesUpgradeToVip(licensePlate: string, province?: string, options?: any): AxiosPromise<RegisteredVehicleResponse> {
6939
- return localVarFp.registeredVehiclesUpgradeToVip(licensePlate, province, options).then((request) => request(axios, basePath));
7721
+ registeredVehiclesUpgradeToVip(upgradeToVipBody: UpgradeToVipBody, options?: any): AxiosPromise<RegisteredVehicleResponse> {
7722
+ return localVarFp.registeredVehiclesUpgradeToVip(upgradeToVipBody, options).then((request) => request(axios, basePath));
6940
7723
  },
6941
7724
  /**
6942
7725
  *
@@ -7222,6 +8005,50 @@ export class DefaultApi extends BaseAPI {
7222
8005
  return DefaultApiFp(this.configuration).configUpdateStoreWhitelist(id, updateConfigStoreWhitelist, options).then((request) => request(this.axios, this.basePath));
7223
8006
  }
7224
8007
 
8008
+ /**
8009
+ *
8010
+ * @param {ApplyCouponBody} applyCouponBody
8011
+ * @param {*} [options] Override http request option.
8012
+ * @throws {RequiredError}
8013
+ * @memberof DefaultApi
8014
+ */
8015
+ public couponApply(applyCouponBody: ApplyCouponBody, options?: AxiosRequestConfig) {
8016
+ return DefaultApiFp(this.configuration).couponApply(applyCouponBody, options).then((request) => request(this.axios, this.basePath));
8017
+ }
8018
+
8019
+ /**
8020
+ *
8021
+ * @param {string} [orderBy]
8022
+ * @param {string} [orderDirection]
8023
+ * @param {number} [pageNumber]
8024
+ * @param {number} [pageSize]
8025
+ * @param {string} [filterBy]
8026
+ * @param {string} [filterKey]
8027
+ * @param {string} [parkingDetailId]
8028
+ * @param {string} [couponCode]
8029
+ * @param {CouponHistoryStatus} [status]
8030
+ * @param {string} [startDate]
8031
+ * @param {string} [endDate]
8032
+ * @param {CouponHistoryChanel} [chanel]
8033
+ * @param {*} [options] Override http request option.
8034
+ * @throws {RequiredError}
8035
+ * @memberof DefaultApi
8036
+ */
8037
+ public couponHistoryIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, parkingDetailId?: string, couponCode?: string, status?: CouponHistoryStatus, startDate?: string, endDate?: string, chanel?: CouponHistoryChanel, options?: AxiosRequestConfig) {
8038
+ return DefaultApiFp(this.configuration).couponHistoryIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, parkingDetailId, couponCode, status, startDate, endDate, chanel, options).then((request) => request(this.axios, this.basePath));
8039
+ }
8040
+
8041
+ /**
8042
+ *
8043
+ * @param {string} couponCode
8044
+ * @param {*} [options] Override http request option.
8045
+ * @throws {RequiredError}
8046
+ * @memberof DefaultApi
8047
+ */
8048
+ public couponValidate(couponCode: string, options?: AxiosRequestConfig) {
8049
+ return DefaultApiFp(this.configuration).couponValidate(couponCode, options).then((request) => request(this.axios, this.basePath));
8050
+ }
8051
+
7225
8052
  /**
7226
8053
  *
7227
8054
  * @param {*} [options] Override http request option.
@@ -7567,14 +8394,13 @@ export class DefaultApi extends BaseAPI {
7567
8394
 
7568
8395
  /**
7569
8396
  *
7570
- * @param {string} licensePlate
7571
- * @param {string} [province]
8397
+ * @param {UpgradeToVipBody} upgradeToVipBody
7572
8398
  * @param {*} [options] Override http request option.
7573
8399
  * @throws {RequiredError}
7574
8400
  * @memberof DefaultApi
7575
8401
  */
7576
- public registeredVehiclesUpgradeToVip(licensePlate: string, province?: string, options?: AxiosRequestConfig) {
7577
- return DefaultApiFp(this.configuration).registeredVehiclesUpgradeToVip(licensePlate, province, options).then((request) => request(this.axios, this.basePath));
8402
+ public registeredVehiclesUpgradeToVip(upgradeToVipBody: UpgradeToVipBody, options?: AxiosRequestConfig) {
8403
+ return DefaultApiFp(this.configuration).registeredVehiclesUpgradeToVip(upgradeToVipBody, options).then((request) => request(this.axios, this.basePath));
7578
8404
  }
7579
8405
 
7580
8406
  /**