@Component public class SpiPaymentFactory extends Object
| Constructor and Description |
|---|
SpiPaymentFactory() |
| Modifier and Type | Method and Description |
|---|---|
Optional<SpiBulkPayment> |
createSpiBulkPayment(List<PisPayment> pisPayments,
String paymentProduct)
Creates SpiBulkPayment from PisPayment and PaymentProduct.
|
Optional<? extends SpiPayment> |
createSpiPaymentByPaymentType(List<PisPayment> pisPayments,
String paymentProduct,
PaymentType paymentType)
Creates Optional of SpiPayment from PisPayment, PaymentProduct and PaymentType.
|
Optional<SpiPeriodicPayment> |
createSpiPeriodicPayment(PisPayment pisPayment,
String paymentProduct)
Creates SpiPeriodicPayment from PisPayment and PaymentProduct.
|
Optional<SpiSinglePayment> |
createSpiSinglePayment(PisPayment pisPayment,
String paymentProduct)
Creates SpiSinglePayment from PisPayment and PaymentProduct.
|
public Optional<? extends SpiPayment> createSpiPaymentByPaymentType(List<PisPayment> pisPayments, String paymentProduct, PaymentType paymentType)
pisPayments - PisPaymentpaymentProduct - PaymentProductpaymentType - PaymentTypepublic Optional<SpiSinglePayment> createSpiSinglePayment(PisPayment pisPayment, String paymentProduct)
pisPayment - PisPaymentpaymentProduct - PaymentProductpublic Optional<SpiPeriodicPayment> createSpiPeriodicPayment(PisPayment pisPayment, String paymentProduct)
pisPayment - PisPaymentpaymentProduct - PaymentProductpublic Optional<SpiBulkPayment> createSpiBulkPayment(List<PisPayment> pisPayments, String paymentProduct)
pisPayments - List of PisPaymentspaymentProduct - PaymentProductCopyright © 2019. All rights reserved.