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

com.wechat.pay.java.service.cashcoupons.model.PatternInfo 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;

/** PatternInfo */
public class PatternInfo {
  /** 使用说明 说明:用于说明详细的活动规则,会展示在代金券详情页 */
  @SerializedName("description")
  private String description;

  /** 商户logo 说明:商户logo */
  @SerializedName("merchant_logo")
  private String merchantLogo;

  /** 商户名称 说明:商户名称 */
  @SerializedName("merchant_name")
  private String merchantName;

  /** 背景颜色 说明:背景颜色 */
  @SerializedName("background_color")
  private BackgroundColor backgroundColor;

  /** 券详情图片 说明:券详情图片 */
  @SerializedName("coupon_image")
  private String couponImage;

  /**
   * 卡包跳转目标 说明:枚举值:PAYMENT_CODE:跳转至微信支付付款码,点击“立即使用”跳转至微信支付付款码
   * MINI_PROGRAM:跳转至小程序,点击“立即使用”跳转至配置的商家小程序(需要指定小程序appid和path) DEFAULT_PAGE:跳转至默认页, 点击“立即使用”跳转至默认页面
   * 如未传该参数,则默认跳转至默认页。
   */
  @SerializedName("jump_target")
  private JumpTarget jumpTarget;

  /** 小程序appid 说明:跳转的小程序appid,跳转至小程序时必填。跳转的小程序appid需至少和一个可核销商户有绑定关系。 */
  @SerializedName("mini_program_appid")
  private String miniProgramAppid;

  /** 小程序path 说明:跳转的小程序path,跳转至小程序时必填。 */
  @SerializedName("mini_program_path")
  private String miniProgramPath;

  public String getDescription() {
    return description;
  }

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

  public String getMerchantLogo() {
    return merchantLogo;
  }

  public void setMerchantLogo(String merchantLogo) {
    this.merchantLogo = merchantLogo;
  }

  public String getMerchantName() {
    return merchantName;
  }

  public void setMerchantName(String merchantName) {
    this.merchantName = merchantName;
  }

  public BackgroundColor getBackgroundColor() {
    return backgroundColor;
  }

  public void setBackgroundColor(BackgroundColor backgroundColor) {
    this.backgroundColor = backgroundColor;
  }

  public String getCouponImage() {
    return couponImage;
  }

  public void setCouponImage(String couponImage) {
    this.couponImage = couponImage;
  }

  public JumpTarget getJumpTarget() {
    return jumpTarget;
  }

  public void setJumpTarget(JumpTarget jumpTarget) {
    this.jumpTarget = jumpTarget;
  }

  public String getMiniProgramAppid() {
    return miniProgramAppid;
  }

  public void setMiniProgramAppid(String miniProgramAppid) {
    this.miniProgramAppid = miniProgramAppid;
  }

  public String getMiniProgramPath() {
    return miniProgramPath;
  }

  public void setMiniProgramPath(String miniProgramPath) {
    this.miniProgramPath = miniProgramPath;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class PatternInfo {\n");
    sb.append("    description: ").append(toIndentedString(description)).append("\n");
    sb.append("    merchantLogo: ").append(toIndentedString(merchantLogo)).append("\n");
    sb.append("    merchantName: ").append(toIndentedString(merchantName)).append("\n");
    sb.append("    backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n");
    sb.append("    couponImage: ").append(toIndentedString(couponImage)).append("\n");
    sb.append("    jumpTarget: ").append(toIndentedString(jumpTarget)).append("\n");
    sb.append("    miniProgramAppid: ").append(toIndentedString(miniProgramAppid)).append("\n");
    sb.append("    miniProgramPath: ").append(toIndentedString(miniProgramPath)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy