Serialized Form


Package com.foxinmy.weixin4j.cache

Package com.foxinmy.weixin4j.exception

Class com.foxinmy.weixin4j.exception.WeixinException extends Exception implements Serializable

serialVersionUID: 7148145661883468514L

Serialized Fields

code

String code

desc

String desc

Package com.foxinmy.weixin4j.http

Class com.foxinmy.weixin4j.http.ContentType extends Object implements Serializable

serialVersionUID: 1544245878894784980L

Serialized Fields

mimeType

MimeType mimeType

charset

Charset charset

Class com.foxinmy.weixin4j.http.HttpClientException extends Exception implements Serializable

serialVersionUID: -1760373205801759702L

Class com.foxinmy.weixin4j.http.HttpHeaders extends Object implements Serializable

serialVersionUID: -8578554704772377436L

Serialized Fields

headers

Map<K,V> headers

Class com.foxinmy.weixin4j.http.MimeType extends Object implements Serializable

serialVersionUID: 4430596628682058362L

Serialized Fields

type

String type

subType

String subType

Class com.foxinmy.weixin4j.http.URLParameter extends NameValue implements Serializable

serialVersionUID: -115491642760990655L


Package com.foxinmy.weixin4j.http.apache

Class com.foxinmy.weixin4j.http.apache.ByteArrayBuffer extends Object implements Serializable

serialVersionUID: 4359112959524048036L

Serialized Fields

buffer

byte[] buffer

len

int len

Class com.foxinmy.weixin4j.http.apache.CharArrayBuffer extends Object implements Serializable

serialVersionUID: -6208952725094867135L

Serialized Fields

buffer

char[] buffer

len

int len

Package com.foxinmy.weixin4j.http.weixin

Class com.foxinmy.weixin4j.http.weixin.ApiResult extends Object implements Serializable

serialVersionUID: -6185313616955051150L

Serialized Fields

returnCode

String returnCode
调用接口返回码,通信标识


returnMsg

String returnMsg
调用接口返回消息,如非 空,为错误原因 可能为空

Class com.foxinmy.weixin4j.http.weixin.XmlResult extends Object implements Serializable

serialVersionUID: -6185313616955051150L

Serialized Fields

returnCode

String returnCode
调用接口返回码,通信标识


returnMsg

String returnMsg
调用接口返回消息,如非 空,为错误原因 可能为空


resultCode

String resultCode
业务结果SUCCESS/FAIL 非空


errCode

String errCode
错误代码 可为空


errCodeDes

String errCodeDes
结果信息描述 可为空


Package com.foxinmy.weixin4j.logging

Class com.foxinmy.weixin4j.logging.AbstractInternalLogger extends Object implements Serializable

serialVersionUID: -6382972526573193470L

Serialization Methods

readResolve

protected Object readResolve()
                      throws ObjectStreamException
Throws:
ObjectStreamException
Serialized Fields

name

String name

Package com.foxinmy.weixin4j.model

Class com.foxinmy.weixin4j.model.Button extends Object implements Serializable

serialVersionUID: -6422234732203854866L

Serialized Fields

name

String name
菜单标题,不超过16个字节,子菜单不超过40个字节


type

String type
菜单类型
公众平台官网上能够设置的菜单类型有view、text、img、photo、video、voice

See Also:
ButtonType

content

String content
菜单KEY值,根据type的类型而定

