feat: add refund statuses
This commit is contained in:
@@ -40,45 +40,19 @@ type PayNotify struct {
|
||||
} `json:"amount"`
|
||||
}
|
||||
|
||||
type RefundResponse struct {
|
||||
RefundID string `json:"refund_id"`
|
||||
OutRefundNo string `json:"out_refund_no"`
|
||||
type RefundNotify struct {
|
||||
Mchid string `json:"mchid"`
|
||||
TransactionID string `json:"transaction_id"`
|
||||
OutTradeNo string `json:"out_trade_no"`
|
||||
Channel string `json:"channel"`
|
||||
UserReceivedAccount string `json:"user_received_account"`
|
||||
RefundID string `json:"refund_id"`
|
||||
OutRefundNo string `json:"out_refund_no"`
|
||||
RefundStatus string `json:"refund_status"`
|
||||
SuccessTime time.Time `json:"success_time"`
|
||||
CreateTime time.Time `json:"create_time"`
|
||||
Status string `json:"status"`
|
||||
FundsAccount string `json:"funds_account"`
|
||||
UserReceivedAccount string `json:"user_received_account"`
|
||||
Amount struct {
|
||||
Total int `json:"total"`
|
||||
Refund int `json:"refund"`
|
||||
From []struct {
|
||||
Account string `json:"account"`
|
||||
Amount int `json:"amount"`
|
||||
} `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"`
|
||||
RefundFee int `json:"refund_fee"`
|
||||
Total int `json:"total"`
|
||||
Refund int `json:"refund"`
|
||||
PayerTotal int `json:"payer_total"`
|
||||
PayerRefund int `json:"payer_refund"`
|
||||
} `json:"amount"`
|
||||
PromotionDetail []struct {
|
||||
PromotionID string `json:"promotion_id"`
|
||||
Scope string `json:"scope"`
|
||||
Type string `json:"type"`
|
||||
Amount int `json:"amount"`
|
||||
RefundAmount int `json:"refund_amount"`
|
||||
GoodsDetail []struct {
|
||||
MerchantGoodsID string `json:"merchant_goods_id"`
|
||||
WechatpayGoodsID string `json:"wechatpay_goods_id"`
|
||||
GoodsName string `json:"goods_name"`
|
||||
UnitPrice int `json:"unit_price"`
|
||||
RefundAmount int `json:"refund_amount"`
|
||||
RefundQuantity int `json:"refund_quantity"`
|
||||
} `json:"goods_detail"`
|
||||
} `json:"promotion_detail"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user