ob-parking-sdk 0.0.5 → 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 +398 -7
- package/dist/api/api.d.ts +293 -4
- package/dist/api/api.js +178 -7
- 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
|
|
@@ -228,6 +302,31 @@ export interface GetParkingDetailsIndexResponse {
|
|
|
228
302
|
}
|
|
229
303
|
|
|
230
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
|
+
}
|
|
231
330
|
/**
|
|
232
331
|
*
|
|
233
332
|
* @export
|
|
@@ -372,6 +471,25 @@ export const ReceiptStatus = {
|
|
|
372
471
|
export type ReceiptStatus = typeof ReceiptStatus[keyof typeof ReceiptStatus];
|
|
373
472
|
|
|
374
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
|
+
}
|
|
375
493
|
/**
|
|
376
494
|
*
|
|
377
495
|
* @export
|
|
@@ -404,6 +522,91 @@ export interface TestTest200Response {
|
|
|
404
522
|
*/
|
|
405
523
|
'status': string;
|
|
406
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
|
+
}
|
|
407
610
|
|
|
408
611
|
/**
|
|
409
612
|
* DefaultApi - axios parameter creator
|
|
@@ -462,10 +665,16 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
462
665
|
/**
|
|
463
666
|
*
|
|
464
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]
|
|
465
674
|
* @param {*} [options] Override http request option.
|
|
466
675
|
* @throws {RequiredError}
|
|
467
676
|
*/
|
|
468
|
-
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> => {
|
|
469
678
|
// verify required parameter 'id' is not null or undefined
|
|
470
679
|
assertParamExists('parkingDetailsGetParkingDetail', 'id', id)
|
|
471
680
|
const localVarPath = `/parking-details/{id}`
|
|
@@ -481,6 +690,30 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
481
690
|
const localVarHeaderParameter = {} as any;
|
|
482
691
|
const localVarQueryParameter = {} as any;
|
|
483
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
|
+
|
|
484
717
|
|
|
485
718
|
|
|
486
719
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
@@ -566,6 +799,83 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
566
799
|
options: localVarRequestOptions,
|
|
567
800
|
};
|
|
568
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
|
+
},
|
|
569
879
|
/**
|
|
570
880
|
*
|
|
571
881
|
* @param {*} [options] Override http request option.
|
|
@@ -620,11 +930,17 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
620
930
|
/**
|
|
621
931
|
*
|
|
622
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]
|
|
623
939
|
* @param {*} [options] Override http request option.
|
|
624
940
|
* @throws {RequiredError}
|
|
625
941
|
*/
|
|
626
|
-
async parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
627
|
-
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);
|
|
628
944
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
629
945
|
},
|
|
630
946
|
/**
|
|
@@ -645,6 +961,27 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
645
961
|
const localVarAxiosArgs = await localVarAxiosParamCreator.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options);
|
|
646
962
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
647
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
|
+
},
|
|
648
985
|
/**
|
|
649
986
|
*
|
|
650
987
|
* @param {*} [options] Override http request option.
|
|
@@ -678,11 +1015,17 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
678
1015
|
/**
|
|
679
1016
|
*
|
|
680
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]
|
|
681
1024
|
* @param {*} [options] Override http request option.
|
|
682
1025
|
* @throws {RequiredError}
|
|
683
1026
|
*/
|
|
684
|
-
parkingDetailsGetParkingDetail(id: string, options?: any): AxiosPromise<
|
|
685
|
-
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));
|
|
686
1029
|
},
|
|
687
1030
|
/**
|
|
688
1031
|
*
|
|
@@ -701,6 +1044,25 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
701
1044
|
parkingDetailsIndex(orderBy?: string, orderDirection?: string, pageNumber?: number, pageSize?: number, filterBy?: string, filterKey?: string, startDate?: string, endDate?: string, status?: ParkingDetailStatus, options?: any): AxiosPromise<ResponseDataGetParkingDetailsIndexResponseArray> {
|
|
702
1045
|
return localVarFp.parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(axios, basePath));
|
|
703
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
|
+
},
|
|
704
1066
|
/**
|
|
705
1067
|
*
|
|
706
1068
|
* @param {*} [options] Override http request option.
|
|
@@ -735,12 +1097,18 @@ export class DefaultApi extends BaseAPI {
|
|
|
735
1097
|
/**
|
|
736
1098
|
*
|
|
737
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]
|
|
738
1106
|
* @param {*} [options] Override http request option.
|
|
739
1107
|
* @throws {RequiredError}
|
|
740
1108
|
* @memberof DefaultApi
|
|
741
1109
|
*/
|
|
742
|
-
public parkingDetailsGetParkingDetail(id: string, options?: AxiosRequestConfig) {
|
|
743
|
-
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));
|
|
744
1112
|
}
|
|
745
1113
|
|
|
746
1114
|
/**
|
|
@@ -762,6 +1130,29 @@ export class DefaultApi extends BaseAPI {
|
|
|
762
1130
|
return DefaultApiFp(this.configuration).parkingDetailsIndex(orderBy, orderDirection, pageNumber, pageSize, filterBy, filterKey, startDate, endDate, status, options).then((request) => request(this.axios, this.basePath));
|
|
763
1131
|
}
|
|
764
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
|
+
|
|
765
1156
|
/**
|
|
766
1157
|
*
|
|
767
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
|
|
@@ -208,6 +282,31 @@ export interface GetParkingDetailsIndexResponse {
|
|
|
208
282
|
*/
|
|
209
283
|
'status': ParkingDetailStatus;
|
|
210
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
|
+
}
|
|
211
310
|
/**
|
|
212
311
|
*
|
|
213
312
|
* @export
|
|
@@ -342,6 +441,25 @@ export declare const ReceiptStatus: {
|
|
|
342
441
|
readonly Redeemed: "REDEEMED";
|
|
343
442
|
};
|
|
344
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
|
+
}
|
|
345
463
|
/**
|
|
346
464
|
*
|
|
347
465
|
* @export
|
|
@@ -374,6 +492,91 @@ export interface TestTest200Response {
|
|
|
374
492
|
*/
|
|
375
493
|
'status': string;
|
|
376
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
|
+
}
|
|
377
580
|
/**
|
|
378
581
|
* DefaultApi - axios parameter creator
|
|
379
582
|
* @export
|
|
@@ -391,10 +594,16 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
391
594
|
/**
|
|
392
595
|
*
|
|
393
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]
|
|
394
603
|
* @param {*} [options] Override http request option.
|
|
395
604
|
* @throws {RequiredError}
|
|
396
605
|
*/
|
|
397
|
-
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>;
|
|
398
607
|
/**
|
|
399
608
|
*
|
|
400
609
|
* @param {string} [orderBy]
|
|
@@ -410,6 +619,21 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
|
|
|
410
619
|
* @throws {RequiredError}
|
|
411
620
|
*/
|
|
412
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>;
|
|
413
637
|
/**
|
|
414
638
|
*
|
|
415
639
|
* @param {*} [options] Override http request option.
|
|
@@ -434,10 +658,16 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
434
658
|
/**
|
|
435
659
|
*
|
|
436
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]
|
|
437
667
|
* @param {*} [options] Override http request option.
|
|
438
668
|
* @throws {RequiredError}
|
|
439
669
|
*/
|
|
440
|
-
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>>;
|
|
441
671
|
/**
|
|
442
672
|
*
|
|
443
673
|
* @param {string} [orderBy]
|
|
@@ -453,6 +683,21 @@ export declare const DefaultApiFp: (configuration?: Configuration) => {
|
|
|
453
683
|
* @throws {RequiredError}
|
|
454
684
|
*/
|
|
455
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>>;
|
|
456
701
|
/**
|
|
457
702
|
*
|
|
458
703
|
* @param {*} [options] Override http request option.
|
|
@@ -477,10 +722,16 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
477
722
|
/**
|
|
478
723
|
*
|
|
479
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]
|
|
480
731
|
* @param {*} [options] Override http request option.
|
|
481
732
|
* @throws {RequiredError}
|
|
482
733
|
*/
|
|
483
|
-
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>;
|
|
484
735
|
/**
|
|
485
736
|
*
|
|
486
737
|
* @param {string} [orderBy]
|
|
@@ -496,6 +747,21 @@ export declare const DefaultApiFactory: (configuration?: Configuration, basePath
|
|
|
496
747
|
* @throws {RequiredError}
|
|
497
748
|
*/
|
|
498
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>;
|
|
499
765
|
/**
|
|
500
766
|
*
|
|
501
767
|
* @param {*} [options] Override http request option.
|
|
@@ -523,11 +789,17 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
523
789
|
/**
|
|
524
790
|
*
|
|
525
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]
|
|
526
798
|
* @param {*} [options] Override http request option.
|
|
527
799
|
* @throws {RequiredError}
|
|
528
800
|
* @memberof DefaultApi
|
|
529
801
|
*/
|
|
530
|
-
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>>;
|
|
531
803
|
/**
|
|
532
804
|
*
|
|
533
805
|
* @param {string} [orderBy]
|
|
@@ -544,6 +816,23 @@ export declare class DefaultApi extends BaseAPI {
|
|
|
544
816
|
* @memberof DefaultApi
|
|
545
817
|
*/
|
|
546
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>>;
|
|
547
836
|
/**
|
|
548
837
|
*
|
|
549
838
|
* @param {*} [options] Override http request option.
|
package/dist/api/api.js
CHANGED
|
@@ -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.
|