Class SurchargeDiscountModel
- java.lang.Object
-
- ru.easydonate.easydonate4j.api.v3.data.model.jackson.plugin.easydonate.surcharge.SurchargeDiscountModel
-
- All Implemented Interfaces:
SurchargeDiscount
,ru.easydonate.easydonate4j.data.model.PrettyPrintable
public class SurchargeDiscountModel extends Object implements SurchargeDiscount
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SurchargeDiscountModel.ExtraData
-
Constructor Summary
Constructors Constructor Description SurchargeDiscountModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull OptionalInt
getCategoryId()
@NotNull OptionalInt
getCurrentMostExpensiveId()
@NotNull Optional<String>
getDescription()
@NotNull OptionalDouble
getOldPrice()
@NotNull ProductType
getType()
@NotNull OptionalInt
getWithdrawCommandsDelay()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ru.easydonate.easydonate4j.data.model.PrettyPrintable
toPrettyString
-
Methods inherited from interface ru.easydonate.easydonate4j.api.v3.data.model.plugin.easydonate.surcharge.SurchargeDiscount
getAdditionalFields, getAmount, getCommands, getCreatedAt, getDiscountAmount, getIconImage, getId, getName, getPrice, getShopId, getTypeRaw, getUpdatedAt, getWithdrawCommands, isHidden, isOneTimePurchasable
-
-
-
-
Method Detail
-
getType
@NotNull public @NotNull ProductType getType()
- Specified by:
getType
in interfaceSurchargeDiscount
-
getDescription
@NotNull public @NotNull Optional<String> getDescription()
- Specified by:
getDescription
in interfaceSurchargeDiscount
-
getOldPrice
@NotNull public @NotNull OptionalDouble getOldPrice()
- Specified by:
getOldPrice
in interfaceSurchargeDiscount
-
getCategoryId
@NotNull public @NotNull OptionalInt getCategoryId()
- Specified by:
getCategoryId
in interfaceSurchargeDiscount
-
getWithdrawCommandsDelay
@NotNull public @NotNull OptionalInt getWithdrawCommandsDelay()
- Specified by:
getWithdrawCommandsDelay
in interfaceSurchargeDiscount
-
getCurrentMostExpensiveId
@NotNull public @NotNull OptionalInt getCurrentMostExpensiveId()
- Specified by:
getCurrentMostExpensiveId
in interfaceSurchargeDiscount
-
-