invoice

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Invoice

type Invoice struct {
	Amount   int64     `json:"amount"`
	Pr       string    `json:"payment_request"`
	Hash     string    `json:"payment_hash" gorm:"primaryKey"`
	Issued   bool      `json:"issued"`
	Preimage string    `json:"preimage"`
	Paid     bool      `json:"paid"`
	Create   time.Time `json:"time_created"`
	TimePaid time.Time `json:"time_paid"`
}

func (*Invoice) GetAmount

func (i *Invoice) GetAmount() int64

func (*Invoice) GetHash

func (i *Invoice) GetHash() string

func (*Invoice) GetPaymentRequest

func (i *Invoice) GetPaymentRequest() string

func (*Invoice) IsIssued

func (i *Invoice) IsIssued() bool

func (Invoice) Log

func (i Invoice) Log() map[string]interface{}

func (*Invoice) SetAmount

func (i *Invoice) SetAmount(amount int64)

func (*Invoice) SetHash

func (i *Invoice) SetHash(h string)

func (*Invoice) SetIssued

func (i *Invoice) SetIssued(issued bool)

func (*Invoice) SetPaid

func (i *Invoice) SetPaid(paid bool)

func (*Invoice) SetPaymentRequest

func (i *Invoice) SetPaymentRequest(pr string)

func (*Invoice) SetTimeCreated

func (i *Invoice) SetTimeCreated(t time.Time)

func (*Invoice) SetTimePaid

func (i *Invoice) SetTimePaid(t time.Time)

func (Invoice) String

func (i Invoice) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL