invoice

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 2 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 {
	trait.HasDetail
	// contains filtered or unexported fields
}

Invoice is a struct that holds the invoice data

func NewInvoice

func NewInvoice() *Invoice

NewInvoice creates a new invoice

func (*Invoice) GetAmount

func (i *Invoice) GetAmount() uint32

GetAmount returns the amount of the invoice

func (*Invoice) GetDescription added in v1.5.0

func (i *Invoice) GetDescription() string

GetDescription returns the description of the invoice

func (*Invoice) GetTransactionID

func (i *Invoice) GetTransactionID() string

GetTransactionID returns the transaction ID of the invoice

func (*Invoice) GetUUID

func (i *Invoice) GetUUID() string

GetUUID returns the UUID of the invoice

func (*Invoice) SetAmount

func (i *Invoice) SetAmount(amount uint32) *Invoice

SetAmount sets the amount of the invoice

func (*Invoice) SetDescription added in v1.5.0

func (i *Invoice) SetDescription(description string) *Invoice

SetDescription sets the description of the invoice

func (*Invoice) SetTransactionID

func (i *Invoice) SetTransactionID(transactionID string) *Invoice

SetTransactionID sets the transaction ID of the invoice

func (*Invoice) SetUUID

func (i *Invoice) SetUUID(uid ...string) *Invoice

SetUUID sets the UUID of the invoice

Jump to

Keyboard shortcuts

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