Files
fgueryandGitHub ac5d44d7aa fix(EN-464): change v1 openapi defaults to be compatible with new pol… (#589)
* fix(EN-464): change v1 openapi defaults to be compatible with new pollingPeriods

* generate sdk
2025-11-13 15:06:43 +00:00

72 lines
1.4 KiB
Go

// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
package components
import (
"github.com/formancehq/payments/pkg/client/internal/utils"
)
type MangoPayConfig struct {
Name string `json:"name"`
Provider *string `default:"Mangopay" json:"provider"`
// The frequency at which the connector will try to fetch new BalanceTransaction objects from MangoPay API.
//
PollingPeriod *string `default:"30m" json:"pollingPeriod"`
ClientID string `json:"clientID"`
APIKey string `json:"apiKey"`
Endpoint string `json:"endpoint"`
}
func (m MangoPayConfig) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(m, "", false)
}
func (m *MangoPayConfig) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &m, "", false, false); err != nil {
return err
}
return nil
}
func (o *MangoPayConfig) GetName() string {
if o == nil {
return ""
}
return o.Name
}
func (o *MangoPayConfig) GetProvider() *string {
if o == nil {
return nil
}
return o.Provider
}
func (o *MangoPayConfig) GetPollingPeriod() *string {
if o == nil {
return nil
}
return o.PollingPeriod
}
func (o *MangoPayConfig) GetClientID() string {
if o == nil {
return ""
}
return o.ClientID
}
func (o *MangoPayConfig) GetAPIKey() string {
if o == nil {
return ""
}
return o.APIKey
}
func (o *MangoPayConfig) GetEndpoint() string {
if o == nil {
return ""
}
return o.Endpoint
}