forked from lithic-com/lithic-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaccount.py
More file actions
100 lines (70 loc) · 2.84 KB
/
account.py
File metadata and controls
100 lines (70 loc) · 2.84 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
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
from typing import List, Optional
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 ZIP codes are currently supported, entered as a five-digit ZIP or
nine-digit ZIP+4.
"""
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.
"""
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` cards are also unable to be transitioned to
`ACTIVE` or `PAUSED` states.
"""
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."""
verification_address: Optional[VerificationAddress] = None