Skip to content

同步新字段 #3626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -392,6 +393,24 @@ public static class PatternInfo 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,16 @@ public enum BackgroundColorEnum {
*/
COLOR080("COLOR080", "#EE903C"),

/**
* 颜色 #F08500
*/
COLOR081("COLOR081", "#F08500"),

/**
* 颜色 #A9D92D
*/
COLOR082("COLOR082", "#A9D92D"),

/**
* 颜色 #DD6549
*/
Expand All @@ -61,8 +71,17 @@ public enum BackgroundColorEnum {
* 颜色 #CC463D
*/
COLOR100("COLOR100", "#CC463D"),
;

/**
* 颜色 #CF3E36
*/
COLOR101("COLOR101", "#CF3E36"),

/**
* 颜色 #5E6671
*/
COLOR102("COLOR102", "#5E6671"),
;
/**
* 色值
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -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;
}