btcpay_client/models/webhook_data_base_authorized_events.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/// WebhookDataBaseAuthorizedEvents : Which event should be received by this endpoint
12
13
14
15#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
16pub struct WebhookDataBaseAuthorizedEvents {
17 /// If true, the endpoint will receive all events related to the store.
18 #[serde(rename = "everything", skip_serializing_if = "Option::is_none")]
19 pub everything: Option<bool>,
20 /// If `everything` is false, the specific events that the endpoint is interested in. Current events are: `InvoiceCreated`, `InvoiceReceivedPayment`, `InvoiceProcessing`, `InvoiceExpired`, `InvoiceSettled`, `InvoiceInvalid`.
21 #[serde(rename = "specificEvents", skip_serializing_if = "Option::is_none")]
22 pub specific_events: Option<Vec<String>>,
23}
24
25impl WebhookDataBaseAuthorizedEvents {
26 /// Which event should be received by this endpoint
27 pub fn new() -> WebhookDataBaseAuthorizedEvents {
28 WebhookDataBaseAuthorizedEvents {
29 everything: None,
30 specific_events: None,
31 }
32 }
33}
34
35