| 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 ReaderProcessPaymentIntentParams(RequestOptions): |
| 9 |
expand: NotRequired[List[str]] |
| 10 |
""" |
| 11 |
Specifies which fields in the response should be expanded. |
| 12 |
""" |
| 13 |
payment_intent: str |
| 14 |
""" |
| 15 |
The ID of the PaymentIntent to process on the reader. |
| 16 |
""" |
| 17 |
process_config: NotRequired[ |
| 18 |
"ReaderProcessPaymentIntentParamsProcessConfig" |
| 19 |
] |
| 20 |
""" |
| 21 |
Configuration overrides for this transaction, such as tipping and customer cancellation settings. |
| 22 |
""" |
| 23 |
|
| 24 |
|
| 25 |
class ReaderProcessPaymentIntentParamsProcessConfig(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 |
return_url: NotRequired[str] |
| 35 |
""" |
| 36 |
The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. If you'd prefer to redirect to a mobile application, you can alternatively supply an application URI scheme. |
| 37 |
""" |
| 38 |
skip_tipping: NotRequired[bool] |
| 39 |
""" |
| 40 |
Override showing a tipping selection screen on this transaction. |
| 41 |
""" |
| 42 |
tipping: NotRequired[ |
| 43 |
"ReaderProcessPaymentIntentParamsProcessConfigTipping" |
| 44 |
] |
| 45 |
""" |
| 46 |
Tipping configuration for this transaction. |
| 47 |
""" |
| 48 |
|
| 49 |
|
| 50 |
class ReaderProcessPaymentIntentParamsProcessConfigTipping(TypedDict): |
| 51 |
amount_eligible: NotRequired[int] |
| 52 |
""" |
| 53 |
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). |
| 54 |
""" |