ob-parking-sdk 0.0.8 → 0.0.10

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
@@ -337,6 +337,200 @@ export interface ConfigStoreWhitelistQuery {
337
337
  */
338
338
  'sort_direction'?: string;
339
339
  }
340
+ /**
341
+ *
342
+ * @export
343
+ * @interface CreateReceiptBody
344
+ */
345
+ export interface CreateReceiptBody {
346
+ /**
347
+ *
348
+ * @type {string}
349
+ * @memberof CreateReceiptBody
350
+ */
351
+ 'parkingDetailId': string;
352
+ /**
353
+ *
354
+ * @type {string}
355
+ * @memberof CreateReceiptBody
356
+ */
357
+ 'imageUrl': string;
358
+ /**
359
+ *
360
+ * @type {string}
361
+ * @memberof CreateReceiptBody
362
+ */
363
+ 'email'?: string;
364
+ }
365
+ /**
366
+ *
367
+ * @export
368
+ * @interface GetAllReceiptQuery
369
+ */
370
+ export interface GetAllReceiptQuery {
371
+ /**
372
+ *
373
+ * @type {string}
374
+ * @memberof GetAllReceiptQuery
375
+ */
376
+ 'id'?: string;
377
+ /**
378
+ *
379
+ * @type {string}
380
+ * @memberof GetAllReceiptQuery
381
+ */
382
+ 'receipt_hashed_id'?: string;
383
+ /**
384
+ *
385
+ * @type {string}
386
+ * @memberof GetAllReceiptQuery
387
+ */
388
+ 'user_id'?: string;
389
+ /**
390
+ *
391
+ * @type {ReceiptStatus}
392
+ * @memberof GetAllReceiptQuery
393
+ */
394
+ 'status'?: ReceiptStatus;
395
+ /**
396
+ *
397
+ * @type {string}
398
+ * @memberof GetAllReceiptQuery
399
+ */
400
+ 'content'?: string;
401
+ /**
402
+ *
403
+ * @type {string}
404
+ * @memberof GetAllReceiptQuery
405
+ */
406
+ 'redeemed_at'?: string;
407
+ /**
408
+ *
409
+ * @type {string}
410
+ * @memberof GetAllReceiptQuery
411
+ */
412
+ 'created_at'?: string;
413
+ /**
414
+ *
415
+ * @type {string}
416
+ * @memberof GetAllReceiptQuery
417
+ */
418
+ 'total'?: string;
419
+ /**
420
+ *
421
+ * @type {string}
422
+ * @memberof GetAllReceiptQuery
423
+ */
424
+ 'parking_id'?: string;
425
+ }
426
+
427
+
428
+ /**
429
+ *
430
+ * @export
431
+ * @interface GetAllReceiptResponse
432
+ */
433
+ export interface GetAllReceiptResponse {
434
+ /**
435
+ *
436
+ * @type {string}
437
+ * @memberof GetAllReceiptResponse
438
+ */
439
+ 'id': string;
440
+ /**
441
+ *
442
+ * @type {string}
443
+ * @memberof GetAllReceiptResponse
444
+ */
445
+ 'receipt_hashed_id'?: string;
446
+ /**
447
+ *
448
+ * @type {string}
449
+ * @memberof GetAllReceiptResponse
450
+ */
451
+ 'user_id'?: string;
452
+ /**
453
+ *
454
+ * @type {ReceiptStatus}
455
+ * @memberof GetAllReceiptResponse
456
+ */
457
+ 'status': ReceiptStatus;
458
+ /**
459
+ *
460
+ * @type {Receipt}
461
+ * @memberof GetAllReceiptResponse
462
+ */
463
+ 'content'?: Receipt;
464
+ /**
465
+ *
466
+ * @type {string}
467
+ * @memberof GetAllReceiptResponse
468
+ */
469
+ 'redeemed_at'?: string;
470
+ /**
471
+ *
472
+ * @type {string}
473
+ * @memberof GetAllReceiptResponse
474
+ */
475
+ 'created_at'?: string;
476
+ /**
477
+ *
478
+ * @type {string}
479
+ * @memberof GetAllReceiptResponse
480
+ */
481
+ 'total': string;
482
+ /**
483
+ *
484
+ * @type {string}
485
+ * @memberof GetAllReceiptResponse
486
+ */
487
+ 'parking_id': string;
488
+ }
489
+
490
+
491
+ /**
492
+ *
493
+ * @export
494
+ * @interface GetParkingDetaiQuery
495
+ */
496
+ export interface GetParkingDetaiQuery {
497
+ /**
498
+ *
499
+ * @type {string}
500
+ * @memberof GetParkingDetaiQuery
501
+ */
502
+ 'order_by'?: string;
503
+ /**
504
+ *
505
+ * @type {string}
506
+ * @memberof GetParkingDetaiQuery
507
+ */
508
+ 'order_direction'?: string;
509
+ /**
510
+ *
511
+ * @type {number}
512
+ * @memberof GetParkingDetaiQuery
513
+ */
514
+ 'page_number'?: number;
515
+ /**
516
+ *
517
+ * @type {number}
518
+ * @memberof GetParkingDetaiQuery
519
+ */
520
+ 'page_size'?: number;
521
+ /**
522
+ *
523
+ * @type {string}
524
+ * @memberof GetParkingDetaiQuery
525
+ */
526
+ 'filter_by'?: string;
527
+ /**
528
+ *
529
+ * @type {string}
530
+ * @memberof GetParkingDetaiQuery
531
+ */
532
+ 'filter_key'?: string;
533
+ }
340
534
  /**
341
535
  *
342
536
  * @export
@@ -423,7 +617,7 @@ export interface GetParkingDetailResponse {
423
617
  * @type {string}
424
618
  * @memberof GetParkingDetailResponse
425
619
  */
426
- 'licenssePlate': string;
620
+ 'licensePlate': string;
427
621
  /**
428
622
  *
429
623
  * @type {ParkingAccountDetail}
@@ -467,6 +661,12 @@ export interface GetParkingDetailsIndexResponse {
467
661
  * @memberof GetParkingDetailsIndexResponse
468
662
  */
469
663
  'parkingTicketId': string;
664
+ /**
665
+ *
666
+ * @type {string}
667
+ * @memberof GetParkingDetailsIndexResponse
668
+ */
669
+ 'plate_no': string;
470
670
  /**
471
671
  *
472
672
  * @type {ParkingAccountDetail}
@@ -494,6 +694,31 @@ export interface GetParkingDetailsIndexResponse {
494
694
  }
495
695
 
496
696
 
697
+ /**
698
+ *
699
+ * @export
700
+ * @interface Item
701
+ */
702
+ export interface Item {
703
+ /**
704
+ *
705
+ * @type {string}
706
+ * @memberof Item
707
+ */
708
+ 'description': string;
709
+ /**
710
+ *
711
+ * @type {number}
712
+ * @memberof Item
713
+ */
714
+ 'quantity'?: number;
715
+ /**
716
+ *
717
+ * @type {string}
718
+ * @memberof Item
719
+ */
720
+ 'total_price': string;
721
+ }
497
722
  /**
498
723
  *
499
724
  * @export
@@ -612,13 +837,13 @@ export interface Receipt {
612
837
  * @type {string}
613
838
  * @memberof Receipt
614
839
  */
615
- 'createdAt': string;
840
+ 'created_at': string;
616
841
  /**
617
842
  *
618
843
  * @type {string}
619
844
  * @memberof Receipt
620
845
  */
621
- 'updatedAt': string;
846
+ 'updated_at': string;
622
847
  /**
623
848
  *
624
849
  * @type {ReceiptStatus}
@@ -630,13 +855,79 @@ export interface Receipt {
630
855
  * @type {string}
631
856
  * @memberof Receipt
632
857
  */
633
- 'reason': string;
858
+ 'message'?: string;
634
859
  /**
635
860
  *
636
861
  * @type {string}
637
862
  * @memberof Receipt
638
863
  */
