Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transaction ¶
type Transaction struct { ID string `json:"id" validate:"required,uuid4"` AccountID string `json:"accountId" validate:"required,uuid4"` Amount float64 `json:"amount" validate:"required,numeric"` PixKeyTo string `json:"pixKeyTo" validate:"required"` PixKeyKindTo string `json:"pixKeyKindTo" validate:"required"` Description string `json:"description" validate:"required"` Status string `json:"status" validate:"required"` Error string `json:"description"` }
func NewTransaction ¶
func NewTransaction() *Transaction
func (*Transaction) ParseJson ¶
func (t *Transaction) ParseJson(data []byte) error
func (*Transaction) ToJson ¶
func (t *Transaction) ToJson() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.