Documentation ¶
Index ¶
- type Client
- func (c *Client) PartiallyUpdateWebhook(webhookID string, request *Request) (*Response, error)
- func (c *Client) RegisterWebhook(request *Request) (*Response, error)
- func (c *Client) RemoveWebhook(webhookID string) (*Response, error)
- func (c *Client) Retrieve() (*Response, error)
- func (c *Client) RetrieveWebhook(webhookID string) (*Response, error)
- func (c *Client) UpdateWebhook(webhookID string, request *Request) (*Response, error)
- type Headers
- type Request
- type Response
- type Webhook
- type WebhookResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
API checkout.HTTPClient
}
Client ...
func (*Client) PartiallyUpdateWebhook ¶
PartiallyUpdateWebhook ...
func (*Client) RegisterWebhook ¶
RegisterWebhook ...
func (*Client) RemoveWebhook ¶
RemoveWebhook ...
func (*Client) RetrieveWebhook ¶
RetrieveWebhook ...
type Headers ¶
type Headers struct {
Authorization string `json:"Authorization,omitempty"`
}
Headers ...
type Response ¶
type Response struct { StatusResponse *checkout.StatusResponse `json:"api_response,omitempty"` ConfiguredWebhooks []WebhookResponse `json:"webhooks,omitempty"` Webhook *WebhookResponse `json:"webhook,omitempty"` }
Response -
type Webhook ¶
type Webhook struct { URL string `json:"url,omitempty"` Active *bool `json:"active,omitempty"` Headers *Headers `json:"headers,omitempty"` ContentType common.WebhookContentType `json:"content_type,omitempty"` EventTypes []string `json:"event_types,omitempty"` }
Webhook ...
type WebhookResponse ¶
type WebhookResponse struct { ID string `json:"id,omitempty"` URL string `json:"url,omitempty"` Active *bool `json:"active,omitempty"` Headers *Headers `json:"headers,omitempty"` ContentType common.WebhookContentType `json:"content_type,omitempty"` EventTypes []string `json:"event_types,omitempty"` Links map[string]common.Link `json:"_links,omitempty"` Version string `json:"version,omitempty"` }
WebhookResponse -
Click to show internal directories.
Click to hide internal directories.