PaperTiger.Resources.ApplicationFee (PaperTiger v0.9.20)
View SourceHandles Application Fee resource endpoints.
Endpoints
- GET /v1/application_fees/:id - Retrieve application fee
- GET /v1/application_fees - List application fees
Note: Application fees are auto-generated by Stripe and cannot be created, updated, or deleted.
Application Fee Object
%{
id: "fee_...",
object: "application_fee",
created: 1234567890,
amount: 100, # in cents
currency: "usd",
charge: "ch_...",
refunded: false,
amount_refunded: 0,
metadata: %{},
# ... other fields
}
Summary
Functions
@spec list(Plug.Conn.t()) :: Plug.Conn.t()
Lists all application fees with pagination.
Parameters
- limit - Number of items (default: 10, max: 100)
- starting_after - Cursor for pagination
- ending_before - Reverse cursor
- charge - Filter by charge ID
@spec retrieve(Plug.Conn.t(), String.t()) :: Plug.Conn.t()
Retrieves an application fee by ID.