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 Details

  • Constructor Details

    • InvoicesrpcAddHoldInvoiceRequest

      public InvoicesrpcAddHoldInvoiceRequest()
  • Method Details

    • memo

    • getMemo

      @Nullable public String 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

      public void setMemo(String memo)
    • hash

      public InvoicesrpcAddHoldInvoiceRequest hash(byte[] hash)
    • getHash

      @Nullable public byte[] getHash()
      Get hash
      Returns:
      hash
    • setHash

      public void setHash(byte[] hash)
    • value

    • getValue

      @Nullable public String getValue()
      The fields value and value_msat are mutually exclusive.
      Returns:
      value
    • setValue

      public void setValue(String value)
    • valueMsat

      public InvoicesrpcAddHoldInvoiceRequest valueMsat(String valueMsat)
    • getValueMsat

      @Nullable public String getValueMsat()
      The fields value and value_msat are mutually exclusive.
      Returns:
      valueMsat
    • setValueMsat

      public void setValueMsat(String valueMsat)
    • descriptionHash

      public InvoicesrpcAddHoldInvoiceRequest descriptionHash(byte[] 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

      public InvoicesrpcAddHoldInvoiceRequest expiry(String expiry)
    • getExpiry

      @Nullable public String getExpiry()
      Payment request expiry time in seconds. Default is 86400 (24 hours).
      Returns:
      expiry
    • setExpiry

      public void setExpiry(String expiry)
    • fallbackAddr

      public InvoicesrpcAddHoldInvoiceRequest fallbackAddr(String fallbackAddr)
    • getFallbackAddr

      @Nullable public String getFallbackAddr()
      Fallback on-chain address.
      Returns:
      fallbackAddr
    • setFallbackAddr

      public void setFallbackAddr(String fallbackAddr)
    • cltvExpiry

      public InvoicesrpcAddHoldInvoiceRequest cltvExpiry(String cltvExpiry)
    • getCltvExpiry

      @Nullable public String getCltvExpiry()
      Delta to use for the time-lock of the CLTV extended to the final hop.
      Returns:
      cltvExpiry
    • setCltvExpiry

      public void setCltvExpiry(String cltvExpiry)
    • routeHints

      public InvoicesrpcAddHoldInvoiceRequest routeHints(List<LnrpcRouteHint> routeHints)
    • addRouteHintsItem

      public InvoicesrpcAddHoldInvoiceRequest addRouteHintsItem(LnrpcRouteHint routeHintsItem)
    • getRouteHints

      @Nullable public List<LnrpcRouteHint> getRouteHints()
      Route hints that can each be individually used to assist in reaching the invoice's destination.
      Returns:
      routeHints
    • setRouteHints

      public void setRouteHints(List<LnrpcRouteHint> routeHints)
    • _private

      public InvoicesrpcAddHoldInvoiceRequest _private(Boolean _private)
    • getPrivate

      @Nullable public Boolean getPrivate()
      Whether this invoice should include routing hints for private channels.
      Returns:
      _private
    • setPrivate

      public void setPrivate(Boolean _private)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object