accounts

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	ID                   string
	CustomerID           string
	Balance              float64
	WithdrawalDailyLimit float64
	IsActive             bool
	AccountType          int8
	CreatedAt            time.Time
	UpdatedAt            time.Time
}

func NewAccount

func NewAccount(customerID string, withdrawalDailyLimit float64, accountType int8) *Account

func (*Account) GetAccountType

func (a *Account) GetAccountType() int8

func (*Account) GetBalance

func (a *Account) GetBalance() float64

func (*Account) GetCustomerID

func (a *Account) GetCustomerID() string

func (*Account) GetID

func (a *Account) GetID() string

func (*Account) GetIsActive

func (a *Account) GetIsActive() bool

func (*Account) GetWithdrawalDailyLimit

func (a *Account) GetWithdrawalDailyLimit() float64

type AccountInterface

type AccountInterface interface {
	GetID() string
	GetCustomerID() string
	GetBalance() float64
	GetWithdrawalDailyLimit() float64
	GetIsActive() bool
	GetAccountType() int8
}

Jump to

Keyboard shortcuts

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