entities

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 6 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        uuid.UUID
	Operation vos.OperationType
	Account   vos.Account
	Version   vos.Version
	Amount    int
	Metadata  json.RawMessage
}

func NewEntry

func NewEntry(id uuid.UUID, operation vos.OperationType, accountID string, version vos.Version, amount int, metadata json.RawMessage) (Entry, error)

type Transaction

type Transaction struct {
	ID             uuid.UUID
	Entries        []Entry
	Event          uint32
	Company        string
	CompetenceDate time.Time
}

func NewTransaction

func NewTransaction(id uuid.UUID, event uint32, company string, competenceDate time.Time, entries ...Entry) (Transaction, error)

Jump to

Keyboard shortcuts

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