Skip to content

Commit d297283

Browse files
chore: add missing docstrings
1 parent d290cbb commit d297283

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+341
-0
lines changed

src/lithic/types/account.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111

1212
class SpendLimit(BaseModel):
13+
"""
14+
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.
15+
"""
16+
1317
daily: int
1418
"""Daily spend limit (in cents)."""
1519

src/lithic/types/account_activity_list_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818

1919
class FinancialTransaction(BaseModel):
20+
"""Financial transaction with inheritance from unified base transaction"""
21+
2022
token: str
2123
"""Unique identifier for the transaction"""
2224

@@ -79,6 +81,8 @@ class FinancialTransaction(BaseModel):
7981

8082

8183
class CardTransaction(Transaction):
84+
"""Card transaction with ledger base properties"""
85+
8286
token: str # type: ignore
8387
"""Unique identifier for the transaction"""
8488

src/lithic/types/account_activity_retrieve_transaction_response.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@
1717

1818

1919
class FinancialTransaction(BaseModel):
20+
"""Financial transaction with inheritance from unified base transaction"""
21+
2022
token: str
2123
"""Unique identifier for the transaction"""
2224

@@ -79,6 +81,8 @@ class FinancialTransaction(BaseModel):
7981

8082

8183
class CardTransaction(Transaction):
84+
"""Card transaction with ledger base properties"""
85+
8286
token: str # type: ignore
8387
"""Unique identifier for the transaction"""
8488

src/lithic/types/account_holder.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,11 @@ class BeneficialOwnerEntity(BaseModel):
5656

5757

5858
class BeneficialOwnerIndividual(BaseModel):
59+
"""Information about an individual associated with an account holder.
60+
61+
A subset of the information provided via KYC. For example, we do not return the government id.
62+
"""
63+
5964
address: Address
6065
"""Individual's current address"""
6166

@@ -79,6 +84,11 @@ class BeneficialOwnerIndividual(BaseModel):
7984

8085

8186
class BusinessEntity(BaseModel):
87+
"""Only present when user_type == "BUSINESS".
88+
89+
Information about the business for which the account is being opened and KYB is being run.
90+
"""
91+
8292
address: Address
8393
"""
8494
Business's physical address - PO boxes, UPS drops, and FedEx drops are not
@@ -115,6 +125,13 @@ class BusinessEntity(BaseModel):
115125

116126

117127
class ControlPerson(BaseModel):
128+
"""
129+
Only present when user_type == "BUSINESS".
130+
An individual with significant responsibility for managing the legal entity (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating Officer,
131+
Managing Member, General Partner, President, Vice President, or Treasurer). This can be an executive, or someone who will have program-wide access
132+
to the cards that Lithic will provide. In some cases, this individual could also be a beneficial owner listed above.
133+
"""
134+
118135
address: Address
119136
"""Individual's current address"""
120137

@@ -138,6 +155,11 @@ class ControlPerson(BaseModel):
138155

139156

140157
class Individual(BaseModel):
158+
"""Only present when user_type == "INDIVIDUAL".
159+
160+
Information about the individual for which the account is being opened and KYC is being run.
161+
"""
162+
141163
address: Address
142164
"""Individual's current address"""
143165

@@ -161,6 +183,8 @@ class Individual(BaseModel):
161183

162184

163185
class VerificationApplication(BaseModel):
186+
"""Information about the most recent identity verification attempt"""
187+
164188
created: Optional[datetime] = None
165189
"""Timestamp of when the application was created."""
166190

src/lithic/types/account_holder_create_params.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ class KYB(TypedDict, total=False):
9292

9393

9494
class KYBBeneficialOwnerIndividual(TypedDict, total=False):
95+
"""Individuals associated with a KYB application. Phone number is optional."""
96+
9597
address: Required[Address]
9698
"""
9799
Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -126,6 +128,10 @@ class KYBBeneficialOwnerIndividual(TypedDict, total=False):
126128

127129

128130
class KYBBusinessEntity(TypedDict, total=False):
131+
"""
132+
Information for business for which the account is being opened and KYB is being run.
133+
"""
134+
129135
address: Required[Address]
130136
"""
131137
Business's physical address - PO boxes, UPS drops, and FedEx drops are not
@@ -159,6 +165,13 @@ class KYBBusinessEntity(TypedDict, total=False):
159165

160166