639
- 'imageUrl': string;
864
+ 'image_url': string;
865
+ /**
866
+ *
867
+ * @type {string}
868
+ * @memberof Receipt
869
+ */
870
+ 'merchant_name'?: string;
871
+ /**
872
+ *
873
+ * @type {string}
874
+ * @memberof Receipt
875
+ */
876
+ 'transaction_date'?: string;
877
+ /**
878
+ *
879
+ * @type {string}
880
+ * @memberof Receipt
881
+ */
882
+ 'transaction_time'?: string;
883
+ /**
884
+ *
885
+ * @type {Array<Item>}
886
+ * @memberof Receipt
887
+ */
888
+ 'items': Array<Item>;
889
+ /**
890
+ *
891
+ * @type {string}
892
+ * @memberof Receipt
893
+ */
894
+ 'tax_id'?: string;
895
+ /**
896
+ *
897
+ * @type {string}
898
+ * @memberof Receipt
899
+ */
900
+ 'receipt_no'?: string;
901
+ /**
902
+ *
903
+ * @type {string}
904
+ * @memberof Receipt
905
+ */
906
+ 'addres'?: string;
907
+ /**
908
+ *
909
+ * @type {string}
910
+ * @memberof Receipt
911
+ */
912
+ 'unit_no'?: string;
913
+ /**
914
+ *
915
+ * @type {string}
916
+ * @memberof Receipt
917
+ */
918
+ 'mall_name'?: string;
919
+ /**
920
+ *
921
+ * @type {string}
922
+ * @memberof Receipt
923
+ */
924
+ 'hashed_receipt'?: string;
925
+ /**
926
+ *
927
+ * @type {string}
928
+ * @memberof Receipt
929
+ */
930
+ 'redeemed_at'?: string;
640
931
  }
641
932
 
642
933
 
@@ -651,12 +942,32 @@ export const ReceiptStatus = {
651
942
  Success: 'SUCCESS',
652
943
  Pending: 'PENDING',
653
944
  Dispute: 'DISPUTE',
654
- Redeemed: 'REDEEMED'
945
+ Redeemed: 'REDEEMED',
946
+ Processing: 'PROCESSING'
655
947
  } as const;
656
948
 
657
949
  export type ReceiptStatus = typeof ReceiptStatus[keyof typeof ReceiptStatus];
658
950
 
659
951
 
952
+ /**
953
+ *
954
+ * @export
955
+ * @interface ResponseDataGetParkingDetailResponse
956
+ */
957
+ export interface ResponseDataGetParkingDetailResponse {
958
+ /**
959
+ *
960
+ * @type {GetParkingDetailResponse}
961
+ * @memberof ResponseDataGetParkingDetailResponse
962
+ */
963
+ 'data': GetParkingDetailResponse;
964
+ /**
965
+ *
966
+ * @type {Pagination}
967
+ * @memberof ResponseDataGetParkingDetailResponse
968
+ */
969
+ 'pagination'?: Pagination;
970
+ }
660
971
  /**
661
972
  *
662
973
  * @export
@@ -799,74 +1110,155 @@ export interface UpdateConfigStoreWhitelist {
799
1110
  * @memberof UpdateConfigStoreWhitelist
800
1111
  */
801
1112
  'updated_by'?: string;
1113
+ /**
1114
+ *
1115
+ * @type {boolean}
1116
+ * @memberof UpdateConfigStoreWhitelist
1117
+ */
1118
+ 'receipt_address_in_obk'?: boolean;
1119
+ /**
1120
+ *
1121
+ * @type {boolean}
1122
+ * @memberof UpdateConfigStoreWhitelist
1123
+ */
1124
+ 'has_tax_id'?: boolean;
802
1125
  /**
803
1126
  *
804
1127
  * @type {string}
805
1128
  * @memberof UpdateConfigStoreWhitelist
806
1129
  */
807
- 'property_id'?: string;
1130
+ 'building'?: string;
808
1131
  /**
809
1132
  *
810
1133
  * @type {string}
811
1134
  * @memberof UpdateConfigStoreWhitelist
812
1135
  */
813
- 'sort_direction'?: string;
1136
+ 'address'?: string;
814
1137
  /**
815
1138
  *
816
1139
  * @type {string}
817
1140
  * @memberof UpdateConfigStoreWhitelist
818
1141
  */
