Files
Quentin-David-24 0fec620375 chore: Fix pollingPeriod in openAPI (#623)
* Fix pollingPeriod in openAPI and use default from configs

* Refactor removing quotes in default value

* Improve default copy structure

* Revert tentative of default value for config
2026-01-19 14:33:38 +01:00

79 lines
1.5 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package components
import (
"github.com/formancehq/payments/pkg/client/internal/utils"
)
type V3ModulrConfig struct {
APIKey string `json:"apiKey"`
APISecret string `json:"apiSecret"`
Endpoint string `json:"endpoint"`
Name string `json:"name"`
// Deprecated: From v3.1, this parameter will be ignored.
PageSize *int64 `default:"25" json:"pageSize"`
PollingPeriod *string `default:"30m" json:"pollingPeriod"`
Provider *string `default:"Modulr" json:"provider"`
}
func (v V3ModulrConfig) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(v, "", false)
}
func (v *V3ModulrConfig) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
return err
}
return nil
}
func (o *V3ModulrConfig) GetAPIKey() string {
if o == nil {
return ""
}
return o.APIKey
}
func (o *V3ModulrConfig) GetAPISecret() string {
if o == nil {
return ""
}
return o.APISecret
}
func (o *V3ModulrConfig) GetEndpoint() string {
if o == nil {
return ""
}
return o.Endpoint
}
func (o *V3ModulrConfig) GetName() string {
if o == nil {
return ""
}
return o.Name
}
func (o *V3ModulrConfig) GetPageSize() *int64 {
if o == nil {
return nil
}
return o.PageSize
}
func (o *V3ModulrConfig) GetPollingPeriod() *string {
if o == nil {
return nil
}
return o.PollingPeriod
}
func (o *V3ModulrConfig) GetProvider() *string {
if o == nil {
return nil
}
return o.Provider
}