All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.foxinmy.weixin4j.payment.mch.MICROPayRequest Maven / Gradle / Ivy

There is a newer version: 1.10.2
Show newest version
package com.foxinmy.weixin4j.payment.mch;

import javax.xml.bind.annotation.XmlTransient;

import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.model.WeixinPayAccount;
import com.foxinmy.weixin4j.payment.PayRequest;
import com.foxinmy.weixin4j.type.TradeType;

/**
 * MICROPAY刷卡支付
 * 
 * @className MICROPayRequest
 * @author jinyu([email protected])
 * @date 2015年12月25日
 * @since JDK 1.6
 * @see com.foxinmy.weixin4j.payment.mch.PrePay
 * @see com.foxinmy.weixin4j.payment.PayRequest
 * @see 刷卡支付
 * @deprecated 迁移到子模块weixin4j-pay
 */
@Deprecated
public class MICROPayRequest extends Order implements MchPayRequest {

	private static final long serialVersionUID = 6147576305404111278L;

	@XmlTransient
	@JSONField(serialize = false)
	private WeixinPayAccount paymentAccount;

	protected MICROPayRequest() {
		// jaxb required
	}

	@Override
	@JSONField(serialize = false)
	public TradeType getPaymentType() {
		return TradeType.MICROPAY;
	}

	/**
	 * 返回null,请不要尝试作为支付请求
	 */
	@Override
	@JSONField(serialize = false)
	public String toRequestString() {
		return null;
	}

	/**
	 * 返回null,请不要尝试作为支付请求
	 */
	@JSONField(serialize = false)
	@Override
	public PayRequest toRequestObject() {
		return null;
	}

	/**
	 * 返回null,请不要尝试作为支付请求
	 */
	@JSONField(serialize = false)
	@Override
	public String getPrePayId() {
		return null;
	}

	public void setPaymentAccount(WeixinPayAccount paymentAccount) {
		this.paymentAccount = paymentAccount;
	}

	@Override
	public WeixinPayAccount getPaymentAccount() {
		return this.paymentAccount;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy