public class PaymentDataConverter
extends java.lang.Object
Constructor and Description |
---|
PaymentDataConverter(LightningHandler lightningHandler,
java.time.Duration defaultSettlementValidity,
java.time.Duration defaultInvoiceValidity)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isSettled(PaymentData paymentData)
Help method to check that payment data has isSettled flag set to true.
|
public PaymentDataConverter(LightningHandler lightningHandler, java.time.Duration defaultSettlementValidity, java.time.Duration defaultInvoiceValidity)
lightningHandler
- the used LightningHandler.defaultSettlementValidity
- the default settlement validity used
if no settlement validity is used in the
configured payment data.defaultInvoiceValidity
- the default invoice validity used
if no invoice validity is used in the
configured payment data.public boolean isSettled(PaymentData paymentData) throws InternalErrorException
paymentData
- the paymentData to check.InternalErrorException
- if payment data is invalid.