mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* feat(pools): add dynamic pools creation * fix(pools): fix missing json handling * feat(openapi): add pool type enum
47 lines
774 B
Go
47 lines
774 B
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package components
|
|
|
|
type Pool struct {
|
|
ID string `json:"id"`
|
|
Name string `json:"name"`
|
|
Type PoolTypeEnum `json:"type"`
|
|
Query map[string]any `json:"query,omitempty"`
|
|
Accounts []string `json:"accounts"`
|
|
}
|
|
|
|
func (o *Pool) GetID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *Pool) GetName() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Name
|
|
}
|
|
|
|
func (o *Pool) GetType() PoolTypeEnum {
|
|
if o == nil {
|
|
return PoolTypeEnum("")
|
|
}
|
|
return o.Type
|
|
}
|
|
|
|
func (o *Pool) GetQuery() map[string]any {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Query
|
|
}
|
|
|
|
func (o *Pool) GetAccounts() []string {
|
|
if o == nil {
|
|
return []string{}
|
|
}
|
|
return o.Accounts
|
|
}
|