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

me.chanjar.weixin.mp.bean.pay.request.WxPayBaseRequest Maven / Gradle / Ivy

There is a newer version: 4.6.9.B
Show newest version
package me.chanjar.weixin.mp.bean.pay.request;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import me.chanjar.weixin.common.util.ToStringUtils;

/**
 * 
 * Created by Binary Wang on 2016-10-24.
 *  微信支付请求对象共用的参数存放类
 * 注释中各行每个字段描述对应如下:
 * 
  • 字段名 *
  • 变量名 *
  • 是否必填 *
  • 类型 *
  • 示例值 *
  • 描述 *
  • * @author binarywang(Binary Wang) */ public abstract class WxPayBaseRequest { /** *
       * 公众账号ID
       * appid
       * 是
       * String(32)
       * wxd678efh567hg6787
       * 微信分配的公众账号ID(企业号corpid即为此appId)
       * 
    */ @XStreamAlias("appid") protected String appid; /** *
       * 商户号
       * mch_id
       * 是
       * String(32)
       * 1230000109
       * 微信支付分配的商户号
       * 
    */ @XStreamAlias("mch_id") protected String mchId; /** *
       * 随机字符串
       * nonce_str
       * 是
       * String(32)
       * 5K8264ILTKCH16CQ2502SI8ZNMTM67VS
       * 随机字符串,不长于32位。推荐随机数生成算法
       * 
    */ @XStreamAlias("nonce_str") protected String nonceStr; /** *
       * 签名
       * sign
       * 是
       * String(32)
       * C380BEC2BFD727A4B6845133519F3AD6
       * 签名,详见签名生成算法
       * 
    */ @XStreamAlias("sign") protected String sign; public String getAppid() { return this.appid; } public void setAppid(String appid) { this.appid = appid; } public String getMchId() { return this.mchId; } public void setMchId(String mchId) { this.mchId = mchId; } public String getNonceStr() { return this.nonceStr; } public void setNonceStr(String nonceStr) { this.nonceStr = nonceStr; } public String getSign() { return this.sign; } public void setSign(String sign) { this.sign = sign; } @Override public String toString() { return ToStringUtils.toSimpleString(this); } }




    © 2015 - 2025 Weber Informatics LLC | Privacy Policy