mirror of
https://github.com/hanzo-fi/stack.git
synced 2026-10-30 20:34:43 +00:00
64 lines
1.3 KiB
Go
64 lines
1.3 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). 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
|
|
}
|