Class CardLimitSettings.PurchaseLimit
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.cardservice.CardLimitSettings.PurchaseLimit
-
- Enclosing class:
- CardLimitSettings
public static final class CardLimitSettings.PurchaseLimit extends Object
All available purchases limits defined on the card.
-
-
Constructor Summary
Constructors Constructor Description PurchaseLimit(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 purchaseWeekly, purchaseMonthly or purchaseYearly 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
-
PurchaseLimit
public PurchaseLimit(@NonNull CardLimitSettings.PeriodType periodType, @Nullable Integer fixedPeriodIndex, @NonNull Long maxLimit, @NonNull Long limit, @NonNull Double currentAmount)
Internal constructor for PurchaseLimit object. Please callCardSettings.getLimit().getDailyPurchaseLimit()orCardSettings.getLimit().getWeeklyPurchaseLimit()orCardSettings.getLimit().getMonthlyPurchaseLimit()orCardSettings.getLimit().getYearlyPurchaseLimit()API to initialize PurchaseLimit 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 purchaseWeekly, purchaseMonthly or purchaseYearly 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.
-
-