View Javadoc
1   package com.foxinmy.weixin4j.pay.payment.mch;
2   
3   import com.alibaba.fastjson.JSON;
4   import com.alibaba.fastjson.annotation.JSONField;
5   
6   import javax.xml.bind.annotation.XmlAccessType;
7   import javax.xml.bind.annotation.XmlAccessorType;
8   import javax.xml.bind.annotation.XmlElement;
9   import javax.xml.bind.annotation.XmlRootElement;
10  
11  @XmlRootElement
12  @XmlAccessorType(XmlAccessType.FIELD)
13  public class SceneInfoStore implements SceneInfo {
14  	/**
15  	 * SZTX001 门店唯一标识
16  	 */
17  	private String id;
18  	/**
19  	 * 腾讯大厦腾大餐厅 门店名称
20  	 */
21  	private String name;
22  	/**
23  	 * 门店所在地行政区划码,详细见《最新县及县以上行政区划代码》
24  	 */
25  	@XmlElement(name = "area_code")
26  	@JSONField(name = "area_code")
27  	private String areaCode;
28  	/**
29  	 * 科技园中一路腾讯大厦 门店详细地址
30  	 */
31  	private String address;
32  
33  	public String getId() {
34  		return id;
35  	}
36  
37  	public void setId(String id) {
38  		this.id = id;
39  	}
40  
41  	public String getName() {
42  		return name;
43  	}
44  
45  	public void setName(String name) {
46  		this.name = name;
47  	}
48  
49  	public String getAreaCode() {
50  		return areaCode;
51  	}
52  
53  	public void setAreaCode(String areaCode) {
54  		this.areaCode = areaCode;
55  	}
56  
57  	public String getAddress() {
58  		return address;
59  	}
60  
61  	public void setAddress(String address) {
62  		this.address = address;
63  	}
64  
65  	public SceneInfoStore(String id, String name) {
66  		super();
67  		this.id = id;
68  		this.name = name;
69  	}
70  
71  	public SceneInfoStore(String id, String name, String areaCode, String address) {
72  		super();
73  		this.id = id;
74  		this.name = name;
75  		this.areaCode = areaCode;
76  		this.address = address;
77  	}
78  
79  	@Override
80  	public String toString() {
81  		return "SceneInfoStore [id=" + id + ", name=" + name + ", areaCode="
82  				+ areaCode + ", address=" + address + "]";
83  	}
84  
85  	@Override
86  	public String toJson() {
87  		return String.format("{\"store_info\": %s}", JSON.toJSONString(this));
88  	}
89  }