Skip to content

Latest commit

 

History

History
118 lines (82 loc) · 3.25 KB

File metadata and controls

118 lines (82 loc) · 3.25 KB

update

Test mode: Update an OutboundTransfer

Updates a test mode created OutboundTransfer with tracking details. The OutboundTransfer must not be cancelable, and cannot be in the canceled or failed states.

API Endpoint: POST /v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.test_helper.treasury.outbound_transfer.update(
    outbound_transfer="string", tracking_details={"type_": "ach"}
)

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.test_helper.treasury.outbound_transfer.update(
    outbound_transfer="string", tracking_details={"type_": "ach"}
)

fail

Test mode: Fail an OutboundTransfer

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

API Endpoint: POST /v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/fail

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.test_helper.treasury.outbound_transfer.fail(outbound_transfer="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.test_helper.treasury.outbound_transfer.fail(
    outbound_transfer="string"
)

post

Test mode: Post an OutboundTransfer

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

API Endpoint: POST /v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/post

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.test_helper.treasury.outbound_transfer.post(outbound_transfer="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.test_helper.treasury.outbound_transfer.post(
    outbound_transfer="string"
)

returned

Test mode: Return an OutboundTransfer

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

API Endpoint: POST /v1/test_helpers/treasury/outbound_transfers/{outbound_transfer}/return

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.test_helper.treasury.outbound_transfer.returned(outbound_transfer="string")

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.test_helper.treasury.outbound_transfer.returned(
    outbound_transfer="string"
)