Evaluation
Closed this issue · 0 comments
transactions_to_enrich = [
Plaid::ClientProvidedTransaction.new({
id: "1",
description: "PURCHASE WM SUPERCENTER #1700",
amount: 72.10,
direction: Plaid::EnrichTransactionDirection::OUTFLOW,
location: Plaid::ClientProvidedTransactionLocation.new({
city: "Poway",
region: "CA",
}),
iso_currency_code: "USD",
}),
Plaid::ClientProvidedTransaction.new({
id: "2",
description: "DD DOORDASH BURGERKIN 855-123-4567 CA",
amount: 28.34,
direction: Plaid::EnrichTransactionDirection::OUTFLOW,
iso_currency_code: "USD",
}),
]
transactions_enrich_get_request = Plaid::TransactionsEnrichRequest.new
transactions_enrich_get_request.account_type = "depository"
transactions_enrich_get_request.transactions = transactions_to_enrich
response = client.transactions_enrich(transactions_enrich_get_request)
enriched_transactions = response.enriched_transactions
transactions_to_enrich = [
Plaid::ClientProvidedTransaction.new({
id: "1",
description: "PURCHASE WM SUPERCENTER #1700",
amount: 72.10,
direction: Plaid::EnrichTransactionDirection::OUTFLOW,
location: Plaid::ClientProvidedTransactionLocation.new({
city: "Poway",
region: "CA",
}),
iso_currency_code: "USD",
}),
Plaid::ClientProvidedTransaction.new({
id: "2",
description: "DD DOORDASH BURGERKIN 855-123-4567 CA",
amount: 28.34,
direction: Plaid::EnrichTransactionDirection::OUTFLOW,
iso_currency_code: "USD",
}),
]
transactions_enrich_get_request = Plaid::TransactionsEnrichRequest.new
transactions_enrich_get_request.account_type = "depository"
transactions_enrich_get_request.transactions = transactions_to_enrich
response = client.transactions_enrich(transactions_enrich_get_request)
enriched_transactions = response.enriched_transactions