2019-11-05 02:10:32 +03:00
|
|
|
package invoices
|
|
|
|
|
2019-11-19 15:33:05 +03:00
|
|
|
import (
|
|
|
|
"github.com/lightningnetwork/lnd/record"
|
|
|
|
)
|
2019-11-05 02:10:32 +03: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 15:33:05 +03:00
|
|
|
|
2021-03-03 20:54:11 +03:00
|
|
|
// AMPRecord returns the record corresponding to the option_amp record
|
|
|
|
// parsed from the onion payload.
|
|
|
|
AMPRecord() *record.AMP
|
|
|
|
|
2019-11-19 15:33:05 +03:00
|
|
|
// CustomRecords returns the custom tlv type records that were parsed
|
|
|
|
// from the payload.
|
2019-12-12 02:01:55 +03:00
|
|
|
CustomRecords() record.CustomSet
|
2019-11-05 02:10:32 +03:00
|
|
|
}
|