1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* BTCPay Greenfield API
*
* A full API to use your BTCPay Server
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct ReceiptOptions {
/// A public page will be accessible once the invoice is settled. If null or unspecified, it will fallback to the store's settings. (The default store settings is true)
#[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// Show the QR code of the receipt in the public receipt page. If null or unspecified, it will fallback to the store's settings. (The default store setting is true)
#[serde(rename = "showQR", skip_serializing_if = "Option::is_none")]
pub show_qr: Option<bool>,
/// Show the payment list in the public receipt page. If null or unspecified, it will fallback to the store's settings. (The default store setting is true)
#[serde(rename = "showPayments", skip_serializing_if = "Option::is_none")]
pub show_payments: Option<bool>,
}
impl ReceiptOptions {
pub fn new() -> ReceiptOptions {
ReceiptOptions {
enabled: None,
show_qr: None,
show_payments: None,
}
}
}