Discover Packages
github.com/LerianStudio/midaz
common
gold
transaction
model
package
Version:
v1.25.0-beta.15
Opens a new window with list of versions in this module.
Published: Oct 29, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Amount struct {
Asset string `json:"asset,omitempty"`
Value int `json:"value,omitempty"`
Scale int `json:"scale,omitempty"`
}
type Distribute struct {
Remaining string `json:"remaining,omitempty"`
To []FromTo `json:"to,omitempty"`
}
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"`
ChartOfAccounts string `json:"chartOfAccountsG"`
Metadata map[string ]any `json:"metadata,omitempty"`
IsFrom bool `json:"isFrom,omitempty"`
}
type Metadata struct {
Key string `json:"key,omitempty"`
Value any `json:"value,omitempty"`
}
type Send struct {
Asset string `json:"asset,omitempty"`
Value int `json:"value,omitempty"`
Scale int `json:"scale,omitempty"`
Source Source `json:"source,omitempty"`
}
type Share struct {
Percentage int `json:"percentage,omitempty"`
PercentageOfPercentage int `json:"percentageOfPercentage,omitempty"`
DescWhatever bool `json:"descWhatever,omitempty"`
}
type Source struct {
Remaining string `json:"remaining,omitempty"`
From []FromTo `json:"from,omitempty"`
}
type Transaction struct {
ChartOfAccountsGroupName string `json:"chartOfAccountsGroupName"`
Description string `json:"description,omitempty"`
Code string `json:"code,omitempty"`
Pending bool `json:"pending,omitempty"`
Metadata map[string ]any `json:"metadata,omitempty"`
Send Send `json:"send,omitempty"`
Distribute Distribute `json:"distribute,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.