Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include payment_channel and personal_finance_category in TransactionBase, closes #5 #6

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "plaid"
edition = "2021"
version = "4.0.0"
version = "4.0.1"
description = "Plaid client, generated from the OpenAPI spec."
homepage = "https://github.com/libninjacom/plaid-rs"
documentation = "https://docs.rs/plaid"
Expand Down
7 changes: 7 additions & 0 deletions src/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3069,6 +3069,13 @@ pub struct TransactionBase {
pub transaction_type: Option<String>,
///The ID of a posted transaction's associated pending transaction, where applicable.
pub pending_transaction_id: Option<String>,
// The channel used to make a payment.
pub payment_channel: String,
/** Information describing the intent of the transaction. Most relevant for personal finance use cases, but not limited to such use cases. */
pub personal_finance_category: Option<PersonalFinanceCategory>,
/** An identifier classifying the transaction type.
This field is only populated for European institutions. For institutions in the US and Canada, this field is set to null. */
pub transaction_code: Option<String>,
/**The ID of the category to which this transaction belongs. For a full list of categories, see [`/categories/get`](https://plaid.com/docs/api/products/transactions/#categoriesget).

If the `transactions` object was returned by an Assets endpoint such as `/asset_report/get/` or `/asset_report/pdf/get`, this field will only appear in an Asset Report with Insights.*/
Expand Down