Package cz.gopay.api.v3
Class AbstractGPConnector
java.lang.Object
cz.gopay.api.v3.AbstractGPConnector
- All Implemented Interfaces:
IGPConnector
- Author:
- Zbynek Novak novak.zbynek@gmail.com, FrantiĊĦek Sichinger
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AccessTokenprotected Stringstatic intstatic intstatic intprotected Stringprotected static final org.apache.logging.log4j.Loggerstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionAbstractGPConnector(String apiUrl) AbstractGPConnector(String apiUrl, AccessToken token) AbstractGPConnector(String apiUrl, AccessToken token, String customUserAgent) -
Method Summary
Modifier and TypeMethodDescriptioncapturePayment(Long id) capturePayment(Long id, CapturePayment capturePayment) createPayment(BasePayment payment) createRecurrentPayment(Long id, NextPayment nextPayment) protected abstract <T> TcreateRESTClientProxy(String apiUrl, Class<T> proxy) voiddeleteCard(Long cardId) byte[]generateStatement(AccountStatement accountStatement) getAppToken(String clientId, String clientCredentials) getAppToken(String clientId, String clientCredentials, String scope) getCardDetail(Long cardId) protected abstract StringgetPaymentInstruments(Long goId, Currency currency) paymentStatus(Long id) refundPayment(Long id, RefundPayment refundPayment) refundPayment(Long id, Long amount) voidsetAccessToken(AccessToken accessToken) voidRecurrency(Long id)
-
Field Details
-
VERSION
- See Also:
-
logger
protected static final org.apache.logging.log4j.Logger logger -
CONNECTION_POOL_SIZE
public static int CONNECTION_POOL_SIZE -
CONNECTION_SETUP_TO
public static int CONNECTION_SETUP_TO -
CONNECTION_SERVICE_TO
public static int CONNECTION_SERVICE_TO -
apiUrl
-
accessToken
-
customUserAgent
-
-
Constructor Details
-
AbstractGPConnector
-
AbstractGPConnector
-
AbstractGPConnector
-
-
Method Details
-
createRESTClientProxy
-
getAppToken
- Specified by:
getAppTokenin interfaceIGPConnector- Throws:
GPClientException
-
getAppToken
public IGPConnector getAppToken(String clientId, String clientCredentials, String scope) throws GPClientException - Specified by:
getAppTokenin interfaceIGPConnector- Throws:
GPClientException
-
createPayment
- Specified by:
createPaymentin interfaceIGPConnector- Throws:
GPClientException
-
refundPayment
- Specified by:
refundPaymentin interfaceIGPConnector- Throws:
GPClientException
-
refundPayment
- Specified by:
refundPaymentin interfaceIGPConnector- Throws:
GPClientException
-
createRecurrentPayment
- Specified by:
createRecurrentPaymentin interfaceIGPConnector- Throws:
GPClientException
-
voidRecurrency
- Specified by:
voidRecurrencyin interfaceIGPConnector- Throws:
GPClientException
-
capturePayment
- Specified by:
capturePaymentin interfaceIGPConnector- Throws:
GPClientException
-
capturePayment
public PaymentResult capturePayment(Long id, CapturePayment capturePayment) throws GPClientException - Specified by:
capturePaymentin interfaceIGPConnector- Throws:
GPClientException
-
voidAuthorization
- Specified by:
voidAuthorizationin interfaceIGPConnector- Throws:
GPClientException
-
paymentStatus
- Specified by:
paymentStatusin interfaceIGPConnector- Throws:
GPClientException
-
getPaymentInstruments
public PaymentInstrumentRoot getPaymentInstruments(Long goId, Currency currency) throws GPClientException - Specified by:
getPaymentInstrumentsin interfaceIGPConnector- Throws:
GPClientException
-
generateStatement
- Specified by:
generateStatementin interfaceIGPConnector- Throws:
GPClientException
-
findEETREceiptsByFilter
- Specified by:
findEETREceiptsByFilterin interfaceIGPConnector- Throws:
GPClientException
-
getEETReceiptByPaymentId
- Specified by:
getEETReceiptByPaymentIdin interfaceIGPConnector- Throws:
GPClientException
-
getApiUrl
- Specified by:
getApiUrlin interfaceIGPConnector
-
getAccessToken
- Specified by:
getAccessTokenin interfaceIGPConnector
-
setAccessToken
- Specified by:
setAccessTokenin interfaceIGPConnector
-
getCardDetail
- Specified by:
getCardDetailin interfaceIGPConnector- Throws:
GPClientException
-
getHistoryOfRefunds
- Specified by:
getHistoryOfRefundsin interfaceIGPConnector- Throws:
GPClientException
-
deleteCard
- Specified by:
deleteCardin interfaceIGPConnector- Throws:
GPClientException
-
getImplementationName
-
getVersion
-