All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.cp.bean.external.WxCpProductAlbumInfo Maven / Gradle / Ivy

There is a newer version: 4.6.7.B
Show newest version
package me.chanjar.weixin.cp.bean.external;

import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.external.product.Attachment;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;

import java.io.Serializable;
import java.util.List;

/**
 * 
 * 获取商品图册
 * 参考文档:https://work.weixin.qq.com/api/doc/90000/90135/95096#获取商品图册
 * 
* * @author Lo_ading */ @Getter @Setter public class WxCpProductAlbumInfo implements Serializable { private static final long serialVersionUID = -8338202601802366899L; @SerializedName("product_id") private String productId; @SerializedName("product_sn") private String productSn; @SerializedName("description") private String description; /** * NOTE: 20211110 价钱返回全部为0 */ @SerializedName("price") private Integer price; /** * NOTE: 20211110 商品列表接口不返回此字段, 商品详情接口返回 */ @SerializedName("create_time") private Long createTime; @SerializedName("attachments") private List attachments; /** * From json wx cp product album info. * * @param json the json * @return the wx cp product album info */ public static WxCpProductAlbumInfo fromJson(String json) { return WxCpGsonBuilder.create().fromJson(json, WxCpProductAlbumInfo.class); } /** * To json string. * * @return the string */ public String toJson() { return WxCpGsonBuilder.create().toJson(this); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy