Skip to content

Commit 2e69678

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(api): updates to documentation and additional filter for status on Transactions (#669)
- updates to documentation for Accounts & AccountHolders - adds status filter to Transactions
1 parent 2ce887f commit 2e69678

16 files changed

+144
-118
lines changed

src/lithic/resources/account_holders.py

Lines changed: 46 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,13 @@ def create(
8383
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
8484
) -> AccountHolderCreateResponse:
8585
"""
86-
Run an individual or business's information through the Customer Identification
87-
Program (CIP). All calls to this endpoint will return an immediate response -
88-
though in some cases, the response may indicate the enrollment is under review
89-
or further action will be needed to complete the account enrollment process.
90-
This endpoint can only be used on accounts that are part of the program that the
91-
calling API key manages.
86+
Create an account holder and initiate the appropriate onboarding workflow.
87+
Account holders and accounts have a 1:1 relationship. When an account holder is
88+
successfully created an associated account is also created. All calls to this
89+
endpoint will return an immediate response - though in some cases, the response
90+
may indicate the enrollment is under review or further action will be needed to
91+
complete the account enrollment process. This endpoint can only be used on
92+
accounts that are part of the program that the calling API key manages.
9293
9394
Args:
9495
beneficial_owner_entities: List of all entities with >25% ownership in the company. If no entity or
@@ -165,12 +166,13 @@ def create(
165166
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
166167
) -> AccountHolderCreateResponse:
167168
"""
168-
Run an individual or business's information through the Customer Identification
169-
Program (CIP). All calls to this endpoint will return an immediate response -
170-
though in some cases, the response may indicate the enrollment is under review
171-
or further action will be needed to complete the account enrollment process.
172-
This endpoint can only be used on accounts that are part of the program that the
173-
calling API key manages.
169+
Create an account holder and initiate the appropriate onboarding workflow.
170+
Account holders and accounts have a 1:1 relationship. When an account holder is
171+
successfully created an associated account is also created. All calls to this
172+
endpoint will return an immediate response - though in some cases, the response
173+
may indicate the enrollment is under review or further action will be needed to
174+
complete the account enrollment process. This endpoint can only be used on
175+
accounts that are part of the program that the calling API key manages.
174176
175177
Args:
176178
individual: Information on individual for whom the account is being opened and KYC is being
@@ -221,12 +223,13 @@ def create(
221223
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
222224
) -> AccountHolderCreateResponse:
223225
"""
224-
Run an individual or business's information through the Customer Identification
225-
Program (CIP). All calls to this endpoint will return an immediate response -
226-
though in some cases, the response may indicate the enrollment is under review
227-
or further action will be needed to complete the account enrollment process.
228-
This endpoint can only be used on accounts that are part of the program that the
229-
calling API key manages.
226+
Create an account holder and initiate the appropriate onboarding workflow.
227+
Account holders and accounts have a 1:1 relationship. When an account holder is
228+
successfully created an associated account is also created. All calls to this
229+
endpoint will return an immediate response - though in some cases, the response
230+
may indicate the enrollment is under review or further action will be needed to
231+
complete the account enrollment process. This endpoint can only be used on
232+
accounts that are part of the program that the calling API key manages.
230233
231234
Args:
232235
address: KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -240,7 +243,7 @@ def create(
240243
241244
last_name: The KYC Exempt user's last name
242245
243-
phone_number: The KYC Exempt user's phone number
246+
phone_number: The KYC Exempt user's phone number, entered in E.164 format.
244247
245248
workflow: Specifies the workflow type. This must be 'KYC_EXEMPT'
246249
@@ -784,6 +787,7 @@ def upload_document(
784787
"UTILITY_BILL_STATEMENT",
785788
"SSN_CARD",
786789
"ITIN_LETTER",
790+
"FINCEN_BOI_REPORT",
787791
],
788792
entity_token: str,
789793
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -888,12 +892,13 @@ async def create(
888892
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
889893
) -> AccountHolderCreateResponse:
890894
"""
891-
Run an individual or business's information through the Customer Identification
892-
Program (CIP). All calls to this endpoint will return an immediate response -
893-
though in some cases, the response may indicate the enrollment is under review
894-
or further action will be needed to complete the account enrollment process.
895-
This endpoint can only be used on accounts that are part of the program that the
896-
calling API key manages.
895+
Create an account holder and initiate the appropriate onboarding workflow.
896+
Account holders and accounts have a 1:1 relationship. When an account holder is
897+
successfully created an associated account is also created. All calls to this
898+
endpoint will return an immediate response - though in some cases, the response
899+
may indicate the enrollment is under review or further action will be needed to
900+
complete the account enrollment process. This endpoint can only be used on
901+
accounts that are part of the program that the calling API key manages.
897902
898903
Args:
899904
beneficial_owner_entities: List of all entities with >25% ownership in the company. If no entity or
@@ -970,12 +975,13 @@ async def create(
970975
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
971976
) -> AccountHolderCreateResponse:
972977
"""
973-
Run an individual or business's information through the Customer Identification
974-
Program (CIP). All calls to this endpoint will return an immediate response -
975-
though in some cases, the response may indicate the enrollment is under review
976-
or further action will be needed to complete the account enrollment process.
977-
This endpoint can only be used on accounts that are part of the program that the
978-
calling API key manages.
978+
Create an account holder and initiate the appropriate onboarding workflow.
979+
Account holders and accounts have a 1:1 relationship. When an account holder is
980+
successfully created an associated account is also created. All calls to this
981+
endpoint will return an immediate response - though in some cases, the response
982+
may indicate the enrollment is under review or further action will be needed to
983+
complete the account enrollment process. This endpoint can only be used on
984+
accounts that are part of the program that the calling API key manages.
979985
980986
Args:
981987
individual: Information on individual for whom the account is being opened and KYC is being
@@ -1026,12 +1032,13 @@ async def create(
10261032
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
10271033
) -> AccountHolderCreateResponse:
10281034
"""
1029-
Run an individual or business's information through the Customer Identification
1030-
Program (CIP). All calls to this endpoint will return an immediate response -
1031-
though in some cases, the response may indicate the enrollment is under review
1032-
or further action will be needed to complete the account enrollment process.
1033-
This endpoint can only be used on accounts that are part of the program that the
1034-
calling API key manages.
1035+
Create an account holder and initiate the appropriate onboarding workflow.
1036+
Account holders and accounts have a 1:1 relationship. When an account holder is
1037+
successfully created an associated account is also created. All calls to this
1038+
endpoint will return an immediate response - though in some cases, the response
1039+
may indicate the enrollment is under review or further action will be needed to
1040+
complete the account enrollment process. This endpoint can only be used on
1041+
accounts that are part of the program that the calling API key manages.
10351042
10361043
Args:
10371044
address: KYC Exempt user's current address - PO boxes, UPS drops, and FedEx drops are not
@@ -1045,7 +1052,7 @@ async def create(
10451052
10461053
last_name: The KYC Exempt user's last name
10471054
1048-
phone_number: The KYC Exempt user's phone number
1055+
phone_number: The KYC Exempt user's phone number, entered in E.164 format.
10491056
10501057
workflow: Specifies the workflow type. This must be 'KYC_EXEMPT'
10511058
@@ -1589,6 +1596,7 @@ async def upload_document(
15891596
"UTILITY_BILL_STATEMENT",
15901597
"SSN_CARD",
15911598
"ITIN_LETTER",
1599+
"FINCEN_BOI_REPORT",
15921600
],
15931601
entity_token: str,
15941602
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.

src/lithic/resources/accounts.py

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -102,19 +102,19 @@ def update(
102102
in the `PAUSED` state will not be able to transact or create new cards.
103103
104104
Args:
105-
daily_spend_limit: Amount (in cents) for the account's daily spend limit. By default the daily
106-
spend limit is set to $1,250.
105+
daily_spend_limit: Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
106+
$1,000 limit). By default the daily spend limit is set to $1,250.
107107
108-
lifetime_spend_limit: Amount (in cents) for the account's lifetime spend limit. Once this limit is
109-
reached, no transactions will be accepted on any card created for this account
110-
until the limit is updated. Note that a spend limit of 0 is effectively no
111-
limit, and should only be used to reset or remove a prior limit. Only a limit of
112-
1 or above will result in declined transactions due to checks against the
113-
account limit. This behavior differs from the daily spend limit and the monthly
114-
spend limit.
108+
lifetime_spend_limit: Amount (in cents) for the account's lifetime spend limit (e.g. 100000 would be a
109+
$1,000 limit). Once this limit is reached, no transactions will be accepted on
110+
any card created for this account until the limit is updated. Note that a spend
111+
limit of 0 is effectively no limit, and should only be used to reset or remove a
112+
prior limit. Only a limit of 1 or above will result in declined transactions due
113+
to checks against the account limit. This behavior differs from the daily spend
114+
limit and the monthly spend limit.
115115
116-
monthly_spend_limit: Amount (in cents) for the account's monthly spend limit. By default the monthly
117-
spend limit is set to $5,000.
116+
monthly_spend_limit: Amount (in cents) for the account's monthly spend limit (e.g. 100000 would be a
117+
$1,000 limit). By default the monthly spend limit is set to $5,000.
118118
119119
state: Account states.
120120
@@ -329,19 +329,19 @@ async def update(
329329
in the `PAUSED` state will not be able to transact or create new cards.
330330
331331
Args:
332-
daily_spend_limit: Amount (in cents) for the account's daily spend limit. By default the daily
333-
spend limit is set to $1,250.
334-
335-
lifetime_spend_limit: Amount (in cents) for the account's lifetime spend limit. Once this limit is
336-
reached, no transactions will be accepted on any card created for this account
337-
until the limit is updated. Note that a spend limit of 0 is effectively no
338-
limit, and should only be used to reset or remove a prior limit. Only a limit of
339-
1 or above will result in declined transactions due to checks against the
340-
account limit. This behavior differs from the daily spend limit and the monthly
341-
spend limit.
342-
343-
monthly_spend_limit: Amount (in cents) for the account's monthly spend limit. By default the monthly
344-
spend limit is set to $5,000.
332+
daily_spend_limit: Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
333+
$1,000 limit). By default the daily spend limit is set to $1,250.
334+
335+
lifetime_spend_limit: Amount (in cents) for the account's lifetime spend limit (e.g. 100000 would be a
336+
$1,000 limit). Once this limit is reached, no transactions will be accepted on
337+
any card created for this account until the limit is updated. Note that a spend
338+
limit of 0 is effectively no limit, and should only be used to reset or remove a
339+
prior limit. Only a limit of 1 or above will result in declined transactions due
340+
to checks against the account limit. This behavior differs from the daily spend
341+
limit and the monthly spend limit.
342+
343+
monthly_spend_limit: Amount (in cents) for the account's monthly spend limit (e.g. 100000 would be a
344+
$1,000 limit). By default the monthly spend limit is set to $5,000.
345345
346346
state: Account states.
347347

