Files
stack/releases/sdks/go/pkg/models/shared/transferrequest.go
2024-01-19 11:33:42 +00:00

55 lines
1.0 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"
)
type TransferRequest struct {
Amount *big.Int `json:"amount"`
Asset string `json:"asset"`
Destination string `json:"destination"`
Source *string `json:"source,omitempty"`
}
func (t TransferRequest) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(t, "", false)
}
func (t *TransferRequest) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &t, "", false, false); err != nil {
return err
}
return nil
}
func (o *TransferRequest) GetAmount() *big.Int {
if o == nil {
return big.NewInt(0)
}
return o.Amount
}
func (o *TransferRequest) GetAsset() string {
if o == nil {
return ""
}
return o.Asset
}
func (o *TransferRequest) GetDestination() string {
if o == nil {
return ""
}
return o.Destination
}
func (o *TransferRequest) GetSource() *string {
if o == nil {
return nil
}
return o.Source
}