819
- 'sort_key'?: string;
1142
+ 'unit_no'?: string;
820
1143
  /**
821
1144
  *
822
- * @type {boolean}
1145
+ * @type {string}
823
1146
  * @memberof UpdateConfigStoreWhitelist
824
1147
  */
825
- 'receipt_address_in_obk'?: boolean;
1148
+ 'property_id'?: string;
826
1149
  /**
827
1150
  *
828
- * @type {boolean}
1151
+ * @type {string}
829
1152
  * @memberof UpdateConfigStoreWhitelist
830
1153
  */
831
- 'has_tax_id'?: boolean;
1154
+ 'company_name'?: string;
1155
+ /**
1156
+ *
1157
+ * @type {string}
1158
+ * @memberof UpdateConfigStoreWhitelist
1159
+ */
1160
+ 'store_name'?: string;
1161
+ /**
1162
+ *
1163
+ * @type {string}
1164
+ * @memberof UpdateConfigStoreWhitelist
1165
+ */
1166
+ 'tax_id'?: string;
1167
+ }
1168
+ /**
1169
+ *
1170
+ * @export
1171
+ * @interface UpdateReceiptBody
1172
+ */
1173
+ export interface UpdateReceiptBody {
1174
+ /**
1175
+ *
1176
+ * @type {string}
1177
+ * @memberof UpdateReceiptBody
1178
+ */
1179
+ 'id': string;
1180
+ /**
1181
+ *
1182
+ * @type {string}
1183
+ * @memberof UpdateReceiptBody
1184
+ */
1185
+ 'merchant_name': string;
1186
+ /**
1187
+ *
1188
+ * @type {string}
1189
+ * @memberof UpdateReceiptBody
1190
+ */
1191
+ 'transaction_date': string;
1192
+ /**
1193
+ *
1194
+ * @type {string}
1195
+ * @memberof UpdateReceiptBody
1196
+ */
1197
+ 'transaction_time': string;
1198
+ /**
1199
+ *
1200
+ * @type {Array<Item>}
1201
+ * @memberof UpdateReceiptBody
1202
+ */
1203
+ 'items': Array<Item>;
1204
+ /**
1205
+ *
1206
+ * @type {string}
1207
+ * @memberof UpdateReceiptBody
1208
+ */
1209
+ 'total': string;
1210
+ /**
1211
+ *
1212
+ * @type {string}
1213
+ * @memberof UpdateReceiptBody
1214
+ */
1215
+ 'tax_id': string;
832
1216
  /**
833
1217
  *
834
1218
  * @type {string}
835
- * @memberof UpdateConfigStoreWhitelist
1219
+ * @memberof UpdateReceiptBody
836
1220
  */
837
- 'building'?: string;
1221
+ 'receipt_no': string;
838
1222
  /**
839
1223
  *
840
1224
  * @type {string}
841
- * @memberof UpdateConfigStoreWhitelist
1225
+ * @memberof UpdateReceiptBody
842
1226
  */
843
- 'address'?: string;
1227
+ 'address': string;
844
1228
  /**
845
1229
  *
846
1230
  * @type {string}
847
- * @memberof UpdateConfigStoreWhitelist
1231
+ * @memberof UpdateReceiptBody
848
1232
  */
849
- 'unit_no'?: string;
1233
+ 'unit_no': string;
850
1234
  /**
851
1235
  *
852
1236
  * @type {string}
853
- * @memberof UpdateConfigStoreWhitelist
1237
+ * @memberof UpdateReceiptBody
854
1238
  */
855
- 'company_name'?: string;
1239
+ 'mall_name': string;
856
1240
  /**
857
1241
  *
858
1242
  * @type {string}
859
- * @memberof UpdateConfigStoreWhitelist
1243
+ * @memberof UpdateReceiptBody
860
1244
  */
861
- 'store_name'?: string;
1245
+ 'hashed_receipt': string;
1246
+ /**
1247
+ *
1248
+ * @type {ReceiptStatus}
1249
+ * @memberof UpdateReceiptBody
1250
+ */
1251
+ 'status': ReceiptStatus;
862
1252
  /**
863
1253
  *
864
1254
  * @type {string}
865
- * @memberof UpdateConfigStoreWhitelist
1255
+ * @memberof UpdateReceiptBody
866
1256
  */
867
- 'tax_id'?: string;
1257
+ 'message': string;
868
1258
  }
869
1259
 
1260
+
1261
+
870
1262
  /**
871
1263
  * DefaultApi - axios parameter creator
872
1264
  * @export
@@ -1701,10 +2093,16 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1701
2093
  /**
1702
2094
  *
1703
2095
  * @param {string} id
2096
+ * @param {string} [orderBy]
2097
+ * @param {string} [orderDirection]
2098
+ * @param {number} [pageNumber]
2099
+ * @param {number} [pageSize]
2100
+ * @param {string} [filterBy]
2101
+ * @param {string} [filterKey]
1704
2102
  * @param {*} [options] Override http request option.
1705
2103
  * @throws {RequiredError}
1706
2104
  */
1707
- parkingDetailsGetParkingDetail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2105
+ parkingDetailsGetParkingDetail: async (id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1708
2106
  // verify required parameter 'id' is not null or undefined
1709
2107
  assertParamExists('parkingDetailsGetParkingDetail', 'id', id)
1710
2108
  const localVarPath = `/parking-details/{id}`
@@ -1720,6 +2118,30 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1720
2118
  const localVarHeaderParameter = {} as any;
1721
2119
  const localVarQueryParameter = {} as any;
1722
2120
 
2121
+ if (orderBy !== undefined) {
2122
+ localVarQueryParameter['order_by'] = orderBy;
2123
+ }
2124
+
2125
+ if (orderDirection !== undefined) {
2126
+ localVarQueryParameter['order_direction'] = orderDirection;
2127
+ }
2128
+
2129
+ if (pageNumber !== undefined) {
2130
+ localVarQueryParameter['page_number'] = pageNumber;
2131
+ }
2132
+
2133
+ if (pageSize !== undefined) {
2134
+ localVarQueryParameter['page_size'] = pageSize;
2135
+ }
2136
+
2137
+ if (filterBy !== undefined) {
2138
+ localVarQueryParameter['filter_by'] = filterBy;
2139
+ }
2140
+
2141
+ if (filterKey !== undefined) {
2142
+ localVarQueryParameter['filter_key'] = filterKey;
2143
+ }
2144
+
1723
2145
 
1724
2146
 
1725
2147
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1805,6 +2227,155 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1805
2227
  options: localVarRequestOptions,
1806
2228
  };
1807
2229
  },
