-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathfile.py
More file actions
156 lines (133 loc) · 6.57 KB
/
file.py
File metadata and controls
156 lines (133 loc) · 6.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import TYPE_CHECKING, Dict, Optional
from datetime import datetime
from typing_extensions import Literal
from pydantic import Field as FieldInfo
from .._models import BaseModel
__all__ = ["File"]
class File(BaseModel):
"""Files are objects that represent a file hosted on Increase's servers.
The file may have been uploaded by you (for example, when uploading a check image) or it may have been created by Increase (for example, an autogenerated statement PDF). If you need to download a File, create a File Link.
"""
id: str
"""The File's identifier."""
created_at: datetime
"""The time the File was created."""
description: Optional[str] = None
"""A description of the File."""
direction: Literal["to_increase", "from_increase"]
"""Whether the File was generated by Increase or by you and sent to Increase.
- `to_increase` - This File was sent by you to Increase.
- `from_increase` - This File was generated by Increase.
"""
filename: Optional[str] = None
"""The filename that was provided upon upload or generated by Increase."""
idempotency_key: Optional[str] = None
"""The idempotency key you chose for this object.
This value is unique across Increase and is used to ensure that a request is
only processed once. Learn more about
[idempotency](https://increase.com/documentation/idempotency-keys).
"""
mime_type: str
"""The MIME type of the file."""
purpose: Literal[
"card_dispute_attachment",
"check_image_front",
"check_image_back",
"processed_check_image_front",
"processed_check_image_back",
"mailed_check_image",
"check_attachment",
"check_voucher_image",
"inbound_mail_item",
"form_1099_int",
"form_1099_misc",
"form_ss_4",
"identity_document",
"increase_statement",
"loan_application_supplemental_document",
"other",
"trust_formation_document",
"digital_wallet_artwork",
"digital_wallet_app_icon",
"physical_card_front",
"physical_card_back",
"physical_card_carrier",
"document_request",
"entity_supplemental_document",
"export",
"fee_statement",
"unusual_activity_report_attachment",
"deposit_account_control_agreement",
"proof_of_authorization_request_submission",
"account_verification_letter",
"funding_instructions",
"hold_harmless_letter",
]
"""What the File will be used for.
We may add additional possible values for this enum over time; your application
should be able to handle such additions gracefully.
- `card_dispute_attachment` - A file to be attached to a Card Dispute.
- `check_image_front` - An image of the front of a check, used for check
deposits.
- `check_image_back` - An image of the back of a check, used for check deposits.
- `processed_check_image_front` - An image of the front of a deposited check
after processing by Increase and submission to the Federal Reserve.
- `processed_check_image_back` - An image of the back of a deposited check after
processing by Increase and submission to the Federal Reserve.
- `mailed_check_image` - An image of a check that was mailed to a recipient.
- `check_attachment` - A document to be printed on an additional page and mailed
with a check that you've requested Increase print. This must be a PDF whose
pages are all US letter size and all have the same orientation.
- `check_voucher_image` - An image to be used as the check voucher image, which
is printed in the middle of the trifold area of a check. This must be a
2550x1100 pixel PNG.
- `inbound_mail_item` - A scanned mail item sent to Increase.
- `form_1099_int` - IRS Form 1099-INT.
- `form_1099_misc` - IRS Form 1099-MISC.
- `form_ss_4` - IRS Form SS-4.
- `identity_document` - An image of a government-issued ID.
- `increase_statement` - A statement generated by Increase.
- `loan_application_supplemental_document` - A supplemental document for a Loan
Application.
- `other` - A file purpose not covered by any of the other cases.
- `trust_formation_document` - A legal document forming a trust.
- `digital_wallet_artwork` - A card image to be rendered inside digital wallet
apps. This must be a 1536x969 pixel PNG.
- `digital_wallet_app_icon` - An icon for you app to be rendered inside digital
wallet apps. This must be a 100x100 pixel PNG.
- `physical_card_front` - A card image to be printed on the front of a physical
card. This must be a 2100x1344 pixel PNG with no other color but black.
- `physical_card_back` - The image to be printed on the back of a physical card.
- `physical_card_carrier` - An image representing the entirety of the carrier
used for a physical card. This must be a 2550x3300 pixel PNG with no other
color but black.
- `document_request` - A document requested by Increase.
- `entity_supplemental_document` - A supplemental document associated an an
Entity.
- `export` - The results of an Export you requested via the dashboard or API.
- `fee_statement` - A fee statement.
- `unusual_activity_report_attachment` - An attachment to an Unusual Activity
Report.
- `deposit_account_control_agreement` - A document granting another entity
access to the funds into your account.
- `proof_of_authorization_request_submission` - A file containing additional
evidence for a Proof of Authorization Request Submission.
- `account_verification_letter` - An account verification letter.
- `funding_instructions` - Funding instructions.
- `hold_harmless_letter` - A Hold Harmless Letter.
"""
type: Literal["file"]
"""A constant representing the object's type.
For this resource it will always be `file`.
"""
if TYPE_CHECKING:
# Some versions of Pydantic <2.8.0 have a bug and don’t allow assigning a
# value to this field, so for compatibility we avoid doing it at runtime.
__pydantic_extra__: Dict[str, object] = FieldInfo(init=False) # pyright: ignore[reportIncompatibleVariableOverride]
# Stub to indicate that arbitrary properties are accepted.
# To access properties that are not valid identifiers you can use `getattr`, e.g.
# `getattr(obj, '$type')`
def __getattr__(self, attr: str) -> object: ...
else:
__pydantic_extra__: Dict[str, object]