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

com.github.binarywang.wxpay.bean.entpay.EntPayBankQueryResult Maven / Gradle / Ivy

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

import com.github.binarywang.wxpay.bean.result.BaseWxPayResult;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.w3c.dom.Document;

import java.io.Serializable;

/**
 * 
 * 企业付款到银行卡查询返回结果.
 * Created by Binary Wang on 2017/12/21.
 * 
* * @author Binary Wang */ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @XStreamAlias("xml") public class EntPayBankQueryResult extends BaseWxPayResult implements Serializable { private static final long serialVersionUID = -8336631015989500746L; /** * 商户企业付款单号 */ @XStreamAlias("partner_trade_no") private String partnerTradeNo; /** * 微信企业付款单号. * 即为微信内部业务单号 */ @XStreamAlias("payment_no") private String paymentNo; /** * 银行卡号. * 收款用户银行卡号(MD5加密) */ @XStreamAlias("bank_no_md5") private String bankNoMd5; /** * 用户真实姓名. * 收款人真实姓名(MD5加密) */ @XStreamAlias("true_name_md5") private String trueNameMd5; /** * 付款金额. */ @XStreamAlias("amount") private Integer amount; /** * 代付单状态. *
   * PROCESSING(处理中,如有明确失败,则返回额外失败原因;否则没有错误原因)
   * SUCCESS(付款成功)
   * FAILED(付款失败)
   * BANK_FAIL(银行退票,订单状态由付款成功流转至退票,退票时付款金额和手续费会自动退还)
   * 
*/ @XStreamAlias("status") private String status; /** * 手续费金额 */ @XStreamAlias("cmms_amt") private Integer cmmsAmount; /** * 商户下单时间. * 微信侧订单创建时间 */ @XStreamAlias("create_time") private String createTime; /** * 成功付款时间. * 微信侧付款成功时间(但无法保证银行不会退票) */ @XStreamAlias("pay_succ_time") private String paySuccessTime; /** * 失败原因. * 订单失败原因(如:余额不足) */ @XStreamAlias("reason") private String failReason; @Override protected void loadXml(Document d) { partnerTradeNo = readXmlString(d, "partner_trade_no"); paymentNo = readXmlString(d, "payment_no"); bankNoMd5 = readXmlString(d, "bank_no_md5"); trueNameMd5 = readXmlString(d, "true_name_md5"); amount = readXmlInteger(d, "amount"); status = readXmlString(d, "status"); cmmsAmount = readXmlInteger(d, "cmms_amt"); createTime = readXmlString(d, "create_time"); paySuccessTime = readXmlString(d, "pay_succ_time"); failReason = readXmlString(d, "reason"); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy