Files
stack/releases/sdks/go/pkg/models/shared/balancewithassets.go
2024-01-19 11:33:42 +00:00

56 lines
1.1 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
"math/big"
"time"
)
type BalanceWithAssets struct {
Assets map[string]*big.Int `json:"assets"`
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
Name string `json:"name"`
Priority *big.Int `json:"priority,omitempty"`
}
func (b BalanceWithAssets) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(b, "", false)
}
func (b *BalanceWithAssets) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &b, "", false, false); err != nil {
return err
}
return nil
}
func (o *BalanceWithAssets) GetAssets() map[string]*big.Int {
if o == nil {
return map[string]*big.Int{}
}
return o.Assets
}
func (o *BalanceWithAssets) GetExpiresAt() *time.Time {
if o == nil {
return nil
}
return o.ExpiresAt
}
func (o *BalanceWithAssets) GetName() string {
if o == nil {
return ""
}
return o.Name
}
func (o *BalanceWithAssets) GetPriority() *big.Int {
if o == nil {
return nil
}
return o.Priority
}