Fetch the repository succeeded.
package wechat
// 退款 Rsp
type RefundRsp struct {
Code int `json:"-"`
SignInfo *SignInfo `json:"-"`
Response *RefundOrderResponse `json:"response,omitempty"`
Error string `json:"-"`
}
// 退款查询 Rsp
type RefundQueryRsp struct {
Code int `json:"-"`
SignInfo *SignInfo `json:"-"`
Response *RefundQueryResponse `json:"response,omitempty"`
Error string `json:"-"`
}
// 申请退款 Rsp
type EcommerceRefundRsp struct {
Code int `json:"-"`
SignInfo *SignInfo `json:"-"`
Response *EcommerceRefund `json:"response,omitempty"`
Error string `json:"-"`
}
// 申请退款 Rsp
type EcommerceRefundQueryRsp struct {
Code int `json:"-"`
SignInfo *SignInfo `json:"-"`
Response *EcommerceRefundQuery `json:"response,omitempty"`
Error string `json:"-"`
}
// 垫付退款回补 Rsp
type EcommerceRefundAdvanceRsp struct {
Code int `json:"-"`
SignInfo *SignInfo `json:"-"`
Response *EcommerceRefundAdvance `json:"response,omitempty"`
Error string `json:"-"`
}
// =========================================================分割=========================================================
type RefundOrderResponse struct {
RefundId string `json:"refund_id"` // 微信支付退款号
OutRefundNo string `json:"out_refund_no"` // 商户退款单号
TransactionId string `json:"transaction_id"` // 微信支付系统生成的订单号
OutTradeNo string `json:"out_trade_no"` // 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一
Channel string `json:"channel"` // 退款渠道
UserReceivedAccount string `json:"user_received_account"` // 退款入账账户
SuccessTime string `json:"success_time"` // 退款成功时间
CreateTime string `json:"create_time"` // 退款创建时间
Status string `json:"status"` // 退款状态
FundsAccount string `json:"funds_account"` // 资金账户
Amount *RefundOrderAmount `json:"amount"` // 金额信息
PromotionDetail []*RefundPromotionDetail `json:"promotion_detail,omitempty"` // 优惠退款信息
}
type RefundOrderAmount struct {
Total int `json:"total"` // 订单总金额,单位为分
Refund int `json:"refund"` // 退款标价金额,单位为分,可以做部分退款
From []*From `json:"from"` // 退款出资的账户类型及金额信息
PayerTotal int `json:"payer_total"` // 用户支付金额,单位为分
PayerRefund int `json:"payer_refund"` // 用户退款金额,不包含所有优惠券金额
SettlementRefund int `json:"settlement_refund"` // 去掉非充值代金券退款金额后的退款金额,单位为分,退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额
SettlementTotal int `json:"settlement_total"` // 应结订单金额=订单金额-免充值代金券金额,应结订单金额<=订单金额,单位为分
DiscountRefund int `json:"discount_refund"` // 优惠退款金额
Currency string `json:"currency"` // CNY:人民币,境内商户号仅支持人民币
RefundFee int `json:"refund_fee"` // 手续费退款金额,单位为分
}
type From struct {
Account string `json:"account"` // 出资账户类型
Amount int `json:"amount"` // 对应账户出资金额,单位为分
}
type RefundQueryResponse struct {
RefundId string `json:"refund_id"` // 微信支付退款号
OutRefundNo string `json:"out_refund_no"` // 商户退款单号
TransactionId string `json:"transaction_id"` // 微信支付系统生成的订单号
OutTradeNo string `json:"out_trade_no"` // 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一
Channel string `json:"channel"` // 退款渠道
UserReceivedAccount string `json:"user_received_account"` // 退款入账账户
SuccessTime string `json:"success_time"` // 退款成功时间
CreateTime string `json:"create_time"` // 退款创建时间
Status string `json:"status"` // 退款状态
FundsAccount string `json:"funds_account"` // 资金账户
Amount *RefundOrderAmount `json:"amount"` // 金额信息
PromotionDetail []*RefundPromotionDetail `json:"promotion_detail,omitempty"` // 优惠退款信息
}
type RefundPromotionDetail struct {
PromotionId string `json:"promotion_id"` // 券Id,券或立减金额
Scope string `json:"scope"` // 优惠范围,GLOBAL:全场代金券,SINGLE:单品优惠
Type string `json:"type"` // 优惠类型,COUPON:代金券,DISCOUNT:优惠券
Amount int `json:"amount"` // 优惠券面额,用户享受优惠的金额(优惠券面额=微信出资金额+商家出资金额+其他出资方金额),单位为分
RefundAmount int `json:"refund_amount"` // 优惠退款金额,单位为分
GoodsDetail []*RefundGoodsDetail `json:"goods_detail,omitempty"` // 商品列表,优惠商品发送退款时返回商品信息
}
type RefundGoodsDetail struct {
MerchantGoodsId string `json:"merchant_goods_id"` // 商户侧商品编码
WechatpayGoodsId string `json:"wechatpay_goods_id,omitempty"` // 微信侧商品编码
GoodsName string `json:"goods_name,omitempty"` // 商品名称
UnitPrice int `json:"unit_price"` // 商品单价金额
RefundAmount int `json:"refund_amount"` // 商品退款金额
RefundQuantity int `json:"refund_quantity"` // 商品退货数量
}
type EcommerceRefund struct {
RefundId string `json:"refund_id"` // 微信支付退款号
OutRefundNo string `json:"out_refund_no"` // 商户退款单号
CreateTime string `json:"create_time"` // 退款创建时间
RefundAccount string `json:"refund_account"` // 退款资金来源
Amount *EcommerceRefundAmount `json:"amount"` // 金额信息
PromotionDetail []*PromotionDetailItem `json:"promotion_detail"` // 优惠退款信息
}
type EcommerceRefundAmount struct {
Refund int `json:"refund"` // 退款金额
PayerRefund int `json:"payer_refund"` // 用户退款金额
DiscountRefund int `json:"discount_refund"` // 优惠退款金额
Currency string `json:"currency"` // 退款币种
}
type PromotionDetailItem struct {
PromotionId string `json:"promotion_id"` // 券Id,券或立减金额
Scope string `json:"scope"` // 优惠范围,GLOBAL:全场代金券,SINGLE:单品优惠
Type string `json:"type"` // 优惠类型,COUPON:代金券,DISCOUNT:优惠券
Amount int `json:"amount"` // 优惠券面额,用户享受优惠的金额(优惠券面额=微信出资金额+商家出资金额+其他出资方金额),单位为分
RefundAmount int `json:"refund_amount"` // 优惠退款金额,单位为分
}
type EcommerceRefundQuery struct {
RefundId string `json:"refund_id"` // 微信支付退款号
OutRefundNo string `json:"out_refund_no"` // 商户退款单号
TransactionId string `json:"transaction_id"` // 微信支付系统生成的订单号
OutTradeNo string `json:"out_trade_no"` // 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一
Channel string `json:"channel"` // 退款渠道
UserReceivedAccount string `json:"user_received_account"` // 退款入账账户
SuccessTime string `json:"success_time"` // 退款成功时间
CreateTime string `json:"create_time"` // 退款创建时间
Status string `json:"status"` // 退款状态
RefundAccount string `json:"refund_account,omitempty"` // 退款出资商户
FundsAccount string `json:"funds_account"` // 资金账户
Amount *EcommerceRefundAmount `json:"amount"` // 金额信息
PromotionDetail []*PromotionDetailItem `json:"promotion_detail"` // 优惠退款信息
}
type EcommerceRefundAdvance struct {
RefundId string `json:"refund_id"` // 微信支付退款号
AdvanceReturnId string `json:"advance_return_id"` // 微信回补单号
ReturnAmount int `json:"return_amount"` // 垫付回补金额
PayerMchid string `json:"payer_mchid"` // 出款方商户号
PayerAccount string `json:"payer_account"` // 出款方账户
PayeeMchid string `json:"payee_mchid"` // 入账方商户号
PayeeAccount string `json:"payee_account"` // 入账方账户
Result string `json:"result"` // 垫付回补结果
SuccessTime string `json:"success_time"` // 垫付回补完成时间
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。