Search in sources :

Example 1 with BankDetailsResponse

use of com.ingenico.connect.gateway.sdk.java.domain.services.BankDetailsResponse in project connect-sdk-java by Ingenico-ePayments.

the class ConvertBankAccountExample method example.

@SuppressWarnings("unused")
public void example() throws URISyntaxException, IOException {
    Client client = getClient();
    try {
        BankAccountBban bankAccountBban = new BankAccountBban();
        bankAccountBban.setAccountNumber("0532013000");
        bankAccountBban.setBankCode("37040044");
        bankAccountBban.setCountryCode("DE");
        BankDetailsRequest body = new BankDetailsRequest();
        body.setBankAccountBban(bankAccountBban);
        BankDetailsResponse response = client.merchant("merchantId").services().bankaccount(body);
    } finally {
        client.close();
    }
}
Also used : BankDetailsRequest(com.ingenico.connect.gateway.sdk.java.domain.services.BankDetailsRequest) BankAccountBban(com.ingenico.connect.gateway.sdk.java.domain.definitions.BankAccountBban) Client(com.ingenico.connect.gateway.sdk.java.Client) BankDetailsResponse(com.ingenico.connect.gateway.sdk.java.domain.services.BankDetailsResponse)

Aggregations

Client (com.ingenico.connect.gateway.sdk.java.Client)1 BankAccountBban (com.ingenico.connect.gateway.sdk.java.domain.definitions.BankAccountBban)1 BankDetailsRequest (com.ingenico.connect.gateway.sdk.java.domain.services.BankDetailsRequest)1 BankDetailsResponse (com.ingenico.connect.gateway.sdk.java.domain.services.BankDetailsResponse)1