Class CardUpdateParams.Body.Builder
-
- All Implemented Interfaces:
public final class CardUpdateParams.Body.BuilderA builder for Body.
-
-
Method Summary
Modifier and Type Method Description final CardUpdateParams.Body.BuilderdigitalCardArtToken(String digitalCardArtToken)Specifies the digital card art to be displayed in the user’s digital wallet after tokenization. final CardUpdateParams.Body.BuilderdigitalCardArtToken(JsonField<String> digitalCardArtToken)Sets Builder.digitalCardArtToken to an arbitrary JSON value. final CardUpdateParams.Body.Buildermemo(String memo)Friendly name to identify the card. final CardUpdateParams.Body.Buildermemo(JsonField<String> memo)Sets Builder.memo to an arbitrary JSON value. final CardUpdateParams.Body.Builderpin(String pin)Encrypted PIN block (in base64). final CardUpdateParams.Body.Builderpin(JsonField<String> pin)Sets Builder.pin to an arbitrary JSON value. final CardUpdateParams.Body.BuilderpinStatus(CardUpdateParams.PinStatus pinStatus)Indicates if a card is blocked due a PIN status issue (e.g. final CardUpdateParams.Body.BuilderpinStatus(JsonField<CardUpdateParams.PinStatus> pinStatus)Sets Builder.pinStatus to an arbitrary JSON value. final CardUpdateParams.Body.BuilderspendLimit(Long spendLimit)Amount (in cents) to limit approved authorizations (e.g. final CardUpdateParams.Body.BuilderspendLimit(JsonField<Long> spendLimit)Sets Builder.spendLimit to an arbitrary JSON value. final CardUpdateParams.Body.BuilderspendLimitDuration(SpendLimitDuration spendLimitDuration)Spend limit duration values: ANNUALLY- Card will authorize transactions up to spend limit for the trailing year.FOREVER- Card will authorize only up to spend limit for the entire lifetime of the card.MONTHLY- Card will authorize transactions up to spend limit for the trailing month. To support recurring monthly payments, which can occur on different day every month, the time window we consider for monthly velocity starts 6 days after the current calendar date one month prior.TRANSACTION- Card will authorize multiple transactions if each individual transaction is under the spend limit.
final CardUpdateParams.Body.BuilderspendLimitDuration(JsonField<SpendLimitDuration> spendLimitDuration)Sets Builder.spendLimitDuration to an arbitrary JSON value. final CardUpdateParams.Body.Builderstate(CardUpdateParams.State state)Card state values: CLOSED- Card will no longer approve authorizations. Closing a card cannot be undone.OPEN- Card will approve authorizations (if they match card and account parameters).PAUSED- Card will decline authorizations, but can be resumed at a later time.
final CardUpdateParams.Body.Builderstate(JsonField<CardUpdateParams.State> state)Sets Builder.state to an arbitrary JSON value. final CardUpdateParams.Body.BuilderadditionalProperties(Map<String, JsonValue> additionalProperties)final CardUpdateParams.Body.BuilderputAdditionalProperty(String key, JsonValue value)final CardUpdateParams.Body.BuilderputAllAdditionalProperties(Map<String, JsonValue> additionalProperties)final CardUpdateParams.Body.BuilderremoveAdditionalProperty(String key)final CardUpdateParams.Body.BuilderremoveAllAdditionalProperties(Set<String> keys)final CardUpdateParams.Bodybuild()Returns an immutable instance of Body. -
-
Method Detail
-
digitalCardArtToken
final CardUpdateParams.Body.Builder digitalCardArtToken(String digitalCardArtToken)
Specifies the digital card art to be displayed in the user’s digital wallet after tokenization. This artwork must be approved by Mastercard and configured by Lithic to use. See Flexible Card Art Guide.
-
digitalCardArtToken
final CardUpdateParams.Body.Builder digitalCardArtToken(JsonField<String> digitalCardArtToken)
Sets Builder.digitalCardArtToken to an arbitrary JSON value.
You should usually call Builder.digitalCardArtToken with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
memo
final CardUpdateParams.Body.Builder memo(String memo)
Friendly name to identify the card.
-
memo
final CardUpdateParams.Body.Builder memo(JsonField<String> memo)
Sets Builder.memo to an arbitrary JSON value.
You should usually call Builder.memo with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pin
final CardUpdateParams.Body.Builder pin(String pin)
Encrypted PIN block (in base64). Only applies to cards of type
PHYSICALandVIRTUAL. Changing PIN also resets PIN status toOK. See Encrypted PIN Block.
-
pin
final CardUpdateParams.Body.Builder pin(JsonField<String> pin)
Sets Builder.pin to an arbitrary JSON value.
You should usually call Builder.pin with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
pinStatus
final CardUpdateParams.Body.Builder pinStatus(CardUpdateParams.PinStatus pinStatus)
Indicates if a card is blocked due a PIN status issue (e.g. excessive incorrect attempts). Can only be set to
OKto unblock a card.
-
pinStatus
final CardUpdateParams.Body.Builder pinStatus(JsonField<CardUpdateParams.PinStatus> pinStatus)
Sets Builder.pinStatus to an arbitrary JSON value.
You should usually call Builder.pinStatus with a well-typed PinStatus value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
spendLimit
final CardUpdateParams.Body.Builder spendLimit(Long spendLimit)
Amount (in cents) to limit approved authorizations (e.g. 100000 would be a $1,000 limit). Transaction requests above the spend limit will be declined. 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 card limit.
-
spendLimit
final CardUpdateParams.Body.Builder spendLimit(JsonField<Long> spendLimit)
Sets Builder.spendLimit to an arbitrary JSON value.
You should usually call Builder.spendLimit with a well-typed Long value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
spendLimitDuration
final CardUpdateParams.Body.Builder spendLimitDuration(SpendLimitDuration spendLimitDuration)
Spend limit duration values:
ANNUALLY- Card will authorize transactions up to spend limit for the trailing year.FOREVER- Card will authorize only up to spend limit for the entire lifetime of the card.MONTHLY- Card will authorize transactions up to spend limit for the trailing month. To support recurring monthly payments, which can occur on different day every month, the time window we consider for monthly velocity starts 6 days after the current calendar date one month prior.TRANSACTION- Card will authorize multiple transactions if each individual transaction is under the spend limit.
-
spendLimitDuration
final CardUpdateParams.Body.Builder spendLimitDuration(JsonField<SpendLimitDuration> spendLimitDuration)
Sets Builder.spendLimitDuration to an arbitrary JSON value.
You should usually call Builder.spendLimitDuration with a well-typed SpendLimitDuration value instead. This method is primarily for setting the field to an undocumented or not yet supported value.
-
state
final CardUpdateParams.Body.Builder state(CardUpdateParams.State state)
Card state values:
CLOSED- Card will no longer approve authorizations. Closing a card cannot be undone.OPEN- Card will approve authorizations (if they match card and account parameters).PAUSED- Card will decline authorizations, but can be resumed at a later time.
-
state
final CardUpdateParams.Body.Builder state(JsonField<CardUpdateParams.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.
-
additionalProperties
final CardUpdateParams.Body.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final CardUpdateParams.Body.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final CardUpdateParams.Body.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final CardUpdateParams.Body.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final CardUpdateParams.Body.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final CardUpdateParams.Body build()
Returns an immutable instance of Body.
Further updates to this Builder will not mutate the returned instance.
-
-
-