btcpay_client/models/
pull_payment_data.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 PullPaymentData {
16    /// Id of the pull payment
17    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
18    pub id: Option<String>,
19    /// Name given to pull payment when it was created
20    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
21    pub name: Option<String>,
22    /// Description given to pull payment when it was created
23    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
24    pub description: Option<String>,
25    /// The currency of the pull payment's amount
26    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
27    pub currency: Option<String>,
28    /// The amount in the currency of this pull payment as a decimal string
29    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
30    pub amount: Option<String>,
31    /// The length of each period in seconds
32    #[serde(rename = "period", skip_serializing_if = "Option::is_none")]
33    pub period: Option<i32>,
34    /// If lightning is activated, do not accept BOLT11 invoices with expiration less than … days
35    #[serde(rename = "BOLT11Expiration", skip_serializing_if = "Option::is_none")]
36    pub bolt11_expiration: Option<String>,
37    /// Any payouts created for this pull payment will skip the approval phase upon creation
38    #[serde(rename = "autoApproveClaims", skip_serializing_if = "Option::is_none")]
39    pub auto_approve_claims: Option<bool>,
40    /// Whether this pull payment is archived
41    #[serde(rename = "archived", skip_serializing_if = "Option::is_none")]
42    pub archived: Option<bool>,
43    /// The link to a page to claim payouts to this pull payment
44    #[serde(rename = "viewLink", skip_serializing_if = "Option::is_none")]
45    pub view_link: Option<String>,
46}
47
48impl PullPaymentData {
49    pub fn new() -> PullPaymentData {
50        PullPaymentData {
51            id: None,
52            name: None,
53            description: None,
54            currency: None,
55            amount: None,
56            period: None,
57            bolt11_expiration: None,
58            auto_approve_claims: None,
59            archived: None,
60            view_link: None,
61        }
62    }
63}
64
65