@Entity public class DemoMinimalPaymentData extends java.lang.Object implements MinimalPaymentData
| Constructor and Description |
|---|
DemoMinimalPaymentData() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
getId() |
Amount |
getOrderAmount() |
byte[] |
getPreImageHash()
Unique identifier of a payment in the system and also used in LightningHandler
to identify an invoice.
|
boolean |
isSettled() |
void |
setId(java.lang.Integer id) |
void |
setOrderAmount(Amount orderAmount) |
void |
setPreImageHash(byte[] preImageHash) |
void |
setSettled(boolean settled) |
java.lang.String |
toString() |
public java.lang.Integer getId()
public void setId(java.lang.Integer id)
id - Unique Id of database row.public byte[] getPreImageHash()
getPreImageHash in interface MinimalPaymentDatapublic void setPreImageHash(byte[] preImageHash)
setPreImageHash in interface MinimalPaymentDatapreImageHash - 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.public Amount getOrderAmount()
getOrderAmount in interface MinimalPaymentDatapublic void setOrderAmount(Amount orderAmount)
setOrderAmount in interface MinimalPaymentDataorderAmount - 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.public boolean isSettled()
isSettled in interface MinimalPaymentDatapublic void setSettled(boolean settled)
setSettled in interface MinimalPaymentDatasettled - true if related invoice have been settled in full.public java.lang.String toString()
toString in class java.lang.Object