public class Invoice extends Message<LightningApi.Invoice>
Message
,
LightningApi.Invoice
Modifier and Type | Class and Description |
---|---|
static class |
Invoice.AmpInvoiceStateEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
Invoice.AmpInvoiceStateEntry
Inner class AmpInvoiceStateEntry for class Invoice.
|
static class |
Invoice.FeaturesEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
Invoice.FeaturesEntry
Inner class FeaturesEntry for class Invoice.
|
static class |
Invoice.InvoiceState
Inner enum InvoiceState for class Invoice
Generated Automatically.
|
Modifier and Type | Field and Description |
---|---|
protected Invoice.AmpInvoiceStateEntries |
ampInvoiceStateEntries |
protected Invoice.FeaturesEntries |
featuresEntries |
builder, wrapperFactory
Constructor and Description |
---|
Invoice()
Empty Constructor
|
Invoice(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
Invoice(LightningApi.Invoice apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
long |
getAddIndex()
Getter for addIndex.
|
java.util.Map<java.lang.String,AMPInvoiceState> |
getAmpInvoiceStateAsDetachedMap()
Returns ampInvoiceState as a detached map.
|
Invoice.AmpInvoiceStateEntries |
getAmpInvoiceStateEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
long |
getAmtPaid()
Getter for amtPaid.
|
long |
getAmtPaidMsat()
Getter for amtPaidMsat.
|
long |
getAmtPaidSat()
Getter for amtPaidSat.
|
long |
getCltvExpiry()
Getter for cltvExpiry.
|
long |
getCreationDate()
Getter for creationDate.
|
byte[] |
getDescriptionHash()
Getter for descriptionHash.
|
long |
getExpiry()
Getter for expiry.
|
java.lang.String |
getFallbackAddr()
Getter for fallbackAddr.
|
java.util.Map<java.lang.Integer,Feature> |
getFeaturesAsDetachedMap()
Returns features as a detached map.
|
Invoice.FeaturesEntries |
getFeaturesEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
java.util.List<InvoiceHTLC> |
getHtlcs()
Getter for a list of htlcs.
|
boolean |
getIsAmp()
Getter for isAmp.
|
boolean |
getIsKeysend()
Getter for isKeysend.
|
java.lang.String |
getMemo()
Getter for memo.
|
byte[] |
getPaymentAddr()
Getter for paymentAddr.
|
java.lang.String |
getPaymentRequest()
Getter for paymentRequest.
|
boolean |
getPrivate()
Getter for private.
|
byte[] |
getRHash()
Getter for rHash.
|
java.util.List<RouteHint> |
getRouteHints()
Getter for a list of routeHints.
|
byte[] |
getRPreimage()
Getter for rPreimage.
|
boolean |
getSettled()
Getter for settled.
|
long |
getSettleDate()
Getter for settleDate.
|
long |
getSettleIndex()
Getter for settleIndex.
|
Invoice.InvoiceState |
getState()
Getter for state.
|
long |
getValue()
Getter for value.
|
long |
getValueMsat()
Getter for valueMsat.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setAddIndex(long value)
Setter for addIndex.
|
void |
setAmpInvoiceState(java.util.Map<java.lang.String,AMPInvoiceState> valueMap)
Populates ampInvoiceState with all the values in the map.
|
void |
setAmpInvoiceStateEntries(Invoice.AmpInvoiceStateEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setAmtPaid(long value)
Setter for amtPaid.
|
void |
setAmtPaidMsat(long value)
Setter for amtPaidMsat.
|
void |
setAmtPaidSat(long value)
Setter for amtPaidSat.
|
void |
setCltvExpiry(long value)
Setter for cltvExpiry.
|
void |
setCreationDate(long value)
Setter for creationDate.
|
void |
setDescriptionHash(byte[] value)
Setter for descriptionHash.
|
void |
setExpiry(long value)
Setter for expiry.
|
void |
setFallbackAddr(java.lang.String value)
Setter for fallbackAddr.
|
void |
setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
Populates features with all the values in the map.
|
void |
setFeaturesEntries(Invoice.FeaturesEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setHtlcs(java.util.List<InvoiceHTLC> valueList)
Setter for list of htlcs.
|
void |
setIsAmp(boolean value)
Setter for isAmp.
|
void |
setIsKeysend(boolean value)
Setter for isKeysend.
|
void |
setMemo(java.lang.String value)
Setter for memo.
|
void |
setPaymentAddr(byte[] value)
Setter for paymentAddr.
|
void |
setPaymentRequest(java.lang.String value)
Setter for paymentRequest.
|
void |
setPrivate(boolean value)
Setter for private.
|
void |
setRHash(byte[] value)
Setter for rHash.
|
void |
setRouteHints(java.util.List<RouteHint> valueList)
Setter for list of routeHints.
|
void |
setRPreimage(byte[] value)
Setter for rPreimage.
|
void |
setSettled(boolean value)
Setter for settled.
|
void |
setSettleDate(long value)
Setter for settleDate.
|
void |
setSettleIndex(long value)
Setter for settleIndex.
|
void |
setState(Invoice.InvoiceState value)
Setter for state.
|
void |
setValue(long value)
Setter for value.
|
void |
setValueMsat(long value)
Setter for valueMsat.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected Invoice.FeaturesEntries featuresEntries
protected Invoice.AmpInvoiceStateEntries ampInvoiceStateEntries
public Invoice()
public Invoice(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public Invoice(LightningApi.Invoice apiObject)
public java.lang.String getMemo()
public void setMemo(java.lang.String value)
public byte[] getRPreimage()
public void setRPreimage(byte[] value)
public byte[] getRHash()
public void setRHash(byte[] value)
public long getValue()
public void setValue(long value)
public long getValueMsat()
public void setValueMsat(long value)
public boolean getSettled()
public void setSettled(boolean value)
public long getCreationDate()
public void setCreationDate(long value)
public long getSettleDate()
public void setSettleDate(long value)
public java.lang.String getPaymentRequest()
public void setPaymentRequest(java.lang.String value)
public byte[] getDescriptionHash()
public void setDescriptionHash(byte[] value)
public long getExpiry()
public void setExpiry(long value)
public java.lang.String getFallbackAddr()
public void setFallbackAddr(java.lang.String value)
public long getCltvExpiry()
public void setCltvExpiry(long value)
public java.util.List<RouteHint> getRouteHints() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setRouteHints(java.util.List<RouteHint> valueList)
public boolean getPrivate()
public void setPrivate(boolean value)
public long getAddIndex()
public void setAddIndex(long value)
public long getSettleIndex()
public void setSettleIndex(long value)
public long getAmtPaid()
public void setAmtPaid(long value)
public long getAmtPaidSat()
public void setAmtPaidSat(long value)
public long getAmtPaidMsat()
public void setAmtPaidMsat(long value)
public Invoice.InvoiceState getState()
public void setState(Invoice.InvoiceState value)
public java.util.List<InvoiceHTLC> getHtlcs() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setHtlcs(java.util.List<InvoiceHTLC> valueList)
public java.util.Map<java.lang.Integer,Feature> getFeaturesAsDetachedMap()
public void setFeatures(java.util.Map<java.lang.Integer,Feature> valueMap)
public Invoice.FeaturesEntries getFeaturesEntries()
public void setFeaturesEntries(Invoice.FeaturesEntries entries)
public boolean getIsKeysend()
public void setIsKeysend(boolean value)
public byte[] getPaymentAddr()
public void setPaymentAddr(byte[] value)
public boolean getIsAmp()
public void setIsAmp(boolean value)
public java.util.Map<java.lang.String,AMPInvoiceState> getAmpInvoiceStateAsDetachedMap()
public void setAmpInvoiceState(java.util.Map<java.lang.String,AMPInvoiceState> valueMap)
public Invoice.AmpInvoiceStateEntries getAmpInvoiceStateEntries()
public void setAmpInvoiceStateEntries(Invoice.AmpInvoiceStateEntries entries)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<LightningApi.Invoice>