src/main/java/com/squareup/connect/api/V1TransactionsApi.java
public CompleteResponse<V1BankAccount>retrieveBankAccountWithHttpInfo(String locationId, String bankAccountId) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'locationId' is set
    if (locationId == null) {
      throw new ApiException(400, "Missing the required parameter 'locationId' when calling retrieveBankAccount");
    }
    
    // verify the required parameter 'bankAccountId' is set
    if (bankAccountId == null) {
      throw new ApiException(400, "Missing the required parameter 'bankAccountId' when calling retrieveBankAccount");
    }
    
    // create path and map variables
    String localVarPath = "/v1/{location_id}/bank-accounts/{bank_account_id}"
      .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString()))
      .replaceAll("\\{" + "bank_account_id" + "\\}", apiClient.escapeString(bankAccountId.toString()));

    // query params
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    localVarHeaderParams.put("Square-Version", "2019-11-20");

    
    
    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

    String[] localVarAuthNames = new String[] { "oauth2" };

    GenericType<V1BankAccount> localVarReturnType = new GenericType<V1BankAccount>() {};
    return (CompleteResponse<V1BankAccount>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
/**
   * RetrieveBankAccount
   * Provides non-confidential details for a merchant&#39;s associated bank account. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
   * @param locationId The ID of the bank account&#39;s associated location. (required)
   * @param bankAccountId The bank account&#39;s Square-issued ID. You obtain this value from Settlement objects returned. (required)
   * @return CompleteResponse<V1BankAccount>
   * @throws ApiException if fails to make API call
   */
RetrieveBankAccount
Provides non-confidential details for a merchant's associated bank account. This endpoint does not provide full bank account numbers, and there is no way to obtain a full bank account number with the Connect API.
@param locationId The ID of the bank account's associated location. (required)
@param bankAccountId The bank account's Square-issued ID. You obtain this value from Settlement objects returned. (required)
@return CompleteResponse
@throws ApiException if fails to make API call
RetrieveBankAccount Provides non - confidential details for a merchant ' s associated bank account . This endpoint does not provide full bank account numbers and there is no way to obtain a full bank account number with the Connect API . @param locationId The ID of the bank account ' s associated location . ( required ) @param bankAccountId The bank account ' s Square - issued ID . You obtain this value from Settlement objects returned . ( required ) @return CompleteResponse @throws ApiException if fails to make API call
public CompleteResponse<V1BankAccount>retrieveBankAccountWithHttpInfo(String locationId, String bankAccountId) throws ApiException {
    Object localVarPostBody = null;
    if (locationId == null) {
      throw new ApiException(400, "Missing the required parameter 'locationId' when calling retrieveBankAccount");
    }
    if (bankAccountId == null) {
      throw new ApiException(400, "Missing the required parameter 'bankAccountId' when calling retrieveBankAccount");
    }
    String localVarPath = "/v1/{location_id}/bank-accounts/{bank_account_id}"
      .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.toString()))
      .replaceAll("\\{" + "bank_account_id" + "\\}", apiClient.escapeString(bankAccountId.toString()));
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    localVarHeaderParams.put("Square-Version", "2019-11-20");
    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    String[] localVarAuthNames = new String[] { "oauth2" };
    GenericType<V1BankAccount> localVarReturnType = new GenericType<V1BankAccount>() {};
    return (CompleteResponse<V1BankAccount>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
public CompleteResponse < V1BankAccount > retrieveBankAccountWithHttpInfo ( String locationId , String bankAccountId ) throws ApiException { Object localVarPostBody = null ; if ( locationId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'locationId' when calling retrieveBankAccount" ) ; } if ( bankAccountId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'bankAccountId' when calling retrieveBankAccount" ) ; } String localVarPath = "/v1/{location_id}/bank-accounts/{bank_account_id}" . replaceAll ( "\\{" + "location_id" + "\\}" , apiClient . escapeString ( locationId . toString ( ) ) ) . replaceAll ( "\\{" + "bank_account_id" + "\\}" , apiClient . escapeString ( bankAccountId . toString ( ) ) ) ; List < Pair > localVarQueryParams = new ArrayList < Pair > ( ) ; Map < String , String > localVarHeaderParams = new HashMap < String , String > ( ) ; Map < String , Object > localVarFormParams = new HashMap < String , Object > ( ) ; localVarHeaderParams . put ( "Square-Version" , "2019-11-20" ) ; final String [ ] localVarAccepts = { "application/json" } ; final String localVarAccept = apiClient . selectHeaderAccept ( localVarAccepts ) ; final String [ ] localVarContentTypes = { "application/json" } ; final String localVarContentType = apiClient . selectHeaderContentType ( localVarContentTypes ) ; String [ ] localVarAuthNames = new String [ ] { "oauth2" } ; GenericType < V1BankAccount > localVarReturnType = new GenericType < V1BankAccount > ( ) { } ; return ( CompleteResponse < V1BankAccount > ) apiClient . invokeAPI ( localVarPath , "GET" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
RetrieveBankAccount
 Provides non-confidential details for a merchant&#39;s associated bank account.
RetrieveBankAccount Provides non - confidential details for a merchant&#39 ; s associated bank account .
// verify the required parameter 'locationId' is set // verify the required parameter 'bankAccountId' is set // create path and map variables // query params