com.wechat.pay.java.service.merchantexclusivecoupon.model.SendCouponRequest 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;
/** SendCouponRequest */
public class SendCouponRequest {
/** 用户标识 说明:用户的唯一标识,必填 */
@SerializedName("openid")
private String openid;
/** 公众账号ID 说明:发券方AppID */
@SerializedName("appid")
private String appid;
/** 批次号 说明:批次号 */
@SerializedName("stock_id")
private String stockId;
/** 发券凭证 说明:发券凭证,可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号,需在单个批次单个用户下确保唯一性 */
@SerializedName("out_request_no")
private String outRequestNo;
/** 券code 说明:要求接口指定code发券的批次必传 */
@SerializedName("coupon_code")
private String couponCode;
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
public String getAppid() {
return appid;
}
public void setAppid(String appid) {
this.appid = appid;
}
public String getStockId() {
return stockId;
}
public void setStockId(String stockId) {
this.stockId = stockId;
}
public String getOutRequestNo() {
return outRequestNo;
}
public void setOutRequestNo(String outRequestNo) {
this.outRequestNo = outRequestNo;
}
public String getCouponCode() {
return couponCode;
}
public void setCouponCode(String couponCode) {
this.couponCode = couponCode;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SendCouponRequest {\n");
sb.append(" openid: ").append(toIndentedString(openid)).append("\n");
sb.append(" appid: ").append(toIndentedString(appid)).append("\n");
sb.append(" stockId: ").append(toIndentedString(stockId)).append("\n");
sb.append(" outRequestNo: ").append(toIndentedString(outRequestNo)).append("\n");
sb.append(" couponCode: ").append(toIndentedString(couponCode)).append("\n");
sb.append("}");
return sb.toString();
}
}