View Javadoc
1   package com.foxinmy.weixin4j.pay.payment.mch;
2   
3   import com.alibaba.fastjson.annotation.JSONField;
4   
5   import javax.xml.bind.annotation.XmlAccessType;
6   import javax.xml.bind.annotation.XmlAccessorType;
7   import javax.xml.bind.annotation.XmlElement;
8   import javax.xml.bind.annotation.XmlRootElement;
9   
10  /**
11   * Native支付回调时POST的信息
12   * 
13   * @className PayNativeNotify
14   * @author jinyu(foxinmy@gmail.com)
15   * @date 2014年10月30日
16   * @since JDK 1.6
17   * @see
18   */
19  @XmlRootElement
20  @XmlAccessorType(XmlAccessType.FIELD)
21  public class NativePayNotify extends OpenIdResult {
22  
23  	private static final long serialVersionUID = 4515471400239795492L;
24  	/**
25  	 * 用户是否关注公众账号,Y- 关注,N-未关注,仅在公众 账号类型支付有效
26  	 */
27  	@XmlElement(name = "is_subscribe")
28  	@JSONField(name = "is_subscribe")
29  	private String isSubscribe;
30  	/**
31  	 * 产品ID 可视为订单ID
32  	 */
33  	@XmlElement(name = "product_id")
34  	@JSONField(name = "product_id")
35  	private String productId;
36  
37  	protected NativePayNotify() {
38  		// jaxb required
39  	}
40  
41  	public String getProductId() {
42  		return productId;
43  	}
44  
45  	public void setIsSubscribe(String isSubscribe) {
46  		this.isSubscribe = isSubscribe;
47  	}
48  
49  	public String getIsSubscribe() {
50  		return isSubscribe;
51  	}
52  
53  	public void setProductId(String productId) {
54  		this.productId = productId;
55  	}
56  
57  	@Override
58  	public String toString() {
59  		return "NativePayNotify [productId=" + productId + ", isSubscribe="
60  				+ isSubscribe + ", " + super.toString() + "]";
61  	}
62  }