From 63cee8bd9fd69d62e29d2405b81a07c072b133f1 Mon Sep 17 00:00:00 2001 From: Karl Reid Date: Tue, 9 Oct 2018 17:06:08 +0100 Subject: [PATCH] Add support for the `delivery_success` param on the list event endpoint --- event.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/event.go b/event.go index c76d47cc82..b8a90e1743 100644 --- a/event.go +++ b/event.go @@ -53,11 +53,12 @@ type EventList struct { // EventListParams is the set of parameters that can be used when listing events. // For more details see https://stripe.com/docs/api#list_events. type EventListParams struct { - ListParams `form:"*"` - Created *int64 `form:"created"` - CreatedRange *RangeQueryParams `form:"created"` - Type *string `form:"type"` - Types []*string `form:"types"` + ListParams `form:"*"` + Created *int64 `form:"created"` + CreatedRange *RangeQueryParams `form:"created"` + DeliverySuccess *bool `form:"delivery_success"` + Type *string `form:"type"` + Types []*string `form:"types"` } // GetObjectValue returns the value from the e.Data.Object bag based on the keys hierarchy.