mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* fix(openapi): make Pool type field optional in v1-2 spec The payments v2 API does not return the type field on Pool responses. Remove type from the required array while keeping the property itself, so the schema matches actual API behavior. * chore: regenerate SDK and update CLAUDE.md * fix: rename .CLAUDE.md to CLAUDE.md
47 lines
772 B
Go
47 lines
772 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,omitempty"`
|
|
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 nil
|
|
}
|
|
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
|
|
}
|