Package com.foxinmy.weixin4j.model.card
Class GiftCard.Builder
- java.lang.Object
-
- com.foxinmy.weixin4j.model.card.GiftCard.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GiftCard.Builder
autoActivate(boolean autoActivate)
设置礼品卡是否自动激活,若开发者不需要额外激活流程则填写true。GiftCard.Builder
backgroundPicUrl(String url)
设置礼品卡背景图片GiftCard.Builder
customField1(String name, String url)
设置自定义会员信息类目 注意事项:开发者仅能在supply_balance和custom_field1、custom_field2、custom_field3中选择最多3个填写,否则报错。GiftCard.Builder
customField2(String name, String url)
设置自定义会员信息类目 注意事项:开发者仅能在supply_balance和custom_field1、custom_field2、custom_field3中选择最多3个填写,否则报错。GiftCard.Builder
customField3(String name, String url)
设置自定义会员信息类目 注意事项:开发者仅能在supply_balance和custom_field1、custom_field2、custom_field3中选择最多3个填写,否则报错。String
getBackgroundPicUrl()
MemCardCustomField
getCustomField1()
MemCardCustomField
getCustomField2()
MemCardCustomField
getCustomField3()
Integer
getInitBalance()
GiftCard.Builder
initBalance(Integer initBalance)
设置初始化的余额(需礼品卡类型为GIFT_CARD,单品类礼品卡VOUCHER并非用于储值)boolean
isAutoActivate()
boolean
isSupplyBalance()
boolean
isSupplyBonus()
GiftCard.Builder
supplyBalance(boolean supplyBalance)
设置是否支持余额(需礼品卡类型为GIFT_CARD,单品类礼品卡VOUCHER并非用于储值) 注意事项:开发者仅能在supply_balance和custom_field1、custom_field2、custom_field3中选择最多3个填写,否则报错。GiftCard.Builder
supplyBonus(boolean supplyBonus)
设置是否支持积分(目前未清楚单品类礼品卡是否支持积分)
-
-
-
Method Detail
-
getBackgroundPicUrl
public String getBackgroundPicUrl()
-
isSupplyBonus
public boolean isSupplyBonus()
-
isSupplyBalance
public boolean isSupplyBalance()
-
isAutoActivate
public boolean isAutoActivate()
-
getInitBalance
public Integer getInitBalance()
-
getCustomField1
public MemCardCustomField getCustomField1()
-
getCustomField2
public MemCardCustomField getCustomField2()
-
getCustomField3
public MemCardCustomField getCustomField3()
-
backgroundPicUrl
public GiftCard.Builder backgroundPicUrl(String url)
设置礼品卡背景图片- Parameters:
url
-- Returns:
-
supplyBonus
public GiftCard.Builder supplyBonus(boolean supplyBonus)
设置是否支持积分(目前未清楚单品类礼品卡是否支持积分)- Parameters:
supplyBonus
-- Returns:
-
supplyBalance
public GiftCard.Builder supplyBalance(boolean supplyBalance)
设置是否支持余额(需礼品卡类型为GIFT_CARD,单品类礼品卡VOUCHER并非用于储值) 注意事项:开发者仅能在supply_balance和custom_field1、custom_field2、custom_field3中选择最多3个填写,否则报错。- Parameters:
supplyBalance
-- Returns:
-
autoActivate
public GiftCard.Builder autoActivate(boolean autoActivate)
设置礼品卡是否自动激活,若开发者不需要额外激活流程则填写true。- Parameters:
autoActivate
-- Returns:
-
initBalance
public GiftCard.Builder initBalance(Integer initBalance)
设置初始化的余额(需礼品卡类型为GIFT_CARD,单品类礼品卡VOUCHER并非用于储值)- Parameters:
initBalance
-- Returns:
-
customField1
public GiftCard.Builder customField1(String name, String url)
设置自定义会员信息类目 注意事项:开发者仅能在supply_balance和custom_field1、custom_field2、custom_field3中选择最多3个填写,否则报错。- Parameters:
name
- 自定义信息类目名称url
- 自定义信息类目跳转url- Returns:
-
customField2
public GiftCard.Builder customField2(String name, String url)
设置自定义会员信息类目 注意事项:开发者仅能在supply_balance和custom_field1、custom_field2、custom_field3中选择最多3个填写,否则报错。- Parameters:
name
- 自定义信息类目名称url
- 自定义信息类目跳转url- Returns:
-
customField3
public GiftCard.Builder customField3(String name, String url)
设置自定义会员信息类目 注意事项:开发者仅能在supply_balance和custom_field1、custom_field2、custom_field3中选择最多3个填写,否则报错。- Parameters:
name
- 自定义信息类目名称url
- 自定义信息类目跳转url- Returns:
-
-