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/application_fee_service.ex
# File generated from our OpenAPI spec
defmodule Stripe.Services.ApplicationFeeService do
@moduledoc """
PlatformFee
"""
alias Stripe.Client
@doc """
List all application fees
Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.
"""
@spec list(Client.t(), map(), keyword()) ::
{:ok, term()} | {:error, Stripe.Error.t()}
def list(client, params \\ %{}, opts \\ []) do
Client.request(client, :get, "/v1/application_fees", Keyword.merge(opts, params: params))
end
@doc """
Retrieve an application fee
Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.
"""
@spec retrieve(Client.t(), String.t(), map(), keyword()) ::
{:ok, term()} | {:error, Stripe.Error.t()}
def retrieve(client, id, params \\ %{}, opts \\ []) do
Client.request(
client,
:get,
"/v1/application_fees/#{id}",
Keyword.merge(opts, params: params)
)
end
end