From 3eb3803cf074435d79ed6bffa3c655788f8840d2 Mon Sep 17 00:00:00 2001 From: Remi Jannel Date: Mon, 14 Sep 2020 15:52:17 -0700 Subject: [PATCH] Add `Metadata` on `WebhookEndpoint` --- webhookendpoint.go | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/webhookendpoint.go b/webhookendpoint.go index cf197e9482..9674ab908d 100644 --- a/webhookendpoint.go +++ b/webhookendpoint.go @@ -29,19 +29,20 @@ type WebhookEndpointListParams struct { // For more details see https://stripe.com/docs/api#webhook_endpoints. type WebhookEndpoint struct { APIResource - APIVersion string `json:"api_version"` - Application string `json:"application"` - Connect bool `json:"connect"` - Created int64 `json:"created"` - Deleted bool `json:"deleted"` - Description string `json:"description"` - EnabledEvents []string `json:"enabled_events"` - ID string `json:"id"` - Livemode bool `json:"livemode"` - Object string `json:"object"` - Secret string `json:"secret"` - Status string `json:"status"` - URL string `json:"url"` + APIVersion string `json:"api_version"` + Application string `json:"application"` + Connect bool `json:"connect"` + Created int64 `json:"created"` + Deleted bool `json:"deleted"` + Description string `json:"description"` + EnabledEvents []string `json:"enabled_events"` + ID string `json:"id"` + Livemode bool `json:"livemode"` + Metadata map[string]string `json:"metadata"` + Object string `json:"object"` + Secret string `json:"secret"` + Status string `json:"status"` + URL string `json:"url"` } // WebhookEndpointList is a list of webhook endpoints as retrieved from a list endpoint.