@@ -14,6 +14,8 @@ import {
14
14
DeviceInfo ,
15
15
TransactionProcessRequest ,
16
16
InlineResponse200 ,
17
+ ListTransactionsByTagResponse ,
18
+ TransactionProcessGetResponse ,
17
19
} from '../models' ;
18
20
import { Base64String , instanceOfProcessRequest , ProcessRequestExt } from './process-request-ext' ;
19
21
import { ProcessRequestImageWrapper } from './process-request-image-wrapper' ;
@@ -131,9 +133,9 @@ export class DocumentReaderApi {
131
133
* @param {* } [options] Override http request option.
132
134
* @throws {RequiredError }
133
135
*/
134
- // async getTransactionsByTag(tagId: number , options?: any) {
135
- // return this.transactionApi.apiV2TagTagIdTransactionsGet(tagId, options);
136
- // }
136
+ async getTransactionsByTag ( tagId : string , options ?: any ) : Promise < AxiosResponse < ListTransactionsByTagResponse > > {
137
+ return this . transactionApi . apiV2TagTagIdTransactionsGet ( tagId , options ) ;
138
+ }
137
139
138
140
/**
139
141
*
@@ -142,9 +144,9 @@ export class DocumentReaderApi {
142
144
* @param {* } [options] Override http request option.
143
145
* @throws {RequiredError }
144
146
*/
145
- // async deleteReprocessTransactionsByTag(tagId: number, options?: any) {
146
- // return this.transactionApi.apiV2TagTagIdDelete(tagId, options);
147
- // }
147
+ async deleteReprocessTransactionsByTag ( tagId : number , options ?: any ) : Promise < AxiosResponse < object , any > > {
148
+ return this . transactionApi . apiV2TagTagIdDelete ( tagId , options ) ;
149
+ }
148
150
149
151
/**
150
152
*
@@ -154,7 +156,11 @@ export class DocumentReaderApi {
154
156
* @param {* } [options] Override http request option.
155
157
* @throws {RequiredError }
156
158
*/
157
- async getReprocessTransactionFile ( transactionId : number , name : string , options ?: any ) {
159
+ async getReprocessTransactionFile (
160
+ transactionId : number ,
161
+ name : string ,
162
+ options ?: any ,
163
+ ) : Promise < AxiosResponse < any , any > > {
158
164
return this . transactionApi . apiV2TransactionTransactionIdFileGet ( transactionId , name , options ) ;
159
165
}
160
166
@@ -165,7 +171,10 @@ export class DocumentReaderApi {
165
171
* @param {* } [options] Override http request option.
166
172
* @throws {RequiredError }
167
173
*/
168
- async getReprocessTransactionData ( transactionId : number , options ?: any ) {
174
+ async getReprocessTransactionData (
175
+ transactionId : number ,
176
+ options ?: any ,
177
+ ) : Promise < AxiosResponse < TransactionProcessGetResponse , any > > {
169
178
return this . transactionApi . apiV2TransactionTransactionIdGet ( transactionId , options ) ;
170
179
}
171
180
}
0 commit comments