Debian Codegraph @

stripe/params/test_helpers/terminal/_reader_present_payment_method_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 ReaderPresentPaymentMethodParams(TypedDict):
8 amount_tip: NotRequired[int]
9 """
10 Simulated on-reader tip amount.
11 """
12 card: NotRequired["ReaderPresentPaymentMethodParamsCard"]
13 """
14 Simulated data for the card payment method.
15 """
16 card_present: NotRequired["ReaderPresentPaymentMethodParamsCardPresent"]
17 """
18 Simulated data for the card_present payment method.
19 """
20 expand: NotRequired[List[str]]
21 """
22 Specifies which fields in the response should be expanded.
23 """
24 interac_present: NotRequired[
25 "ReaderPresentPaymentMethodParamsInteracPresent"
26 ]
27 """
28 Simulated data for the interac_present payment method.
29 """
30 type: NotRequired[Literal["card", "card_present", "interac_present"]]
31 """
32 Simulated payment type.
33 """
34
35
36 class ReaderPresentPaymentMethodParamsCard(TypedDict):
37 cvc: NotRequired[str]
38 """
39 Card security code.
40 """
41 exp_month: int
42 """
43 Two-digit number representing the card's expiration month.
44 """
45 exp_year: int
46 """
47 Two- or four-digit number representing the card's expiration year.
48 """
49 number: str
50 """
51 The card number, as a string without any separators.
52 """
53
54
55 class ReaderPresentPaymentMethodParamsCardPresent(TypedDict):
56 number: NotRequired[str]
57 """
58 The card number, as a string without any separators.
59 """
60
61
62 class ReaderPresentPaymentMethodParamsInteracPresent(TypedDict):
63 number: NotRequired[str]
64 """
65 The Interac card number.
66 """