@@ -14,6 +14,8 @@ import {
1414 DeviceInfo ,
1515 TransactionProcessRequest ,
1616 InlineResponse200 ,
17+ ListTransactionsByTagResponse ,
18+ TransactionProcessGetResponse ,
1719} from '../models' ;
1820import { Base64String , instanceOfProcessRequest , ProcessRequestExt } from './process-request-ext' ;
1921import { ProcessRequestImageWrapper } from './process-request-image-wrapper' ;
@@ -131,9 +133,9 @@ export class DocumentReaderApi {
131133 * @param {* } [options] Override http request option.
132134 * @throws {RequiredError }
133135 */
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+ }
137139
138140 /**
139141 *
@@ -142,9 +144,9 @@ export class DocumentReaderApi {
142144 * @param {* } [options] Override http request option.
143145 * @throws {RequiredError }
144146 */
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+ }
148150
149151 /**
150152 *
@@ -154,7 +156,11 @@ export class DocumentReaderApi {
154156 * @param {* } [options] Override http request option.
155157 * @throws {RequiredError }
156158 */
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 > > {
158164 return this . transactionApi . apiV2TransactionTransactionIdFileGet ( transactionId , name , options ) ;
159165 }
160166
@@ -165,7 +171,10 @@ export class DocumentReaderApi {
165171 * @param {* } [options] Override http request option.
166172 * @throws {RequiredError }
167173 */
168- async getReprocessTransactionData ( transactionId : number , options ?: any ) {
174+ async getReprocessTransactionData (
175+ transactionId : number ,
176+ options ?: any ,
177+ ) : Promise < AxiosResponse < TransactionProcessGetResponse , any > > {
169178 return this . transactionApi . apiV2TransactionTransactionIdGet ( transactionId , options ) ;
170179 }
171180}
0 commit comments