ob-parking-sdk 0.0.8 → 0.0.9

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
@@ -494,6 +688,31 @@ export interface GetParkingDetailsIndexResponse {
494
688
  }
495
689
 
496
690
 
691
+ /**
692
+ *
693
+ * @export
694
+ * @interface Item
695
+ */
696
+ export interface Item {
697
+ /**
698
+ *
699
+ * @type {string}
700
+ * @memberof Item
701
+ */
702
+ 'description': string;
703
+ /**
704
+ *
705
+ * @type {number}
706
+ * @memberof Item
707
+ */
708
+ 'quantity'?: number;
709
+ /**
710
+ *
711
+ * @type {string}
712
+ * @memberof Item
713
+ */
714
+ 'total_price': string;
715
+ }
497
716
  /**
498
717
  *
499
718
  * @export
@@ -612,13 +831,13 @@ export interface Receipt {
612
831
  * @type {string}
613
832
  * @memberof Receipt
614
833
  */
615
- 'createdAt': string;
834
+ 'created_at': string;
616
835
  /**
617
836
  *
618
837
  * @type {string}
619
838
  * @memberof Receipt
620
839
  */
621
- 'updatedAt': string;
840
+ 'updated_at': string;
622
841
  /**
623
842
  *
624
843
  * @type {ReceiptStatus}
@@ -630,13 +849,79 @@ export interface Receipt {
630
849
  * @type {string}
631
850
  * @memberof Receipt
632
851
  */
633
- 'reason': string;
852
+ 'message'?: string;
634
853
  /**
635
854
  *
636
855
  * @type {string}
637
856
  * @memberof Receipt
638
857
  */
639
- 'imageUrl': string;
858
+ 'image_url': string;
859
+ /**
860
+ *
861
+ * @type {string}
862
+ * @memberof Receipt
863
+ */
864
+ 'merchant_name'?: string;
865
+ /**
866
+ *
867
+ * @type {string}
868
+ * @memberof Receipt
869
+ */
870
+ 'transaction_date'?: string;
871
+ /**
872
+ *
873
+ * @type {string}
874
+ * @memberof Receipt
875
+ */
876
+ 'transaction_time'?: string;
877
+ /**
878
+ *
879
+ * @type {Array<Item>}
880
+ * @memberof Receipt
881
+ */
882
+ 'items': Array<Item>;
883
+ /**
884
+ *
885
+ * @type {string}
886
+ * @memberof Receipt
887
+ */
888
+ 'tax_id'?: string;
889
+ /**
890
+ *
891
+ * @type {string}
892
+ * @memberof Receipt
893
+ */
894
+ 'receipt_no'?: string;
895
+ /**
896
+ *
897
+ * @type {string}
898
+ * @memberof Receipt
899
+ */
900
+ 'addres'?: string;
901
+ /**
902
+ *
903
+ * @type {string}
904
+ * @memberof Receipt
905
+ */
906
+ 'unit_no'?: string;
907
+ /**
908
+ *
909
+ * @type {string}
910
+ * @memberof Receipt
911
+ */
912
+ 'mall_name'?: string;
913
+ /**
914
+ *
915
+ * @type {string}
916
+ * @memberof Receipt
917
+ */
918
+ 'hashed_receipt'?: string;
919
+ /**
920
+ *
921
+ * @type {string}
922
+ * @memberof Receipt
923
+ */
924
+ 'redeemed_at'?: string;
640
925
  }
641
926
 
642
927
 
@@ -651,12 +936,32 @@ export const ReceiptStatus = {
651
936
  Success: 'SUCCESS',
652
937
  Pending: 'PENDING',
653
938
  Dispute: 'DISPUTE',
654
- Redeemed: 'REDEEMED'
939
+ Redeemed: 'REDEEMED',
940
+ Processing: 'PROCESSING'
655
941
  } as const;
656
942
 
657
943
  export type ReceiptStatus = typeof ReceiptStatus[keyof typeof ReceiptStatus];
658
944
 
659
945
 
946
+ /**
947
+ *
948
+ * @export
949
+ * @interface ResponseDataGetParkingDetailResponse
950
+ */
951
+ export interface ResponseDataGetParkingDetailResponse {
952
+ /**
953
+ *
954
+ * @type {GetParkingDetailResponse}
955
+ * @memberof ResponseDataGetParkingDetailResponse
956
+ */
957
+ 'data': GetParkingDetailResponse;
958
+ /**
959
+ *
960
+ * @type {Pagination}
961
+ * @memberof ResponseDataGetParkingDetailResponse
962
+ */
963
+ 'pagination'?: Pagination;
964
+ }
660
965
  /**
661
966
  *
662
967
  * @export
@@ -799,74 +1104,155 @@ export interface UpdateConfigStoreWhitelist {
799
1104
  * @memberof UpdateConfigStoreWhitelist
800
1105
  */
