Search in sources :

Example 1 with KeyValuePair

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

the class GetCustomerDetailsExample method example.

@SuppressWarnings("unused")
public void example() throws URISyntaxException, IOException {
    Client client = getClient();
    try {
        List<KeyValuePair> values = new ArrayList<KeyValuePair>();
        KeyValuePair value1 = new KeyValuePair();
        value1.setKey("fiscalNumber");
        value1.setValue("01234567890");
        values.add(value1);
        GetCustomerDetailsRequest body = new GetCustomerDetailsRequest();
        body.setCountryCode("SE");
        body.setValues(values);
        GetCustomerDetailsResponse response = client.merchant("merchantId").products().customerDetails(9000, body);
    } finally {
        client.close();
    }
}
Also used : GetCustomerDetailsRequest(com.ingenico.connect.gateway.sdk.java.domain.product.GetCustomerDetailsRequest) KeyValuePair(com.ingenico.connect.gateway.sdk.java.domain.definitions.KeyValuePair) ArrayList(java.util.ArrayList) GetCustomerDetailsResponse(com.ingenico.connect.gateway.sdk.java.domain.product.GetCustomerDetailsResponse) Client(com.ingenico.connect.gateway.sdk.java.Client)

Aggregations

Client (com.ingenico.connect.gateway.sdk.java.Client)1 KeyValuePair (com.ingenico.connect.gateway.sdk.java.domain.definitions.KeyValuePair)1 GetCustomerDetailsRequest (com.ingenico.connect.gateway.sdk.java.domain.product.GetCustomerDetailsRequest)1 GetCustomerDetailsResponse (com.ingenico.connect.gateway.sdk.java.domain.product.GetCustomerDetailsResponse)1 ArrayList (java.util.ArrayList)1