Skip to content

Commit

Permalink
Format Transfer and TransferReversal
Browse files Browse the repository at this point in the history
  • Loading branch information
joshsmith committed Nov 22, 2017
1 parent 9699202 commit f610ef7
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 30 deletions.
38 changes: 18 additions & 20 deletions lib/stripe/connect/transfer.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,24 @@ defmodule Stripe.Transfer do
use Stripe.Entity

@type t :: %__MODULE__{
id: Stripe.id,
object: String.t,
amount: integer,
amount_reversed: integer,
balance_transaction: Stripe.id | Stripe.BalanceTransaction.t,
created: Stripe.timestamp,
currency: String.t,
description: String.t,
destination: Stripe.id | Stripe.Account.t,
destination_payment: String.t,
livemode: boolean,
metadata: %{
optional(String.t) => String.t
},
reversals: Stripe.List.of(Stripe.Reversal.t),
reversed: boolean,
source_transaction: Stripe.id | Stripe.Charge.t,
source_type: String.t,
transfer_group: String.t,
}
id: Stripe.id(),
object: String.t(),
amount: integer,
amount_reversed: integer,
balance_transaction: Stripe.id() | Stripe.BalanceTransaction.t(),
created: Stripe.timestamp(),
currency: String.t(),
description: String.t(),
destination: Stripe.id() | Stripe.Account.t(),
destination_payment: String.t(),
livemode: boolean,
metadata: Stripe.Types.metadata(),
reversals: Stripe.List.of(Stripe.Reversal.t()),
reversed: boolean,
source_transaction: Stripe.id() | Stripe.Charge.t(),
source_type: String.t(),
transfer_group: String.t()
}

defstruct [
:id,
Expand Down
20 changes: 10 additions & 10 deletions lib/stripe/connect/transfer_reversal.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ defmodule Stripe.TransferReversal do
use Stripe.Entity

@type t :: %__MODULE__{
id: Stripe.id,
object: String.t,
amount: integer,
balance_transaction: String.t | Stripe.BalanceTransaction.t,
created: Stripe.timestamp,
currency: String.t,
description: boolean,
metadata: Stripe.Types.metadata,
transfer: String.id | Stripe.Transfer.t
}
id: Stripe.id(),
object: String.t(),
amount: integer,
balance_transaction: String.t() | Stripe.BalanceTransaction.t(),
created: Stripe.timestamp(),
currency: String.t(),
description: boolean,
metadata: Stripe.Types.metadata(),
transfer: String.id() | Stripe.Transfer.t()
}

defstruct [
:id,
Expand Down

0 comments on commit f610ef7

Please sign in to comment.