801
1106
  'updated_by'?: string;
1107
+ /**
1108
+ *
1109
+ * @type {boolean}
1110
+ * @memberof UpdateConfigStoreWhitelist
1111
+ */
1112
+ 'receipt_address_in_obk'?: boolean;
1113
+ /**
1114
+ *
1115
+ * @type {boolean}
1116
+ * @memberof UpdateConfigStoreWhitelist
1117
+ */
1118
+ 'has_tax_id'?: boolean;
802
1119
  /**
803
1120
  *
804
1121
  * @type {string}
805
1122
  * @memberof UpdateConfigStoreWhitelist
806
1123
  */
807
- 'property_id'?: string;
1124
+ 'building'?: string;
808
1125
  /**
809
1126
  *
810
1127
  * @type {string}
811
1128
  * @memberof UpdateConfigStoreWhitelist
812
1129
  */
813
- 'sort_direction'?: string;
1130
+ 'address'?: string;
814
1131
  /**
815
1132
  *
816
1133
  * @type {string}
817
1134
  * @memberof UpdateConfigStoreWhitelist
818
1135
  */
819
- 'sort_key'?: string;
1136
+ 'unit_no'?: string;
820
1137
  /**
821
1138
  *
822
- * @type {boolean}
1139
+ * @type {string}
823
1140
  * @memberof UpdateConfigStoreWhitelist
824
1141
  */
825
- 'receipt_address_in_obk'?: boolean;
1142
+ 'property_id'?: string;
826
1143
  /**
827
1144
  *
828
- * @type {boolean}
1145
+ * @type {string}
829
1146
  * @memberof UpdateConfigStoreWhitelist
830
1147
  */
831
- 'has_tax_id'?: boolean;
1148
+ 'company_name'?: string;
1149
+ /**
1150
+ *
1151
+ * @type {string}
1152
+ * @memberof UpdateConfigStoreWhitelist
1153
+ */
1154
+ 'store_name'?: string;
1155
+ /**
1156
+ *
1157
+ * @type {string}
1158
+ * @memberof UpdateConfigStoreWhitelist
1159
+ */
1160
+ 'tax_id'?: string;
1161
+ }
1162
+ /**
1163
+ *
1164
+ * @export
1165
+ * @interface UpdateReceiptBody
1166
+ */
1167
+ export interface UpdateReceiptBody {
1168
+ /**
1169
+ *
1170
+ * @type {string}
1171
+ * @memberof UpdateReceiptBody
1172
+ */
1173
+ 'id': string;
1174
+ /**
1175
+ *
1176
+ * @type {string}
1177
+ * @memberof UpdateReceiptBody
1178
+ */
1179
+ 'merchant_name': string;
1180
+ /**
1181
+ *
1182
+ * @type {string}
1183
+ * @memberof UpdateReceiptBody
1184
+ */
1185
+ 'transaction_date': string;
1186
+ /**
1187
+ *
1188
+ * @type {string}
1189
+ * @memberof UpdateReceiptBody
1190
+ */
1191
+ 'transaction_time': string;
1192
+ /**
1193
+ *
1194
+ * @type {Array<Item>}
1195
+ * @memberof UpdateReceiptBody
1196
+ */
1197
+ 'items': Array<Item>;
1198
+ /**
1199
+ *
1200
+ * @type {string}
1201
+ * @memberof UpdateReceiptBody
1202
+ */
1203
+ 'total': string;
1204
+ /**
1205
+ *
1206
+ * @type {string}
1207
+ * @memberof UpdateReceiptBody
1208
+ */
1209
+ 'tax_id': string;
832
1210
  /**
833
1211
  *
834
1212
  * @type {string}
835
- * @memberof UpdateConfigStoreWhitelist
1213
+ * @memberof UpdateReceiptBody
836
1214
  */
837
- 'building'?: string;
1215
+ 'receipt_no': string;
838
1216
  /**
839
1217
  *
840
1218
  * @type {string}
841
- * @memberof UpdateConfigStoreWhitelist
1219
+ * @memberof UpdateReceiptBody
842
1220
  */
843
- 'address'?: string;
1221
+ 'address': string;
844
1222
  /**
845
1223
  *
846
1224
  * @type {string}
847
- * @memberof UpdateConfigStoreWhitelist
1225
+ * @memberof UpdateReceiptBody
848
1226
  */
849
- 'unit_no'?: string;
1227
+ 'unit_no': string;
850
1228
  /**
851
1229
  *
852
1230
  * @type {string}
853
- * @memberof UpdateConfigStoreWhitelist
1231
+ * @memberof UpdateReceiptBody
854
1232
  */
855
- 'company_name'?: string;
1233
+ 'mall_name': string;
856
1234
  /**
857
1235
  *
858
1236
  * @type {string}
859
- * @memberof UpdateConfigStoreWhitelist
1237
+ * @memberof UpdateReceiptBody
860
1238
  */
861
- 'store_name'?: string;
1239
+ 'hashed_receipt': string;
1240
+ /**
1241
+ *
1242
+ * @type {ReceiptStatus}
1243
+ * @memberof UpdateReceiptBody
1244
+ */
1245
+ 'status': ReceiptStatus;
862
1246
  /**
863
1247
  *
864
1248
  * @type {string}
865
- * @memberof UpdateConfigStoreWhitelist
1249
+ * @memberof UpdateReceiptBody
866
1250
  */
867
- 'tax_id'?: string;
1251
+ 'message': string;
868
1252
  }
869
1253
 
1254
+
1255
+
870
1256
  /**
871
1257
  * DefaultApi - axios parameter creator
872
1258
  * @export
@@ -1701,10 +2087,16 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1701
2087
  /**
1702
2088
  *
1703
2089
  * @param {string} id
2090
+ * @param {string} [orderBy]
2091
+ * @param {string} [orderDirection]
2092
+ * @param {number} [pageNumber]
2093
+ * @param {number} [pageSize]
2094
+ * @param {string} [filterBy]
2095
+ * @param {string} [filterKey]
1704
2096
  * @param {*} [options] Override http request option.
1705
2097
  * @throws {RequiredError}
1706
2098
  */
1707
- parkingDetailsGetParkingDetail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2099
+ parkingDetailsGetParkingDetail: async (id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1708
2100
  // verify required parameter 'id' is not null or undefined
1709
2101
  assertParamExists('parkingDetailsGetParkingDetail', 'id', id)
1710
2102
  const localVarPath = `/parking-details/{id}`
@@ -1720,6 +2112,30 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1720
2112
  const localVarHeaderParameter = {} as any;
1721
2113
  const localVarQueryParameter = {} as any;
1722
2114
 
2115
+ if (orderBy !== undefined) {
2116
+ localVarQueryParameter['order_by'] = orderBy;
2117
+ }
2118
+
2119
+ if (orderDirection !== undefined) {
2120
+ localVarQueryParameter['order_direction'] = orderDirection;
2121
+ }
2122
+
2123
+ if (pageNumber !== undefined) {
2124
+ localVarQueryParameter['page_number'] = pageNumber;
2125
+ }
2126
+
2127
+ if (pageSize !== undefined) {
2128
+ localVarQueryParameter['page_size'] = pageSize;
2129
+ }
2130
+
2131
+ if (filterBy !== undefined) {
2132
+ localVarQueryParameter['filter_by'] = filterBy;
2133
+ }
2134
+
2135
+ if (filterKey !== undefined) {
2136
+ localVarQueryParameter['filter_key'] = filterKey;
2137
+ }
2138
+
1723
2139
 
1724
2140
 
1725
2141
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1805,6 +2221,155 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
1805
2221
  options: localVarRequestOptions,
1806
2222
  };
1807
2223
  },
