🎨 #3626 【微信支付】创建代金券批次接口新增字段,包括背景色、卡包跳转目标、小程序 appid 与 path等

This commit is contained in:
Well 2025-07-02 10:31:26 +08:00 committed by GitHub
parent b3b8c273c7
commit 172b96444f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 73 additions and 1 deletions

View File

@ -1,6 +1,7 @@
package com.github.binarywang.wxpay.bean.marketing;
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.TradeTypeEnum;
import com.google.gson.annotations.SerializedName;
@ -392,6 +393,24 @@ public class FavorStocksCreateRequest implements Serializable {
*/
@SerializedName(value = "coupon_image")
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

View File

@ -52,6 +52,16 @@ public enum BackgroundColorEnum {
*/
COLOR080("COLOR080", "#EE903C"),
/**
* 颜色 #F08500
*/
COLOR081("COLOR081", "#F08500"),
/**
* 颜色 #A9D92D
*/
COLOR082("COLOR082", "#A9D92D"),
/**
* 颜色 #DD6549
*/
@ -61,8 +71,17 @@ public enum BackgroundColorEnum {
* 颜色 #CC463D
*/
COLOR100("COLOR100", "#CC463D"),
;
/**
* 颜色 #CF3E36
*/
COLOR101("COLOR101", "#CF3E36"),
/**
* 颜色 #5E6671
*/
COLOR102("COLOR102", "#5E6671"),
;
/**
* 色值
*/

View File

@ -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;
}