com.github.GBSEcom.simple.ApiWrapper 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.ApiClient;
import java.util.function.Function;
class ApiWrapper {
private final T client;
private final ClientContext context;
protected ApiWrapper (final ClientContext clientContext, final Function apiConstructor) {
context = clientContext;
client = apiConstructor.apply(context.getClient());
}
protected T getClient() {
return client;
}
protected ClientHeaders genHeaders() {
return context.genHeaders();
}
protected ClientHeaders genHeaders(final P payload) {
return context.genHeaders(payload);
}
protected String getDefaultRegion() {
return context.getDefaultRegion();
}
protected String getDefaultStoreId() {
return context.getDefaultStoreId();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy