Class CardLimitSettings.WithdrawalLimit
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.cardservice.CardLimitSettings.WithdrawalLimit
-
- Enclosing class:
- CardLimitSettings
public static final class CardLimitSettings.WithdrawalLimit extends Object
All available withdrawal limits defined on the card.
-
-
Constructor Summary
Constructors Constructor Description WithdrawalLimit(CardLimitSettings.PeriodType periodType, Integer fixedPeriodIndex, Long maxLimit, Long limit, Double currentAmount)Internal constructor for PurchaseLimit object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetCurrentAmount()Gets the current ammount of money that is already spent.IntegergetFixedPeriodIndex()Gets the period index for withdrawalWeekly, withdrawalMonthly or withdrawalYearly fixed period.LonggetLimit()Gets the current limit set by the end user/issuer on the card.LonggetMaxLimit()Gets the maximum limit set by the issuer.CardLimitSettings.PeriodTypegetPeriodType()Gets the limit type for the period.voidsetLimit(Long amount)Sets the current limit set by the end user/issuer on the card.
-
-
-
Constructor Detail
-
WithdrawalLimit
public WithdrawalLimit(@NonNull CardLimitSettings.PeriodType periodType, @Nullable Integer fixedPeriodIndex, @NonNull Long maxLimit, @NonNull Long limit, @NonNull Double currentAmount)
Internal constructor for PurchaseLimit object. Call theCardSettings.getLimit().getDailyWithdrawalLimit(),CardSettings.getLimit().getWeeklyWithdrawalLimit(),CardSettings.getLimit().getMonthlyWithdrawalLimit(), orCardSettings.getLimit().getYearlyWithdrawalLimit()API to initialize the WithdrawalLimit object.
-
-
Method Detail
-
getPeriodType
@NonNull public CardLimitSettings.PeriodType getPeriodType()
Gets the limit type for the period.
-
getFixedPeriodIndex
@Nullable public Integer getFixedPeriodIndex()
Gets the period index for withdrawalWeekly, withdrawalMonthly or withdrawalYearly fixed period.
-
getLimit
@NonNull public Long getLimit()
Gets the current limit set by the end user/issuer on the card.
-
setLimit
public void setLimit(@NonNull Long amount)
Sets the current limit set by the end user/issuer on the card.
-
-