View Javadoc
1   package org.oxerr.youzan.dto.item;
2   
3   import java.io.Serializable;
4   import java.time.Instant;
5   
6   import org.oxerr.youzan.dto.deserializer.InstantDeserializer;
7   
8   import com.fasterxml.jackson.annotation.JsonProperty;
9   import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
10  
11  /**
12   * <a href="http://open.youzan.com/structparam?struct=TradeFetch">到店自提详情</a>.
13   */
14  public class TradeFetch implements Serializable {
15  
16  	private static final long serialVersionUID = 2016062001L;
17  
18  	/**
19  	 * 领取人(即:预约人)的姓名
20  	 */
21  	private String fetcherName;
22  
23  	/**
24  	 * 自提点所在省份
25  	 */
26  	private String shopState;
27  
28  	/**
29  	 * 自提点联系方式
30  	 */
31  	private String shopMobile;
32  
33  	/**
34  	 * 自提点所在城市
35  	 */
36  	private String shopCity;
37  
38  	/**
39  	 * 自提点所在地区
40  	 */
41  	private String shopDistrict;
42  
43  	/**
44  	 * 领取人的手机号
45  	 */
46  	private String fetcherMobile;
47  
48  	/**
49  	 * 领取人的手机号
50  	 */
51  	private String shopName;
52  
53  	/**
54  	 * 自提点详细地址
55  	 */
56  	private String shopAddress;
57  
58  	/**
59  	 * 预约的领取时间。
60  	 * 新版到店自提的数据格式:
61  	 * <ul>
62  	 * <li>1: 2016-04-18 17:00-17:15</li>
63  	 * <li>2: 尽快到店提货</li>
64  	 * </ul>
65  	 */
66  	private Instant fetchTime;
67  
68  	public TradeFetch() {
69  	}
70  
71  	public TradeFetch(
72  		@JsonProperty("fetcher_name") String fetcherName,
73  		@JsonProperty("shop_state") String shopState,
74  		@JsonProperty("shop_mobile") String shopMobile,
75  		@JsonProperty("shop_city") String shopCity,
76  		@JsonProperty("shop_district") String shopDistrict,
77  		@JsonProperty("fetcher_mobile") String fetcherMobile,
78  		@JsonProperty("shop_name") String shopName,
79  		@JsonProperty("shop_address") String shopAddress,
80  		@JsonProperty("fetch_time")
81  		@JsonDeserialize(using = InstantDeserializer.class)
82  		Instant fetchTime
83  	) {
84  		this.fetcherName = fetcherName;
85  		this.shopState = shopState;
86  		this.shopMobile = shopMobile;
87  		this.shopCity = shopCity;
88  		this.shopDistrict = shopDistrict;
89  		this.fetcherMobile = fetcherMobile;
90  		this.shopName = shopName;
91  		this.shopAddress = shopAddress;
92  		this.fetchTime = fetchTime;
93  	}
94  
95  	public String getFetcherName() {
96  		return fetcherName;
97  	}
98  
99  	public void setFetcherName(String fetcherName) {
100 		this.fetcherName = fetcherName;
101 	}
102 
103 	public String getShopState() {
104 		return shopState;
105 	}
106 
107 	public void setShopState(String shopState) {
108 		this.shopState = shopState;
109 	}
110 
111 	public String getShopMobile() {
112 		return shopMobile;
113 	}
114 
115 	public void setShopMobile(String shopMobile) {
116 		this.shopMobile = shopMobile;
117 	}
118 
119 	public String getShopCity() {
120 		return shopCity;
121 	}
122 
123 	public void setShopCity(String shopCity) {
124 		this.shopCity = shopCity;
125 	}
126 
127 	public String getShopDistrict() {
128 		return shopDistrict;
129 	}
130 
131 	public void setShopDistrict(String shopDistrict) {
132 		this.shopDistrict = shopDistrict;
133 	}
134 
135 	public String getFetcherMobile() {
136 		return fetcherMobile;
137 	}
138 
139 	public void setFetcherMobile(String fetcherMobile) {
140 		this.fetcherMobile = fetcherMobile;
141 	}
142 
143 	public String getShopName() {
144 		return shopName;
145 	}
146 
147 	public void setShopName(String shopName) {
148 		this.shopName = shopName;
149 	}
150 
151 	public String getShopAddress() {
152 		return shopAddress;
153 	}
154 
155 	public void setShopAddress(String shopAddress) {
156 		this.shopAddress = shopAddress;
157 	}
158 
159 	public Instant getFetchTime() {
160 		return fetchTime;
161 	}
162 
163 	public void setFetchTime(Instant fetchTime) {
164 		this.fetchTime = fetchTime;
165 	}
166 
167 }