From bbd66c6089f89a0324b06d5462a2046e66abd26c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Fr=C3=B6ssman?= Date: Thu, 29 Apr 2021 12:38:34 +0200 Subject: [PATCH] remove invalid event structs --- types.go | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/types.go b/types.go index bf44309..908fefd 100644 --- a/types.go +++ b/types.go @@ -1051,7 +1051,7 @@ type ( EventTypes []WebhookEventType `json:"event_types"` } - // Webhook strunct + // Webhook struct Webhook struct { ID string `json:"id"` URL string `json:"url"` @@ -1059,7 +1059,10 @@ type ( 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 { ID string `json:"id"` CreateTime time.Time `json:"create_time"` @@ -1076,16 +1079,6 @@ type ( Resource json.RawMessage `json:"resource"` } - PaymentPayoutsItemEvent struct { - Event - Resource PayoutItemResponse `json:"resource"` - } - - PaymentPayoutsBatchEvent struct { - Event - Resource PayoutResponse `json:"resource"` - } - // WebhookEventType struct WebhookEventType struct { Name string `json:"name"`