Discover Packages
github.com/LerianStudio/midaz
common
gold
transaction
model
package
Version:
v1.11.0-beta.1
Opens a new window with list of versions in this module.
Published: Sep 23, 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 string `json:"value,omitempty"`
Scale string `json:"scale,omitempty"`
}
type Distribute struct {
Remaining string `json:"remaining,omitempty"`
To []FromTo `json:"to,omitempty"`
Distribute *Distribute `json:"distribute,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"`
Metadata []Metadata `json:"metadata,omitempty"`
}
type Metadata struct {
Key string `json:"key,omitempty"`
Value string `json:"value,omitempty"`
}
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 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"`
Source *Source `json:"source,omitempty"`
}
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"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.