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

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

There is a newer version: 0.2.14
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;

/** Stock */
public class Stock {
  /** 批次号 说明:批次id */
  @SerializedName("stock_id")
  private String stockId;
  /** 批次创建方商户号 说明:微信为创建方商户分配的商户号 */
  @SerializedName("stock_creator_mchid")
  private String stockCreatorMchid;
  /** 批次名称 说明:批次名称 */
  @SerializedName("stock_name")
  private String stockName;
  /** 批次状态 说明:批次状态: unactivated-未激活;audit-审核中;running-运行中;stoped-已停止;paused-暂停发放 */
  @SerializedName("status")
  private String status;
  /** 创建时间 说明:批次创建时间 */
  @SerializedName("create_time")
  private String createTime;
  /** 使用说明 说明:批次描述信息 */
  @SerializedName("description")
  private String description;
  /** 满减券批次使用规则 说明:普通发券批次特定信息 */
  @SerializedName("stock_use_rule")
  private StockUseRule stockUseRule;
  /** 可用开始时间 说明:可用开始时间 */
  @SerializedName("available_begin_time")
  private String availableBeginTime;
  /** 可用结束时间 说明:可用结束时间 */
  @SerializedName("available_end_time")
  private String availableEndTime;
  /** 已发券数量 说明:已发券数量 */
  @SerializedName("distributed_coupons")
  private Integer distributedCoupons;
  /** 是否无资金流 说明:是否无资金流,ture-是;false-否 */
  @SerializedName("no_cash")
  private Boolean noCash;
  /** 激活批次的时间 说明:批次激活开启时间 */
  @SerializedName("start_time")
  private String startTime;
  /** 终止批次的时间 说明:批次永久停止时间 */
  @SerializedName("stop_time")
  private String stopTime;
  /** 减至批次特定信息 说明:单品优惠特定信息 */
  @SerializedName("cut_to_message")
  private CutTypeMsg cutToMessage;
  /** 是否单品优惠 说明:true-是;false-否 */
  @SerializedName("singleitem")
  private Boolean singleitem;
  /** 批次类型 说明:NORMAL-代金券批次;DISCOUNT_CUT-立减与折扣;OTHER-其他 */
  @SerializedName("stock_type")
  private String stockType;
  /** 卡包ID 说明:微信卡包ID */
  @SerializedName("card_id")
  private String cardId;

  public String getStockId() {
    return stockId;
  }

  public void setStockId(String stockId) {
    this.stockId = stockId;
  }

  public String getStockCreatorMchid() {
    return stockCreatorMchid;
  }

  public void setStockCreatorMchid(String stockCreatorMchid) {
    this.stockCreatorMchid = stockCreatorMchid;
  }

  public String getStockName() {
    return stockName;
  }

  public void setStockName(String stockName) {
    this.stockName = stockName;
  }

  public String getStatus() {
    return status;
  }

  public void setStatus(String status) {
    this.status = status;
  }

  public String getCreateTime() {
    return createTime;
  }

  public void setCreateTime(String createTime) {
    this.createTime = createTime;
  }

  public String getDescription() {
    return description;
  }

  public void setDescription(String description) {
    this.description = description;
  }

  public StockUseRule getStockUseRule() {
    return stockUseRule;
  }

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

  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 Integer getDistributedCoupons() {
    return distributedCoupons;
  }

  public void setDistributedCoupons(Integer distributedCoupons) {
    this.distributedCoupons = distributedCoupons;
  }

  public Boolean getNoCash() {
    return noCash;
  }

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

  public String getStartTime() {
    return startTime;
  }

  public void setStartTime(String startTime) {
    this.startTime = startTime;
  }

  public String getStopTime() {
    return stopTime;
  }

  public void setStopTime(String stopTime) {
    this.stopTime = stopTime;
  }

  public CutTypeMsg getCutToMessage() {
    return cutToMessage;
  }

  public void setCutToMessage(CutTypeMsg cutToMessage) {
    this.cutToMessage = cutToMessage;
  }

  public Boolean getSingleitem() {
    return singleitem;
  }

  public void setSingleitem(Boolean singleitem) {
    this.singleitem = singleitem;
  }

  public String getStockType() {
    return stockType;
  }

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

  public String getCardId() {
    return cardId;
  }

  public void setCardId(String cardId) {
    this.cardId = cardId;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Stock {\n");
    sb.append("    stockId: ").append(toIndentedString(stockId)).append("\n");
    sb.append("    stockCreatorMchid: ").append(toIndentedString(stockCreatorMchid)).append("\n");
    sb.append("    stockName: ").append(toIndentedString(stockName)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    createTime: ").append(toIndentedString(createTime)).append("\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    stockUseRule: ").append(toIndentedString(stockUseRule)).append("\n");
    sb.append("    availableBeginTime: ").append(toIndentedString(availableBeginTime)).append("\n");
    sb.append("    availableEndTime: ").append(toIndentedString(availableEndTime)).append("\n");
    sb.append("    distributedCoupons: ").append(toIndentedString(distributedCoupons)).append("\n");
    sb.append("    noCash: ").append(toIndentedString(noCash)).append("\n");
    sb.append("    startTime: ").append(toIndentedString(startTime)).append("\n");
    sb.append("    stopTime: ").append(toIndentedString(stopTime)).append("\n");
    sb.append("    cutToMessage: ").append(toIndentedString(cutToMessage)).append("\n");
    sb.append("    singleitem: ").append(toIndentedString(singleitem)).append("\n");
    sb.append("    stockType: ").append(toIndentedString(stockType)).append("\n");
    sb.append("    cardId: ").append(toIndentedString(cardId)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy