Stripe.Issuing.Transaction (stripity_stripe v2.17.3) 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

Functions

List all transactions.

Retrieve a transaction.

Update a transaction.

Link to this section Types

Specs

t() :: %Stripe.Issuing.Transaction{
  amount: integer(),
  authorization: Stripe.id() | Stripe.Issuing.Authorization.t() | nil,
  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,
  id: Stripe.id(),
  livemode: boolean(),
  merchant_amount: integer(),
  merchant_currency: String.t(),
  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

Specs

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(:ending_before) => t() | Stripe.id(),
         optional(:limit) => 1..100,
         optional(:starting_after) => t() | Stripe.id()
       }
       | %{}

List all transactions.

Link to this function

retrieve(id, opts \\ [])

View Source

Specs

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

Specs

update(Stripe.id() | t(), params, Stripe.options()) ::
  {:ok, t()} | {:error, Stripe.Error.t()}
when params: %{optional(:metadata) => Stripe.Types.metadata()} | %{}

Update a transaction.