Class MarketingBankPackagesServiceExtension

java.lang.Object
com.wechat.pay.java.service.marketingbankpackages.MarketingBankPackagesServiceExtension

public class MarketingBankPackagesServiceExtension extends Object
MarketingBankPackagesServiceExtension服务
  • Method Details

    • listTask

      public ListTaskResponse listTask(ListTaskRequest request)
      查询上传任务列表
      Parameters:
      request - 请求参数
      Returns:
      ListTaskResponse
      Throws:
      com.wechat.pay.java.core.exception.HttpException - 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
      com.wechat.pay.java.core.exception.ValidationException - 发送HTTP请求成功,验证微信支付返回签名失败。
      com.wechat.pay.java.core.exception.ServiceException - 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。
      com.wechat.pay.java.core.exception.MalformedMessageException - 服务返回成功,content-type不为application/json、解析返回体失败。
    • uploadPackageByFile

      public Task uploadPackageByFile(String packageId, String bankType, String filePath) throws IllegalArgumentException
      导入定向用户协议号(创建上传任务)
      Parameters:
      packageId - 号码包id
      bankType - 银行类型
      filePath - 待上传的文件的绝对路径。文件行数建议不超过5500行,如果原始文件过大,商户需先切割为若干小文件再逐个上传
      Returns:
      Task
      Throws:
      com.wechat.pay.java.core.exception.HttpException - 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
      com.wechat.pay.java.core.exception.ValidationException - 发送HTTP请求成功,验证微信支付返回签名失败。
      com.wechat.pay.java.core.exception.ServiceException - 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。
      com.wechat.pay.java.core.exception.MalformedMessageException - 服务返回成功,content-type不为application/json、解析返回体失败。
      IllegalArgumentException
    • uploadPackage

      public Task uploadPackage(String packageId, String bankType, String fileName, ArrayList<String> fileContentList)
      导入定向用户协议号(创建上传任务)
      Parameters:
      packageId - 号码包id
      bankType - 银行类型
      fileName - 文件名,非文件路径
      fileContentList - 文件内容,数组中每个元素代表一条用户协议号明文。每个文件行数建议不超过5500行
      Returns:
      Task
      Throws:
      com.wechat.pay.java.core.exception.HttpException - 发送HTTP请求失败。例如构建请求参数失败、发送请求失败、I/O错误等。包含请求信息。
      com.wechat.pay.java.core.exception.ValidationException - 发送HTTP请求成功,验证微信支付返回签名失败。
      com.wechat.pay.java.core.exception.ServiceException - 发送HTTP请求成功,服务返回异常。例如返回状态码小于200或大于等于300。
      com.wechat.pay.java.core.exception.MalformedMessageException - 服务返回成功,content-type不为application/json、解析返回体失败。