btcpay_client/models/
webhook_data_base.rs

1/*
2 * BTCPay Greenfield API
3 *
4 * A full API to use your BTCPay Server
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct WebhookDataBase {
16    /// The id of the webhook
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// Whether this webhook is enabled or not
20    #[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
21    pub enabled: Option<bool>,
22    /// If true, BTCPay Server will retry to redeliver any failed delivery after 10 seconds, 1 minutes and up to 6 times after 10 minutes.
23    #[serde(rename = "automaticRedelivery", skip_serializing_if = "Option::is_none")]
24    pub automatic_redelivery: Option<bool>,
25    /// The endpoint where BTCPay Server will make the POST request with the webhook body
26    #[serde(rename = "url", skip_serializing_if = "Option::is_none")]
27    pub url: Option<String>,
28    #[serde(rename = "authorizedEvents", skip_serializing_if = "Option::is_none")]
29    pub authorized_events: Option<Box<crate::models::WebhookDataBaseAuthorizedEvents>>,
30}
31
32impl WebhookDataBase {
33    pub fn new() -> WebhookDataBase {
34        WebhookDataBase {
35            id: None,
36            enabled: None,
37            automatic_redelivery: None,
38            url: None,
39            authorized_events: None,
40        }
41    }
42}
43
44