View Javadoc
1   package org.oxerr.youzan.dto.ump;
2   
3   import java.io.Serializable;
4   import java.math.BigDecimal;
5   import java.time.Instant;
6   
7   import org.oxerr.youzan.dto.deserializer.InstantDeserializer;
8   
9   import com.fasterxml.jackson.annotation.JsonProperty;
10  import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
11  
12  /**
13   * <a href=
14   * "http://open.youzan.com/structparam?struct=UmpTimelimitedDiscountGoodsJoin">
15   * 限时折扣商品信息</a>.
16   */
17  public class UmpTimelimitedDiscountGoodsJoin implements Serializable {
18  
19  	private static final long serialVersionUID = 2016062601L;
20  
21  	private Instant createdTime;
22  	private Long itemId;
23  	private String imageUrl;
24  	private BigDecimal discountPrice;
25  	private Long stockNum;
26  	private Instant endTime;
27  	private String discountValue;
28  	private String title;
29  	private Integer discountType;
30  	private Instant startTime;
31  	private Integer eraseType;
32  	private BigDecimal price;
33  	private String itemUrl;
34  	private String alias;
35  
36  	public UmpTimelimitedDiscountGoodsJoin() {
37  	}
38  
39  	public UmpTimelimitedDiscountGoodsJoin(
40  		@JsonProperty("created_time")
41  		@JsonDeserialize(using = InstantDeserializer.class)
42  		Instant createdTime,
43  		@JsonProperty("item_id") Long itemId,
44  		@JsonProperty("image_url") String imageUrl,
45  		@JsonProperty("discount_price") BigDecimal discountPrice,
46  		@JsonProperty("stock_num") Long stockNum,
47  		@JsonProperty("end_time")
48  		@JsonDeserialize(using = InstantDeserializer.class)
49  		Instant endTime,
50  		@JsonProperty("discount_value") String discountValue,
51  		@JsonProperty("title") String title,
52  		@JsonProperty("discount_type") Integer discountType,
53  		@JsonProperty("start_time")
54  		@JsonDeserialize(using = InstantDeserializer.class)
55  		Instant startTime,
56  		@JsonProperty("earse_type") Integer eraseType,
57  		@JsonProperty("price") BigDecimal price,
58  		@JsonProperty("item_url") String itemUrl,
59  		@JsonProperty("alias") String alias
60  	) {
61  		this.createdTime = createdTime;
62  		this.itemId = itemId;
63  		this.imageUrl = imageUrl;
64  		this.discountPrice = discountPrice;
65  		this.stockNum = stockNum;
66  		this.endTime = endTime;
67  		this.discountValue = discountValue;
68  		this.title = title;
69  		this.discountType = discountType;
70  		this.startTime = startTime;
71  		this.eraseType = eraseType;
72  		this.price = price;
73  		this.itemUrl = itemUrl;
74  		this.alias = alias;
75  	}
76  
77  	public Instant getCreatedTime() {
78  		return createdTime;
79  	}
80  
81  	public void setCreatedTime(Instant createdTime) {
82  		this.createdTime = createdTime;
83  	}
84  
85  	public Long getItemId() {
86  		return itemId;
87  	}
88  
89  	public void setItemId(Long itemId) {
90  		this.itemId = itemId;
91  	}
92  
93  	public String getImageUrl() {
94  		return imageUrl;
95  	}
96  
97  	public void setImageUrl(String imageUrl) {
98  		this.imageUrl = imageUrl;
99  	}
100 
101 	public BigDecimal getDiscountPrice() {
102 		return discountPrice;
103 	}
104 
105 	public void setDiscountPrice(BigDecimal discountPrice) {
106 		this.discountPrice = discountPrice;
107 	}
108 
109 	public Long getStockNum() {
110 		return stockNum;
111 	}
112 
113 	public void setStockNum(Long stockNum) {
114 		this.stockNum = stockNum;
115 	}
116 
117 	public Instant getEndTime() {
118 		return endTime;
119 	}
120 
121 	public void setEndTime(Instant endTime) {
122 		this.endTime = endTime;
123 	}
124 
125 	public String getDiscountValue() {
126 		return discountValue;
127 	}
128 
129 	public void setDiscountValue(String discountValue) {
130 		this.discountValue = discountValue;
131 	}
132 
133 	public String getTitle() {
134 		return title;
135 	}
136 
137 	public void setTitle(String title) {
138 		this.title = title;
139 	}
140 
141 	public Integer getDiscountType() {
142 		return discountType;
143 	}
144 
145 	public void setDiscountType(Integer discountType) {
146 		this.discountType = discountType;
147 	}
148 
149 	public Instant getStartTime() {
150 		return startTime;
151 	}
152 
153 	public void setStartTime(Instant startTime) {
154 		this.startTime = startTime;
155 	}
156 
157 	public Integer getEraseType() {
158 		return eraseType;
159 	}
160 
161 	public void setEraseType(Integer eraseType) {
162 		this.eraseType = eraseType;
163 	}
164 
165 	public BigDecimal getPrice() {
166 		return price;
167 	}
168 
169 	public void setPrice(BigDecimal price) {
170 		this.price = price;
171 	}
172 
173 	public String getItemUrl() {
174 		return itemUrl;
175 	}
176 
177 	public void setItemUrl(String itemUrl) {
178 		this.itemUrl = itemUrl;
179 	}
180 
181 	public String getAlias() {
182 		return alias;
183 	}
184 
185 	public void setAlias(String alias) {
186 		this.alias = alias;
187 	}
188 
189 }