Class GeneralPaymentService
- java.lang.Object
-
- de.adorsys.aspsp.xs2a.connector.spi.impl.payment.GeneralPaymentService
-
@Component @PropertySource("classpath:mock-data.properties") public class GeneralPaymentService extends Object
-
-
Constructor Summary
Constructors Constructor Description GeneralPaymentService(PaymentRestClient ledgersRestClient, AuthRequestInterceptor authRequestInterceptor, AspspConsentDataService consentDataService, FeignExceptionReader feignExceptionReader, String transactionStatusXmlBody, MultilevelScaService multilevelScaService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.payment.response.SpiPaymentExecutionResponse>executePaymentWithoutSca(@NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider)<T extends de.adorsys.psd2.xs2a.spi.domain.payment.response.SpiPaymentInitiationResponse>
de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<T>firstCallInstantiatingPayment(@NotNull de.adorsys.ledgers.middleware.api.domain.payment.PaymentTypeTO paymentType, @NotNull de.adorsys.psd2.xs2a.spi.service.SpiPayment payment, @NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider, T responsePayload, @NotNull de.adorsys.psd2.xs2a.spi.domain.psu.SpiPsuData spiPsuData, Set<de.adorsys.psd2.xs2a.spi.domain.account.SpiAccountReference> spiAccountReferences)Instantiating the very first response object.<P extends de.adorsys.psd2.xs2a.spi.service.SpiPayment>
de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<P>getPaymentById(P payment, de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider, Function<de.adorsys.ledgers.middleware.api.domain.payment.PaymentTO,P> mapperToSpiPayment)de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.payment.response.SpiGetPaymentStatusResponse>getPaymentStatusById(@NotNull de.adorsys.ledgers.middleware.api.domain.payment.PaymentTypeTO paymentType, @NotNull String acceptMediaType, @NotNull String paymentId, @NotNull de.adorsys.psd2.xs2a.core.pis.TransactionStatus spiTransactionStatus, @org.jetbrains.annotations.NotNull byte[] aspspConsentData)de.adorsys.ledgers.middleware.api.domain.sca.SCAPaymentResponseTOgetSCAPaymentResponseTO(byte[] initialAspspConsentData)<P> de.adorsys.ledgers.middleware.api.domain.sca.SCAPaymentResponseTOinitiatePaymentInternal(P payment, byte[] initialAspspConsentData, de.adorsys.ledgers.middleware.api.domain.payment.PaymentTypeTO paymentTypeTO, de.adorsys.ledgers.middleware.api.domain.payment.PaymentTO request)de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.payment.response.SpiPaymentExecutionResponse>verifyScaAuthorisationAndExecutePaymentWithPaymentResponse(@NotNull de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiScaConfirmation spiScaConfirmation, @NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider)
-
-
-
Constructor Detail
-
GeneralPaymentService
public GeneralPaymentService(PaymentRestClient ledgersRestClient, AuthRequestInterceptor authRequestInterceptor, AspspConsentDataService consentDataService, FeignExceptionReader feignExceptionReader, @Value("${test-transaction-status-xml-body}") String transactionStatusXmlBody, MultilevelScaService multilevelScaService)
-
-
Method Detail
-
getPaymentStatusById
public de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.payment.response.SpiGetPaymentStatusResponse> getPaymentStatusById(@NotNull @NotNull de.adorsys.ledgers.middleware.api.domain.payment.PaymentTypeTO paymentType, @NotNull @NotNull String acceptMediaType, @NotNull @NotNull String paymentId, @NotNull @NotNull de.adorsys.psd2.xs2a.core.pis.TransactionStatus spiTransactionStatus, @NotNull @org.jetbrains.annotations.NotNull byte[] aspspConsentData)
-
verifyScaAuthorisationAndExecutePaymentWithPaymentResponse
public de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.payment.response.SpiPaymentExecutionResponse> verifyScaAuthorisationAndExecutePaymentWithPaymentResponse(@NotNull @NotNull de.adorsys.psd2.xs2a.spi.domain.authorisation.SpiScaConfirmation spiScaConfirmation, @NotNull @NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider)
-
firstCallInstantiatingPayment
public <T extends de.adorsys.psd2.xs2a.spi.domain.payment.response.SpiPaymentInitiationResponse> de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<T> firstCallInstantiatingPayment(@NotNull @NotNull de.adorsys.ledgers.middleware.api.domain.payment.PaymentTypeTO paymentType, @NotNull @NotNull de.adorsys.psd2.xs2a.spi.service.SpiPayment payment, @NotNull @NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider, T responsePayload, @NotNull @NotNull de.adorsys.psd2.xs2a.spi.domain.psu.SpiPsuData spiPsuData, Set<de.adorsys.psd2.xs2a.spi.domain.account.SpiAccountReference> spiAccountReferences)Instantiating the very first response object.- Parameters:
paymentType- the payment typepayment- the payment objectaspspConsentDataProvider- the credential data container accessresponsePayload- the instantiated payload object
-
executePaymentWithoutSca
@NotNull public @NotNull de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<de.adorsys.psd2.xs2a.spi.domain.payment.response.SpiPaymentExecutionResponse> executePaymentWithoutSca(@NotNull @NotNull de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider)
-
getPaymentById
public <P extends de.adorsys.psd2.xs2a.spi.service.SpiPayment> de.adorsys.psd2.xs2a.spi.domain.response.SpiResponse<P> getPaymentById(P payment, de.adorsys.psd2.xs2a.spi.domain.SpiAspspConsentDataProvider aspspConsentDataProvider, Function<de.adorsys.ledgers.middleware.api.domain.payment.PaymentTO,P> mapperToSpiPayment)
-
initiatePaymentInternal
public <P> de.adorsys.ledgers.middleware.api.domain.sca.SCAPaymentResponseTO initiatePaymentInternal(P payment, byte[] initialAspspConsentData, de.adorsys.ledgers.middleware.api.domain.payment.PaymentTypeTO paymentTypeTO, de.adorsys.ledgers.middleware.api.domain.payment.PaymentTO request)
-
getSCAPaymentResponseTO
public de.adorsys.ledgers.middleware.api.domain.sca.SCAPaymentResponseTO getSCAPaymentResponseTO(byte[] initialAspspConsentData)
-
-