mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 12:04:08 +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:
12
config/initializers/lunchflow.rb
Normal file
12
config/initializers/lunchflow.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
# Lunchflow integration runtime configuration
|
||||
Rails.application.configure do
|
||||
# Controls whether pending transactions are included in Lunchflow syncs
|
||||
# When true, adds include_pending=true to transaction fetch requests
|
||||
# Default: false (only posted/settled transactions)
|
||||
config.x.lunchflow.include_pending = ENV["LUNCHFLOW_INCLUDE_PENDING"].to_s.strip.downcase.in?(%w[1 true yes])
|
||||
|
||||
# Debug logging for raw Lunchflow API responses
|
||||
# When enabled, logs the full raw JSON payload from Lunchflow API
|
||||
# Default: false (only log summary info)
|
||||
config.x.lunchflow.debug_raw = ENV["LUNCHFLOW_DEBUG_RAW"].to_s.strip.downcase.in?(%w[1 true yes])
|
||||
end
|
||||
Reference in New Issue
Block a user