Class CardControlSettings
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.cardservice.CardControlSettings
-
public final class CardControlSettings extends Object
The card settings for the card issued by D1.- Since:
- 4.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardControlSettings.GeographyThe geographical settings for the card issued by D1.static classCardControlSettings.MerchantThe set of controls applied on merchant category for the card issued by D1.static classCardControlSettings.RegionEnumeration type for card geographical region settings.
-
Constructor Summary
Constructors Constructor Description CardControlSettings()Internal constructor for CardSettingsControl object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getDeniedCurrencyList()Gets the list of currencies, in ISO 4217 alpha code format, that will not be authorized.CardControlSettings.GeographygetGeography()Gets the list of countries and regions that the card is allowed to use.CardControlSettings.MerchantgetMerchant()The set of controls which is applied on the merchant category.BooleanisAbroadPaymentEnabled()Enable/disable the abroad payment setting of the card.BooleanisATMWithdrawalEnabled()Enable/disable the ATM withdrawal setting of the card.BooleanisContactlessEnabled()Enable/disable the contactless payment setting of the card.BooleanisMagneticStripeEnabled()To enable/disable the magnetic stripe setting of the card.BooleanisOnlinePaymentEnabled()Enable/Disable online payment setting of the card.voidrestore()Restores the card control settings.voidsetAbroadPaymentEnabled(Boolean enabled)To enable/disable abroad payment setting of the card.voidsetATMWithdrawalEnabled(Boolean enabled)To enable/disable the ATM withdrawal setting of the card.voidsetContactlessEnabled(Boolean enabled)To enable/disable the contactless payment setting of the card.voidsetDeniedCurrencyList(List<String> currencyList)Defines the list of currencies, in ISO 4217 alpha code format, that will not be authorized.voidsetGeography(CardControlSettings.Geography geography)Defines the list of countries and regions that the card is allowed to use.voidsetMagneticStripeEnabled(Boolean enabled)To enable/disable the magneticStripe setting of the card.voidsetMerchant(CardControlSettings.Merchant merchant)Sets the set of controls which is applied on the merchant category.voidsetOnlinePaymentEnabled(Boolean enabled)To enable/disable the online payment setting of the card.
-
-
-
Constructor Detail
-
CardControlSettings
public CardControlSettings()
Internal constructor for CardSettingsControl object. Call theCardSettings.getControlSetting()API to initialize the CardControlSettings object.
-
-
Method Detail
-
isOnlinePaymentEnabled
@NonNull public Boolean isOnlinePaymentEnabled()
Enable/Disable online payment setting of the card.
-
setOnlinePaymentEnabled
public void setOnlinePaymentEnabled(@NonNull Boolean enabled)
To enable/disable the online payment setting of the card. Mandatory for getCardSettings API.
-
isContactlessEnabled
@Nullable public Boolean isContactlessEnabled()
Enable/disable the contactless payment setting of the card.
-
setContactlessEnabled
public void setContactlessEnabled(@NonNull Boolean enabled)
To enable/disable the contactless payment setting of the card. This is an optional parameter for getCardSettings API. In cases where this parameter is not available in getCardSettings() API and the end user tries to update it, D1 SDK will returnD1Exception.ErrorCode.ERROR_CARD_SETTINGS_OPERATION_NOT_ALLOWED.
-
isMagneticStripeEnabled
@Nullable public Boolean isMagneticStripeEnabled()
To enable/disable the magnetic stripe setting of the card.
-
setMagneticStripeEnabled
public void setMagneticStripeEnabled(@NonNull Boolean enabled)
To enable/disable the magneticStripe setting of the card. This is an optional parameter for getCardSettings API. In cases where this parameter is not available in getCardSettings() API and the end user tries to update it, D1 SDK will returnD1Exception.ErrorCode.ERROR_CARD_SETTINGS_OPERATION_NOT_ALLOWED.
-
isATMWithdrawalEnabled
@Nullable public Boolean isATMWithdrawalEnabled()
Enable/disable the ATM withdrawal setting of the card.
-
setATMWithdrawalEnabled
public void setATMWithdrawalEnabled(@NonNull Boolean enabled)
To enable/disable the ATM withdrawal setting of the card. This is an optional parameter for getCardSettings API. In cases where this parameter is not available in getCardSettings() API and the end user tries to update it, D1 SDK will returnD1Exception.ErrorCode.ERROR_CARD_SETTINGS_OPERATION_NOT_ALLOWED.
-
isAbroadPaymentEnabled
@NonNull public Boolean isAbroadPaymentEnabled()
Enable/disable the abroad payment setting of the card.
-
setAbroadPaymentEnabled
public void setAbroadPaymentEnabled(@NonNull Boolean enabled)
To enable/disable abroad payment setting of the card. Mandatory for getCardSettings API.
-
getDeniedCurrencyList
@NonNull public List<String> getDeniedCurrencyList()
Gets the list of currencies, in ISO 4217 alpha code format, that will not be authorized. Mandatory for getCardSettings API
-
setDeniedCurrencyList
public void setDeniedCurrencyList(@NonNull List<String> currencyList)
Defines the list of currencies, in ISO 4217 alpha code format, that will not be authorized.
-
getGeography
@NonNull public CardControlSettings.Geography getGeography()
Gets the list of countries and regions that the card is allowed to use. If the geographical location is not defined then no geography control is performed; the card can be used worldwide. Mandatory for getCardSettings API
-
setGeography
public void setGeography(@NonNull CardControlSettings.Geography geography)
Defines the list of countries and regions that the card is allowed to use. If the geographical location is not defined then no geography control is performed, the card can be used worldwide.
-
getMerchant
public CardControlSettings.Merchant getMerchant()
The set of controls which is applied on the merchant category. Mandatory for getCardSettings API.
-
setMerchant
public void setMerchant(CardControlSettings.Merchant merchant)
Sets the set of controls which is applied on the merchant category.
-
restore
public void restore()
Restores the card control settings.
-
-