Skip to content

Commit c513033

Browse files
committed
fix from field type
1 parent 86f5cc6 commit c513033

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

wechat/v3/model_refund.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,16 @@ type RefundOrderResponse struct {
5858
}
5959

6060
type RefundOrderAmount struct {
61-
Total int `json:"total"` // 订单总金额,单位为分
62-
Refund int `json:"refund"` // 退款标价金额,单位为分,可以做部分退款
63-
From *From `json:"from"` // 退款出资的账户类型及金额信息
64-
PayerTotal int `json:"payer_total"` // 用户支付金额,单位为分
65-
PayerRefund int `json:"payer_refund"` // 用户退款金额,不包含所有优惠券金额
66-
SettlementRefund int `json:"settlement_refund"` // 去掉非充值代金券退款金额后的退款金额,单位为分,退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额
67-
SettlementTotal int `json:"settlement_total"` // 应结订单金额=订单金额-免充值代金券金额,应结订单金额<=订单金额,单位为分
68-
DiscountRefund int `json:"discount_refund"` // 优惠退款金额
69-
Currency string `json:"currency"` // CNY:人民币,境内商户号仅支持人民币
70-
RefundFee int `json:"refund_fee"` // 手续费退款金额,单位为分
61+
Total int `json:"total"` // 订单总金额,单位为分
62+
Refund int `json:"refund"` // 退款标价金额,单位为分,可以做部分退款
63+
From []*From `json:"from"` // 退款出资的账户类型及金额信息
64+
PayerTotal int `json:"payer_total"` // 用户支付金额,单位为分
65+
PayerRefund int `json:"payer_refund"` // 用户退款金额,不包含所有优惠券金额
66+
SettlementRefund int `json:"settlement_refund"` // 去掉非充值代金券退款金额后的退款金额,单位为分,退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额
67+
SettlementTotal int `json:"settlement_total"` // 应结订单金额=订单金额-免充值代金券金额,应结订单金额<=订单金额,单位为分
68+
DiscountRefund int `json:"discount_refund"` // 优惠退款金额
69+
Currency string `json:"currency"` // CNY:人民币,境内商户号仅支持人民币
70+
RefundFee int `json:"refund_fee"` // 手续费退款金额,单位为分
7171
}
7272

7373
type From struct {

0 commit comments

Comments
 (0)