Ackara/Plaid.NET

Missing account_subtypes field when creating Link token with account filters

walltechco opened this issue · 3 comments

When using CreateLinkToken with the AccountFilters option of the CreateLinkTokenRequest class, it doesn't appear to properly relay the request to Plaid. It would appear the request is missing the account_subtypes field under the account type object.

For example, to filter to only depository account types with account subtypes of checking, it currently sends a request like:

{
    ...,
    "account_filters": {
        "depository": ["checking"]
    },
    ...
}

The correct structure for the Plaid API would be:

{
    ...,
    "account_filters": {
        "depository": {
            "account_subtypes": ["checking"]
        }
    },
    ...
}

Can a new class (AccountFilterSubTypes) be created with a single property (AccountSubtypes of type List<string>) be added? Then make the AccountFilters property of the CreateLinkTokenRequest class be of type Dictionary<string, AccountFilterSubTypes>.

Plaid Docs

FYI - this has been addressed and fixed in Going.Plaid.

@viceroypenguin Thanks, I tried using that one, but it doesn't appear to work well with .NET Core 3.1, which my project uses. Specifically, it appeared to be using some concepts from C#9, which is not officially supported by .NET Core 3.1.

@walltechco I created an issue (viceroypenguin/Going.Plaid#44) to address issues with .net core 3.1 - I was not aware of anything not working right. If you could add to that issue, I'll take a look and address.