Class AccountUpdateParams.Builder
-
- All Implemented Interfaces:
public final class AccountUpdateParams.BuilderA builder for AccountUpdateParams.
-
-
Method Summary
Modifier and Type Method Description final AccountUpdateParams.BuilderaccountToken(String accountToken)final AccountUpdateParams.BuilderaccountToken(Optional<String> accountToken)Alias for calling Builder.accountToken with accountToken.orElse(null).final AccountUpdateParams.Builderbody(AccountUpdateParams.Body body)Sets the entire request body. final AccountUpdateParams.Buildercomment(String comment)Additional context or information related to the account. final AccountUpdateParams.Buildercomment(JsonField<String> comment)Sets Builder.comment to an arbitrary JSON value. final AccountUpdateParams.BuilderdailySpendLimit(Long dailySpendLimit)Amount (in cents) for the account's daily spend limit (e.g. final AccountUpdateParams.BuilderdailySpendLimit(JsonField<Long> dailySpendLimit)Sets Builder.dailySpendLimit to an arbitrary JSON value. final AccountUpdateParams.BuilderlifetimeSpendLimit(Long lifetimeSpendLimit)Amount (in cents) for the account's lifetime spend limit (e.g. final AccountUpdateParams.BuilderlifetimeSpendLimit(JsonField<Long> lifetimeSpendLimit)Sets Builder.lifetimeSpendLimit to an arbitrary JSON value. final AccountUpdateParams.BuildermonthlySpendLimit(Long monthlySpendLimit)Amount (in cents) for the account's monthly spend limit (e.g. final AccountUpdateParams.BuildermonthlySpendLimit(JsonField<Long> monthlySpendLimit)Sets Builder.monthlySpendLimit to an arbitrary JSON value. final AccountUpdateParams.Builderstate(AccountUpdateParams.State state)Account states. final AccountUpdateParams.Builderstate(JsonField<AccountUpdateParams.State> state)Sets Builder.state to an arbitrary JSON value. final AccountUpdateParams.Buildersubstatus(AccountUpdateParams.Substatus substatus)Account state substatus values: FRAUD_IDENTIFIED- The account has been recognized as being created or used with stolen or fabricated identity information, encompassing both true identity theft and synthetic identities.SUSPICIOUS_ACTIVITY- The account has exhibited suspicious behavior, such as unauthorized access or fraudulent transactions, necessitating further investigation.RISK_VIOLATION- The account has been involved in deliberate misuse by the legitimate account holder. Examples include disputing valid transactions without cause, falsely claiming non-receipt of goods, or engaging in intentional bust-out schemes to exploit account services.END_USER_REQUEST- The account holder has voluntarily requested the closure of the account for personal reasons. This encompasses situations such as bankruptcy, other financial considerations, or the account holder's death.ISSUER_REQUEST- The issuer has initiated the closure of the account due to business strategy, risk management, inactivity, product changes, regulatory concerns, or violations of terms and conditions.NOT_ACTIVE- The account has not had any transactions or payment activity within a specified period. This status applies to accounts that are paused or closed due to inactivity.INTERNAL_REVIEW- The account is temporarily paused pending further internal review. In future implementations, this status may prevent clients from activating the account via APIs until the review is completed.OTHER- The reason for the account's current status does not fall into any of the above categories. A comment should be provided to specify the particular reason.
final AccountUpdateParams.Buildersubstatus(JsonField<AccountUpdateParams.Substatus> substatus)Sets Builder.substatus to an arbitrary JSON value. final AccountUpdateParams.BuilderverificationAddress(AccountUpdateParams.VerificationAddress verificationAddress)Address used during Address Verification Service (AVS) checks during transactions if enabled via Auth Rules. final AccountUpdateParams.BuilderverificationAddress(JsonField<AccountUpdateParams.VerificationAddress> verificationAddress)Sets Builder.verificationAddress to an arbitrary JSON value. final AccountUpdateParams.BuilderadditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)final AccountUpdateParams.BuilderputAdditionalBodyProperty(String key, JsonValue value)final AccountUpdateParams.BuilderputAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)final AccountUpdateParams.BuilderremoveAdditionalBodyProperty(String key)final AccountUpdateParams.BuilderremoveAllAdditionalBodyProperties(Set<String> keys)final AccountUpdateParams.BuilderadditionalHeaders(Headers additionalHeaders)final AccountUpdateParams.BuilderadditionalHeaders(Map<String, Iterable<String>> additionalHeaders)final AccountUpdateParams.BuilderputAdditionalHeader(String name, String value)final AccountUpdateParams.BuilderputAdditionalHeaders(String name, Iterable<String> values)final AccountUpdateParams.BuilderputAllAdditionalHeaders(Headers additionalHeaders)final AccountUpdateParams.BuilderputAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)final AccountUpdateParams.BuilderreplaceAdditionalHeaders(String name, String value)final AccountUpdateParams.BuilderreplaceAdditionalHeaders(String name, Iterable<String> values)final AccountUpdateParams.BuilderreplaceAllAdditionalHeaders(Headers additionalHeaders)final AccountUpdateParams.BuilderreplaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)final AccountUpdateParams.BuilderremoveAdditionalHeaders(String name)final AccountUpdateParams.BuilderremoveAllAdditionalHeaders(Set<String> names)final AccountUpdateParams.BuilderadditionalQueryParams(QueryParams additionalQueryParams)final AccountUpdateParams.BuilderadditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)final AccountUpdateParams.BuilderputAdditionalQueryParam(String key, String value)final AccountUpdateParams.BuilderputAdditionalQueryParams(String key, Iterable<String> values)final AccountUpdateParams.BuilderputAllAdditionalQueryParams(QueryParams additionalQueryParams)final AccountUpdateParams.BuilderputAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)final AccountUpdateParams.BuilderreplaceAdditionalQueryParams(String key, String value)final AccountUpdateParams.BuilderreplaceAdditionalQueryParams(String key, Iterable<String> values)final AccountUpdateParams.BuilderreplaceAllAdditionalQueryParams(QueryParams additionalQueryParams)final AccountUpdateParams.BuilderreplaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)final AccountUpdateParams.BuilderremoveAdditionalQueryParams(String key)final AccountUpdateParams.BuilderremoveAllAdditionalQueryParams(Set<String> keys)final AccountUpdateParamsbuild()Returns an immutable instance of AccountUpdateParams. -
-
Method Detail
-
accountToken
final AccountUpdateParams.Builder accountToken(String accountToken)
-
accountToken
final AccountUpdateParams.Builder accountToken(Optional<String> accountToken)
Alias for calling Builder.accountToken with
accountToken.orElse(null).
-
body
final AccountUpdateParams.Builder body(AccountUpdateParams.Body body)
Sets the entire request body.
This is generally only useful if you are already constructing the body separately. Otherwise, it's more convenient to use the top-level setters instead:
-
comment
final AccountUpdateParams.Builder comment(String comment)
Additional context or information related to the account.
-
comment
final AccountUpdateParams.Builder comment(JsonField<String> comment)
Sets Builder.comment to an arbitrary JSON value.
You should usually call Builder.comment with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
dailySpendLimit
final AccountUpdateParams.Builder dailySpendLimit(Long dailySpendLimit)
Amount (in cents) for the account's daily spend limit (e.g. 100000 would be a
$1,000 limit). By default the daily spend limit is set to $
1,250.
-
dailySpendLimit
final AccountUpdateParams.Builder dailySpendLimit(JsonField<Long> dailySpendLimit)
Sets Builder.dailySpendLimit to an arbitrary JSON value.
You should usually call Builder.dailySpendLimit with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
lifetimeSpendLimit
final AccountUpdateParams.Builder lifetimeSpendLimit(Long lifetimeSpendLimit)
Amount (in cents) for the account's lifetime spend limit (e.g. 100000 would be a $1,000 limit). Once this limit is reached, no transactions will be accepted on any card created for this account until the limit is updated. Note that a spend limit of 0 is effectively no limit, and should only be used to reset or remove a prior limit. Only a limit of 1 or above will result in declined transactions due to checks against the account limit. This behavior differs from the daily spend limit and the monthly spend limit.
-
lifetimeSpendLimit
final AccountUpdateParams.Builder lifetimeSpendLimit(JsonField<Long> lifetimeSpendLimit)
Sets Builder.lifetimeSpendLimit to an arbitrary JSON value.
You should usually call Builder.lifetimeSpendLimit with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
monthlySpendLimit
final AccountUpdateParams.Builder monthlySpendLimit(Long monthlySpendLimit)
Amount (in cents) for the account's monthly spend limit (e.g. 100000 would be a
$1,000 limit). By default the monthly spend limit is set to $
5,000.
-
monthlySpendLimit
final AccountUpdateParams.Builder monthlySpendLimit(JsonField<Long> monthlySpendLimit)
Sets Builder.monthlySpendLimit to an arbitrary JSON value.
You should usually call Builder.monthlySpendLimit with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final AccountUpdateParams.Builder state(AccountUpdateParams.State state)
Account states.
-
state
final AccountUpdateParams.Builder state(JsonField<AccountUpdateParams.State> state)
Sets Builder.state to an arbitrary JSON value.
You should usually call Builder.state with a well-typed State value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
substatus
final AccountUpdateParams.Builder substatus(AccountUpdateParams.Substatus substatus)
Account state substatus values:
FRAUD_IDENTIFIED- The account has been recognized as being created or used with stolen or fabricated identity information, encompassing both true identity theft and synthetic identities.SUSPICIOUS_ACTIVITY- The account has exhibited suspicious behavior, such as unauthorized access or fraudulent transactions, necessitating further investigation.RISK_VIOLATION- The account has been involved in deliberate misuse by the legitimate account holder. Examples include disputing valid transactions without cause, falsely claiming non-receipt of goods, or engaging in intentional bust-out schemes to exploit account services.END_USER_REQUEST- The account holder has voluntarily requested the closure of the account for personal reasons. This encompasses situations such as bankruptcy, other financial considerations, or the account holder's death.ISSUER_REQUEST- The issuer has initiated the closure of the account due to business strategy, risk management, inactivity, product changes, regulatory concerns, or violations of terms and conditions.NOT_ACTIVE- The account has not had any transactions or payment activity within a specified period. This status applies to accounts that are paused or closed due to inactivity.INTERNAL_REVIEW- The account is temporarily paused pending further internal review. In future implementations, this status may prevent clients from activating the account via APIs until the review is completed.OTHER- The reason for the account's current status does not fall into any of the above categories. A comment should be provided to specify the particular reason.
-
substatus
final AccountUpdateParams.Builder substatus(JsonField<AccountUpdateParams.Substatus> substatus)
Sets Builder.substatus to an arbitrary JSON value.
You should usually call Builder.substatus with a well-typed Substatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
verificationAddress
@Deprecated(message = "deprecated") final AccountUpdateParams.Builder verificationAddress(AccountUpdateParams.VerificationAddress verificationAddress)
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.
-
verificationAddress
@Deprecated(message = "deprecated") final AccountUpdateParams.Builder verificationAddress(JsonField<AccountUpdateParams.VerificationAddress> verificationAddress)
Sets Builder.verificationAddress to an arbitrary JSON value.
You should usually call Builder.verificationAddress with a well-typed VerificationAddress value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
additionalBodyProperties
final AccountUpdateParams.Builder additionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
putAdditionalBodyProperty
final AccountUpdateParams.Builder putAdditionalBodyProperty(String key, JsonValue value)
-
putAllAdditionalBodyProperties
final AccountUpdateParams.Builder putAllAdditionalBodyProperties(Map<String, JsonValue> additionalBodyProperties)
-
removeAdditionalBodyProperty
final AccountUpdateParams.Builder removeAdditionalBodyProperty(String key)
-
removeAllAdditionalBodyProperties
final AccountUpdateParams.Builder removeAllAdditionalBodyProperties(Set<String> keys)
-
additionalHeaders
final AccountUpdateParams.Builder additionalHeaders(Headers additionalHeaders)
-
additionalHeaders
final AccountUpdateParams.Builder additionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
putAdditionalHeader
final AccountUpdateParams.Builder putAdditionalHeader(String name, String value)
-
putAdditionalHeaders
final AccountUpdateParams.Builder putAdditionalHeaders(String name, Iterable<String> values)
-
putAllAdditionalHeaders
final AccountUpdateParams.Builder putAllAdditionalHeaders(Headers additionalHeaders)
-
putAllAdditionalHeaders
final AccountUpdateParams.Builder putAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
replaceAdditionalHeaders
final AccountUpdateParams.Builder replaceAdditionalHeaders(String name, String value)
-
replaceAdditionalHeaders
final AccountUpdateParams.Builder replaceAdditionalHeaders(String name, Iterable<String> values)
-
replaceAllAdditionalHeaders
final AccountUpdateParams.Builder replaceAllAdditionalHeaders(Headers additionalHeaders)
-
replaceAllAdditionalHeaders
final AccountUpdateParams.Builder replaceAllAdditionalHeaders(Map<String, Iterable<String>> additionalHeaders)
-
removeAdditionalHeaders
final AccountUpdateParams.Builder removeAdditionalHeaders(String name)
-
removeAllAdditionalHeaders
final AccountUpdateParams.Builder removeAllAdditionalHeaders(Set<String> names)
-
additionalQueryParams
final AccountUpdateParams.Builder additionalQueryParams(QueryParams additionalQueryParams)
-
additionalQueryParams
final AccountUpdateParams.Builder additionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
putAdditionalQueryParam
final AccountUpdateParams.Builder putAdditionalQueryParam(String key, String value)
-
putAdditionalQueryParams
final AccountUpdateParams.Builder putAdditionalQueryParams(String key, Iterable<String> values)
-
putAllAdditionalQueryParams
final AccountUpdateParams.Builder putAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
putAllAdditionalQueryParams
final AccountUpdateParams.Builder putAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
replaceAdditionalQueryParams
final AccountUpdateParams.Builder replaceAdditionalQueryParams(String key, String value)
-
replaceAdditionalQueryParams
final AccountUpdateParams.Builder replaceAdditionalQueryParams(String key, Iterable<String> values)
-
replaceAllAdditionalQueryParams
final AccountUpdateParams.Builder replaceAllAdditionalQueryParams(QueryParams additionalQueryParams)
-
replaceAllAdditionalQueryParams
final AccountUpdateParams.Builder replaceAllAdditionalQueryParams(Map<String, Iterable<String>> additionalQueryParams)
-
removeAdditionalQueryParams
final AccountUpdateParams.Builder removeAdditionalQueryParams(String key)
-
removeAllAdditionalQueryParams
final AccountUpdateParams.Builder removeAllAdditionalQueryParams(Set<String> keys)
-
build
final AccountUpdateParams build()
Returns an immutable instance of AccountUpdateParams.
Further updates to this Builder will not mutate the returned instance.
-
-
-