transaction

package
v1.39.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrorCircularTransaction = errors.New("Source and Destination cannot be the same")
View Source
var ErrorCurrencyRequired = errors.New("Currency is required")
View Source
var ErrorDestinationRequired = errors.New("Destination is required")
View Source
var ErrorInsufficientFunds = errors.New("Source has insufficient funds")
View Source
var ErrorInvalidType = errors.New("Type is invalid")
View Source
var ErrorPointlessTransaction = errors.New("Amount cannot be 0")
View Source
var ErrorSourceRequired = errors.New("Source is required")
View Source
var ErrorUseHoldApi = errors.New("Use transaction/hold api to create holds")

Functions

func Create

func Create(c *gin.Context)

func CreateHold

func CreateHold(c *gin.Context)

func List

func List(c *gin.Context)

func RemoveHold

func RemoveHold(c *gin.Context)

func Route

func Route(router router.Router, args ...gin.HandlerFunc)

Types

type CreateHoldReq

type CreateHoldReq struct {
	SourceId   string         `json:"sourceId"`
	SourceKind string         `json:"sourceKind"`
	Currency   currency.Type  `json:"currency"`
	Amount     currency.Cents `json:"amount"`
	Notes      string         `json:"notes"`
	Tags       string         `json:"tags"`
	Event      string         `json:"event"`
	Metadata   Map            `json:"metadata"`
}

Jump to

Keyboard shortcuts

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