Package com.foxinmy.weixin4j.model.card
Class CardCoupons
- java.lang.Object
-
- com.foxinmy.weixin4j.model.card.CardCoupons
-
public final class CardCoupons extends Object
卡券构造器- Since:
- JDK 1.6
- Author:
- jinyu(foxinmy@gmail.com)
- See Also:
CashCoupon
,DiscountCoupon
,GeneralCoupon
,GiftCoupon
,GrouponCoupon
-
-
Method Summary
-
-
-
Method Detail
-
customBase
public static CouponBaseInfo.Builder customBase()
卡券基础信息构造器- Returns:
-
customAdvance
public static CouponAdvanceInfo.Builder customAdvance()
卡券高级信息构造器- Returns:
-
customMemberCard
public static MemberCard.Builder customMemberCard()
-
customGiftCard
public static GiftCard.Builder customGiftCard()
礼品卡信息构造器- Returns:
-
customCardPageTheme
public static PageTheme.Builder customCardPageTheme()
礼品卡货架主题信息构造器- Returns:
-
customCardPage
public static GiftCardPage.Builder customCardPage()
礼品卡货架信息构造器- Returns:
-
createCashCoupon
public static CardCoupon createCashCoupon(CouponBaseInfo.Builder builder, double reduceCost, double leastCost)
创建代金券- Parameters:
builder
- 卡券基础信息构造器 必填reduceCost
- 减免金额 (单位为元) 必填leastCost
- 起用金额(单位为元),如果无起用门槛则填0
-
createDiscountCoupon
public static CardCoupon createDiscountCoupon(CouponBaseInfo.Builder builder, int discount)
创建折扣券- Parameters:
builder
- 卡券基础信息构造器 必填discount
- 打折额度百分百,如:传入30就是七折 必填
-
createGeneralCoupon
public static CardCoupon createGeneralCoupon(CouponBaseInfo.Builder builder, String explain)
创建普通优惠券- Parameters:
builder
- 卡券基础信息构造器 必填explain
- 优惠详情 如:音乐木盒 必填
-
createGiftCoupon
public static CardCoupon createGiftCoupon(CouponBaseInfo.Builder builder, String explain)
创建普通优惠券- Parameters:
builder
- 卡券基础信息构造器 必填explain
- 兑换说明 如:可兑换音乐木盒一个 必填
-
createGrouponCoupon
public static CardCoupon createGrouponCoupon(CouponBaseInfo.Builder builder, String explain)
创建团购券- Parameters:
builder
- 卡券基础信息构造器 必填explain
- 团购详情 如:双人套餐\n -进口红酒一支。\n孜然牛肉一份 必填
-
createMemberCard
public static MemberCard createMemberCard(CouponBaseInfo.Builder baseBuilder, MemberCard.Builder memberCardBudiler)
-
createVoucherCard
public static VoucherCard createVoucherCard(CouponBaseInfo.Builder baseBuilder, GiftCard.Builder giftCardBuilder)
创建单品类礼品卡- Parameters:
baseBuilder
- 卡券基础信息构造器 必填giftCardBuilder
- 礼品卡自身参数构造器 必填- Returns:
-
createGiftCard
public static GiftCard createGiftCard(CouponBaseInfo.Builder baseBuilder, GiftCard.Builder giftCardBuilder)
创建储值类礼品卡- Parameters:
baseBuilder
-giftCardBuilder
-- Returns:
-
-