mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 11:34:13 +00:00
feat: process pending transactions from lunchflow (#731)
* feat(config): add Lunchflow runtime configuration flags * feat(api): add include_pending parameter to Lunchflow API * feat(processor): add pending metadata support to Lunchflow processor * feat(processor): generate temporary IDs for pending transactions * feat(importer): integrate pending transaction support in sync * fix(importer): improve deduplication for transactions without IDs * feat(model): add Lunchflow pending support to Transaction scopes * test: add Lunchflow processor pending metadata tests * docs: update AGENTS.md for Lunchflow pending support * chore: remove unused variable * fix: simplify key check * fix: dotenv-linter key order * fix: avoid collapsing distinct pending transactions * fix: prevent unbounded raw payload growth for blank IDs
This commit is contained in:
@@ -13,6 +13,12 @@ class TransactionTest < ActiveSupport::TestCase
|
||||
assert transaction.pending?
|
||||
end
|
||||
|
||||
test "pending? is true when extra.lunchflow.pending is truthy" do
|
||||
transaction = Transaction.new(extra: { "lunchflow" => { "pending" => true } })
|
||||
|
||||
assert transaction.pending?
|
||||
end
|
||||
|
||||
test "pending? is false when no provider pending metadata is present" do
|
||||
transaction = Transaction.new(extra: { "plaid" => { "pending" => false } })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user