Debian Codegraph @

stripe/params/_file_create_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 Any, Dict, List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class FileCreateParams(RequestOptions):
9 expand: NotRequired[List[str]]
10 """
11 Specifies which fields in the response should be expanded.
12 """
13 file: Any
14 """
15 A file to upload. Make sure that the specifications follow RFC 2388, which defines file transfers for the `multipart/form-data` protocol.
16 """
17 file_link_data: NotRequired["FileCreateParamsFileLinkData"]
18 """
19 Optional parameters that automatically create a [file link](https://api.stripe.com#file_links) for the newly created file.
20 """
21 purpose: Literal[
22 "account_requirement",
23 "additional_verification",
24 "business_icon",
25 "business_logo",
26 "customer_signature",
27 "dispute_evidence",
28 "identity_document",
29 "issuing_regulatory_reporting",
30 "pci_document",
31 "platform_terms_of_service",
32 "tax_document_user_upload",
33 "terminal_android_apk",
34 "terminal_reader_splashscreen",
35 "terminal_wifi_certificate",
36 "terminal_wifi_private_key",
37 ]
38 """
39 The [purpose](https://docs.stripe.com/file-upload#uploading-a-file) of the uploaded file.
40 """
41
42
43 class FileCreateParamsFileLinkData(TypedDict):
44 create: bool
45 """
46 Set this to `true` to create a file link for the newly created file. Creating a link is only possible when the file's `purpose` is one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `issuing_regulatory_reporting`, `pci_document`, `tax_document_user_upload`, `terminal_android_apk`, or `terminal_reader_splashscreen`.
47 """
48 expires_at: NotRequired[int]
49 """
50 The link isn't available after this future timestamp.
51 """
52 metadata: NotRequired["Literal['']|Dict[str, str]"]
53 """
54 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`.
55 """