# `Stripe.Services.TestHelpers.Treasury.InboundTransferService`
[🔗](https://github.com/jeffhuen/tiger_stripe/blob/main/lib/stripe/services/test_helpers/treasury/inbound_transfer_service.ex#L2)

InboundTransfer API operations.

# `fail`

```elixir
@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`

```elixir
@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`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
