stripity_stripe v2.7.0 Stripe.Issuing.Transaction View Source
Work with Stripe Issuing transaction objects.
You can:
- Retrieve a transaction
- Update a transaction
- List all transactions
Stripe API reference: https://stripe.com/docs/api/issuing/transactions
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Stripe.Issuing.Transaction{
amount: integer(),
authorization: Stripe.id() | Stripe.Issuing.Authorization.t(),
balance_transaction: String.t(),
card: Stripe.id() | Stripe.Issuing.Card.t(),
cardholder: Stripe.id() | Stripe.Issuing.Cardholder.t(),
created: Stripe.timestamp(),
currency: String.t() | nil,
dispute: Stripe.id() | Stripe.Issuing.Dispute.t(),
id: Stripe.id(),
livemode: boolean(),
merchant_data: Stripe.Issuing.Types.merchant_data(),
metadata: Stripe.Types.metadata(),
object: String.t(),
type: String.t()
}
t() :: %Stripe.Issuing.Transaction{ amount: integer(), authorization: Stripe.id() | Stripe.Issuing.Authorization.t(), balance_transaction: String.t(), card: Stripe.id() | Stripe.Issuing.Card.t(), cardholder: Stripe.id() | Stripe.Issuing.Cardholder.t(), created: Stripe.timestamp(), currency: String.t() | nil, dispute: Stripe.id() | Stripe.Issuing.Dispute.t(), id: Stripe.id(), livemode: boolean(), merchant_data: Stripe.Issuing.Types.merchant_data(), metadata: Stripe.Types.metadata(), object: String.t(), type: String.t() }
Link to this section Functions
Link to this function
list(params \\ %{}, opts \\ [])
View Source
list(params \\ %{}, opts \\ [])
View Source
list(params, Stripe.options()) ::
{:ok, Stripe.List.t(t())} | {:error, Stripe.Error.t()}
when params:
%{
optional(:card) => Stripe.Issuing.Card.t() | Stripe.id(),
optional(:cardholder) => Stripe.Issuing.Cardholder.t() | Stripe.id(),
optional(:created) => String.t() | Stripe.date_query(),
optional(:dispute) => Stripe.Issuing.Dispute.t() | Stripe.id(),
optional(:ending_before) => t() | Stripe.id(),
optional(:limit) => 1..100,
optional(:settlement) => String.t(),
optional(:starting_after) => t() | Stripe.id()
}
| %{}
list(params, Stripe.options()) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.Error.t()} when params: %{ optional(:card) => Stripe.Issuing.Card.t() | Stripe.id(), optional(:cardholder) => Stripe.Issuing.Cardholder.t() | Stripe.id(), optional(:created) => String.t() | Stripe.date_query(), optional(:dispute) => Stripe.Issuing.Dispute.t() | Stripe.id(), optional(:ending_before) => t() | Stripe.id(), optional(:limit) => 1..100, optional(:settlement) => String.t(), optional(:starting_after) => t() | Stripe.id() } | %{}
List all transactions.
Link to this function
retrieve(id, opts \\ [])
View Source
retrieve(id, opts \\ [])
View Source
retrieve(Stripe.id() | t(), Stripe.options()) ::
{:ok, t()} | {:error, Stripe.Error.t()}
retrieve(Stripe.id() | t(), Stripe.options()) :: {:ok, t()} | {:error, Stripe.Error.t()}
Retrieve a transaction.
Link to this function
update(id, params, opts \\ [])
View Source
update(id, params, opts \\ [])
View Source
update(Stripe.id() | t(), params, Stripe.options()) ::
{:ok, t()} | {:error, Stripe.Error.t()}
when params: %{optional(:metadata) => Stripe.Types.metadata()} | %{}
update(Stripe.id() | t(), params, Stripe.options()) :: {:ok, t()} | {:error, Stripe.Error.t()} when params: %{optional(:metadata) => Stripe.Types.metadata()} | %{}
Update a transaction.