Package de.adorsys.xs2a.adapter.impl
Class BasePaymentInitiationService
- java.lang.Object
-
- de.adorsys.xs2a.adapter.impl.AbstractService
-
- de.adorsys.xs2a.adapter.impl.BasePaymentInitiationService
-
- All Implemented Interfaces:
PaymentInitiationService,PaymentInitiationValidationService
public class BasePaymentInitiationService extends AbstractService implements PaymentInitiationService
-
-
Field Summary
Fields Modifier and Type Field Description protected Aspspaspspprotected static StringV1-
Fields inherited from class de.adorsys.xs2a.adapter.impl.AbstractService
ACCEPT_HEADER, AUTHORISATIONS, httpClient, jsonMapper, STATUS
-
-
Constructor Summary
Constructors Constructor Description BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, LinksRewriter linksRewriter)BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, LinksRewriter linksRewriter, HttpLogSanitizer logSanitizer)BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, List<Interceptor> interceptors)BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, List<Interceptor> interceptors, LinksRewriter linksRewriter)BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, List<Interceptor> interceptors, LinksRewriter linksRewriter, HttpLogSanitizer logSanitizer)
-
Method Summary
-
Methods inherited from class de.adorsys.xs2a.adapter.impl.AbstractService
addConsentIdHeader, addPsuIdTypeHeader, buildUri, getPaymentInitiationBodyClass, populateDeleteHeaders, populateGetHeaders, populatePostHeaders, populatePutHeaders, resolvePsuIdHeader
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.adorsys.xs2a.adapter.api.validation.PaymentInitiationValidationService
validateGetPaymentInitiationAuthorisation, validateGetPaymentInitiationScaStatus, validateGetPaymentInitiationStatus, validateGetPaymentInitiationStatusAsString, validateGetPeriodicPain001PaymentInformation, validateGetPeriodicPaymentInformation, validateGetSinglePaymentInformation, validateInitiatePayment, validateStartPaymentAuthorisation, validateStartPaymentAuthorisation, validateUpdatePaymentPsuData, validateUpdatePaymentPsuData, validateUpdatePaymentPsuData
-
-
-
-
Field Detail
-
V1
protected static final String V1
- See Also:
- Constant Field Values
-
aspsp
protected final Aspsp aspsp
-
-
Constructor Detail
-
BasePaymentInitiationService
public BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, List<Interceptor> interceptors)
-
BasePaymentInitiationService
public BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, LinksRewriter linksRewriter)
-
BasePaymentInitiationService
public BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, LinksRewriter linksRewriter, HttpLogSanitizer logSanitizer)
-
BasePaymentInitiationService
public BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, List<Interceptor> interceptors, LinksRewriter linksRewriter)
-
BasePaymentInitiationService
public BasePaymentInitiationService(Aspsp aspsp, HttpClient httpClient, List<Interceptor> interceptors, LinksRewriter linksRewriter, HttpLogSanitizer logSanitizer)
-
-
Method Detail
-
initiatePayment
public Response<PaymentInitationRequestResponse201> initiatePayment(PaymentService paymentService, PaymentProduct paymentProduct, RequestHeaders requestHeaders, RequestParams requestParams, Object body)
- Specified by:
initiatePaymentin interfacePaymentInitiationService
-
initiatePayment
protected <T> Response<PaymentInitationRequestResponse201> initiatePayment(PaymentService paymentService, PaymentProduct paymentProduct, RequestHeaders requestHeaders, RequestParams requestParams, Object body, Class<T> klass, Function<T,PaymentInitationRequestResponse201> mapper)
-
initiatePayment
protected <T> Response<PaymentInitationRequestResponse201> initiatePayment(PaymentService paymentService, PaymentProduct paymentProduct, Object body, RequestHeaders requestHeaders, RequestParams requestParams, Function<T,PaymentInitationRequestResponse201> mapper, HttpClient.ResponseHandler<T> responseHandler)
-
isXml
protected boolean isXml(PaymentProduct paymentProduct)
-
getSinglePaymentInformation
public Response<PaymentInitiationWithStatusResponse> getSinglePaymentInformation(PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
getSinglePaymentInformationin interfacePaymentInitiationService
-
getPaymentInformation
protected <T> Response<T> getPaymentInformation(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams, HttpClient.ResponseHandler<T> responseHandler)
-
getPeriodicPaymentInformation
public Response<PeriodicPaymentInitiationWithStatusResponse> getPeriodicPaymentInformation(PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
getPeriodicPaymentInformationin interfacePaymentInitiationService
-
getPeriodicPaymentInformation
protected <T> Response<PeriodicPaymentInitiationWithStatusResponse> getPeriodicPaymentInformation(PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams, Class<T> klass, Function<T,PeriodicPaymentInitiationWithStatusResponse> mapper)
-
getPeriodicPain001PaymentInformation
public Response<PeriodicPaymentInitiationMultipartBody> getPeriodicPain001PaymentInformation(PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
getPeriodicPain001PaymentInformationin interfacePaymentInitiationService
-
getPeriodicPain001PaymentInformation
protected <T> Response<PeriodicPaymentInitiationMultipartBody> getPeriodicPain001PaymentInformation(PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams, Class<T> klass, Function<T,PeriodicPaymentInitiationMultipartBody> mapper)
-
getPaymentInformationAsString
public Response<String> getPaymentInformationAsString(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
getPaymentInformationAsStringin interfacePaymentInitiationService
-
getPaymentInitiationScaStatus
public Response<ScaStatusResponse> getPaymentInitiationScaStatus(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
getPaymentInitiationScaStatusin interfacePaymentInitiationService
-
getPaymentInitiationScaStatus
protected <T> Response<ScaStatusResponse> getPaymentInitiationScaStatus(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId, RequestHeaders requestHeaders, RequestParams requestParams, Class<T> klass, Function<T,ScaStatusResponse> mapper)
-
getPaymentInitiationStatus
public Response<PaymentInitiationStatusResponse200Json> getPaymentInitiationStatus(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
getPaymentInitiationStatusin interfacePaymentInitiationService
-
getPaymentInitiationStatusAsString
public Response<String> getPaymentInitiationStatusAsString(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
getPaymentInitiationStatusAsStringin interfacePaymentInitiationService
-
getPaymentInitiationAuthorisation
public Response<Authorisations> getPaymentInitiationAuthorisation(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
getPaymentInitiationAuthorisationin interfacePaymentInitiationService
-
getPaymentInitiationAuthorisation
protected <T> Response<Authorisations> getPaymentInitiationAuthorisation(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams, Class<T> klass, Function<T,Authorisations> mapper)
-
startPaymentAuthorisation
public Response<StartScaprocessResponse> startPaymentAuthorisation(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams)
- Specified by:
startPaymentAuthorisationin interfacePaymentInitiationService
-
startPaymentAuthorisation
protected <T> Response<StartScaprocessResponse> startPaymentAuthorisation(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams, Class<T> klass, Function<T,StartScaprocessResponse> mapper)
-
startPaymentAuthorisation
public Response<StartScaprocessResponse> startPaymentAuthorisation(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams, UpdatePsuAuthentication updatePsuAuthentication)
- Specified by:
startPaymentAuthorisationin interfacePaymentInitiationService
-
startPaymentAuthorisation
protected <T> Response<StartScaprocessResponse> startPaymentAuthorisation(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, RequestHeaders requestHeaders, RequestParams requestParams, UpdatePsuAuthentication updatePsuAuthentication, Class<T> klass, Function<T,StartScaprocessResponse> mapper)
-
updatePaymentPsuData
public Response<UpdatePsuAuthenticationResponse> updatePaymentPsuData(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId, RequestHeaders requestHeaders, RequestParams requestParams, UpdatePsuAuthentication updatePsuAuthentication)
- Specified by:
updatePaymentPsuDatain interfacePaymentInitiationService
-
updatePaymentPsuData
protected <T> Response<UpdatePsuAuthenticationResponse> updatePaymentPsuData(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId, RequestHeaders requestHeaders, RequestParams requestParams, UpdatePsuAuthentication updatePsuAuthentication, Class<T> klass, Function<T,UpdatePsuAuthenticationResponse> mapper)
-
updatePaymentPsuData
public Response<SelectPsuAuthenticationMethodResponse> updatePaymentPsuData(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId, RequestHeaders requestHeaders, RequestParams requestParams, SelectPsuAuthenticationMethod selectPsuAuthenticationMethod)
- Specified by:
updatePaymentPsuDatain interfacePaymentInitiationService
-
updatePaymentPsuData
protected <T> Response<SelectPsuAuthenticationMethodResponse> updatePaymentPsuData(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId, RequestHeaders requestHeaders, RequestParams requestParams, SelectPsuAuthenticationMethod selectPsuAuthenticationMethod, Class<T> klass, Function<T,SelectPsuAuthenticationMethodResponse> mapper)
-
updatePaymentPsuData
public Response<ScaStatusResponse> updatePaymentPsuData(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId, RequestHeaders requestHeaders, RequestParams requestParams, TransactionAuthorisation transactionAuthorisation)
- Specified by:
updatePaymentPsuDatain interfacePaymentInitiationService
-
updatePaymentPsuData
protected <T> Response<ScaStatusResponse> updatePaymentPsuData(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId, RequestHeaders requestHeaders, RequestParams requestParams, TransactionAuthorisation transactionAuthorisation, Class<T> klass, Function<T,ScaStatusResponse> mapper)
-
getUpdatePaymentPsuDataUri
protected String getUpdatePaymentPsuDataUri(PaymentService paymentService, PaymentProduct paymentProduct, String paymentId, String authorisationId)
-
getIdpUri
protected String getIdpUri()
-
getPaymentBaseUri
protected String getPaymentBaseUri()
-
-