@@ -80,10 +80,22 @@ def update(
8080 self ,
8181 account_token : str ,
8282 * ,
83+ comment : str | NotGiven = NOT_GIVEN ,
8384 daily_spend_limit : int | NotGiven = NOT_GIVEN ,
8485 lifetime_spend_limit : int | NotGiven = NOT_GIVEN ,
8586 monthly_spend_limit : int | NotGiven = NOT_GIVEN ,
8687 state : Literal ["ACTIVE" , "PAUSED" , "CLOSED" ] | NotGiven = NOT_GIVEN ,
88+ substatus : Literal [
89+ "FRAUD_IDENTIFIED" ,
90+ "SUSPICIOUS_ACTIVITY" ,
91+ "RISK_VIOLATION" ,
92+ "END_USER_REQUEST" ,
93+ "ISSUER_REQUEST" ,
94+ "NOT_ACTIVE" ,
95+ "INTERNAL_REVIEW" ,
96+ "OTHER" ,
97+ ]
98+ | NotGiven = NOT_GIVEN ,
8799 verification_address : account_update_params .VerificationAddress | NotGiven = NOT_GIVEN ,
88100 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
89101 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -99,6 +111,8 @@ def update(
99111 in the `PAUSED` state will not be able to transact or create new cards.
100112
101113 Args:
114+ comment: Additional context or information related to the account.
115+
102116 daily_spend_limit: Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
103117 $1,000 limit). By default the daily spend limit is set to $1,250.
104118
@@ -115,6 +129,35 @@ def update(
115129
116130 state: Account states.
117131
132+ substatus:
133+ Account state substatus values:
134+
135+ - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
136+ with stolen or fabricated identity information, encompassing both true
137+ identity theft and synthetic identities.
138+ - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
139+ unauthorized access or fraudulent transactions, necessitating further
140+ investigation.
141+ - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
142+ legitimate account holder. Examples include disputing valid transactions
143+ without cause, falsely claiming non-receipt of goods, or engaging in
144+ intentional bust-out schemes to exploit account services.
145+ - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
146+ of the account for personal reasons. This encompasses situations such as
147+ bankruptcy, other financial considerations, or the account holder's death.
148+ - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
149+ business strategy, risk management, inactivity, product changes, regulatory
150+ concerns, or violations of terms and conditions.
151+ - `NOT_ACTIVE` - The account has not had any transactions or payment activity
152+ within a specified period. This status applies to accounts that are paused or
153+ closed due to inactivity.
154+ - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
155+ review. In future implementations, this status may prevent clients from
156+ activating the account via APIs until the review is completed.
157+ - `OTHER` - The reason for the account's current status does not fall into any
158+ of the above categories. A comment should be provided to specify the
159+ particular reason.
160+
118161 verification_address: Address used during Address Verification Service (AVS) checks during
119162 transactions if enabled via Auth Rules. This field is deprecated as AVS checks
120163 are no longer supported by Auth Rules. The field will be removed from the schema
@@ -134,10 +177,12 @@ def update(
134177 f"/v1/accounts/{ account_token } " ,
135178 body = maybe_transform (
136179 {
180+ "comment" : comment ,
137181 "daily_spend_limit" : daily_spend_limit ,
138182 "lifetime_spend_limit" : lifetime_spend_limit ,
139183 "monthly_spend_limit" : monthly_spend_limit ,
140184 "state" : state ,
185+ "substatus" : substatus ,
141186 "verification_address" : verification_address ,
142187 },
143188 account_update_params .AccountUpdateParams ,
@@ -307,10 +352,22 @@ async def update(
307352 self ,
308353 account_token : str ,
309354 * ,
355+ comment : str | NotGiven = NOT_GIVEN ,
310356 daily_spend_limit : int | NotGiven = NOT_GIVEN ,
311357 lifetime_spend_limit : int | NotGiven = NOT_GIVEN ,
312358 monthly_spend_limit : int | NotGiven = NOT_GIVEN ,
313359 state : Literal ["ACTIVE" , "PAUSED" , "CLOSED" ] | NotGiven = NOT_GIVEN ,
360+ substatus : Literal [
361+ "FRAUD_IDENTIFIED" ,
362+ "SUSPICIOUS_ACTIVITY" ,
363+ "RISK_VIOLATION" ,
364+ "END_USER_REQUEST" ,
365+ "ISSUER_REQUEST" ,
366+ "NOT_ACTIVE" ,
367+ "INTERNAL_REVIEW" ,
368+ "OTHER" ,
369+ ]
370+ | NotGiven = NOT_GIVEN ,
314371 verification_address : account_update_params .VerificationAddress | NotGiven = NOT_GIVEN ,
315372 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
316373 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -326,6 +383,8 @@ async def update(
326383 in the `PAUSED` state will not be able to transact or create new cards.
327384
328385 Args:
386+ comment: Additional context or information related to the account.
387+
329388 daily_spend_limit: Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
330389 $1,000 limit). By default the daily spend limit is set to $1,250.
331390
@@ -342,6 +401,35 @@ async def update(
342401
343402 state: Account states.
344403
404+ substatus:
405+ Account state substatus values:
406+
407+ - `FRAUD_IDENTIFIED` - The account has been recognized as being created or used
408+ with stolen or fabricated identity information, encompassing both true
409+ identity theft and synthetic identities.
410+ - `SUSPICIOUS_ACTIVITY` - The account has exhibited suspicious behavior, such as
411+ unauthorized access or fraudulent transactions, necessitating further
412+ investigation.
413+ - `RISK_VIOLATION` - The account has been involved in deliberate misuse by the
414+ legitimate account holder. Examples include disputing valid transactions
415+ without cause, falsely claiming non-receipt of goods, or engaging in
416+ intentional bust-out schemes to exploit account services.
417+ - `END_USER_REQUEST` - The account holder has voluntarily requested the closure
418+ of the account for personal reasons. This encompasses situations such as
419+ bankruptcy, other financial considerations, or the account holder's death.
420+ - `ISSUER_REQUEST` - The issuer has initiated the closure of the account due to
421+ business strategy, risk management, inactivity, product changes, regulatory
422+ concerns, or violations of terms and conditions.
423+ - `NOT_ACTIVE` - The account has not had any transactions or payment activity
424+ within a specified period. This status applies to accounts that are paused or
425+ closed due to inactivity.
426+ - `INTERNAL_REVIEW` - The account is temporarily paused pending further internal
427+ review. In future implementations, this status may prevent clients from
428+ activating the account via APIs until the review is completed.
429+ - `OTHER` - The reason for the account's current status does not fall into any
430+ of the above categories. A comment should be provided to specify the
431+ particular reason.
432+
345433 verification_address: Address used during Address Verification Service (AVS) checks during
346434 transactions if enabled via Auth Rules. This field is deprecated as AVS checks
347435 are no longer supported by Auth Rules. The field will be removed from the schema
@@ -361,10 +449,12 @@ async def update(
361449 f"/v1/accounts/{ account_token } " ,
362450 body = await async_maybe_transform (
363451 {
452+ "comment" : comment ,
364453 "daily_spend_limit" : daily_spend_limit ,
365454 "lifetime_spend_limit" : lifetime_spend_limit ,
366455 "monthly_spend_limit" : monthly_spend_limit ,
367456 "state" : state ,
457+ "substatus" : substatus ,
368458 "verification_address" : verification_address ,
369459 },
370460 account_update_params .AccountUpdateParams ,
0 commit comments