Skip to content

Commit 9be44c0

Browse files
feat(api): introduce TransactionSeries and update ShippingMethod fields (#732)
- Add new `transaction_series` schema and fields for Transaction events - Add `expected_release_date` property to Payments - Deprecate various business entity fields and improve documentation - Add new `LOSS_WRITE_OFF` transaction type
1 parent 3cacd00 commit 9be44c0

12 files changed

+75
-83
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 156
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-179992b114ffada2cdd2d9d56a8a25e0683bec2297606d32d0f0006b9eb9f21d.yml
3-
openapi_spec_hash: a111418d378ea248892306c81b00f8c8
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/lithic%2Flithic-18973e063e9e9233433290bb4d641df8e17e1f21f5b1ec57e00182f0a48dbdec.yml
3+
openapi_spec_hash: ab503dc3772f962b603ade7b91b8534c
44
config_hash: 6729d695e399d14fff4891b6b82ec86c

src/lithic/resources/account_holders.py

Lines changed: 18 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ def create(
9494
accounts that are part of the program that the calling API key manages.
9595
9696
Args:
97-
beneficial_owner_individuals: List of all direct and indirect individuals with >25% ownership in the company.
98-
If no individual owns >25% of the company, please identify the largest
97+
beneficial_owner_individuals: List of all direct and indirect individuals with 25% or more ownership in the
98+
company. If no individual owns 25% of the company, please identify the largest
9999
shareholder in this field. See
100100
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
101101
(Section I) for more background on individuals that should be included.
@@ -404,21 +404,13 @@ def update(
404404
accounts that are part of the program that the calling API key manages.
405405
406406
Args:
407-
beneficial_owner_entities: List of all entities with >25% ownership in the company. If no entity or
408-
individual owns >25% of the company, and the largest shareholder is an entity,
409-
please identify them in this field. See
410-
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)(Section
411-
I) for more background. If no business owner is an entity, pass in an empty
412-
list. However, either this parameter or `beneficial_owner_individuals` must be
413-
populated. on entities that should be included.
414-
415-
beneficial_owner_individuals: List of all individuals with >25% ownership in the company. If no entity or
416-
individual owns >25% of the company, and the largest shareholder is an
417-
individual, please identify them in this field. See
418-
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)(Section
419-
I) for more background on individuals that should be included. If no individual
420-
is an entity, pass in an empty list. However, either this parameter or
421-
`beneficial_owner_entities` must be populated.
407+
beneficial_owner_entities: Deprecated.
408+
409+
beneficial_owner_individuals: List of all direct and indirect individuals with 25% or more ownership in the
410+
company. If no individual owns 25% of the company, please identify the largest
411+
shareholder in this field. See
412+
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
413+
(Section I) for more background on individuals that should be included.
422414
423415
business_entity: Information for business for which the account is being opened and KYB is being
424416
run.
@@ -1083,8 +1075,8 @@ async def create(
10831075
accounts that are part of the program that the calling API key manages.
10841076
10851077
Args:
1086-
beneficial_owner_individuals: List of all direct and indirect individuals with >25% ownership in the company.
1087-
If no individual owns >25% of the company, please identify the largest
1078+
beneficial_owner_individuals: List of all direct and indirect individuals with 25% or more ownership in the
1079+
company. If no individual owns 25% of the company, please identify the largest
10881080
shareholder in this field. See
10891081
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
10901082
(Section I) for more background on individuals that should be included.
@@ -1393,21 +1385,13 @@ async def update(
13931385
accounts that are part of the program that the calling API key manages.
13941386
13951387
Args:
1396-
beneficial_owner_entities: List of all entities with >25% ownership in the company. If no entity or
1397-
individual owns >25% of the company, and the largest shareholder is an entity,
1398-
please identify them in this field. See
1399-
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)(Section
1400-
I) for more background. If no business owner is an entity, pass in an empty
1401-
list. However, either this parameter or `beneficial_owner_individuals` must be
1402-
populated. on entities that should be included.
1403-
1404-
beneficial_owner_individuals: List of all individuals with >25% ownership in the company. If no entity or
1405-
individual owns >25% of the company, and the largest shareholder is an
1406-
individual, please identify them in this field. See
1407-
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)(Section
1408-
I) for more background on individuals that should be included. If no individual
1409-
is an entity, pass in an empty list. However, either this parameter or
1410-
`beneficial_owner_entities` must be populated.
1388+
beneficial_owner_entities: Deprecated.
1389+
1390+
beneficial_owner_individuals: List of all direct and indirect individuals with 25% or more ownership in the
1391+
company. If no individual owns 25% of the company, please identify the largest
1392+
shareholder in this field. See
1393+
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
1394+
(Section I) for more background on individuals that should be included.
14111395
14121396
business_entity: Information for business for which the account is being opened and KYB is being
14131397
run.

src/lithic/types/account_holder.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,15 @@ class AccountHolder(BaseModel):
206206
"""Globally unique identifier for the account."""
207207

208208
beneficial_owner_entities: Optional[List[BeneficialOwnerEntity]] = None
209-
"""Deprecated. Only present when user_type == "BUSINESS"."""
209+
"""Deprecated."""
210210

211211
beneficial_owner_individuals: Optional[List[BeneficialOwnerIndividual]] = None
212-
"""Only present when user_type == "BUSINESS".
213-
214-
List of all individuals with >25% ownership in the company.
212+
"""
213+
Only present when user_type == "BUSINESS". List of all direct and indirect
214+
individuals with 25% or more ownership in the company. If no individual owns 25%
215+
of the company, please identify the largest shareholder in this field. See
216+
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
217+
(Section I) for more background on individuals that should be included.
215218
"""
216219

217220
business_account_token: Optional[str] = None
@@ -319,8 +322,8 @@ class AccountHolder(BaseModel):
319322
320323
If the type is "INDIVIDUAL", the "individual" attribute will be present. If the
321324
type is "BUSINESS" then the "business_entity", "control_person",
322-
"beneficial_owner_individuals", "beneficial_owner_entities",
323-
"nature_of_business", and "website_url" attributes will be present.
325+
"beneficial_owner_individuals", "nature_of_business", and "website_url"
326+
attributes will be present.
324327
"""
325328

326329
verification_application: Optional[VerificationApplication] = None

src/lithic/types/account_holder_create_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@
2222

2323
class KYB(TypedDict, total=False):
2424
beneficial_owner_individuals: Required[Iterable[KYBBeneficialOwnerIndividual]]
25-
"""List of all direct and indirect individuals with >25% ownership in the company.
26-
27-
If no individual owns >25% of the company, please identify the largest
25+
"""
26+
List of all direct and indirect individuals with 25% or more ownership in the
27+
company. If no individual owns 25% of the company, please identify the largest
2828
shareholder in this field. See
2929
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
3030
(Section I) for more background on individuals that should be included.

src/lithic/types/account_holder_simulate_enrollment_review_response.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -250,15 +250,16 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
250250
"""Globally unique identifier for the account."""
251251

252252
beneficial_owner_entities: Optional[List[KYBBusinessEntity]] = None
253-
"""Only present when user_type == "BUSINESS".
254-
255-
List of all entities with >25% ownership in the company.
256-
"""
253+
"""Deprecated."""
257254

258255
beneficial_owner_individuals: Optional[List[BeneficialOwnerIndividual]] = None
259256
"""Only present when user_type == "BUSINESS".
260257
261-
List of all individuals with >25% ownership in the company.
258+
List of all direct and indirect individuals with 25% or more ownership in the
259+
company. If no individual owns 25% of the company, please identify the largest
260+
shareholder in this field. See
261+
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
262+
(Section I) for more background on individuals that should be included.
262263
"""
263264

264265
business_account_token: Optional[str] = None
@@ -389,9 +390,8 @@ class AccountHolderSimulateEnrollmentReviewResponse(BaseModel):
389390
If the type is "INDIVIDUAL", the "individual" attribute will be present.
390391
391392
If the type is "BUSINESS" then the "business_entity", "control_person",
392-
"beneficial_owner_individuals", "beneficial_owner_entities",
393-
394-
"nature_of_business", and "website_url" attributes will be present.
393+
"beneficial_owner_individuals", "nature_of_business", and "website_url"
394+
attributes will be present.
395395
"""
396396

397397
verification_application: Optional[VerificationApplication] = None

src/lithic/types/account_holder_update_params.py

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,15 @@
2222

2323
class KYBPatchRequest(TypedDict, total=False):
2424
beneficial_owner_entities: Iterable[KYBPatchRequestBeneficialOwnerEntity]
25-
"""List of all entities with >25% ownership in the company.
26-
27-
If no entity or individual owns >25% of the company, and the largest shareholder
28-
is an entity, please identify them in this field. See
29-
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)(Section
30-
I) for more background. If no business owner is an entity, pass in an empty
31-
list. However, either this parameter or `beneficial_owner_individuals` must be
32-
populated. on entities that should be included.
33-
"""
25+
"""Deprecated."""
3426

3527
beneficial_owner_individuals: Iterable[KYBPatchRequestBeneficialOwnerIndividual]
36-
"""List of all individuals with >25% ownership in the company.
37-
38-
If no entity or individual owns >25% of the company, and the largest shareholder
39-
is an individual, please identify them in this field. See
40-
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)(Section
41-
I) for more background on individuals that should be included. If no individual
42-
is an entity, pass in an empty list. However, either this parameter or
43-
`beneficial_owner_entities` must be populated.
28+
"""
29+
List of all direct and indirect individuals with 25% or more ownership in the
30+
company. If no individual owns 25% of the company, please identify the largest
31+
shareholder in this field. See
32+
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
33+
(Section I) for more background on individuals that should be included.
4434
"""
4535

