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

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
}