mirror of
https://github.com/plutov/paypal.git
synced 2025-01-23 10:21:03 +01:00
Merge pull request #199 from thomasf/remove-invalid-events
remove invalid event structs
This commit is contained in:
commit
021cc68201
17
types.go
17
types.go
|
@ -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"`
|
||||||
|
|
Loading…
Reference in New Issue
Block a user