Skip to content
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

公众号接口优化,增加缺失字段和枚举类 #1475

Merged
merged 6 commits into from
Mar 28, 2020
Merged
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
Expand Up @@ -15,11 +15,18 @@
public class Sku implements Serializable {

/**
* 卡券库存的数量,不支持填写0,上限为100000000
* 卡券库存的数量不支持填写0,上限为100000000
*/
@SerializedName("quantity")
private Integer quantity = 100000000;

/**
* 卡券全部库存的数量,上限为100000000。
* https://developers.weixin.qq.com/doc/offiaccount/Cards_and_Offer/Managing_Coupons_Vouchers_and_Cards.html#4
*/
@SerializedName("total_quantity")
private Integer totalQuantity = 100000000;

@Override
public String toString() {
return WxMpGsonBuilder.create().toJson(this);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package me.chanjar.weixin.mp.bean.card.enums;

public enum CardCodeType {

CODE_TYPE_TEXT("文本"),
CODE_TYPE_NONE("不显示任何码型"),
CODE_TYPE_ONLY_BARCODE("仅显示一维码"),
CODE_TYPE_ONLY_QRCODE("仅显示二维码"),
CODE_TYPE_BARCODE("一维码"),
CODE_TYPE_QRCODE("二维码");

private String description;

CardCodeType(String description) {
this.description = description;
}

public String getDescription() {
return description;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package me.chanjar.weixin.mp.bean.card.enums;

public enum CardStatusType {
CARD_STATUS_NOT_VERIFY("待审核"),
CARD_STATUS_VERIFY_FAIL("审核失败"),
CARD_STATUS_VERIFY_OK("通过审核"),
CARD_STATUS_DELETE("卡券被商户删除"),
CARD_STATUS_DISPATCH("在公众平台投放过的卡券");

private String description;

CardStatusType(String description) {
this.description = description;
}

public String getDescription() {
return description;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
package me.chanjar.weixin.mp.bean.card.enums;

/**
* 会员信息类目半自定义名称,当开发者变更这类类目信息的value值时 可以选择触发系统模板消息通知用户。
*/
public enum CustomFieldNameType {

FIELD_NAME_TYPE_LEVEL("等级"),
FIELD_NAME_TYPE_COUPON("优惠券"),
FIELD_NAME_TYPE_STAMP("印花"),
FIELD_NAME_TYPE_DISCOUNT("折扣"),
FIELD_NAME_TYPE_ACHIEVEMEN("成就"),
FIELD_NAME_TYPE_MILEAGE("里程"),
FIELD_NAME_TYPE_SET_POINTS("集点"),
FIELD_NAME_TYPE_TIMS("次数");

private String description;

CustomFieldNameType(String description) {
this.description = description;
}

public String getDescription() {
return description;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -198,4 +198,29 @@ public class WxDataCubeArticleTotalDetail implements Serializable {
@SerializedName("feed_share_from_other_cnt")
private Integer feedShareFromOtherCnt;


/**
* intpagefromkanyikanreaduser 看一看来源阅读人数
*/
@SerializedName("int_page_from_kanyikan_read_user")
private Integer intPageFromKanyikanReadUser;

/**
* intpagefromkanyikanreadcount 看一看来源阅读次数
*/
@SerializedName("int_page_from_kanyikan_read_count")
private Integer intPageFromKanyikanReadCount;

/**
* intpagefromsouyisoureaduser 搜一搜来源阅读人数
*/
@SerializedName("int_page_from_souyisou_read_user")
private Integer intPageFromSouyisouReadUser;

/**
* intpagefromsouyisoureadcount 搜一搜来源阅读次数
*/
@SerializedName("int_page_from_souyisou_read_count")
private Integer intPageFromSouyisouReadCount;

}