Debian Codegraph @

stripe/params/_invoice_remove_lines_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 Dict, List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class InvoiceRemoveLinesParams(RequestOptions):
9 expand: NotRequired[List[str]]
10 """
11 Specifies which fields in the response should be expanded.
12 """
13 invoice_metadata: NotRequired["Literal['']|Dict[str, str]"]
14 """
15 Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
16 """
17 lines: List["InvoiceRemoveLinesParamsLine"]
18 """
19 The line items to remove.
20 """
21
22
23 class InvoiceRemoveLinesParamsLine(TypedDict):
24 behavior: Literal["delete", "unassign"]
25 """
26 Either `delete` or `unassign`. Deleted line items are permanently deleted. Unassigned line items can be reassigned to an invoice.
27 """
28 id: str
29 """
30 ID of an existing line item to remove from this invoice.
31 """