cn.ipokerface.weixin.proxy.payment.MicroPaymentRequest Maven / Gradle / Ivy
package cn.ipokerface.weixin.proxy.payment;
import cn.ipokerface.weixin.model.WeixinPayAccount;
import cn.ipokerface.weixin.model.payment.TradeType;
import cn.ipokerface.weixin.proxy.merchant.Order;
import com.alibaba.fastjson.annotation.JSONField;
import javax.xml.bind.annotation.XmlTransient;
/**
* Created by PokerFace
* Create Date 2019-12-28.
* Email: [email protected]
* Version 1.0.0
*
* Description:
*/
public class MicroPaymentRequest extends Order implements MerchantPaymentRequest {
private static final long serialVersionUID = 6147576305404111278L;
@XmlTransient
@JSONField(serialize = false)
private WeixinPayAccount paymentAccount;
protected MicroPaymentRequest() {
// 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 PaymentRequest 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;
}
}