|
|
@@ -9,7 +9,7 @@ const (
|
|
|
// 卡券类型
|
|
|
CardTypeGeneralCoupon = "GENERAL_COUPON" // 优惠券
|
|
|
CardTypeGroupon = "GROUPON" // 团购券
|
|
|
- CardTypeCash = "CASH" // 代金券
|
|
|
+ CardTypeCash = "CASH" // 提货券
|
|
|
CardTypeDiscount = "DISCOUNT" // 折扣券
|
|
|
CardTypeGift = "GIFT" // 礼品券
|
|
|
CardTypeMemberCard = "MEMBER_CARD" // 会员卡
|
|
|
@@ -47,11 +47,11 @@ type Groupon struct {
|
|
|
DealDetail string `json:"deal_detail,omitempty"` // 团购券专用,团购详情
|
|
|
}
|
|
|
|
|
|
-// 代金券
|
|
|
+// 提货券
|
|
|
type Cash struct {
|
|
|
BaseInfo *CardBaseInfo `json:"base_info,omitempty"`
|
|
|
- LeastCost *int `json:"least_cost,omitempty"` // 代金券专用, 表示起用金额(单位为分)
|
|
|
- ReduceCost *int `json:"reduce_cost,omitempty"` // 代金券专用, 表示减免金额(单位为分)
|
|
|
+ LeastCost *int `json:"least_cost,omitempty"` // 提货券专用, 表示起用金额(单位为分)
|
|
|
+ ReduceCost *int `json:"reduce_cost,omitempty"` // 提货券专用, 表示减免金额(单位为分)
|
|
|
}
|
|
|
|
|
|
// 折扣券
|
|
|
@@ -71,12 +71,12 @@ type MemberCard struct {
|
|
|
BaseInfo *CardBaseInfo `json:"base_info,omitempty"`
|
|
|
|
|
|
Prerogative string `json:"prerogative,omitempty"` // 会员卡特权说明
|
|
|
- SupplyBonus *bool `json:"supply_bonus,omitempty"` // 显示代金券,填写true或false,如填写true,代金券相关字段均为必填
|
|
|
- BonusURL string `json:"bonus_url,omitempty"` // 设置跳转外链查看代金券详情。仅适用于代金券无法通过激活接口同步的情况下使用该字段。
|
|
|
+ SupplyBonus *bool `json:"supply_bonus,omitempty"` // 显示提货券,填写true或false,如填写true,提货券相关字段均为必填
|
|
|
+ BonusURL string `json:"bonus_url,omitempty"` // 设置跳转外链查看提货券详情。仅适用于提货券无法通过激活接口同步的情况下使用该字段。
|
|
|
SupplyBalance *bool `json:"supply_balance,omitempty"` // 是否支持储值,填写true或false。如填写true,储值相关字段均为必填。
|
|
|
BalanceURL string `json:"balance_url,omitempty"` // 设置跳转外链查看余额详情。仅适用于余额无法通过激活接口同步的情况下使用该字段。
|
|
|
- BonusClearedRules string `json:"bonus_cleared,omitempty"` // 代金券清零规则。
|
|
|
- BonusRules string `json:"bonus_rules,omitempty"` // 代金券规则。
|
|
|
+ BonusClearedRules string `json:"bonus_cleared,omitempty"` // 提货券清零规则。
|
|
|
+ BonusRules string `json:"bonus_rules,omitempty"` // 提货券规则。
|
|
|
BalanceRules string `json:"balance_rules,omitempty"` // 储值说明。
|
|
|
ActivateURL string `json:"activate_url,omitempty"` // 激活会员卡的url。
|
|
|
NeedPushOnView *bool `json:"need_push_on_view,omitempty"` // 填写true为用户点击进入会员卡时推送事件,默认为false。
|