161167
class KYBControlPerson(TypedDict, total=False):
168+
"""
169+
An individual with significant responsibility for managing the legal entity (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating Officer,
170+
Managing Member, General Partner, President, Vice President, or Treasurer). This can be an executive, or someone who will have program-wide access
171+
to the cards that Lithic will provide. In some cases, this individual could also be a beneficial owner listed above.
172+
See [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) (Section II) for more background.
173+
"""
174+
162175
address: Required[Address]
163176
"""
164177
Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -278,6 +291,8 @@ class KYBDelegated(TypedDict, total=False):
278291

279292

280293
class KYBDelegatedBusinessEntity(TypedDict, total=False):
294+
"""Information for business for which the account is being opened."""
295+
281296
address: Required[Address]
282297
"""
283298
Business's physical address - PO boxes, UPS drops, and FedEx drops are not
@@ -311,6 +326,8 @@ class KYBDelegatedBusinessEntity(TypedDict, total=False):
311326

312327

313328
class KYBDelegatedBeneficialOwnerIndividual(TypedDict, total=False):
329+
"""Individuals associated with a KYB application. Phone number is optional."""
330+
314331
address: Required[Address]
315332
"""
316333
Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -345,6 +362,13 @@ class KYBDelegatedBeneficialOwnerIndividual(TypedDict, total=False):
345362

346363

347364
class KYBDelegatedControlPerson(TypedDict, total=False):
365+
"""
366+
An individual with significant responsibility for managing the legal entity (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating Officer,
367+
Managing Member, General Partner, President, Vice President, or Treasurer). This can be an executive, or someone who will have program-wide access
368+
to the cards that Lithic will provide. In some cases, this individual could also be a beneficial owner listed above.
369+
See [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) (Section II) for more background.
370+
"""
371+
348372
address: Required[Address]
349373
"""
350374
Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -411,6 +435,10 @@ class KYC(TypedDict, total=False):
411435

412436

413437
class KYCIndividual(TypedDict, total=False):
438+
"""
439+
Information on individual for whom the account is being opened and KYC is being run.
440+
"""
441+
414442
address: Required[Address]
415443
"""
416444
Individual's current address - PO boxes, UPS drops, and FedEx drops are not

src/lithic/types/account_holder_simulate_enrollment_review_response.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222

2323
class BeneficialOwnerIndividualAddress(BaseModel):
24+
"""
25+
Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
26+
"""
27+
2428
address1: str
2529
"""Valid deliverable address (no PO boxes)."""
2630

@@ -80,6 +84,10 @@ class BeneficialOwnerIndividual(BaseModel):
8084

8185

8286
class ControlPersonAddress(BaseModel):
87+
"""
88+
Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
89+
"""
90+
8391
address1: str
8492
"""Valid deliverable address (no PO boxes)."""
8593

@@ -112,6 +120,15 @@ class ControlPersonAddress(BaseModel):
112120

113121

114122
class ControlPerson(BaseModel):
123+
"""Only present when user_type == "BUSINESS".
124+
125+
An individual with significant responsibility for managing the legal entity (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating Officer,
126+
127+
Managing Member, General Partner, President, Vice President, or Treasurer). This can be an executive, or someone who will have program-wide access
128+
129+
to the cards that Lithic will provide. In some cases, this individual could also be a beneficial owner listed above.
130+
"""
131+
115132
address: Optional[ControlPersonAddress] = None
116133
"""
117134
Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -139,6 +156,10 @@ class ControlPerson(BaseModel):
139156

140157

141158
class IndividualAddress(BaseModel):
159+
"""
160+
Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
161+
"""
162+
142163
address1: str
143164
"""Valid deliverable address (no PO boxes)."""
144165

@@ -171,6 +192,11 @@ class IndividualAddress(BaseModel):
171192

172193

173194
class Individual(BaseModel):
195+
"""Only present when user_type == "INDIVIDUAL".
196+
197+
Information about the individual for which the account is being opened and KYC is being run.
198+
"""
199+
174200
address: Optional[IndividualAddress] = None
175201
"""
176202
Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -198,6 +224,8 @@ class Individual(BaseModel):
198224

199225

200226
class VerificationApplication(BaseModel):
227+
"""Information about the most recent identity verification attempt"""
228+
201229
created: datetime
202230
"""Timestamp of when the application was created."""
203231

src/lithic/types/account_holder_update_params.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ class KYBPatchRequestBeneficialOwnerEntity(TypedDict, total=False):
106106

107107

108108
class KYBPatchRequestBeneficialOwnerIndividual(TypedDict, total=False):
109+
"""Individuals associated with a KYB application. Phone number is optional."""
110+
109111
entity_token: Required[str]
110112
"""Globally unique identifier for an entity."""
111113

@@ -144,6 +146,10 @@ class KYBPatchRequestBeneficialOwnerIndividual(TypedDict, total=False):
144146

145147

146148
class KYBPatchRequestBusinessEntity(TypedDict, total=False):
149+
"""
150+
Information for business for which the account is being opened and KYB is being run.
151+
"""
152+
147153
entity_token: Required[str]
148154
"""Globally unique identifier for an entity."""
149155

@@ -180,6 +186,10 @@ class KYBPatchRequestBusinessEntity(TypedDict, total=False):
180186

181187

182188
class KYBPatchRequestControlPerson(TypedDict, total=False):
189+
"""
190+
An individual with significant responsibility for managing the legal entity (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating Officer, Managing Member, General Partner, President, Vice President, or Treasurer). This can be an executive, or someone who will have program-wide access to the cards that Lithic will provide. In some cases, this individual could also be a beneficial owner listed above. See [FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf) (Section II) for more background.
191+
"""
192+
183193
entity_token: Required[str]
184194
"""Globally unique identifier for an entity."""
185195

@@ -232,6 +242,10 @@ class KYCPatchRequest(TypedDict, total=False):
232242

233243

234244
class KYCPatchRequestIndividual(TypedDict, total=False):
245+
"""
246+
Information on the individual for whom the account is being opened and KYC is being run.
247+
"""
248+
235249
entity_token: Required[str]
236250
"""Globally unique identifier for an entity."""
237251

src/lithic/types/account_holder_update_response.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424

2525

2626
class KybkycPatchResponseBeneficialOwnerIndividualAddress(BaseModel):
27+
"""
28+
Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
29+
"""
30+
2731
address1: str
2832
"""Valid deliverable address (no PO boxes)."""
2933

@@ -83,6 +87,10 @@ class KybkycPatchResponseBeneficialOwnerIndividual(BaseModel):
8387

8488

8589
class KYBKYCPatchResponseControlPersonAddress(BaseModel):
90+
"""
91+
Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
92+
"""
93+
8694
address1: str
8795
"""Valid deliverable address (no PO boxes)."""
8896

@@ -115,6 +123,15 @@ class KYBKYCPatchResponseControlPersonAddress(BaseModel):
115123

116124

117125
class KYBKYCPatchResponseControlPerson(BaseModel):
126+
"""Only present when user_type == "BUSINESS".
127+
128+
An individual with significant responsibility for managing the legal entity (e.g., a Chief Executive Officer, Chief Financial Officer, Chief Operating Officer,
129+
130+
Managing Member, General Partner, President, Vice President, or Treasurer). This can be an executive, or someone who will have program-wide access
131+
132+
to the cards that Lithic will provide. In some cases, this individual could also be a beneficial owner listed above.
133+
"""
134+
118135
address: Optional[KYBKYCPatchResponseControlPersonAddress] = None
119136
"""
120137
Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -142,6 +159,10 @@ class KYBKYCPatchResponseControlPerson(BaseModel):
142159

143160

144161
class KYBKYCPatchResponseIndividualAddress(BaseModel):
162+
"""
163+
Individual's current address - PO boxes, UPS drops, and FedEx drops are not acceptable; APO/FPO are acceptable. Only USA addresses are currently supported.
164+
"""
165+
145166
address1: str
146167
"""Valid deliverable address (no PO boxes)."""
147168

@@ -174,6 +195,11 @@ class KYBKYCPatchResponseIndividualAddress(BaseModel):
174195

175196

176197
class KYBKYCPatchResponseIndividual(BaseModel):
198+
"""Only present when user_type == "INDIVIDUAL".
199+
200+
Information about the individual for which the account is being opened and KYC is being run.
201+
"""
202+
177203
address: Optional[KYBKYCPatchResponseIndividualAddress] = None
178204
"""
179205
Individual's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -201,6 +227,8 @@ class KYBKYCPatchResponseIndividual(BaseModel):
201227

202228

203229
class KYBKYCPatchResponseVerificationApplication(BaseModel):
230+
"""Information about the most recent identity verification attempt"""
231+
204232
created: datetime
205233
"""Timestamp of when the application was created."""
206234

@@ -412,6 +440,8 @@ class KYBKYCPatchResponse(BaseModel):
412440

413441

414442
class PatchResponseAddress(BaseModel):
443+
"""The address for the account holder"""
444+
415445
address1: str
416446
"""Valid deliverable address (no PO boxes)."""
417447

src/lithic/types/account_update_params.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ class AccountUpdateParams(TypedDict, total=False):
8888

8989

9090
class VerificationAddress(TypedDict, total=False):
91+
"""
92+
Address used during Address Verification Service (AVS) checks during transactions if enabled via Auth Rules. This field is deprecated as AVS checks are no longer supported by Auth Rules. The field will be removed from the schema in a future release.
93+
"""
94+
9195
address1: str
9296

9397
address2: str

src/lithic/types/aggregate_balance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010

1111
class AggregateBalance(BaseModel):
12+
"""Aggregate Balance across all end-user accounts"""
13+
1214
available_amount: int
1315
"""Funds available for spend in the currency's smallest unit (e.g., cents for USD)"""
1416

0 commit comments

Comments
 (0)