Merge pull request #199 from thomasf/remove-invalid-events

remove invalid event structs
This commit is contained in:
Alex Pliutau 2021-04-30 08:07:26 +02:00 committed by GitHub
commit 021cc68201
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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"`