Skip to content

Commit

Permalink
Fix source amount field type (beam-community#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlvenn authored and snewcomer committed Sep 24, 2019
1 parent 5131a67 commit 31aa19b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/stripe/payment_methods/source.ex
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ defmodule Stripe.Source do
ach_credit_transfer: ach_credit_transfer | nil,
ach_debit: ach_debit | nil,
alipay: alipay | nil,
amount: integer | nil,
amount: non_neg_integer | nil,
bancontact: bancontact | nil,
bitcoin: bitcoin | nil,
card: card | nil,
Expand Down Expand Up @@ -240,7 +240,7 @@ defmodule Stripe.Source do
@spec create(params, Keyword.t()) :: {:ok, t} | {:error, Stripe.Error.t()}
when params: %{
:type => String.t(),
optional(:amount) => String.t(),
optional(:amount) => non_neg_integer,
optional(:currency) => String.t(),
optional(:flow) => String.t(),
optional(:mandate) => map,
Expand Down

0 comments on commit 31aa19b

Please sign in to comment.