Skip to content

Commit c0f48f1

Browse files
Merge pull request #11 from mxenabled/bm/add_query_params
Add query params
2 parents 0bfd045 + fdaddb5 commit c0f48f1

4 files changed

Lines changed: 95 additions & 31 deletions

File tree

api.ts

Lines changed: 85 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5142,10 +5142,12 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
51425142
* Use this endpoint to read the attributes of a specific user.
51435143
* @summary List default categories
51445144
* @param {string} userGuid The unique id for a `user`.
5145+
* @param {number} [page] Specify current page.
5146+
* @param {number} [recordsPerPage] Specify records per page.
51455147
* @param {*} [options] Override http request option.
51465148
* @throws {RequiredError}
51475149
*/
5148-
listDefaultCategories: async (userGuid: string, options: any = {}): Promise<RequestArgs> => {
5150+
listDefaultCategories: async (userGuid: string, page?: number, recordsPerPage?: number, options: any = {}): Promise<RequestArgs> => {
51495151
// verify required parameter 'userGuid' is not null or undefined
51505152
assertParamExists('listDefaultCategories', 'userGuid', userGuid)
51515153
const localVarPath = `/users/{user_guid}/categories/default`
@@ -5165,6 +5167,14 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
51655167
// http basic authentication required
51665168
setBasicAuthToObject(localVarRequestOptions, configuration)
51675169

5170+
if (page !== undefined) {
5171+
localVarQueryParameter['page'] = page;
5172+
}
5173+
5174+
if (recordsPerPage !== undefined) {
5175+
localVarQueryParameter['records_per_page'] = recordsPerPage;
5176+
}
5177+
51685178

51695179

51705180
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
@@ -5392,14 +5402,16 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
53925402
* This endpoint returns a list of institutions based on the specified search term or parameter.
53935403
* @summary List institutions
53945404
* @param {string} [name] This will list only institutions in which the appended string appears.
5405+
* @param {number} [page] Specify current page.
5406+
* @param {number} [recordsPerPage] Specify records per page.
53955407
* @param {boolean} [supportsAccountIdentification] Filter only institutions which support account identification.
53965408
* @param {boolean} [supportsAccountStatement] Filter only institutions which support account statements.
53975409
* @param {boolean} [supportsAccountVerification] Filter only institutions which support account verification.
53985410
* @param {boolean} [supportsTransactionHistory] Filter only institutions which support extended transaction history.
53995411
* @param {*} [options] Override http request option.
54005412
* @throws {RequiredError}
54015413
*/
5402-
listInstitutions: async (name?: string, supportsAccountIdentification?: boolean, supportsAccountStatement?: boolean, supportsAccountVerification?: boolean, supportsTransactionHistory?: boolean, options: any = {}): Promise<RequestArgs> => {
5414+
listInstitutions: async (name?: string, page?: number, recordsPerPage?: number, supportsAccountIdentification?: boolean, supportsAccountStatement?: boolean, supportsAccountVerification?: boolean, supportsTransactionHistory?: boolean, options: any = {}): Promise<RequestArgs> => {
54035415
const localVarPath = `/institutions`;
54045416
// use dummy base URL string because the URL constructor only accepts absolute URLs.
54055417
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -5420,6 +5432,14 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
54205432
localVarQueryParameter['name'] = name;
54215433
}
54225434

5435+
if (page !== undefined) {
5436+
localVarQueryParameter['page'] = page;
5437+
}
5438+
5439+
if (recordsPerPage !== undefined) {
5440+
localVarQueryParameter['records_per_page'] = recordsPerPage;
5441+
}
5442+
54235443
if (supportsAccountIdentification !== undefined) {
54245444
localVarQueryParameter['supports_account_identification'] = supportsAccountIdentification;
54255445
}
@@ -6222,10 +6242,14 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
62226242
* @summary List transactions by tag
62236243
* @param {string} tagGuid The unique id for a &#x60;tag&#x60;.
62246244
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
6245+
* @param {string} [fromDate] Filter transactions from this date.
6246+
* @param {number} [page] Specify current page.
6247+
* @param {number} [recordsPerPage] Specify records per page.
6248+
* @param {string} [toDate] Filter transactions to this date.
62256249
* @param {*} [options] Override http request option.
62266250
* @throws {RequiredError}
62276251
*/
6228-
listTransactionsByTag: async (tagGuid: string, userGuid: string, options: any = {}): Promise<RequestArgs> => {
6252+
listTransactionsByTag: async (tagGuid: string, userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options: any = {}): Promise<RequestArgs> => {
62296253
// verify required parameter 'tagGuid' is not null or undefined
62306254
assertParamExists('listTransactionsByTag', 'tagGuid', tagGuid)
62316255
// verify required parameter 'userGuid' is not null or undefined
@@ -6248,6 +6272,22 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
62486272
// http basic authentication required
62496273
setBasicAuthToObject(localVarRequestOptions, configuration)
62506274

6275+
if (fromDate !== undefined) {
6276+
localVarQueryParameter['from_date'] = fromDate;
6277+
}
6278+
6279+
if (page !== undefined) {
6280+
localVarQueryParameter['page'] = page;
6281+
}
6282+
6283+
if (recordsPerPage !== undefined) {
6284+
localVarQueryParameter['records_per_page'] = recordsPerPage;
6285+
}
6286+
6287+
if (toDate !== undefined) {
6288+
localVarQueryParameter['to_date'] = toDate;
6289+
}
6290+
62516291

62526292

62536293
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
@@ -8206,11 +8246,13 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
82068246
* Use this endpoint to read the attributes of a specific user.
82078247
* @summary List default categories
82088248
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
8249+
* @param {number} [page] Specify current page.
8250+
* @param {number} [recordsPerPage] Specify records per page.
82098251
* @param {*} [options] Override http request option.
82108252
* @throws {RequiredError}
82118253
*/
8212-
async listDefaultCategories(userGuid: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoriesResponseBody>> {
8213-
const localVarAxiosArgs = await localVarAxiosParamCreator.listDefaultCategories(userGuid, options);
8254+
async listDefaultCategories(userGuid: string, page?: number, recordsPerPage?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CategoriesResponseBody>> {
8255+
const localVarAxiosArgs = await localVarAxiosParamCreator.listDefaultCategories(userGuid, page, recordsPerPage, options);
82148256
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
82158257
},
82168258
/**
@@ -8273,15 +8315,17 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
82738315
* This endpoint returns a list of institutions based on the specified search term or parameter.
82748316
* @summary List institutions
82758317
* @param {string} [name] This will list only institutions in which the appended string appears.
8318+
* @param {number} [page] Specify current page.
8319+
* @param {number} [recordsPerPage] Specify records per page.
82768320
* @param {boolean} [supportsAccountIdentification] Filter only institutions which support account identification.
82778321
* @param {boolean} [supportsAccountStatement] Filter only institutions which support account statements.
82788322
* @param {boolean} [supportsAccountVerification] Filter only institutions which support account verification.
82798323
* @param {boolean} [supportsTransactionHistory] Filter only institutions which support extended transaction history.
82808324
* @param {*} [options] Override http request option.
82818325
* @throws {RequiredError}
82828326
*/
8283-
async listInstitutions(name?: string, supportsAccountIdentification?: boolean, supportsAccountStatement?: boolean, supportsAccountVerification?: boolean, supportsTransactionHistory?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstitutionsResponseBody>> {
8284-
const localVarAxiosArgs = await localVarAxiosParamCreator.listInstitutions(name, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory, options);
8327+
async listInstitutions(name?: string, page?: number, recordsPerPage?: number, supportsAccountIdentification?: boolean, supportsAccountStatement?: boolean, supportsAccountVerification?: boolean, supportsTransactionHistory?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InstitutionsResponseBody>> {
8328+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInstitutions(name, page, recordsPerPage, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory, options);
82858329
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
82868330
},
82878331
/**
@@ -8495,11 +8539,15 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
84958539
* @summary List transactions by tag
84968540
* @param {string} tagGuid The unique id for a &#x60;tag&#x60;.
84978541
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
8542+
* @param {string} [fromDate] Filter transactions from this date.
8543+
* @param {number} [page] Specify current page.
8544+
* @param {number} [recordsPerPage] Specify records per page.
8545+
* @param {string} [toDate] Filter transactions to this date.
84988546
* @param {*} [options] Override http request option.
84998547
* @throws {RequiredError}
85008548
*/
8501-
async listTransactionsByTag(tagGuid: string, userGuid: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponseBody>> {
8502-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactionsByTag(tagGuid, userGuid, options);
8549+
async listTransactionsByTag(tagGuid: string, userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TransactionsResponseBody>> {
8550+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactionsByTag(tagGuid, userGuid, fromDate, page, recordsPerPage, toDate, options);
85038551
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
85048552
},
85058553
/**
@@ -9282,11 +9330,13 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
92829330
* Use this endpoint to read the attributes of a specific user.
92839331
* @summary List default categories
92849332
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
9333+
* @param {number} [page] Specify current page.
9334+
* @param {number} [recordsPerPage] Specify records per page.
92859335
* @param {*} [options] Override http request option.
92869336
* @throws {RequiredError}
92879337
*/
9288-
listDefaultCategories(userGuid: string, options?: any): AxiosPromise<CategoriesResponseBody> {
9289-
return localVarFp.listDefaultCategories(userGuid, options).then((request) => request(axios, basePath));
9338+
listDefaultCategories(userGuid: string, page?: number, recordsPerPage?: number, options?: any): AxiosPromise<CategoriesResponseBody> {
9339+
return localVarFp.listDefaultCategories(userGuid, page, recordsPerPage, options).then((request) => request(axios, basePath));
92909340
},
92919341
/**
92929342
* This endpoint returns a paginated list containing institutions that have been set as the partner’s favorites, sorted by popularity. Please contact MX to set a list of favorites.
@@ -9344,15 +9394,17 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
93449394
* This endpoint returns a list of institutions based on the specified search term or parameter.
93459395
* @summary List institutions
93469396
* @param {string} [name] This will list only institutions in which the appended string appears.
9397+
* @param {number} [page] Specify current page.
9398+
* @param {number} [recordsPerPage] Specify records per page.
93479399
* @param {boolean} [supportsAccountIdentification] Filter only institutions which support account identification.
93489400
* @param {boolean} [supportsAccountStatement] Filter only institutions which support account statements.
93499401
* @param {boolean} [supportsAccountVerification] Filter only institutions which support account verification.
93509402
* @param {boolean} [supportsTransactionHistory] Filter only institutions which support extended transaction history.
93519403
* @param {*} [options] Override http request option.
93529404
* @throws {RequiredError}
93539405
*/
9354-
listInstitutions(name?: string, supportsAccountIdentification?: boolean, supportsAccountStatement?: boolean, supportsAccountVerification?: boolean, supportsTransactionHistory?: boolean, options?: any): AxiosPromise<InstitutionsResponseBody> {
9355-
return localVarFp.listInstitutions(name, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory, options).then((request) => request(axios, basePath));
9406+
listInstitutions(name?: string, page?: number, recordsPerPage?: number, supportsAccountIdentification?: boolean, supportsAccountStatement?: boolean, supportsAccountVerification?: boolean, supportsTransactionHistory?: boolean, options?: any): AxiosPromise<InstitutionsResponseBody> {
9407+
return localVarFp.listInstitutions(name, page, recordsPerPage, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory, options).then((request) => request(axios, basePath));
93569408
},
93579409
/**
93589410
* Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
@@ -9550,11 +9602,15 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
95509602
* @summary List transactions by tag
95519603
* @param {string} tagGuid The unique id for a &#x60;tag&#x60;.
95529604
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
9605+
* @param {string} [fromDate] Filter transactions from this date.
9606+
* @param {number} [page] Specify current page.
9607+
* @param {number} [recordsPerPage] Specify records per page.
9608+
* @param {string} [toDate] Filter transactions to this date.
95539609
* @param {*} [options] Override http request option.
95549610
* @throws {RequiredError}
95559611
*/
9556-
listTransactionsByTag(tagGuid: string, userGuid: string, options?: any): AxiosPromise<TransactionsResponseBody> {
9557-
return localVarFp.listTransactionsByTag(tagGuid, userGuid, options).then((request) => request(axios, basePath));
9612+
listTransactionsByTag(tagGuid: string, userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options?: any): AxiosPromise<TransactionsResponseBody> {
9613+
return localVarFp.listTransactionsByTag(tagGuid, userGuid, fromDate, page, recordsPerPage, toDate, options).then((request) => request(axios, basePath));
95589614
},
95599615
/**
95609616
* This endpoint returns a list of all the accounts associated with the specified `user`.
@@ -10359,12 +10415,14 @@ export class MxPlatformApi extends BaseAPI {
1035910415
* Use this endpoint to read the attributes of a specific user.
1036010416
* @summary List default categories
1036110417
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
10418+
* @param {number} [page] Specify current page.
10419+
* @param {number} [recordsPerPage] Specify records per page.
1036210420
* @param {*} [options] Override http request option.
1036310421
* @throws {RequiredError}
1036410422
* @memberof MxPlatformApi
1036510423
*/
10366-
public listDefaultCategories(userGuid: string, options?: any) {
10367-
return MxPlatformApiFp(this.configuration).listDefaultCategories(userGuid, options).then((request) => request(this.axios, this.basePath));
10424+
public listDefaultCategories(userGuid: string, page?: number, recordsPerPage?: number, options?: any) {
10425+
return MxPlatformApiFp(this.configuration).listDefaultCategories(userGuid, page, recordsPerPage, options).then((request) => request(this.axios, this.basePath));
1036810426
}
1036910427

1037010428
/**
@@ -10431,6 +10489,8 @@ export class MxPlatformApi extends BaseAPI {
1043110489
* This endpoint returns a list of institutions based on the specified search term or parameter.
1043210490
* @summary List institutions
1043310491
* @param {string} [name] This will list only institutions in which the appended string appears.
10492+
* @param {number} [page] Specify current page.
10493+
* @param {number} [recordsPerPage] Specify records per page.
1043410494
* @param {boolean} [supportsAccountIdentification] Filter only institutions which support account identification.
1043510495
* @param {boolean} [supportsAccountStatement] Filter only institutions which support account statements.
1043610496
* @param {boolean} [supportsAccountVerification] Filter only institutions which support account verification.
@@ -10439,8 +10499,8 @@ export class MxPlatformApi extends BaseAPI {
1043910499
* @throws {RequiredError}
1044010500
* @memberof MxPlatformApi
1044110501
*/
10442-
public listInstitutions(name?: string, supportsAccountIdentification?: boolean, supportsAccountStatement?: boolean, supportsAccountVerification?: boolean, supportsTransactionHistory?: boolean, options?: any) {
10443-
return MxPlatformApiFp(this.configuration).listInstitutions(name, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory, options).then((request) => request(this.axios, this.basePath));
10502+
public listInstitutions(name?: string, page?: number, recordsPerPage?: number, supportsAccountIdentification?: boolean, supportsAccountStatement?: boolean, supportsAccountVerification?: boolean, supportsTransactionHistory?: boolean, options?: any) {
10503+
return MxPlatformApiFp(this.configuration).listInstitutions(name, page, recordsPerPage, supportsAccountIdentification, supportsAccountStatement, supportsAccountVerification, supportsTransactionHistory, options).then((request) => request(this.axios, this.basePath));
1044410504
}
1044510505

1044610506
/**
@@ -10669,12 +10729,16 @@ export class MxPlatformApi extends BaseAPI {
1066910729
* @summary List transactions by tag
1067010730
* @param {string} tagGuid The unique id for a &#x60;tag&#x60;.
1067110731
* @param {string} userGuid The unique id for a &#x60;user&#x60;.
10732+
* @param {string} [fromDate] Filter transactions from this date.
10733+
* @param {number} [page] Specify current page.
10734+
* @param {number} [recordsPerPage] Specify records per page.
10735+
* @param {string} [toDate] Filter transactions to this date.
1067210736
* @param {*} [options] Override http request option.
1067310737
* @throws {RequiredError}
1067410738
* @memberof MxPlatformApi
1067510739
*/
10676-
public listTransactionsByTag(tagGuid: string, userGuid: string, options?: any) {
10677-
return MxPlatformApiFp(this.configuration).listTransactionsByTag(tagGuid, userGuid, options).then((request) => request(this.axios, this.basePath));
10740+
public listTransactionsByTag(tagGuid: string, userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options?: any) {
10741+
return MxPlatformApiFp(this.configuration).listTransactionsByTag(tagGuid, userGuid, fromDate, page, recordsPerPage, toDate, options).then((request) => request(this.axios, this.basePath));
1067810742
}
1067910743

1068010744
/**

0 commit comments

Comments
 (0)