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