通过公众平台设置的自定义菜单:
  • text:保存文字;
  • img、voice:保存媒体ID;
  • video:保存视频URL;
  • news:保存图文消息媒体ID
  • view:保存链接URL;

    使用API设置的自定义菜单:

  • click、scancode_push、scancode_waitmsg、pic_sysphoto、pic_photo_or_album、 pic_weixin、location_select:保存key;
  • view:保存链接URL;
  • media_id、view_limited:保存媒体ID


  • extra

    Object extra
    扩展属性,比如在公众平台设置菜单时的图文列表


    appid

    String appid
    miniprogram类型必须 小程序的appid(仅认证公众号可配置)


    pagepath

    String pagepath
    miniprogram类型必须 小程序的页面路径


    subs

    List<E> subs
    二级菜单数组,个数应为1~5个

    Class com.foxinmy.weixin4j.model.Token extends Object implements Serializable

    serialVersionUID: -7564855472419104084L

    Serialized Fields

    accessToken

    String accessToken
    获取到的凭证


    expires

    long expires
    凭证有效时间,单位:毫秒


    createTime

    long createTime
    token创建的时间,单位:毫秒


    extra

    Map<K,V> extra
    扩展信息

    Class com.foxinmy.weixin4j.model.WeixinAccount extends Object implements Serializable

    serialVersionUID: -6001008896414323534L

    Serialized Fields

    id

    String id
    唯一的身份标识


    secret

    String secret
    调用接口的密钥

    Class com.foxinmy.weixin4j.model.WeixinPayAccount extends WeixinAccount implements Serializable

    serialVersionUID: -2791256176906048632L

    Serialized Fields

    paySignKey

    String paySignKey
    公众号支付请求中用于加密的密钥


    mchId

    String mchId
    微信支付分配的商户号


    certificateKey

    String certificateKey
    加载支付证书文件的密码(默认为商户号)


    certificateFile

    String certificateFile
    商户证书文件(默认加载classpath:ca.p12)


    deviceInfo

    String deviceInfo
    微信支付分配的设备号


    partnerId

    String partnerId
    财付通商户身份的标识


    subId

    String subId
    微信分配的子商户公众账号ID


    subMchId

    String subMchId
    微信支付分配的子商户号


    Package com.foxinmy.weixin4j.model.card

    Class com.foxinmy.weixin4j.model.card.CardQR extends Object implements Serializable

    serialVersionUID: -2810577326677518511L

    Serialized Fields

    cardId

    String cardId
    卡券ID


    cardCode

    String cardCode
    卡券Code码,use_custom_code字段为true的卡券必须填写,非自定义code和导入code模式的卡券不必填写。


    openId

    String openId
    指定领取者的openid,只有该用户能领取。bind_openid字段为true的卡券必须填写,非指定openid不必填写。


    sceneValue

    String sceneValue
    领取场景值,用于领取渠道的数据统计,默认值为0,字段类型为整型,长度限制为60位数字。用户领取卡券后触发的事件推送中会带上此自定义场景值。


    isUniqueCode

    boolean isUniqueCode
    指定下发二维码,生成的二维码随机分配一个code,领取后不可再次扫描。填写true或false。默认false,注意填写该字段时, 卡券须通过审核且库存不为0。

    Class com.foxinmy.weixin4j.model.card.CouponAdvanceInfo extends Object implements Serializable

    serialVersionUID: 3626615706377721404L

    Serialized Fields

    useCondition

    com.alibaba.fastjson.JSONObject useCondition
    使用门槛(条件)字段,若不填写使用条件则在券面拼写 :无最低消费限制,全场通用,不限品类;并在使用说明显示: 可与其他优惠共享


    abstractConver

    com.alibaba.fastjson.JSONObject abstractConver
    封面摘要结构


    slideImages

    List<E> slideImages
    图文列表,显示在详情内页 ,优惠券券开发者须至少传入 一组图文列表


    timeLimits

    List<E> timeLimits
    使用时段限制


    businessServices

    List<E> businessServices
    商家服务类型

    Class com.foxinmy.weixin4j.model.card.CouponBaseInfo extends Object implements Serializable

    serialVersionUID: -5725424121330101716L

    Serialized Fields

    logoUrl

    String logoUrl
    卡券的商户logo,建议像素为300*300。


    brandName

    String brandName
    商户名字,字数上限为12个汉字,如:海底捞


    title

    String title
    卡券名,字数上限为9个汉字。(建议涵盖卡券属性、服务及金额),如:双人套餐100元兑换券


    codeType

    CardCodeType codeType
    码型


    cardColor

    CardColor cardColor
    卡券颜色


    notice

    String notice
    卡券使用提醒,字数上限为16个汉字,如:请出示二维码


    description

    String description
    卡券使用说明,字数上限为1024个汉字,如:不可与其他优惠同享


    sku

    com.alibaba.fastjson.JSONObject sku
    卡券库存的数量,上限为100000000。


    date

    com.alibaba.fastjson.JSONObject date
    使用日期,有效期的信息。


    useCustomCode

    Boolean useCustomCode
    是否自定义Code码


    bindOpenId

    Boolean bindOpenId
    指定特殊用户群体


    servicePhone

    String servicePhone
    客服电话


    locationIds

    List<E> locationIds
    门店位置poiid。具备线下门店


    useAllLocation

    boolean useAllLocation
    设置本卡券支持全部门店,与locationIds互斥


    centerTitle

    String centerTitle
    卡券顶部居中的按钮,仅在卡券状 态正常(可以核销)时显示,如:立即使用


    centerUrl

    String centerUrl
    顶部居中的url ,仅在卡券状态正常(可以核销)时显示,如:www.qq.com


    centerSubTitle

    String centerSubTitle
    显示在入口下方的提示语 ,仅在卡券状态正常(可以核销)时显示,如:立即享受优惠


    customTitle

    String customTitle
    自定义跳转外链的入口名字,如:立即使用


    customUrl

    String customUrl
    自定义跳转的URL,如:www.qq.com


    customSubTitle

    String customSubTitle
    显示在入口右侧的提示语,如:更多惊喜


    promotionTitle

    String promotionTitle
    营销场景的自定义入口名称,如:产品介绍


    promotionUrl

    String promotionUrl
    入口跳转外链的地址链接,如:www.qq.com


    promotionSubTitle

    String promotionSubTitle
    显示在营销入口右侧的提示语,如:卖场大优惠


    source

    String source
    第三方来源名,例如同程旅游、大众点评。


    limitNum

    int limitNum
    每人可领券的数量限制,不填写默认为50。


    canShare

    boolean canShare
    卡券领取页面是否可分享


    canGiveFriend

    boolean canGiveFriend
    卡券是否可转赠


    needPushOnView

    Boolean needPushOnView

    Package com.foxinmy.weixin4j.model.media

    Class com.foxinmy.weixin4j.model.media.MediaCounter extends Object implements Serializable

    serialVersionUID: -1752502821323552783L

    Serialized Fields

    totalCount

    int totalCount
    应用素材总数目(企业号独有)


    fileCount

    int fileCount
    文件素材总数目(企业号独有)


    voiceCount

    long voiceCount
    语音总数量


    videoCount

    long videoCount
    视频总数量


    imageCount

    long imageCount
    图片总数量


    newsCount

    long newsCount
    图文总数量

    Class com.foxinmy.weixin4j.model.media.MediaDownloadResult extends Object implements Serializable

    serialVersionUID: -7090523911701729058L

    Serialized Fields

    content

    byte[] content
    内容


    contentType

    ContentType contentType
    类型


    fileName

    String fileName
    文件名

    Class com.foxinmy.weixin4j.model.media.MediaItem extends Object implements Serializable

    serialVersionUID: -2923028664954250134L

    Serialized Fields

    mediaId

    String mediaId
    媒体素材ID


    name

    String name
    媒体素材名称


    url

    String url
    图文页的URL,或者,当获取的列表是图片素材列表时,该字段是图片的URL


    updateTime

    String updateTime
    媒体素材最后更新时间


    articles

    List<E> articles
    图文素材列表

    Class com.foxinmy.weixin4j.model.media.MediaRecord extends Object implements Serializable

    serialVersionUID: 7017503153256241457L

    Serialized Fields

    totalCount

    int totalCount
    该类型的素材的总数


    itemCount

    int itemCount
    本次调用获取的素材的数量


    mediaType

    MediaType mediaType
    媒体类型


    items

    List<E> items
    媒体信息


    pageable

    Pageable pageable
    分页信息


    pagedata

    Pagedata<T> pagedata

    Class com.foxinmy.weixin4j.model.media.MediaUploadResult extends Object implements Serializable

    serialVersionUID: -620630472640999536L

    Serialized Fields

    mediaId

    String mediaId

    mediaType

    MediaType mediaType

    createdAt

    Date createdAt

    url

    String url
    新增的图片素材的图片URL


    Package com.foxinmy.weixin4j.model.paging

    Class com.foxinmy.weixin4j.model.paging.Pageable extends Object implements Serializable

    serialVersionUID: -8051554878205756307L

    Serialized Fields

    page

    int page

    size

    int size

    sort

    Sort sort

    Class com.foxinmy.weixin4j.model.paging.Pagedata extends Object implements Serializable

    serialVersionUID: 163159826528502864L

    Serialized Fields

    total

    int total

    pageable

    Pageable pageable

    content

    List<E> content

    Class com.foxinmy.weixin4j.model.paging.Sort extends Object implements Serializable

    serialVersionUID: -4298853295391613880L

    Serialized Fields

    orders

    Map<K,V> orders

    Package com.foxinmy.weixin4j.model.qr

    Class com.foxinmy.weixin4j.model.qr.QRParameter extends Object implements Serializable

    serialVersionUID: 6611187606558274253L

    Serialized Fields

    qrType

    QRType qrType
    二维码的类型

    See Also:
    QRType

    expireSeconds

    Integer expireSeconds
    二维码的有效时间


    sceneValue

    String sceneValue
    二维码的场景值


    sceneContent

    com.alibaba.fastjson.JSONObject sceneContent
    二维码的内容

    Class com.foxinmy.weixin4j.model.qr.QRResult extends Object implements Serializable

    serialVersionUID: 7730781702153258151L

    Serialized Fields

    ticket

    String ticket

    url

    String url

    showUrl

    String showUrl

    expireSeconds

    int expireSeconds

    content

    byte[] content

    Package com.foxinmy.weixin4j.payment

    Class com.foxinmy.weixin4j.payment.JsPayNotify extends PayBaseInfo implements Serializable

    serialVersionUID: -4659030958445259803L

    Serialized Fields

    openId

    String openId
    用户的openid


    isSubscribe

    int isSubscribe
    是否关注公众号

    Class com.foxinmy.weixin4j.payment.PayBaseInfo extends Object implements Serializable

    serialVersionUID: 1843024880782466990L

    Serialized Fields

    appId

    String appId
    公众号ID


    timeStamp

    String timeStamp
    时间戳


    nonceStr

    String nonceStr
    随机字符串


    paySign

    String paySign
    签名结果


    signType

    String signType
    签名方式

    Class com.foxinmy.weixin4j.payment.PayPackage extends MerchantResult implements Serializable

    serialVersionUID: 3450161267802545790L

    Serialized Fields

    body

    String body
    商品描述 必须


    detail

    String detail
    商品详情 非必须


    outTradeNo

    String outTradeNo
    商户系统内部的订单号 ,32 个字符内 、可包含字母 ,确保 在商户系统唯一 必须


    totalFee

    int totalFee
    订单总金额,单位为分,不能带小数点 必须


    notifyUrl

    String notifyUrl
    通知地址接收微信支付成功通知 必须


    createIp

    String createIp
    订单生成的机器 IP 必须


    attach

    String attach
    附加数据,原样返回 非必须


    timeStart

    String timeStart
    订单生成时间,格式为 yyyyMMddHHmmss,如 2009 年 12月25日9点10分10秒表示为 20091225091010。时区 为 GMT+8 beijing。该时间取 自商户服务器 非必须


    timeExpire

    String timeExpire
    订单失效时间,格为 yyyyMMddHHmmss,如 2009 年 12月27日9点10分10秒表示为 20091227091010。时区 为 GMT+8 beijing。该时间取 自商户服务商品标记 非必须


    goodsTag

    String goodsTag
    商品标记,该字段不能随便填,不使用请填空 非必须

    Class com.foxinmy.weixin4j.payment.PayRequest extends PayBaseInfo implements Serializable

    serialVersionUID: -453746488398523883L

    Serialized Fields

    packageInfo

    String packageInfo
    订单详情扩展 订单信息组成该字符串


    prepayId

    String prepayId
    冗余字段


    partnerId

    String partnerId
    冗余字段


    Package com.foxinmy.weixin4j.payment.coupon

    Class com.foxinmy.weixin4j.payment.coupon.CouponDetail extends MerchantResult implements Serializable

    serialVersionUID: -311265355895457070L

    Serialized Fields

    couponStockId

    String couponStockId
    代金券批次Id


    couponStockType

    int couponStockType
    批次类型;1-批量型,2-触发型


    couponId

    String couponId
    代金券id


    couponValue

    int couponValue
    代金券面值,单位是分


    couponMininum

    int couponMininum
    代金券使用最低限额,单位是分


    couponName

    String couponName
    代金券名称


    couponStatus

    int couponStatus
    代金券状态:2-已激活,4-已锁定,8-已实扣


    couponType

    int couponType
    代金券类型:1-代金券无门槛,2-代金券有门槛互斥,3-代金券有门槛叠加,


    couponDesc

    String couponDesc
    代金券描述


    couponUseValue

    int couponUseValue
    代金券实际使用金额


    couponRemainValue

    int couponRemainValue
    代金券剩余金额:部分使用情况下,可能会存在券剩余金额


    beginTime

    String beginTime
    生效开始时间:格式为yyyyMMddhhmmss,如2009年12月27日9点10分10秒表示为20091227091010。


    endTime

    String endTime
    生效结束时间:格式为yyyyMMddhhmmss,如2009年12月27日9点10分10秒表示为20091227091010。


    sendTime

    String sendTime
    发放时间:格式为yyyyMMddhhmmss,如2009年12月27日9点10分10秒表示为20091227091010。


    useTime

    String useTime
    使用时间:格式为yyyyMMddhhmmss,如2009年12月27日9点10分10秒表示为20091227091010。


    tradeNo

    String tradeNo
    使用单号:代金券使用后,关联的大单收单单号


    consumerMchId

    String consumerMchId
    消耗方商户id:代金券使用后,消耗方商户id


    consumerMchName

    String consumerMchName
    消耗方商户名称:代金券使用后,消耗方商户名称


    consumerMchAppid

    String consumerMchAppid
    消耗方商户appid:代金券使用后,消耗方商户appid


    sendSource

    String sendSource
    发放来源:代金券发放来源


    isPartialUse

    int isPartialUse
    是否允许部分使用:该代金券是否允许部分使用标识:1-表示支持部分使用

    Class com.foxinmy.weixin4j.payment.coupon.CouponResult extends MerchantResult implements Serializable

    serialVersionUID: -1996967923720149124L

    Serialized Fields

    couponStockId

    String couponStockId
    代金券批次id


    responseCount

    int responseCount
    返回记录数


    successCount

    int successCount
    成功记录数


    failedCount

    int failedCount
    失败记录数


    openId

    String openId
    用户在商户appid下的唯一标识


    retCode

    String retCode
    返回码 SUCCESS或者FAILED


    couponId

    String couponId
    代金券id


    retMsg

    String retMsg
    失败描述信息,例如:“用户已达领用上限”

    Class com.foxinmy.weixin4j.payment.coupon.CouponStock extends MerchantResult implements Serializable

    serialVersionUID: -8627202879200080499L

    Serialized Fields

    couponStockId

    String couponStockId
    代金券批次ID


    couponName

    String couponName
    代金券名称


    couponValue

    int couponValue
    代金券面额


    couponMininumn

    Integer couponMininumn
    代金券使用最低限额


    couponType

    int couponType
    代金券类型:1-代金券无门槛,2-代金券有门槛互斥,3-代金券有门槛叠加


    couponStockStatus

    int couponStockStatus
    批次状态: 1-未激活;2-审批中;4-已激活;8-已作废;16-中止发放;


    couponTotal

    int couponTotal
    代金券数量


    maxQuota

    Integer maxQuota
    代金券每个人最多能领取的数量, 如果为0,则表示没有限制


    lockedNum

    Integer lockedNum
    代金券锁定数量


    usedNum

    Integer usedNum
    代金券已使用数量


    sendNum

    Integer sendNum
    代金券已经发送的数量


    beginTime

    String beginTime
    生效开始时间 格式为yyyyMMddhhmmss,如2009年12月27日9点10分10秒表示为20091227091010。


    endTime

    String endTime
    生效结束时间 格式为yyyyMMddhhmmss,如2009年12月27日9点10分10秒表示为20091227091010。


    createTime

    String createTime
    创建时间 格式为yyyyMMddhhmmss,如2009年12月27日9点10分10秒表示为20091227091010。


    couponBudget

    Integer couponBudget
    代金券预算额度

    Class com.foxinmy.weixin4j.payment.coupon.OrderCouponInfo extends Object implements Serializable

    serialVersionUID: -8744999305258786901L

    Serialized Fields

    couponBatchId

    String couponBatchId
    代金券或立减优惠批次ID


    couponType

    String couponType
    代金券类型

    See Also:
    CouponType

    couponId

    String couponId
    代金券或立减优惠ID


    couponFee

    Integer couponFee
    单个代金券或立减优惠支付金额

    Class com.foxinmy.weixin4j.payment.coupon.RefundCouponInfo extends Object implements Serializable

    serialVersionUID: -8744999305258786901L

    Serialized Fields

    couponBatchId

    String couponBatchId
    代金券或立减优惠批次ID


    couponId

    String couponId
    退款代金券ID


    couponFee

    Integer couponFee
    单个代金券或立减优惠支付金额


    Package com.foxinmy.weixin4j.payment.mch

    Class com.foxinmy.weixin4j.payment.mch.CorpPayment extends MerchantResult implements Serializable

    serialVersionUID: 3734639674346425312L

    Serialized Fields

    outTradeNo

    String outTradeNo
    商户订单号


    openId

    String openId
    接收红包的用户的openid


    checkNameType

    CorpPaymentCheckNameType checkNameType
    校验用户姓名选项

    See Also:
    com.foxinmy.weixin4j.type.mch.CorpPaymentCheckNameType.type.MPPaymentCheckNameType

    userName

    String userName
    收款用户真实姓名。 如果check_name设置为FORCE_CHECK或OPTION_CHECK,则必填用户真实姓名 可选


    desc

    String desc
    企业付款描述信息


    amount

    int amount
    付款金额 单位分


    clientIp

    String clientIp
    调用接口的机器Ip地址

    Class com.foxinmy.weixin4j.payment.mch.CorpPaymentRecord extends MerchantResult implements Serializable

    serialVersionUID: -1926873539419750498L

    Serialized Fields

    transactionId

    String transactionId
    微信订单订单号


    outTradeNo

    String outTradeNo
    商户订单号


    transactionStatus

    String transactionStatus
    交易状态 SUCCESS:转账成功 FAILED:转账失败


    failureReason

    String failureReason
    如果失败则应该有原因


    openId

    String openId
    收款用户openid


    transferName

    String transferName
    收款用户姓名


    paymentAmount

    int paymentAmount
    付款金额(单位为分)


    transferTime

    String transferTime
    转账时间


    checkNameType

    String checkNameType
    校验用户姓名选项

    See Also:
    com.foxinmy.weixin4j.type.mch.CorpPaymentCheckNameType.type.MPPaymentCheckNameType

    desc

    String desc
    企业付款描述信息


    checkNameResult

    String checkNameResult
    实名验证结果 PASS:通过 FAILED:不通过

    Class com.foxinmy.weixin4j.payment.mch.CorpPaymentResult extends MerchantResult implements Serializable

    serialVersionUID: 1110472826089211646L

    Serialized Fields

    transactionId

    String transactionId
    微信订单订单号


    outTradeNo

    String outTradeNo
    商户订单号


    paymentTime

    String paymentTime
    支付时间

    Class com.foxinmy.weixin4j.payment.mch.CustomsOrder extends MerchantResult implements Serializable

    serialVersionUID: 799510373861612386L

    Serialized Fields

    transactionId

    String transactionId
    微信支付订单号


    outTradeNo

    String outTradeNo
    商户订单号


    subOrderNo

    String subOrderNo
    商户子订单号,如有拆单则必传


    feeType

    CurrencyType feeType
    货币类型,符合 ISO 4217 标准的三位字母代码,默认人民币:CNY

    See Also:
    com.foxinmy.weixin4j.mp.type.CurrencyType

    orderFee

    String orderFee
    子订单金额,以分为单位,不能超过原订单金额,order_fee=transport_fee+product_fee(应付金额=物流费+商品价格), 如有拆单则必传。


    transportFee

    String transportFee
    物流费用,以分为单位,如有拆单则必传。


    productFee

    String productFee
    商品费用,以分为单位,如有拆单则必传。


    dutyFee

    String dutyFee
    关税,以分为单位


    customsCity

    CustomsCity customsCity
    海关


    customsNo

    String customsNo
    商户在海关登记的备案号,customsCity非NO,此参数必填


    credentialType

    CredentialType credentialType
    证件类型:暂只支持身份证,该参数是指用户信息,商户若有用户信息,可上送,系统将以商户上传的数据为准,进行海关通关报备


    credentialId

    String credentialId
    证件号码:身份证号,该参数是指用户信息,商户若有用户信息,可上送,系统将以商户上传的数据为准,进行海关通关报备;


    uname

    String uname
    用户姓名,该参数是指用户信息,商户若有用户信息,可上送,系统将以商户上传的数据为准,进行海关通关报备;

    Class com.foxinmy.weixin4j.payment.mch.CustomsOrderRecord extends MerchantResult implements Serializable

    serialVersionUID: -1675090110657154049L

    Serialized Fields

    transactionId

    String transactionId
    微信支付订单号


    orderCount

    int orderCount
    笔数


    customsOrderList

    List<E> customsOrderList
    报关详情

    See Also:
    CustomsOrderResult

    Class com.foxinmy.weixin4j.payment.mch.CustomsOrderResult extends MerchantResult implements Serializable

    serialVersionUID: 799510373861612386L

    Serialized Fields

    state

    String state
    状态码


    transactionId

    String transactionId
    微信支付订单号


    outTradeNo

    String outTradeNo
    商户订单号


    subOrderNo

    String subOrderNo
    商户子订单号


    subOrderId

    String subOrderId
    微信子订单号


    modifyTime

    String modifyTime
    最后更新时间

    Class com.foxinmy.weixin4j.payment.mch.MchPayPackage extends PayPackage implements Serializable

    serialVersionUID: 8944928173669656177L

    Serialized Fields

    tradeType

    String tradeType
    交易类型JSAPI、NATIVE、APP 必须


    feeType

    String feeType
    符合ISO 4217标准的三位字母代码,默认人民币:CNY 非必须


    openId

    String openId
    用户在商户 appid 下的唯一 标识, trade_type 为 JSAPI 时,此参数必传


    productId

    String productId
    只在 trade_type 为 NATIVE 且【模式一】 时需要填写 非必须


    authCode

    String authCode
    扫码支付授权码 ,设备读取用户微信中的条码或者二维码信息


    limitPay

    String limitPay
    指定支付方式:no_credit--指定不能使用信用卡支付


    subOpenId

    String subOpenId
    服务商下的用户子标识 非必须

    Class com.foxinmy.weixin4j.payment.mch.MerchantResult extends XmlResult implements Serializable

    serialVersionUID: -8430005768959715444L

    Serialized Fields

    appId

    String appId
    微信分配的公众账号 ID商户号 非空


    mchId

    String mchId
    微信支付分配的商户号 非空


    subAppId

    String subAppId
    微信分配的子商户公众账号ID 非必须


    subMchId

    String subMchId
    微信支付分配的子商户号 非必须


    nonceStr

    String nonceStr
    随机字符串 非空


    sign

    String sign
    签名 调用者无需关心


    signType

    String signType
    签名类型 默认MD5


    deviceInfo

    String deviceInfo
    微信支付分配的终端设备号 可能为空


    recall

    String recall
    是否需要继续调用接口 Y- 需要,N-不需要

    Class com.foxinmy.weixin4j.payment.mch.MerchantTradeResult extends MerchantResult implements Serializable

    serialVersionUID: 4205906286092873877L

    Serialized Fields

    transactionId

    String transactionId
    微信支付订单号


    outTradeNo

    String outTradeNo
    商户订单号


    totalFee

    Integer totalFee
    订单总金额,单位为分


    settlementTotalFee

    Integer settlementTotalFee
    应结订单金额,单位为分:应结订单金额=订单金额-非充值代金券金额,应结订单金额<=订单金额。


    feeType

    String feeType
    货币类型,符合 ISO 4217 标准的三位字母代码,默认人民币:CNY

    See Also:
    com.foxinmy.weixin4j.mp.type.CurrencyType

    cashFee

    Integer cashFee
    现金支付金额

    Class com.foxinmy.weixin4j.payment.mch.MICROPayRequest extends Order implements Serializable

    serialVersionUID: 6147576305404111278L

    Serialized Fields

    paymentAccount

    WeixinPayAccount paymentAccount

    Class com.foxinmy.weixin4j.payment.mch.NativePayNotify extends OpenIdResult implements Serializable

    serialVersionUID: 4515471400239795492L

    Serialized Fields

    isSubscribe

    String isSubscribe
    用户是否关注公众账号,Y- 关注,N-未关注,仅在公众 账号类型支付有效


    productId

    String productId
    产品ID 可视为订单ID

    Class com.foxinmy.weixin4j.payment.mch.NativePayResponse extends MerchantResult implements Serializable

    serialVersionUID: 6119895998783333012L

    Serialized Fields

    prepayId

    String prepayId

    Class com.foxinmy.weixin4j.payment.mch.OpenIdResult extends MerchantResult implements Serializable

    serialVersionUID: 902743989722741814L

    Serialized Fields

    openId

    String openId
    用户在商户appid下的唯一标识


    subOpenId

    String subOpenId
    用户在商户appid下的唯一标识

    Class com.foxinmy.weixin4j.payment.mch.Order extends MerchantTradeResult implements Serializable

    serialVersionUID: 5636828325595317079L

    Serialized Fields

    tradeState

    String tradeState
    交易状态

    See Also:
    TradeState

    openId

    String openId
    用户的openid


    isSubscribe

    String isSubscribe
    用户是否关注公众账号,Y- 关注,N-未关注,仅在公众 账号类型支付有效


    tradeType

    String tradeType
    交易类型

    See Also:
    TradeType

    bankType

    String bankType
    银行类型


    cashFeeType

    String cashFeeType
    现金支付货币类型,符合 ISO 4217 标准的三位字母代码,默认人民币:CNY

    See Also:
    com.foxinmy.weixin4j.mp.type.CurrencyType

    couponFee

    Integer couponFee
    代金券金额:“代金券”金额<=订单金额,订单金额-“代金券”金额=现金支付金额


    couponCount

    Integer couponCount
    代金券或立减优惠使用数量


    couponList

    List<E> couponList
    代金券信息 验证签名有点麻烦


    attach

    String attach
    商家数据包


    timeEnd

    String timeEnd
    支付完成时间,格式为 yyyyMMddhhmmss


    tradeStateDesc

    String tradeStateDesc
    交易状态描述


    subOpenId

    String subOpenId
    用户在子商户下的openid


    subIsSubscribe

    String subIsSubscribe
    是否关注子公众账号,Y- 关注,N-未关注,仅在公众 账号类型支付有效

    Class com.foxinmy.weixin4j.payment.mch.PrePay extends MerchantResult implements Serializable

    serialVersionUID: -8430005768959715444L

    Serialized Fields

    tradeType

    TradeType tradeType
    调用接口提交的交易类型,取值如下:JSAPI,NATIVE,APP,

    See Also:
    com.foxinmy.weixin4j.mp.type.TradeType

    prepayId

    String prepayId
    微信生成的预支付回话标识,用于后续接口调用中使用,该值有效期为2小时


    payUrl

    String payUrl
    对于trade_type 为 NATIVE 或者 MWEB 是有 返回
    NATVIE支付:可直接生成二维码展示出来进行扫码支付可能为空
    MWEB支付:可直接作为跳转支付的URL

    Class com.foxinmy.weixin4j.payment.mch.Redpacket extends MerchantResult implements Serializable

    serialVersionUID: -7021352305575714281L

    Serialized Fields

    outTradeNo

    String outTradeNo
    商户订单号(每个订单号必须唯一) 组成: mch_id+yyyymmdd+10位一天内不能重复的数字。


    openId

    String openId
    接受收红包的用户的openid 必填


    sendName

    String sendName
    红包发送者名称 必填


    totalAmount

    int totalAmount
    付款金额,单位分


    totalNum

    int totalNum
    红包发放总人数


    amtType

    String amtType
    红包金额设置方式(裂变红包) ALL_RAND—全部随机,商户指定总金额和红包发放总人数,由微信支付随机计算出各红包金额


    wishing

    String wishing
    红包祝福语


    clientIp

    String clientIp
    ip地址


    actName

    String actName
    活动名称


    remark

    String remark
    备注


    msgAppId

    String msgAppId
    服务商模式下触达用户时的appid(可填服务商自己的appid或子商户的appid),服务商模式下必填, 服务商模式下填入的子商户appid必须在微信支付商户平台中先录入,否则会校验不过。 非必须


    consumeMchId

    String consumeMchId
    扣钱方mchid,常规模式下无效,服务商模式下选填,服务商模式下不填默认扣子商户的钱.非必须


    sceneType

    RedpacketSceneType sceneType
    发放红包使用场景,红包金额大于200时必传


    risk

    String risk
    活动信息

    Class com.foxinmy.weixin4j.payment.mch.RedpacketRecord extends XmlResult implements Serializable

    serialVersionUID: 929959747323918458L

    Serialized Fields

    outTradeNo

    String outTradeNo
    商户订单号(每个订单号必须唯一) 组成: mch_id+yyyymmdd+10位一天内不能重复的数字。


    mchId

    String mchId
    微信支付分配的商户号


    repacketId

    String repacketId
    红包单号


    status

    String status
    红包状态


    sendType

    String sendType
    发放类型


    hbType

    String hbType
    红包类型


    totalNum

    int totalNum
    红包个数


    totalAmount

    int totalAmount
    红包总金额(单位分)


    reason

    String reason
    发送失败原因


    sendTime

    String sendTime
    发放时间


    refundTime

    String refundTime
    红包退款时间


    refundAmount

    Integer refundAmount
    红包退款金额


    wishing

    String wishing
    祝福语


    remark

    String remark
    活动描述


    actName

    String actName
    活动名称


    receivers

    List<E> receivers
    裂变红包领取列表

    Class com.foxinmy.weixin4j.payment.mch.RedpacketRecord.RedpacketReceiver extends Object implements Serializable

    serialVersionUID: 1L

    Serialized Fields

    openId

    String openId
    领取红包的Openid


    status

    RedpacketStatus status
    领取状态


    amount

    int amount
    领取金额


    receiveTime

    String receiveTime
    领取时间

    Class com.foxinmy.weixin4j.payment.mch.RedpacketSendResult extends MerchantResult implements Serializable

    serialVersionUID: 5611847899634131711L

    Serialized Fields

    outTradeNo

    String outTradeNo
    商户订单号(每个订单号必须唯一) 组成: mch_id+yyyymmdd+10位一天内不能重复的数字。


    openId

    String openId
    接收红包的用户的openid


    totalAmount

    int totalAmount
    付款金额 单位为分


    sendTime

    String sendTime
    发放成功时间


    sendListid

    String sendListid
    微信单号

    Class com.foxinmy.weixin4j.payment.mch.RefundDetail extends Object implements Serializable

    serialVersionUID: 1402738803019986864L

    Serialized Fields

    outRefundNo

    String outRefundNo
    商户退款单号


    refundId

    String refundId
    微信退款单号


    refundChannel

    String refundChannel
    退款渠道:ORIGINAL—原路退款,默认 BALANCE—退回到余额


    refundFee

    int refundFee
    退款总金额,单位为分,可以做部分退款


    refundStatus

    String refundStatus
    退款状态


    settlementRefundFee

    Integer settlementRefundFee
    退款金额:退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额


    couponRefundFee

    Integer couponRefundFee
    代金券退款金额:代金券退款金额<=退款金额,退款金额-代金券或立减优惠退款金额为现金,


    couponRefundCount

    Integer couponRefundCount
    代金券或立减优惠使用数量


    couponType

    String couponType
    代金券类型

    See Also:
    CouponType

    refundRecvAccout

    String refundRecvAccout
    退款入账账户:取当前退款单的退款入账方 1)退回银行卡: {银行名称}{卡类型}{卡尾号} 2)退回支付用户零钱: 支付用户零钱


    refundSuccessTime

    String refundSuccessTime
    退款成功时间,当退款状态为退款成功时有返回


    couponList

    List<E> couponList
    退款代金券信息

    See Also:
    RefundCouponInfo

    Class com.foxinmy.weixin4j.payment.mch.RefundRecord extends MerchantTradeResult implements Serializable

    serialVersionUID: -2971132874939642721L

    Serialized Fields

    refundCount

    int refundCount
    退款笔数


    refundFee

    int refundFee
    退款总金额,单位为分,可以做部分退款


    refundList

    List<E> refundList
    退款详情

    See Also:
    RefundDetail

    Class com.foxinmy.weixin4j.payment.mch.RefundResult extends MerchantTradeResult implements Serializable

    serialVersionUID: -3687863914168618620L

    Serialized Fields

    outRefundNo

    String outRefundNo
    商户退款单号


    refundId

    String refundId
    微信退款单号


    refundChannel

    String refundChannel
    退款渠道:ORIGINAL—原路退款,默认 BALANCE—退回到余额


    refundFee

    int refundFee
    退款总金额,单位为分,可以做部分退款


    cashRefundFee

    Integer cashRefundFee
    现金退款金额


    refundList

    List<E> refundList
    退款详情

    See Also:
    RefundDetail

    Class com.foxinmy.weixin4j.payment.mch.SettlementRecord extends MerchantResult implements Serializable

    serialVersionUID: 7952659545609519979L

    Serialized Fields

    batchNo

    String batchNo
    付款批次号


    settleDate

    String settleDate
    结算日期


    startDate

    String startDate
    交易开始日期


    endDate

    String endDate
    交易结束日期


    settleFee

    int settleFee
    划账金额:外币标价,外币最小单位


    unSettleFee

    int unSettleFee
    未划账金额:外币标价,外币最小单位


    settleFeeType

    String settleFeeType
    结算币种


    payFee

    int payFee
    支付金额:外币标价,外币最小单位


    refundFee

    int refundFee
    退款金额:外币标价,外币最小单位


    payNetFee

    int payNetFee
    支付净额:外币标价,外币最小单位


    poundageFee

    int poundageFee
    手续费金额:外币标价,外币最小单位


    Package com.foxinmy.weixin4j.tuple

    Class com.foxinmy.weixin4j.tuple.Article extends Object implements Serializable

    serialVersionUID: -1231352700301456395L

    Serialized Fields

    title

    String title
    图文消息标题


    desc

    String desc
    图文消息描述


    picUrl

    String picUrl
    图片链接,支持JPG、PNG格式,较好的效果为大图360*200,小图200*200


    url

    String url
    点击图文消息跳转链接

    Class com.foxinmy.weixin4j.tuple.Card extends Object implements Serializable

    serialVersionUID: 6119453633595102147L

    Serialized Fields

    cardId

    String cardId
    上传后的微信返回的媒体ID

    Class com.foxinmy.weixin4j.tuple.File extends Object implements Serializable

    serialVersionUID: -8149837316289636110L

    Serialized Fields

    mediaId

    String mediaId
    上传后的微信返回的媒体ID

    Class com.foxinmy.weixin4j.tuple.Image extends Object implements Serializable

    serialVersionUID: 6928681900960656161L

    Serialized Fields

    mediaId

    String mediaId
    上传后的微信返回的媒体ID

    Class com.foxinmy.weixin4j.tuple.MpArticle extends Object implements Serializable

    serialVersionUID: 5583479943661639234L

    Serialized Fields

    thumbMediaId

    String thumbMediaId
    图文消息缩略图的media_id,可以在基础支持-上传多媒体文件接口中获得 非空


    thumbUrl

    String thumbUrl
    图文消息的封面图片的地址(不一定有,请关注thumbMediaId)


    author

    String author
    图文消息的作者 可为空


    title

    String title
    图文消息的标题 非空


    url

    String url
    图文页的URL 获取图文消息时,群发消息时填写无效。


    sourceUrl

    String sourceUrl
    在图文消息页面点击“阅读原文”后的页面 可为空


    content

    String content
    图文消息页面的内容,支持HTML标签 非空


    digest

    String digest
    图文消息的描述 可为空


    showCoverPic

    String showCoverPic
    是否显示封面,1为显示,0为不显示 可为空


    openComment

    String openComment
    是否打开评论,0不打开,1打开


    onlyFansCanComment

    String onlyFansCanComment
    是否粉丝才可评论,0所有人可评论,1粉丝才可评论

    Class com.foxinmy.weixin4j.tuple.MpNews extends Object implements Serializable

    serialVersionUID: 8853054484809101524L

    Serialized Fields

    mediaId

    String mediaId
    上传图文列表后微信返回的媒体ID


    articles

    LinkedList<E> articles
    图文列表

    Class com.foxinmy.weixin4j.tuple.MpVideo extends Object implements Serializable

    serialVersionUID: 2167437425244069128L

    Serialized Fields

    mediaId

    String mediaId
    上传视频后微信返回的媒体ID

    Class com.foxinmy.weixin4j.tuple.Music extends Object implements Serializable

    serialVersionUID: -5952134916367253297L

    Serialized Fields

    title

    String title
    音乐标题


    desc

    String desc
    音乐描述


    musicUrl

    String musicUrl
    音乐链接


    hqMusicUrl

    String hqMusicUrl
    高质量音乐链接,WIFI环境优先使用该链接播放音乐


    thumbMediaId

    String thumbMediaId
    缩略图的媒体id,通过上传多媒体文件,得到的id

    Class com.foxinmy.weixin4j.tuple.News extends Object implements Serializable

    serialVersionUID: 3348756809039388415L

    Serialized Fields

    articles

    LinkedList<E> articles
    图文列表

    See Also:
    Article

    Class com.foxinmy.weixin4j.tuple.Text extends Object implements Serializable

    serialVersionUID: 520050144519064503L

    Serialized Fields

    content

    String content
    内容

    Class com.foxinmy.weixin4j.tuple.Video extends Object implements Serializable

    serialVersionUID: 2167437425244069128L

    Serialized Fields

    mediaId

    String mediaId
    上传视频微信返回的媒体ID


    thumbMediaId

    String thumbMediaId
    缩略图的媒体ID(客服消息)


    title

    String title
    视频标题


    desc

    String desc
    视频描述

    Class com.foxinmy.weixin4j.tuple.Voice extends Image implements Serializable

    serialVersionUID: 8853054484809101524L


    Package com.foxinmy.weixin4j.type

    Class com.foxinmy.weixin4j.type.IdQuery extends Object implements Serializable

    serialVersionUID: -5273675987521807370L

    Serialized Fields

    id

    String id
    id值


    type

    IdType type
    id类型

    See Also:
    IdType

    Package com.foxinmy.weixin4j.util

    Class com.foxinmy.weixin4j.util.LinkedCaseInsensitiveMap extends LinkedHashMap<String,V> implements Serializable

    Serialized Fields

    caseInsensitiveKeys

    Map<K,V> caseInsensitiveKeys

    locale

    Locale locale

    Class com.foxinmy.weixin4j.util.NameValue extends Object implements Serializable

    serialVersionUID: -348620146718819093L

    Serialized Fields

    name

    String name

    value

    String value

    Class com.foxinmy.weixin4j.util.ObjectId extends Object implements Serializable

    serialVersionUID: -4415279469780082174L

    Serialized Fields

    _time

    int _time

    _machine

    int _machine

    _inc

    int _inc

    _new

    boolean _new

    Package com.foxinmy.weixin4j.xml

    Class com.foxinmy.weixin4j.xml.ListWrapper extends Object implements Serializable

    serialVersionUID: 7550802632983954221L

    Serialized Fields

    items

    List<E> items



    Copyright © 2014–2017. All rights reserved.