mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
* fix: make type non mandatory on pools for retro compatibility * fix: openapi/sdk generation
71 lines
1.3 KiB
Go
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
|
|
}
|