transaction

package
v0.0.0-...-c061cf9 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	ID            string `validate:"required,KSUID"`
	TransactionID string `validate:"required,KSUID"`
	Description   string
	DebitAccount  string        `validate:"required,KSUID"`
	CreditAccount string        `validate:"required,KSUID"`
	Amount        amount.Amount `validate:"required"`
	CreatedAt     time.Time     `validate:"required"`
}

Entry ...

type Transaction

type Transaction struct {
	ID          string    `validate:"required,KSUID"`
	Description string    `validate:"required"`
	Entries     []Entry   `validate:"dive,gte=1"`
	CreatedAt   time.Time `validate:"required"`
}

Transaction ...

func (Transaction) IsZero

func (t Transaction) IsZero() bool

Jump to

Keyboard shortcuts

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