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

79 lines
1.4 KiB
Go

// Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
package shared
import (
"github.com/formancehq/formance-sdk-go/v2/pkg/utils"
"time"
)
type WebhooksConfig struct {
Active bool `json:"active"`
CreatedAt time.Time `json:"createdAt"`
Endpoint string `json:"endpoint"`
EventTypes []string `json:"eventTypes"`
ID string `json:"id"`
Secret string `json:"secret"`
UpdatedAt time.Time `json:"updatedAt"`
}
func (w WebhooksConfig) MarshalJSON() ([]byte, error) {
return utils.MarshalJSON(w, "", false)
}
func (w *WebhooksConfig) UnmarshalJSON(data []byte) error {
if err := utils.UnmarshalJSON(data, &w, "", false, false); err != nil {
return err
}
return nil
}
func (o *WebhooksConfig) GetActive() bool {
if o == nil {
return false
}
return o.Active
}
func (o *WebhooksConfig) GetCreatedAt() time.Time {
if o == nil {
return time.Time{}
}
return o.CreatedAt
}
func (o *WebhooksConfig) GetEndpoint() string {
if o == nil {
return ""
}
return o.Endpoint
}
func (o *WebhooksConfig) GetEventTypes() []string {
if o == nil {
return []string{}
}
return o.EventTypes
}
func (o *WebhooksConfig) GetID() string {
if o == nil {
return ""
}
return o.ID
}
func (o *WebhooksConfig) GetSecret() string {
if o == nil {
return ""
}
return o.Secret
}
func (o *WebhooksConfig) GetUpdatedAt() time.Time {
if o == nil {
return time.Time{}
}
return o.UpdatedAt
}