public abstract class AbstractGPConnector extends Object implements IGPConnector
| Modifier and Type | Field and Description |
|---|---|
protected AccessToken |
accessToken |
protected String |
apiUrl |
static int |
CONNECTION_POOL_SIZE |
static int |
CONNECTION_SERVICE_TO |
static int |
CONNECTION_SETUP_TO |
protected static org.apache.log4j.Logger |
logger |
| Constructor and Description |
|---|
AbstractGPConnector(String apiUrl) |
AbstractGPConnector(String apiUrl,
AccessToken token) |
| Modifier and Type | Method and Description |
|---|---|
PaymentResult |
capturePayment(Long id) |
Payment |
createPayment(BasePayment payment) |
Payment |
createRecurrentPayment(Long id,
NextPayment nextPayment) |
protected abstract <T> T |
createRESTClientProxy(String apiUrl,
Class<T> proxy) |
AccessToken |
getAccessToken() |
String |
getApiUrl() |
IGPConnector |
getAppToken(String clientId,
String clientCredentials) |
IGPConnector |
getAppToken(String clientId,
String clientCredentials,
String scope) |
Payment |
paymentStatus(Long id) |
PaymentResult |
refundPayment(Long id,
Long amount) |
PaymentResult |
voidAuthorization(Long id) |
PaymentResult |
voidRecurrency(Long id) |
protected static final org.apache.log4j.Logger logger
public static int CONNECTION_POOL_SIZE
public static int CONNECTION_SETUP_TO
public static int CONNECTION_SERVICE_TO
protected String apiUrl
protected AccessToken accessToken
public AbstractGPConnector(String apiUrl)
public AbstractGPConnector(String apiUrl, AccessToken token)
public IGPConnector getAppToken(String clientId, String clientCredentials) throws GPClientException
getAppToken in interface IGPConnectorGPClientExceptionpublic IGPConnector getAppToken(String clientId, String clientCredentials, String scope) throws GPClientException
getAppToken in interface IGPConnectorGPClientExceptionpublic Payment createPayment(BasePayment payment) throws GPClientException
createPayment in interface IGPConnectorGPClientExceptionpublic PaymentResult refundPayment(Long id, Long amount) throws GPClientException
refundPayment in interface IGPConnectorGPClientExceptionpublic Payment createRecurrentPayment(Long id, NextPayment nextPayment) throws GPClientException
createRecurrentPayment in interface IGPConnectorGPClientExceptionpublic PaymentResult voidRecurrency(Long id) throws GPClientException
voidRecurrency in interface IGPConnectorGPClientExceptionpublic PaymentResult capturePayment(Long id) throws GPClientException
capturePayment in interface IGPConnectorGPClientExceptionpublic PaymentResult voidAuthorization(Long id) throws GPClientException
voidAuthorization in interface IGPConnectorGPClientExceptionpublic Payment paymentStatus(Long id) throws GPClientException
paymentStatus in interface IGPConnectorGPClientExceptionpublic String getApiUrl()
getApiUrl in interface IGPConnectorpublic AccessToken getAccessToken()
getAccessToken in interface IGPConnectorCopyright © 2016. All rights reserved.