2019-11-05 00:10:32 +01:00
|
|
|
package invoices
|
|
|
|
|
2019-11-19 13:33:05 +01:00
|
|
|
import (
|
|
|
|
"github.com/lightningnetwork/lnd/record"
|
|
|
|
)
|
2019-11-05 00:10:32 +01:00
|
|
|
|
|
|
|
// Payload abstracts access to any additional fields provided in the final hop's
|
|
|
|
// TLV onion payload.
|
|
|
|
type Payload interface {
|
|
|
|
// MultiPath returns the record corresponding the option_mpp parsed from
|
|
|
|
// the onion payload.
|
|
|
|
MultiPath() *record.MPP
|
2019-11-19 13:33:05 +01:00
|
|
|
|
2021-03-03 18:54:11 +01:00
|
|
|
// AMPRecord returns the record corresponding to the option_amp record
|
|
|
|
// parsed from the onion payload.
|
|
|
|
AMPRecord() *record.AMP
|
|
|
|
|
2019-11-19 13:33:05 +01:00
|
|
|
// CustomRecords returns the custom tlv type records that were parsed
|
|
|
|
// from the payload.
|
2019-12-12 00:01:55 +01:00
|
|
|
CustomRecords() record.CustomSet
|
2022-01-11 14:15:23 +01:00
|
|
|
|
|
|
|
// Metadata returns the additional data that is sent along with the
|
|
|
|
// payment to the payee.
|
|
|
|
Metadata() []byte
|
2019-11-05 00:10:32 +01:00
|
|
|
}
|