-
Notifications
You must be signed in to change notification settings - Fork 4
/
account.py
120 lines (87 loc) · 3.68 KB
/
account.py
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
# 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):
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.
For accounts created before 2023-05-11, this field will be null.
"""
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 also unable to be transitioned to `ACTIVE` or `PAUSED` states.
`CLOSED` accounts result from failing to pass KYB/KYC or Lithic closing for
risk/compliance reasons. Please contact
[[email protected]](mailto:[email protected]) if you believe this was in
error.
"""
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-digit alphabetic ISO 4217 code for the currency of the cardholder."""
verification_address: Optional[VerificationAddress] = None