Search in sources :

Example 1 with Issuers

use of com.ing.ideal.connector.Issuers in project ofbiz-framework by apache.

the class IdealEvents method getIssuerList.

public static List<Issuer> getIssuerList() {
    List<Issuer> issuerList = new LinkedList<Issuer>();
    try {
        IdealConnector connector = new IdealConnector("payment");
        Issuers issuers = connector.getIssuerList();
        List<Issuer> shortList = issuers.getShortList();
        List<Issuer> longList = issuers.getLongList();
        for (Iterator<Issuer> iter = shortList.iterator(); iter.hasNext(); ) {
            Issuer issuer = (Issuer) iter.next();
            issuerList.add(issuer);
        }
        for (Iterator<Issuer> iter = longList.iterator(); iter.hasNext(); ) {
            Issuer issuer = (Issuer) iter.next();
            issuerList.add(issuer);
        }
    } catch (IdealException ex) {
        Debug.logError(ex.getMessage(), module);
    }
    return issuerList;
}
Also used : IdealException(com.ing.ideal.connector.IdealException) Issuer(com.ing.ideal.connector.Issuer) Issuers(com.ing.ideal.connector.Issuers) IdealConnector(com.ing.ideal.connector.IdealConnector) LinkedList(java.util.LinkedList)

Aggregations

IdealConnector (com.ing.ideal.connector.IdealConnector)1 IdealException (com.ing.ideal.connector.IdealException)1 Issuer (com.ing.ideal.connector.Issuer)1 Issuers (com.ing.ideal.connector.Issuers)1 LinkedList (java.util.LinkedList)1