Skip to content

Commit e218736

Browse files
SP-17951 - add: getTransactionsByTag, deleteReprocessTransactionsByTag, getReprocessTransactionFile, getReprocessTransactionData
1 parent c07bdac commit e218736

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

src/ext/document-reader.ts

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,51 @@ export class DocumentReaderApi {
123123
);
124124
return new Response(axiosResult.data);
125125
}
126+
127+
/**
128+
*
129+
* @summary Get transactions by tag
130+
* @param {number} tagId Tag id
131+
* @param {*} [options] Override http request option.
132+
* @throws {RequiredError}
133+
*/
134+
async getTransactionsByTag(tagId: number, options?: any) {
135+
return this.transactionApi.apiV2TagTagIdTransactionsGet(tagId, options);
136+
}
137+
138+
/**
139+
*
140+
* @summary Delete Reprocess transactions by tag
141+
* @param {number} tagId Tag id
142+
* @param {*} [options] Override http request option.
143+
* @throws {RequiredError}
144+
*/
145+
async deleteReprocessTransactionsByTag(tagId: number, options?: any) {
146+
return this.transactionApi.apiV2TagTagIdDelete(tagId, options);
147+
}
148+
149+
/**
150+
*
151+
* @summary Get Reprocess transaction file
152+
* @param {number} transactionId Transaction id
153+
* @param {string} name File name
154+
* @param {*} [options] Override http request option.
155+
* @throws {RequiredError}
156+
*/
157+
async getReprocessTransactionFile(transactionId: number, name: string, options?: any) {
158+
return this.transactionApi.apiV2TransactionTransactionIdFileGet(transactionId, name, options);
159+
}
160+
161+
/**
162+
*
163+
* @summary Get Reprocess transaction data
164+
* @param {number} transactionId Transaction id
165+
* @param {*} [options] Override http request option.
166+
* @throws {RequiredError}
167+
*/
168+
async getReprocessTransactionData(transactionId: number, options?: any) {
169+
return this.transactionApi.apiV2TransactionTransactionIdGet(transactionId, options);
170+
}
126171
}
127172

128173
export function requestToBaseRequest(request: ProcessRequestExt): ProcessRequestBase {

0 commit comments

Comments
 (0)