Packages
Complete Stripe SDK for Elixir with parity to the official Ruby SDK. V1+V2 coverage (193 services, 320 resource structs, 525 documented params). Per-event modules, Finch HTTP/2, RustyJSON, automatic retries, OAuth, webhooks, telemetry, per-client config, streaming pagination.
Current section
Files
Jump to
Current section
Files
lib/stripe/services/source_transaction_service.ex
# File generated from our OpenAPI spec
defmodule Stripe.Services.SourceTransactionService do
@moduledoc """
SourceTransaction
Some payment methods have no required amount that a customer must send.
Customers can be instructed to send any amount, and it can be made up of
multiple transactions. As such, sources can have multiple associated
transactions.
"""
alias Stripe.Client
@doc """
List source transactions for a given source.
"""
@spec source_transactions(Client.t(), String.t(), map(), keyword()) ::
{:ok, term()} | {:error, Stripe.Error.t()}
def source_transactions(client, source, params \\ %{}, opts \\ []) do
Client.request(
client,
:get,
"/v1/sources/#{source}/source_transactions",
Keyword.merge(opts, params: params)
)
end
end