4636
business_entity: KYBPatchRequestBusinessEntity

src/lithic/types/account_holder_update_response.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -253,15 +253,16 @@ class KYBKYCPatchResponse(BaseModel):
253253
"""Globally unique identifier for the account."""
254254

255255
beneficial_owner_entities: Optional[List[KYBBusinessEntity]] = None
256-
"""Only present when user_type == "BUSINESS".
257-
258-
List of all entities with >25% ownership in the company.
259-
"""
256+
"""Deprecated."""
260257

261258
beneficial_owner_individuals: Optional[List[KybkycPatchResponseBeneficialOwnerIndividual]] = None
262259
"""Only present when user_type == "BUSINESS".
263260
264-
List of all individuals with >25% ownership in the company.
261+
List of all direct and indirect individuals with 25% or more ownership in the
262+
company. If no individual owns 25% of the company, please identify the largest
263+
shareholder in this field. See
264+
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
265+
(Section I) for more background on individuals that should be included.
265266
"""
266267

267268
business_account_token: Optional[str] = None
@@ -392,9 +393,8 @@ class KYBKYCPatchResponse(BaseModel):
392393
If the type is "INDIVIDUAL", the "individual" attribute will be present.
393394
394395
If the type is "BUSINESS" then the "business_entity", "control_person",
395-
"beneficial_owner_individuals", "beneficial_owner_entities",
396-
397-
"nature_of_business", and "website_url" attributes will be present.
396+
"beneficial_owner_individuals", "nature_of_business", and "website_url"
397+
attributes will be present.
398398
"""
399399

400400
verification_application: Optional[KYBKYCPatchResponseVerificationApplication] = None

src/lithic/types/financial_accounts/statements/statement_line_items.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ class Data(BaseModel):
9999
"INTERNAL_ADJUSTMENT",
100100
"LATE_PAYMENT",
101101
"LATE_PAYMENT_REVERSAL",
102+
"LOSS_WRITE_OFF",
102103
"PROVISIONAL_CREDIT",
103104
"PROVISIONAL_CREDIT_REVERSAL",
104105
"RETURN",

src/lithic/types/financial_transaction.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ class Event(BaseModel):
8686
"INTERNAL_ADJUSTMENT",
8787
"LATE_PAYMENT",
8888
"LATE_PAYMENT_REVERSAL",
89+
"LOSS_WRITE_OFF",
8990
"PROVISIONAL_CREDIT",
9091
"PROVISIONAL_CREDIT_REVERSAL",
9192
"RETURN",

src/lithic/types/kyb_param.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ class BeneficialOwnerEntity(TypedDict, total=False):
146146

147147
class KYBParam(TypedDict, total=False):
148148
beneficial_owner_individuals: Required[Iterable[BeneficialOwnerIndividual]]
149-
"""List of all direct and indirect individuals with >25% ownership in the company.
150-
151-
If no individual owns >25% of the company, please identify the largest
149+
"""
150+
List of all direct and indirect individuals with 25% or more ownership in the
151+
company. If no individual owns 25% of the company, please identify the largest
152152
shareholder in this field. See
153153
[FinCEN requirements](https://www.fincen.gov/sites/default/files/shared/CDD_Rev6.7_Sept_2017_Certificate.pdf)
154154
(Section I) for more background on individuals that should be included.

0 commit comments

Comments
 (0)