@@ -5389,6 +5389,68 @@ export const MxPlatformApiAxiosParamCreator = function (configuration?: Configur
53895389
53905390
53915391
5392+ setSearchParams(localVarUrlObj, localVarQueryParameter);
5393+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5394+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
5395+
5396+ return {
5397+ url: toPathString(localVarUrlObj),
5398+ options: localVarRequestOptions,
5399+ };
5400+ },
5401+ /**
5402+ * This endpoint returns all holdings associated with the specified `account`.
5403+ * @summary List holdings by account
5404+ * @param {string} accountGuid The unique id for the `account`.
5405+ * @param {string} userGuid The unique id for the `user`.
5406+ * @param {string} [fromDate] Filter holdings from this date.
5407+ * @param {number} [page] Specify current page.
5408+ * @param {number} [recordsPerPage] Specify records per page.
5409+ * @param {string} [toDate] Filter holdings to this date.
5410+ * @param {*} [options] Override http request option.
5411+ * @throws {RequiredError}
5412+ */
5413+ listHoldingsByAccount: async (accountGuid: string, userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
5414+ // verify required parameter 'accountGuid' is not null or undefined
5415+ assertParamExists('listHoldingsByAccount', 'accountGuid', accountGuid)
5416+ // verify required parameter 'userGuid' is not null or undefined
5417+ assertParamExists('listHoldingsByAccount', 'userGuid', userGuid)
5418+ const localVarPath = `/users/{user_guid}/accounts/{account_guid}/holdings`
5419+ .replace(`{${"account_guid"}}`, encodeURIComponent(String(accountGuid)))
5420+ .replace(`{${"user_guid"}}`, encodeURIComponent(String(userGuid)));
5421+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
5422+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5423+ let baseOptions;
5424+ if (configuration) {
5425+ baseOptions = configuration.baseOptions;
5426+ }
5427+
5428+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
5429+ const localVarHeaderParameter = {} as any;
5430+ const localVarQueryParameter = {} as any;
5431+
5432+ // authentication basicAuth required
5433+ // http basic authentication required
5434+ setBasicAuthToObject(localVarRequestOptions, configuration)
5435+
5436+ if (fromDate !== undefined) {
5437+ localVarQueryParameter['from_date'] = fromDate;
5438+ }
5439+
5440+ if (page !== undefined) {
5441+ localVarQueryParameter['page'] = page;
5442+ }
5443+
5444+ if (recordsPerPage !== undefined) {
5445+ localVarQueryParameter['records_per_page'] = recordsPerPage;
5446+ }
5447+
5448+ if (toDate !== undefined) {
5449+ localVarQueryParameter['to_date'] = toDate;
5450+ }
5451+
5452+
5453+
53925454 setSearchParams(localVarUrlObj, localVarQueryParameter);
53935455 let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53945456 localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8446,6 +8508,22 @@ export const MxPlatformApiFp = function(configuration?: Configuration) {
84468508 const localVarAxiosArgs = await localVarAxiosParamCreator.listHoldings(userGuid, fromDate, page, recordsPerPage, toDate, options);
84478509 return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
84488510 },
8511+ /**
8512+ * This endpoint returns all holdings associated with the specified `account`.
8513+ * @summary List holdings by account
8514+ * @param {string} accountGuid The unique id for the `account`.
8515+ * @param {string} userGuid The unique id for the `user`.
8516+ * @param {string} [fromDate] Filter holdings from this date.
8517+ * @param {number} [page] Specify current page.
8518+ * @param {number} [recordsPerPage] Specify records per page.
8519+ * @param {string} [toDate] Filter holdings to this date.
8520+ * @param {*} [options] Override http request option.
8521+ * @throws {RequiredError}
8522+ */
8523+ async listHoldingsByAccount(accountGuid: string, userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HoldingsResponseBody>> {
8524+ const localVarAxiosArgs = await localVarAxiosParamCreator.listHoldingsByAccount(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate, options);
8525+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8526+ },
84498527 /**
84508528 * This endpoint returns all holdings associated with the specified `member` across all accounts.
84518529 * @summary List holdings by member
@@ -9550,6 +9628,21 @@ export const MxPlatformApiFactory = function (configuration?: Configuration, bas
95509628 listHoldings(userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options?: any): AxiosPromise<HoldingsResponseBody> {
95519629 return localVarFp.listHoldings(userGuid, fromDate, page, recordsPerPage, toDate, options).then((request) => request(axios, basePath));
95529630 },
9631+ /**
9632+ * This endpoint returns all holdings associated with the specified `account`.
9633+ * @summary List holdings by account
9634+ * @param {string} accountGuid The unique id for the `account`.
9635+ * @param {string} userGuid The unique id for the `user`.
9636+ * @param {string} [fromDate] Filter holdings from this date.
9637+ * @param {number} [page] Specify current page.
9638+ * @param {number} [recordsPerPage] Specify records per page.
9639+ * @param {string} [toDate] Filter holdings to this date.
9640+ * @param {*} [options] Override http request option.
9641+ * @throws {RequiredError}
9642+ */
9643+ listHoldingsByAccount(accountGuid: string, userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options?: any): AxiosPromise<HoldingsResponseBody> {
9644+ return localVarFp.listHoldingsByAccount(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate, options).then((request) => request(axios, basePath));
9645+ },
95539646 /**
95549647 * This endpoint returns all holdings associated with the specified `member` across all accounts.
95559648 * @summary List holdings by member
@@ -10665,6 +10758,23 @@ export class MxPlatformApi extends BaseAPI {
1066510758 return MxPlatformApiFp(this.configuration).listHoldings(userGuid, fromDate, page, recordsPerPage, toDate, options).then((request) => request(this.axios, this.basePath));
1066610759 }
1066710760
10761+ /**
10762+ * This endpoint returns all holdings associated with the specified `account`.
10763+ * @summary List holdings by account
10764+ * @param {string} accountGuid The unique id for the `account`.
10765+ * @param {string} userGuid The unique id for the `user`.
10766+ * @param {string} [fromDate] Filter holdings from this date.
10767+ * @param {number} [page] Specify current page.
10768+ * @param {number} [recordsPerPage] Specify records per page.
10769+ * @param {string} [toDate] Filter holdings to this date.
10770+ * @param {*} [options] Override http request option.
10771+ * @throws {RequiredError}
10772+ * @memberof MxPlatformApi
10773+ */
10774+ public listHoldingsByAccount(accountGuid: string, userGuid: string, fromDate?: string, page?: number, recordsPerPage?: number, toDate?: string, options?: AxiosRequestConfig) {
10775+ return MxPlatformApiFp(this.configuration).listHoldingsByAccount(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate, options).then((request) => request(this.axios, this.basePath));
10776+ }
10777+
1066810778 /**
1066910779 * This endpoint returns all holdings associated with the specified `member` across all accounts.
1067010780 * @summary List holdings by member
0 commit comments