序列化表格
-
程序包 com.abasecode.opencode.pay.entity
-
类 com.abasecode.opencode.pay.entity.BaseGoodDetail
class BaseGoodDetail extends Object implements Serializable- serialVersionUID:
- 1L
-
类 com.abasecode.opencode.pay.entity.BaseOrder
class BaseOrder extends Object implements Serializable- serialVersionUID:
- -1L
-
序列化字段
-
amount
@javax.validation.constraints.NotNull int amount
总价(分) -
details
List<BaseGoodDetail> details
商品详情,可空。支付宝或微信均适用 -
otherParams
String otherParams
微信,支付宝:公用回传参数,如果请求时传递了该参数,则返回给商户时会回传该参数。 支付宝只会在同步返回(包括跳转回商户网站)和异步通知时将该参数原样返回。 本参数必须进行UrlEncode之后才可以发送给支付宝。 微信只能传128个字节。 -
outTradeNo
@NotNull String outTradeNo
订单号,32位 -
subject
@NotNull String subject
商品标题 -
timeExpire
String timeExpire
交易结束时间。支付宝或微信均适用。 非必须 格式:yyyy-MM-dd HH:mm:ss 例如:2022-11-28 11:59:59 时区为东八区
-
-
类 com.abasecode.opencode.pay.entity.BaseOrderAlipay
class BaseOrderAlipay extends Object implements Serializable- serialVersionUID:
- 8579515877126502990L
-
序列化字段
-
authToken
String authToken
支付宝:针对用户授权接口,获取用户相关数据时,用于标识用户授权关系 非必须 -
businessParams
String businessParams
支付宝:商户传入业务信息,具体值要和支付宝约定,应用于安全,营销等参数直传场景,格式为json格式 非必须 -
extendParams
ExtendParams extendParams
业务扩展参数 非必须 -
quitUrl
String quitUrl
支付宝:用户付款中途退出返回商户网站的地址 非必须
-
-
类 com.abasecode.opencode.pay.entity.BaseOrderWechat
class BaseOrderWechat extends Object implements Serializable- serialVersionUID:
- -1986039082025305864L
-
类 com.abasecode.opencode.pay.entity.PayNotify
class PayNotify extends Object implements Serializable- serialVersionUID:
- 5851302634186636366L
-
序列化字段
-
appId
String appId
付款(支付宝,微信) 退单(支付宝)微信退款返回空,“” 应用id -
code
int code
成功0,失败-1 -
notifyTime
String notifyTime
付款(支付宝,微信) 退单(支付宝,微信) 付款通知时间、退单通知时间 支付宝的 notify_time 微信的 create_time -
outTradeNo
String outTradeNo
商户订单号 付款(支付宝,微信) 退单(支付宝,微信) 商户订单号 -
payChannel
PayChannel payChannel
通道 -
payTime
String payTime
付款(支付宝,微信) 退单(支付宝),退单时微信返回空。。 支付宝的 gmt_payment 微信的 success_time -
refundAmount
int refundAmount
付款默认为0 退单(支付宝=refund_fee,微信=refund) -
refundAmountMoney
String refundAmountMoney
付款(默认为0.00) 退单(支付宝=refund_fee,微信=refund) -
refundTime
String refundTime
退款时间 付款(空,空) 退单(支付宝=gmt_refund,微信=success_time) -
sellerId
String sellerId
商户号 付款(支付宝,微信) 退单(支付宝,微信) mchid(微信) seller_id(支付宝) -
status
String status
状态 付款(支付宝,微信) 退单(支付宝,微信) 支付宝的(trade_status) 微信的的(trade_state)和(refund_status) -
totalAmount
int totalAmount
付款(支付宝,微信) 退单(支付宝,微信) 支付宝的(totalAmount) 微信的(amount.total) -
totalAmountMoney
String totalAmountMoney
付款(支付宝,微信) 退单(支付宝,微信) 支付宝的totalAmount 微信的(amount.total) -
tradeNo
String tradeNo
支付通道订单号 付款(支付宝,微信) 退单(支付宝,微信) 渠道订单号 支付宝(trade_no) 微信(transaction_id) -
type
int type
1=付款,2=退款
-
-
类 com.abasecode.opencode.pay.entity.PayQueryResult
class PayQueryResult extends Object implements Serializable- serialVersionUID:
- 8533237444886761415L
-
序列化字段
-
alipayResult
com.alipay.api.response.AlipayTradeQueryResponse alipayResult
支付宝结果 -
outTradeNo
String outTradeNo
订单号 -
payAmount
int payAmount
客户付款金额(分) 总金额 - 付款金额 =其他优惠抵扣金额 -
payAmountMoney
String payAmountMoney
客户付款金额(小数格式) -
payChannel
PayChannel payChannel
通道 -
payStatus
PayStatus payStatus
订单状态 -
successTime
String successTime
付款时间 -
totalAmount
int totalAmount
总金额(分) -
totalAmountMoney
String totalAmountMoney
总金额(小数模式) -
tradeNo
String tradeNo
付款渠道订单号 -
wechatResult
PayQueryReturn wechatResult
微信结果
-
-
类 com.abasecode.opencode.pay.entity.PayRefundNotifyResult
class PayRefundNotifyResult extends Object implements Serializable- serialVersionUID:
- -4239484413142115675L
-
序列化字段
-
outRefundNo
String outRefundNo
商户退单号 -
outTradeNo
String outTradeNo
商户订单号 -
payChannel
PayChannel payChannel
通道 -
refundAmount
int refundAmount
退款金额(分) -
refundAmountMoney
String refundAmountMoney
退款金额(小数) -
totalAmount
int totalAmount
订单金额(分) -
totalAmountMoney
String totalAmountMoney
订单金额(小数)
-
-
类 com.abasecode.opencode.pay.entity.PayRefundResult
class PayRefundResult extends Object implements Serializable- serialVersionUID:
- -8370328458203385256L
-
序列化字段
-
outRefundNo
String outRefundNo
退款单号 对应支付宝的 out_request_no 对应微信的 out_refund_no -
outTradeNo
String outTradeNo
商户订单号 -
payChannel
PayChannel payChannel
通道 -
refundAmount
int refundAmount
退款总金额。 指该笔交易累计已经退款成功的金额。 -
refundAmountMoney
String refundAmountMoney
退款总金额。(小数格式) 指该笔交易累计已经退款成功的金额。 -
refundNo
String refundNo
渠道退单号(支付宝同tradeNo,微信为refund_id) -
refundResultAlipay
PayRefundResultAlipay refundResultAlipay
支付宝详情 -
refundResultWechat
PayRefundResultWechat refundResultWechat
微信详情 -
status
String status
退款状态。 微信枚举值: SUCCESS:退款成功 CLOSED:退款关闭 PROCESSING:退款处理中 ABNORMAL:退款异常 支付宝值: -
successTime
String successTime
退款时间 成功才有 格式如 2020-12-01 16:18:12 -
tradeNo
String tradeNo
渠道订单号(微信为transaction_id,支付宝为trade_no)
-
-
类 com.abasecode.opencode.pay.entity.PayRefundResultAlipay
class PayRefundResultAlipay extends Object implements Serializable- serialVersionUID:
- -2592163947404044717L
-
序列化字段
-
buyerLogonId
String buyerLogonId
用户的登录id -
buyerUserId
String buyerUserId
买家在支付宝的用户id -
fundChange
String fundChange
本次退款是否发生了资金变化 -
refundHybAmount
String refundHybAmount
本次请求退惠营宝金额(小数格式) -
sendBackFee
String sendBackFee
本次商户实际退回金额。 说明:如需获取该值,需在入参query_options中传入 refund_detail_item_list。 -
storeName
String storeName
交易在支付时候的门店名称
-
-
类 com.abasecode.opencode.pay.entity.PayRefundResultWechat
class PayRefundResultWechat extends Object implements Serializable- serialVersionUID:
- -157566418752030367L
-
序列化字段
-
amount
AmountRefundReturn amount
微信退款信息 -
fundsAccount
String fundsAccount
退款所使用资金对应的资金账户类型 枚举值: UNSETTLED : 未结算资金 AVAILABLE : 可用余额 UNAVAILABLE : 不可用余额 OPERATION : 运营户 BASIC : 基本账户(含可用余额和不可用余额) -
promotionDetail
List<WechatPromotion> promotionDetail
优惠退款信息 -
userReceivedAccount
String userReceivedAccount
取当前退款单的退款入账方,有以下几种情况: 1)退回银行卡:{银行名称}{卡类型}{卡尾号} 2)退回支付用户零钱:支付用户零钱 3)退还商户:商户基本账户商户结算银行账户 4)退回支付用户零钱通:支付用户零钱通
-
-
类 com.abasecode.opencode.pay.entity.PrepayResult
class PrepayResult extends Object implements Serializable- serialVersionUID:
- -7401634860330043604L
-
序列化字段
-
prePayResult
String prePayResult
预支付信息 支付宝和微信都是在客户端浏览器直接调用
-
-
-
程序包 com.abasecode.opencode.pay.form
-
类 com.abasecode.opencode.pay.form.PayCloseForm
class PayCloseForm extends Object implements Serializable- serialVersionUID:
- 8764108092461510085L
-
序列化字段
-
outTradeNo
@NotNull String outTradeNo
用户订单号 -
payChannel
@NotNull PayChannel payChannel
支付通道
-
-
类 com.abasecode.opencode.pay.form.PayQueryForm
class PayQueryForm extends Object implements Serializable- serialVersionUID:
- 5805699541271365409L
-
序列化字段
-
outTradeNo
@NotNull String outTradeNo
订单号 -
payChannel
@NotNull PayChannel payChannel
支付通道 -
queryOptions
List<String> queryOptions
仅支付宝可选 查询选项,商户传入该参数可定制本接口同步响应额外返回的信息字段,数组格式。支持枚举如下: trade_settle_info:返回的交易结算信息,包含分账、补差等信息; fund_bill_list:交易支付使用的资金渠道; voucher_detail_list:交易支付时使用的所有优惠券信息; discount_goods_detail:交易支付所使用的单品券优惠的商品优惠信息; mdiscount_amount:商家优惠金额;
-
-
类 com.abasecode.opencode.pay.form.PayRefundForm
class PayRefundForm extends Object implements Serializable- serialVersionUID:
- 510808670423160657L
-
序列化字段
-
orderAmount
@javax.validation.constraints.NotNull int orderAmount
订单总金额(分) -
outRefundNo
String outRefundNo
退款单号,不指定则系统生成 对应支付宝的 out_request_no 对应微信的 out_refund_no -
outTradeNo
@NotNull String outTradeNo
商户订单号 -
payChannel
@NotNull PayChannel payChannel
支付通道 -
refundAmount
@javax.validation.constraints.NotNull int refundAmount
退款金额(分) -
refundReason
String refundReason
退款原因
-
-
类 com.abasecode.opencode.pay.form.PayRefundQueryForm
class PayRefundQueryForm extends Object implements Serializable- serialVersionUID:
- 7527239355089100054L
-
序列化字段
-
outRefundNo
@NotNull String outRefundNo
商户退单号 -
outTradeNo
@NotNull String outTradeNo
商户单号 -
payChannel
@NotNull PayChannel payChannel
支付通道 -
payType
@NotNull PayType payType
支付类型
-
-
-
程序包 com.abasecode.opencode.pay.plugin.alipay.entity
-
类 com.abasecode.opencode.pay.plugin.alipay.entity.NotifyParam
class NotifyParam extends Object implements Serializable- serialVersionUID:
- 1L
-
序列化字段
-
appId
String appId
支付宝分配给开发者的应用 ID。 -
body
String body
订单的备注、描述、明细等。对应请求时的 body 参数,原样通知回来。 -
buyerId
String buyerId
买家支付宝账号对应的支付宝唯一用户号。以 2088 开头的纯 16 位数字。 -
buyerLogonId
String buyerLogonId
买家支付宝账号。 -
buyerPayAmount
String buyerPayAmount
用户在交易中支付的金额。 -
charset
String charset
编码格式,如 utf-8、gbk、gb2312 等。 -
fundBillList
String fundBillList
支付成功的各个渠道金额信息。详情可查看 资金明细信息说明。 -
gmtClose
String gmtClose
该笔交易结束时间。格式为 yyyy-MM-dd HH:mm:ss。 -
gmtCreate
String gmtCreate
该笔交易创建的时间。格式为 yyyy-MM-dd HH:mm:ss。 -
gmtPayment
String gmtPayment
该笔交易 的买家付款时间。格式为 yyyy-MM-dd HH:mm:ss。 -
gmtRefund
String gmtRefund
该笔交易的退款时间。格式 yyyy-MM-dd HH:mm:ss.S。 -
invoiceAmount
String invoiceAmount
用户在交易中支付的可开发票的金额。 -
notifyId
String notifyId
通知校验 ID。 -
notifyTime
String notifyTime
通知的发送时间。格式为 yyyy-MM-dd HH:mm:ss。 -
notifyType
String notifyType
通知的类型。 -
outBizNo
String outBizNo
商户业务 ID,主要是退款通知中返回退款申请的流水号。 -
outTradeNo
String outTradeNo
原支付请求的商户订单号。 -
passbackParams
String passbackParams
公共回传参数,如果请求时传递了该参数,则返回给商家时会在异步通知时将该参数原样返回。本参数必须进行 UrlEncode 之后才可以发送给支付宝。 -
pointAmount
String pointAmount
使用集分宝支付的金额。 -
receiptAmount
String receiptAmount
商家在收益中实际收到的款项,单位人民币(元)。 -
refundFee
String refundFee
退款通知中,返回总退款金额,单位为人民币(元),支持两位小数。 -
sellerEmail
String sellerEmail
卖家支付宝账号。 -
sellerId
String sellerId
卖家支付宝用户号。 -
sign
String sign
签名。详情可查看 异步返回结果的验签。 -
signType
String signType
商家生成签名字符串所使用的签名算法类型,目前支持 RSA2 和 RSA,推荐使用 RSA2。 -
subject
String subject
商品的标题/交易标题/订单标题/订单关键字等,是请求时对应的参数,原样通知回来。 -
totalAmount
String totalAmount
本次交易支付的订单金额,单位为人民币(元)。 -
tradeNo
String tradeNo
支付宝交易凭证号。 -
tradeStatus
String tradeStatus
交易目前所处的状态。详情可查看 交易状态说明。 -
version
String version
调用的接口版本,固定为:1.0。 -
voucherDetailList
String voucherDetailList
本交易支付时所有优惠券信息,详情可查看 优惠券信息说明。
-
-
类 com.abasecode.opencode.pay.plugin.alipay.entity.PayQueryParam
class PayQueryParam extends Object implements Serializable-
序列化字段
-
outTradeNo
String outTradeNo
商户订单号 -
queryOptions
String[] queryOptions
查询选项,商户传入该参数可定制本接口同步响应额外返回的信息字段,数组格式。支持枚举如下: trade_settle_info:返回的交易结算信息,包含分账、补差等信息; fund_bill_list:交易支付使用的资金渠道; voucher_detail_list:交易支付时使用的所有优惠券信息; discount_goods_detail:交易支付所使用的单品券优惠的商品优惠信息; mdiscount_amount:商家优惠金额; -
tradeNo
String tradeNo
支付宝交易号
-
-
-
类 com.abasecode.opencode.pay.plugin.alipay.entity.RefundChargeInfo
class RefundChargeInfo extends Object implements Serializable- serialVersionUID:
- -7839760887731476148L
-
序列化字段
-
chargeType
String chargeType
收单手续费trade,花呗分期手续hbfq,其他手续费charge -
refundChargeFee
String refundChargeFee
实退费用 -
refundSubFeeDetailList
List<RefundSubFee> refundSubFeeDetailList
组合支付退费明细 -
switchFeeRate
String switchFeeRate
签约费率
-
-
类 com.abasecode.opencode.pay.plugin.alipay.entity.RefundSubFee
class RefundSubFee extends Object implements Serializable- serialVersionUID:
- 4019628813337436556L
-
类 com.abasecode.opencode.pay.plugin.alipay.entity.TradeFundBill
class TradeFundBill extends Object implements Serializable- serialVersionUID:
- 628157169205539619L
-
-
程序包 com.abasecode.opencode.pay.plugin.alipay.form
-
类 com.abasecode.opencode.pay.plugin.alipay.form.AlipayCloseOrderForm
class AlipayCloseOrderForm extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.alipay.form.AlipayQueryForm
class AlipayQueryForm extends Object implements Serializable-
序列化字段
-
outTradeNo
String outTradeNo
订单号 -
queryOptions
List<String> queryOptions
查询选项,商户传入该参数可定制本接口同步响应额外返回的信息字段,数组格式。支持枚举如下: trade_settle_info:返回的交易结算信息,包含分账、补差等信息; fund_bill_list:交易支付使用的资金渠道; voucher_detail_list:交易支付时使用的所有优惠券信息; discount_goods_detail:交易支付所使用的单品券优惠的商品优惠信息; mdiscount_amount:商家优惠金额; -
tradeNo
String tradeNo
订单支付时传入的商户订单号,和支付宝交易号不能同时为空。 trade_no,out_trade_no如果同时存在优先取trade_no
-
-
-
类 com.abasecode.opencode.pay.plugin.alipay.form.AlipayRefundForm
class AlipayRefundForm extends Object implements Serializable-
序列化字段
-
outRequestNo
String outRequestNo
退款请求号。 标识一次退款请求,需要保证在交易号下唯一,如需部分退款,则此参数必传。 针对同一次退款请求,如果调用接口失败或异常了,重试时需要保证退款请求号不能变更,防止该笔交易重复退款。支付宝会保证同样的退款请求号多次请求只会退一次。 -
outTradeNo
String outTradeNo
商户订单号 -
queryOptions
List<String> queryOptions
查询选项。 商户通过上送该参数来定制同步需要额外返回的信息字段,数组格式。支持: refund_detail_item_list:退款使用的资金渠道; deposit_back_info:触发银行卡冲退信息通知 -
refundAmount
String refundAmount
退款金额。 需要退款的金额,该金额不能大于订单金额,单位为元,支持两位小数。 注:如果正向交易使用了营销,该退款金额包含营销金额,支付宝会按业务规则分配营销和买家自有资金分别退多少,默认优先退买家的自有资金。 如交易总金额100元,用户支付时使用了80元自有资金和20元无资金流的营销券,商家实际收款80元。 如果首次请求退款60元,则60元全部从商家收款资金扣除退回给用户自有资产; 如果再请求退款40元,则从商家收款资金扣除20元退回用户资产以及把20元的营销券退回给用户(券是否可再使用取决于券的规则配置)。 -
refundReason
String refundReason
退款原因说明。 商家自定义,将在会在商户和用户的pc退款账单详情中展示 -
tradeNo
String tradeNo
支付宝交易号
-
-
-
类 com.abasecode.opencode.pay.plugin.alipay.form.AlipayRefundQueryForm
class AlipayRefundQueryForm extends Object implements Serializable- serialVersionUID:
- -6663404660376537193L
-
序列化字段
-
outRequestNo
@NotEmpty String outRequestNo
退款请求号。 请求退款接口时,传入的退款请求号,如果在退款请求时未传入,则该值为创建交易时的商户订单号。 -
outTradeNo
String outTradeNo
商户订单号。 订单支付时传入的商户订单号,和支付宝交易号不能同时为空。 trade_no,out_trade_no如果同时存在优先取trade_no -
queryOptions
List<String> queryOptions
查询选项,商户通过上送该参数来定制同步需要额外返回的信息字段,数组格式。枚举支持: refund_detail_item_list:本次退款使用的资金渠道; gmt_refund_pay:退款执行成功的时间; deposit_back_info:银行卡冲退信息; -
tradeNo
String tradeNo
支付宝交易号。 和商户订单号不能同时为空
-
-
-
程序包 com.abasecode.opencode.pay.plugin.wechatpay.entity
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.AccessToken
class AccessToken extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.AmountOrder
class AmountOrder extends Object implements Serializable-
序列化字段
-
currency
String currency
CNY:人民币,境内商户号仅支持人民币。 string[1,16] 否 -
total
int total
订单总金额,单位为分。 int 必
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.AmountOrderNotice
class AmountOrderNotice extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.AmountQueryReturn
class AmountQueryReturn extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.AmountRefund
class AmountRefund extends Object implements Serializable-
序列化字段
-
currency
String currency
退款币种 string[1,16] 是:CNY -
refund
int refund
退款金额 int 必 -
total
int total
原订单金额 long 必
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.AmountRefundNotice
class AmountRefundNotice extends Object implements Serializable-
序列化字段
-
payerRefund
int payerRefund
用户退款金额 必 -
payerTotal
int payerTotal
用户支付金额 必 -
refund
int refund
退款金额 必 -
total
int total
订单金额 必
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.BaseReturn
class BaseReturn extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.NoticeAnswer
class NoticeAnswer extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.Pay4Jsapi
class Pay4Jsapi extends Object implements Serializable-
序列化字段
-
amount
AmountOrder amount
订单金额信息 是 -
appid
String appid
应用ID string[1,32] 必 -
attach
String attach
附加数据 string[1,128] 否 -
description
String description
商品描述 string[1,127] 必 -
goodsTag
String goodsTag
订单优惠标记 string[1,32] 否 -
invoice
Boolean invoice
电子发票入口开放标识 -
mchid
String mchid
直连商户号 string[1,32] 必 -
notifyUrl
String notifyUrl
通知地址 string[1,256] 必 -
outTradeNo
String outTradeNo
商户订单号 string[6,32] 必 -
payer
Payer payer
支付者信息 是 -
timeExpire
String timeExpire
交易结束时间 string[1,64] 否
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.Pay4JsapiReturn
class Pay4JsapiReturn extends BaseReturn implements Serializable-
序列化字段
-
prepayId
String prepayId
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.PayClose
class PayClose extends Object implements Serializable- serialVersionUID:
- 1L
-
序列化字段
-
mchid
String mchid
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.Payer
class Payer extends Object implements Serializable-
序列化字段
-
openid
String openid
用户在直连商户appid下的唯一标识。 下单前需获取到用户的Openid string[1,128]
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.PayNotice
class PayNotice extends Object implements Serializable-
序列化字段
-
createTime
String createTime
通知创建时间 string[1,32] 必 -
eventType
String eventType
通知类型 string[1,32] 必 -
id
String id
通知ID string[1,36] 必 -
origin
PayNoticeResourceOrigin origin
解密数据 -
resource
PayNoticeResource resource
通知数据类型 string[1,32] 必 -
resourceType
String resourceType
通知数据类型 string[1,32] 必 -
summary
String summary
回调摘要 string[1,64] 必
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.PayNoticeResource
class PayNoticeResource extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.PayNoticeResourceOrigin
class PayNoticeResourceOrigin extends Object implements Serializable-
序列化字段
-
amount
AmountOrderNotice amount
订单金额信息 -
appid
String appid
应用ID string[1,32] 必 -
attach
String attach
附加数据 string[1,128] 否 -
bankType
String bankType
付款银行 string[1,32] 必 -
mchid
String mchid
商户号 string[1,32] 必 -
outTradeNo
String outTradeNo
商户订单号 string[6,32] 必 -
payer
Payer payer
支付者信息 必 -
successTime
String successTime
支付完成时间 string[1,64] 必 -
tradeState
String tradeState
交易状态 string[1,32] 必 -
tradeStateDesc
String tradeStateDesc
交易状态描述 string[1,256] 必 -
tradeType
String tradeType
交易类型 string[1,16] 必 -
transactionId
String transactionId
微信支付订单号 string[1,32] 必
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.PayQueryReturn
class PayQueryReturn extends Object implements Serializable-
序列化字段
-
amount
AmountQueryReturn amount
订单金额信息,当支付成功时返回该字段。 否 -
appid
String appid
应用ID string[1,32] 必 -
attach
String attach
附加数据 string[1,128] 否 -
bankType
String bankType
付款银行 string[1,32] 否 -
code
int code
执行代码,0表示成功,非0失败 -
mchid
String mchid
直连商户号 string[1,32] 必 -
msg
String msg
执行的情况 -
outTradeNo
String outTradeNo
商户订单号 string[6,32] 必 -
payer
Payer payer
支付者信息 必 -
successTime
String successTime
支付完成时间 string[1,64] 否 -
tradeState
String tradeState
交易状态 string[1,32] 必 -
tradeStateDesc
String tradeStateDesc
交易状态描述 string[1,256] 必 -
tradeType
String tradeType
交易类型 string[1,16] 否 -
transactionId
String transactionId
微信支付订单号 string[1,32] 否
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.RefundCreate
class RefundCreate extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.RefundCreateReturn
class RefundCreateReturn extends BaseReturn implements Serializable-
序列化字段
-
amount
AmountRefundReturn amount
金额详细信息 必 -
channel
String channel
退款渠道 string[1, 16] 必 -
createTime
String createTime
退款创建时间 string[1, 64] 必 -
fundsAccount
String fundsAccount
资金账户 string[1, 32] 否 -
outRefundNo
String outRefundNo
商户退款单号 string[1, 64] 必 -
outTradeNo
String outTradeNo
商户订单号 string[1, 32] 必 -
promotionDetail
List<WechatPromotion> promotionDetail
优惠退款信息 -
refundId
String refundId
微信支付退款单号 string[1, 32] 必 -
status
String status
退款状态 string[1, 32] 必 -
successTime
String successTime
退款成功时间 string[1, 64] 否 -
transactionId
String transactionId
微信支付订单号 string[1, 32] 必 -
userReceivedAccount
String userReceivedAccount
退款入账账户 string[1, 64] 必
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.RefundNotice
class RefundNotice extends Object implements Serializable-
序列化字段
-
createTime
String createTime
通知创建时间 string[1,32] 必- -
eventType
String eventType
通知类型 string[1,32] 必- -
id
String id
通知ID string[1,36] 必 -
origin
RefundNoticeResourceOrigin origin
解密信息 -
resource
RefundNoticeResource resource
通知资源数据 必 -
resourceType
String resourceType
通知数据类型 string[1,32] 必 -
summary
String summary
通知简要说明 string[1,16] 必-
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.RefundNoticeResource
class RefundNoticeResource extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.RefundNoticeResourceOrigin
class RefundNoticeResourceOrigin extends Object implements Serializable-
序列化字段
-
amount
AmountRefundNotice amount
金额信息 必 -
mchid
String mchid
直连商户号 string[1,32] 必 -
outRefundNo
String outRefundNo
商户退款单号 string[1,64] 必 -
outTradeNo
String outTradeNo
商户订单号 string[1,32] 必 -
refundId
String refundId
微信支付退款单号 string[1,32] 必 -
refundStatus
String refundStatus
退款状态 string[1,16] 必 -
successTime
String successTime
退款成功时间 string[1,64] 否 -
transactionId
String transactionId
微信支付订单号 string[1,32] 必 -
userReceivedAccount
String userReceivedAccount
退款入账账户 string[1,64] 必
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.RefundQueryReturn
class RefundQueryReturn extends Object implements Serializable-
序列化字段
-
amount
AmountRefundReturn amount
金额详细信息 必 -
channel
String channel
退款渠道 string[1, 16] 必 -
createTime
String createTime
退款创建时间 string[1, 64] 必 -
fundsAccount
String fundsAccount
资金账户 string[1, 32] 否 -
outRefundNo
String outRefundNo
商户退款单号 string[1, 64] 必 -
outTradeNo
String outTradeNo
商户订单号 string[1, 32] 必 -
promotionDetail
List<WechatPromotion> promotionDetail
优惠退款信息 -
refundId
String refundId
微信支付退款单号 string[1, 32] 必 -
status
String status
退款状态 string[1, 32] 必 -
successTime
String successTime
退款成功时间 string[1, 64] 否 -
transactionId
String transactionId
微信支付订单号 string[1, 32] 必 -
userReceivedAccount
String userReceivedAccount
退款入账账户 string[1, 64]
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.WechatAccount
class WechatAccount extends Object implements Serializable- serialVersionUID:
- 1570869504383128647L
-
序列化字段
-
account
String account
出资账户类型 下面枚举值多选一。 枚举值: AVAILABLE : 可用余额 UNAVAILABLE : 不可用余额 -
amount
int amount
金额 对应账户出资金额
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.WechatCertificate
class WechatCertificate extends Object implements Serializable-
序列化字段
-
effectiveTime
String effectiveTime
平台证书有效时间 -
expireTime
String expireTime
平台证书过期时间 -
serialNo
String serialNo
平台证书序列号 -
wechatEncryptCertificate
WechatEncryptCertificate wechatEncryptCertificate
加密证书
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.WechatClientPayParam
class WechatClientPayParam extends Object implements Serializable-
序列化字段
-
appid
String appid
AppID string[1,32] 必 -
nonceStr
String nonceStr
随机字符串 string[1,32] 必 -
packages
String packages
订单详情扩展字符串 string[1,128] 必 示例值:prepay_id=wx201410272009395522657a690389285100 -
paySign
String paySign
签名 string[1,512] 必 签名,使用字段appId、timeStamp、nonceStr、package计算得出的签名值 -
signType
String signType
签名方式 string[1,32] 必 默认为RSA,仅支持RSA。 示例值:RSA -
timeStamp
String timeStamp
时间戳 10位数字 string[1,32] 必
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.WechatEncryptCertificate
class WechatEncryptCertificate extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.WechatGoods
class WechatGoods extends Object implements Serializable- serialVersionUID:
- 593978662333134485L
-
类 com.abasecode.opencode.pay.plugin.wechatpay.entity.WechatPromotion
class WechatPromotion extends Object implements Serializable- serialVersionUID:
- -2070743460104004038L
-
序列化字段
-
amount
int amount
优惠券面额 用户享受优惠的金额(优惠券面额=微信出资金额+商家出资金额+其他出资方金额 ),单位为分 -
goodsDetail
List<WechatGoods> goodsDetail
商品列表 优惠商品发生退款时返回商品信息 -
promotionId
String promotionId
券ID 券或者立减优惠id -
refundAmount
int refundAmount
优惠退款金额 优惠退款金额 小于等于 退款金额,退款金额-代金券或立减优惠退款金额为用户支付的现金,说明详见代金券或立减优惠,单位为分 -
scope
String scope
优惠范围 枚举值: GLOBAL:全场代金券 SINGLE:单品优惠 -
type
String type
优惠类型 枚举值: COUPON:代金券,需要走结算资金的充值型代金券 DISCOUNT:优惠券,不走结算资金的免充值型优惠券
-
-
-
程序包 com.abasecode.opencode.pay.plugin.wechatpay.form
-
类 com.abasecode.opencode.pay.plugin.wechatpay.form.FormCode
class FormCode extends Object implements Serializable-
序列化字段
-
code
String code
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.form.FormPayNotice
class FormPayNotice extends PayNotice implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.form.FormPreOrder
class FormPreOrder extends Object implements Serializable-
序列化字段
-
goodsId
int goodsId
-
num
int num
-
openid
String openid
-
-
-
类 com.abasecode.opencode.pay.plugin.wechatpay.form.FormRefund
class FormRefund extends Object implements Serializable -
类 com.abasecode.opencode.pay.plugin.wechatpay.form.FormRefundNotice
class FormRefundNotice extends RefundNotice implements Serializable
-