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

com.wechat.pay.java.service.cashcoupons.model.CreateCouponStockRequest Maven / Gradle / Ivy

There is a newer version: 0.2.15
Show newest version
// 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.SerializedName;

/** CreateCouponStockRequest */
public class CreateCouponStockRequest {
  /** 批次名称 说明:批次名称 */
  @SerializedName("stock_name")
  private String stockName;

  /** 批次备注 说明:仅配置商户可见,用于自定义信息 */
  @SerializedName("comment")
  private String comment;

  /** 归属商户号 说明:批次归属商户号 */
  @SerializedName("belong_merchant")
  private String belongMerchant;

  /** 开始时间 说明:批次开始时间 */
  @SerializedName("available_begin_time")
  private String availableBeginTime;

  /** 结束时间 说明:批次结束时间 */
  @SerializedName("available_end_time")
  private String availableEndTime;

  /** 发放规则 说明:批次使用规则 */
  @SerializedName("stock_use_rule")
  private StockRule stockUseRule;

  /** 样式设置 说明:代金券详情页 */
  @SerializedName("pattern_info")
  private PatternInfo patternInfo;

  /** 核销规则 说明: */
  @SerializedName("coupon_use_rule")
  private CouponRule couponUseRule;

  /** 是否无资金流 说明:是否无资金流,true-是;false-否 */
  @SerializedName("no_cash")
  private Boolean noCash;

  /** 批次类型 说明:批次类型,NORMAL-固定面额满减券批次;DISCOUNT-折扣券批次;EXCHAHGE-换购券批次;RANDOM-千人千面券批次 */
  @SerializedName("stock_type")
  private String stockType;

  /** 商户单据号 说明:商户创建批次凭据号(格式:商户id+日期+流水号),商户侧需保持唯一性 */
  @SerializedName("out_request_no")
  private String outRequestNo;

  /** 扩展属性 说明:扩展属性字段,按json格式,暂时无需填写 */
  @SerializedName("ext_info")
  private String extInfo;

  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 getBelongMerchant() {
    return belongMerchant;
  }

  public void setBelongMerchant(String belongMerchant) {
    this.belongMerchant = belongMerchant;
  }

  public String getAvailableBeginTime() {
    return availableBeginTime;
  }

  public void setAvailableBeginTime(String availableBeginTime) {
    this.availableBeginTime = availableBeginTime;
  }

  public String getAvailableEndTime() {
    return availableEndTime;
  }

  public void setAvailableEndTime(String availableEndTime) {
    this.availableEndTime = availableEndTime;
  }

  public StockRule getStockUseRule() {
    return stockUseRule;
  }

  public void setStockUseRule(StockRule stockUseRule) {
    this.stockUseRule = stockUseRule;
  }

  public PatternInfo getPatternInfo() {
    return patternInfo;
  }

  public void setPatternInfo(PatternInfo patternInfo) {
    this.patternInfo = patternInfo;
  }

  public CouponRule getCouponUseRule() {
    return couponUseRule;
  }

  public void setCouponUseRule(CouponRule couponUseRule) {
    this.couponUseRule = couponUseRule;
  }

  public Boolean getNoCash() {
    return noCash;
  }

  public void setNoCash(Boolean noCash) {
    this.noCash = noCash;
  }

  public String getStockType() {
    return stockType;
  }

  public void setStockType(String stockType) {
    this.stockType = stockType;
  }

  public String getOutRequestNo() {
    return outRequestNo;
  }

  public void setOutRequestNo(String outRequestNo) {
    this.outRequestNo = outRequestNo;
  }

  public String getExtInfo() {
    return extInfo;
  }

  public void setExtInfo(String extInfo) {
    this.extInfo = extInfo;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CreateCouponStockRequest {\n");
    sb.append("    stockName: ").append(toIndentedString(stockName)).append("\n");
    sb.append("    comment: ").append(toIndentedString(comment)).append("\n");
    sb.append("    belongMerchant: ").append(toIndentedString(belongMerchant)).append("\n");
    sb.append("    availableBeginTime: ").append(toIndentedString(availableBeginTime)).append("\n");
    sb.append("    availableEndTime: ").append(toIndentedString(availableEndTime)).append("\n");
    sb.append("    stockUseRule: ").append(toIndentedString(stockUseRule)).append("\n");
    sb.append("    patternInfo: ").append(toIndentedString(patternInfo)).append("\n");
    sb.append("    couponUseRule: ").append(toIndentedString(couponUseRule)).append("\n");
    sb.append("    noCash: ").append(toIndentedString(noCash)).append("\n");
    sb.append("    stockType: ").append(toIndentedString(stockType)).append("\n");
    sb.append("    outRequestNo: ").append(toIndentedString(outRequestNo)).append("\n");
    sb.append("    extInfo: ").append(toIndentedString(extInfo)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy