View Source Stripe.Treasury.DebitReversal (Striped v0.5.0) (generated)
You can reverse some ReceivedDebits depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal.
Link to this section Summary
Functions
Reverses a ReceivedDebit and creates a DebitReversal object.
Returns a list of DebitReversals.
Retrieves a DebitReversal object.
Link to this section Types
@type t() :: %Stripe.Treasury.DebitReversal{ amount: integer(), created: integer(), currency: binary(), financial_account: binary() | nil, hosted_regulatory_receipt_url: binary() | nil, id: binary(), linked_flows: term() | nil, livemode: boolean(), metadata: term(), network: binary(), object: binary(), received_debit: binary(), status: binary(), status_transitions: term(), transaction: (binary() | Stripe.Treasury.Transaction.t()) | nil }
The treasury.debit_reversal type.
amountAmount (in cents) transferred.createdTime 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.financial_accountThe FinancialAccount to reverse funds from.hosted_regulatory_receipt_urlA hosted transaction receipt URL that is provided when money movement is considered regulated under Stripe's money transmission licenses.idUnique identifier for the object.linked_flowsOther flows linked to a DebitReversal.livemodeHas the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.metadataSet of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.networkThe rails used to reverse the funds.objectString representing the object's type. Objects of the same type share the same value.received_debitThe ReceivedDebit being reversed.statusStatus of the DebitReversalstatus_transitionstransactionThe Transaction associated with this object.
Link to this section Functions
@spec create( client :: Stripe.t(), params :: %{ optional(:expand) => [binary()], optional(:metadata) => %{optional(binary()) => binary()}, optional(:received_debit) => binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Reverses a ReceivedDebit and creates a DebitReversal object.
Details
- Method:
post - Path:
/v1/treasury/debit_reversals
@spec list( client :: Stripe.t(), params :: %{ optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:financial_account) => binary(), optional(:limit) => integer(), optional(:received_debit) => binary(), optional(:resolution) => :lost | :won, optional(:starting_after) => binary(), optional(:status) => :canceled | :completed | :processing }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of DebitReversals.
Details
- Method:
get - Path:
/v1/treasury/debit_reversals
@spec retrieve( client :: Stripe.t(), debit_reversal :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Retrieves a DebitReversal object.
Details
- Method:
get - Path:
/v1/treasury/debit_reversals/{debit_reversal}