Skip to content

Commit 34aea19

Browse files
chenyixin8854binarywang
authored andcommitted
#1196 增加微信卡券类型的枚举
1 parent de191a9 commit 34aea19

File tree

2 files changed

+25
-10
lines changed

2 files changed

+25
-10
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/bean/card/BaseInfo.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -227,16 +227,6 @@ public class BaseInfo implements Serializable {
227227
*/
228228
@SerializedName("promotion_app_brand_pass")
229229
private String promotionAppBrandPass;
230-
/**
231-
* 小程序的user_name,
232-
*/
233-
@SerializedName("activate_app_brand_user_name")
234-
private String activateAppBrandUserName;
235-
/**
236-
* 激活小程序页面地址
237-
*/
238-
@SerializedName("activate_app_brand_pass")
239-
private String activateAppBrandPass;
240230

241231
@Override
242232
public String toString() {
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package me.chanjar.weixin.mp.enums;
2+
3+
/**
4+
* @description: 微信卡券类型
5+
* @author: chenyixin
6+
* @create: 2019-09-07 23:33
7+
**/
8+
public enum WxCardType {
9+
MEMBER_CARD("MEMBER_CARD"),
10+
GROUPON("GROUPON"),
11+
CASH("CASH"),
12+
DISCOUNT("DISCOUNT"),
13+
GIFT("GIFT"),
14+
GENERAL_COUPON("GENERAL_COUPON");
15+
16+
private String code;
17+
18+
WxCardType(String code) {
19+
this.code = code;
20+
}
21+
22+
public String getCode() {
23+
return code;
24+
}
25+
}

0 commit comments

Comments
 (0)