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) |
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 PaymentResult refundPayment(Long id, RefundPayment refundPayment) 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 PaymentInstrumentRoot generatePaymentInstruments(Long goId, Currency currency) throws GPClientException
generatePaymentInstruments in interface IGPConnectorGPClientExceptionpublic byte[] generateStatement(AccountStatement accountStatement) throws GPClientException
generateStatement in interface IGPConnectorGPClientExceptionpublic List<EETReceipt> findEETREceiptsByFilter(EETReceiptFilter filter) throws GPClientException
findEETREceiptsByFilter in interface IGPConnectorGPClientExceptionpublic List<EETReceipt> getEETReceiptByPaymentId(Long id) throws GPClientException
getEETReceiptByPaymentId in interface IGPConnectorGPClientExceptionpublic SupercashCoupon createSupercashCoupon(SupercashCouponRequest couponRequest) throws GPClientException
createSupercashCoupon in interface IGPConnectorGPClientExceptionpublic SupercashBatchResult createSupercashCouponBatch(SupercashBatchRequest batchRequest) throws GPClientException
createSupercashCouponBatch in interface IGPConnectorGPClientExceptionpublic SupercashBatchState getSupercashCouponBatchStatus(Long batchId) throws GPClientException
getSupercashCouponBatchStatus in interface IGPConnectorGPClientExceptionpublic SupercashBatch getSupercashCouponBatch(Long goId, Long batchId) throws GPClientException
getSupercashCouponBatch in interface IGPConnectorGPClientExceptionpublic SupercashBatch findSupercashCoupons(Long goId, Long... paymentSessionIds) throws GPClientException
findSupercashCoupons in interface IGPConnectorGPClientExceptionpublic SupercashPayment getSupercashCoupon(Long couponId) throws GPClientException
getSupercashCoupon in interface IGPConnectorGPClientExceptionpublic String getApiUrl()
getApiUrl in interface IGPConnectorpublic AccessToken getAccessToken()
getAccessToken in interface IGPConnectorpublic void setAccessToken(AccessToken accessToken)
setAccessToken in interface IGPConnectorCopyright © 2017. All rights reserved.