ob-parking-sdk 0.0.4 → 0.0.6
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 +422 -19
- package/dist/api/api.d.ts +317 -16
- package/dist/api/api.js +185 -14
- package/package.json +1 -1
package/api/api.ts
CHANGED
|
@@ -71,6 +71,80 @@ export const AddParkingTicketType = {
|
|
|
71
71
|
export type AddParkingTicketType = typeof AddParkingTicketType[keyof typeof AddParkingTicketType];
|
|
72
72
|
|
|
73
73
|
|
|
74
|
+
/**
|
|
75
|
+
*
|
|
76
|
+
* @export
|
|
77
|
+
* @interface CreateReceiptBody
|
|
78
|
+
*/
|
|
79
|
+
export interface CreateReceiptBody {
|
|
80
|
+
/**
|
|
81
|
+
*
|
|
82
|
+
* @type {string}
|
|
83
|
+
* @memberof CreateReceiptBody
|
|
84
|
+
*/
|
|
85
|
+
'parkingDetailId': string;
|
|
86
|
+
/**
|
|
87
|
+
*
|
|
88
|
+
* @type {string}
|
|
89
|
+
* @memberof CreateReceiptBody
|
|
90
|
+
*/
|
|
91
|
+
'imageUrl': string;
|
|
92
|
+
/**
|
|
93
|
+
*
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof CreateReceiptBody
|
|
96
|
+
*/
|
|
97
|
+
'email'?: string;
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
* @type {string}
|
|
101
|
+
* @memberof CreateReceiptBody
|
|
102
|
+
*/
|
|
103
|
+
'hashed_receipt': string;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
*
|
|
107
|
+
* @export
|
|
108
|
+
* @interface GetParkingDetaiQuery
|
|
109
|
+
*/
|
|
110
|
+
export interface GetParkingDetaiQuery {
|
|
111
|
+
/**
|
|
112
|
+
*
|
|
113
|
+
* @type {string}
|
|
114
|
+
* @memberof GetParkingDetaiQuery
|
|
115
|
+
*/
|
|
116
|
+
'order_by'?: string;
|
|
117
|
+
/**
|
|
118
|
+
*
|
|
119
|
+
* @type {string}
|
|
120
|
+
* @memberof GetParkingDetaiQuery
|
|
121
|
+
*/
|
|
122
|
+
'order_direction'?: string;
|
|
123
|
+
/**
|
|
124
|
+
*
|
|
125
|
+
* @type {number}
|
|
126
|
+
* @memberof GetParkingDetaiQuery
|
|
127
|
+
*/
|
|
128
|
+
'page_number'?: number;
|
|
129
|
+
/**
|
|
130
|
+
*
|
|
131
|
+
* @type {number}
|
|
132
|
+
* @memberof GetParkingDetaiQuery
|
|
133
|
+
*/
|
|
134
|
+
'page_size'?: number;
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* @type {string}
|
|
138
|
+
* @memberof GetParkingDetaiQuery
|
|
139
|
+
*/
|
|
140
|
+
'filter_by'?: string;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
* @type {string}
|
|
144
|
+
* @memberof GetParkingDetaiQuery
|
|
145
|
+
*/
|
|
146
|
+
'filter_key'?: string;
|
|
147
|
+
}
|
|
74
148
|
/**
|
|
75
149
|
*
|
|
76
150
|
* @export
|
|
@@ -152,6 +226,12 @@ export interface GetParkingDetailResponse {
|
|
|
152
226
|
* @memberof GetParkingDetailResponse
|
|
153
227
|
*/
|
|
154
228
|
'parkingTicket': string;
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @type {string}
|
|
232
|
+
* @memberof GetParkingDetailResponse
|
|
233
|
+
*/
|
|
234
|
+
'licenssePlate': string;
|
|
155
235
|
/**
|
|
156
236
|
*
|
|
157
237
|
* @type {ParkingAccountDetail}
|
|
@@ -170,6 +250,12 @@ export interface GetParkingDetailResponse {
|
|
|
170
250
|
* @memberof GetParkingDetailResponse
|
|
171
251
|
*/
|
|
172
252
|
'receipts': Array<Receipt>;
|
|
253
|
+
/**
|
|
254
|
+
*
|
|
255
|
+
* @type {string}
|
|
256
|
+
* @memberof GetParkingDetailResponse
|
|
257
|
+
*/
|
|
258
|
+
'redeemed_at': string;
|
|
173
259
|
}
|
|
174
260
|
/**
|
|
175
261
|
*
|
|
@@ -206,7 +292,7 @@ export interface GetParkingDetailsIndexResponse {
|
|
|
206
292
|
* @type {string}
|
|
207
293
|
* @memberof GetParkingDetailsIndexResponse
|
|
208
294
|
*/
|
|
209
|
-
'
|
|
295
|
+
'redeemed_at': string;
|
|
210
296
|
/**
|
|
211
297
|
*
|
|
212
298
|
* @type {ParkingDetailStatus}
|
|
@@ -216,6 +302,31 @@ export interface GetParkingDetailsIndexResponse {
|
|
|
216
302
|
}
|
|
217
303
|
|
|
218
304
|
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @export
|
|
308
|
+
* @interface Item
|
|
309
|
+
*/
|
|
310
|
+
export interface Item {
|
|
311
|
+
/**
|
|
312
|
+
*
|
|
313
|
+
* @type {string}
|
|
314
|
+
* @memberof Item
|
|
315
|
+
*/
|
|
316
|
+
'description': string;
|
|
317
|
+
/**
|
|
318
|
+
*
|
|
319
|
+
* @type {number}
|
|
320
|
+
* @memberof Item
|
|
321
|
+
*/
|
|
322
|
+
'quantity': number;
|
|
323
|
+
/**
|
|
324
|
+
*
|
|
325
|
+
* @type {string}
|
|
326
|
+
* @memberof Item
|
|
327
|
+
*/
|
|
328
|
+
'total_price': string;
|
|
329
|
+
}
|
|
219
330
|
/**
|
|
220
331
|
*
|
|
221
332
|
* @export
|
|
@@ -264,19 +375,19 @@ export interface ParkingAccountDetail {
|
|
|
264
375
|
* @type {string}
|
|
265
376
|
* @memberof ParkingAccountDetail
|
|
266
377
|
*/
|
|
267
|
-
'
|
|
378
|
+
'username': string;
|
|
268
379
|
/**
|
|
269
380
|
*
|
|
270
381
|
* @type {string}
|
|
271
382
|
* @memberof ParkingAccountDetail
|
|
272
383
|
*/
|
|
273
|
-
'
|
|
384
|
+
'email': string;
|
|
274
385
|
/**
|
|
275
386
|
*
|
|
276
387
|
* @type {string}
|
|
277
388
|
* @memberof ParkingAccountDetail
|
|
278
389
|
*/
|
|
279
|
-
'
|
|
390
|
+
'phone': string;
|
|
280
391
|
}
|
|
281
392
|
/**
|
|
282
393
|
*
|
|
@@ -285,8 +396,8 @@ export interface ParkingAccountDetail {
|
|
|
285
396
|
*/
|
|
286
397
|
|
|
287
398
|
export const ParkingDetailStatus = {
|
|
288
|
-
Active: '
|
|
289
|
-
Dispute: '
|
|
399
|
+
Active: 'ACTIVE',
|
|
400
|
+
Dispute: 'DISPUTE'
|
|
290
401
|
} as const;
|
|
291
402
|
|
|
292
403
|
export type ParkingDetailStatus = typeof ParkingDetailStatus[keyof typeof ParkingDetailStatus];
|
|
@@ -309,7 +420,7 @@ export interface Receipt {
|
|
|
309
420
|
* @type {string}
|
|
310
421
|
* @memberof Receipt
|
|
311
422
|
*/
|
|
312
|
-
'
|
|
423
|
+
'total': string;
|
|
313
424
|
/**
|
|
314
425
|
*
|
|
315
426
|
* @type {string}
|
|
@@ -350,16 +461,35 @@ export interface Receipt {
|
|
|
350
461
|
*/
|
|
351
462
|
|
|
352
463
|
export const ReceiptStatus = {
|
|
353
|
-
Declined: '
|
|
354
|
-
Success: '
|
|
355
|
-
Pending: '
|
|
356
|
-
Dispute: '
|
|
357
|
-
Redeemed: '
|
|
464
|
+
Declined: 'DECLINED',
|
|
465
|
+
Success: 'SUCCESS',
|
|
466
|
+
Pending: 'PENDING',
|
|
467
|
+
Dispute: 'DISPUTE',
|
|
468
|
+
Redeemed: 'REDEEMED'
|
|
358
469
|
} as const;
|
|
359
470
|
|
|
360
471
|
export type ReceiptStatus = typeof ReceiptStatus[keyof typeof ReceiptStatus];
|
|
361
472
|
|
|
362
473
|
|
|
474
|
+
/**
|
|
475
|
+
*
|
|
476
|
+
* @export
|
|
477
|
+
* @interface ResponseDataGetParkingDetailResponse
|
|
478
|
+
*/
|
|
479
|
+
export interface ResponseDataGetParkingDetailResponse {
|
|
480
|
+
/**
|
|
481
|
+
*
|
|
482
|
+
* @type {GetParkingDetailResponse}
|
|
483
|
+
* @memberof ResponseDataGetParkingDetailResponse
|
|
484
|
+
*/
|
|
485
|
+
'data': GetParkingDetailResponse;
|
|
486
|
+
/**
|
|
487
|
+
*
|
|
488
|
+
* @type {Pagination}
|
|
489
|
+
* @memberof ResponseDataGetParkingDetailResponse
|
|
490
|
+
*/
|
|
491
|
+
'pagination'?: Pagination;
|
|
492
|
+
}
|
|
363
493
|
/**
|
|
364
494
|
*
|
|
365
495
|
* @export
|
|
@@ -392,6 +522,91 @@ export interface TestTest200Response {
|
|
|
392
522
|
*/
|
|
393
523
|
'status': string;
|
|
394
524
|
}
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @export
|
|
528
|
+
* @interface UpdateReceiptBody
|
|
529
|
+
*/
|
|
530
|
+
export interface UpdateReceiptBody {
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof UpdateReceiptBody
|
|
535
|
+
*/
|
|
536
|
+
'merchant_name': string;
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* @type {string}
|
|
540
|
+
* @memberof UpdateReceiptBody
|
|
541
|
+
*/
|
|
542
|
+
'transaction_date': string;
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @type {string}
|
|
546
|
+
* @memberof UpdateReceiptBody
|
|
547
|
+
*/
|
|
548
|
+
'transaction_time': string;
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @type {Array<Item>}
|
|
552
|
+
* @memberof UpdateReceiptBody
|
|
553
|
+
*/
|
|
554
|
+
'items': Array<Item>;
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @type {string}
|
|
558
|
+
* @memberof UpdateReceiptBody
|
|
559
|
+
*/
|
|
560
|
+
'total': string;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {string}
|
|
564
|
+
* @memberof UpdateReceiptBody
|
|
565
|
+
*/
|
|
566
|
+
'tax_id': string;
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @type {string}
|
|
570
|
+
* @memberof UpdateReceiptBody
|
|
571
|
+
*/
|
|
572
|
+
'receipt_no': string;
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof UpdateReceiptBody
|
|
577
|
+
*/
|
|
578
|
+
'address': string;
|
|
579
|
+
/**
|
|
580
|
+
*
|
|
581
|
+
* @type {string}
|
|
582
|
+
* @memberof UpdateReceiptBody
|
|
583
|
+
*/
|
|
584
|
+
'unit_no': string;
|
|
585
|
+
/**
|
|
586
|
+
*
|
|
587
|
+
* @type {string}
|
|
588
|
+
* @memberof UpdateReceiptBody
|
|
589
|
+
*/
|
|
590
|
+
'mall_name': string;
|
|
591
|
+
/**
|
|
592
|
+
*
|
|
593
|
+
* @type {string}
|
|
594
|
+
* @memberof UpdateReceiptBody
|
|
595
|
+
*/
|
|
596
|
+
'hashed_receipt': string;
|
|
597
|
+
/**
|
|
598
|
+
*
|
|
599
|
+
* @type {string}
|
|
600
|
+
* @memberof UpdateReceiptBody
|
|
601
|
+
*/
|
|
602
|
+
'status': string;
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @type {string}
|
|
606
|
+
* @memberof UpdateReceiptBody
|
|
607
|
+
*/
|
|
608
|
+
'message': string;
|
|
609
|
+
}
|
|
395
610
|
|
|
396
611
|
/**
|
|
397
612
|
* DefaultApi - axios parameter creator
|
|
@@ -450,10 +665,16 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
450
665
|
/**
|
|
451
666
|
*
|
|
452
667
|
* @param {string} id
|
|
668
|
+
* @param {string} [orderBy]
|
|
669
|
+
* @param {string} [orderDirection]
|
|
670
|
+
* @param {number} [pageNumber]
|
|
671
|
+
* @param {number} [pageSize]
|
|
672
|
+
* @param {string} [filterBy]
|
|
673
|
+
* @param {string} [filterKey]
|
|
453
674
|
* @param {*} [options] Override http request option.
|
|
454
675
|
* @throws {RequiredError}
|
|
455
676
|
*/
|
|
456
|
-
parkingDetailsGetParkingDetail: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
677
|
+
parkingDetailsGetParkingDetail: async (id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
457
678
|
// verify required parameter 'id' is not null or undefined
|
|
458
679
|
assertParamExists('parkingDetailsGetParkingDetail', 'id', id)
|
|
459
680
|
const localVarPath = `/parking-details/{id}`
|
|
@@ -469,6 +690,30 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
469
690
|
const localVarHeaderParameter = {} as any;
|
|
470
691
|
const localVarQueryParameter = {} as any;
|
|
471
692
|
|
|
693
|
+
if (orderBy !== undefined) {
|
|
694
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
695
|
+
}
|
|
696
|
+
|
|
697
|
+
if (orderDirection !== undefined) {
|
|
698
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
if (pageNumber !== undefined) {
|
|
702
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
if (pageSize !== undefined) {
|
|
706
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
if (filterBy !== undefined) {
|
|
710
|
+
localVarQueryParameter['filter_by'] = filterBy;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
if (filterKey !== undefined) {
|
|
714
|
+
localVarQueryParameter['filter_key'] = filterKey;
|
|
715
|
+
}
|
|
716
|
+
|
|
472
717
|
|
|
473
718
|
|
|
474
719
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -554,6 +799,83 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
554
799
|
options: localVarRequestOptions,
|
|
555
800
|
};
|
|
556
801
|
},
|
|
802
|
+
/**
|
|
803
|
+
*
|
|
804
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
805
|
+
* @param {*} [options] Override http request option.
|
|
806
|
+
* @throws {RequiredError}
|
|
807
|
+
*/
|
|
808
|
+
receiptUpdateReceipt: async (updateReceiptBody: UpdateReceiptBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
809
|
+
// verify required parameter 'updateReceiptBody' is not null or undefined
|
|
810
|
+
assertParamExists('receiptUpdateReceipt', 'updateReceiptBody', updateReceiptBody)
|
|
811
|
+
const localVarPath = `/receipts/update-receipt`;
|
|
812
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
813
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
814
|
+
let baseOptions;
|
|
815
|
+
if (configuration) {
|
|
816
|
+
baseOptions = configuration.baseOptions;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
820
|
+
const localVarHeaderParameter = {} as any;
|
|
821
|
+
const localVarQueryParameter = {} as any;
|
|
822
|
+
|
|
823
|
+
|
|
824
|
+
|
|
825
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
826
|
+
|
|
827
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
828
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
829
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
830
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateReceiptBody, localVarRequestOptions, configuration)
|
|
831
|
+
|
|
832
|
+
return {
|
|
833
|
+
url: toPathString(localVarUrlObj),
|
|
834
|
+
options: localVarRequestOptions,
|
|
835
|
+
};
|
|
836
|
+
},
|
|
837
|
+
/**
|
|
838
|
+
*
|
|
839
|
+
* @param {string} xAccountId
|
|
840
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
*/
|
|
844
|
+
receiptsCreateReceipt: async (xAccountId: string, createReceiptBody: CreateReceiptBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
845
|
+
// verify required parameter 'xAccountId' is not null or undefined
|
|
846
|
+
assertParamExists('receiptsCreateReceipt', 'xAccountId', xAccountId)
|
|
847
|
+
// verify required parameter 'createReceiptBody' is not null or undefined
|
|
848
|
+
assertParamExists('receiptsCreateReceipt', 'createReceiptBody', createReceiptBody)
|
|
849
|
+
const localVarPath = `/receipts/create-receipt`;
|
|
850
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
851
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
852
|
+
let baseOptions;
|
|
853
|
+
if (configuration) {
|
|
854
|
+
baseOptions = configuration.baseOptions;
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
858
|
+
const localVarHeaderParameter = {} as any;
|
|
859
|
+
const localVarQueryParameter = {} as any;
|
|
860
|
+
|
|
861
|
+
if (xAccountId != null) {
|
|
862
|
+
localVarHeaderParameter['x-account-id'] = String(xAccountId);
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
868
|
+
|
|
869
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
870
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
871
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
872
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createReceiptBody, localVarRequestOptions, configuration)
|
|
873
|
+
|
|
874
|
+
return {
|
|
875
|
+
url: toPathString(localVarUrlObj),
|
|
876
|
+
options: localVarRequestOptions,
|
|
877
|
+
};
|
|
878
|
+
},
|
|
557
879
|
/**
|
|
558
880
|
*
|
|
559
881
|
* @param {*} [options] Override http request option.
|
|
@@ -608,11 +930,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
608
930
|
/**
|
|
609
931
|
*
|
|
610
932
|
* @param {string} id
|
|
933
|
+
* @param {string} [orderBy]
|
|
934
|
+
* @param {string} [orderDirection]
|
|
935
|
+
* @param {number} [pageNumber]
|
|
936
|
+
* @param {number} [pageSize]
|
|
937
|
+
* @param {string} [filterBy]
|
|
938
|
+
* @param {string} [filterKey]
|
|
611
939
|
* @param {*} [options] Override http request option.
|
|
612
940
|
* @throws {RequiredError}
|
|
613
941
|
*/
|
|
614
|
-
async parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
615
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsGetParkingDetail(id, options);
|
|
942
|
+
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>> {
|
|
943
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options);
|
|
616
944
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
617
945
|
},
|
|
618
946
|
/**
|
|
@@ -633,6 +961,27 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
633
961
|
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options);
|
|
634
962
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
635
963
|
},
|
|
964
|
+
/**
|
|
965
|
+
*
|
|
966
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
967
|
+
* @param {*} [options] Override http request option.
|
|
968
|
+
* @throws {RequiredError}
|
|
969
|
+
*/
|
|
970
|
+
async receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
971
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.receiptUpdateReceipt(updateReceiptBody, options);
|
|
972
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
973
|
+
},
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @param {string} xAccountId
|
|
977
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
*/
|
|
981
|
+
async receiptsCreateReceipt(xAccountId: string, createReceiptBody: CreateReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
|
|
982
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.receiptsCreateReceipt(xAccountId, createReceiptBody, options);
|
|
983
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
984
|
+
},
|
|
636
985
|
/**
|
|
637
986
|
*
|
|
638
987
|
* @param {*} [options] Override http request option.
|
|
@@ -666,11 +1015,17 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
666
1015
|
/**
|
|
667
1016
|
*
|
|
668
1017
|
* @param {string} id
|
|
1018
|
+
* @param {string} [orderBy]
|
|
1019
|
+
* @param {string} [orderDirection]
|
|
1020
|
+
* @param {number} [pageNumber]
|
|
1021
|
+
* @param {number} [pageSize]
|
|
1022
|
+
* @param {string} [filterBy]
|
|
1023
|
+
* @param {string} [filterKey]
|
|
669
1024
|
* @param {*} [options] Override http request option.
|
|
670
1025
|
* @throws {RequiredError}
|
|
671
1026
|
*/
|
|
672
|
-
parkingDetailsGetParkingDetail(id: string, options?: any): AxiosPromise<
|
|
673
|
-
return localVarFp.parkingDetailsGetParkingDetail(id, options).then((request) => request(axios, basePath));
|
|
1027
|
+
parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: any): AxiosPromise<ResponseDataGetParkingDetailResponse> {
|
|
1028
|
+
return localVarFp.parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options).then((request) => request(axios, basePath));
|
|
674
1029
|
},
|
|
675
1030
|
/**
|
|
676
1031
|
*
|
|
@@ -689,6 +1044,25 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
689
1044
|
parkingDetailsIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, status?: ParkingDetailStatus, options?: any): AxiosPromise<ResponseDataGetParkingDetailsIndexResponseArray> {
|
|
690
1045
|
return localVarFp.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(axios, basePath));
|
|
691
1046
|
},
|
|
1047
|
+
/**
|
|
1048
|
+
*
|
|
1049
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
1050
|
+
* @param {*} [options] Override http request option.
|
|
1051
|
+
* @throws {RequiredError}
|
|
1052
|
+
*/
|
|
1053
|
+
receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: any): AxiosPromise<boolean> {
|
|
1054
|
+
return localVarFp.receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(axios, basePath));
|
|
1055
|
+
},
|
|
1056
|
+
/**
|
|
1057
|
+
*
|
|
1058
|
+
* @param {string} xAccountId
|
|
1059
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
receiptsCreateReceipt(xAccountId: string, createReceiptBody: CreateReceiptBody, options?: any): AxiosPromise<boolean> {
|
|
1064
|
+
return localVarFp.receiptsCreateReceipt(xAccountId, createReceiptBody, options).then((request) => request(axios, basePath));
|
|
1065
|
+
},
|
|
692
1066
|
/**
|
|
693
1067
|
*
|
|
694
1068
|
* @param {*} [options] Override http request option.
|
|
@@ -723,12 +1097,18 @@ export class DefaultApi extends BaseAPI {
|
|
|
723
1097
|
/**
|
|
724
1098
|
*
|
|
725
1099
|
* @param {string} id
|
|
1100
|
+
* @param {string} [orderBy]
|
|
1101
|
+
* @param {string} [orderDirection]
|
|
1102
|
+
* @param {number} [pageNumber]
|
|
1103
|
+
* @param {number} [pageSize]
|
|
1104
|
+
* @param {string} [filterBy]
|
|
1105
|
+
* @param {string} [filterKey]
|
|
726
1106
|
* @param {*} [options] Override http request option.
|
|
727
1107
|
* @throws {RequiredError}
|
|
728
1108
|
* @memberof DefaultApi
|
|
729
1109
|
*/
|
|
730
|
-
public parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig) {
|
|
731
|
-
return DefaultApiFp(this.configuration).parkingDetailsGetParkingDetail(id, options).then((request) => request(this.axios, this.basePath));
|
|
1110
|
+
public parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: AxiosRequestConfig) {
|
|
1111
|
+
return DefaultApiFp(this.configuration).parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options).then((request) => request(this.axios, this.basePath));
|
|
732
1112
|
}
|
|
733
1113
|
|
|
734
1114
|
/**
|
|
@@ -750,6 +1130,29 @@ export class DefaultApi extends BaseAPI {
|
|
|
750
1130
|
return DefaultApiFp(this.configuration).parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(this.axios, this.basePath));
|
|
751
1131
|
}
|
|
752
1132
|
|
|
1133
|
+
/**
|
|
1134
|
+
*
|
|
1135
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
1136
|
+
* @param {*} [options] Override http request option.
|
|
1137
|
+
* @throws {RequiredError}
|
|
1138
|
+
* @memberof DefaultApi
|
|
1139
|
+
*/
|
|
1140
|
+
public receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig) {
|
|
1141
|
+
return DefaultApiFp(this.configuration).receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(this.axios, this.basePath));
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
*
|
|
1146
|
+
* @param {string} xAccountId
|
|
1147
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
1148
|
+
* @param {*} [options] Override http request option.
|
|
1149
|
+
* @throws {RequiredError}
|
|
1150
|
+
* @memberof DefaultApi
|
|
1151
|
+
*/
|
|
1152
|
+
public receiptsCreateReceipt(xAccountId: string, createReceiptBody: CreateReceiptBody, options?: AxiosRequestConfig) {
|
|
1153
|
+
return DefaultApiFp(this.configuration).receiptsCreateReceipt(xAccountId, createReceiptBody, options).then((request) => request(this.axios, this.basePath));
|
|
1154
|
+
}
|
|
1155
|
+
|
|
753
1156
|
/**
|
|
754
1157
|
*
|
|
755
1158
|
* @param {*} [options] Override http request option.
|
package/dist/api/api.d.ts
CHANGED
|
@@ -55,6 +55,80 @@ export declare const AddParkingTicketType: {
|
|
|
55
55
|
readonly App: "APP";
|
|
56
56
|
};
|
|
57
57
|
export type AddParkingTicketType = typeof AddParkingTicketType[keyof typeof AddParkingTicketType];
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @export
|
|
61
|
+
* @interface CreateReceiptBody
|
|
62
|
+
*/
|
|
63
|
+
export interface CreateReceiptBody {
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof CreateReceiptBody
|
|
68
|
+
*/
|
|
69
|
+
'parkingDetailId': string;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof CreateReceiptBody
|
|
74
|
+
*/
|
|
75
|
+
'imageUrl': string;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {string}
|
|
79
|
+
* @memberof CreateReceiptBody
|
|
80
|
+
*/
|
|
81
|
+
'email'?: string;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @type {string}
|
|
85
|
+
* @memberof CreateReceiptBody
|
|
86
|
+
*/
|
|
87
|
+
'hashed_receipt': string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @export
|
|
92
|
+
* @interface GetParkingDetaiQuery
|
|
93
|
+
*/
|
|
94
|
+
export interface GetParkingDetaiQuery {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof GetParkingDetaiQuery
|
|
99
|
+
*/
|
|
100
|
+
'order_by'?: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof GetParkingDetaiQuery
|
|
105
|
+
*/
|
|
106
|
+
'order_direction'?: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {number}
|
|
110
|
+
* @memberof GetParkingDetaiQuery
|
|
111
|
+
*/
|
|
112
|
+
'page_number'?: number;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof GetParkingDetaiQuery
|
|
117
|
+
*/
|
|
118
|
+
'page_size'?: number;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {string}
|
|
122
|
+
* @memberof GetParkingDetaiQuery
|
|
123
|
+
*/
|
|
124
|
+
'filter_by'?: string;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof GetParkingDetaiQuery
|
|
129
|
+
*/
|
|
130
|
+
'filter_key'?: string;
|
|
131
|
+
}
|
|
58
132
|
/**
|
|
59
133
|
*
|
|
60
134
|
* @export
|
|
@@ -134,6 +208,12 @@ export interface GetParkingDetailResponse {
|
|
|
134
208
|
* @memberof GetParkingDetailResponse
|
|
135
209
|
*/
|
|
136
210
|
'parkingTicket': string;
|
|
211
|
+
/**
|
|
212
|
+
*
|
|
213
|
+
* @type {string}
|
|
214
|
+
* @memberof GetParkingDetailResponse
|
|
215
|
+
*/
|
|
216
|
+
'licenssePlate': string;
|
|
137
217
|
/**
|
|
138
218
|
*
|
|
139
219
|
* @type {ParkingAccountDetail}
|
|
@@ -152,6 +232,12 @@ export interface GetParkingDetailResponse {
|
|
|
152
232
|
* @memberof GetParkingDetailResponse
|
|
153
233
|
*/
|
|
154
234
|
'receipts': Array<Receipt>;
|
|
235
|
+
/**
|
|
236
|
+
*
|
|
237
|
+
* @type {string}
|
|
238
|
+
* @memberof GetParkingDetailResponse
|
|
239
|
+
*/
|
|
240
|
+
'redeemed_at': string;
|
|
155
241
|
}
|
|
156
242
|
/**
|
|
157
243
|
*
|
|
@@ -188,7 +274,7 @@ export interface GetParkingDetailsIndexResponse {
|
|
|
188
274
|
* @type {string}
|
|
189
275
|
* @memberof GetParkingDetailsIndexResponse
|
|
190
276
|
*/
|
|
191
|
-
'
|
|
277
|
+
'redeemed_at': string;
|
|
192
278
|
/**
|
|
193
279
|
*
|
|
194
280
|
* @type {ParkingDetailStatus}
|
|
@@ -196,6 +282,31 @@ export interface GetParkingDetailsIndexResponse {
|
|
|
196
282
|
*/
|
|
197
283
|
'status': ParkingDetailStatus;
|
|
198
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @export
|
|
288
|
+
* @interface Item
|
|
289
|
+
*/
|
|
290
|
+
export interface Item {
|
|
291
|
+
/**
|
|
292
|
+
*
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof Item
|
|
295
|
+
*/
|
|
296
|
+
'description': string;
|
|
297
|
+
/**
|
|
298
|
+
*
|
|
299
|
+
* @type {number}
|
|
300
|
+
* @memberof Item
|
|
301
|
+
*/
|
|
302
|
+
'quantity': number;
|
|
303
|
+
/**
|
|
304
|
+
*
|
|
305
|
+
* @type {string}
|
|
306
|
+
* @memberof Item
|
|
307
|
+
*/
|
|
308
|
+
'total_price': string;
|
|
309
|
+
}
|
|
199
310
|
/**
|
|
200
311
|
*
|
|
201
312
|
* @export
|
|
@@ -244,19 +355,19 @@ export interface ParkingAccountDetail {
|
|
|
244
355
|
* @type {string}
|
|
245
356
|
* @memberof ParkingAccountDetail
|
|
246
357
|
*/
|
|
247
|
-
'
|
|
358
|
+
'username': string;
|
|
248
359
|
/**
|
|
249
360
|
*
|
|
250
361
|
* @type {string}
|
|
251
362
|
* @memberof ParkingAccountDetail
|
|
252
363
|
*/
|
|
253
|
-
'
|
|
364
|
+
'email': string;
|
|
254
365
|
/**
|
|
255
366
|
*
|
|
256
367
|
* @type {string}
|
|
257
368
|
* @memberof ParkingAccountDetail
|
|
258
369
|
*/
|
|
259
|
-
'
|
|
370
|
+
'phone': string;
|
|
260
371
|
}
|
|
261
372
|
/**
|
|
262
373
|
*
|
|
@@ -264,8 +375,8 @@ export interface ParkingAccountDetail {
|
|
|
264
375
|
* @enum {string}
|
|
265
376
|
*/
|
|
266
377
|
export declare const ParkingDetailStatus: {
|
|
267
|
-
readonly Active: "
|
|
268
|
-
readonly Dispute: "
|
|
378
|
+
readonly Active: "ACTIVE";
|
|
379
|
+
readonly Dispute: "DISPUTE";
|
|
269
380
|
};
|
|
270
381
|
export type ParkingDetailStatus = typeof ParkingDetailStatus[keyof typeof ParkingDetailStatus];
|
|
271
382
|
/**
|
|
@@ -285,7 +396,7 @@ export interface Receipt {
|
|
|
285
396
|
* @type {string}
|
|
286
397
|
* @memberof Receipt
|
|
287
398
|
*/
|
|
288
|
-
'
|
|
399
|
+
'total': string;
|
|
289
400
|
/**
|
|
290
401
|
*
|
|
291
402
|
* @type {string}
|
|
@@ -323,13 +434,32 @@ export interface Receipt {
|
|
|
323
434
|
* @enum {string}
|
|
324
435
|
*/
|
|
325
436
|
export declare const ReceiptStatus: {
|
|
326
|
-
readonly Declined: "
|
|
327
|
-
readonly Success: "
|
|
328
|
-
readonly Pending: "
|
|
329
|
-
readonly Dispute: "
|
|
330
|
-
readonly Redeemed: "
|
|
437
|
+
readonly Declined: "DECLINED";
|
|
438
|
+
readonly Success: "SUCCESS";
|
|
439
|
+
readonly Pending: "PENDING";
|
|
440
|
+
readonly Dispute: "DISPUTE";
|
|
441
|
+
readonly Redeemed: "REDEEMED";
|
|
331
442
|
};
|
|
332
443
|
export type ReceiptStatus = typeof ReceiptStatus[keyof typeof ReceiptStatus];
|
|
444
|
+
/**
|
|
445
|
+
*
|
|
446
|
+
* @export
|
|
447
|
+
* @interface ResponseDataGetParkingDetailResponse
|
|
448
|
+
*/
|
|
449
|
+
export interface ResponseDataGetParkingDetailResponse {
|
|
450
|
+
/**
|
|
451
|
+
*
|
|
452
|
+
* @type {GetParkingDetailResponse}
|
|
453
|
+
* @memberof ResponseDataGetParkingDetailResponse
|
|
454
|
+
*/
|
|
455
|
+
'data': GetParkingDetailResponse;
|
|
456
|
+
/**
|
|
457
|
+
*
|
|
458
|
+
* @type {Pagination}
|
|
459
|
+
* @memberof ResponseDataGetParkingDetailResponse
|
|
460
|
+
*/
|
|
461
|
+
'pagination'?: Pagination;
|
|
462
|
+
}
|
|
333
463
|
/**
|
|
334
464
|
*
|
|
335
465
|
* @export
|
|
@@ -362,6 +492,91 @@ export interface TestTest200Response {
|
|
|
362
492
|
*/
|
|
363
493
|
'status': string;
|
|
364
494
|
}
|
|
495
|
+
/**
|
|
496
|
+
*
|
|
497
|
+
* @export
|
|
498
|
+
* @interface UpdateReceiptBody
|
|
499
|
+
*/
|
|
500
|
+
export interface UpdateReceiptBody {
|
|
501
|
+
/**
|
|
502
|
+
*
|
|
503
|
+
* @type {string}
|
|
504
|
+
* @memberof UpdateReceiptBody
|
|
505
|
+
*/
|
|
506
|
+
'merchant_name': string;
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @type {string}
|
|
510
|
+
* @memberof UpdateReceiptBody
|
|
511
|
+
*/
|
|
512
|
+
'transaction_date': string;
|
|
513
|
+
/**
|
|
514
|
+
*
|
|
515
|
+
* @type {string}
|
|
516
|
+
* @memberof UpdateReceiptBody
|
|
517
|
+
*/
|
|
518
|
+
'transaction_time': string;
|
|
519
|
+
/**
|
|
520
|
+
*
|
|
521
|
+
* @type {Array<Item>}
|
|
522
|
+
* @memberof UpdateReceiptBody
|
|
523
|
+
*/
|
|
524
|
+
'items': Array<Item>;
|
|
525
|
+
/**
|
|
526
|
+
*
|
|
527
|
+
* @type {string}
|
|
528
|
+
* @memberof UpdateReceiptBody
|
|
529
|
+
*/
|
|
530
|
+
'total': string;
|
|
531
|
+
/**
|
|
532
|
+
*
|
|
533
|
+
* @type {string}
|
|
534
|
+
* @memberof UpdateReceiptBody
|
|
535
|
+
*/
|
|
536
|
+
'tax_id': string;
|
|
537
|
+
/**
|
|
538
|
+
*
|
|
539
|
+
* @type {string}
|
|
540
|
+
* @memberof UpdateReceiptBody
|
|
541
|
+
*/
|
|
542
|
+
'receipt_no': string;
|
|
543
|
+
/**
|
|
544
|
+
*
|
|
545
|
+
* @type {string}
|
|
546
|
+
* @memberof UpdateReceiptBody
|
|
547
|
+
*/
|
|
548
|
+
'address': string;
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @type {string}
|
|
552
|
+
* @memberof UpdateReceiptBody
|
|
553
|
+
*/
|
|
554
|
+
'unit_no': string;
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @type {string}
|
|
558
|
+
* @memberof UpdateReceiptBody
|
|
559
|
+
*/
|
|
560
|
+
'mall_name': string;
|
|
561
|
+
/**
|
|
562
|
+
*
|
|
563
|
+
* @type {string}
|
|
564
|
+
* @memberof UpdateReceiptBody
|
|
565
|
+
*/
|
|
566
|
+
'hashed_receipt': string;
|
|
567
|
+
/**
|
|
568
|
+
*
|
|
569
|
+
* @type {string}
|
|
570
|
+
* @memberof UpdateReceiptBody
|
|
571
|
+
*/
|
|
572
|
+
'status': string;
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @type {string}
|
|
576
|
+
* @memberof UpdateReceiptBody
|
|
577
|
+
*/
|
|
578
|
+
'message': string;
|
|
579
|
+
}
|
|
365
580
|
/**
|
|
366
581
|
* DefaultApi - axios parameter creator
|
|
367
582
|
* @export
|
|
@@ -379,10 +594,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
379
594
|
/**
|
|
380
595
|
*
|
|
381
596
|
* @param {string} id
|
|
597
|
+
* @param {string} [orderBy]
|
|
598
|
+
* @param {string} [orderDirection]
|
|
599
|
+
* @param {number} [pageNumber]
|
|
600
|
+
* @param {number} [pageSize]
|
|
601
|
+
* @param {string} [filterBy]
|
|
602
|
+
* @param {string} [filterKey]
|
|
382
603
|
* @param {*} [options] Override http request option.
|
|
383
604
|
* @throws {RequiredError}
|
|
384
605
|
*/
|
|
385
|
-
parkingDetailsGetParkingDetail: (id: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
606
|
+
parkingDetailsGetParkingDetail: (id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
386
607
|
/**
|
|
387
608
|
*
|
|
388
609
|
* @param {string} [orderBy]
|
|
@@ -398,6 +619,21 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
398
619
|
* @throws {RequiredError}
|
|
399
620
|
*/
|
|
400
621
|
parkingDetailsIndex: (orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, status?: ParkingDetailStatus, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
622
|
+
/**
|
|
623
|
+
*
|
|
624
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
625
|
+
* @param {*} [options] Override http request option.
|
|
626
|
+
* @throws {RequiredError}
|
|
627
|
+
*/
|
|
628
|
+
receiptUpdateReceipt: (updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @param {string} xAccountId
|
|
632
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
633
|
+
* @param {*} [options] Override http request option.
|
|
634
|
+
* @throws {RequiredError}
|
|
635
|
+
*/
|
|
636
|
+
receiptsCreateReceipt: (xAccountId: string, createReceiptBody: CreateReceiptBody, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
401
637
|
/**
|
|
402
638
|
*
|
|
403
639
|
* @param {*} [options] Override http request option.
|
|
@@ -422,10 +658,16 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
422
658
|
/**
|
|
423
659
|
*
|
|
424
660
|
* @param {string} id
|
|
661
|
+
* @param {string} [orderBy]
|
|
662
|
+
* @param {string} [orderDirection]
|
|
663
|
+
* @param {number} [pageNumber]
|
|
664
|
+
* @param {number} [pageSize]
|
|
665
|
+
* @param {string} [filterBy]
|
|
666
|
+
* @param {string} [filterKey]
|
|
425
667
|
* @param {*} [options] Override http request option.
|
|
426
668
|
* @throws {RequiredError}
|
|
427
669
|
*/
|
|
428
|
-
parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
670
|
+
parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseDataGetParkingDetailResponse>>;
|
|
429
671
|
/**
|
|
430
672
|
*
|
|
431
673
|
* @param {string} [orderBy]
|
|
@@ -441,6 +683,21 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
441
683
|
* @throws {RequiredError}
|
|
442
684
|
*/
|
|
443
685
|
parkingDetailsIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, status?: ParkingDetailStatus, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResponseDataGetParkingDetailsIndexResponseArray>>;
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
*/
|
|
692
|
+
receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @param {string} xAccountId
|
|
696
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
receiptsCreateReceipt(xAccountId: string, createReceiptBody: CreateReceiptBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
|
|
444
701
|
/**
|
|
445
702
|
*
|
|
446
703
|
* @param {*} [options] Override http request option.
|
|
@@ -465,10 +722,16 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
465
722
|
/**
|
|
466
723
|
*
|
|
467
724
|
* @param {string} id
|
|
725
|
+
* @param {string} [orderBy]
|
|
726
|
+
* @param {string} [orderDirection]
|
|
727
|
+
* @param {number} [pageNumber]
|
|
728
|
+
* @param {number} [pageSize]
|
|
729
|
+
* @param {string} [filterBy]
|
|
730
|
+
* @param {string} [filterKey]
|
|
468
731
|
* @param {*} [options] Override http request option.
|
|
469
732
|
* @throws {RequiredError}
|
|
470
733
|
*/
|
|
471
|
-
parkingDetailsGetParkingDetail(id: string, options?: any): AxiosPromise<
|
|
734
|
+
parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: any): AxiosPromise<ResponseDataGetParkingDetailResponse>;
|
|
472
735
|
/**
|
|
473
736
|
*
|
|
474
737
|
* @param {string} [orderBy]
|
|
@@ -484,6 +747,21 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
484
747
|
* @throws {RequiredError}
|
|
485
748
|
*/
|
|
486
749
|
parkingDetailsIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, status?: ParkingDetailStatus, options?: any): AxiosPromise<ResponseDataGetParkingDetailsIndexResponseArray>;
|
|
750
|
+
/**
|
|
751
|
+
*
|
|
752
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
753
|
+
* @param {*} [options] Override http request option.
|
|
754
|
+
* @throws {RequiredError}
|
|
755
|
+
*/
|
|
756
|
+
receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: any): AxiosPromise<boolean>;
|
|
757
|
+
/**
|
|
758
|
+
*
|
|
759
|
+
* @param {string} xAccountId
|
|
760
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
761
|
+
* @param {*} [options] Override http request option.
|
|
762
|
+
* @throws {RequiredError}
|
|
763
|
+
*/
|
|
764
|
+
receiptsCreateReceipt(xAccountId: string, createReceiptBody: CreateReceiptBody, options?: any): AxiosPromise<boolean>;
|
|
487
765
|
/**
|
|
488
766
|
*
|
|
489
767
|
* @param {*} [options] Override http request option.
|
|
@@ -511,11 +789,17 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
511
789
|
/**
|
|
512
790
|
*
|
|
513
791
|
* @param {string} id
|
|
792
|
+
* @param {string} [orderBy]
|
|
793
|
+
* @param {string} [orderDirection]
|
|
794
|
+
* @param {number} [pageNumber]
|
|
795
|
+
* @param {number} [pageSize]
|
|
796
|
+
* @param {string} [filterBy]
|
|
797
|
+
* @param {string} [filterKey]
|
|
514
798
|
* @param {*} [options] Override http request option.
|
|
515
799
|
* @throws {RequiredError}
|
|
516
800
|
* @memberof DefaultApi
|
|
517
801
|
*/
|
|
518
|
-
parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
802
|
+
parkingDetailsGetParkingDetail(id: string, orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResponseDataGetParkingDetailResponse, any>>;
|
|
519
803
|
/**
|
|
520
804
|
*
|
|
521
805
|
* @param {string} [orderBy]
|
|
@@ -532,6 +816,23 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
532
816
|
* @memberof DefaultApi
|
|
533
817
|
*/
|
|
534
818
|
parkingDetailsIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, status?: ParkingDetailStatus, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResponseDataGetParkingDetailsIndexResponseArray, any>>;
|
|
819
|
+
/**
|
|
820
|
+
*
|
|
821
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
822
|
+
* @param {*} [options] Override http request option.
|
|
823
|
+
* @throws {RequiredError}
|
|
824
|
+
* @memberof DefaultApi
|
|
825
|
+
*/
|
|
826
|
+
receiptUpdateReceipt(updateReceiptBody: UpdateReceiptBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
827
|
+
/**
|
|
828
|
+
*
|
|
829
|
+
* @param {string} xAccountId
|
|
830
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
831
|
+
* @param {*} [options] Override http request option.
|
|
832
|
+
* @throws {RequiredError}
|
|
833
|
+
* @memberof DefaultApi
|
|
834
|
+
*/
|
|
835
|
+
receiptsCreateReceipt(xAccountId: string, createReceiptBody: CreateReceiptBody, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
|
|
535
836
|
/**
|
|
536
837
|
*
|
|
537
838
|
* @param {*} [options] Override http request option.
|
package/dist/api/api.js
CHANGED
|
@@ -47,8 +47,8 @@ exports.AddParkingTicketType = {
|
|
|
47
47
|
* @enum {string}
|
|
48
48
|
*/
|
|
49
49
|
exports.ParkingDetailStatus = {
|
|
50
|
-
Active: '
|
|
51
|
-
Dispute: '
|
|
50
|
+
Active: 'ACTIVE',
|
|
51
|
+
Dispute: 'DISPUTE'
|
|
52
52
|
};
|
|
53
53
|
/**
|
|
54
54
|
*
|
|
@@ -56,11 +56,11 @@ exports.ParkingDetailStatus = {
|
|
|
56
56
|
* @enum {string}
|
|
57
57
|
*/
|
|
58
58
|
exports.ReceiptStatus = {
|
|
59
|
-
Declined: '
|
|
60
|
-
Success: '
|
|
61
|
-
Pending: '
|
|
62
|
-
Dispute: '
|
|
63
|
-
Redeemed: '
|
|
59
|
+
Declined: 'DECLINED',
|
|
60
|
+
Success: 'SUCCESS',
|
|
61
|
+
Pending: 'PENDING',
|
|
62
|
+
Dispute: 'DISPUTE',
|
|
63
|
+
Redeemed: 'REDEEMED'
|
|
64
64
|
};
|
|
65
65
|
/**
|
|
66
66
|
* DefaultApi - axios parameter creator
|
|
@@ -111,10 +111,16 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
113
|
* @param {string} id
|
|
114
|
+
* @param {string} [orderBy]
|
|
115
|
+
* @param {string} [orderDirection]
|
|
116
|
+
* @param {number} [pageNumber]
|
|
117
|
+
* @param {number} [pageSize]
|
|
118
|
+
* @param {string} [filterBy]
|
|
119
|
+
* @param {string} [filterKey]
|
|
114
120
|
* @param {*} [options] Override http request option.
|
|
115
121
|
* @throws {RequiredError}
|
|
116
122
|
*/
|
|
117
|
-
parkingDetailsGetParkingDetail: (id, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
123
|
+
parkingDetailsGetParkingDetail: (id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
118
124
|
// verify required parameter 'id' is not null or undefined
|
|
119
125
|
(0, common_1.assertParamExists)('parkingDetailsGetParkingDetail', 'id', id);
|
|
120
126
|
const localVarPath = `/parking-details/{id}`
|
|
@@ -128,6 +134,24 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
128
134
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
129
135
|
const localVarHeaderParameter = {};
|
|
130
136
|
const localVarQueryParameter = {};
|
|
137
|
+
if (orderBy !== undefined) {
|
|
138
|
+
localVarQueryParameter['order_by'] = orderBy;
|
|
139
|
+
}
|
|
140
|
+
if (orderDirection !== undefined) {
|
|
141
|
+
localVarQueryParameter['order_direction'] = orderDirection;
|
|
142
|
+
}
|
|
143
|
+
if (pageNumber !== undefined) {
|
|
144
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
|
145
|
+
}
|
|
146
|
+
if (pageSize !== undefined) {
|
|
147
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
148
|
+
}
|
|
149
|
+
if (filterBy !== undefined) {
|
|
150
|
+
localVarQueryParameter['filter_by'] = filterBy;
|
|
151
|
+
}
|
|
152
|
+
if (filterKey !== undefined) {
|
|
153
|
+
localVarQueryParameter['filter_key'] = filterKey;
|
|
154
|
+
}
|
|
131
155
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
156
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
157
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -196,6 +220,70 @@ const DefaultApiAxiosParamCreator = function (configuration) {
|
|
|
196
220
|
options: localVarRequestOptions,
|
|
197
221
|
};
|
|
198
222
|
}),
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
226
|
+
* @param {*} [options] Override http request option.
|
|
227
|
+
* @throws {RequiredError}
|
|
228
|
+
*/
|
|
229
|
+
receiptUpdateReceipt: (updateReceiptBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
// verify required parameter 'updateReceiptBody' is not null or undefined
|
|
231
|
+
(0, common_1.assertParamExists)('receiptUpdateReceipt', 'updateReceiptBody', updateReceiptBody);
|
|
232
|
+
const localVarPath = `/receipts/update-receipt`;
|
|
233
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
234
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
235
|
+
let baseOptions;
|
|
236
|
+
if (configuration) {
|
|
237
|
+
baseOptions = configuration.baseOptions;
|
|
238
|
+
}
|
|
239
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
240
|
+
const localVarHeaderParameter = {};
|
|
241
|
+
const localVarQueryParameter = {};
|
|
242
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
243
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
244
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
245
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
246
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateReceiptBody, localVarRequestOptions, configuration);
|
|
247
|
+
return {
|
|
248
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
249
|
+
options: localVarRequestOptions,
|
|
250
|
+
};
|
|
251
|
+
}),
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* @param {string} xAccountId
|
|
255
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
256
|
+
* @param {*} [options] Override http request option.
|
|
257
|
+
* @throws {RequiredError}
|
|
258
|
+
*/
|
|
259
|
+
receiptsCreateReceipt: (xAccountId, createReceiptBody, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
260
|
+
// verify required parameter 'xAccountId' is not null or undefined
|
|
261
|
+
(0, common_1.assertParamExists)('receiptsCreateReceipt', 'xAccountId', xAccountId);
|
|
262
|
+
// verify required parameter 'createReceiptBody' is not null or undefined
|
|
263
|
+
(0, common_1.assertParamExists)('receiptsCreateReceipt', 'createReceiptBody', createReceiptBody);
|
|
264
|
+
const localVarPath = `/receipts/create-receipt`;
|
|
265
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
266
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
267
|
+
let baseOptions;
|
|
268
|
+
if (configuration) {
|
|
269
|
+
baseOptions = configuration.baseOptions;
|
|
270
|
+
}
|
|
271
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
272
|
+
const localVarHeaderParameter = {};
|
|
273
|
+
const localVarQueryParameter = {};
|
|
274
|
+
if (xAccountId != null) {
|
|
275
|
+
localVarHeaderParameter['x-account-id'] = String(xAccountId);
|
|
276
|
+
}
|
|
277
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
278
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
279
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
280
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
281
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createReceiptBody, localVarRequestOptions, configuration);
|
|
282
|
+
return {
|
|
283
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
284
|
+
options: localVarRequestOptions,
|
|
285
|
+
};
|
|
286
|
+
}),
|
|
199
287
|
/**
|
|
200
288
|
*
|
|
201
289
|
* @param {*} [options] Override http request option.
|
|
@@ -247,12 +335,18 @@ const DefaultApiFp = function (configuration) {
|
|
|
247
335
|
/**
|
|
248
336
|
*
|
|
249
337
|
* @param {string} id
|
|
338
|
+
* @param {string} [orderBy]
|
|
339
|
+
* @param {string} [orderDirection]
|
|
340
|
+
* @param {number} [pageNumber]
|
|
341
|
+
* @param {number} [pageSize]
|
|
342
|
+
* @param {string} [filterBy]
|
|
343
|
+
* @param {string} [filterKey]
|
|
250
344
|
* @param {*} [options] Override http request option.
|
|
251
345
|
* @throws {RequiredError}
|
|
252
346
|
*/
|
|
253
|
-
parkingDetailsGetParkingDetail(id, options) {
|
|
347
|
+
parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options) {
|
|
254
348
|
return __awaiter(this, void 0, void 0, function* () {
|
|
255
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingDetailsGetParkingDetail(id, options);
|
|
349
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options);
|
|
256
350
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
257
351
|
});
|
|
258
352
|
},
|
|
@@ -276,6 +370,31 @@ const DefaultApiFp = function (configuration) {
|
|
|
276
370
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
277
371
|
});
|
|
278
372
|
},
|
|
373
|
+
/**
|
|
374
|
+
*
|
|
375
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
*/
|
|
379
|
+
receiptUpdateReceipt(updateReceiptBody, options) {
|
|
380
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
381
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.receiptUpdateReceipt(updateReceiptBody, options);
|
|
382
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
383
|
+
});
|
|
384
|
+
},
|
|
385
|
+
/**
|
|
386
|
+
*
|
|
387
|
+
* @param {string} xAccountId
|
|
388
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
389
|
+
* @param {*} [options] Override http request option.
|
|
390
|
+
* @throws {RequiredError}
|
|
391
|
+
*/
|
|
392
|
+
receiptsCreateReceipt(xAccountId, createReceiptBody, options) {
|
|
393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
394
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.receiptsCreateReceipt(xAccountId, createReceiptBody, options);
|
|
395
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
396
|
+
});
|
|
397
|
+
},
|
|
279
398
|
/**
|
|
280
399
|
*
|
|
281
400
|
* @param {*} [options] Override http request option.
|
|
@@ -311,11 +430,17 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
311
430
|
/**
|
|
312
431
|
*
|
|
313
432
|
* @param {string} id
|
|
433
|
+
* @param {string} [orderBy]
|
|
434
|
+
* @param {string} [orderDirection]
|
|
435
|
+
* @param {number} [pageNumber]
|
|
436
|
+
* @param {number} [pageSize]
|
|
437
|
+
* @param {string} [filterBy]
|
|
438
|
+
* @param {string} [filterKey]
|
|
314
439
|
* @param {*} [options] Override http request option.
|
|
315
440
|
* @throws {RequiredError}
|
|
316
441
|
*/
|
|
317
|
-
parkingDetailsGetParkingDetail(id, options) {
|
|
318
|
-
return localVarFp.parkingDetailsGetParkingDetail(id, options).then((request) => request(axios, basePath));
|
|
442
|
+
parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options) {
|
|
443
|
+
return localVarFp.parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options).then((request) => request(axios, basePath));
|
|
319
444
|
},
|
|
320
445
|
/**
|
|
321
446
|
*
|
|
@@ -334,6 +459,25 @@ const DefaultApiFactory = function (configuration, basePath, axios) {
|
|
|
334
459
|
parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options) {
|
|
335
460
|
return localVarFp.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(axios, basePath));
|
|
336
461
|
},
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
receiptUpdateReceipt(updateReceiptBody, options) {
|
|
469
|
+
return localVarFp.receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(axios, basePath));
|
|
470
|
+
},
|
|
471
|
+
/**
|
|
472
|
+
*
|
|
473
|
+
* @param {string} xAccountId
|
|
474
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
receiptsCreateReceipt(xAccountId, createReceiptBody, options) {
|
|
479
|
+
return localVarFp.receiptsCreateReceipt(xAccountId, createReceiptBody, options).then((request) => request(axios, basePath));
|
|
480
|
+
},
|
|
337
481
|
/**
|
|
338
482
|
*
|
|
339
483
|
* @param {*} [options] Override http request option.
|
|
@@ -367,12 +511,18 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
367
511
|
/**
|
|
368
512
|
*
|
|
369
513
|
* @param {string} id
|
|
514
|
+
* @param {string} [orderBy]
|
|
515
|
+
* @param {string} [orderDirection]
|
|
516
|
+
* @param {number} [pageNumber]
|
|
517
|
+
* @param {number} [pageSize]
|
|
518
|
+
* @param {string} [filterBy]
|
|
519
|
+
* @param {string} [filterKey]
|
|
370
520
|
* @param {*} [options] Override http request option.
|
|
371
521
|
* @throws {RequiredError}
|
|
372
522
|
* @memberof DefaultApi
|
|
373
523
|
*/
|
|
374
|
-
parkingDetailsGetParkingDetail(id, options) {
|
|
375
|
-
return (0, exports.DefaultApiFp)(this.configuration).parkingDetailsGetParkingDetail(id, options).then((request) => request(this.axios, this.basePath));
|
|
524
|
+
parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options) {
|
|
525
|
+
return (0, exports.DefaultApiFp)(this.configuration).parkingDetailsGetParkingDetail(id, orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, options).then((request) => request(this.axios, this.basePath));
|
|
376
526
|
}
|
|
377
527
|
/**
|
|
378
528
|
*
|
|
@@ -392,6 +542,27 @@ class DefaultApi extends base_1.BaseAPI {
|
|
|
392
542
|
parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options) {
|
|
393
543
|
return (0, exports.DefaultApiFp)(this.configuration).parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(this.axios, this.basePath));
|
|
394
544
|
}
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @param {UpdateReceiptBody} updateReceiptBody
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
* @memberof DefaultApi
|
|
551
|
+
*/
|
|
552
|
+
receiptUpdateReceipt(updateReceiptBody, options) {
|
|
553
|
+
return (0, exports.DefaultApiFp)(this.configuration).receiptUpdateReceipt(updateReceiptBody, options).then((request) => request(this.axios, this.basePath));
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
*
|
|
557
|
+
* @param {string} xAccountId
|
|
558
|
+
* @param {CreateReceiptBody} createReceiptBody
|
|
559
|
+
* @param {*} [options] Override http request option.
|
|
560
|
+
* @throws {RequiredError}
|
|
561
|
+
* @memberof DefaultApi
|
|
562
|
+
*/
|
|
563
|
+
receiptsCreateReceipt(xAccountId, createReceiptBody, options) {
|
|
564
|
+
return (0, exports.DefaultApiFp)(this.configuration).receiptsCreateReceipt(xAccountId, createReceiptBody, options).then((request) => request(this.axios, this.basePath));
|
|
565
|
+
}
|
|
395
566
|
/**
|
|
396
567
|
*
|
|
397
568
|
* @param {*} [options] Override http request option.
|