All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.GBSEcom.simple.ApiWrapper Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 1.15.0
Show newest version
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