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

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

/** MediaImageRequest */
public class MediaImageRequest {
  /** 图片文件 说明:将媒体图片进行二进制转换,得到的媒体图片二进制内容,在请求body中上传此二进制内容。媒体图片只支持JPG、BMP、PNG格式,文件大小不能超过2M。 */
  @SerializedName("file")
  private FormFile file;

  /** 媒体文件元信息 说明: */
  @SerializedName("meta")
  private ImageMeta meta;

  public FormFile getFile() {
    return file;
  }

  public void setFile(FormFile file) {
    this.file = file;
  }

  public ImageMeta getMeta() {
    return meta;
  }

  public void setMeta(ImageMeta meta) {
    this.meta = meta;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class MediaImageRequest {\n");
    sb.append("    file: ").append(toIndentedString(file)).append("\n");
    sb.append("    meta: ").append(toIndentedString(meta)).append("\n");
    sb.append("}");
    return sb.toString();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy