Skip to content

Commit

Permalink
Merge pull request #1182 from stripe/remi-webhook-metadata
Browse files Browse the repository at this point in the history
Add `Metadata` on `WebhookEndpoint`
  • Loading branch information
remi-stripe authored Sep 14, 2020
2 parents 0ab14d7 + 3eb3803 commit d8a596b
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions webhookendpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d8a596b

Please sign in to comment.