domain

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Money

type Money struct {
	MinorUnit int64  `json:"minorUnits"`
	Currency  string `json:"currency"` // ISO4217 Alpha Currency code
}

func (*Money) String

func (m *Money) String() string

func (*Money) ToMajorUnit

func (m *Money) ToMajorUnit() float64

type Transaction

type Transaction struct {
	Amount    Money
	Reference string
	Category  string
	CreatedAt time.Time
	IsDeposit bool
	BankName  string
	Notes     string
}

Jump to

Keyboard shortcuts

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