Files
stack/releases/sdks/go/pkg/models/shared/modulrconfig.go
2024-01-19 11:33:42 +00:00

64 lines
1.2 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
)
type ModulrConfig struct {
APIKey string `json:"apiKey"`
APISecret string `json:"apiSecret"`
Endpoint *string `json:"endpoint,omitempty"`
Name string `json:"name"`
// The frequency at which the connector will try to fetch new BalanceTransaction objects from Modulr API.
//
PollingPeriod *string `default:"120s" json:"pollingPeriod"`
}
func (m ModulrConfig) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(m, "", false)
}
func (m *ModulrConfig) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &m, "", false, true); err != nil {
return err
}
return nil
}
func (o *ModulrConfig) GetAPIKey() string {
if o == nil {
return ""
}
return o.APIKey
}
func (o *ModulrConfig) GetAPISecret() string {
if o == nil {
return ""
}
return o.APISecret
}
func (o *ModulrConfig) GetEndpoint() *string {
if o == nil {
return nil
}
return o.Endpoint
}
func (o *ModulrConfig) GetName() string {
if o == nil {
return ""
}
return o.Name
}
func (o *ModulrConfig) GetPollingPeriod() *string {
if o == nil {
return nil
}
return o.PollingPeriod
}