mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
48 lines
944 B
Go
48 lines
944 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"
|
|
"time"
|
|
)
|
|
|
|
type CreateBalanceRequest struct {
|
|
ExpiresAt *time.Time `json:"expiresAt,omitempty"`
|
|
Name string `json:"name"`
|
|
Priority *big.Int `json:"priority,omitempty"`
|
|
}
|
|
|
|
func (c CreateBalanceRequest) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(c, "", false)
|
|
}
|
|
|
|
func (c *CreateBalanceRequest) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &c, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *CreateBalanceRequest) GetExpiresAt() *time.Time {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.ExpiresAt
|
|
}
|
|
|
|
func (o *CreateBalanceRequest) GetName() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Name
|
|
}
|
|
|
|
func (o *CreateBalanceRequest) GetPriority() *big.Int {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Priority
|
|
}
|