entity

package
v0.0.0-...-160a394 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TRANSACTION_STATUS_SCHEDULED          = "scheduled"
	TRANSACTION_STATUS_ERROR_SCHEDULED    = "error_scheduled"
	TRANSACTION_STATUS_INSUFFICIENT_FUNDS = "insufficient_funds"
	TRANSACTION_STATUS_PAYER_PAYEE_SAME   = "payer_payee_same"
	TRANSACTION_STATUS_DONE               = "done"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Payee

type Payee struct {
	ID     string
	Amount uint
}

func NewPayee

func NewPayee(ID string) Payee

type Payer

type Payer struct {
	ID     string
	Amount uint
}

func NewPayer

func NewPayer(ID string) Payer

type Transaction

type Transaction struct {
	ID     string
	Payer  Payer
	Payee  Payee
	Amount uint
	Status string
}

func NewTransactionScheduled

func NewTransactionScheduled(Payer Payer, Payee Payee, Amount uint) Transaction

func (*Transaction) SetStatusDone

func (t *Transaction) SetStatusDone()

func (*Transaction) SetStatusErrorScheduled

func (t *Transaction) SetStatusErrorScheduled()

func (*Transaction) SetStatusInsufficientFunds

func (t *Transaction) SetStatusInsufficientFunds()

func (*Transaction) SetStatusPayerPayeeSame

func (t *Transaction) SetStatusPayerPayeeSame()

Jump to

Keyboard shortcuts

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