Skip to content

Commit

Permalink
convert a few payout lines to appropriate types
Browse files Browse the repository at this point in the history
  • Loading branch information
snewcomer committed Apr 23, 2018
1 parent 25f499f commit bd36733
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions lib/stripe/core_resources/payout.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ defmodule Stripe.Payout do
created: Stripe.timestamp(),
currency: String.t(),
description: String.t() | nil,
destination: Stripe.id() | Stripe.Card.t() | Stripe.BankAccount.t() | nil,
destination: Stripe.id() | Stripe.Card.t() | Stripe.BankAccount.t() | String.t() | nil,
failure_balance_transaction: Stripe.id() | Stripe.BalanceTransaction.t() | nil,
failure_code: String.t() | nil,
failure_message: String.t() | nil,
Expand Down Expand Up @@ -70,10 +70,7 @@ defmodule Stripe.Payout do
:amount => pos_integer,
:currency => String.t(),
optional(:description) => String.t(),
optional(:destination) => %{
:account => Stripe.id() | Stripe.Account.t(),
optional(:amount) => non_neg_integer
},
optional(:destination) => Stripe.id() | Stripe.Card.t() | Stripe.BankAccount.t() | String.t(),
optional(:metadata) => Stripe.Types.metadata(),
optional(:method) => String.t(),
optional(:source_type) => String.t(),
Expand Down

0 comments on commit bd36733

Please sign in to comment.