2230
+ /**
2231
+ *
2232
+ * @param {string} [id]
2233
+ * @param {string} [receiptHashedId]
2234
+ * @param {string} [userId]
2235
+ * @param {ReceiptStatus} [status]
2236
+ * @param {string} [content]
2237
+ * @param {string} [redeemedAt]
2238
+ * @param {string} [createdAt]
2239
+ * @param {string} [total]
2240
+ * @param {string} [parkingId]
2241
+ * @param {*} [options] Override http request option.
2242
+ * @throws {RequiredError}
2243
+ */
2244
+ receiptAll: async (id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2245
+ const localVarPath = `/receipt/all`;
2246
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2247
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2248
+ let baseOptions;
2249
+ if (configuration) {
2250
+ baseOptions = configuration.baseOptions;
2251
+ }
2252
+
2253
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2254
+ const localVarHeaderParameter = {} as any;
2255
+ const localVarQueryParameter = {} as any;
2256
+
2257
+ if (id !== undefined) {
2258
+ localVarQueryParameter['id'] = id;
2259
+ }
2260
+
2261
+ if (receiptHashedId !== undefined) {
2262
+ localVarQueryParameter['receipt_hashed_id'] = receiptHashedId;
2263
+ }
2264
+
2265
+ if (userId !== undefined) {
2266
+ localVarQueryParameter['user_id'] = userId;
2267
+ }
2268
+
2269
+ if (status !== undefined) {
2270
+ localVarQueryParameter['status'] = status;
2271
+ }
2272
+
2273
+ if (content !== undefined) {
2274
+ localVarQueryParameter['content'] = content;
2275
+ }
2276
+
2277
+ if (redeemedAt !== undefined) {
2278
+ localVarQueryParameter['redeemed_at'] = redeemedAt;
2279
+ }
2280
+
2281
+ if (createdAt !== undefined) {
2282
+ localVarQueryParameter['created_at'] = createdAt;
2283
+ }
2284
+
2285
+ if (total !== undefined) {
2286
+ localVarQueryParameter['total'] = total;
2287
+ }
2288
+
2289
+ if (parkingId !== undefined) {
2290
+ localVarQueryParameter['parking_id'] = parkingId;
2291
+ }
2292
+
2293
+
2294
+
2295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2297
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2298
+
2299
+ return {
2300
+ url: toPathString(localVarUrlObj),
2301
+ options: localVarRequestOptions,
2302
+ };
2303
+ },
2304
+ /**
2305
+ *
2306
+ * @param {CreateReceiptBody} createReceiptBody
2307
+ * @param {string} [xAccountId]
2308
+ * @param {*} [options] Override http request option.
2309
+ * @throws {RequiredError}
2310
+ */
2311
+ receiptCreateReceipt: async (createReceiptBody: CreateReceiptBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2312
+ // verify required parameter 'createReceiptBody' is not null or undefined
2313
+ assertParamExists('receiptCreateReceipt', 'createReceiptBody', createReceiptBody)
2314
+ const localVarPath = `/receipt/create-receipt`;
2315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2316
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2317
+ let baseOptions;
2318
+ if (configuration) {
2319
+ baseOptions = configuration.baseOptions;
2320
+ }
2321
+
2322
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2323
+ const localVarHeaderParameter = {} as any;
2324
+ const localVarQueryParameter = {} as any;
2325
+
2326
+ if (xAccountId != null) {
2327
+ localVarHeaderParameter['x-account-id'] = String(xAccountId);
2328
+ }
2329
+
2330
+
2331
+
2332
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2333
+
2334
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2335
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2336
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2337
+ localVarRequestOptions.data = serializeDataIfNeeded(createReceiptBody, localVarRequestOptions, configuration)
2338
+
2339
+ return {
2340
+ url: toPathString(localVarUrlObj),
2341
+ options: localVarRequestOptions,
2342
+ };
2343
+ },
2344
+ /**
2345
+ *
2346
+ * @param {UpdateReceiptBody} updateReceiptBody
2347
+ * @param {*} [options] Override http request option.
2348
+ * @throws {RequiredError}
2349
+ */
2350
+ receiptUpdateReceipt: async (updateReceiptBody: UpdateReceiptBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2351
+ // verify required parameter 'updateReceiptBody' is not null or undefined
2352
+ assertParamExists('receiptUpdateReceipt', 'updateReceiptBody', updateReceiptBody)
2353
+ const localVarPath = `/receipt/update-receipt`;
2354
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2355
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2356
+ let baseOptions;
2357
+ if (configuration) {
2358
+ baseOptions = configuration.baseOptions;
2359
+ }
2360
+
2361
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
2362
+ const localVarHeaderParameter = {} as any;
2363
+ const localVarQueryParameter = {} as any;
2364
+
2365
+
2366
+
2367
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2368
+
2369
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2370
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2371
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2372
+ localVarRequestOptions.data = serializeDataIfNeeded(updateReceiptBody, localVarRequestOptions, configuration)
2373
+
2374
+ return {
2375
+ url: toPathString(localVarUrlObj),
2376
+ options: localVarRequestOptions,
2377
+ };
2378
+ },
1808
2379
  /**
1809
2380
  *
1810
2381
  * @param {*} [options] Override http request option.
@@ -2082,11 +2653,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2082
2653
  /**
2083
2654
  *
2084
2655
  * @param {string} id
2656
+ * @param {string} [orderBy]
2657
+ * @param {string} [orderDirection]
2658
+ * @param {number} [pageNumber]
2659
+ * @param {number} [pageSize]
2660
+ * @param {string} [filterBy]
2661
+ * @param {string} [filterKey]
2085
2662
  * @param {*} [options] Override http request option.
2086
2663
  * @throws {RequiredError}
2087
2664
  */
2088
- async parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetParkingDetailResponse>> {
2089
- const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsGetParkingDetail(id, options);
2665
+ async parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseDataGetParkingDetailResponse>> {
2666
+ const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options);
2090
2667
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2091
2668
  },
2092
2669
  /**
@@ -2107,6 +2684,45 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2107
2684
  const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options);
2108
2685
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2109
2686
  },
2687
+ /**
2688
+ *
2689
+ * @param {string} [id]
2690
+ * @param {string} [receiptHashedId]
2691
+ * @param {string} [userId]
2692
+ * @param {ReceiptStatus} [status]
2693
+ * @param {string} [content]
2694
+ * @param {string} [redeemedAt]
2695
+ * @param {string} [createdAt]
2696
+ * @param {string} [total]
2697
+ * @param {string} [parkingId]
2698
+ * @param {*} [options] Override http request option.
2699
+ * @throws {RequiredError}
2700
+ */
2701
+ async receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<GetAllReceiptResponse>>> {
2702
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options);
2703
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2704
+ },
2705
+ /**
2706
+ *
2707
+ * @param {CreateReceiptBody} createReceiptBody
2708
+ * @param {string} [xAccountId]
2709
+ * @param {*} [options] Override http request option.
2710
+ * @throws {RequiredError}
2711
+ */
2712
+ async receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2713
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptCreateReceipt(createReceiptBody, xAccountId, options);
2714
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2715
+ },
2716
+ /**
2717
+ *
2718
+ * @param {UpdateReceiptBody} updateReceiptBody
2719
+ * @param {*} [options] Override http request option.
2720
+ * @throws {RequiredError}
2721
+ */
2722
+ async receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2723
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptUpdateReceipt(updateReceiptBody, options);
2724
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2725
+ },
2110
2726
  /**
2111
2727
  *
2112
2728
  * @param {*} [options] Override http request option.
@@ -2342,11 +2958,17 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2342
2958
  /**
2343
2959
  *
2344
2960
  * @param {string} id
2961
+ * @param {string} [orderBy]
2962
+ * @param {string} [orderDirection]
2963
+ * @param {number} [pageNumber]
2964
+ * @param {number} [pageSize]
2965
+ * @param {string} [filterBy]
2966
+ * @param {string} [filterKey]
2345
2967
  * @param {*} [options] Override http request option.
2346
2968
  * @throws {RequiredError}
2347
2969
  */
2348
- parkingDetailsGetParkingDetail(id: string, options?: any): AxiosPromise<GetParkingDetailResponse> {
2349
- return localVarFp.parkingDetailsGetParkingDetail(id, options).then((request) => request(axios, basePath));
2970
+ parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: any): AxiosPromise<ResponseDataGetParkingDetailResponse> {
2971
+ return localVarFp.parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options).then((request) => request(axios, basePath));
2350
2972
  },
