View Source Stripe.Treasury.Transaction (Striped v0.5.0) (generated)
Transactions represent changes to a FinancialAccount's balance.
Link to this section Summary
Functions
Retrieves a list of Transaction objects.
Retrieves the details of an existing Transaction.
Link to this section Types
@type t() :: %Stripe.Treasury.Transaction{ amount: integer(), balance_impact: term(), created: integer(), currency: binary(), description: binary(), entries: term() | nil, financial_account: binary(), flow: binary() | nil, flow_details: term() | nil, flow_type: binary(), id: binary(), livemode: boolean(), object: binary(), status: binary(), status_transitions: term() }
The treasury.transaction type.
amountAmount (in cents) transferred.balance_impactcreatedTime at which the object was created. Measured in seconds since the Unix epoch.currencyThree-letter ISO currency code, in lowercase. Must be a supported currency.descriptionAn arbitrary string attached to the object. Often useful for displaying to users.entriesA list of TransactionEntries that are part of this Transaction. This cannot be expanded in any list endpoints.financial_accountThe FinancialAccount associated with this object.flowID of the flow that created the Transaction.flow_detailsDetails of the flow that created the Transaction.flow_typeType of the flow that created the Transaction.idUnique identifier for the object.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.objectString representing the object's type. Objects of the same type share the same value.statusStatus of the Transaction.status_transitions
Link to this section Functions
@spec list( client :: Stripe.t(), params :: %{ optional(:created) => created() | integer(), optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:financial_account) => binary(), optional(:limit) => integer(), optional(:order_by) => :created | :posted_at, optional(:starting_after) => binary(), optional(:status) => :open | :posted | :void, optional(:status_transitions) => status_transitions() }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves a list of Transaction objects.
Details
- Method:
get - Path:
/v1/treasury/transactions
@spec retrieve( client :: Stripe.t(), id :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves the details of an existing Transaction.
Details
- Method:
get - Path:
/v1/treasury/transactions/{id}