mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 05:25:24 +02:00
feat: Add institution details to Plaid items (#1816)
* feat: Add institution details to Plaid items - Fetch and store institution URL, ID, and primary color for Plaid items - Update PlaidItem model to retrieve and save institution metadata - Add new method in Plaid provider to get institution details - Update account logo view to use institution domain for logo generation * Add institution domain method to Account model - Extract institution domain logic from view to Account model - Simplify logo view by using new institution_domain method - Improve code reusability and separation of concerns
This commit is contained in:
parent
df5f4c83fe
commit
7ba9063e04
7 changed files with 46 additions and 6 deletions
|
@ -143,6 +143,17 @@ class Provider::Plaid
|
|||
response.liabilities
|
||||
end
|
||||
|
||||
def get_institution(institution_id)
|
||||
request = Plaid::InstitutionsGetByIdRequest.new({
|
||||
institution_id: institution_id,
|
||||
country_codes: country_codes,
|
||||
options: {
|
||||
include_optional_metadata: true
|
||||
}
|
||||
})
|
||||
client.institutions_get_by_id(request)
|
||||
end
|
||||
|
||||
private
|
||||
TransactionSyncResponse = Struct.new :added, :modified, :removed, :cursor, keyword_init: true
|
||||
InvestmentsResponse = Struct.new :holdings, :transactions, :securities, keyword_init: true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue