com.wechat.pay.java.service.giftactivity.model.ActBaseInfo 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.1.2
// Code generated by WechatPay APIv3 Generator based on [OpenAPI
// Generator](https://openapi-generator.tech); DO NOT EDIT.
package com.wechat.pay.java.service.giftactivity.model;
import static com.wechat.pay.java.core.util.StringUtil.toIndentedString;
import com.google.gson.annotations.SerializedName;
/** ActBaseInfo */
public class ActBaseInfo {
/** 活动名称 说明:活动名称 */
@SerializedName("activity_name")
private String activityName;
/** 活动副标题 说明:活动副标题 */
@SerializedName("activity_second_title")
private String activitySecondTitle;
/** 商户logo 说明:商户logo,送出优惠券时展示 */
@SerializedName("merchant_logo_url")
private String merchantLogoUrl;
/**
* 背景颜色 说明:代金券的背景颜色,可设置10种颜色,颜色取值可参考[开发指引](../../../products/gift-activity/development.html) 3.2.1
* background_color取值,默认为微信支付绿色, 颜色取值为颜色图中的颜色名称。
*/
@SerializedName("background_color")
private String backgroundColor;
/** 活动开始时间 说明:活动开始时间,最长可以配置1年内的活动,活动有效期最长90天 */
@SerializedName("begin_time")
private String beginTime;
/** 活动结束时间 说明:活动结束时间,最长可以配置1年内的活动,活动有效期最长90天 */
@SerializedName("end_time")
private String endTime;
/** 可用时间段 说明:可自定义活动有效时间内可用的多个时间段以及天内时间点 */
@SerializedName("available_periods")
private AvailablePeriod availablePeriods;
/** 商户请求单号 说明:商户创建批次凭据号(格式:商户id+日期+流水号),商户侧需保持唯一性,可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号 */
@SerializedName("out_request_no")
private String outRequestNo;
/** 投放目的 说明:OFF_LINE_PAY:拉用户回店消费;JUMP_MINI_APP:引导用户前往小程序消费 */
@SerializedName("delivery_purpose")
private DeliveryPurposeCategory deliveryPurpose;
/** 商家小程序appid 说明:投放目的为跳转小程序时必填 */
@SerializedName("mini_programs_appid")
private String miniProgramsAppid;
/** 商家小程序path 说明:投放目的为跳转小程序必填 */
@SerializedName("mini_programs_path")
private String miniProgramsPath;
public String getActivityName() {
return activityName;
}
public void setActivityName(String activityName) {
this.activityName = activityName;
}
public String getActivitySecondTitle() {
return activitySecondTitle;
}
public void setActivitySecondTitle(String activitySecondTitle) {
this.activitySecondTitle = activitySecondTitle;
}
public String getMerchantLogoUrl() {
return merchantLogoUrl;
}
public void setMerchantLogoUrl(String merchantLogoUrl) {
this.merchantLogoUrl = merchantLogoUrl;
}
public String getBackgroundColor() {
return backgroundColor;
}
public void setBackgroundColor(String backgroundColor) {
this.backgroundColor = backgroundColor;
}
public String getBeginTime() {
return beginTime;
}
public void setBeginTime(String beginTime) {
this.beginTime = beginTime;
}
public String getEndTime() {
return endTime;
}
public void setEndTime(String endTime) {
this.endTime = endTime;
}
public AvailablePeriod getAvailablePeriods() {
return availablePeriods;
}
public void setAvailablePeriods(AvailablePeriod availablePeriods) {
this.availablePeriods = availablePeriods;
}
public String getOutRequestNo() {
return outRequestNo;
}
public void setOutRequestNo(String outRequestNo) {
this.outRequestNo = outRequestNo;
}
public DeliveryPurposeCategory getDeliveryPurpose() {
return deliveryPurpose;
}
public void setDeliveryPurpose(DeliveryPurposeCategory deliveryPurpose) {
this.deliveryPurpose = deliveryPurpose;
}
public String getMiniProgramsAppid() {
return miniProgramsAppid;
}
public void setMiniProgramsAppid(String miniProgramsAppid) {
this.miniProgramsAppid = miniProgramsAppid;
}
public String getMiniProgramsPath() {
return miniProgramsPath;
}
public void setMiniProgramsPath(String miniProgramsPath) {
this.miniProgramsPath = miniProgramsPath;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ActBaseInfo {\n");
sb.append(" activityName: ").append(toIndentedString(activityName)).append("\n");
sb.append(" activitySecondTitle: ")
.append(toIndentedString(activitySecondTitle))
.append("\n");
sb.append(" merchantLogoUrl: ").append(toIndentedString(merchantLogoUrl)).append("\n");
sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n");
sb.append(" beginTime: ").append(toIndentedString(beginTime)).append("\n");
sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n");
sb.append(" availablePeriods: ").append(toIndentedString(availablePeriods)).append("\n");
sb.append(" outRequestNo: ").append(toIndentedString(outRequestNo)).append("\n");
sb.append(" deliveryPurpose: ").append(toIndentedString(deliveryPurpose)).append("\n");
sb.append(" miniProgramsAppid: ").append(toIndentedString(miniProgramsAppid)).append("\n");
sb.append(" miniProgramsPath: ").append(toIndentedString(miniProgramsPath)).append("\n");
sb.append("}");
return sb.toString();
}
}