btcpay_client/models/
create_payout_through_store_request.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 CreatePayoutThroughStoreRequest {
16    /// The destination of the payout (can be an address or a BIP21 url)
17    #[serde(rename = "destination", skip_serializing_if = "Option::is_none")]
18    pub destination: Option<String>,
19    /// The amount of the payout in the currency of the pull payment (eg. USD).
20    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
21    pub amount: Option<String>,
22    /// The payment method of the payout
23    #[serde(rename = "paymentMethod", skip_serializing_if = "Option::is_none")]
24    pub payment_method: Option<String>,
25    /// The pull payment to create this for. Optional.
26    #[serde(rename = "pullPaymentId", skip_serializing_if = "Option::is_none")]
27    pub pull_payment_id: Option<String>,
28    /// Whether to approve this payout automatically upon creation
29    #[serde(rename = "approved", skip_serializing_if = "Option::is_none")]
30    pub approved: Option<bool>,
31}
32
33impl CreatePayoutThroughStoreRequest {
34    pub fn new() -> CreatePayoutThroughStoreRequest {
35        CreatePayoutThroughStoreRequest {
36            destination: None,
37            amount: None,
38            payment_method: None,
39            pull_payment_id: None,
40            approved: None,
41        }
42    }
43}
44
45