2224
+ /**
2225
+ *
2226
+ * @param {string} [id]
2227
+ * @param {string} [receiptHashedId]
2228
+ * @param {string} [userId]
2229
+ * @param {ReceiptStatus} [status]
2230
+ * @param {string} [content]
2231
+ * @param {string} [redeemedAt]
2232
+ * @param {string} [createdAt]
2233
+ * @param {string} [total]
2234
+ * @param {string} [parkingId]
2235
+ * @param {*} [options] Override http request option.
2236
+ * @throws {RequiredError}
2237
+ */
2238
+ receiptAll: async (id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2239
+ const localVarPath = `/receipt/all`;
2240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2241
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2242
+ let baseOptions;
2243
+ if (configuration) {
2244
+ baseOptions = configuration.baseOptions;
2245
+ }
2246
+
2247
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
2248
+ const localVarHeaderParameter = {} as any;
2249
+ const localVarQueryParameter = {} as any;
2250
+
2251
+ if (id !== undefined) {
2252
+ localVarQueryParameter['id'] = id;
2253
+ }
2254
+
2255
+ if (receiptHashedId !== undefined) {
2256
+ localVarQueryParameter['receipt_hashed_id'] = receiptHashedId;
2257
+ }
2258
+
2259
+ if (userId !== undefined) {
2260
+ localVarQueryParameter['user_id'] = userId;
2261
+ }
2262
+
2263
+ if (status !== undefined) {
2264
+ localVarQueryParameter['status'] = status;
2265
+ }
2266
+
2267
+ if (content !== undefined) {
2268
+ localVarQueryParameter['content'] = content;
2269
+ }
2270
+
2271
+ if (redeemedAt !== undefined) {
2272
+ localVarQueryParameter['redeemed_at'] = redeemedAt;
2273
+ }
2274
+
2275
+ if (createdAt !== undefined) {
2276
+ localVarQueryParameter['created_at'] = createdAt;
2277
+ }
2278
+
2279
+ if (total !== undefined) {
2280
+ localVarQueryParameter['total'] = total;
2281
+ }
2282
+
2283
+ if (parkingId !== undefined) {
2284
+ localVarQueryParameter['parking_id'] = parkingId;
2285
+ }
2286
+
2287
+
2288
+
2289
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2290
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2291
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2292
+
2293
+ return {
2294
+ url: toPathString(localVarUrlObj),
2295
+ options: localVarRequestOptions,
2296
+ };
2297
+ },
2298
+ /**
2299
+ *
2300
+ * @param {CreateReceiptBody} createReceiptBody
2301
+ * @param {string} [xAccountId]
2302
+ * @param {*} [options] Override http request option.
2303
+ * @throws {RequiredError}
2304
+ */
2305
+ receiptCreateReceipt: async (createReceiptBody: CreateReceiptBody, xAccountId?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2306
+ // verify required parameter 'createReceiptBody' is not null or undefined
2307
+ assertParamExists('receiptCreateReceipt', 'createReceiptBody', createReceiptBody)
2308
+ const localVarPath = `/receipt/create-receipt`;
2309
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2310
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2311
+ let baseOptions;
2312
+ if (configuration) {
2313
+ baseOptions = configuration.baseOptions;
2314
+ }
2315
+
2316
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
2317
+ const localVarHeaderParameter = {} as any;
2318
+ const localVarQueryParameter = {} as any;
2319
+
2320
+ if (xAccountId != null) {
2321
+ localVarHeaderParameter['x-account-id'] = String(xAccountId);
2322
+ }
2323
+
2324
+
2325
+
2326
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2327
+
2328
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2329
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2330
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2331
+ localVarRequestOptions.data = serializeDataIfNeeded(createReceiptBody, localVarRequestOptions, configuration)
2332
+
2333
+ return {
2334
+ url: toPathString(localVarUrlObj),
2335
+ options: localVarRequestOptions,
2336
+ };
2337
+ },
2338
+ /**
2339
+ *
2340
+ * @param {UpdateReceiptBody} updateReceiptBody
2341
+ * @param {*} [options] Override http request option.
2342
+ * @throws {RequiredError}
2343
+ */
2344
+ receiptUpdateReceipt: async (updateReceiptBody: UpdateReceiptBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
2345
+ // verify required parameter 'updateReceiptBody' is not null or undefined
2346
+ assertParamExists('receiptUpdateReceipt', 'updateReceiptBody', updateReceiptBody)
2347
+ const localVarPath = `/receipt/update-receipt`;
2348
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2349
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2350
+ let baseOptions;
2351
+ if (configuration) {
2352
+ baseOptions = configuration.baseOptions;
2353
+ }
2354
+
2355
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
2356
+ const localVarHeaderParameter = {} as any;
2357
+ const localVarQueryParameter = {} as any;
2358
+
2359
+
2360
+
2361
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2362
+
2363
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2364
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2365
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
2366
+ localVarRequestOptions.data = serializeDataIfNeeded(updateReceiptBody, localVarRequestOptions, configuration)
2367
+
2368
+ return {
2369
+ url: toPathString(localVarUrlObj),
2370
+ options: localVarRequestOptions,
2371
+ };
2372
+ },
1808
2373
  /**
1809
2374
  *
1810
2375
  * @param {*} [options] Override http request option.
@@ -2082,11 +2647,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2082
2647
  /**
2083
2648
  *
2084
2649
  * @param {string} id
2650
+ * @param {string} [orderBy]
2651
+ * @param {string} [orderDirection]
2652
+ * @param {number} [pageNumber]
2653
+ * @param {number} [pageSize]
2654
+ * @param {string} [filterBy]
2655
+ * @param {string} [filterKey]
2085
2656
  * @param {*} [options] Override http request option.
2086
2657
  * @throws {RequiredError}
2087
2658
  */
2088
- async parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetParkingDetailResponse>> {
2089
- const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsGetParkingDetail(id, options);
2659
+ 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>> {
2660
+ const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options);
2090
2661
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2091
2662
  },
2092
2663
  /**
@@ -2107,6 +2678,45 @@ export const DefaultApiFp = function(configuration?: Configuration) {
2107
2678
  const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options);
2108
2679
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2109
2680
  },
2681
+ /**
2682
+ *
2683
+ * @param {string} [id]
2684
+ * @param {string} [receiptHashedId]
2685
+ * @param {string} [userId]
2686
+ * @param {ReceiptStatus} [status]
2687
+ * @param {string} [content]
2688
+ * @param {string} [redeemedAt]
2689
+ * @param {string} [createdAt]
2690
+ * @param {string} [total]
2691
+ * @param {string} [parkingId]
2692
+ * @param {*} [options] Override http request option.
2693
+ * @throws {RequiredError}
2694
+ */
2695
+ 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>>> {
2696
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options);
2697
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2698
+ },
2699
+ /**
2700
+ *
2701
+ * @param {CreateReceiptBody} createReceiptBody
2702
+ * @param {string} [xAccountId]
2703
+ * @param {*} [options] Override http request option.
2704
+ * @throws {RequiredError}
2705
+ */
2706
+ async receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptCreateReceipt(createReceiptBody, xAccountId, options);
2708
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2709
+ },
2710
+ /**
2711
+ *
2712
+ * @param {UpdateReceiptBody} updateReceiptBody
2713
+ * @param {*} [options] Override http request option.
2714
+ * @throws {RequiredError}
2715
+ */
2716
+ async receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
2717
+ const localVarAxiosArgs = await localVarAxiosParamCreator.receiptUpdateReceipt(updateReceiptBody, options);
2718
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2719
+ },
2110
2720
  /**
2111
2721
  *
2112
2722
  * @param {*} [options] Override http request option.
@@ -2342,11 +2952,17 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2342
2952
  /**
2343
2953
  *
2344
2954
  * @param {string} id
2955
+ * @param {string} [orderBy]
2956
+ * @param {string} [orderDirection]
2957
+ * @param {number} [pageNumber]
2958
+ * @param {number} [pageSize]
2959
+ * @param {string} [filterBy]
2960
+ * @param {string} [filterKey]
2345
2961
  * @param {*} [options] Override http request option.
2346
2962
  * @throws {RequiredError}
2347
2963
  */
2348
- parkingDetailsGetParkingDetail(id: string, options?: any): AxiosPromise<GetParkingDetailResponse> {
2349
- return localVarFp.parkingDetailsGetParkingDetail(id, options).then((request) => request(axios, basePath));
2964
+ parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: any): AxiosPromise<ResponseDataGetParkingDetailResponse> {
2965
+ return localVarFp.parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options).then((request) => request(axios, basePath));
2350
2966
  },
