Package net.osslabz.lnd.dto
Class InvoicesrpcAddHoldInvoiceRequest
java.lang.Object
net.osslabz.lnd.dto.InvoicesrpcAddHoldInvoiceRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-06-07T12:03:38.664532692Z[Etc/UTC]")
public class InvoicesrpcAddHoldInvoiceRequest
extends Object
InvoicesrpcAddHoldInvoiceRequest
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddRouteHintsItem(LnrpcRouteHint routeHintsItem) cltvExpiry(String cltvExpiry) descriptionHash(byte[] descriptionHash) booleanfallbackAddr(String fallbackAddr) Delta to use for the time-lock of the CLTV extended to the final hop.byte[]Hash (SHA-256) of a description of the payment.Payment request expiry time in seconds.Fallback on-chain address.byte[]getHash()Get hashgetMemo()An optional memo to attach along with the invoice.Whether this invoice should include routing hints for private channels.Route hints that can each be individually used to assist in reaching the invoice's destination.getValue()The fields value and value_msat are mutually exclusive.The fields value and value_msat are mutually exclusive.hash(byte[] hash) inthashCode()routeHints(List<LnrpcRouteHint> routeHints) voidsetCltvExpiry(String cltvExpiry) voidsetDescriptionHash(byte[] descriptionHash) voidvoidsetFallbackAddr(String fallbackAddr) voidsetHash(byte[] hash) voidvoidsetPrivate(Boolean _private) voidsetRouteHints(List<LnrpcRouteHint> routeHints) voidvoidsetValueMsat(String valueMsat) toString()
-
Field Details
-
SERIALIZED_NAME_MEMO
- See Also:
-
SERIALIZED_NAME_HASH
- See Also:
-
SERIALIZED_NAME_VALUE
- See Also:
-
SERIALIZED_NAME_VALUE_MSAT
- See Also:
-
SERIALIZED_NAME_DESCRIPTION_HASH
- See Also:
-
SERIALIZED_NAME_EXPIRY
- See Also:
-
SERIALIZED_NAME_FALLBACK_ADDR
- See Also:
-
SERIALIZED_NAME_CLTV_EXPIRY
- See Also:
-
SERIALIZED_NAME_ROUTE_HINTS
- See Also:
-
SERIALIZED_NAME_PRIVATE
- See Also:
-
-
Constructor Details
-
InvoicesrpcAddHoldInvoiceRequest
public InvoicesrpcAddHoldInvoiceRequest()
-
-
Method Details
-
memo
-
getMemo
An optional memo to attach along with the invoice. Used for record keeping purposes for the invoice's creator, and will also be set in the description field of the encoded payment request if the description_hash field is not being used.- Returns:
- memo
-
setMemo
-
hash
-
getHash
@Nullable public byte[] getHash()Get hash- Returns:
- hash
-
setHash
public void setHash(byte[] hash) -
value
-
getValue
The fields value and value_msat are mutually exclusive.- Returns:
- value
-
setValue
-
valueMsat
-
getValueMsat
The fields value and value_msat are mutually exclusive.- Returns:
- valueMsat
-
setValueMsat
-
descriptionHash
-
getDescriptionHash
@Nullable public byte[] getDescriptionHash()Hash (SHA-256) of a description of the payment. Used if the description of payment (memo) is too long to naturally fit within the description field of an encoded payment request.- Returns:
- descriptionHash
-
setDescriptionHash
public void setDescriptionHash(byte[] descriptionHash) -
expiry
-
getExpiry
Payment request expiry time in seconds. Default is 86400 (24 hours).- Returns:
- expiry
-
setExpiry
-
fallbackAddr
-
getFallbackAddr
Fallback on-chain address.- Returns:
- fallbackAddr
-
setFallbackAddr
-
cltvExpiry
-
getCltvExpiry
Delta to use for the time-lock of the CLTV extended to the final hop.- Returns:
- cltvExpiry
-
setCltvExpiry
-
routeHints
-
addRouteHintsItem
-
getRouteHints
Route hints that can each be individually used to assist in reaching the invoice's destination.- Returns:
- routeHints
-
setRouteHints
-
_private
-
getPrivate
Whether this invoice should include routing hints for private channels.- Returns:
- _private
-
setPrivate
-
equals
-
hashCode
public int hashCode() -
toString
-