mirror of
https://github.com/hanzoai/commerce.git
synced 2026-10-30 15:08:42 +00:00
Multi-tenant commerce and billing: orders, subscriptions, invoices, plans, usage metering and a credit ledger. One Go binary. MIT OR Apache-2.0. Claude-Session: https://claude.ai/code/session_01SAtaDFm8VDiWrhYHNNtxMw
15 lines
589 B
Go
15 lines
589 B
Go
package transaction
|
|
|
|
import (
|
|
"errors"
|
|
)
|
|
|
|
var ErrorSourceRequired = errors.New("Source is required")
|
|
var ErrorDestinationRequired = errors.New("Destination is required")
|
|
var ErrorPointlessTransaction = errors.New("Amount cannot be 0")
|
|
var ErrorCurrencyRequired = errors.New("Currency is required")
|
|
var ErrorUseHoldApi = errors.New("Use transaction/hold api to create holds")
|
|
var ErrorCircularTransaction = errors.New("Source and Destination cannot be the same")
|
|
var ErrorInsufficientFunds = errors.New("Source has insufficient funds")
|
|
var ErrorInvalidType = errors.New("Type is invalid")
|