Files
stack/releases/sdks/go/pkg/models/shared/v2debitwalletrequest.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 V2DebitWalletRequest struct {
Amount V2Monetary `json:"amount"`
Balances []string `json:"balances,omitempty"`
Description *string `json:"description,omitempty"`
Destination *V2Subject `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 *V2DebitWalletRequest) GetAmount() V2Monetary {
if o == nil {
return V2Monetary{}
}
return o.Amount
}
func (o *V2DebitWalletRequest) GetBalances() []string {
if o == nil {
return nil
}
return o.Balances
}
func (o *V2DebitWalletRequest) GetDescription() *string {
if o == nil {
return nil
}
return o.Description
}
func (o *V2DebitWalletRequest) GetDestination() *V2Subject {
if o == nil {
return nil
}
return o.Destination
}
func (o *V2DebitWalletRequest) GetDestinationAccount() *V2LedgerAccountSubject {
if v := o.GetDestination(); v != nil {
return v.V2LedgerAccountSubject
}
return nil
}
func (o *V2DebitWalletRequest) GetDestinationWallet() *V2WalletSubject {
if v := o.GetDestination(); v != nil {
return v.V2WalletSubject
}
return nil
}
func (o *V2DebitWalletRequest) GetMetadata() map[string]string {
if o == nil {
return map[string]string{}
}
return o.Metadata
}
func (o *V2DebitWalletRequest) GetPending() *bool {
if o == nil {
return nil
}
return o.Pending
}