Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Metadata on WebhookEndpoint #1182

Merged
merged 1 commit into from
Sep 14, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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