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

79 lines
1.6 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 AccountRequest struct {
AccountName *string `json:"accountName,omitempty"`
ConnectorID string `json:"connectorID"`
CreatedAt time.Time `json:"createdAt"`
DefaultAsset *string `json:"defaultAsset,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
Reference string `json:"reference"`
Type AccountType `json:"type"`
}
func (a AccountRequest) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(a, "", false)
}
func (a *AccountRequest) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &a, "", false, false); err != nil {
return err
}
return nil
}
func (o *AccountRequest) GetAccountName() *string {
if o == nil {
return nil
}
return o.AccountName
}
func (o *AccountRequest) GetConnectorID() string {
if o == nil {
return ""
}
return o.ConnectorID
}
func (o *AccountRequest) GetCreatedAt() time.Time {
if o == nil {
return time.Time{}
}
return o.CreatedAt
}
func (o *AccountRequest) GetDefaultAsset() *string {
if o == nil {
return nil
}
return o.DefaultAsset
}
func (o *AccountRequest) GetMetadata() map[string]string {
if o == nil {
return nil
}
return o.Metadata
}
func (o *AccountRequest) GetReference() string {
if o == nil {
return ""
}
return o.Reference
}
func (o *AccountRequest) GetType() AccountType {
if o == nil {
return AccountType("")
}
return o.Type
}