Struct plaid::model::ClientProvidedTransaction
source · pub struct ClientProvidedTransaction {
pub account_subtype: Option<String>,
pub account_type: Option<String>,
pub amount: f64,
pub client_account_id: Option<String>,
pub client_user_id: Option<String>,
pub date_posted: Option<NaiveDate>,
pub description: String,
pub direction: String,
pub id: String,
pub iso_currency_code: String,
pub location: Option<ClientProvidedTransactionLocation>,
pub mcc: Option<String>,
}
Expand description
A client-provided transaction for Plaid to enrich.
Fields§
§account_subtype: Option<String>
The account subtype associated with the transaction. For a full list of valid types and subtypes, see the Account schema.
account_type: Option<String>
The account type associated with the transaction. For a full list of valid types and subtypes, see the Account schema.
amount: f64
The absolute value of the transaction (>= 0). When testing Enrich, note that amount
data should be realistic. Unrealistic or inaccurate amount
data may result in reduced quality output.
client_account_id: Option<String>
A unique account id used to group transactions for a given account, as a unique identifier from your application. Personally identifiable information, such as an email address or phone number, should not be used in the client_account_id.
client_user_id: Option<String>
A unique user id used to group transactions for a given user, as a unique identifier from your application. Personally identifiable information, such as an email address or phone number, should not be used in the client_user_id.
date_posted: Option<NaiveDate>
The date the transaction posted, in ISO 8601 (YYYY-MM-DD) format.
description: String
The raw description of the transaction. If you have location data in available an unstructured format, it may be appended to the description
field.
direction: String
The direction of the transaction from the perspective of the account holder:
OUTFLOW
- Includes outgoing transfers, purchases, and fees. (Typically represented as a negative value on checking accounts and debit cards and a positive value on credit cards.)
INFLOW
- Includes incoming transfers, refunds, and income. (Typically represented as a positive value on checking accounts and debit cards and a negative value on credit cards.)
id: String
A unique ID for the transaction used to help you tie data back to your systems.
iso_currency_code: String
The ISO-4217 currency code of the transaction e.g. USD.
location: Option<ClientProvidedTransactionLocation>
A representation of where a transaction took place.
Use this field to pass in structured location information you may have about your transactions. Providing location data is optional but can increase result quality. If you have unstructured location information, it may be appended to the description
field.
mcc: Option<String>
Merchant category codes (MCCs) are four-digit numbers that describe a merchant’s primary business activities.
Trait Implementations§
source§impl Clone for ClientProvidedTransaction
impl Clone for ClientProvidedTransaction
source§fn clone(&self) -> ClientProvidedTransaction
fn clone(&self) -> ClientProvidedTransaction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more