| 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 NotRequired, TypedDict |
| 6 |
|
| 7 |
|
| 8 |
class ChargeCaptureParams(RequestOptions): |
| 9 |
amount: NotRequired[int] |
| 10 |
""" |
| 11 |
The amount to capture, which must be less than or equal to the original amount. |
| 12 |
""" |
| 13 |
application_fee: NotRequired[int] |
| 14 |
""" |
| 15 |
An application fee to add on to this charge. |
| 16 |
""" |
| 17 |
application_fee_amount: NotRequired[int] |
| 18 |
""" |
| 19 |
An application fee amount to add on to this charge, which must be less than or equal to the original amount. |
| 20 |
""" |
| 21 |
expand: NotRequired[List[str]] |
| 22 |
""" |
| 23 |
Specifies which fields in the response should be expanded. |
| 24 |
""" |
| 25 |
receipt_email: NotRequired[str] |
| 26 |
""" |
| 27 |
The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode. |
| 28 |
""" |
| 29 |
statement_descriptor: NotRequired[str] |
| 30 |
""" |
| 31 |
For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors). |
| 32 |
|
| 33 |
For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix. |
| 34 |
""" |
| 35 |
statement_descriptor_suffix: NotRequired[str] |
| 36 |
""" |
| 37 |
Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor. |
| 38 |
""" |
| 39 |
transfer_data: NotRequired["ChargeCaptureParamsTransferData"] |
| 40 |
""" |
| 41 |
An optional dictionary including the account to automatically transfer to as part of a destination charge. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details. |
| 42 |
""" |
| 43 |
transfer_group: NotRequired[str] |
| 44 |
""" |
| 45 |
A string that identifies this transaction as part of a group. `transfer_group` may only be provided if it has not been set. See the [Connect documentation](https://docs.stripe.com/connect/separate-charges-and-transfers#transfer-options) for details. |
| 46 |
""" |
| 47 |
|
| 48 |
|
| 49 |
class ChargeCaptureParamsTransferData(TypedDict): |
| 50 |
amount: NotRequired[int] |
| 51 |
""" |
| 52 |
The amount transferred to the destination account, if specified. By default, the entire charge amount is transferred to the destination account. |
| 53 |
""" |