View Javadoc
1   package com.foxinmy.weixin4j.payment.mch;
2   
3   import javax.xml.bind.annotation.XmlTransient;
4   
5   import com.alibaba.fastjson.annotation.JSONField;
6   import com.foxinmy.weixin4j.model.WeixinPayAccount;
7   import com.foxinmy.weixin4j.payment.PayRequest;
8   import com.foxinmy.weixin4j.type.TradeType;
9   
10  /**
11   * MICROPAY刷卡支付
12   * 
13   * @className MICROPayRequest
14   * @author jinyu(foxinmy@gmail.com)
15   * @date 2015年12月25日
16   * @since JDK 1.6
17   * @see com.foxinmy.weixin4j.payment.mch.PrePay
18   * @see com.foxinmy.weixin4j.payment.PayRequest
19   * @see <a
20   *      href="https://pay.weixin.qq.com/wiki/doc/api/micropay.php?chapter=5_1">刷卡支付</a>
21   * @deprecated 迁移到子模块weixin4j-pay
22   */
23  @Deprecated
24  public class MICROPayRequest extends Order implements MchPayRequest {
25  
26  	private static final long serialVersionUID = 6147576305404111278L;
27  
28  	@XmlTransient
29  	@JSONField(serialize = false)
30  	private WeixinPayAccount paymentAccount;
31  
32  	protected MICROPayRequest() {
33  		// jaxb required
34  	}
35  
36  	@Override
37  	@JSONField(serialize = false)
38  	public TradeType getPaymentType() {
39  		return TradeType.MICROPAY;
40  	}
41  
42  	/**
43  	 * <font color="red">返回null,请不要尝试作为支付请求</font>
44  	 */
45  	@Override
46  	@JSONField(serialize = false)
47  	public String toRequestString() {
48  		return null;
49  	}
50  
51  	/**
52  	 * <font color="red">返回null,请不要尝试作为支付请求</font>
53  	 */
54  	@JSONField(serialize = false)
55  	@Override
56  	public PayRequest toRequestObject() {
57  		return null;
58  	}
59  
60  	/**
61  	 * <font color="red">返回null,请不要尝试作为支付请求</font>
62  	 */
63  	@JSONField(serialize = false)
64  	@Override
65  	public String getPrePayId() {
66  		return null;
67  	}
68  
69  	public void setPaymentAccount(WeixinPayAccount paymentAccount) {
70  		this.paymentAccount = paymentAccount;
71  	}
72  
73  	@Override
74  	public WeixinPayAccount getPaymentAccount() {
75  		return this.paymentAccount;
76  	}
77  }