public interface FullPaymentData extends StandardPaymentData, PerRequestPaymentData
If the payment contains all fields necessary in a payment flow it will not perform look-ups of invoices in LightningHandler to the same extent which may boost performance.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBolt11Invoice() |
java.time.Instant |
getSettlementExpireDate()
The settlement expire date sets the timestamp when a generated settlement token should expire.
|
java.time.Instant |
getSettlementValidFrom() |
void |
setBolt11Invoice(java.lang.String bolt11Invoice) |
void |
setSettlementExpireDate(java.time.Instant settlementExpireDate)
The settlement expire date sets the timestamp when a generated settlement token should expire.
|
void |
setSettlementValidFrom(java.time.Instant settlementValidFrom) |
getDescription, getInvoiceAmount, getInvoiceDate, getInvoiceExpireDate, getSettledAmount, getSettlementDate, getSettlementDuration, setDescription, setInvoiceAmount, setInvoiceDate, setInvoiceExpireDate, setSettledAmount, setSettlementDate, setSettlementDuration
isExecuted, isPayPerRequest, setExecuted, setPayPerRequest
getOrderAmount, getPreImageHash, isSettled, setOrderAmount, setPreImageHash, setSettled
java.lang.String getBolt11Invoice()
void setBolt11Invoice(java.lang.String bolt11Invoice)
bolt11Invoice
- the bolt11 lightning invoice displayed to the end user before
paying and invoice.java.time.Instant getSettlementValidFrom()
void setSettlementValidFrom(java.time.Instant settlementValidFrom)
settlementValidFrom
- the valid from timestamp used in generated settlement tokens. If null is
no valid from used, only validUntil.java.time.Instant getSettlementExpireDate()
If settlement expire date is set it has precedence over settlementDuration.
Important: Data in this field is only set to instruct the settlement token generator of expiration date. the actual settlement date is not updated in this field.
StandardPaymentData.getSettlementDuration()
void setSettlementExpireDate(java.time.Instant settlementExpireDate)
If settlement expire date is set it has precedence over settlementDuration.
Important: Data in this field is only set to instruct the settlement token generator of expiration date. the actual settlement date is not updated in this field.
settlementExpireDate
- the date the settlement will expire used to indicate how long a settlement token should be valid.
If null will default settlement validity be used. If settlementExpireDate is set it will override
the settlement duration value.StandardPaymentData.getSettlementDuration()