@Component public class GetCommonPaymentByIdResponseValidator extends Object
| Constructor and Description |
|---|
GetCommonPaymentByIdResponseValidator() |
| Modifier and Type | Method and Description |
|---|---|
ValidationResult |
validateRequest(@Nullable PisCommonPaymentResponse pisCommonPayment,
PaymentType paymentType,
String paymentProduct)
Validates get payment by id response for cancel payment, get payment and payment status calls according to:
if get payment by id result contains data
if payment type is valid
if payment type is valid
If there are new get payment by id response validation requirements, this method has to be updated.
|
public GetCommonPaymentByIdResponseValidator()
public ValidationResult validateRequest(@Nullable @Nullable PisCommonPaymentResponse pisCommonPayment, PaymentType paymentType, String paymentProduct)
pisCommonPayment - unwrapped response of Xs2aPisCommonPaymentService#getPisCommonPaymentById callpaymentType - type of payment (payments, bulk-payments, periodic-payments)paymentProduct - payment product used for payment creation (e.g. sepa-credit-transfers, instant-sepa-credit-transfers...)Copyright © 2019. All rights reserved.