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

com.github.binarywang.wxpay.bean.result.WxPayFacepayResult Maven / Gradle / Ivy

The newest version!
package com.github.binarywang.wxpay.bean.result;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.w3c.dom.Document;

/**
 * 
 * 提交书刷脸支付接口响应结果对象类
 * Created by Jmdhappy on 2019-09-05.
 * 
* * @author XxPay */ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @XStreamAlias("xml") public class WxPayFacepayResult extends BaseWxPayResult { private static final long serialVersionUID = -4116580976046716911L; /** *
   * 设备号.
   * device_info
   * 否
   * String(32)
   * 013467007045764
   * 调用接口提交的终端设备号
   * 
*/ @XStreamAlias("device_info") private String deviceInfo; /** *
   * 用户标识.
   * openid
   * 是
   * String(128)
   * Y
   * 用户在商户appid 下的唯一标识
   * 
**/ @XStreamAlias("openid") private String openid; /** *
   * 是否关注公众账号.
   * is_subscribe
   * 是
   * String(1)
   * Y
   * 用户是否关注公众账号,仅在公众账号类型支付有效,取值范围:Y或N;Y-关注;N-未关注
   * 
**/ @XStreamAlias("is_subscribe") private String isSubscribe; /** *
   * 用户子标识.
   * sub_openid
   * 否
   * String(128)
   * Y
   * 子商户appid下用户唯一标识,如需返回则请求时需要传sub_appid
   * 
**/ @XStreamAlias("sub_openid") private String subOpenid; /** *
   * 是否关注子公众账号.
   * sub_is_subscribe
   * 是
   * String(1)
   * Y
   * 用户是否关注子公众账号,仅在公众账号类型支付有效,取值范围:Y或N;Y-关注;N-未关注
   * 
**/ @XStreamAlias("sub_is_subscribe") private String subsSubscribe; /** *
   * 交易类型.
   * trade_type
   * 是
   * String(16)
   * FACEPAY
   * 支付类型为 FACEPAY(即刷脸支付)
   * 
**/ @XStreamAlias("trade_type") private String tradeType; /** *
   * 付款银行.
   * bank_type
   * 是
   * String(32)
   * CMC
   * 银行类型,采用字符串类型的银行标识,值列表详见银行类型
   * 
**/ @XStreamAlias("bank_type") private String bankType; /** *
   * 货币类型.
   * fee_type
   * 否
   * String(16)
   * CNY
   * 符合ISO 4217标准的三位字母代码,默认人民币:CNY,其他值列表详见货币类型
   * 
**/ @XStreamAlias("fee_type") private String feeType; /** *
   * 订单金额.
   * total_fee
   * 是
   * Int
   * 888
   * 订单总金额,单位为分,只能为整数,详见支付金额
   * 
**/ @XStreamAlias("total_fee") private Integer totalFee; /** *
   * 现金支付货币类型.
   * cash_fee_type
   * 否
   * String(16)
   * CNY
   * 符合ISO 4217标准的三位字母代码,默认人民币:CNY,其他值列表详见货币类型
   * 
**/ @XStreamAlias("cash_fee_type") private String cashFeeType; /** *
   * 现金支付金额.
   * cash_fee
   * 是
   * Int
   * 100
   * 订单现金支付金额,详见支付金额
   * 
**/ @XStreamAlias("cash_fee") private Integer cashFee; /** *
   * 微信支付订单号.
   * transaction_id
   * 是
   * String(32)
   * 1217752501201407033233368018
   * 微信支付订单号
   * 
**/ @XStreamAlias("transaction_id") private String transactionId; /** *
   * 商户订单号.
   * out_trade_no
   * 是
   * String(32)
   * 1217752501201407033233368018
   * 商户系统的订单号,与请求一致。
   * 
**/ @XStreamAlias("out_trade_no") private String outTradeNo; /** *
   * 商品详情.
   * detail
   * 否
   * String(8192)
   * 与提交数据一致
   * 实际提交的返回
   * 
**/ @XStreamAlias("detail") private String detail; /** *
   * 商家数据包.
   * attach
   * 否
   * String(128)
   * 123456
   * 商家数据包,原样返回
   * 
**/ @XStreamAlias("attach") private String attach; /** *
   * 营销详情.
   * promotion_detail
   * 否
   * String(6000)
   * 示例见下文
   * 新增返回,单品优惠功能字段,需要接入请见详细说明
   * 
**/ @XStreamAlias("promotion_detail") private String promotionDetail; /** *
   * 支付完成时间.
   * time_end
   * 是
   * String(14)
   * 20141030133525
   * 订单生成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。详见时间规则
   * 
**/ @XStreamAlias("time_end") private String timeEnd; /** * 从XML结构中加载额外的熟悉 * * @param d Document */ @Override protected void loadXml(Document d) { deviceInfo = readXmlString(d, "device_info"); openid = readXmlString(d, "openid"); isSubscribe = readXmlString(d, "is_subscribe"); subOpenid = readXmlString(d, "sub_openid"); subsSubscribe = readXmlString(d, "sub_is_subscribe"); tradeType = readXmlString(d, "trade_type"); bankType = readXmlString(d, "bank_type"); feeType = readXmlString(d, "fee_type"); totalFee = readXmlInteger(d, "total_fee"); cashFeeType = readXmlString(d, "cash_fee_type"); cashFee = readXmlInteger(d, "cash_fee"); transactionId = readXmlString(d, "transaction_id"); outTradeNo = readXmlString(d, "out_trade_no"); detail = readXmlString(d, "detail"); attach = readXmlString(d, "attach"); promotionDetail = readXmlString(d, "promotion_detail"); timeEnd = readXmlString(d, "time_end"); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy