pub struct UpdateWebhookEndpoint { /* private fields */ }Expand description
Updates the webhook endpoint.
You may edit the url, the list of enabled_events, and the status of your endpoint.
Implementations§
Source§impl UpdateWebhookEndpoint
impl UpdateWebhookEndpoint
Sourcepub fn new(webhook_endpoint: impl Into<WebhookEndpointId>) -> Self
pub fn new(webhook_endpoint: impl Into<WebhookEndpointId>) -> Self
Construct a new UpdateWebhookEndpoint.
Sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
An optional description of what the webhook is used for.
Sourcepub fn disabled(self, disabled: impl Into<bool>) -> Self
pub fn disabled(self, disabled: impl Into<bool>) -> Self
Disable the webhook endpoint if set to true.
Sourcepub fn enabled_events(
self,
enabled_events: impl Into<Vec<UpdateWebhookEndpointEnabledEvents>>,
) -> Self
pub fn enabled_events( self, enabled_events: impl Into<Vec<UpdateWebhookEndpointEnabledEvents>>, ) -> Self
The list of events to enable for this endpoint.
You may specify ['*'] to enable all events, except those that require explicit selection.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata.
Source§impl UpdateWebhookEndpoint
impl UpdateWebhookEndpoint
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for UpdateWebhookEndpoint
impl Clone for UpdateWebhookEndpoint
Source§fn clone(&self) -> UpdateWebhookEndpoint
fn clone(&self) -> UpdateWebhookEndpoint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more