mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
16 lines
328 B
Ruby
16 lines
328 B
Ruby
|
module Account::Transaction::Provided
|
||
|
extend ActiveSupport::Concern
|
||
|
|
||
|
def fetch_enrichment_info
|
||
|
return nil unless Providers.synth # Only Synth can provide this data
|
||
|
|
||
|
response = Providers.synth.enrich_transaction(
|
||
|
entry.name,
|
||
|
amount: entry.amount,
|
||
|
date: entry.date
|
||
|
)
|
||
|
|
||
|
response.data
|
||
|
end
|
||
|
end
|