Files
stack/releases/sdks/go/pkg/models/shared/volume.go

47 lines
839 B
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package shared
import (
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
"math/big"
)
type Volume struct {
Balance *big.Int `json:"balance,omitempty"`
Input *big.Int `json:"input"`
Output *big.Int `json:"output"`
}
func (v Volume) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(v, "", false)
}
func (v *Volume) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
return err
}
return nil
}
func (o *Volume) GetBalance() *big.Int {
if o == nil {
return nil
}
return o.Balance
}
func (o *Volume) GetInput() *big.Int {
if o == nil {
return big.NewInt(0)
}
return o.Input
}
func (o *Volume) GetOutput() *big.Int {
if o == nil {
return big.NewInt(0)
}
return o.Output
}