All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.ipokerface.weixin.proxy.coupon.CouponResult Maven / Gradle / Ivy

There is a newer version: 1.5.0
Show newest version
package cn.ipokerface.weixin.proxy.coupon;

import cn.ipokerface.weixin.proxy.merchant.MerchantResult;
import com.alibaba.fastjson.annotation.JSONField;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * Created by       PokerFace
 * Create Date      2019-12-28.
 * Email:           [email protected]
 * Version          1.0.0
 * 

* Description: */ @XmlRootElement @XmlAccessorType(XmlAccessType.FIELD) public class CouponResult extends MerchantResult { private static final long serialVersionUID = -1996967923720149124L; /** * 代金券批次id */ @XmlElement(name = "coupon_stock_id") @JSONField(name = "coupon_stock_id") private String couponStockId; /** * 返回记录数 */ @XmlElement(name = "resp_count") @JSONField(name = "resp_count") private int responseCount; /** * 成功记录数 */ @XmlElement(name = "success_count") @JSONField(name = "success_count") private int successCount; /** * 失败记录数 */ @XmlElement(name = "failed_count") @JSONField(name = "failed_count") private int failedCount; /** * 用户在商户appid下的唯一标识 */ @XmlElement(name = "openid") @JSONField(name = "openid") private String openId; /** * 返回码 SUCCESS或者FAILED */ @XmlElement(name = "ret_code") @JSONField(name = "ret_code") private String retCode; /** * 代金券id */ @XmlElement(name = "coupon_id") @JSONField(name = "coupon_id") private String couponId; /** * 失败描述信息,例如:“用户已达领用上限” */ @XmlElement(name = "ret_msg") @JSONField(name = "ret_msg") private String retMsg; public CouponResult() { } public String getCouponStockId() { return couponStockId; } public int getResponseCount() { return responseCount; } public int getSuccessCount() { return successCount; } public int getFailedCount() { return failedCount; } public String getOpenId() { return openId; } public String getRetCode() { return retCode; } public String getCouponId() { return couponId; } public String getRetMsg() { return retMsg; } @Override public String toString() { return "CouponResult [couponStockId=" + couponStockId + ", responseCount=" + responseCount + ", successCount=" + successCount + ", failedCount=" + failedCount + ", openId=" + openId + ", retCode=" + retCode + ", couponId=" + couponId + ", retMsg=" + retMsg + "]"; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy