| 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 ReaderCollectPaymentMethodParams(RequestOptions): |
| 9 |
collect_config: NotRequired[ |
| 10 |
"ReaderCollectPaymentMethodParamsCollectConfig" |
| 11 |
] |
| 12 |
""" |
| 13 |
Configuration overrides for this collection, such as tipping, surcharging, and customer cancellation settings. |
| 14 |
""" |
| 15 |
expand: NotRequired[List[str]] |
| 16 |
""" |
| 17 |
Specifies which fields in the response should be expanded. |
| 18 |
""" |
| 19 |
payment_intent: str |
| 20 |
""" |
| 21 |
The ID of the PaymentIntent to collect a payment method for. |
| 22 |
""" |
| 23 |
|
| 24 |
|
| 25 |
class ReaderCollectPaymentMethodParamsCollectConfig(TypedDict): |
| 26 |
allow_redisplay: NotRequired[Literal["always", "limited", "unspecified"]] |
| 27 |
""" |
| 28 |
This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. |
| 29 |
""" |
| 30 |
enable_customer_cancellation: NotRequired[bool] |
| 31 |
""" |
| 32 |
Enables cancel button on transaction screens. |
| 33 |
""" |
| 34 |
skip_tipping: NotRequired[bool] |
| 35 |
""" |
| 36 |
Override showing a tipping selection screen on this transaction. |
| 37 |
""" |
| 38 |
tipping: NotRequired[ |
| 39 |
"ReaderCollectPaymentMethodParamsCollectConfigTipping" |
| 40 |
] |
| 41 |
""" |
| 42 |
Tipping configuration for this transaction. |
| 43 |
""" |
| 44 |
|
| 45 |
|
| 46 |
class ReaderCollectPaymentMethodParamsCollectConfigTipping(TypedDict): |
| 47 |
amount_eligible: NotRequired[int] |
| 48 |
""" |
| 49 |
Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). |
| 50 |
""" |