transactions

package
v0.0.0-...-1f03132 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transaction

type Transaction struct {
	ID              string
	AccountID       string
	TransactionType string
	Value           float64
	CreatedAt       time.Time
}

func NewTransaction

func NewTransaction(accountID, transactionType string, value float64) *Transaction

func (*Transaction) IsValid

func (t *Transaction) IsValid() (bool, error)

type TransactionInterface

type TransactionInterface interface {
	IsValid() (bool, error)
}

Jump to

Keyboard shortcuts

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