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
38
39
40
41
42
43
44
45
/*
* 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 LnurlPayPaymentMethodData {
/// Whether the payment method is enabled. Note that this can only enabled when a Lightning Network payment method is available and enabled
#[serde(rename = "enabled", skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
/// Crypto code of the payment method
#[serde(rename = "cryptoCode", skip_serializing_if = "Option::is_none")]
pub crypto_code: Option<String>,
/// Whether to use [LUD-01](https://github.com/fiatjaf/lnurl-rfc/blob/luds/01.md)'s bech32 format or to use [LUD-17](https://github.com/fiatjaf/lnurl-rfc/blob/luds/17.md) url formatting.
#[serde(rename = "useBech32Scheme", skip_serializing_if = "Option::is_none")]
pub use_bech32_scheme: Option<bool>,
/// Whether to allow this payment method to also be used for standard invoices and not just topup invoices.
#[serde(rename = "enableForStandardInvoices", skip_serializing_if = "Option::is_none")]
pub enable_for_standard_invoices: Option<bool>,
/// Allow comments to be passed on via lnurl.
#[serde(rename = "lud12Enabled", skip_serializing_if = "Option::is_none")]
pub lud12_enabled: Option<bool>,
}
impl LnurlPayPaymentMethodData {
pub fn new() -> LnurlPayPaymentMethodData {
LnurlPayPaymentMethodData {
enabled: None,
crypto_code: None,
use_bech32_scheme: None,
enable_for_standard_invoices: None,
lud12_enabled: None,
}
}
}