Debian Codegraph @

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