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 CardType
getCardType()
卡券类型double
getFormatLeastCost()
调用接口获取单位为分,get方法转换为元方便使用double
getFormatReduceCost()
调用接口获取单位为分,get方法转换为元方便使用int
getLeastCost()
int
getReduceCost()
void
setLeastCost(double leastCost)
String
toString()
-
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:
getCardType
in classCardCoupon
- Returns:
-
toString
public String toString()
- Overrides:
toString
in classCardCoupon
-
-