-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathaccount.py
More file actions
165 lines (129 loc) · 6.17 KB
/
account.py
File metadata and controls
165 lines (129 loc) · 6.17 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
157
158
159
160
161
162
163
164
165
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
from datetime import datetime
from typing_extensions import Literal
from .._models import BaseModel
__all__ = ["Account", "SpendLimit", "AccountHolder", "VerificationAddress"]
class SpendLimit(BaseModel):
"""
Spend limit information for the user containing the daily, monthly, and lifetime spend limit of the account. Any charges to a card owned by this account will be declined once their transaction volume has surpassed the value in the applicable time limit (rolling). A lifetime limit of 0 indicates that the lifetime limit feature is disabled.
"""
daily: int
"""Daily spend limit (in cents)."""
lifetime: int
"""Total spend limit over account lifetime (in cents)."""
monthly: int
"""Monthly spend limit (in cents)."""
class AccountHolder(BaseModel):
token: str
"""Globally unique identifier for the account holder."""
business_account_token: str
"""
Only applicable for customers using the KYC-Exempt workflow to enroll authorized
users of businesses. Account_token of the enrolled business associated with an
enrolled AUTHORIZED_USER individual.
"""
email: str
"""Email address."""
phone_number: str
"""Phone number of the individual."""
class VerificationAddress(BaseModel):
address1: str
"""Valid deliverable address (no PO boxes)."""
city: str
"""City name."""
country: str
"""Country name. Only USA is currently supported."""
postal_code: str
"""Valid postal code.
Only USA postal codes (ZIP codes) are currently supported, entered as a
five-digit postal code or nine-digit postal code (ZIP+4) using the format
12345-1234.
"""
state: str
"""Valid state code.
Only USA state codes are currently supported, entered in uppercase ISO 3166-2
two-character format.
"""
address2: Optional[str] = None
"""Unit or apartment number (if applicable)."""
class Account(BaseModel):
token: str
"""Globally unique identifier for the account.
This is the same as the account_token returned by the enroll endpoint. If using
this parameter, do not include pagination.
"""
created: Optional[datetime] = None
"""Timestamp of when the account was created."""
spend_limit: SpendLimit
"""
Spend limit information for the user containing the daily, monthly, and lifetime
spend limit of the account. Any charges to a card owned by this account will be
declined once their transaction volume has surpassed the value in the applicable
time limit (rolling). A lifetime limit of 0 indicates that the lifetime limit
feature is disabled.
"""
state: Literal["ACTIVE", "PAUSED", "CLOSED"]
"""Account state:
- `ACTIVE` - Account is able to transact and create new cards.
- `PAUSED` - Account will not be able to transact or create new cards. It can be
set back to `ACTIVE`.
- `CLOSED` - Account will not be able to transact or create new cards. `CLOSED`
accounts are unable to be transitioned to `ACTIVE` or `PAUSED` states.
Accounts can be manually set to `CLOSED`, or this can be done by Lithic due to
failure to pass KYB/KYC or for risk/compliance reasons. Please contact
[support@lithic.com](mailto:support@lithic.com) if you believe this was done
by mistake.
"""
account_holder: Optional[AccountHolder] = None
auth_rule_tokens: Optional[List[str]] = None
"""
List of identifiers for the Auth Rule(s) that are applied on the account. This
field is deprecated and will no longer be populated in the `account_holder`
object. The key will be removed from the schema in a future release. Use the
`/auth_rules` endpoints to fetch Auth Rule information instead.
"""
cardholder_currency: Optional[str] = None
"""3-character alphabetic ISO 4217 code for the currency of the cardholder."""
comment: Optional[str] = None
"""Additional context or information related to the account."""
substatus: Optional[
Literal[
"FRAUD_IDENTIFIED",
"SUSPICIOUS_ACTIVITY",
"RISK_VIOLATION",
"END_USER_REQUEST",
"ISSUER_REQUEST",
"NOT_ACTIVE",
"INTERNAL_REVIEW",
"OTHER",
]
] = None
"""Account state substatus values:
- `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
with stolen or fabricated identity information, encompassing both true
identity theft and synthetic identities.
- `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
unauthorized access or fraudulent transactions, necessitating further
investigation.
- `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
legitimate account holder. Examples include disputing valid transactions
without cause, falsely claiming non-receipt of goods, or engaging in
intentional bust-out schemes to exploit account services.
- `END_USER_REQUEST` - The account holder has voluntarily requested the closure
of the account for personal reasons. This encompasses situations such as
bankruptcy, other financial considerations, or the account holder's death.
- `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
business strategy, risk management, inactivity, product changes, regulatory
concerns, or violations of terms and conditions.
- `NOT_ACTIVE` - The account has not had any transactions or payment activity
within a specified period. This status applies to accounts that are paused or
closed due to inactivity.
- `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
review. In future implementations, this status may prevent clients from
activating the account via APIs until the review is completed.
- `OTHER` - The reason for the account's current status does not fall into any
of the above categories. A comment should be provided to specify the
particular reason.
"""
verification_address: Optional[VerificationAddress] = None