src/lithic/resources/cards/cards.py

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,11 @@ def create(
219219
- `EXPEDITED` - FedEx Standard Overnight or similar international option, with
220220
tracking
221221
222-
spend_limit: Amount (in cents) to limit approved authorizations. Transaction requests above
223-
the spend limit will be declined. Note that a spend limit of 0 is effectively no
224-
limit, and should only be used to reset or remove a prior limit. Only a limit of
225-
1 or above will result in declined transactions due to checks against the card
226-
limit.
222+
spend_limit: Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
223+
$1,000 limit). Transaction requests above the spend limit will be declined. Note
224+
that a spend limit of 0 is effectively no limit, and should only be used to
225+
reset or remove a prior limit. Only a limit of 1 or above will result in
226+
declined transactions due to checks against the card limit.
227227
228228
spend_limit_duration:
229229
Spend limit duration values:
@@ -359,11 +359,11 @@ def update(
359359
pin_status: Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
360360
attempts). Can only be set to `OK` to unblock a card.
361361
362-
spend_limit: Amount (in cents) to limit approved authorizations. Transaction requests above
363-
the spend limit will be declined. Note that a spend limit of 0 is effectively no
364-
limit, and should only be used to reset or remove a prior limit. Only a limit of
365-
1 or above will result in declined transactions due to checks against the card
366-
limit.
362+
spend_limit: Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
363+
$1,000 limit). Transaction requests above the spend limit will be declined. Note
364+
that a spend limit of 0 is effectively no limit, and should only be used to
365+
reset or remove a prior limit. Only a limit of 1 or above will result in
366+
declined transactions due to checks against the card limit.
367367
368368
spend_limit_duration:
369369
Spend limit duration values:
@@ -515,9 +515,9 @@ def convert_physical(
515515
to state `PENDING_FULFILLMENT` and fulfilled at next fulfillment cycle. Virtual
516516
cards created on card programs which do not support physical cards cannot be
517517
converted. The card program cannot be changed as part of the conversion. Cards
518-
must be in a state of either `OPEN` or `PAUSED` to be converted. Only applies to
519-
cards of type `VIRTUAL` (or existing cards with deprecated types of
520-
`DIGITAL_WALLET` and `UNLOCKED`).
518+
must be in an `OPEN` state to be converted. Only applies to cards of type
519+
`VIRTUAL` (or existing cards with deprecated types of `DIGITAL_WALLET` and
520+
`UNLOCKED`).
521521
522522
Args:
523523
shipping_address: The shipping address this card will be sent to.
@@ -1202,11 +1202,11 @@ async def create(
12021202
- `EXPEDITED` - FedEx Standard Overnight or similar international option, with
12031203
tracking
12041204
1205-
spend_limit: Amount (in cents) to limit approved authorizations. Transaction requests above
1206-
the spend limit will be declined. Note that a spend limit of 0 is effectively no
1207-
limit, and should only be used to reset or remove a prior limit. Only a limit of
1208-
1 or above will result in declined transactions due to checks against the card
1209-
limit.
1205+
spend_limit: Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
1206+
$1,000 limit). Transaction requests above the spend limit will be declined. Note
1207+
that a spend limit of 0 is effectively no limit, and should only be used to
1208+
reset or remove a prior limit. Only a limit of 1 or above will result in
1209+
declined transactions due to checks against the card limit.
12101210
12111211
spend_limit_duration:
12121212
Spend limit duration values:
@@ -1342,11 +1342,11 @@ async def update(
13421342
pin_status: Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect
13431343
attempts). Can only be set to `OK` to unblock a card.
13441344
1345-
spend_limit: Amount (in cents) to limit approved authorizations. Transaction requests above
1346-
the spend limit will be declined. Note that a spend limit of 0 is effectively no
1347-
limit, and should only be used to reset or remove a prior limit. Only a limit of
1348-
1 or above will result in declined transactions due to checks against the card
1349-
limit.
1345+
spend_limit: Amount (in cents) to limit approved authorizations (e.g. 100000 would be a
1346+
$1,000 limit). Transaction requests above the spend limit will be declined. Note
1347+
that a spend limit of 0 is effectively no limit, and should only be used to
1348+
reset or remove a prior limit. Only a limit of 1 or above will result in
1349+
declined transactions due to checks against the card limit.
13501350
13511351
spend_limit_duration:
13521352
Spend limit duration values:
@@ -1498,9 +1498,9 @@ async def convert_physical(
14981498
to state `PENDING_FULFILLMENT` and fulfilled at next fulfillment cycle. Virtual
14991499
cards created on card programs which do not support physical cards cannot be
15001500
converted. The card program cannot be changed as part of the conversion. Cards
1501-
must be in a state of either `OPEN` or `PAUSED` to be converted. Only applies to
1502-
cards of type `VIRTUAL` (or existing cards with deprecated types of
1503-
`DIGITAL_WALLET` and `UNLOCKED`).
1501+
must be in an `OPEN` state to be converted. Only applies to cards of type
1502+
`VIRTUAL` (or existing cards with deprecated types of `DIGITAL_WALLET` and
1503+
`UNLOCKED`).
15041504
15051505
Args:
15061506
shipping_address: The shipping address this card will be sent to.

0 commit comments

Comments
 (0)