com.foxinmy.weixin4j.model.card
Class CashCoupon

java.lang.Object
  extended by com.foxinmy.weixin4j.model.card.CardCoupon
      extended by com.foxinmy.weixin4j.model.card.CashCoupon

public class CashCoupon
extends CardCoupon

代金券

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)

Constructor Summary
CashCoupon(CouponBaseInfo couponBaseInfo, double reduceCost)
          构造代金券
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class CardCoupon
Returns:

toString

public String toString()
Overrides:
toString in class CardCoupon


Copyright © 2014–2017. All rights reserved.