Debian Codegraph @

stripe/params/treasury/_inbound_transfer_fail_params.py

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