Files
fgueryandQuentin David 4e393c561e fix(en-613): pools default to static (#631)
* fix: make type non mandatory on pools for retro compatibility

* fix: openapi/sdk generation
2026-01-19 14:35:51 +01:00

71 lines
1.3 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package components
import (
"github.com/formancehq/payments/pkg/client/internal/utils"
"time"
)
type V3Pool struct {
ID string `json:"id"`
Name string `json:"name"`
CreatedAt time.Time `json:"createdAt"`
Type *V3PoolTypeEnum `json:"type,omitempty"`
Query map[string]any `json:"query,omitempty"`
PoolAccounts []string `json:"poolAccounts"`
}
func (v V3Pool) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(v, "", false)
}
func (v *V3Pool) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
return err
}
return nil
}
func (o *V3Pool) GetID() string {
if o == nil {
return ""
}
return o.ID
}
func (o *V3Pool) GetName() string {
if o == nil {
return ""
}
return o.Name
}
func (o *V3Pool) GetCreatedAt() time.Time {
if o == nil {
return time.Time{}
}
return o.CreatedAt
}
func (o *V3Pool) GetType() *V3PoolTypeEnum {
if o == nil {
return nil
}
return o.Type
}
func (o *V3Pool) GetQuery() map[string]any {
if o == nil {
return nil
}
return o.Query
}
func (o *V3Pool) GetPoolAccounts() []string {
if o == nil {
return []string{}
}
return o.PoolAccounts
}