final case class Invoice(memo: String = "", rPreimage: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, rHash: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, value: Long = 0L, valueMsat: Long = 0L, settled: Boolean = false, creationDate: Long = 0L, settleDate: Long = 0L, paymentRequest: String = "", descriptionHash: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, expiry: Long = 0L, fallbackAddr: String = "", cltvExpiry: UInt64 = lnrpc.Invoice._typemapper_cltvExpiry.toCustom(0L), routeHints: Seq[RouteHint] = _root_.scala.Seq.empty, private: Boolean = false, addIndex: UInt64 = lnrpc.Invoice._typemapper_addIndex.toCustom(0L), settleIndex: UInt64 = lnrpc.Invoice._typemapper_settleIndex.toCustom(0L), amtPaid: Long = 0L, amtPaidSat: Long = 0L, amtPaidMsat: Long = 0L, state: InvoiceState = lnrpc.Invoice.InvoiceState.OPEN, htlcs: Seq[InvoiceHTLC] = _root_.scala.Seq.empty, features: Map[UInt32, Feature] = _root_.scala.collection.immutable.Map.empty, isKeysend: Boolean = false, paymentAddr: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, isAmp: Boolean = false, ampInvoiceState: Map[String, AMPInvoiceState] = _root_.scala.collection.immutable.Map.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty) extends GeneratedMessage with Updatable[Invoice] with Product with Serializable
- memo
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.
- rPreimage
The hex-encoded preimage (32 byte) which will allow settling an incoming HTLC payable to this preimage. When using REST, this field must be encoded as base64.
- rHash
The hash of the preimage. When using REST, this field must be encoded as base64. Note: Output only, don't specify for creating an invoice.
- value
The value of this invoice in satoshis The fields value and value_msat are mutually exclusive.
- valueMsat
The value of this invoice in millisatoshis The fields value and value_msat are mutually exclusive.
- settled
Whether this invoice has been fulfilled. The field is deprecated. Use the state field instead (compare to SETTLED).
- creationDate
When this invoice was created. Measured in seconds since the unix epoch. Note: Output only, don't specify for creating an invoice.
- settleDate
When this invoice was settled. Measured in seconds since the unix epoch. Note: Output only, don't specify for creating an invoice.
- paymentRequest
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient. Note: Output only, don't specify for creating an invoice.
- descriptionHash
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. When using REST, this field must be encoded as base64.
- expiry
Payment request expiry time in seconds. Default is 86400 (24 hours).
- fallbackAddr
Fallback on-chain address.
- cltvExpiry
Delta to use for the time-lock of the CLTV extended to the final hop.
- routeHints
Route hints that can each be individually used to assist in reaching the invoice's destination.
- private
Whether this invoice should include routing hints for private channels. Note: When enabled, if value and value_msat are zero, a large number of hints with these channels can be included, which might not be desirable.
- addIndex
The "add" index of this invoice. Each newly created invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all added invoices with an add_index greater than this one. Note: Output only, don't specify for creating an invoice.
- settleIndex
The "settle" index of this invoice. Each newly settled invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all settled invoices with an settle_index greater than this one. Note: Output only, don't specify for creating an invoice.
- amtPaid
Deprecated, use amt_paid_sat or amt_paid_msat.
- amtPaidSat
The amount that was accepted for this invoice, in satoshis. This will ONLY be set if this invoice has been settled or accepted. We provide this field as if the invoice was created with a zero value, then we need to record what amount was ultimately accepted. Additionally, it's possible that the sender paid MORE that was specified in the original invoice. So we'll record that here as well. Note: Output only, don't specify for creating an invoice.
- amtPaidMsat
The amount that was accepted for this invoice, in millisatoshis. This will ONLY be set if this invoice has been settled or accepted. We provide this field as if the invoice was created with a zero value, then we need to record what amount was ultimately accepted. Additionally, it's possible that the sender paid MORE that was specified in the original invoice. So we'll record that here as well. Note: Output only, don't specify for creating an invoice.
- state
The state the invoice is in. Note: Output only, don't specify for creating an invoice.
- htlcs
List of HTLCs paying to this invoice [EXPERIMENTAL]. Note: Output only, don't specify for creating an invoice.
- features
List of features advertised on the invoice. Note: Output only, don't specify for creating an invoice.
- isKeysend
Indicates if this invoice was a spontaneous payment that arrived via keysend [EXPERIMENTAL]. Note: Output only, don't specify for creating an invoice.
- paymentAddr
The payment address of this invoice. This value will be used in MPP payments, and also for newer invoices that always require the MPP payload for added end-to-end security. Note: Output only, don't specify for creating an invoice.
- isAmp
Signals whether or not this is an AMP invoice.
- ampInvoiceState
[EXPERIMENTAL]: Maps a 32-byte hex-encoded set ID to the sub-invoice AMP state for the given set ID. This field is always populated for AMP invoices, and can be used along side LookupInvoice to obtain the HTLC information related to a given sub-invoice. Note: Output only, don't specify for creating an invoice.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Invoice
- Updatable
- GeneratedMessage
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Invoice(memo: String = "", rPreimage: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, rHash: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, value: Long = 0L, valueMsat: Long = 0L, settled: Boolean = false, creationDate: Long = 0L, settleDate: Long = 0L, paymentRequest: String = "", descriptionHash: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, expiry: Long = 0L, fallbackAddr: String = "", cltvExpiry: UInt64 = lnrpc.Invoice._typemapper_cltvExpiry.toCustom(0L), routeHints: Seq[RouteHint] = _root_.scala.Seq.empty, private: Boolean = false, addIndex: UInt64 = lnrpc.Invoice._typemapper_addIndex.toCustom(0L), settleIndex: UInt64 = lnrpc.Invoice._typemapper_settleIndex.toCustom(0L), amtPaid: Long = 0L, amtPaidSat: Long = 0L, amtPaidMsat: Long = 0L, state: InvoiceState = lnrpc.Invoice.InvoiceState.OPEN, htlcs: Seq[InvoiceHTLC] = _root_.scala.Seq.empty, features: Map[UInt32, Feature] = _root_.scala.collection.immutable.Map.empty, isKeysend: Boolean = false, paymentAddr: ByteString = _root_.com.google.protobuf.ByteString.EMPTY, isAmp: Boolean = false, ampInvoiceState: Map[String, AMPInvoiceState] = _root_.scala.collection.immutable.Map.empty, unknownFields: UnknownFieldSet = _root_.scalapb.UnknownFieldSet.empty)
- memo
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.
- rPreimage
The hex-encoded preimage (32 byte) which will allow settling an incoming HTLC payable to this preimage. When using REST, this field must be encoded as base64.
- rHash
The hash of the preimage. When using REST, this field must be encoded as base64. Note: Output only, don't specify for creating an invoice.
- value
The value of this invoice in satoshis The fields value and value_msat are mutually exclusive.
- valueMsat
The value of this invoice in millisatoshis The fields value and value_msat are mutually exclusive.
- settled
Whether this invoice has been fulfilled. The field is deprecated. Use the state field instead (compare to SETTLED).
- creationDate
When this invoice was created. Measured in seconds since the unix epoch. Note: Output only, don't specify for creating an invoice.
- settleDate
When this invoice was settled. Measured in seconds since the unix epoch. Note: Output only, don't specify for creating an invoice.
- paymentRequest
A bare-bones invoice for a payment within the Lightning Network. With the details of the invoice, the sender has all the data necessary to send a payment to the recipient. Note: Output only, don't specify for creating an invoice.
- descriptionHash
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. When using REST, this field must be encoded as base64.
- expiry
Payment request expiry time in seconds. Default is 86400 (24 hours).
- fallbackAddr
Fallback on-chain address.
- cltvExpiry
Delta to use for the time-lock of the CLTV extended to the final hop.
- routeHints
Route hints that can each be individually used to assist in reaching the invoice's destination.
- private
Whether this invoice should include routing hints for private channels. Note: When enabled, if value and value_msat are zero, a large number of hints with these channels can be included, which might not be desirable.
- addIndex
The "add" index of this invoice. Each newly created invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all added invoices with an add_index greater than this one. Note: Output only, don't specify for creating an invoice.
- settleIndex
The "settle" index of this invoice. Each newly settled invoice will increment this index making it monotonically increasing. Callers to the SubscribeInvoices call can use this to instantly get notified of all settled invoices with an settle_index greater than this one. Note: Output only, don't specify for creating an invoice.
- amtPaid
Deprecated, use amt_paid_sat or amt_paid_msat.
- amtPaidSat
The amount that was accepted for this invoice, in satoshis. This will ONLY be set if this invoice has been settled or accepted. We provide this field as if the invoice was created with a zero value, then we need to record what amount was ultimately accepted. Additionally, it's possible that the sender paid MORE that was specified in the original invoice. So we'll record that here as well. Note: Output only, don't specify for creating an invoice.
- amtPaidMsat
The amount that was accepted for this invoice, in millisatoshis. This will ONLY be set if this invoice has been settled or accepted. We provide this field as if the invoice was created with a zero value, then we need to record what amount was ultimately accepted. Additionally, it's possible that the sender paid MORE that was specified in the original invoice. So we'll record that here as well. Note: Output only, don't specify for creating an invoice.
- state
The state the invoice is in. Note: Output only, don't specify for creating an invoice.
- htlcs
List of HTLCs paying to this invoice [EXPERIMENTAL]. Note: Output only, don't specify for creating an invoice.
- features
List of features advertised on the invoice. Note: Output only, don't specify for creating an invoice.
- isKeysend
Indicates if this invoice was a spontaneous payment that arrived via keysend [EXPERIMENTAL]. Note: Output only, don't specify for creating an invoice.
- paymentAddr
The payment address of this invoice. This value will be used in MPP payments, and also for newer invoices that always require the MPP payload for added end-to-end security. Note: Output only, don't specify for creating an invoice.
- isAmp
Signals whether or not this is an AMP invoice.
- ampInvoiceState
[EXPERIMENTAL]: Maps a 32-byte hex-encoded set ID to the sub-invoice AMP state for the given set ID. This field is always populated for AMP invoices, and can be used along side LookupInvoice to obtain the HTLC information related to a given sub-invoice. Note: Output only, don't specify for creating an invoice.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def addAllAmpInvoiceState(__vs: Iterable[(String, AMPInvoiceState)]): Invoice
- def addAllFeatures(__vs: Iterable[(UInt32, Feature)]): Invoice
- def addAllHtlcs(__vs: Iterable[InvoiceHTLC]): Invoice
- def addAllRouteHints(__vs: Iterable[RouteHint]): Invoice
- def addAmpInvoiceState(__vs: (String, AMPInvoiceState)*): Invoice
- def addFeatures(__vs: (UInt32, Feature)*): Invoice
- def addHtlcs(__vs: InvoiceHTLC*): Invoice
- val addIndex: UInt64
- def addRouteHints(__vs: RouteHint*): Invoice
- val ampInvoiceState: Map[String, AMPInvoiceState]
- val amtPaidMsat: Long
- val amtPaidSat: Long
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clearAmpInvoiceState: Invoice
- def clearFeatures: Invoice
- def clearHtlcs: Invoice
- def clearRouteHints: Invoice
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val cltvExpiry: UInt64
- def companion: Invoice.type
- Definition Classes
- Invoice → GeneratedMessage
- val creationDate: Long
- val descriptionHash: ByteString
- def discardUnknownFields: Invoice
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val expiry: Long
- val fallbackAddr: String
- val features: Map[UInt32, Feature]
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getField(__field: FieldDescriptor): PValue
- Definition Classes
- Invoice → GeneratedMessage
- def getFieldByNumber(__fieldNumber: Int): Any
- Definition Classes
- Invoice → GeneratedMessage
- val htlcs: Seq[InvoiceHTLC]
- val isAmp: Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val isKeysend: Boolean
- val memo: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val paymentAddr: ByteString
- val paymentRequest: String
- val private: Boolean
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val rHash: ByteString
- val rPreimage: ByteString
- val routeHints: Seq[RouteHint]
- def serializedSize: Int
- Definition Classes
- Invoice → GeneratedMessage
- val settleDate: Long
- val settleIndex: UInt64
- val state: InvoiceState
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toByteArray: Array[Byte]
- Definition Classes
- GeneratedMessage
- final def toByteString: ByteString
- Definition Classes
- GeneratedMessage
- final def toPMessage: PMessage
- Definition Classes
- GeneratedMessage
- def toProtoString: String
- Definition Classes
- Invoice → GeneratedMessage
- val unknownFields: UnknownFieldSet
- def update(ms: (Lens[Invoice, Invoice]) => Mutation[Invoice]*): Invoice
- Definition Classes
- Updatable
- val value: Long
- val valueMsat: Long
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withAddIndex(__v: UInt64): Invoice
- def withAmpInvoiceState(__v: Map[String, AMPInvoiceState]): Invoice
- def withAmtPaid(__v: Long): Invoice
- def withAmtPaidMsat(__v: Long): Invoice
- def withAmtPaidSat(__v: Long): Invoice
- def withCltvExpiry(__v: UInt64): Invoice
- def withCreationDate(__v: Long): Invoice
- def withDescriptionHash(__v: ByteString): Invoice
- def withExpiry(__v: Long): Invoice
- def withFallbackAddr(__v: String): Invoice
- def withFeatures(__v: Map[UInt32, Feature]): Invoice
- def withHtlcs(__v: Seq[InvoiceHTLC]): Invoice
- def withIsAmp(__v: Boolean): Invoice
- def withIsKeysend(__v: Boolean): Invoice
- def withMemo(__v: String): Invoice
- def withPaymentAddr(__v: ByteString): Invoice
- def withPaymentRequest(__v: String): Invoice
- def withPrivate(__v: Boolean): Invoice
- def withRHash(__v: ByteString): Invoice
- def withRPreimage(__v: ByteString): Invoice
- def withRouteHints(__v: Seq[RouteHint]): Invoice
- def withSettleDate(__v: Long): Invoice
- def withSettleIndex(__v: UInt64): Invoice
- def withSettled(__v: Boolean): Invoice
- def withState(__v: InvoiceState): Invoice
- def withUnknownFields(__v: UnknownFieldSet): Invoice
- def withValue(__v: Long): Invoice
- def withValueMsat(__v: Long): Invoice
- final def writeDelimitedTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage
- def writeTo(_output__: CodedOutputStream): Unit
- Definition Classes
- Invoice → GeneratedMessage
- final def writeTo(output: OutputStream): Unit
- Definition Classes
- GeneratedMessage