Files
Brieuc CaillotandGitHub 09eec9a548 fix(openapi): make Pool type field optional in v1-2 spec (#669)
* 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
2026-03-04 11:14:30 +00:00

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
}