com.github.GBSEcom.simple.FraudDetectApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of first-data-gateway Show documentation
Show all versions of first-data-gateway Show documentation
Java SDK to be used with a First Data Gateway account. This SDK has been created and packaged to offer the easiest way to integrate your application into the First Data Gateway. This SDK gives you the ability to run transactions such as sales, preauthorizations, postauthorizations, credits, voids, and returns; transaction inquiries; setting up scheduled payments and much more.
package com.github.GBSEcom.simple;
import com.github.GBSEcom.client.ApiException;
import com.github.GBSEcom.model.ScoreOnlyRequest;
import com.github.GBSEcom.model.ScoreOnlyResponse;
import com.github.GBSEcom.model.ClientRegistration;
import com.github.GBSEcom.model.PaymentRegistration;
import com.github.GBSEcom.model.FraudRegistrationResponse;
public interface FraudDetectApi {
ScoreOnlyResponse scoreOnly(ScoreOnlyRequest payload, String region);
ScoreOnlyResponse scoreOnly(ScoreOnlyRequest payload);
FraudRegistrationResponse fraudClientRegistrationPost(ClientRegistration payload,String region);
FraudRegistrationResponse fraudClientRegistrationPost(ClientRegistration payload);
FraudRegistrationResponse fraudPaymentRegistrationPost(PaymentRegistration payload,String region);
FraudRegistrationResponse fraudPaymentRegistrationPost(PaymentRegistration payload);
}
class FraudDetectApiImpl extends ApiWrapper implements FraudDetectApi {
public FraudDetectApiImpl(final ClientContext context) {
super(context, com.github.GBSEcom.api.FraudDetectApi::new);
}
public ScoreOnlyResponse scoreOnly(final ScoreOnlyRequest payload, final String region) throws ApiException {
final ClientHeaders headers = genHeaders(payload);
return getClient().scoreOnly(
headers.getContentType(),
headers.getClientRequestId(),
headers.getApiKey(),
headers.getTimestamp(),
payload,
headers.getMessageSignature(),
region
);
}
public ScoreOnlyResponse scoreOnly(final ScoreOnlyRequest payload) throws ApiException {
return scoreOnly(payload, getDefaultRegion());
}
public FraudRegistrationResponse fraudClientRegistrationPost(final ClientRegistration payload,final String region) throws ApiException{
final ClientHeaders headers = genHeaders(payload);
return getClient().fraudClientRegistrationPost(
headers.getContentType(),
headers.getClientRequestId(),
headers.getApiKey(),
headers.getTimestamp(),
payload,
headers.getMessageSignature(),
region
);
}
public FraudRegistrationResponse fraudClientRegistrationPost(final ClientRegistration payload) throws ApiException{
return fraudClientRegistrationPost(payload, getDefaultRegion());
}
public FraudRegistrationResponse fraudPaymentRegistrationPost(final PaymentRegistration payload,final String region) throws ApiException{
final ClientHeaders headers = genHeaders(payload);
return getClient().fraudPaymentRegistrationPost(
headers.getContentType(),
headers.getClientRequestId(),
headers.getApiKey(),
headers.getTimestamp(),
payload,
headers.getMessageSignature(),
region
);
}
public FraudRegistrationResponse fraudPaymentRegistrationPost(final PaymentRegistration payload) throws ApiException{
return fraudPaymentRegistrationPost(payload, getDefaultRegion());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy