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

com.tencent.ads.container.WechatQualificationsApiContainer 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.container;

import com.google.inject.Inject;
import com.tencent.ads.ApiContainer;
import com.tencent.ads.ApiException;
import com.tencent.ads.anno.*;
import com.tencent.ads.api.WechatQualificationsApi;
import com.tencent.ads.exception.TencentAdsResponseException;
import com.tencent.ads.model.WechatQualificationsAddResponse;
import com.tencent.ads.model.WechatQualificationsAddResponseData;
import com.tencent.ads.model.WechatQualificationsDeleteRequest;
import com.tencent.ads.model.WechatQualificationsDeleteResponse;
import com.tencent.ads.model.WechatQualificationsDeleteResponseData;
import com.tencent.ads.model.WechatQualificationsGetResponse;
import com.tencent.ads.model.WechatQualificationsGetResponseData;
import java.io.File;
import java.util.List;

public class WechatQualificationsApiContainer extends ApiContainer {

  @Inject WechatQualificationsApi api;

  /**
   * 添加附近推商家资质
   *
   * @param accountId (required)
   * @param wechatQualificationType (required)
   * @param wechatQualificationFile (required)
   * @param wechatQualificationFileSignature (required)
   * @return WechatQualificationsAddResponse
   * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
   *     response body
   */
  public WechatQualificationsAddResponseData wechatQualificationsAdd(
      Long accountId,
      String wechatQualificationType,
      File wechatQualificationFile,
      String wechatQualificationFileSignature)
      throws ApiException, TencentAdsResponseException {
    WechatQualificationsAddResponse resp =
        api.wechatQualificationsAdd(
            accountId,
            wechatQualificationType,
            wechatQualificationFile,
            wechatQualificationFileSignature);
    handleResponse(gson.toJson(resp));
    return resp.getData();
  }

  /**
   * 删除附近推商家资质
   *
   * @param data (required)
   * @return WechatQualificationsDeleteResponse
   * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
   *     response body
   */
  public WechatQualificationsDeleteResponseData wechatQualificationsDelete(
      WechatQualificationsDeleteRequest data) throws ApiException, TencentAdsResponseException {
    WechatQualificationsDeleteResponse resp = api.wechatQualificationsDelete(data);
    handleResponse(gson.toJson(resp));
    return resp.getData();
  }

  /**
   * 查询附近推商家资质信息
   *
   * @param accountId (required)
   * @param fields 返回参数的字段列表 (optional)
   * @return WechatQualificationsGetResponse
   * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the
   *     response body
   */
  public WechatQualificationsGetResponseData wechatQualificationsGet(
      Long accountId, List fields) throws ApiException, TencentAdsResponseException {
    WechatQualificationsGetResponse resp = api.wechatQualificationsGet(accountId, fields);
    handleResponse(gson.toJson(resp));
    return resp.getData();
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy