Struct plaid::model::InflowModel
source · pub struct InflowModel {
pub income_amount: f64,
pub payment_day_of_month: f64,
pub statement_day_of_month: String,
pub transaction_name: String,
pub type_: String,
}
Expand description
The inflow_model
allows you to model a test account that receives regular income or make regular payments on a loan. Any transactions generated by the inflow_model
will appear in addition to randomly generated test data or transactions specified by override_accounts
.
Fields§
§income_amount: f64
Amount of income per month. This value is required if type
is monthly-income
.
payment_day_of_month: f64
Number between 1 and 28, or last
meaning the last day of the month. The day of the month on which the income transaction will appear. The name of the income transaction. This field is required if type
is monthly-income
, monthly-balance-payment
or monthly-interest-only-payment
.
statement_day_of_month: String
Number between 1 and 28, or last
meaning the last day of the month. The day of the month on which the balance is calculated for the next payment. The name of the income transaction. This field is required if type
is monthly-balance-payment
or monthly-interest-only-payment
.
transaction_name: String
The name of the income transaction. This field is required if type
is monthly-income
, monthly-balance-payment
or monthly-interest-only-payment
.
type_: String
Inflow model. One of the following:
none
: No income
monthly-income
: Income occurs once per month monthly-balance-payment
: Pays off the balance on a liability account at the given statement day of month.
monthly-interest-only-payment
: Makes an interest-only payment on a liability account at the given statement day of month.
Note that account types supported by Liabilities will accrue interest in the Sandbox. The types impacted are account type credit
with subtype credit
or paypal
, and account type loan
with subtype student
or mortgage
.
Trait Implementations§
source§impl Clone for InflowModel
impl Clone for InflowModel
source§fn clone(&self) -> InflowModel
fn clone(&self) -> InflowModel
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more