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

com.tencent.ads.model.WechatFundsGetListStruct Maven / Gradle / Ivy

/*
 * Marketing API
 * Marketing API
 *
 * OpenAPI spec version: 1.3
 *
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */

package com.tencent.ads.model;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;

/** 返回结构 */
@ApiModel(description = "返回结构")
public class WechatFundsGetListStruct {
  @SerializedName("fund_type")
  private WechatMpOpenFundType fundType = null;

  @SerializedName("balance")
  private Long balance = null;

  @SerializedName("credit_roll_spec")
  private CreditRollSpec creditRollSpec = null;

  @SerializedName("miniprogram_spec")
  private MiniprogramAmount miniprogramSpec = null;

  public WechatFundsGetListStruct fundType(WechatMpOpenFundType fundType) {
    this.fundType = fundType;
    return this;
  }

  /**
   * Get fundType
   *
   * @return fundType
   */
  @ApiModelProperty(value = "")
  public WechatMpOpenFundType getFundType() {
    return fundType;
  }

  public void setFundType(WechatMpOpenFundType fundType) {
    this.fundType = fundType;
  }

  public WechatFundsGetListStruct balance(Long balance) {
    this.balance = balance;
    return this;
  }

  /**
   * Get balance
   *
   * @return balance
   */
  @ApiModelProperty(value = "")
  public Long getBalance() {
    return balance;
  }

  public void setBalance(Long balance) {
    this.balance = balance;
  }

  public WechatFundsGetListStruct creditRollSpec(CreditRollSpec creditRollSpec) {
    this.creditRollSpec = creditRollSpec;
    return this;
  }

  /**
   * Get creditRollSpec
   *
   * @return creditRollSpec
   */
  @ApiModelProperty(value = "")
  public CreditRollSpec getCreditRollSpec() {
    return creditRollSpec;
  }

  public void setCreditRollSpec(CreditRollSpec creditRollSpec) {
    this.creditRollSpec = creditRollSpec;
  }

  public WechatFundsGetListStruct miniprogramSpec(MiniprogramAmount miniprogramSpec) {
    this.miniprogramSpec = miniprogramSpec;
    return this;
  }

  /**
   * Get miniprogramSpec
   *
   * @return miniprogramSpec
   */
  @ApiModelProperty(value = "")
  public MiniprogramAmount getMiniprogramSpec() {
    return miniprogramSpec;
  }

  public void setMiniprogramSpec(MiniprogramAmount miniprogramSpec) {
    this.miniprogramSpec = miniprogramSpec;
  }

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    WechatFundsGetListStruct wechatFundsGetListStruct = (WechatFundsGetListStruct) o;
    return Objects.equals(this.fundType, wechatFundsGetListStruct.fundType)
        && Objects.equals(this.balance, wechatFundsGetListStruct.balance)
        && Objects.equals(this.creditRollSpec, wechatFundsGetListStruct.creditRollSpec)
        && Objects.equals(this.miniprogramSpec, wechatFundsGetListStruct.miniprogramSpec);
  }

  @Override
  public int hashCode() {
    return Objects.hash(fundType, balance, creditRollSpec, miniprogramSpec);
  }

  @Override
  public String toString() {
    Gson gson = new Gson();
    return gson.toJson(this);
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy