Files
2e03d96084 feat: update speakeasy (#1100)
Co-authored-by: Maxence Maireaux <[email protected]>
Co-authored-by: David Ragot <[email protected]>
2024-01-08 18:23:33 +00:00

64 lines
1.2 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
type Hold struct {
Description string `json:"description"`
Destination *Subject `json:"destination,omitempty"`
// The unique ID of the hold.
ID string `json:"id"`
// Metadata associated with the hold.
Metadata map[string]string `json:"metadata"`
// The ID of the wallet the hold is associated with.
WalletID string `json:"walletID"`
}
func (o *Hold) GetDescription() string {
if o == nil {
return ""
}
return o.Description
}
func (o *Hold) GetDestination() *Subject {
if o == nil {
return nil
}
return o.Destination
}
func (o *Hold) GetDestinationAccount() *LedgerAccountSubject {
if v := o.GetDestination(); v != nil {
return v.LedgerAccountSubject
}
return nil
}
func (o *Hold) GetDestinationWallet() *WalletSubject {
if v := o.GetDestination(); v != nil {
return v.WalletSubject
}
return nil
}
func (o *Hold) GetID() string {
if o == nil {
return ""
}
return o.ID
}
func (o *Hold) GetMetadata() map[string]string {
if o == nil {
return map[string]string{}
}
return o.Metadata
}
func (o *Hold) GetWalletID() string {
if o == nil {
return ""
}
return o.WalletID
}