Files

65 lines
1.2 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
"time"
)
type V2Wallet struct {
CreatedAt time.Time `json:"createdAt"`
// The unique ID of the wallet.
ID string `json:"id"`
Ledger string `json:"ledger"`
// Metadata associated with the wallet.
Metadata map[string]string `json:"metadata"`
Name string `json:"name"`
}
func (v V2Wallet) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(v, "", false)
}
func (v *V2Wallet) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
return err
}
return nil
}
func (o *V2Wallet) GetCreatedAt() time.Time {
if o == nil {
return time.Time{}
}
return o.CreatedAt
}
func (o *V2Wallet) GetID() string {
if o == nil {
return ""
}
return o.ID
}
func (o *V2Wallet) GetLedger() string {
if o == nil {
return ""
}
return o.Ledger
}
func (o *V2Wallet) GetMetadata() map[string]string {
if o == nil {
return map[string]string{}
}
return o.Metadata
}
func (o *V2Wallet) GetName() string {
if o == nil {
return ""
}
return o.Name
}