btcpay_client/models/
payment_request_base_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 PaymentRequestBaseData {
16    /// The amount of the payment request
17    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
18    pub amount: Option<String>,
19    /// The title of the payment request
20    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
21    pub title: Option<String>,
22    /// The currency of the payment request. If empty, the store's default currency code will be used.
23    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
24    pub currency: Option<String>,
25    /// The email used in invoices generated by the payment request
26    #[serde(rename = "email", skip_serializing_if = "Option::is_none")]
27    pub email: Option<String>,
28    /// The description of the payment request
29    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
30    pub description: Option<String>,
31    /// The expiry date of the payment request
32    #[serde(rename = "expiryDate", skip_serializing_if = "Option::is_none")]
33    pub expiry_date: Option<f32>,
34    /// Custom CSS styling for the payment request
35    #[serde(rename = "embeddedCSS", skip_serializing_if = "Option::is_none")]
36    pub embedded_css: Option<String>,
37    /// Custom CSS link for styling the payment request
38    #[serde(rename = "customCSSLink", skip_serializing_if = "Option::is_none")]
39    pub custom_css_link: Option<String>,
40    /// Whether to allow users to create invoices that partially pay the payment request 
41    #[serde(rename = "allowCustomPaymentAmounts", skip_serializing_if = "Option::is_none")]
42    pub allow_custom_payment_amounts: Option<bool>,
43}
44
45impl PaymentRequestBaseData {
46    pub fn new() -> PaymentRequestBaseData {
47        PaymentRequestBaseData {
48            amount: None,
49            title: None,
50            currency: None,
51            email: None,
52            description: None,
53            expiry_date: None,
54            embedded_css: None,
55            custom_css_link: None,
56            allow_custom_payment_amounts: None,
57        }
58    }
59}
60
61