Files
stack/releases/sdks/go/pkg/models/shared/accountwithvolumesandbalances.go
2e03d96084 feat: update speakeasy (#1100)
Co-authored-by: Maxence Maireaux <[email protected]>
Co-authored-by: David Ragot <[email protected]>
2024-01-08 18:23:33 +00:00

63 lines
1.4 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/formancehq/formance-sdk-go/pkg/utils"
"math/big"
)
type AccountWithVolumesAndBalances struct {
Address string `json:"address"`
Balances map[string]*big.Int `json:"balances,omitempty"`
Metadata map[string]interface{} `json:"metadata,omitempty"`
Type *string `json:"type,omitempty"`
Volumes map[string]Volume `json:"volumes,omitempty"`
}
func (a AccountWithVolumesAndBalances) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(a, "", false)
}
func (a *AccountWithVolumesAndBalances) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil {
return err
}
return nil
}
func (o *AccountWithVolumesAndBalances) GetAddress() string {
if o == nil {
return ""
}
return o.Address
}
func (o *AccountWithVolumesAndBalances) GetBalances() map[string]*big.Int {
if o == nil {
return nil
}
return o.Balances
}
func (o *AccountWithVolumesAndBalances) GetMetadata() map[string]interface{} {
if o == nil {
return nil
}
return o.Metadata
}
func (o *AccountWithVolumesAndBalances) GetType() *string {
if o == nil {
return nil
}
return o.Type
}
func (o *AccountWithVolumesAndBalances) GetVolumes() map[string]Volume {
if o == nil {
return nil
}
return o.Volumes
}