ob-parking-sdk 0.0.79 → 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 +819 -6
- package/api/base.ts +1 -1
- package/api/common.ts +1 -1
- package/api/configuration.ts +1 -1
- package/api/index.ts +1 -1
- package/dist/api/api.d.ts +647 -1
- package/dist/api/api.js +283 -2
- package/dist/api/base.d.ts +1 -1
- package/dist/api/base.js +1 -1
- package/dist/api/common.d.ts +1 -1
- package/dist/api/common.js +1 -1
- package/dist/api/configuration.d.ts +1 -1
- package/dist/api/configuration.js +1 -1
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/package.json +1 -1
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.
|
|
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
|
|
@@ -1054,15 +1465,96 @@ export interface GetAllReceiptResponse {
|
|
|
1054
1465
|
/**
|
|
1055
1466
|
*
|
|
1056
1467
|
* @type {string}
|
|
1057
|
-
* @memberof GetAllReceiptResponse
|
|
1468
|
+
* @memberof GetAllReceiptResponse
|
|
1469
|
+
*/
|
|
1470
|
+
'transaction_time': string | null;
|
|
1471
|
+
/**
|
|
1472
|
+
*
|
|
1473
|
+
* @type {boolean}
|
|
1474
|
+
* @memberof GetAllReceiptResponse
|
|
1475
|
+
*/
|
|
1476
|
+
'check_handwriting'?: boolean;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
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
|
|
1058
1550
|
*/
|
|
1059
|
-
'
|
|
1551
|
+
'endDate'?: string;
|
|
1060
1552
|
/**
|
|
1061
1553
|
*
|
|
1062
|
-
* @type {
|
|
1063
|
-
* @memberof
|
|
1554
|
+
* @type {CouponHistoryChanel}
|
|
1555
|
+
* @memberof GetCouponHistoryIndexQuery
|
|
1064
1556
|
*/
|
|
1065
|
-
'
|
|
1557
|
+
'chanel'?: CouponHistoryChanel;
|
|
1066
1558
|
}
|
|
1067
1559
|
|
|
1068
1560
|
|
|
@@ -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
|
|
@@ -2775,6 +3275,20 @@ export const RedeemType = {
|
|
|
2775
3275
|
export type RedeemType = typeof RedeemType[keyof typeof RedeemType];
|
|
2776
3276
|
|
|
2777
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];
|
|
3290
|
+
|
|
3291
|
+
|
|
2778
3292
|
/**
|
|
2779
3293
|
*
|
|
2780
3294
|
* @export
|
|
@@ -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
|
|
@@ -4486,6 +5019,163 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
4486
5019
|
options: localVarRequestOptions,
|
|
4487
5020
|
};
|
|
4488
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
|
+
},
|
|
4489
5179
|
/**
|
|
4490
5180
|
*
|
|
4491
5181
|
* @param {*} [options] Override http request option.
|
|
@@ -6074,6 +6764,47 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
6074
6764
|
const localVarAxiosArgs = await localVarAxiosParamCreator.configUpdateStoreWhitelist(id, updateConfigStoreWhitelist, options);
|
|
6075
6765
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
6076
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
|
+
},
|
|
6077
6808
|
/**
|
|
6078
6809
|
*
|
|
6079
6810
|
* @param {*} [options] Override http request option.
|
|
@@ -6650,6 +7381,44 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
6650
7381
|
configUpdateStoreWhitelist(id: string, updateConfigStoreWhitelist: UpdateConfigStoreWhitelist, options?: any): AxiosPromise<StoreWhitelistResponse> {
|
|
6651
7382
|
return localVarFp.configUpdateStoreWhitelist(id, updateConfigStoreWhitelist, options).then((request) => request(axios, basePath));
|
|
6652
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
|
+
},
|
|
6653
7422
|
/**
|
|
6654
7423
|
*
|
|
6655
7424
|
* @param {*} [options] Override http request option.
|
|
@@ -7236,6 +8005,50 @@ export class DefaultApi extends BaseAPI {
|
|
|
7236
8005
|
return DefaultApiFp(this.configuration).configUpdateStoreWhitelist(id, updateConfigStoreWhitelist, options).then((request) => request(this.axios, this.basePath));
|
|
7237
8006
|
}
|
|
7238
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
|
+
|
|
7239
8052
|
/**
|
|
7240
8053
|
*
|
|
7241
8054
|
* @param {*} [options] Override http request option.
|