Debian Codegraph @

stripe/params/test_helpers/treasury/_inbound_transfer_fail_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class InboundTransferFailParams(TypedDict):
8 expand: NotRequired[List[str]]
9 """
10 Specifies which fields in the response should be expanded.
11 """
12 failure_details: NotRequired["InboundTransferFailParamsFailureDetails"]
13 """
14 Details about a failed InboundTransfer.
15 """
16
17
18 class InboundTransferFailParamsFailureDetails(TypedDict):
19 code: NotRequired[
20 Literal[
21 "account_closed",
22 "account_frozen",
23 "bank_account_restricted",
24 "bank_ownership_changed",
25 "debit_not_authorized",
26 "incorrect_account_holder_address",
27 "incorrect_account_holder_name",
28 "incorrect_account_holder_tax_id",
29 "insufficient_funds",
30 "invalid_account_number",
31 "invalid_currency",
32 "no_account",
33 "other",
34 ]
35 ]
36 """
37 Reason for the failure.
38 """