Stripe.Services.TestHelpers.Treasury.InboundTransferService (tiger_stripe v0.1.10)

Copy Markdown View Source

InboundTransfer API operations.

Summary

Functions

Test mode: Fail an InboundTransfer

Test mode: Succeed an InboundTransfer

Functions

fail(client, id, params \\ %{}, opts \\ [])

@spec fail(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}

Test mode: Fail an InboundTransfer

Transitions a test mode created InboundTransfer to the failed status. The InboundTransfer must already be in the processing state.

return_inbound_transfer(client, id, params \\ %{}, opts \\ [])

@spec return_inbound_transfer(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}

Test mode: Return an 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.

succeed(client, id, params \\ %{}, opts \\ [])

@spec succeed(Stripe.Client.t(), String.t(), map(), keyword()) ::
  {:ok, term()} | {:error, Stripe.Error.t()}

Test mode: Succeed an InboundTransfer

Transitions a test mode created InboundTransfer to the succeeded status. The InboundTransfer must already be in the processing state.