Provider optimisation (#375)

* Implement a provider configured account type

* Fix for SimpleFIN

* FIX tests and linter
This commit is contained in:
soky srm
2025-11-24 19:52:34 +01:00
committed by GitHub
parent 4cd575fa23
commit 226207e2f7
27 changed files with 275 additions and 111 deletions

View File

@@ -66,9 +66,13 @@ module AccountableResource
private
def set_link_options
@show_us_link = Current.family.can_connect_plaid_us?
@show_eu_link = Current.family.can_connect_plaid_eu?
@show_lunchflow_link = Current.family.can_connect_lunchflow?
account_type_name = accountable_type.name
# Get all available provider configs dynamically for this account type
@provider_configs = Provider::Factory.connection_configs_for_account_type(
account_type: account_type_name,
family: Current.family
)
end
def accountable_type