Package com.foxinmy.weixin4j.model.card
Class DiscountCoupon
- java.lang.Object
-
- com.foxinmy.weixin4j.model.card.CardCoupon
-
- com.foxinmy.weixin4j.model.card.DiscountCoupon
-
public class DiscountCoupon extends CardCoupon
折扣券- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
-
-
Constructor Summary
Constructors Constructor Description DiscountCoupon(CouponBaseInfo couponBaseInfo, int discount)
构造折扣券
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CardType
getCardType()
卡券类型int
getDiscount()
String
toString()
-
Methods inherited from class com.foxinmy.weixin4j.model.card.CardCoupon
cleanCantUpdateField, getCouponAdvanceInfo, getCouponBaseInfo, setCouponAdvanceInfo
-
-
-
-
Constructor Detail
-
DiscountCoupon
public DiscountCoupon(CouponBaseInfo couponBaseInfo, int discount)
构造折扣券- Parameters:
couponBaseInfo
- 基础信息discount
- 打折额度百分百,如:传入30就是七折。
-
-
Method Detail
-
getDiscount
public int getDiscount()
-
getCardType
public CardType getCardType()
Description copied from class:CardCoupon
卡券类型- Specified by:
getCardType
in classCardCoupon
- Returns:
-
toString
public String toString()
- Overrides:
toString
in classCardCoupon
-
-