Package com.foxinmy.weixin4j.model.card
Class CashCoupon
- java.lang.Object
-
- com.foxinmy.weixin4j.model.card.CardCoupon
-
- com.foxinmy.weixin4j.model.card.CashCoupon
-
public class CashCoupon extends CardCoupon
代金券- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description CashCoupon(CouponBaseInfo couponBaseInfo, double reduceCost)构造代金券
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CardTypegetCardType()卡券类型doublegetFormatLeastCost()调用接口获取单位为分,get方法转换为元方便使用doublegetFormatReduceCost()调用接口获取单位为分,get方法转换为元方便使用intgetLeastCost()intgetReduceCost()voidsetLeastCost(double leastCost)StringtoString()-
Methods inherited from class com.foxinmy.weixin4j.model.card.CardCoupon
cleanCantUpdateField, getCouponAdvanceInfo, getCouponBaseInfo, setCouponAdvanceInfo
-
-
-
-
Constructor Detail
-
CashCoupon
public CashCoupon(CouponBaseInfo couponBaseInfo, double reduceCost)
构造代金券- Parameters:
couponBaseInfo- 基础信息reduceCost- 减免金额 单位元
-
-
Method Detail
-
getLeastCost
public int getLeastCost()
-
getFormatLeastCost
public double getFormatLeastCost()
调用接口获取单位为分,get方法转换为元方便使用- Returns:
- 元单位
-
setLeastCost
public void setLeastCost(double leastCost)
-
getReduceCost
public int getReduceCost()
-
getFormatReduceCost
public double getFormatReduceCost()
调用接口获取单位为分,get方法转换为元方便使用- Returns:
- 元单位
-
getCardType
public CardType getCardType()
Description copied from class:CardCoupon卡券类型- Specified by:
getCardTypein classCardCoupon- Returns:
-
toString
public String toString()
- Overrides:
toStringin classCardCoupon
-
-