mirror of
https://github.com/we-promise/sure.git
synced 2026-07-19 00:05:23 +00:00
- Add WiseItem/WiseAccount models with full sync pipeline (importer, syncer, processor) - Detect income vs expense using targetAccount == recipientId from borderless accounts API - Support JAR (SAVINGS) accounts with totalWorth balance and savings subtype - Fetch JAR activity via profile activities API (INTERBALANCE, BALANCE_CASHBACK, BALANCE_ASSET_FEE) - Route INTERBALANCE activities to both JAR and STANDARD accounts and link as Transfer records - Add provider connection status registration, routes, views, and i18n - Add migration for wise_items and wise_accounts tables - Add tests for WiseAccount, WiseEntry::Processor, WiseActivity::Processor, WiseItem::Importer, and WiseItem#link_jar_transfers!
7 lines
222 B
Ruby
7 lines
222 B
Ruby
# frozen_string_literal: true
|
|
|
|
Rails.configuration.x.wise.tap do |wise|
|
|
wise.base_url = ENV.fetch("WISE_BASE_URL", "https://api.wise.com")
|
|
wise.include_pending = ENV.fetch("WISE_INCLUDE_PENDING", "true") == "true"
|
|
end
|