public interface MinimalPaymentData extends PaymentData
When only implementing the minimal payment data it is assumed that the order amount is the same as later invoice amount and settled amount.
If system should support payPerRequest payments should the implementing data also implement the PerRequestPaymentData.
Created by Philip Vendil on 2018-12-09.
Modifier and Type | Method and Description |
---|---|
Amount |
getOrderAmount() |
byte[] |
getPreImageHash()
Unique identifier of a payment in the system and also used in LightningHandler
to identify an invoice.
|
boolean |
isSettled() |
void |
setOrderAmount(Amount orderAmount) |
void |
setPreImageHash(byte[] preImageHash) |
void |
setSettled(boolean settled) |
byte[] getPreImageHash()
void setPreImageHash(byte[] preImageHash)
preImageHash
- unique identifier of a payment in the system and also used in LightningHandler
to identify an invoice. Should be generated by TokenGenerator when
creating an order and not set manually.Amount getOrderAmount()
void setOrderAmount(Amount orderAmount)
orderAmount
- the requested amount for payment. This can be either a FiatAmount or CryptoAmount but
always make sure the systems configured CurrencyConverter supports this currency when converting
into a currency accepted by the LightningHandler later in the payment flow.boolean isSettled()
void setSettled(boolean settled)
settled
- true if related invoice have been settled in full.