Class CardLimitSettings.PurchaseLimit
java.lang.Object
com.thalesgroup.gemalto.d1.card.cardservice.CardLimitSettings.PurchaseLimit
- Enclosing class:
- CardLimitSettings
All available purchases limits defined on the card.
-
Constructor Summary
ConstructorsConstructorDescriptionPurchaseLimit(CardLimitSettings.PeriodType periodType, Integer fixedPeriodIndex, Long maxLimit, Long limit, Double currentAmount) Internal constructor for PurchaseLimit object. -
Method Summary
Modifier and TypeMethodDescriptionGets the current ammount of money that is already spent.Gets the period index for purchaseWeekly, purchaseMonthly or purchaseYearly fixed period.getLimit()Gets the current limit set by the end user/issuer on the card.Gets the maximum limit set by the issuer.Gets the limit type for the period.voidSets the current limit set by the end user/issuer on the card.
-
Constructor Details
-
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 Details
-
getPeriodType
Gets the limit type for the period. -
getFixedPeriodIndex
Gets the period index for purchaseWeekly, purchaseMonthly or purchaseYearly fixed period. -
getMaxLimit
Gets the maximum limit set by the issuer. -
getLimit
Gets the current limit set by the end user/issuer on the card. -
setLimit
Sets the current limit set by the end user/issuer on the card. -
getCurrentAmount
Gets the current ammount of money that is already spent.
-