domain

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrDepositAmountExceedsMaxSafeInt Account errors
	// Deprecated: Use account.ErrDepositAmountExceedsMaxSafeInt directly.
	ErrDepositAmountExceedsMaxSafeInt = account.ErrDepositAmountExceedsMaxSafeInt
	// Deprecated: Use account.ErrTransactionAmountMustBePositive directly.
	ErrTransactionAmountMustBePositive = account.ErrTransactionAmountMustBePositive
	// Deprecated: Use account.ErrInsufficientFunds directly.
	ErrInsufficientFunds = account.ErrInsufficientFunds
	// Deprecated: Use account.ErrAccountNotFound directly.
	ErrAccountNotFound = account.ErrAccountNotFound
	// Deprecated: Use account.ErrInvalidCurrencyCode directly.
	ErrInvalidCurrencyCode = common.ErrInvalidCurrencyCode
	// Deprecated: Use account.ErrUserUnauthorized directly.
	ErrUserUnauthorized = user.ErrUserUnauthorized

	// Currency-related errors
	// Deprecated: Use provider.ErrExchangeRateUnavailable directly.
	ErrExchangeRateUnavailable = provider.ErrExchangeRateUnavailable
	// Deprecated: Use provider.ErrUnsupportedCurrencyPair directly.
	ErrUnsupportedCurrencyPair = provider.ErrUnsupportedCurrencyPair
	// Deprecated: Use provider.ErrExchangeRateExpired directly.
	ErrExchangeRateExpired = provider.ErrExchangeRateExpired
	// Deprecated: Use provider.ErrExchangeRateInvalid directly.
	ErrExchangeRateInvalid = provider.ErrExchangeRateInvalid
)

Error aliases for backward compatibility

Functions

func NewMoney deprecated added in v1.3.0

func NewMoney(amount float64, currencyCode money.Code) (m *money.Money, err error)

Deprecated: use money.New

Types

type Account

type Account = account.Account

Account and related Account is an alias for account.Account Deprecated: Use account.Account directly.

type ConversionInfo

type ConversionInfo = provider.ExchangeRate

ExchangeRate is an alias for provider.ExchangeRate Deprecated: Use provider.ExchangeRate directly.

type ExchangeRate deprecated

type ExchangeRate = provider.ExchangeInfo

Deprecated: Use provider.ExchangeInfo directly.

type Transaction

type Transaction = account.Transaction

Transaction represents a financial transaction in the system. Deprecated: Use account.Transaction directly.

type User

type User = user.User

User and related

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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