@@ -19,6 +19,8 @@ import { Configuration } from '../configuration';
1919// @ts -ignore
2020import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from '../base' ;
2121// @ts -ignore
22+ import { GetTransactionsByTagResponse } from '../models' ;
23+ // @ts -ignore
2224import { InlineResponse200 } from '../models' ;
2325// @ts -ignore
2426import { InlineResponse2001 } from '../models' ;
@@ -59,6 +61,49 @@ export const TransactionApiAxiosParamCreator = function (configuration?: Configu
5961
6062
6163
64+ const queryParameters = new URLSearchParams ( localVarUrlObj . search ) ;
65+ for ( const key in localVarQueryParameter ) {
66+ queryParameters . set ( key , localVarQueryParameter [ key ] ) ;
67+ }
68+ for ( const key in options . query ) {
69+ queryParameters . set ( key , options . query [ key ] ) ;
70+ }
71+ localVarUrlObj . search = ( new URLSearchParams ( queryParameters ) ) . toString ( ) ;
72+ let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ;
73+ localVarRequestOptions . headers = { ...localVarHeaderParameter , ...headersFromBaseOptions , ...options . headers } ;
74+
75+ return {
76+ url : localVarUrlObj . pathname + localVarUrlObj . search + localVarUrlObj . hash ,
77+ options : localVarRequestOptions ,
78+ } ;
79+ } ,
80+ /**
81+ *
82+ * @summary Get transactions by tag
83+ * @param {number } tagId Tag id
84+ * @param {* } [options] Override http request option.
85+ * @throws {RequiredError }
86+ */
87+ apiV2TagTagIdTransactionsGet : async ( tagId : number , options : any = { } ) : Promise < RequestArgs > => {
88+ // verify required parameter 'tagId' is not null or undefined
89+ if ( tagId === null || tagId === undefined ) {
90+ throw new RequiredError ( 'tagId' , 'Required parameter tagId was null or undefined when calling apiV2TagTagIdTransactionsGet.' ) ;
91+ }
92+ const localVarPath = `/api/v2/tag/{tagId}/transactions`
93+ . replace ( `{${ "tagId" } }` , encodeURIComponent ( String ( tagId ) ) ) ;
94+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
95+ const localVarUrlObj = new URL ( localVarPath , 'https://example.com' ) ;
96+ let baseOptions ;
97+ if ( configuration ) {
98+ baseOptions = configuration . baseOptions ;
99+ }
100+
101+ const localVarRequestOptions = { method : 'GET' , ...baseOptions , ...options } ;
102+ const localVarHeaderParameter = { } as any ;
103+ const localVarQueryParameter = { } as any ;
104+
105+
106+
62107 const queryParameters = new URLSearchParams ( localVarUrlObj . search ) ;
63108 for ( const key in localVarQueryParameter ) {
64109 queryParameters . set ( key , localVarQueryParameter [ key ] ) ;
@@ -298,6 +343,20 @@ export const TransactionApiFp = function(configuration?: Configuration) {
298343 return axios . request ( axiosRequestArgs ) ;
299344 } ;
300345 } ,
346+ /**
347+ *
348+ * @summary Get transactions by tag
349+ * @param {number } tagId Tag id
350+ * @param {* } [options] Override http request option.
351+ * @throws {RequiredError }
352+ */
353+ async apiV2TagTagIdTransactionsGet ( tagId : number , options ?: any ) : Promise < ( axios ?: AxiosInstance , basePath ?: string ) => AxiosPromise < Array < GetTransactionsByTagResponse > > > {
354+ const localVarAxiosArgs = await TransactionApiAxiosParamCreator ( configuration ) . apiV2TagTagIdTransactionsGet ( tagId , options ) ;
355+ return ( axios : AxiosInstance = globalAxios , basePath : string = BASE_PATH ) => {
356+ const axiosRequestArgs = { ...localVarAxiosArgs . options , url : ( configuration ?. basePath || basePath ) + localVarAxiosArgs . url } ;
357+ return axios . request ( axiosRequestArgs ) ;
358+ } ;
359+ } ,
301360 /**
302361 *
303362 * @summary Get Reprocess transaction file
@@ -376,6 +435,16 @@ export const TransactionApiFactory = function (configuration?: Configuration, ba
376435 apiV2TagTagIdDelete ( tagId : number , options ?: any ) : AxiosPromise < object > {
377436 return TransactionApiFp ( configuration ) . apiV2TagTagIdDelete ( tagId , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
378437 } ,
438+ /**
439+ *
440+ * @summary Get transactions by tag
441+ * @param {number } tagId Tag id
442+ * @param {* } [options] Override http request option.
443+ * @throws {RequiredError }
444+ */
445+ apiV2TagTagIdTransactionsGet ( tagId : number , options ?: any ) : AxiosPromise < Array < GetTransactionsByTagResponse > > {
446+ return TransactionApiFp ( configuration ) . apiV2TagTagIdTransactionsGet ( tagId , options ) . then ( ( request ) => request ( axios , basePath ) ) ;
447+ } ,
379448 /**
380449 *
381450 * @summary Get Reprocess transaction file
@@ -441,6 +510,18 @@ export class TransactionApi extends BaseAPI {
441510 return TransactionApiFp ( this . configuration ) . apiV2TagTagIdDelete ( tagId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
442511 }
443512
513+ /**
514+ *
515+ * @summary Get transactions by tag
516+ * @param {number } tagId Tag id
517+ * @param {* } [options] Override http request option.
518+ * @throws {RequiredError }
519+ * @memberof TransactionApi
520+ */
521+ public apiV2TagTagIdTransactionsGet ( tagId : number , options ?: any ) {
522+ return TransactionApiFp ( this . configuration ) . apiV2TagTagIdTransactionsGet ( tagId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ;
523+ }
524+
444525 /**
445526 *
446527 * @summary Get Reprocess transaction file
0 commit comments