mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
56 lines
1.1 KiB
Go
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
|
|
}
|