1 package org.oxerr.youzan.dto.item;
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
14
15 public class GoodsQrcode implements Serializable {
16
17 private static final long serialVersionUID = 2016061901L;
18
19
20
21
22 private Instant created;
23
24
25
26
27 private String name;
28
29
30
31
32 private String discount;
33
34
35
36
37 private String linkUrl;
38
39
40
41
42 private Long id;
43
44
45
46
47
48
49
50
51
52
53
54
55 private String type;
56
57
58
59
60
61 private String weixinQrcodeUrl;
62
63
64
65
66 private BigDecimal decrease;
67
68
69
70
71 private String desc;
72
73 public GoodsQrcode() {
74 }
75
76 public GoodsQrcode(
77 @JsonProperty("created")
78 @JsonDeserialize(using = InstantDeserializer.class)
79 Instant created,
80 @JsonProperty("name") String name,
81 @JsonProperty("discount") String discount,
82 @JsonProperty("link_url") String linkUrl,
83 @JsonProperty("id") Long id,
84 @JsonProperty("type") String type,
85 @JsonProperty("weixin_qrcode_url") String weixinQrcodeUrl,
86 @JsonProperty("decrease") BigDecimal decrease,
87 @JsonProperty("desc") String desc
88 ) {
89 this.created = created;
90 this.name = name;
91 this.discount = discount;
92 this.linkUrl = linkUrl;
93 this.id = id;
94 this.type = type;
95 this.weixinQrcodeUrl = weixinQrcodeUrl;
96 this.decrease = decrease;
97 this.desc = desc;
98 }
99
100 public Instant getCreated() {
101 return created;
102 }
103
104 public void setCreated(Instant created) {
105 this.created = created;
106 }
107
108 public String getName() {
109 return name;
110 }
111
112 public void setName(String name) {
113 this.name = name;
114 }
115
116 public String getDiscount() {
117 return discount;
118 }
119
120 public void setDiscount(String discount) {
121 this.discount = discount;
122 }
123
124 public String getLinkUrl() {
125 return linkUrl;
126 }
127
128 public void setLinkUrl(String linkUrl) {
129 this.linkUrl = linkUrl;
130 }
131
132 public Long getId() {
133 return id;
134 }
135
136 public void setId(Long id) {
137 this.id = id;
138 }
139
140 public String getType() {
141 return type;
142 }
143
144 public void setType(String type) {
145 this.type = type;
146 }
147
148 public String getWeixinQrcodeUrl() {
149 return weixinQrcodeUrl;
150 }
151
152 public void setWeixinQrcodeUrl(String weixinQrcodeUrl) {
153 this.weixinQrcodeUrl = weixinQrcodeUrl;
154 }
155
156 public BigDecimal getDecrease() {
157 return decrease;
158 }
159
160 public void setDecrease(BigDecimal decrease) {
161 this.decrease = decrease;
162 }
163
164 public String getDesc() {
165 return desc;
166 }
167
168 public void setDesc(String desc) {
169 this.desc = desc;
170 }
171
172 }