mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
Co-authored-by: Maxence Maireaux <[email protected]> Co-authored-by: David Ragot <[email protected]>
49 lines
993 B
Go
49 lines
993 B
Go
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
package shared
|
|
|
|
type CreditWalletRequest struct {
|
|
Amount Monetary `json:"amount"`
|
|
// The balance to credit
|
|
Balance *string `json:"balance,omitempty"`
|
|
// Metadata associated with the wallet.
|
|
Metadata map[string]string `json:"metadata"`
|
|
Reference *string `json:"reference,omitempty"`
|
|
Sources []Subject `json:"sources"`
|
|
}
|
|
|
|
func (o *CreditWalletRequest) GetAmount() Monetary {
|
|
if o == nil {
|
|
return Monetary{}
|
|
}
|
|
return o.Amount
|
|
}
|
|
|
|
func (o *CreditWalletRequest) GetBalance() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Balance
|
|
}
|
|
|
|
func (o *CreditWalletRequest) GetMetadata() map[string]string {
|
|
if o == nil {
|
|
return map[string]string{}
|
|
}
|
|
return o.Metadata
|
|
}
|
|
|
|
func (o *CreditWalletRequest) GetReference() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Reference
|
|
}
|
|
|
|
func (o *CreditWalletRequest) GetSources() []Subject {
|
|
if o == nil {
|
|
return []Subject{}
|
|
}
|
|
return o.Sources
|
|
}
|