use {
crate::models,
serde::{Deserialize, Serialize},
};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DisbursementOperationInput {
#[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
pub amount: Option<String>,
#[serde(rename = "paymentAccount")]
pub payment_account: models::Account,
#[serde(rename = "instructionSet")]
pub instruction_set: Vec<models::DisbursementInstruction>,
}
impl DisbursementOperationInput {
pub fn new(
payment_account: models::Account,
instruction_set: Vec<models::DisbursementInstruction>,
) -> DisbursementOperationInput {
DisbursementOperationInput {
amount: None,
payment_account,
instruction_set,
}
}
}