fixed something
This commit is contained in:
parent
1f5cfc9a88
commit
66417fdc8b
@ -76,7 +76,7 @@ public class HttpComponent3 extends AbstractHttpClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create HttpMethod
|
* Create HttpRequest
|
||||||
*/
|
*/
|
||||||
protected org.apache.commons.httpclient.HttpMethod createRequest(
|
protected org.apache.commons.httpclient.HttpMethod createRequest(
|
||||||
HttpRequest request) throws HttpClientException, IOException {
|
HttpRequest request) throws HttpClientException, IOException {
|
||||||
|
|||||||
@ -1,6 +1,7 @@
|
|||||||
package com.foxinmy.weixin4j.payment.mch;
|
package com.foxinmy.weixin4j.payment.mch;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlAccessType;
|
import javax.xml.bind.annotation.XmlAccessType;
|
||||||
@ -13,6 +14,7 @@ import com.foxinmy.weixin4j.payment.coupon.RefundCouponInfo;
|
|||||||
import com.foxinmy.weixin4j.type.mch.CouponType;
|
import com.foxinmy.weixin4j.type.mch.CouponType;
|
||||||
import com.foxinmy.weixin4j.type.mch.RefundChannel;
|
import com.foxinmy.weixin4j.type.mch.RefundChannel;
|
||||||
import com.foxinmy.weixin4j.type.mch.RefundStatus;
|
import com.foxinmy.weixin4j.type.mch.RefundStatus;
|
||||||
|
import com.foxinmy.weixin4j.util.DateUtil;
|
||||||
import com.foxinmy.weixin4j.xml.ListsuffixResult;
|
import com.foxinmy.weixin4j.xml.ListsuffixResult;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -94,6 +96,12 @@ public class RefundDetail implements Serializable {
|
|||||||
@XmlElement(name = "refund_recv_accout")
|
@XmlElement(name = "refund_recv_accout")
|
||||||
@JSONField(name = "refund_recv_accout")
|
@JSONField(name = "refund_recv_accout")
|
||||||
private String refundRecvAccout;
|
private String refundRecvAccout;
|
||||||
|
/**
|
||||||
|
* 退款成功时间,当退款状态为退款成功时有返回
|
||||||
|
*/
|
||||||
|
@XmlElement(name = "refund_success_time")
|
||||||
|
@JSONField(name = "refund_success_time")
|
||||||
|
private String refundSuccessTime;
|
||||||
/**
|
/**
|
||||||
* 退款代金券信息
|
* 退款代金券信息
|
||||||
*
|
*
|
||||||
@ -188,6 +196,15 @@ public class RefundDetail implements Serializable {
|
|||||||
return refundRecvAccout;
|
return refundRecvAccout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getRefundSuccessTime() {
|
||||||
|
return refundSuccessTime;
|
||||||
|
}
|
||||||
|
|
||||||
|
@JSONField(serialize = false)
|
||||||
|
public Date getFormatRefundSuccessTime() {
|
||||||
|
return refundSuccessTime != null ? DateUtil.parse2yyyyMMddHHmmss(refundSuccessTime) : null;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "RefundDetail [outRefundNo=" + outRefundNo + ", refundId="
|
return "RefundDetail [outRefundNo=" + outRefundNo + ", refundId="
|
||||||
|
|||||||
@ -63,6 +63,10 @@ public enum ButtonType {
|
|||||||
* 永久素材类型只支持图文消息。 请注意:永久素材id必须是在“素材管理/新增永久素材”接口上传后获得的合法id。
|
* 永久素材类型只支持图文消息。 请注意:永久素材id必须是在“素材管理/新增永久素材”接口上传后获得的合法id。
|
||||||
*/
|
*/
|
||||||
view_limited,
|
view_limited,
|
||||||
|
/**
|
||||||
|
* 小程序
|
||||||
|
*/
|
||||||
|
miniprogram,
|
||||||
/**
|
/**
|
||||||
* 以下类型请勿使用,在公众平台设置的按钮类型,如果尝试使用API方式创建菜单则会出错。
|
* 以下类型请勿使用,在公众平台设置的按钮类型,如果尝试使用API方式创建菜单则会出错。
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -25,5 +25,13 @@ public enum RefundChannel {
|
|||||||
/**
|
/**
|
||||||
* 银行
|
* 银行
|
||||||
*/
|
*/
|
||||||
BANK;
|
BANK,
|
||||||
|
/**
|
||||||
|
* 原账户异常退到其他余额账户
|
||||||
|
*/
|
||||||
|
OTHER_BALANCE,
|
||||||
|
/**
|
||||||
|
* 原银行卡异常退到其他银行卡
|
||||||
|
*/
|
||||||
|
OTHER_BANKCARD
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,6 +4,7 @@ import java.io.Serializable;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
import javax.xml.bind.annotation.XmlElements;
|
||||||
import javax.xml.bind.annotation.XmlTransient;
|
import javax.xml.bind.annotation.XmlTransient;
|
||||||
|
|
||||||
import com.foxinmy.weixin4j.type.MessageType;
|
import com.foxinmy.weixin4j.type.MessageType;
|
||||||
@ -65,12 +66,12 @@ public class WeixinMessage implements Serializable {
|
|||||||
/**
|
/**
|
||||||
* 消息ID 可用于排重
|
* 消息ID 可用于排重
|
||||||
*/
|
*/
|
||||||
@XmlElement(name = "MsgId")
|
@XmlElements({ @XmlElement(name = "MsgId"), @XmlElement(name = "MsgID") })
|
||||||
private long msgId;
|
private long msgId;
|
||||||
/**
|
/**
|
||||||
* 企业号独有的应用ID
|
* 企业号独有的应用ID
|
||||||
*/
|
*/
|
||||||
@XmlElement(name = "AgentID")
|
@XmlElements({ @XmlElement(name = "AgentId"), @XmlElement(name = "AgentID") })
|
||||||
private String agentId;
|
private String agentId;
|
||||||
|
|
||||||
public WeixinMessage() {
|
public WeixinMessage() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user