mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	| @ -15,11 +15,18 @@ import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder; | |||||||
| public class Sku implements Serializable { | public class Sku implements Serializable { | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|    * 卡券库存的数量,不支持填写0,上限为100000000。 |    * 卡券库存的数量,不支持填写0,上限为100000000 | ||||||
|    */ |    */ | ||||||
|   @SerializedName("quantity") |   @SerializedName("quantity") | ||||||
|   private Integer quantity = 100000000; |   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 |   @Override | ||||||
|   public String toString() { |   public String toString() { | ||||||
|     return WxMpGsonBuilder.create().toJson(this); |     return WxMpGsonBuilder.create().toJson(this); | ||||||
|  | |||||||
| @ -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; | ||||||
|  |   } | ||||||
|  | } | ||||||
| @ -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; | ||||||
|  |   } | ||||||
|  | } | ||||||
| @ -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; | ||||||
|  |   } | ||||||
|  | } | ||||||
| @ -198,4 +198,29 @@ public class WxDataCubeArticleTotalDetail implements Serializable { | |||||||
|   @SerializedName("feed_share_from_other_cnt") |   @SerializedName("feed_share_from_other_cnt") | ||||||
|   private Integer feedShareFromOtherCnt; |   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; | ||||||
|  |  | ||||||
| } | } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 S
					S