fixed something

This commit is contained in:
jinyu 2017-05-19 16:09:20 +08:00
parent 1f5cfc9a88
commit 66417fdc8b
5 changed files with 34 additions and 4 deletions

View File

@ -76,7 +76,7 @@ public class HttpComponent3 extends AbstractHttpClient {
}
/**
* Create HttpMethod
* Create HttpRequest
*/
protected org.apache.commons.httpclient.HttpMethod createRequest(
HttpRequest request) throws HttpClientException, IOException {

View File

@ -1,6 +1,7 @@
package com.foxinmy.weixin4j.payment.mch;
import java.io.Serializable;
import java.util.Date;
import java.util.List;
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.RefundChannel;
import com.foxinmy.weixin4j.type.mch.RefundStatus;
import com.foxinmy.weixin4j.util.DateUtil;
import com.foxinmy.weixin4j.xml.ListsuffixResult;
/**
@ -94,6 +96,12 @@ public class RefundDetail implements Serializable {
@XmlElement(name = "refund_recv_accout")
@JSONField(name = "refund_recv_accout")
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;
}
public String getRefundSuccessTime() {
return refundSuccessTime;
}
@JSONField(serialize = false)
public Date getFormatRefundSuccessTime() {
return refundSuccessTime != null ? DateUtil.parse2yyyyMMddHHmmss(refundSuccessTime) : null;
}
@Override
public String toString() {
return "RefundDetail [outRefundNo=" + outRefundNo + ", refundId="

View File

@ -63,6 +63,10 @@ public enum ButtonType {
* 永久素材类型只支持图文消息 请注意永久素材id必须是在素材管理/新增永久素材接口上传后获得的合法id
*/
view_limited,
/**
* 小程序
*/
miniprogram,
/**
* 以下类型请勿使用,在公众平台设置的按钮类型,如果尝试使用API方式创建菜单则会出错
*/

View File

@ -25,5 +25,13 @@ public enum RefundChannel {
/**
* 银行
*/
BANK;
BANK,
/**
* 原账户异常退到其他余额账户
*/
OTHER_BALANCE,
/**
* 原银行卡异常退到其他银行卡
*/
OTHER_BANKCARD
}

View File

@ -4,6 +4,7 @@ import java.io.Serializable;
import java.util.Date;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElements;
import javax.xml.bind.annotation.XmlTransient;
import com.foxinmy.weixin4j.type.MessageType;
@ -65,12 +66,12 @@ public class WeixinMessage implements Serializable {
/**
* 消息ID 可用于排重
*/
@XmlElement(name = "MsgId")
@XmlElements({ @XmlElement(name = "MsgId"), @XmlElement(name = "MsgID") })
private long msgId;
/**
* 企业号独有的应用ID
*/
@XmlElement(name = "AgentID")
@XmlElements({ @XmlElement(name = "AgentId"), @XmlElement(name = "AgentID") })
private String agentId;
public WeixinMessage() {