remove invalid event structs

This commit is contained in:
Thomas Frössman 2021-04-29 12:38:34 +02:00
parent 41099f6b6e
commit bbd66c6089

View File

@ -1051,7 +1051,7 @@ type (
EventTypes []WebhookEventType `json:"event_types"` EventTypes []WebhookEventType `json:"event_types"`
} }
// Webhook strunct // Webhook struct
Webhook struct { Webhook struct {
ID string `json:"id"` ID string `json:"id"`
URL string `json:"url"` URL string `json:"url"`
@ -1059,7 +1059,10 @@ type (
Links []Link `json:"links"` Links []Link `json:"links"`
} }
// Event struct // Event struct.
//
// The basic webhook event data type. This struct is intended to be
// embedded into resource type specific event structs.
Event struct { Event struct {
ID string `json:"id"` ID string `json:"id"`
CreateTime time.Time `json:"create_time"` CreateTime time.Time `json:"create_time"`
@ -1076,16 +1079,6 @@ type (
Resource json.RawMessage `json:"resource"` Resource json.RawMessage `json:"resource"`
} }
PaymentPayoutsItemEvent struct {
Event
Resource PayoutItemResponse `json:"resource"`
}
PaymentPayoutsBatchEvent struct {
Event
Resource PayoutResponse `json:"resource"`
}
// WebhookEventType struct // WebhookEventType struct
WebhookEventType struct { WebhookEventType struct {
Name string `json:"name"` Name string `json:"name"`