Skip to content

Commit

Permalink
Merge pull request #10 from brexhq/jtran/verification_status
Browse files Browse the repository at this point in the history
add `verification status` field
  • Loading branch information
jtran-brex authored May 31, 2022
2 parents ba0cb70 + b763550 commit 58727c0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 4 deletions.
6 changes: 4 additions & 2 deletions lib/plaid/accounts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ defmodule Plaid.Accounts do
mask: nil,
official_name: nil,
type: nil,
subtype: nil
subtype: nil,
verification_status: nil

@type t :: %__MODULE__{
account_id: String.t(),
Expand All @@ -43,7 +44,8 @@ defmodule Plaid.Accounts do
mask: String.t(),
official_name: String.t(),
type: String.t(),
subtype: String.t()
subtype: String.t(),
verification_status: String.t()
}

defmodule Balance do
Expand Down
22 changes: 20 additions & 2 deletions test/support/factory.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ defmodule Plaid.Factory do
"name" => "Plaid Checking",
"official_name" => "Plaid Gold Checking",
"subtype" => "checking",
"type" => "depository"
"type" => "depository",
"verification_status" => nil
},
%{
"account_id" => "6Myq63K1KDSe3lBwp7K1fnEbNGLV4nSxalVdW",
Expand All @@ -32,7 +33,24 @@ defmodule Plaid.Factory do
"name" => "Plaid Credit Card",
"official_name" => "Plaid Diamond Credit Card",
"subtype" => "credit card",
"type" => "credit"
"type" => "credit",
"verification_status" => nil
},
%{
"account_id" => "dhfDuX0N3Yia57IMOGE3m7faUlwvPQLbxs7Oc",
"balances" => %{
"available" => 200,
"current" => 500,
"limit" => 4000,
"iso_currency_code" => "USD",
"unofficial_currency_code" => nil
},
"mask" => "9876",
"name" => "Plaid Platinum Checking",
"official_name" => "Plaid Platinum Checking",
"subtype" => "checking",
"type" => "depository",
"verification_status" => "automatically_verified"
}
],
"item" => %{
Expand Down

0 comments on commit 58727c0

Please sign in to comment.