Files
2024-01-19 11:33:42 +00:00

64 lines
1.3 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 AdyenConfig struct {
APIKey string `json:"apiKey"`
HmacKey string `json:"hmacKey"`
LiveEndpointPrefix *string `json:"liveEndpointPrefix,omitempty"`
Name string `json:"name"`
// The frequency at which the connector will try to fetch new BalanceTransaction objects from Adyen API.
//
PollingPeriod *string `default:"120s" json:"pollingPeriod"`
}
func (a AdyenConfig) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(a, "", false)
}
func (a *AdyenConfig) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &a, "", false, true); err != nil {
return err
}
return nil
}
func (o *AdyenConfig) GetAPIKey() string {
if o == nil {
return ""
}
return o.APIKey
}
func (o *AdyenConfig) GetHmacKey() string {
if o == nil {
return ""
}
return o.HmacKey
}
func (o *AdyenConfig) GetLiveEndpointPrefix() *string {
if o == nil {
return nil
}
return o.LiveEndpointPrefix
}
func (o *AdyenConfig) GetName() string {
if o == nil {
return ""
}
return o.Name
}
func (o *AdyenConfig) GetPollingPeriod() *string {
if o == nil {
return nil
}
return o.PollingPeriod
}