mirror of
https://github.com/hanzo-fi/payments.git
synced 2026-10-30 20:31:20 +00:00
95 lines
1.9 KiB
Go
95 lines
1.9 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package components
|
|
|
|
import (
|
|
"github.com/formancehq/payments/pkg/client/internal/utils"
|
|
)
|
|
|
|
type V3AdyenConfig struct {
|
|
APIKey string `json:"apiKey"`
|
|
CompanyID string `json:"companyID"`
|
|
LiveEndpointPrefix *string `json:"liveEndpointPrefix,omitempty"`
|
|
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:"Adyen" json:"provider"`
|
|
WebhookPassword *string `json:"webhookPassword,omitempty"`
|
|
WebhookUsername *string `json:"webhookUsername,omitempty"`
|
|
}
|
|
|
|
func (v V3AdyenConfig) MarshalJSON() ([]byte, error) {
|
|
return utils.MarshalJSON(v, "", false)
|
|
}
|
|
|
|
func (v *V3AdyenConfig) UnmarshalJSON(data []byte) error {
|
|
if err := utils.UnmarshalJSON(data, &v, "", false, false); err != nil {
|
|
return err
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetAPIKey() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.APIKey
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetCompanyID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.CompanyID
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetLiveEndpointPrefix() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.LiveEndpointPrefix
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetName() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Name
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetPageSize() *int64 {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.PageSize
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetPollingPeriod() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.PollingPeriod
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetProvider() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.Provider
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetWebhookPassword() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.WebhookPassword
|
|
}
|
|
|
|
func (o *V3AdyenConfig) GetWebhookUsername() *string {
|
|
if o == nil {
|
|
return nil
|
|
}
|
|
return o.WebhookUsername
|
|
}
|