com.wechat.pay.java.service.merchantexclusivecoupon.model.CouponCodeEntity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wechatpay-java Show documentation
Show all versions of wechatpay-java Show documentation
A Java SDK for WeChat Pay APIv3
// Copyright 2021 Tencent Inc. All rights reserved.
//
// 营销商家券对外API
//
// No description provided (generated by Openapi Generator
// https://github.com/openapitools/openapi-generator)
//
// API version: 0.0.11
// Code generated by WechatPay APIv3 Generator based on [OpenAPI
// Generator](https://openapi-generator.tech); DO NOT EDIT.
package com.wechat.pay.java.service.merchantexclusivecoupon.model;
import static com.wechat.pay.java.core.util.StringUtil.toIndentedString;
import com.google.gson.annotations.SerializedName;
/** CouponCodeEntity */
public class CouponCodeEntity {
/** 商户上传code 说明:商户上传code */
@SerializedName("code")
private String code;
/** 商户上传code分配状态 说明:商户上传code分配状态 */
@SerializedName("code_status")
private CouponCodeStatus codeStatus;
/** 上传时间 说明:code上传成功的时间 */
@SerializedName("upload_time")
private String uploadTime;
/** 被分配时间 说明:当code状态为被分配时,code被分配的时间 */
@SerializedName("dispatched_time")
private String dispatchedTime;
/** 领券用户的OpenID 说明:领券用户的OpenID */
@SerializedName("openid")
private String openid;
/**
* 领券用户的UnionID
* 说明:领券用户的UnionID,具体参见https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/union-id.html
*/
@SerializedName("unionid")
private String unionid;
/** 用户券code 说明:券的唯一标识 */
@SerializedName("coupon_code")
private String couponCode;
public String getCode() {
return code;
}
public void setCode(String code) {
this.code = code;
}
public CouponCodeStatus getCodeStatus() {
return codeStatus;
}
public void setCodeStatus(CouponCodeStatus codeStatus) {
this.codeStatus = codeStatus;
}
public String getUploadTime() {
return uploadTime;
}
public void setUploadTime(String uploadTime) {
this.uploadTime = uploadTime;
}
public String getDispatchedTime() {
return dispatchedTime;
}
public void setDispatchedTime(String dispatchedTime) {
this.dispatchedTime = dispatchedTime;
}
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
public String getUnionid() {
return unionid;
}
public void setUnionid(String unionid) {
this.unionid = unionid;
}
public String getCouponCode() {
return couponCode;
}
public void setCouponCode(String couponCode) {
this.couponCode = couponCode;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CouponCodeEntity {\n");
sb.append(" code: ").append(toIndentedString(code)).append("\n");
sb.append(" codeStatus: ").append(toIndentedString(codeStatus)).append("\n");
sb.append(" uploadTime: ").append(toIndentedString(uploadTime)).append("\n");
sb.append(" dispatchedTime: ").append(toIndentedString(dispatchedTime)).append("\n");
sb.append(" openid: ").append(toIndentedString(openid)).append("\n");
sb.append(" unionid: ").append(toIndentedString(unionid)).append("\n");
sb.append(" couponCode: ").append(toIndentedString(couponCode)).append("\n");
sb.append("}");
return sb.toString();
}
}