use serde::{Serialize, Deserialize};
///Configuration parameters for the Transactions product
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct LinkTokenTransactions {
/**The maximum number of days of transaction history to request for the Transactions product. The more transaction history is requested, the longer the historical update poll will take. The default value is 90 days. If a value under 30 is provided, a minimum of 30 days of history will be requested. Once Transactions has been added to an Item, this value cannot be updated.
Customers using [Recurring Transactions](https://plaid.com/docs/api/products/transactions/#transactionsrecurringget) should request at least 180 days of history for optimal results.*/
#[serde(default, skip_serializing_if = "Option::is_none")]
pub days_requested: Option<i64>,
}
impl std::fmt::Display for LinkTokenTransactions {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "{}", serde_json::to_string(self).unwrap())
}
}