@@ -4732,6 +4732,176 @@ public okhttp3.Call listHoldingsAsync(String userGuid, String fromDate, Integer
47324732 localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
47334733 return localVarCall;
47344734 }
4735+ /**
4736+ * Build call for listHoldingsByAccount
4737+ * @param accountGuid The unique id for the `account`. (required)
4738+ * @param userGuid The unique id for the `user`. (required)
4739+ * @param fromDate Filter holdings from this date. (optional)
4740+ * @param page Specify current page. (optional)
4741+ * @param recordsPerPage Specify records per page. (optional)
4742+ * @param toDate Filter holdings to this date. (optional)
4743+ * @param _callback Callback for upload/download progress
4744+ * @return Call to execute
4745+ * @throws ApiException If fail to serialize the request body object
4746+ * @http.response.details
4747+ <table summary="Response Details" border="1">
4748+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
4749+ <tr><td> 200 </td><td> OK </td><td> - </td></tr>
4750+ </table>
4751+ */
4752+ public okhttp3.Call listHoldingsByAccountCall(String accountGuid, String userGuid, String fromDate, Integer page, Integer recordsPerPage, String toDate, final ApiCallback _callback) throws ApiException {
4753+ String basePath = null;
4754+
4755+ // Operation Servers
4756+ String[] localBasePaths = new String[] { };
4757+
4758+ // Determine Base Path to Use
4759+ if (localCustomBaseUrl != null){
4760+ basePath = localCustomBaseUrl;
4761+ } else if ( localBasePaths.length > 0 ) {
4762+ basePath = localBasePaths[localHostIndex];
4763+ } else {
4764+ basePath = null;
4765+ }
4766+
4767+ Object localVarPostBody = null;
4768+
4769+ // create path and map variables
4770+ String localVarPath = "/users/{user_guid}/accounts/{account_guid}/holdings"
4771+ .replaceAll("\\{" + "account_guid" + "\\}", localVarApiClient.escapeString(accountGuid.toString()))
4772+ .replaceAll("\\{" + "user_guid" + "\\}", localVarApiClient.escapeString(userGuid.toString()));
4773+
4774+ List<Pair> localVarQueryParams = new ArrayList<Pair>();
4775+ List<Pair> localVarCollectionQueryParams = new ArrayList<Pair>();
4776+ Map<String, String> localVarHeaderParams = new HashMap<String, String>();
4777+ Map<String, String> localVarCookieParams = new HashMap<String, String>();
4778+ Map<String, Object> localVarFormParams = new HashMap<String, Object>();
4779+
4780+ if (fromDate != null) {
4781+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("from_date", fromDate));
4782+ }
4783+
4784+ if (page != null) {
4785+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page));
4786+ }
4787+
4788+ if (recordsPerPage != null) {
4789+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("records_per_page", recordsPerPage));
4790+ }
4791+
4792+ if (toDate != null) {
4793+ localVarQueryParams.addAll(localVarApiClient.parameterToPair("to_date", toDate));
4794+ }
4795+
4796+ final String[] localVarAccepts = {
4797+ "application/vnd.mx.api.v1+json"
4798+ };
4799+ final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
4800+ if (localVarAccept != null) {
4801+ localVarHeaderParams.put("Accept", localVarAccept);
4802+ }
4803+
4804+ final String[] localVarContentTypes = {
4805+
4806+ };
4807+ final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
4808+ if (localVarHeaderParams != null) {
4809+ localVarHeaderParams.put("Content-Type", localVarContentType);
4810+ }
4811+
4812+ String[] localVarAuthNames = new String[] { "basicAuth" };
4813+ return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
4814+ }
4815+
4816+ @SuppressWarnings("rawtypes")
4817+ private okhttp3.Call listHoldingsByAccountValidateBeforeCall(String accountGuid, String userGuid, String fromDate, Integer page, Integer recordsPerPage, String toDate, final ApiCallback _callback) throws ApiException {
4818+
4819+ // verify the required parameter 'accountGuid' is set
4820+ if (accountGuid == null) {
4821+ throw new ApiException("Missing the required parameter 'accountGuid' when calling listHoldingsByAccount(Async)");
4822+ }
4823+
4824+ // verify the required parameter 'userGuid' is set
4825+ if (userGuid == null) {
4826+ throw new ApiException("Missing the required parameter 'userGuid' when calling listHoldingsByAccount(Async)");
4827+ }
4828+
4829+
4830+ okhttp3.Call localVarCall = listHoldingsByAccountCall(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate, _callback);
4831+ return localVarCall;
4832+
4833+ }
4834+
4835+ /**
4836+ * List holdings by account
4837+ * This endpoint returns all holdings associated with the specified `account`.
4838+ * @param accountGuid The unique id for the `account`. (required)
4839+ * @param userGuid The unique id for the `user`. (required)
4840+ * @param fromDate Filter holdings from this date. (optional)
4841+ * @param page Specify current page. (optional)
4842+ * @param recordsPerPage Specify records per page. (optional)
4843+ * @param toDate Filter holdings to this date. (optional)
4844+ * @return HoldingsResponseBody
4845+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
4846+ * @http.response.details
4847+ <table summary="Response Details" border="1">
4848+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
4849+ <tr><td> 200 </td><td> OK </td><td> - </td></tr>
4850+ </table>
4851+ */
4852+ public HoldingsResponseBody listHoldingsByAccount(String accountGuid, String userGuid, String fromDate, Integer page, Integer recordsPerPage, String toDate) throws ApiException {
4853+ ApiResponse<HoldingsResponseBody> localVarResp = listHoldingsByAccountWithHttpInfo(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate);
4854+ return localVarResp.getData();
4855+ }
4856+
4857+ /**
4858+ * List holdings by account
4859+ * This endpoint returns all holdings associated with the specified `account`.
4860+ * @param accountGuid The unique id for the `account`. (required)
4861+ * @param userGuid The unique id for the `user`. (required)
4862+ * @param fromDate Filter holdings from this date. (optional)
4863+ * @param page Specify current page. (optional)
4864+ * @param recordsPerPage Specify records per page. (optional)
4865+ * @param toDate Filter holdings to this date. (optional)
4866+ * @return ApiResponse<HoldingsResponseBody>
4867+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
4868+ * @http.response.details
4869+ <table summary="Response Details" border="1">
4870+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
4871+ <tr><td> 200 </td><td> OK </td><td> - </td></tr>
4872+ </table>
4873+ */
4874+ public ApiResponse<HoldingsResponseBody> listHoldingsByAccountWithHttpInfo(String accountGuid, String userGuid, String fromDate, Integer page, Integer recordsPerPage, String toDate) throws ApiException {
4875+ okhttp3.Call localVarCall = listHoldingsByAccountValidateBeforeCall(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate, null);
4876+ Type localVarReturnType = new TypeToken<HoldingsResponseBody>(){}.getType();
4877+ return localVarApiClient.execute(localVarCall, localVarReturnType);
4878+ }
4879+
4880+ /**
4881+ * List holdings by account (asynchronously)
4882+ * This endpoint returns all holdings associated with the specified `account`.
4883+ * @param accountGuid The unique id for the `account`. (required)
4884+ * @param userGuid The unique id for the `user`. (required)
4885+ * @param fromDate Filter holdings from this date. (optional)
4886+ * @param page Specify current page. (optional)
4887+ * @param recordsPerPage Specify records per page. (optional)
4888+ * @param toDate Filter holdings to this date. (optional)
4889+ * @param _callback The callback to be executed when the API call finishes
4890+ * @return The request call
4891+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
4892+ * @http.response.details
4893+ <table summary="Response Details" border="1">
4894+ <tr><td> Status Code </td><td> Description </td><td> Response Headers </td></tr>
4895+ <tr><td> 200 </td><td> OK </td><td> - </td></tr>
4896+ </table>
4897+ */
4898+ public okhttp3.Call listHoldingsByAccountAsync(String accountGuid, String userGuid, String fromDate, Integer page, Integer recordsPerPage, String toDate, final ApiCallback<HoldingsResponseBody> _callback) throws ApiException {
4899+
4900+ okhttp3.Call localVarCall = listHoldingsByAccountValidateBeforeCall(accountGuid, userGuid, fromDate, page, recordsPerPage, toDate, _callback);
4901+ Type localVarReturnType = new TypeToken<HoldingsResponseBody>(){}.getType();
4902+ localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
4903+ return localVarCall;
4904+ }
47354905 /**
47364906 * Build call for listHoldingsByMember
47374907 * @param memberGuid The unique id for a `member`. (required)
0 commit comments