Debian Codegraph @

stripe/params/terminal/_reader_set_reader_display_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 ReaderSetReaderDisplayParams(RequestOptions):
9 cart: NotRequired["ReaderSetReaderDisplayParamsCart"]
10 """
11 Cart details to display on the reader screen, including line items, amounts, and currency.
12 """
13 expand: NotRequired[List[str]]
14 """
15 Specifies which fields in the response should be expanded.
16 """
17 type: Literal["cart"]
18 """
19 Type of information to display. Only `cart` is currently supported.
20 """
21
22
23 class ReaderSetReaderDisplayParamsCart(TypedDict):
24 currency: str
25 """
26 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
27 """
28 line_items: List["ReaderSetReaderDisplayParamsCartLineItem"]
29 """
30 Array of line items to display.
31 """
32 tax: NotRequired[int]
33 """
34 The amount of tax in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
35 """
36 total: int
37 """
38 Total balance of cart due in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
39 """
40
41
42 class ReaderSetReaderDisplayParamsCartLineItem(TypedDict):
43 amount: int
44 """
45 The price of the item in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
46 """
47 description: str
48 """
49 The description or name of the item.
50 """
51 quantity: int
52 """
53 The quantity of the line item being purchased.
54 """