mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-20 00:44:25 +08:00
🎨 #3626 【微信支付】创建代金券批次接口新增字段,包括背景色、卡包跳转目标、小程序 appid 与 path等
This commit is contained in:
parent
b3b8c273c7
commit
172b96444f
@ -1,6 +1,7 @@
|
|||||||
package com.github.binarywang.wxpay.bean.marketing;
|
package com.github.binarywang.wxpay.bean.marketing;
|
||||||
|
|
||||||
import com.github.binarywang.wxpay.bean.marketing.enums.BackgroundColorEnum;
|
import com.github.binarywang.wxpay.bean.marketing.enums.BackgroundColorEnum;
|
||||||
|
import com.github.binarywang.wxpay.bean.marketing.enums.JumpTargetEnum;
|
||||||
import com.github.binarywang.wxpay.bean.marketing.enums.StockTypeEnum;
|
import com.github.binarywang.wxpay.bean.marketing.enums.StockTypeEnum;
|
||||||
import com.github.binarywang.wxpay.bean.marketing.enums.TradeTypeEnum;
|
import com.github.binarywang.wxpay.bean.marketing.enums.TradeTypeEnum;
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
@ -392,6 +393,24 @@ public class FavorStocksCreateRequest implements Serializable {
|
|||||||
*/
|
*/
|
||||||
@SerializedName(value = "coupon_image")
|
@SerializedName(value = "coupon_image")
|
||||||
private String couponImage;
|
private String couponImage;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 卡包跳转目标
|
||||||
|
*/
|
||||||
|
@SerializedName("jump_target")
|
||||||
|
private JumpTargetEnum jumpTarget;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小程序appid
|
||||||
|
*/
|
||||||
|
@SerializedName("mini_program_appid")
|
||||||
|
private String miniProgramAppid;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 小程序path
|
||||||
|
*/
|
||||||
|
@SerializedName("mini_program_path")
|
||||||
|
private String miniProgramPath;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
|||||||
@ -52,6 +52,16 @@ public enum BackgroundColorEnum {
|
|||||||
*/
|
*/
|
||||||
COLOR080("COLOR080", "#EE903C"),
|
COLOR080("COLOR080", "#EE903C"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 颜色 #F08500
|
||||||
|
*/
|
||||||
|
COLOR081("COLOR081", "#F08500"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 颜色 #A9D92D
|
||||||
|
*/
|
||||||
|
COLOR082("COLOR082", "#A9D92D"),
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 颜色 #DD6549
|
* 颜色 #DD6549
|
||||||
*/
|
*/
|
||||||
@ -61,8 +71,17 @@ public enum BackgroundColorEnum {
|
|||||||
* 颜色 #CC463D
|
* 颜色 #CC463D
|
||||||
*/
|
*/
|
||||||
COLOR100("COLOR100", "#CC463D"),
|
COLOR100("COLOR100", "#CC463D"),
|
||||||
;
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 颜色 #CF3E36
|
||||||
|
*/
|
||||||
|
COLOR101("COLOR101", "#CF3E36"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 颜色 #5E6671
|
||||||
|
*/
|
||||||
|
COLOR102("COLOR102", "#5E6671"),
|
||||||
|
;
|
||||||
/**
|
/**
|
||||||
* 色值
|
* 色值
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -0,0 +1,34 @@
|
|||||||
|
package com.github.binarywang.wxpay.bean.marketing.enums;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 卡包跳转目标
|
||||||
|
*
|
||||||
|
* @author wangerwei
|
||||||
|
*/
|
||||||
|
@Getter
|
||||||
|
@AllArgsConstructor
|
||||||
|
public enum JumpTargetEnum {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* PAYMENT_CODE:点击“立即使用”跳转至微信支付付款码
|
||||||
|
*/
|
||||||
|
PAYMENT_CODE("PAYMENT_CODE"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* MINI_PROGRAM:点击“立即使用”跳转至配置的商家小程序(需要指定小程序appid和path)
|
||||||
|
*/
|
||||||
|
MINI_PROGRAM("MINI_PROGRAM"),
|
||||||
|
|
||||||
|
/**
|
||||||
|
* DEFAULT_PAGE:点击“立即使用”跳转至默认页面
|
||||||
|
*/
|
||||||
|
DEFAULT_PAGE("DEFAULT_PAGE");
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 批次类型
|
||||||
|
*/
|
||||||
|
private final String value;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user