com.github.binarywang.wxpay.bean.coupon.WxPayCouponSendResult Maven / Gradle / Ivy
package com.github.binarywang.wxpay.bean.coupon;
import com.github.binarywang.wxpay.bean.result.WxPayBaseResult;
import com.thoughtworks.xstream.annotations.XStreamAlias;
/**
*
* 发送代金券响应结果类
* Created by Binary Wang on 2017-7-15.
*
*
* @author Binary Wang
*/
@XStreamAlias("xml")
public class WxPayCouponSendResult extends WxPayBaseResult {
/**
*
* 字段名:设备号
* 变量名:device_info
* 是否必填:否
* 示例值:123456sb
* 类型:String(32)
* 描述:微信支付分配的终端设备号,
*
*/
@XStreamAlias("device_info")
private String deviceInfo;
/**
*
* 字段名:代金券批次id
* 变量名:coupon_stock_id
* 是否必填:是
* 示例值:1757
* 类型:String
* 描述:用户在商户appid下的唯一标识
*
*/
@XStreamAlias("coupon_stock_id")
private String couponStockId;
/**
*
* 字段名:返回记录数
* 变量名:resp_count
* 是否必填:是
* 示例值:1
* 类型:Int
* 描述:返回记录数
*
*/
@XStreamAlias("resp_count")
private Integer respCount;
/**
*
* 字段名:成功记录数
* 变量名:success_count
* 是否必填:是
* 示例值:1或者0
* 类型:Int
* 描述:成功记录数
*
*/
@XStreamAlias("success_count")
private Integer successCount;
/**
*
* 字段名:失败记录数
* 变量名:failed_count
* 是否必填:是
* 示例值:1或者0
* 类型:Int
* 描述:失败记录数
*
*/
@XStreamAlias("failed_count")
private Integer failedCount;
/**
*
* 字段名:用户标识
* 变量名:openid
* 是否必填:是
* 示例值:onqOjjrXT-776SpHnfexGm1_P7iE
* 类型:String
* 描述:用户在商户appid下的唯一标识
*
*/
@XStreamAlias("openid")
private String openid;
/**
*
* 字段名:返回码
* 变量名:ret_code
* 是否必填:是
* 示例值:SUCCESS或者FAILED
* 类型:String
* 描述:返回码,SUCCESS/FAILED
*
*/
@XStreamAlias("ret_code")
private String retCode;
/**
*
* 字段名:代金券id
* 变量名:coupon_id
* 是否必填:是
* 示例值:1870
* 类型:String
* 描述:对一个用户成功发放代金券则返回代金券id,即ret_code为SUCCESS的时候;如果ret_code为FAILED则填写空串""
*
*/
@XStreamAlias("coupon_id")
private String couponId;
/**
*
* 字段名:返回信息
* 变量名:ret_msg
* 是否必填:是
* 示例值:失败描述信息,例如:“用户已达领用上限”
* 类型:String
* 描述:返回信息,当返回码是FAILED的时候填写,否则填空串“”
*
*/
@XStreamAlias("ret_msg")
private String retMsg;
public String getDeviceInfo() {
return this.deviceInfo;
}
public void setDeviceInfo(String deviceInfo) {
this.deviceInfo = deviceInfo;
}
public String getCouponStockId() {
return this.couponStockId;
}
public void setCouponStockId(String couponStockId) {
this.couponStockId = couponStockId;
}
public Integer getRespCount() {
return this.respCount;
}
public void setRespCount(Integer respCount) {
this.respCount = respCount;
}
public Integer getSuccessCount() {
return this.successCount;
}
public void setSuccessCount(Integer successCount) {
this.successCount = successCount;
}
public Integer getFailedCount() {
return this.failedCount;
}
public void setFailedCount(Integer failedCount) {
this.failedCount = failedCount;
}
public String getOpenid() {
return this.openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
public String getRetCode() {
return this.retCode;
}
public void setRetCode(String retCode) {
this.retCode = retCode;
}
public String getCouponId() {
return this.couponId;
}
public void setCouponId(String couponId) {
this.couponId = couponId;
}
public String getRetMsg() {
return this.retMsg;
}
public void setRetMsg(String retMsg) {
this.retMsg = retMsg;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy