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

39 lines
728 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 V2Stats struct {
Accounts int64 `json:"accounts"`
Transactions *big.Int `json:"transactions"`
}
func (v V2Stats) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(v, "", false)
}
func (v *V2Stats) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
return err
}
return nil
}
func (o *V2Stats) GetAccounts() int64 {
if o == nil {
return 0
}
return o.Accounts
}
func (o *V2Stats) GetTransactions() *big.Int {
if o == nil {
return big.NewInt(0)
}
return o.Transactions
}