btcpay_client/models/
webhook_invoice_invalid_event.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/// WebhookInvoiceInvalidEvent : Callback sent if the `type` is `InvoiceInvalid`
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct WebhookInvoiceInvalidEvent {
15    /// The delivery id of the webhook
16    #[serde(rename = "deliveryId", skip_serializing_if = "Option::is_none")]
17    pub delivery_id: Option<String>,
18    /// The id of the webhook
19    #[serde(rename = "webhookId", skip_serializing_if = "Option::is_none")]
20    pub webhook_id: Option<String>,
21    /// If this delivery is a redelivery, the is the delivery id of the original delivery.
22    #[serde(rename = "originalDeliveryId", skip_serializing_if = "Option::is_none")]
23    pub original_delivery_id: Option<String>,
24    /// True if this delivery is a redelivery
25    #[serde(rename = "isRedelivery", skip_serializing_if = "Option::is_none")]
26    pub is_redelivery: Option<bool>,
27    /// The type of this event, current available are `InvoiceCreated`, `InvoiceReceivedPayment`, `InvoiceProcessing`, `InvoiceExpired`, `InvoiceSettled`, `InvoiceInvalid`, and `InvoicePaymentSettled`.
28    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
29    pub _type: Option<String>,
30    /// The timestamp when this delivery has been created
31    #[serde(rename = "timestamp", skip_serializing_if = "Option::is_none")]
32    pub timestamp: Option<f32>,
33    /// The store id of the invoice's event
34    #[serde(rename = "storeId", skip_serializing_if = "Option::is_none")]
35    pub store_id: Option<String>,
36    /// The invoice id of the invoice's event
37    #[serde(rename = "invoiceId", skip_serializing_if = "Option::is_none")]
38    pub invoice_id: Option<String>,
39    /// Whether the invoice have been manually marked as confirmed. If false, this invoice has received payments which could not confirm in time.
40    #[serde(rename = "manuallyMarked", skip_serializing_if = "Option::is_none")]
41    pub manually_marked: Option<bool>,
42}
43
44impl WebhookInvoiceInvalidEvent {
45    /// Callback sent if the `type` is `InvoiceInvalid`
46    pub fn new() -> WebhookInvoiceInvalidEvent {
47        WebhookInvoiceInvalidEvent {
48            delivery_id: None,
49            webhook_id: None,
50            original_delivery_id: None,
51            is_redelivery: None,
52            _type: None,
53            timestamp: None,
54            store_id: None,
55            invoice_id: None,
56            manually_marked: None,
57        }
58    }
59}
60
61