View Javadoc
1   package com.foxinmy.weixin4j.payment.mch;
2   
3   import javax.xml.bind.annotation.XmlAccessType;
4   import javax.xml.bind.annotation.XmlAccessorType;
5   import javax.xml.bind.annotation.XmlElement;
6   import javax.xml.bind.annotation.XmlRootElement;
7   
8   import com.alibaba.fastjson.annotation.JSONField;
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   * @deprecated 迁移到子模块weixin4j-pay
19   */
20  @Deprecated
21  @XmlRootElement
22  @XmlAccessorType(XmlAccessType.FIELD)
23  public class NativePayNotify extends OpenIdResult {
24  
25  	private static final long serialVersionUID = 4515471400239795492L;
26  	/**
27  	 * 用户是否关注公众账号,Y- 关注,N-未关注,仅在公众 账号类型支付有效
28  	 */
29  	@XmlElement(name = "is_subscribe")
30  	@JSONField(name = "is_subscribe")
31  	private String isSubscribe;
32  	/**
33  	 * 产品ID 可视为订单ID
34  	 */
35  	@XmlElement(name = "product_id")
36  	@JSONField(name = "product_id")
37  	private String productId;
38  
39  	protected NativePayNotify() {
40  		// jaxb required
41  	}
42  
43  	public String getProductId() {
44  		return productId;
45  	}
46  
47  	public String getIsSubscribe() {
48  		return isSubscribe;
49  	}
50  
51  	@Override
52  	public String toString() {
53  		return "NativePayNotify [productId=" + productId + ", isSubscribe="
54  				+ isSubscribe + ", " + super.toString() + "]";
55  	}
56  }