2351
2973
  /**
2352
2974
  *
@@ -2365,6 +2987,42 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2365
2987
  parkingDetailsIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, status?: ParkingDetailStatus, options?: any): AxiosPromise<ResponseDataGetParkingDetailsIndexResponseArray> {
2366
2988
  return localVarFp.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(axios, basePath));
2367
2989
  },
2990
+ /**
2991
+ *
2992
+ * @param {string} [id]
2993
+ * @param {string} [receiptHashedId]
2994
+ * @param {string} [userId]
2995
+ * @param {ReceiptStatus} [status]
2996
+ * @param {string} [content]
2997
+ * @param {string} [redeemedAt]
2998
+ * @param {string} [createdAt]
2999
+ * @param {string} [total]
3000
+ * @param {string} [parkingId]
3001
+ * @param {*} [options] Override http request option.
3002
+ * @throws {RequiredError}
3003
+ */
3004
+ receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: any): AxiosPromise<Array<GetAllReceiptResponse>> {
3005
+ return localVarFp.receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options).then((request) => request(axios, basePath));
3006
+ },
3007
+ /**
3008
+ *
3009
+ * @param {CreateReceiptBody} createReceiptBody
3010
+ * @param {string} [xAccountId]
3011
+ * @param {*} [options] Override http request option.
3012
+ * @throws {RequiredError}
3013
+ */
3014
+ receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: any): AxiosPromise<boolean> {
3015
+ return localVarFp.receiptCreateReceipt(createReceiptBody, xAccountId, options).then((request) => request(axios, basePath));
3016
+ },
3017
+ /**
3018
+ *
3019
+ * @param {UpdateReceiptBody} updateReceiptBody
3020
+ * @param {*} [options] Override http request option.
3021
+ * @throws {RequiredError}
3022
+ */
3023
+ receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: any): AxiosPromise<boolean> {
3024
+ return localVarFp.receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(axios, basePath));
3025
+ },
2368
3026
  /**
2369
3027
  *
2370
3028
  * @param {*} [options] Override http request option.
@@ -2643,12 +3301,18 @@ export class DefaultApi extends BaseAPI {
2643
3301
  /**
2644
3302
  *
2645
3303
  * @param {string} id
3304
+ * @param {string} [orderBy]
3305
+ * @param {string} [orderDirection]
3306
+ * @param {number} [pageNumber]
3307
+ * @param {number} [pageSize]
3308
+ * @param {string} [filterBy]
3309
+ * @param {string} [filterKey]
2646
3310
  * @param {*} [options] Override http request option.
2647
3311
  * @throws {RequiredError}
2648
3312
  * @memberof DefaultApi
2649
3313
  */
2650
- public parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig) {
2651
- return DefaultApiFp(this.configuration).parkingDetailsGetParkingDetail(id, options).then((request) => request(this.axios, this.basePath));
3314
+ public parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: AxiosRequestConfig) {
3315
+ return DefaultApiFp(this.configuration).parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options).then((request) => request(this.axios, this.basePath));
2652
3316
  }
2653
3317
 
2654
3318
  /**
@@ -2670,6 +3334,48 @@ export class DefaultApi extends BaseAPI {
2670
3334
  return DefaultApiFp(this.configuration).parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(this.axios, this.basePath));
2671
3335
  }
2672
3336
 
3337
+ /**
3338
+ *
3339
+ * @param {string} [id]
3340
+ * @param {string} [receiptHashedId]
3341
+ * @param {string} [userId]
3342
+ * @param {ReceiptStatus} [status]
3343
+ * @param {string} [content]
3344
+ * @param {string} [redeemedAt]
3345
+ * @param {string} [createdAt]
3346
+ * @param {string} [total]
3347
+ * @param {string} [parkingId]
3348
+ * @param {*} [options] Override http request option.
3349
+ * @throws {RequiredError}
3350
+ * @memberof DefaultApi
3351
+ */
3352
+ public receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: AxiosRequestConfig) {
3353
+ return DefaultApiFp(this.configuration).receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options).then((request) => request(this.axios, this.basePath));
3354
+ }
3355
+
3356
+ /**
3357
+ *
3358
+ * @param {CreateReceiptBody} createReceiptBody
3359
+ * @param {string} [xAccountId]
3360
+ * @param {*} [options] Override http request option.
3361
+ * @throws {RequiredError}
3362
+ * @memberof DefaultApi
3363
+ */
3364
+ public receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: AxiosRequestConfig) {
3365
+ return DefaultApiFp(this.configuration).receiptCreateReceipt(createReceiptBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
3366
+ }
3367
+
3368
+ /**
3369
+ *
3370
+ * @param {UpdateReceiptBody} updateReceiptBody
3371
+ * @param {*} [options] Override http request option.
3372
+ * @throws {RequiredError}
3373
+ * @memberof DefaultApi
3374
+ */
3375
+ public receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig) {
3376
+ return DefaultApiFp(this.configuration).receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(this.axios, this.basePath));
3377
+ }
3378
+
2673
3379
  /**
2674
3380
  *
2675
3381
  * @param {*} [options] Override http request option.