public class SendPaymentRequest extends Message<RouterOuterClass.SendPaymentRequest>
Message
,
RouterOuterClass.SendPaymentRequest
Modifier and Type | Class and Description |
---|---|
static class |
SendPaymentRequest.DestCustomRecordsEntries
Wrapping class used for conversion between Map and XML notation.
|
static class |
SendPaymentRequest.DestCustomRecordsEntry
Inner class DestCustomRecordsEntry for class SendPaymentRequest.
|
Modifier and Type | Field and Description |
---|---|
protected SendPaymentRequest.DestCustomRecordsEntries |
destCustomRecordsEntries |
builder, wrapperFactory
Constructor and Description |
---|
SendPaymentRequest()
Empty Constructor
|
SendPaymentRequest(javax.json.JsonReader jsonReader)
Json Parsing Constructor
|
SendPaymentRequest(RouterOuterClass.SendPaymentRequest apiObject)
Constructor using underlying Lightning API Object
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAllowSelfPayment()
Getter for allowSelfPayment.
|
boolean |
getAmp()
Getter for amp.
|
long |
getAmt()
Getter for amt.
|
long |
getAmtMsat()
Getter for amtMsat.
|
int |
getCltvLimit()
Getter for cltvLimit.
|
byte[] |
getDest()
Getter for dest.
|
java.util.Map<java.lang.Long,byte[]> |
getDestCustomRecordsAsDetachedMap()
Returns destCustomRecords as a detached map.
|
SendPaymentRequest.DestCustomRecordsEntries |
getDestCustomRecordsEntries()
Gets the map entries as a wrapped list, used for XML conversion.
|
java.util.List<FeatureBit> |
getDestFeatures()
Getter for destFeatures.
|
long |
getFeeLimitMsat()
Getter for feeLimitMsat.
|
long |
getFeeLimitSat()
Getter for feeLimitSat.
|
int |
getFinalCltvDelta()
Getter for finalCltvDelta.
|
byte[] |
getLastHopPubkey()
Getter for lastHopPubkey.
|
int |
getMaxParts()
Getter for maxParts.
|
long |
getMaxShardSizeMsat()
Getter for maxShardSizeMsat.
|
boolean |
getNoInflightUpdates()
Getter for noInflightUpdates.
|
long |
getOutgoingChanId()
Getter for outgoingChanId.
|
java.util.List<java.lang.Long> |
getOutgoingChanIds()
Getter for a list of outgoingChanIds.
|
byte[] |
getPaymentAddr()
Getter for paymentAddr.
|
byte[] |
getPaymentHash()
Getter for paymentHash.
|
java.lang.String |
getPaymentRequest()
Getter for paymentRequest.
|
java.util.List<RouteHint> |
getRouteHints()
Getter for a list of routeHints.
|
int |
getTimeoutSeconds()
Getter for timeoutSeconds.
|
double |
getTimePref()
Getter for timePref.
|
protected void |
populateRepeatedFields()
Method to be overrided by inherited messages that contains repeatable or mapped fields.
|
void |
setAllowSelfPayment(boolean value)
Setter for allowSelfPayment.
|
void |
setAmp(boolean value)
Setter for amp.
|
void |
setAmt(long value)
Setter for amt.
|
void |
setAmtMsat(long value)
Setter for amtMsat.
|
void |
setCltvLimit(int value)
Setter for cltvLimit.
|
void |
setDest(byte[] value)
Setter for dest.
|
void |
setDestCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
Populates destCustomRecords with all the values in the map.
|
void |
setDestCustomRecordsEntries(SendPaymentRequest.DestCustomRecordsEntries entries)
Sets a wrapped list of entries, used for XML conversion.
|
void |
setDestFeatures(java.util.List<FeatureBit> values)
Setter for destFeatures.
|
void |
setFeeLimitMsat(long value)
Setter for feeLimitMsat.
|
void |
setFeeLimitSat(long value)
Setter for feeLimitSat.
|
void |
setFinalCltvDelta(int value)
Setter for finalCltvDelta.
|
void |
setLastHopPubkey(byte[] value)
Setter for lastHopPubkey.
|
void |
setMaxParts(int value)
Setter for maxParts.
|
void |
setMaxShardSizeMsat(long value)
Setter for maxShardSizeMsat.
|
void |
setNoInflightUpdates(boolean value)
Setter for noInflightUpdates.
|
void |
setOutgoingChanId(long value)
Setter for outgoingChanId.
|
void |
setOutgoingChanIds(java.util.List<java.lang.Long> valueList)
Setter for list of outgoingChanIds.
|
void |
setPaymentAddr(byte[] value)
Setter for paymentAddr.
|
void |
setPaymentHash(byte[] value)
Setter for paymentHash.
|
void |
setPaymentRequest(java.lang.String value)
Setter for paymentRequest.
|
void |
setRouteHints(java.util.List<RouteHint> valueList)
Setter for list of routeHints.
|
void |
setTimeoutSeconds(int value)
Setter for timeoutSeconds.
|
void |
setTimePref(double value)
Setter for timePref.
|
equals, getApiObject, getMessageName, hashCode, toJson, toJsonAsString, toString, validate
protected SendPaymentRequest.DestCustomRecordsEntries destCustomRecordsEntries
public SendPaymentRequest()
public SendPaymentRequest(javax.json.JsonReader jsonReader) throws javax.json.JsonException
javax.json.JsonException
- if problems was found with the supplied JSON data.public SendPaymentRequest(RouterOuterClass.SendPaymentRequest apiObject)
public byte[] getDest()
public void setDest(byte[] value)
public long getAmt()
public void setAmt(long value)
public long getAmtMsat()
public void setAmtMsat(long value)
public byte[] getPaymentHash()
public void setPaymentHash(byte[] value)
public int getFinalCltvDelta()
public void setFinalCltvDelta(int value)
public byte[] getPaymentAddr()
public void setPaymentAddr(byte[] value)
public java.lang.String getPaymentRequest()
public void setPaymentRequest(java.lang.String value)
public int getTimeoutSeconds()
public void setTimeoutSeconds(int value)
public long getFeeLimitSat()
public void setFeeLimitSat(long value)
public long getFeeLimitMsat()
public void setFeeLimitMsat(long value)
public long getOutgoingChanId()
public void setOutgoingChanId(long value)
public java.util.List<java.lang.Long> getOutgoingChanIds() throws ClientSideException
ClientSideException
- if problems occurred constructing the wrapped object.public void setOutgoingChanIds(java.util.List<java.lang.Long> valueList)
public byte[] getLastHopPubkey()
public void setLastHopPubkey(byte[] value)
public int getCltvLimit()
public void setCltvLimit(int 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 java.util.Map<java.lang.Long,byte[]> getDestCustomRecordsAsDetachedMap()
public void setDestCustomRecords(java.util.Map<java.lang.Long,byte[]> valueMap)
public SendPaymentRequest.DestCustomRecordsEntries getDestCustomRecordsEntries()
public void setDestCustomRecordsEntries(SendPaymentRequest.DestCustomRecordsEntries entries)
public boolean getAllowSelfPayment()
public void setAllowSelfPayment(boolean value)
public java.util.List<FeatureBit> getDestFeatures()
public void setDestFeatures(java.util.List<FeatureBit> values)
public int getMaxParts()
public void setMaxParts(int value)
public boolean getNoInflightUpdates()
public void setNoInflightUpdates(boolean value)
public long getMaxShardSizeMsat()
public void setMaxShardSizeMsat(long value)
public boolean getAmp()
public void setAmp(boolean value)
public double getTimePref()
public void setTimePref(double value)
protected void populateRepeatedFields()
Message
populateRepeatedFields
in class Message<RouterOuterClass.SendPaymentRequest>