Files
stack/releases/sdks/go/pkg/models/shared/debitwalletrequest.go
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

71 lines
1.5 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
type DebitWalletRequest struct {
Amount Monetary `json:"amount"`
Balances []string `json:"balances,omitempty"`
Description *string `json:"description,omitempty"`
Destination *Subject `json:"destination,omitempty"`
// Metadata associated with the wallet.
Metadata map[string]string `json:"metadata"`
// Set to true to create a pending hold. If false, the wallet will be debited immediately.
Pending *bool `json:"pending,omitempty"`
}
func (o *DebitWalletRequest) GetAmount() Monetary {
if o == nil {
return Monetary{}
}
return o.Amount
}
func (o *DebitWalletRequest) GetBalances() []string {
if o == nil {
return nil
}
return o.Balances
}
func (o *DebitWalletRequest) GetDescription() *string {
if o == nil {
return nil
}
return o.Description
}
func (o *DebitWalletRequest) GetDestination() *Subject {
if o == nil {
return nil
}
return o.Destination
}
func (o *DebitWalletRequest) GetDestinationAccount() *LedgerAccountSubject {
if v := o.GetDestination(); v != nil {
return v.LedgerAccountSubject
}
return nil
}
func (o *DebitWalletRequest) GetDestinationWallet() *WalletSubject {
if v := o.GetDestination(); v != nil {
return v.WalletSubject
}
return nil
}
func (o *DebitWalletRequest) GetMetadata() map[string]string {
if o == nil {
return map[string]string{}
}
return o.Metadata
}
func (o *DebitWalletRequest) GetPending() *bool {
if o == nil {
return nil
}
return o.Pending
}