btcpay_client/models/
create_invoice_request_all_of.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 CreateInvoiceRequestAllOf {
16    /// The amount of the invoice. If null or unspecified, the invoice will be a top-up invoice. (ie. The invoice will consider any payment as a full payment)
17    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
18    pub amount: Option<String>,
19    /// The currency of the invoice (if null, empty or unspecified, the currency will be the store's settings default)'
20    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
21    pub currency: Option<String>,
22    /// Additional search term to help you find this invoice via text search
23    #[serde(rename = "additionalSearchTerms", skip_serializing_if = "Option::is_none")]
24    pub additional_search_terms: Option<Vec<String>>,
25}
26
27impl CreateInvoiceRequestAllOf {
28    pub fn new() -> CreateInvoiceRequestAllOf {
29        CreateInvoiceRequestAllOf {
30            amount: None,
31            currency: None,
32            additional_search_terms: None,
33        }
34    }
35}
36
37