mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
73 lines
1.6 KiB
Go
73 lines
1.6 KiB
Go
// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
|
|
|
package shared
|
|
|
|
import (
|
|
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
|
|
"time"
|
|
)
|
|
|
|
type OrchestrationCreditWalletRequest 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"`
|
|
Timestamp *time.Time `json:"timestamp,omitempty"`
|
|
}
|
|
|
|
func (o OrchestrationCreditWalletRequest) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(o, "", false)
|
|
}
|
|
|
|
func (o *OrchestrationCreditWalletRequest) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &o, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *OrchestrationCreditWalletRequest) GetAmount() Monetary {
|
|
if o == nil {
|
|
return Monetary{}
|
|
}
|
|
return o.Amount
|
|
}
|
|
|
|
func (o *OrchestrationCreditWalletRequest) GetBalance() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Balance
|
|
}
|
|
|
|
func (o *OrchestrationCreditWalletRequest) GetMetadata() map[string]string {
|
|
if o == nil {
|
|
return map[string]string{}
|
|
}
|
|
return o.Metadata
|
|
}
|
|
|
|
func (o *OrchestrationCreditWalletRequest) GetReference() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Reference
|
|
}
|
|
|
|
func (o *OrchestrationCreditWalletRequest) GetSources() []Subject {
|
|
if o == nil {
|
|
return []Subject{}
|
|
}
|
|
return o.Sources
|
|
}
|
|
|
|
func (o *OrchestrationCreditWalletRequest) GetTimestamp() *time.Time {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Timestamp
|
|
}
|