transaction

package
v0.0.0-...-9f74dc9 Latest Latest
Warning

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

Go to latest
Published: May 6, 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 Repository

type Repository interface {
	CreateTransaction(ctx context.Context, transaction Transaction) (interface{}, error)
}

type Service

type Service interface {
	CreateTransaction(ctx context.Context, transaction Transaction) (string, error)
}

type Transaction

type Transaction struct {
	Id                string    `ion:"Id"`
	TrackingId        string    `ion:"TrackingId"`
	Notes             string    `ion:"Notes"`
	TransactionValue  Value     `ion:"TransactionValue"`
	SourceAccountId   string    `ion:"SourceAccountId"`
	BallastAccountId  string    `ion:"BallastAccountId"`
	MetadataId        string    `ion:"MetadataId"`
	TransactionType   string    `ion:"TransactionType"`
	DestinationHolder string    `ion:"DestinationHolder"`
	CreationDateTime  time.Time `ion:"CreationDateTime" type:"timestamp"`
}

type Value

type Value struct {
	Currency string       `ion:"Currency"`
	Amount   *ion.Decimal `ion:"Amount"`
}

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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