model

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Amount

type Amount struct {
	Asset string `json:"asset,omitempty"`
	Value string `json:"value,omitempty"`
	Scale string `json:"scale,omitempty"`
}

type Distribute

type Distribute struct {
	Remaining  string      `json:"remaining,omitempty"`
	To         []FromTo    `json:"to,omitempty"`
	Distribute *Distribute `json:"distribute,omitempty"`
}

type FromTo

type FromTo struct {
	Account     string     `json:"account,omitempty"`
	Amount      *Amount    `json:"amount,omitempty"`
	Share       *Share     `json:"share,omitempty"`
	Remaining   string     `json:"remaining,omitempty"`
	Description string     `json:"description,omitempty"`
	Metadata    []Metadata `json:"metadata,omitempty"`
}

type Metadata

type Metadata struct {
	Key   string `json:"key,omitempty"`
	Value string `json:"value,omitempty"`
}

type Send

type Send struct {
	Asset  string `json:"asset,omitempty"`
	Value  string `json:"value,omitempty"`
	Scale  string `json:"scale,omitempty"`
	Source Source `json:"source,omitempty"`
}

type Share

type Share struct {
	Percentage             int  `json:"percentage,omitempty"`
	PercentageOfPercentage int  `json:"percentageOfPercentage,omitempty"`
	DescWhatever           bool `json:"descWhatever,omitempty"`
}

type Source

type Source struct {
	Remaining string   `json:"remaining,omitempty"`
	From      []FromTo `json:"from,omitempty"`
	Source    *Source  `json:"source,omitempty"`
}

type Transaction

type Transaction struct {
	ChartOfAccountsGroupName string     `json:"chartOfAccountsGroupName"`
	Description              string     `json:"description,omitempty"`
	Code                     string     `json:"code,omitempty"`
	Pending                  bool       `json:"pending,omitempty"`
	Metadata                 []Metadata `json:"metadata,omitempty"`
	Send                     Send       `json:"send,omitempty"`
	Distribute               Distribute `json:"distribute,omitempty"`
}

Jump to

Keyboard shortcuts

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