2351
2967
  /**
2352
2968
  *
@@ -2365,6 +2981,42 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
2365
2981
  parkingDetailsIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, status?: ParkingDetailStatus, options?: any): AxiosPromise<ResponseDataGetParkingDetailsIndexResponseArray> {
2366
2982
  return localVarFp.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(axios, basePath));
2367
2983
  },
2984
+ /**
2985
+ *
2986
+ * @param {string} [id]
2987
+ * @param {string} [receiptHashedId]
2988
+ * @param {string} [userId]
2989
+ * @param {ReceiptStatus} [status]
2990
+ * @param {string} [content]
2991
+ * @param {string} [redeemedAt]
2992
+ * @param {string} [createdAt]
2993
+ * @param {string} [total]
2994
+ * @param {string} [parkingId]
2995
+ * @param {*} [options] Override http request option.
2996
+ * @throws {RequiredError}
2997
+ */
2998
+ receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: any): AxiosPromise<Array<GetAllReceiptResponse>> {
2999
+ return localVarFp.receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options).then((request) => request(axios, basePath));
3000
+ },
3001
+ /**
3002
+ *
3003
+ * @param {CreateReceiptBody} createReceiptBody
3004
+ * @param {string} [xAccountId]
3005
+ * @param {*} [options] Override http request option.
3006
+ * @throws {RequiredError}
3007
+ */
3008
+ receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: any): AxiosPromise<boolean> {
3009
+ return localVarFp.receiptCreateReceipt(createReceiptBody, xAccountId, options).then((request) => request(axios, basePath));
3010
+ },
3011
+ /**
3012
+ *
3013
+ * @param {UpdateReceiptBody} updateReceiptBody
3014
+ * @param {*} [options] Override http request option.
3015
+ * @throws {RequiredError}
3016
+ */
3017
+ receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: any): AxiosPromise<boolean> {
3018
+ return localVarFp.receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(axios, basePath));
3019
+ },
2368
3020
  /**
2369
3021
  *
2370
3022
  * @param {*} [options] Override http request option.
@@ -2643,12 +3295,18 @@ export class DefaultApi extends BaseAPI {
2643
3295
  /**
2644
3296
  *
2645
3297
  * @param {string} id
3298
+ * @param {string} [orderBy]
3299
+ * @param {string} [orderDirection]
3300
+ * @param {number} [pageNumber]
3301
+ * @param {number} [pageSize]
3302
+ * @param {string} [filterBy]
3303
+ * @param {string} [filterKey]
2646
3304
  * @param {*} [options] Override http request option.
2647
3305
  * @throws {RequiredError}
2648
3306
  * @memberof DefaultApi
2649
3307
  */
2650
- public parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig) {
2651
- return DefaultApiFp(this.configuration).parkingDetailsGetParkingDetail(id, options).then((request) => request(this.axios, this.basePath));
3308
+ public parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: AxiosRequestConfig) {
3309
+ return DefaultApiFp(this.configuration).parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options).then((request) => request(this.axios, this.basePath));
2652
3310
  }
2653
3311
 
2654
3312
  /**
@@ -2670,6 +3328,48 @@ export class DefaultApi extends BaseAPI {
2670
3328
  return DefaultApiFp(this.configuration).parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(this.axios, this.basePath));
2671
3329
  }
2672
3330
 
3331
+ /**
3332
+ *
3333
+ * @param {string} [id]
3334
+ * @param {string} [receiptHashedId]
3335
+ * @param {string} [userId]
3336
+ * @param {ReceiptStatus} [status]
3337
+ * @param {string} [content]
3338
+ * @param {string} [redeemedAt]
3339
+ * @param {string} [createdAt]
3340
+ * @param {string} [total]
3341
+ * @param {string} [parkingId]
3342
+ * @param {*} [options] Override http request option.
3343
+ * @throws {RequiredError}
3344
+ * @memberof DefaultApi
3345
+ */
3346
+ public receiptAll(id?: string, receiptHashedId?: string, userId?: string, status?: ReceiptStatus, content?: string, redeemedAt?: string, createdAt?: string, total?: string, parkingId?: string, options?: AxiosRequestConfig) {
3347
+ return DefaultApiFp(this.configuration).receiptAll(id, receiptHashedId, userId, status, content, redeemedAt, createdAt, total, parkingId, options).then((request) => request(this.axios, this.basePath));
3348
+ }
3349
+
3350
+ /**
3351
+ *
3352
+ * @param {CreateReceiptBody} createReceiptBody
3353
+ * @param {string} [xAccountId]
3354
+ * @param {*} [options] Override http request option.
3355
+ * @throws {RequiredError}
3356
+ * @memberof DefaultApi
3357
+ */
3358
+ public receiptCreateReceipt(createReceiptBody: CreateReceiptBody, xAccountId?: string, options?: AxiosRequestConfig) {
3359
+ return DefaultApiFp(this.configuration).receiptCreateReceipt(createReceiptBody, xAccountId, options).then((request) => request(this.axios, this.basePath));
3360
+ }
3361
+
3362
+ /**
3363
+ *
3364
+ * @param {UpdateReceiptBody} updateReceiptBody
3365
+ * @param {*} [options] Override http request option.
3366
+ * @throws {RequiredError}
3367
+ * @memberof DefaultApi
3368
+ */
3369
+ public receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig) {
3370
+ return DefaultApiFp(this.configuration).receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(this.axios, this.basePath));
3371
+ }
3372
+
2673
3373
  /**
2674
3374
  *
2675
3375
  * @param {*} [options] Override http request option.