补充setter方法

This commit is contained in:
Kit.lee 2020-04-01 18:00:02 +08:00
parent a2b23c237b
commit 73d4642617
33 changed files with 614 additions and 48 deletions

View File

@ -8,7 +8,6 @@ package com.foxinmy.weixin4j.type.mch;
* @date 2015年4月1日 * @date 2015年4月1日
* @since JDK 1.6 * @since JDK 1.6
* @see * @see
* @deprecated 迁移到子模块weixin4j-pay
*/ */
@Deprecated @Deprecated
public enum CorpPaymentCheckNameType { public enum CorpPaymentCheckNameType {

View File

@ -43,10 +43,18 @@ public class JsPayNotify extends PayBaseInfo {
return openId; return openId;
} }
public void setOpenId(String openId) {
this.openId = openId;
}
public int getIsSubscribe() { public int getIsSubscribe() {
return isSubscribe; return isSubscribe;
} }
public void setIsSubscribe(int isSubscribe) {
this.isSubscribe = isSubscribe;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public boolean getFormatIsSubscribe() { public boolean getFormatIsSubscribe() {
return isSubscribe == 1; return isSubscribe == 1;

View File

@ -81,7 +81,7 @@ public class PayPackage extends MerchantResult {
@JSONField(name = "goods_tag") @JSONField(name = "goods_tag")
private String goodsTag; private String goodsTag;
public PayPackage() { protected PayPackage() {
// jaxb required // jaxb required
} }
@ -194,6 +194,10 @@ public class PayPackage extends MerchantResult {
public int getTotalFee() { public int getTotalFee() {
return totalFee; return totalFee;
} }
public void setTotalFee(int totalFee) {
this.totalFee = totalFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>

View File

@ -33,7 +33,7 @@ public class PayRequest extends PayBaseInfo {
private String partnerId; private String partnerId;
public PayRequest() { protected PayRequest() {
// jaxb required // jaxb required
} }

View File

@ -178,10 +178,18 @@ public class CouponDetail extends MerchantResult {
return couponStockId; return couponStockId;
} }
public void setCouponStockId(String couponStockId) {
this.couponStockId = couponStockId;
}
public int getCouponStockType() { public int getCouponStockType() {
return couponStockType; return couponStockType;
} }
public void setCouponStockType(int couponStockType) {
this.couponStockType = couponStockType;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public CouponStockType getFormatCouponStockType() { public CouponStockType getFormatCouponStockType() {
for (CouponStockType couponStockType : CouponStockType.values()) { for (CouponStockType couponStockType : CouponStockType.values()) {
@ -196,10 +204,18 @@ public class CouponDetail extends MerchantResult {
return couponId; return couponId;
} }
public void setCouponId(String couponId) {
this.couponId = couponId;
}
public int getCouponValue() { public int getCouponValue() {
return couponValue; return couponValue;
} }
public void setCouponValue(int couponValue) {
this.couponValue = couponValue;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -214,6 +230,10 @@ public class CouponDetail extends MerchantResult {
return couponMininum; return couponMininum;
} }
public void setCouponMininum(int couponMininum) {
this.couponMininum = couponMininum;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -228,10 +248,18 @@ public class CouponDetail extends MerchantResult {
return couponName; return couponName;
} }
public void setCouponName(String couponName) {
this.couponName = couponName;
}
public int getCouponStatus() { public int getCouponStatus() {
return couponStatus; return couponStatus;
} }
public void setCouponStatus(int couponStatus) {
this.couponStatus = couponStatus;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public CouponStatus getFormatCouponStatus() { public CouponStatus getFormatCouponStatus() {
for (CouponStatus couponStatus : CouponStatus.values()) { for (CouponStatus couponStatus : CouponStatus.values()) {
@ -246,6 +274,10 @@ public class CouponDetail extends MerchantResult {
return couponType; return couponType;
} }
public void setCouponType(int couponType) {
this.couponType = couponType;
}
@JSONField(deserialize = false, serialize = false) @JSONField(deserialize = false, serialize = false)
public CouponType getFormatCouponType() { public CouponType getFormatCouponType() {
for (CouponType couponType : CouponType.values()) { for (CouponType couponType : CouponType.values()) {
@ -260,10 +292,18 @@ public class CouponDetail extends MerchantResult {
return couponDesc; return couponDesc;
} }
public void setCouponDesc(String couponDesc) {
this.couponDesc = couponDesc;
}
public int getCouponUseValue() { public int getCouponUseValue() {
return couponUseValue; return couponUseValue;
} }
public void setCouponUseValue(int couponUseValue) {
this.couponUseValue = couponUseValue;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -288,10 +328,18 @@ public class CouponDetail extends MerchantResult {
return couponRemainValue / 100d; return couponRemainValue / 100d;
} }
public void setCouponRemainValue(int couponRemainValue) {
this.couponRemainValue = couponRemainValue;
}
public String getBeginTime() { public String getBeginTime() {
return beginTime; return beginTime;
} }
public void setBeginTime(String beginTime) {
this.beginTime = beginTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatBeginTime() { public Date getFormatBeginTime() {
return beginTime != null ? DateUtil.parse2yyyyMMddHHmmss(beginTime) return beginTime != null ? DateUtil.parse2yyyyMMddHHmmss(beginTime)
@ -302,6 +350,10 @@ public class CouponDetail extends MerchantResult {
return endTime; return endTime;
} }
public void setEndTime(String endTime) {
this.endTime = endTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatEndTime() { public Date getFormatEndTime() {
return endTime != null ? DateUtil.parse2yyyyMMddHHmmss(endTime) : null; return endTime != null ? DateUtil.parse2yyyyMMddHHmmss(endTime) : null;
@ -311,6 +363,10 @@ public class CouponDetail extends MerchantResult {
return sendTime; return sendTime;
} }
public void setSendTime(String sendTime) {
this.sendTime = sendTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatSendTime() { public Date getFormatSendTime() {
return sendTime != null ? DateUtil.parse2yyyyMMddHHmmss(sendTime) return sendTime != null ? DateUtil.parse2yyyyMMddHHmmss(sendTime)
@ -326,26 +382,50 @@ public class CouponDetail extends MerchantResult {
return useTime != null ? DateUtil.parse2yyyyMMddHHmmss(useTime) : null; return useTime != null ? DateUtil.parse2yyyyMMddHHmmss(useTime) : null;
} }
public void setUseTime(String useTime) {
this.useTime = useTime;
}
public String getTradeNo() { public String getTradeNo() {
return tradeNo; return tradeNo;
} }
public void setTradeNo(String tradeNo) {
this.tradeNo = tradeNo;
}
public String getConsumerMchId() { public String getConsumerMchId() {
return consumerMchId; return consumerMchId;
} }
public void setConsumerMchId(String consumerMchId) {
this.consumerMchId = consumerMchId;
}
public String getConsumerMchName() { public String getConsumerMchName() {
return consumerMchName; return consumerMchName;
} }
public void setConsumerMchName(String consumerMchName) {
this.consumerMchName = consumerMchName;
}
public String getConsumerMchAppid() { public String getConsumerMchAppid() {
return consumerMchAppid; return consumerMchAppid;
} }
public void setConsumerMchAppid(String consumerMchAppid) {
this.consumerMchAppid = consumerMchAppid;
}
public String getSendSource() { public String getSendSource() {
return sendSource; return sendSource;
} }
public void setSendSource(String sendSource) {
this.sendSource = sendSource;
}
public int getIsPartialUse() { public int getIsPartialUse() {
return isPartialUse; return isPartialUse;
} }
@ -355,6 +435,10 @@ public class CouponDetail extends MerchantResult {
return isPartialUse == 1; return isPartialUse == 1;
} }
public void setIsPartialUse(int isPartialUse) {
this.isPartialUse = isPartialUse;
}
@Override @Override
public String toString() { public String toString() {
return "CouponDetail [couponStockId=" + couponStockId return "CouponDetail [couponStockId=" + couponStockId

View File

@ -80,18 +80,38 @@ public class CouponResult extends MerchantResult {
return couponStockId; return couponStockId;
} }
public void setCouponStockId(String couponStockId) {
this.couponStockId = couponStockId;
}
public void setOpenId(String openId) {
this.openId = openId;
}
public int getResponseCount() { public int getResponseCount() {
return responseCount; return responseCount;
} }
public void setResponseCount(int responseCount) {
this.responseCount = responseCount;
}
public int getSuccessCount() { public int getSuccessCount() {
return successCount; return successCount;
} }
public void setSuccessCount(int successCount) {
this.successCount = successCount;
}
public int getFailedCount() { public int getFailedCount() {
return failedCount; return failedCount;
} }
public void setFailedCount(int failedCount) {
this.failedCount = failedCount;
}
public String getOpenId() { public String getOpenId() {
return openId; return openId;
} }
@ -100,14 +120,26 @@ public class CouponResult extends MerchantResult {
return retCode; return retCode;
} }
public void setRetCode(String retCode) {
this.retCode = retCode;
}
public String getCouponId() { public String getCouponId() {
return couponId; return couponId;
} }
public void setCouponId(String couponId) {
this.couponId = couponId;
}
public String getRetMsg() { public String getRetMsg() {
return retMsg; return retMsg;
} }
public void setRetMsg(String retMsg) {
this.retMsg = retMsg;
}
@Override @Override
public String toString() { public String toString() {
return "CouponResult [couponStockId=" + couponStockId return "CouponResult [couponStockId=" + couponStockId

View File

@ -126,14 +126,26 @@ public class CouponStock extends MerchantResult {
return couponStockId; return couponStockId;
} }
public void setCouponStockId(String couponStockId) {
this.couponStockId = couponStockId;
}
public String getCouponName() { public String getCouponName() {
return couponName; return couponName;
} }
public void setCouponName(String couponName) {
this.couponName = couponName;
}
public int getCouponValue() { public int getCouponValue() {
return couponValue; return couponValue;
} }
public void setCouponValue(int couponValue) {
this.couponValue = couponValue;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -148,6 +160,10 @@ public class CouponStock extends MerchantResult {
return couponMininumn; return couponMininumn;
} }
public void setCouponMininumn(Integer couponMininumn) {
this.couponMininumn = couponMininumn;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -172,6 +188,10 @@ public class CouponStock extends MerchantResult {
return null; return null;
} }
public void setCouponType(int couponType) {
this.couponType = couponType;
}
public int getCouponStockStatus() { public int getCouponStockStatus() {
return couponStockStatus; return couponStockStatus;
} }
@ -186,14 +206,26 @@ public class CouponStock extends MerchantResult {
return null; return null;
} }
public void setCouponStockStatus(int couponStockStatus) {
this.couponStockStatus = couponStockStatus;
}
public int getCouponTotal() { public int getCouponTotal() {
return couponTotal; return couponTotal;
} }
public void setCouponTotal(int couponTotal) {
this.couponTotal = couponTotal;
}
public Integer getMaxQuota() { public Integer getMaxQuota() {
return maxQuota; return maxQuota;
} }
public void setMaxQuota(Integer maxQuota) {
this.maxQuota = maxQuota;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -208,6 +240,10 @@ public class CouponStock extends MerchantResult {
return lockedNum; return lockedNum;
} }
public void setLockedNum(Integer lockedNum) {
this.lockedNum = lockedNum;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -222,6 +258,10 @@ public class CouponStock extends MerchantResult {
return usedNum; return usedNum;
} }
public void setUsedNum(Integer usedNum) {
this.usedNum = usedNum;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -236,6 +276,10 @@ public class CouponStock extends MerchantResult {
return sendNum; return sendNum;
} }
public void setSendNum(Integer sendNum) {
this.sendNum = sendNum;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -250,6 +294,10 @@ public class CouponStock extends MerchantResult {
return beginTime; return beginTime;
} }
public void setBeginTime(String beginTime) {
this.beginTime = beginTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatBeginTime() { public Date getFormatBeginTime() {
return beginTime != null ? DateUtil.parse2yyyyMMddHHmmss(beginTime) return beginTime != null ? DateUtil.parse2yyyyMMddHHmmss(beginTime)
@ -260,6 +308,10 @@ public class CouponStock extends MerchantResult {
return endTime; return endTime;
} }
public void setEndTime(String endTime) {
this.endTime = endTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatEndTime() { public Date getFormatEndTime() {
return endTime != null ? DateUtil.parse2yyyyMMddHHmmss(endTime) : null; return endTime != null ? DateUtil.parse2yyyyMMddHHmmss(endTime) : null;
@ -269,6 +321,10 @@ public class CouponStock extends MerchantResult {
return createTime; return createTime;
} }
public void setCreateTime(String createTime) {
this.createTime = createTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatCreateTime() { public Date getFormatCreateTime() {
return createTime != null ? DateUtil.parse2yyyyMMddHHmmss(createTime) return createTime != null ? DateUtil.parse2yyyyMMddHHmmss(createTime)
@ -279,6 +335,10 @@ public class CouponStock extends MerchantResult {
return couponBudget; return couponBudget;
} }
public void setCouponBudget(Integer couponBudget) {
this.couponBudget = couponBudget;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *

View File

@ -51,7 +51,7 @@ public class OrderCouponInfo implements Serializable {
@JSONField(name = "coupon_fee") @JSONField(name = "coupon_fee")
private Integer couponFee; private Integer couponFee;
public OrderCouponInfo() { protected OrderCouponInfo() {
// jaxb requried // jaxb requried
} }
@ -59,10 +59,18 @@ public class OrderCouponInfo implements Serializable {
return couponBatchId; return couponBatchId;
} }
public void setCouponBatchId(String couponBatchId) {
this.couponBatchId = couponBatchId;
}
public String getCouponType() { public String getCouponType() {
return couponType; return couponType;
} }
public void setCouponType(String couponType) {
this.couponType = couponType;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public CouponType getFormatCouponType() { public CouponType getFormatCouponType() {
return couponType != null ? CouponType return couponType != null ? CouponType
@ -73,10 +81,18 @@ public class OrderCouponInfo implements Serializable {
return couponId; return couponId;
} }
public void setCouponId(String couponId) {
this.couponId = couponId;
}
public Integer getCouponFee() { public Integer getCouponFee() {
return couponFee; return couponFee;
} }
public void setCouponFee(Integer couponFee) {
this.couponFee = couponFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *

View File

@ -42,7 +42,7 @@ public class RefundCouponInfo implements Serializable {
@JSONField(name = "coupon_refund_fee") @JSONField(name = "coupon_refund_fee")
private Integer couponFee; private Integer couponFee;
public RefundCouponInfo() { protected RefundCouponInfo() {
// jaxb requried // jaxb requried
} }
@ -50,14 +50,26 @@ public class RefundCouponInfo implements Serializable {
return couponBatchId; return couponBatchId;
} }
public void setCouponBatchId(String couponBatchId) {
this.couponBatchId = couponBatchId;
}
public String getCouponId() { public String getCouponId() {
return couponId; return couponId;
} }
public void setCouponId(String couponId) {
this.couponId = couponId;
}
public Integer getCouponFee() { public Integer getCouponFee() {
return couponFee; return couponFee;
} }
public void setCouponFee(Integer couponFee) {
this.couponFee = couponFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *

View File

@ -1,7 +1,7 @@
package com.foxinmy.weixin4j.pay.payment.mch; package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.type.mch.CorpPaymentCheckNameType; import com.foxinmy.weixin4j.pay.type.mch.CorpPaymentCheckNameType;
import com.foxinmy.weixin4j.util.DateUtil; import com.foxinmy.weixin4j.util.DateUtil;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@ -38,7 +38,7 @@ public class CorpPayment extends MerchantResult {
/** /**
* 校验用户姓名选项 * 校验用户姓名选项
* *
* @see CorpPaymentCheckNameType.type.MPPaymentCheckNameType * @see CorpPaymentCheckNameType
*/ */
@XmlElement(name = "check_name") @XmlElement(name = "check_name")
@JSONField(name = "check_name") @JSONField(name = "check_name")
@ -64,7 +64,7 @@ public class CorpPayment extends MerchantResult {
@JSONField(name = "spbill_create_ip") @JSONField(name = "spbill_create_ip")
private String clientIp; private String clientIp;
public CorpPayment() { protected CorpPayment() {
// jaxb required // jaxb required
} }
@ -99,25 +99,49 @@ public class CorpPayment extends MerchantResult {
return outTradeNo; return outTradeNo;
} }
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOpenId() { public String getOpenId() {
return openId; return openId;
} }
public void setOpenId(String openId) {
this.openId = openId;
}
public CorpPaymentCheckNameType getCheckNameType() { public CorpPaymentCheckNameType getCheckNameType() {
return checkNameType; return checkNameType;
} }
public void setCheckNameType(CorpPaymentCheckNameType checkNameType) {
this.checkNameType = checkNameType;
}
public String getUserName() { public String getUserName() {
return userName; return userName;
} }
public void setUserName(String userName) {
this.userName = userName;
}
public String getDesc() { public String getDesc() {
return desc; return desc;
} }
public void setDesc(String desc) {
this.desc = desc;
}
public int getAmount() { public int getAmount() {
return amount; return amount;
} }
public void setAmount(int amount) {
this.amount = amount;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
@ -133,8 +157,8 @@ public class CorpPayment extends MerchantResult {
return clientIp; return clientIp;
} }
public void setUserName(String userName) { public void setClientIp(String clientIp) {
this.userName = userName; this.clientIp = clientIp;
} }
@Override @Override

View File

@ -1,7 +1,7 @@
package com.foxinmy.weixin4j.pay.payment.mch; package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.type.mch.CorpPaymentCheckNameType; import com.foxinmy.weixin4j.pay.type.mch.CorpPaymentCheckNameType;
import com.foxinmy.weixin4j.util.DateUtil; import com.foxinmy.weixin4j.util.DateUtil;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@ -76,7 +76,7 @@ public class CorpPaymentRecord extends MerchantResult {
/** /**
* 校验用户姓名选项 * 校验用户姓名选项
* *
* @see CorpPaymentCheckNameType.type.MPPaymentCheckNameType * @see CorpPaymentCheckNameType
*/ */
@XmlElement(name = "check_name") @XmlElement(name = "check_name")
@JSONField(name = "check_name") @JSONField(name = "check_name")
@ -93,7 +93,7 @@ public class CorpPaymentRecord extends MerchantResult {
@XmlElement(name = "check_name_result") @XmlElement(name = "check_name_result")
private String checkNameResult; private String checkNameResult;
public CorpPaymentRecord() { protected CorpPaymentRecord() {
// jaxb required // jaxb required
} }
@ -101,14 +101,26 @@ public class CorpPaymentRecord extends MerchantResult {
return transactionId; return transactionId;
} }
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public String getOutTradeNo() { public String getOutTradeNo() {
return outTradeNo; return outTradeNo;
} }
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getTransactionStatus() { public String getTransactionStatus() {
return transactionStatus; return transactionStatus;
} }
public void setTransactionStatus(String transactionStatus) {
this.transactionStatus = transactionStatus;
}
/** /**
* 格式化交易状态 * 格式化交易状态
* *
@ -123,18 +135,34 @@ public class CorpPaymentRecord extends MerchantResult {
return failureReason; return failureReason;
} }
public void setFailureReason(String failureReason) {
this.failureReason = failureReason;
}
public String getOpenId() { public String getOpenId() {
return openId; return openId;
} }
public void setOpenId(String openId) {
this.openId = openId;
}
public String getTransferName() { public String getTransferName() {
return transferName; return transferName;
} }
public void setTransferName(String transferName) {
this.transferName = transferName;
}
public int getPaymentAmount() { public int getPaymentAmount() {
return paymentAmount; return paymentAmount;
} }
public void setPaymentAmount(int paymentAmount) {
this.paymentAmount = paymentAmount;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -149,6 +177,10 @@ public class CorpPaymentRecord extends MerchantResult {
return transferTime; return transferTime;
} }
public void setTransferTime(String transferTime) {
this.transferTime = transferTime;
}
/** /**
* 格式化转账时间 * 格式化转账时间
* *
@ -164,6 +196,10 @@ public class CorpPaymentRecord extends MerchantResult {
return checkNameType; return checkNameType;
} }
public void setCheckNameType(String checkNameType) {
this.checkNameType = checkNameType;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public CorpPaymentCheckNameType getFormatCheckNameType() { public CorpPaymentCheckNameType getFormatCheckNameType() {
return checkNameType != null ? CorpPaymentCheckNameType return checkNameType != null ? CorpPaymentCheckNameType
@ -174,10 +210,18 @@ public class CorpPaymentRecord extends MerchantResult {
return desc; return desc;
} }
public void setDesc(String desc) {
this.desc = desc;
}
public String getCheckNameResult() { public String getCheckNameResult() {
return checkNameResult; return checkNameResult;
} }
public void setCheckNameResult(String checkNameResult) {
this.checkNameResult = checkNameResult;
}
/** /**
* 格式化交易状态 * 格式化交易状态
* *

View File

@ -43,7 +43,7 @@ public class CorpPaymentResult extends MerchantResult {
@XmlElement(name = "payment_time") @XmlElement(name = "payment_time")
private String paymentTime; private String paymentTime;
public CorpPaymentResult() { protected CorpPaymentResult() {
// jaxb required // jaxb required
} }
@ -51,14 +51,26 @@ public class CorpPaymentResult extends MerchantResult {
return transactionId; return transactionId;
} }
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public String getOutTradeNo() { public String getOutTradeNo() {
return outTradeNo; return outTradeNo;
} }
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getPaymentTime() { public String getPaymentTime() {
return paymentTime; return paymentTime;
} }
public void setPaymentTime(String paymentTime) {
this.paymentTime = paymentTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatPaymentTime() { public Date getFormatPaymentTime() {
return paymentTime != null ? DateUtil.parseDate(paymentTime, return paymentTime != null ? DateUtil.parseDate(paymentTime,

View File

@ -1,9 +1,9 @@
package com.foxinmy.weixin4j.pay.payment.mch; package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.type.CredentialType; import com.foxinmy.weixin4j.pay.type.CredentialType;
import com.foxinmy.weixin4j.type.CurrencyType; import com.foxinmy.weixin4j.pay.type.CurrencyType;
import com.foxinmy.weixin4j.type.CustomsCity; import com.foxinmy.weixin4j.pay.type.CustomsCity;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -40,7 +40,7 @@ public class CustomsOrder extends MerchantResult {
/** /**
* 货币类型,符合 ISO 4217 标准的三位字母代码,默认人民币:CNY * 货币类型,符合 ISO 4217 标准的三位字母代码,默认人民币:CNY
* *
* @see com.foxinmy.weixin4j.mp.type.CurrencyType * @see com.foxinmy.weixin4j.pay.type.CurrencyType
*/ */
@XmlElement(name = "fee_type") @XmlElement(name = "fee_type")
@JSONField(name = "fee_type") @JSONField(name = "fee_type")

View File

@ -1,7 +1,7 @@
package com.foxinmy.weixin4j.pay.payment.mch; package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.type.CustomsSatus; import com.foxinmy.weixin4j.pay.type.CustomsSatus;
import com.foxinmy.weixin4j.util.DateUtil; import com.foxinmy.weixin4j.util.DateUtil;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;

View File

@ -27,7 +27,7 @@ public class MICROPayRequest extends Order implements MchPayRequest {
@JSONField(serialize = false) @JSONField(serialize = false)
private WeixinPayAccount paymentAccount; private WeixinPayAccount paymentAccount;
public MICROPayRequest() { protected MICROPayRequest() {
// jaxb required // jaxb required
} }

View File

@ -90,7 +90,7 @@ public class MchPayPackage extends PayPackage {
@JSONField(name = "deposit") @JSONField(name = "deposit")
private DepositType deposit; private DepositType deposit;
public MchPayPackage() { protected MchPayPackage() {
// jaxb required // jaxb required
} }
@ -193,22 +193,42 @@ public class MchPayPackage extends PayPackage {
return tradeType; return tradeType;
} }
public void setTradeType(String tradeType) {
this.tradeType = tradeType;
}
public String getFeeType() { public String getFeeType() {
return feeType; return feeType;
} }
public void setFeeType(String feeType) {
this.feeType = feeType;
}
public String getOpenId() { public String getOpenId() {
return openId; return openId;
} }
public void setOpenId(String openId) {
this.openId = openId;
}
public String getAuthCode() { public String getAuthCode() {
return authCode; return authCode;
} }
public void setAuthCode(String authCode) {
this.authCode = authCode;
}
public String getProductId() { public String getProductId() {
return productId; return productId;
} }
public void setProductId(String productId) {
this.productId = productId;
}
public String getLimitPay() { public String getLimitPay() {
return limitPay; return limitPay;
} }

View File

@ -75,7 +75,7 @@ public class MerchantResult extends XmlResult {
*/ */
private String recall; private String recall;
public MerchantResult() { protected MerchantResult() {
// jaxb required // jaxb required
} }

View File

@ -1,7 +1,7 @@
package com.foxinmy.weixin4j.pay.payment.mch; package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.type.CurrencyType; import com.foxinmy.weixin4j.pay.type.CurrencyType;
import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlElement;
@ -60,6 +60,10 @@ public class MerchantTradeResult extends MerchantResult {
return cashFee; return cashFee;
} }
public void setCashFee(Integer cashFee) {
this.cashFee = cashFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -74,6 +78,10 @@ public class MerchantTradeResult extends MerchantResult {
return totalFee; return totalFee;
} }
public void setTotalFee(Integer totalFee) {
this.totalFee = totalFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -94,18 +102,34 @@ public class MerchantTradeResult extends MerchantResult {
return feeType; return feeType;
} }
public void setFeeType(String feeType) {
this.feeType = feeType;
}
public String getTransactionId() { public String getTransactionId() {
return transactionId; return transactionId;
} }
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public String getOutTradeNo() { public String getOutTradeNo() {
return outTradeNo; return outTradeNo;
} }
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public Integer getSettlementTotalFee() { public Integer getSettlementTotalFee() {
return settlementTotalFee; return settlementTotalFee;
} }
public void setSettlementTotalFee(Integer settlementTotalFee) {
this.settlementTotalFee = settlementTotalFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *

View File

@ -34,7 +34,7 @@ public class NativePayNotify extends OpenIdResult {
@JSONField(name = "product_id") @JSONField(name = "product_id")
private String productId; private String productId;
public NativePayNotify() { protected NativePayNotify() {
// jaxb required // jaxb required
} }
@ -42,10 +42,18 @@ public class NativePayNotify extends OpenIdResult {
return productId; return productId;
} }
public void setIsSubscribe(String isSubscribe) {
this.isSubscribe = isSubscribe;
}
public String getIsSubscribe() { public String getIsSubscribe() {
return isSubscribe; return isSubscribe;
} }
public void setProductId(String productId) {
this.productId = productId;
}
@Override @Override
public String toString() { public String toString() {
return "NativePayNotify [productId=" + productId + ", isSubscribe=" return "NativePayNotify [productId=" + productId + ", isSubscribe="

View File

@ -30,7 +30,7 @@ public class NativePayResponse extends MerchantResult {
@JSONField(name = "prepay_id") @JSONField(name = "prepay_id")
private String prepayId; private String prepayId;
public NativePayResponse() { protected NativePayResponse() {
// jaxb required // jaxb required
} }
@ -71,6 +71,10 @@ public class NativePayResponse extends MerchantResult {
return prepayId; return prepayId;
} }
public void setPrepayId(String prepayId) {
this.prepayId = prepayId;
}
@Override @Override
public String toString() { public String toString() {
return "NativePayResponse [prepayId=" + prepayId + ", " return "NativePayResponse [prepayId=" + prepayId + ", "

View File

@ -40,10 +40,18 @@ public class OpenIdResult extends MerchantResult {
return openId; return openId;
} }
public void setOpenId(String openId) {
this.openId = openId;
}
public String getSubOpenId() { public String getSubOpenId() {
return subOpenId; return subOpenId;
} }
public void setSubOpenId(String subOpenId) {
this.subOpenId = subOpenId;
}
@Override @Override
public String toString() { public String toString() {
return "OpenIdResult [openId=" + openId + ", subOpenId=" + subOpenId return "OpenIdResult [openId=" + openId + ", subOpenId=" + subOpenId

View File

@ -2,10 +2,10 @@ package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.pay.payment.coupon.OrderCouponInfo; import com.foxinmy.weixin4j.pay.payment.coupon.OrderCouponInfo;
import com.foxinmy.weixin4j.type.BankType; import com.foxinmy.weixin4j.pay.type.BankType;
import com.foxinmy.weixin4j.type.CurrencyType; import com.foxinmy.weixin4j.pay.type.CurrencyType;
import com.foxinmy.weixin4j.type.TradeState; import com.foxinmy.weixin4j.pay.type.TradeState;
import com.foxinmy.weixin4j.type.TradeType; import com.foxinmy.weixin4j.pay.type.TradeType;
import com.foxinmy.weixin4j.util.DateUtil; import com.foxinmy.weixin4j.util.DateUtil;
import com.foxinmy.weixin4j.xml.ListsuffixResult; import com.foxinmy.weixin4j.xml.ListsuffixResult;
@ -120,7 +120,7 @@ public class Order extends MerchantTradeResult {
@JSONField(name = "sub_is_subscribe") @JSONField(name = "sub_is_subscribe")
private String subIsSubscribe; private String subIsSubscribe;
public Order() { protected Order() {
// jaxb required // jaxb required
} }
@ -134,10 +134,18 @@ public class Order extends MerchantTradeResult {
return openId; return openId;
} }
public void setOpenId(String openId) {
this.openId = openId;
}
public String getIsSubscribe() { public String getIsSubscribe() {
return isSubscribe; return isSubscribe;
} }
public void setIsSubscribe(String isSubscribe) {
this.isSubscribe = isSubscribe;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public boolean getFormatIsSubscribe() { public boolean getFormatIsSubscribe() {
return isSubscribe != null && isSubscribe.equalsIgnoreCase("y"); return isSubscribe != null && isSubscribe.equalsIgnoreCase("y");
@ -153,6 +161,10 @@ public class Order extends MerchantTradeResult {
return bankType; return bankType;
} }
public void setBankType(String bankType) {
this.bankType = bankType;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public BankType getFormatBankType() { public BankType getFormatBankType() {
return bankType != null ? BankType.valueOf(bankType.toUpperCase()) return bankType != null ? BankType.valueOf(bankType.toUpperCase())
@ -163,6 +175,10 @@ public class Order extends MerchantTradeResult {
return couponFee; return couponFee;
} }
public void setCouponFee(Integer couponFee) {
this.couponFee = couponFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -177,22 +193,42 @@ public class Order extends MerchantTradeResult {
return couponCount; return couponCount;
} }
public void setCouponCount(Integer couponCount) {
this.couponCount = couponCount;
}
public String getTradeState() { public String getTradeState() {
return tradeState; return tradeState;
} }
public void setTradeState(String tradeState) {
this.tradeState = tradeState;
}
public String getTradeType() { public String getTradeType() {
return tradeType; return tradeType;
} }
public void setTradeType(String tradeType) {
this.tradeType = tradeType;
}
public String getAttach() { public String getAttach() {
return attach; return attach;
} }
public void setAttach(String attach) {
this.attach = attach;
}
public String getTimeEnd() { public String getTimeEnd() {
return timeEnd; return timeEnd;
} }
public void setTimeEnd(String timeEnd) {
this.timeEnd = timeEnd;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatTimeEnd() { public Date getFormatTimeEnd() {
return timeEnd != null ? DateUtil.parse2yyyyMMddHHmmss(timeEnd) : null; return timeEnd != null ? DateUtil.parse2yyyyMMddHHmmss(timeEnd) : null;
@ -202,6 +238,10 @@ public class Order extends MerchantTradeResult {
return tradeStateDesc; return tradeStateDesc;
} }
public void setTradeStateDesc(String tradeStateDesc) {
this.tradeStateDesc = tradeStateDesc;
}
public List<OrderCouponInfo> getCouponList() { public List<OrderCouponInfo> getCouponList() {
return couponList; return couponList;
} }
@ -214,10 +254,18 @@ public class Order extends MerchantTradeResult {
return subOpenId; return subOpenId;
} }
public void setSubOpenId(String subOpenId) {
this.subOpenId = subOpenId;
}
public String getSubIsSubscribe() { public String getSubIsSubscribe() {
return subIsSubscribe; return subIsSubscribe;
} }
public void setSubIsSubscribe(String subIsSubscribe) {
this.subIsSubscribe = subIsSubscribe;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public boolean getFormatSubIsSubscribe() { public boolean getFormatSubIsSubscribe() {
return subIsSubscribe != null && subIsSubscribe.equalsIgnoreCase("y"); return subIsSubscribe != null && subIsSubscribe.equalsIgnoreCase("y");
@ -227,6 +275,10 @@ public class Order extends MerchantTradeResult {
return cashFeeType; return cashFeeType;
} }
public void setCashFeeType(String cashFeeType) {
this.cashFeeType = cashFeeType;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public CurrencyType getFormatCashFeeType() { public CurrencyType getFormatCashFeeType() {
return cashFeeType != null ? CurrencyType.valueOf(cashFeeType return cashFeeType != null ? CurrencyType.valueOf(cashFeeType

View File

@ -1,6 +1,6 @@
package com.foxinmy.weixin4j.pay.payment.mch; package com.foxinmy.weixin4j.pay.payment.mch;
import com.foxinmy.weixin4j.type.TradeType; import com.foxinmy.weixin4j.pay.type.TradeType;
import javax.xml.bind.annotation.*; import javax.xml.bind.annotation.*;
@ -22,7 +22,7 @@ public class PrePay extends MerchantResult {
/** /**
* 调用接口提交的交易类型取值如下JSAPINATIVEAPP * 调用接口提交的交易类型取值如下JSAPINATIVEAPP
* *
* @see com.foxinmy.weixin4j.mp.type.TradeType * @see com.foxinmy.weixin4j.pay.type.TradeType
*/ */
@XmlElement(name = "trade_type") @XmlElement(name = "trade_type")
private TradeType tradeType; private TradeType tradeType;
@ -39,7 +39,7 @@ public class PrePay extends MerchantResult {
@XmlElement(name = "mweb_url") }) @XmlElement(name = "mweb_url") })
private String payUrl; private String payUrl;
public PrePay() { protected PrePay() {
// jaxb required // jaxb required
} }

View File

@ -1,7 +1,7 @@
package com.foxinmy.weixin4j.pay.payment.mch; package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.type.mch.RedpacketSceneType; import com.foxinmy.weixin4j.pay.type.mch.RedpacketSceneType;
import com.foxinmy.weixin4j.util.DateUtil; import com.foxinmy.weixin4j.util.DateUtil;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@ -110,7 +110,7 @@ public class Redpacket extends MerchantResult {
@JSONField(name = "risk_info") @JSONField(name = "risk_info")
private String risk; private String risk;
public Redpacket() { protected Redpacket() {
// jaxb required // jaxb required
} }
@ -174,18 +174,34 @@ public class Redpacket extends MerchantResult {
return outTradeNo; return outTradeNo;
} }
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOpenId() { public String getOpenId() {
return openId; return openId;
} }
public void setOpenId(String openId) {
this.openId = openId;
}
public String getSendName() { public String getSendName() {
return sendName; return sendName;
} }
public void setSendName(String sendName) {
this.sendName = sendName;
}
public int getTotalAmount() { public int getTotalAmount() {
return totalAmount; return totalAmount;
} }
public void setTotalAmount(int totalAmount) {
this.totalAmount = totalAmount;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -200,26 +216,50 @@ public class Redpacket extends MerchantResult {
return totalNum; return totalNum;
} }
public void setTotalNum(int totalNum) {
this.totalNum = totalNum;
}
public String getWishing() { public String getWishing() {
return wishing; return wishing;
} }
public void setWishing(String wishing) {
this.wishing = wishing;
}
public String getAmtType() { public String getAmtType() {
return amtType; return amtType;
} }
public void setAmtType(String amtType) {
this.amtType = amtType;
}
public String getClientIp() { public String getClientIp() {
return clientIp; return clientIp;
} }
public void setClientIp(String clientIp) {
this.clientIp = clientIp;
}
public String getActName() { public String getActName() {
return actName; return actName;
} }
public void setActName(String actName) {
this.actName = actName;
}
public String getRemark() { public String getRemark() {
return remark; return remark;
} }
public void setRemark(String remark) {
this.remark = remark;
}
public String getMsgAppId() { public String getMsgAppId() {
return msgAppId; return msgAppId;
} }

View File

@ -2,9 +2,9 @@ package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.http.weixin.XmlResult; import com.foxinmy.weixin4j.http.weixin.XmlResult;
import com.foxinmy.weixin4j.type.mch.RedpacketSendType; import com.foxinmy.weixin4j.pay.type.mch.RedpacketSendType;
import com.foxinmy.weixin4j.type.mch.RedpacketStatus; import com.foxinmy.weixin4j.pay.type.mch.RedpacketStatus;
import com.foxinmy.weixin4j.type.mch.RedpacketType; import com.foxinmy.weixin4j.pay.type.mch.RedpacketType;
import com.foxinmy.weixin4j.util.DateUtil; import com.foxinmy.weixin4j.util.DateUtil;
import javax.xml.bind.annotation.*; import javax.xml.bind.annotation.*;

View File

@ -72,6 +72,10 @@ public class RedpacketRisk {
return risk; return risk;
} }
public void setRisk(Map<String, String> risk) {
this.risk = risk;
}
public String toContent() { public String toContent() {
if (risk.isEmpty()) if (risk.isEmpty())
return null; return null;

View File

@ -54,7 +54,7 @@ public class RedpacketSendResult extends MerchantResult {
@JSONField(name = "send_listid") @JSONField(name = "send_listid")
private String sendListid; private String sendListid;
public RedpacketSendResult() { protected RedpacketSendResult() {
// jaxb required // jaxb required
} }
@ -62,14 +62,26 @@ public class RedpacketSendResult extends MerchantResult {
return outTradeNo; return outTradeNo;
} }
public void setOutTradeNo(String outTradeNo) {
this.outTradeNo = outTradeNo;
}
public String getOpenId() { public String getOpenId() {
return openId; return openId;
} }
public void setOpenId(String openId) {
this.openId = openId;
}
public int getTotalAmount() { public int getTotalAmount() {
return totalAmount; return totalAmount;
} }
public void setTotalAmount(int totalAmount) {
this.totalAmount = totalAmount;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -84,6 +96,10 @@ public class RedpacketSendResult extends MerchantResult {
return sendTime; return sendTime;
} }
public void setSendTime(String sendTime) {
this.sendTime = sendTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatSendTime() { public Date getFormatSendTime() {
return DateUtil.parse2yyyyMMddHHmmss(sendTime); return DateUtil.parse2yyyyMMddHHmmss(sendTime);
@ -93,6 +109,10 @@ public class RedpacketSendResult extends MerchantResult {
return sendListid; return sendListid;
} }
public void setSendListid(String sendListid) {
this.sendListid = sendListid;
}
@Override @Override
public String toString() { public String toString() {
return "RedpacketSendResult [outTradeNo=" + outTradeNo + ", openId=" return "RedpacketSendResult [outTradeNo=" + outTradeNo + ", openId="

View File

@ -2,9 +2,9 @@ package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.pay.payment.coupon.RefundCouponInfo; import com.foxinmy.weixin4j.pay.payment.coupon.RefundCouponInfo;
import com.foxinmy.weixin4j.type.mch.CouponType; import com.foxinmy.weixin4j.pay.type.mch.CouponType;
import com.foxinmy.weixin4j.type.mch.RefundChannel; import com.foxinmy.weixin4j.pay.type.mch.RefundChannel;
import com.foxinmy.weixin4j.type.mch.RefundStatus; import com.foxinmy.weixin4j.pay.type.mch.RefundStatus;
import com.foxinmy.weixin4j.util.DateUtil; import com.foxinmy.weixin4j.util.DateUtil;
import com.foxinmy.weixin4j.xml.ListsuffixResult; import com.foxinmy.weixin4j.xml.ListsuffixResult;
@ -29,7 +29,7 @@ import java.util.List;
public class RefundDetail implements Serializable { public class RefundDetail implements Serializable {
private static final long serialVersionUID = 1402738803019986864L; private static final long serialVersionUID = 1402738803019986864L;
public RefundDetail() { protected RefundDetail() {
// jaxb required // jaxb required
} }
@ -113,14 +113,26 @@ public class RefundDetail implements Serializable {
return outRefundNo; return outRefundNo;
} }
public void setOutRefundNo(String outRefundNo) {
this.outRefundNo = outRefundNo;
}
public String getRefundId() { public String getRefundId() {
return refundId; return refundId;
} }
public void setRefundId(String refundId) {
this.refundId = refundId;
}
public String getRefundChannel() { public String getRefundChannel() {
return refundChannel; return refundChannel;
} }
public void setRefundChannel(String refundChannel) {
this.refundChannel = refundChannel;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public RefundChannel getFormatRefundChannel() { public RefundChannel getFormatRefundChannel() {
return refundChannel != null ? RefundChannel.valueOf(refundChannel return refundChannel != null ? RefundChannel.valueOf(refundChannel
@ -131,10 +143,18 @@ public class RefundDetail implements Serializable {
return refundFee; return refundFee;
} }
public void setRefundFee(int refundFee) {
this.refundFee = refundFee;
}
public String getRefundStatus() { public String getRefundStatus() {
return refundStatus; return refundStatus;
} }
public void setRefundStatus(String refundStatus) {
this.refundStatus = refundStatus;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public RefundStatus getFormatRefundStatus() { public RefundStatus getFormatRefundStatus() {
return refundStatus != null ? RefundStatus.valueOf(refundStatus return refundStatus != null ? RefundStatus.valueOf(refundStatus
@ -153,6 +173,10 @@ public class RefundDetail implements Serializable {
return settlementRefundFee; return settlementRefundFee;
} }
public void setSettlementRefundFee(Integer settlementRefundFee) {
this.settlementRefundFee = settlementRefundFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -167,6 +191,10 @@ public class RefundDetail implements Serializable {
return couponRefundFee; return couponRefundFee;
} }
public void setCouponRefundFee(Integer couponRefundFee) {
this.couponRefundFee = couponRefundFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -181,10 +209,18 @@ public class RefundDetail implements Serializable {
return couponRefundCount; return couponRefundCount;
} }
public void setCouponRefundCount(Integer couponRefundCount) {
this.couponRefundCount = couponRefundCount;
}
public String getCouponType() { public String getCouponType() {
return couponType; return couponType;
} }
public void setCouponType(String couponType) {
this.couponType = couponType;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public CouponType getFormatCouponType() { public CouponType getFormatCouponType() {
return couponType != null ? CouponType return couponType != null ? CouponType
@ -195,9 +231,17 @@ public class RefundDetail implements Serializable {
return refundRecvAccout; return refundRecvAccout;
} }
public void setRefundRecvAccout(String refundRecvAccout) {
this.refundRecvAccout = refundRecvAccout;
}
public String getRefundSuccessTime() { public String getRefundSuccessTime() {
return refundSuccessTime; return refundSuccessTime;
} }
public void setRefundSuccessTime(String refundSuccessTime) {
this.refundSuccessTime = refundSuccessTime;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public Date getFormatRefundSuccessTime() { public Date getFormatRefundSuccessTime() {

View File

@ -42,7 +42,7 @@ public class RefundRecord extends MerchantTradeResult {
@ListsuffixResult({ ".*(_\\d)$" }) @ListsuffixResult({ ".*(_\\d)$" })
private List<RefundDetail> refundList; private List<RefundDetail> refundList;
public RefundRecord() { protected RefundRecord() {
// jaxb required // jaxb required
} }
@ -50,10 +50,18 @@ public class RefundRecord extends MerchantTradeResult {
return refundCount; return refundCount;
} }
public void setRefundCount(int refundCount) {
this.refundCount = refundCount;
}
public int getRefundFee() { public int getRefundFee() {
return refundFee; return refundFee;
} }
public void setRefundFee(int refundFee) {
this.refundFee = refundFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *

View File

@ -1,7 +1,7 @@
package com.foxinmy.weixin4j.pay.payment.mch; package com.foxinmy.weixin4j.pay.payment.mch;
import com.alibaba.fastjson.annotation.JSONField; import com.alibaba.fastjson.annotation.JSONField;
import com.foxinmy.weixin4j.type.mch.RefundChannel; import com.foxinmy.weixin4j.pay.type.mch.RefundChannel;
import com.foxinmy.weixin4j.xml.ListsuffixResult; import com.foxinmy.weixin4j.xml.ListsuffixResult;
import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessType;
@ -63,7 +63,7 @@ public class RefundResult extends MerchantTradeResult {
@ListsuffixResult({ ".*(_\\d)$" }) @ListsuffixResult({ ".*(_\\d)$" })
private List<RefundDetail> refundList; private List<RefundDetail> refundList;
public RefundResult() { protected RefundResult() {
// jaxb required // jaxb required
} }
@ -71,14 +71,26 @@ public class RefundResult extends MerchantTradeResult {
return outRefundNo; return outRefundNo;
} }
public void setOutRefundNo(String outRefundNo) {
this.outRefundNo = outRefundNo;
}
public String getRefundId() { public String getRefundId() {
return refundId; return refundId;
} }
public void setRefundId(String refundId) {
this.refundId = refundId;
}
public String getRefundChannel() { public String getRefundChannel() {
return refundChannel; return refundChannel;
} }
public void setRefundChannel(String refundChannel) {
this.refundChannel = refundChannel;
}
@JSONField(serialize = false) @JSONField(serialize = false)
public RefundChannel getFormatRefundChannel() { public RefundChannel getFormatRefundChannel() {
return refundChannel != null ? RefundChannel.valueOf(refundChannel return refundChannel != null ? RefundChannel.valueOf(refundChannel
@ -89,6 +101,10 @@ public class RefundResult extends MerchantTradeResult {
return refundFee; return refundFee;
} }
public void setRefundFee(int refundFee) {
this.refundFee = refundFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -103,6 +119,10 @@ public class RefundResult extends MerchantTradeResult {
return cashRefundFee; return cashRefundFee;
} }
public void setCashRefundFee(Integer cashRefundFee) {
this.cashRefundFee = cashRefundFee;
}
/** /**
* <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font> * <font color="red">调用接口获取单位为分,get方法转换为元方便使用</font>
* *
@ -117,6 +137,10 @@ public class RefundResult extends MerchantTradeResult {
return refundList; return refundList;
} }
public void setRefundList(List<RefundDetail> refundList) {
this.refundList = refundList;
}
@Override @Override
public String toString() { public String toString() {
return "RefundResult [" + super.toString() + ", outRefundNo=" return "RefundResult [" + super.toString() + ", outRefundNo="

View File

@ -21,6 +21,10 @@ public class SceneInfoApp {
private String path; private String path;
private String sceneInfo; private String sceneInfo;
protected SceneInfoApp(){
}
private SceneInfoApp(String type, String name, String path) { private SceneInfoApp(String type, String name, String path) {
this.type = type; this.type = type;
this.name = name; this.name = name;
@ -31,14 +35,26 @@ public class SceneInfoApp {
return type; return type;
} }
public void setType(String type) {
this.type = type;
}
public String getName() { public String getName() {
return name; return name;
} }
public void setName(String name) {
this.name = name;
}
public String getPath() { public String getPath() {
return path; return path;
} }
public void setPath(String path) {
this.path = path;
}
public String getSceneInfo() { public String getSceneInfo() {
return sceneInfo; return sceneInfo;
} }

View File

@ -87,7 +87,7 @@ public class SettlementRecord extends MerchantResult {
@JSONField(name = "poundage_fee") @JSONField(name = "poundage_fee")
private int poundageFee; private int poundageFee;
public SettlementRecord() { protected SettlementRecord() {
// jaxb required // jaxb required
} }

View File

@ -8,7 +8,6 @@ package com.foxinmy.weixin4j.pay.type;
* @date 2014年11月2日 * @date 2014年11月2日
* @since JDK 1.6 * @since JDK 1.6
* @see * @see
* @deprecated 迁移到子模块weixin4j-pay
*/ */
public enum TradeState { public enum TradeState {
/** /**