com.wechat.pay.java.service.merchantexclusivecoupon.model.ModifyStockInfoRequest 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.Expose;
import com.google.gson.annotations.SerializedName;
/** ModifyStockInfoRequest */
public class ModifyStockInfoRequest {
/** 批次号 说明:批次号 */
@SerializedName("stock_id")
@Expose(serialize = false)
private String stockId;
/** 自定义入口 说明:卡详情页面,可选择多种入口引导用户 */
@SerializedName("custom_entrance")
private ModifyCustomEntrance customEntrance;
/** 批次名称 说明:批次名称,字数上限为21个,一个中文汉字/英文字母/数字均占用一个字数。 注:该字段暂不支持修改 */
@SerializedName("stock_name")
private String stockName;
/** 批次备注 说明:仅配置商户可见,用于自定义信息。字数上限为20个,一个中文汉字/英文字母/数字均占用一个字数。 */
@SerializedName("comment")
private String comment;
/** 适用商品范围 说明:用来描述批次在哪些商品可用,会显示在微信卡包中。字数上限为15个,一个中文汉字/英文字母/数字均占用一个字数。 */
@SerializedName("goods_name")
private String goodsName;
/** 商户请求单号 说明:商户修改批次凭据号(格式:商户ID+日期+流水号),商户侧需保持唯一性。 */
@SerializedName("out_request_no")
private String outRequestNo;
/** 样式信息 说明: */
@SerializedName("display_pattern_info")
private DisplayPatternInfo displayPatternInfo;
/** 核销规则 说明:券核销相关规则 */
@SerializedName("coupon_use_rule")
private ModifyCouponUseRule couponUseRule;
/** 发放规则 说明:券发放相关规则 */
@SerializedName("stock_send_rule")
private ModifyStockSendRule stockSendRule;
/** 事件通知配置 说明:事件回调通知商户的配置 */
@SerializedName("notify_config")
private NotifyConfig notifyConfig;
/** 是否允许营销补差 说明:该批次发放的券是否允许进行补差。只允许从false改为true,不支持从true改为false 注:该字段暂未开放 */
@SerializedName("subsidy")
private Boolean subsidy;
public String getStockId() {
return stockId;
}
public void setStockId(String stockId) {
this.stockId = stockId;
}
public ModifyCustomEntrance getCustomEntrance() {
return customEntrance;
}
public void setCustomEntrance(ModifyCustomEntrance customEntrance) {
this.customEntrance = customEntrance;
}
public String getStockName() {
return stockName;
}
public void setStockName(String stockName) {
this.stockName = stockName;
}
public String getComment() {
return comment;
}
public void setComment(String comment) {
this.comment = comment;
}
public String getGoodsName() {
return goodsName;
}
public void setGoodsName(String goodsName) {
this.goodsName = goodsName;
}
public String getOutRequestNo() {
return outRequestNo;
}
public void setOutRequestNo(String outRequestNo) {
this.outRequestNo = outRequestNo;
}
public DisplayPatternInfo getDisplayPatternInfo() {
return displayPatternInfo;
}
public void setDisplayPatternInfo(DisplayPatternInfo displayPatternInfo) {
this.displayPatternInfo = displayPatternInfo;
}
public ModifyCouponUseRule getCouponUseRule() {
return couponUseRule;
}
public void setCouponUseRule(ModifyCouponUseRule couponUseRule) {
this.couponUseRule = couponUseRule;
}
public ModifyStockSendRule getStockSendRule() {
return stockSendRule;
}
public void setStockSendRule(ModifyStockSendRule stockSendRule) {
this.stockSendRule = stockSendRule;
}
public NotifyConfig getNotifyConfig() {
return notifyConfig;
}
public void setNotifyConfig(NotifyConfig notifyConfig) {
this.notifyConfig = notifyConfig;
}
public Boolean getSubsidy() {
return subsidy;
}
public void setSubsidy(Boolean subsidy) {
this.subsidy = subsidy;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ModifyStockInfoRequest {\n");
sb.append(" stockId: ").append(toIndentedString(stockId)).append("\n");
sb.append(" customEntrance: ").append(toIndentedString(customEntrance)).append("\n");
sb.append(" stockName: ").append(toIndentedString(stockName)).append("\n");
sb.append(" comment: ").append(toIndentedString(comment)).append("\n");
sb.append(" goodsName: ").append(toIndentedString(goodsName)).append("\n");
sb.append(" outRequestNo: ").append(toIndentedString(outRequestNo)).append("\n");
sb.append(" displayPatternInfo: ").append(toIndentedString(displayPatternInfo)).append("\n");
sb.append(" couponUseRule: ").append(toIndentedString(couponUseRule)).append("\n");
sb.append(" stockSendRule: ").append(toIndentedString(stockSendRule)).append("\n");
sb.append(" notifyConfig: ").append(toIndentedString(notifyConfig)).append("\n");
sb.append(" subsidy: ").append(toIndentedString(subsidy)).append("\n");
sb.append("}");
return sb.toString();
}
}