mirror of
https://github.com/hanzo-fi/webhooks.git
synced 2026-10-30 20:32:55 +00:00
79 lines
1.4 KiB
Go
79 lines
1.4 KiB
Go
// Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
|
|
package components
|
|
|
|
import (
|
|
"github.com/hanzo-fi/webhooks/pkg/client/internal/utils"
|
|
"time"
|
|
)
|
|
|
|
type WebhooksConfig struct {
|
|
ID string `json:"id"`
|
|
Endpoint string `json:"endpoint"`
|
|
Secret string `json:"secret"`
|
|
EventTypes []string `json:"eventTypes"`
|
|
Active bool `json:"active"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
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) GetID() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.ID
|
|
}
|
|
|
|
func (o *WebhooksConfig) GetEndpoint() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Endpoint
|
|
}
|
|
|
|
func (o *WebhooksConfig) GetSecret() string {
|
|
if o == nil {
|
|
return ""
|
|
}
|
|
return o.Secret
|
|
}
|
|
|
|
func (o *WebhooksConfig) GetEventTypes() []string {
|
|
if o == nil {
|
|
return []string{}
|
|
}
|
|
return o.EventTypes
|
|
}
|
|
|
|
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) GetUpdatedAt() time.Time {
|
|
if o == nil {
|
|
return time.Time{}
|
|
}
|
|
return o.UpdatedAt
|
|
}
|