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();
}
}
Aggregations