public class Payment extends Message<LightningApi.Payment>
Message
,
LightningApi.Payment
Modifier and Type | Class and Description |
---|---|
static class |
Payment.PaymentStatus
Inner enum PaymentStatus for class Payment
Generated Automatically.
|
builder, wrapperFactory
Constructor and Description |
---|
Payment()
Empty Constructor
|
Payment(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
Payment(LightningApi.Payment apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
long |
getCreationDate()
Getter for creationDate.
|
long |
getCreationTimeNs()
Getter for creationTimeNs.
|
PaymentFailureReason |
getFailureReason()
Getter for failureReason.
|
long |
getFee()
Getter for fee.
|
long |
getFeeMsat()
Getter for feeMsat.
|
long |
getFeeSat()
Getter for feeSat.
|
java.util.List<HTLCAttempt> |
getHtlcs()
Getter for a list of htlcs.
|
java.lang.String |
getPaymentHash()
Getter for paymentHash.
|
long |
getPaymentIndex()
Getter for paymentIndex.
|
java.lang.String |
getPaymentPreimage()
Getter for paymentPreimage.
|
java.lang.String |
getPaymentRequest()
Getter for paymentRequest.
|
Payment.PaymentStatus |
getStatus()
Getter for status.
|
long |
getValue()
Getter for value.
|
long |
getValueMsat()
Getter for valueMsat.
|
long |
getValueSat()
Getter for valueSat.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setCreationDate(long value)
Setter for creationDate.
|
void |
setCreationTimeNs(long value)
Setter for creationTimeNs.
|
void |
setFailureReason(PaymentFailureReason value)
Setter for failureReason.
|
void |
setFee(long value)
Setter for fee.
|
void |
setFeeMsat(long value)
Setter for feeMsat.
|
void |
setFeeSat(long value)
Setter for feeSat.
|
void |
setHtlcs(java.util.List<HTLCAttempt> valueList)
Setter for list of htlcs.
|
void |
setPaymentHash(java.lang.String value)
Setter for paymentHash.
|
void |
setPaymentIndex(long value)
Setter for paymentIndex.
|
void |
setPaymentPreimage(java.lang.String value)
Setter for paymentPreimage.
|
void |
setPaymentRequest(java.lang.String value)
Setter for paymentRequest.
|
void |
setStatus(Payment.PaymentStatus value)
Setter for status.
|
void |
setValue(long value)
Setter for value.
|
void |
setValueMsat(long value)
Setter for valueMsat.
|
void |
setValueSat(long value)
Setter for valueSat.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
public Payment()
public Payment(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public Payment(LightningApi.Payment apiObject)
public java.lang.String getPaymentHash()
public void setPaymentHash(java.lang.String value)
public long getValue()
public void setValue(long value)
public long getCreationDate()
public void setCreationDate(long value)
public long getFee()
public void setFee(long value)
public java.lang.String getPaymentPreimage()
public void setPaymentPreimage(java.lang.String value)
public long getValueSat()
public void setValueSat(long value)
public long getValueMsat()
public void setValueMsat(long value)
public java.lang.String getPaymentRequest()
public void setPaymentRequest(java.lang.String value)
public Payment.PaymentStatus getStatus()
public void setStatus(Payment.PaymentStatus value)
public long getFeeSat()
public void setFeeSat(long value)
public long getFeeMsat()
public void setFeeMsat(long value)
public long getCreationTimeNs()
public void setCreationTimeNs(long value)
public java.util.List<HTLCAttempt> getHtlcs() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setHtlcs(java.util.List<HTLCAttempt> valueList)
public long getPaymentIndex()
public void setPaymentIndex(long value)
public PaymentFailureReason getFailureReason()
public void setFailureReason(PaymentFailureReason value)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.Payment>