com.wechat.pay.java.service.cashcoupons.model.QueryCouponRequest 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
//
// 新增立减金api
//
// API version: 3.4.0
// Code generated by WechatPay APIv3 Generator based on [OpenAPI
// Generator](https://openapi-generator.tech); DO NOT EDIT.
package com.wechat.pay.java.service.cashcoupons.model;
import static com.wechat.pay.java.core.util.StringUtil.toIndentedString;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/** QueryCouponRequest */
public class QueryCouponRequest {
/** 代金券id 说明:代金券id */
@SerializedName("coupon_id")
@Expose(serialize = false)
private String couponId;
/**
* 公众账号ID
* 说明:微信为发券方商户分配的公众账号ID,接口传入的所有appid应该为公众号的appid(在mp.weixin.qq.com申请的),不能为APP的appid(在open.weixin.qq.com申请的)。
*/
@SerializedName("appid")
@Expose(serialize = false)
private String appid;
/** 用户openid 说明:Openid信息,用户在appid下的唯一标识 */
@SerializedName("openid")
@Expose(serialize = false)
private String openid;
public String getCouponId() {
return couponId;
}
public void setCouponId(String couponId) {
this.couponId = couponId;
}
public String getAppid() {
return appid;
}
public void setAppid(String appid) {
this.appid = appid;
}
public String getOpenid() {
return openid;
}
public void setOpenid(String openid) {
this.openid = openid;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class QueryCouponRequest {\n");
sb.append(" couponId: ").append(toIndentedString(couponId)).append("\n");
sb.append(" appid: ").append(toIndentedString(appid)).append("\n");
sb.append(" openid: ").append(toIndentedString(openid)).append("\n");
sb.append("}");
return sb.toString();
}
}