View Source Stripe.Treasury.InboundTransfer (Striped v0.5.0) (generated)
Use InboundTransfers to add funds to your FinancialAccount via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit.
Link to this section Summary
Functions
Cancels an InboundTransfer.
Creates an InboundTransfer.
Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
Returns a list of InboundTransfers sent from the specified FinancialAccount.
Retrieves the details of an existing InboundTransfer.
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
Link to this section Types
@type failure_details() :: %{
optional(:code) =>
:account_closed
| :account_frozen
| :bank_account_restricted
| :bank_ownership_changed
| :debit_not_authorized
| :incorrect_account_holder_address
| :incorrect_account_holder_name
| :incorrect_account_holder_tax_id
| :insufficient_funds
| :invalid_account_number
| :invalid_currency
| :no_account
| :other
}
Details about a failed InboundTransfer.
@type t() :: %Stripe.Treasury.InboundTransfer{ amount: integer(), cancelable: boolean(), created: integer(), currency: binary(), description: binary() | nil, failure_details: term() | nil, financial_account: binary(), hosted_regulatory_receipt_url: binary() | nil, id: binary(), linked_flows: term(), livemode: boolean(), metadata: term(), object: binary(), origin_payment_method: binary(), origin_payment_method_details: term() | nil, returned: boolean() | nil, statement_descriptor: binary(), status: binary(), status_transitions: term(), transaction: (binary() | Stripe.Treasury.Transaction.t()) | nil }
The treasury.inbound_transfer type.
amountAmount (in cents) transferred.cancelableReturnstrueif the InboundTransfer is able to be canceled.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.descriptionAn arbitrary string attached to the object. Often useful for displaying to users.failure_detailsDetails about this InboundTransfer's failure. Only set when status isfailed.financial_accountThe FinancialAccount that received the funds.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_flowslivemodeHas 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.objectString representing the object's type. Objects of the same type share the same value.origin_payment_methodThe origin payment method to be debited for an InboundTransfer.origin_payment_method_detailsDetails about the PaymentMethod for an InboundTransfer.returnedReturnstrueif the funds for an InboundTransfer were returned after the InboundTransfer went to thesucceededstate.statement_descriptorStatement descriptor shown when funds are debited from the source. Not all payment networks supportstatement_descriptor.statusStatus of the InboundTransfer:processing,succeeded,failed, andcanceled. An InboundTransfer isprocessingif it is created and pending. The status changes tosucceededonce the funds have been "confirmed" and atransactionis created and posted. The status changes tofailedif the transfer fails.status_transitionstransactionThe Transaction associated with this object.
Link to this section Functions
@spec cancel( client :: Stripe.t(), inbound_transfer :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Cancels an InboundTransfer.
Details
- Method:
post - Path:
/v1/treasury/inbound_transfers/{inbound_transfer}/cancel
@spec create( client :: Stripe.t(), params :: %{ optional(:amount) => integer(), optional(:currency) => binary(), optional(:description) => binary(), optional(:expand) => [binary()], optional(:financial_account) => binary(), optional(:metadata) => %{optional(binary()) => binary()}, optional(:origin_payment_method) => binary(), optional(:statement_descriptor) => binary() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Creates an InboundTransfer.
Details
- Method:
post - Path:
/v1/treasury/inbound_transfers
@spec fail( client :: Stripe.t(), id :: binary(), params :: %{ optional(:expand) => [binary()], optional(:failure_details) => failure_details() }, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.
Details
- Method:
post - Path:
/v1/test_helpers/treasury/inbound_transfers/{id}/fail
@spec list( client :: Stripe.t(), params :: %{ optional(:ending_before) => binary(), optional(:expand) => [binary()], optional(:financial_account) => binary(), optional(:limit) => integer(), optional(:starting_after) => binary(), optional(:status) => :canceled | :failed | :processing | :succeeded }, opts :: Keyword.t() ) :: {:ok, Stripe.List.t(t())} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Returns a list of InboundTransfers sent from the specified FinancialAccount.
Details
- Method:
get - Path:
/v1/treasury/inbound_transfers
@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 InboundTransfer.
Details
- Method:
get - Path:
/v1/treasury/inbound_transfers/{id}
@spec return_inbound_transfer( client :: Stripe.t(), id :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the succeeded state.
Details
- Method:
post - Path:
/v1/test_helpers/treasury/inbound_transfers/{id}/return
@spec succeed( client :: Stripe.t(), id :: binary(), params :: %{optional(:expand) => [binary()]}, opts :: Keyword.t() ) :: {:ok, t()} | {:error, Stripe.ApiErrors.t()} | {:error, term()}
Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.
Details
- Method:
post - Path:
/v1/test_helpers/treasury/inbound_transfers/{id}/succeed