|
@@ -5,7 +5,7 @@
|
|
|
//==================================
|
|
//==================================
|
|
|
package gopay
|
|
package gopay
|
|
|
|
|
|
|
|
-type weChatUnifiedOrderResponse struct {
|
|
|
|
|
|
|
+type WeChatUnifiedOrderResponse struct {
|
|
|
ReturnCode string `xml:"return_code"`
|
|
ReturnCode string `xml:"return_code"`
|
|
|
ReturnMsg string `xml:"return_msg"`
|
|
ReturnMsg string `xml:"return_msg"`
|
|
|
Appid string `xml:"appid"`
|
|
Appid string `xml:"appid"`
|
|
@@ -22,7 +22,7 @@ type weChatUnifiedOrderResponse struct {
|
|
|
MwebUrl string `xml:"mweb_url"`
|
|
MwebUrl string `xml:"mweb_url"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type weChatQueryOrderResponse struct {
|
|
|
|
|
|
|
+type WeChatQueryOrderResponse struct {
|
|
|
ReturnCode string `xml:"return_code"`
|
|
ReturnCode string `xml:"return_code"`
|
|
|
ReturnMsg string `xml:"return_msg"`
|
|
ReturnMsg string `xml:"return_msg"`
|
|
|
Appid string `xml:"appid"`
|
|
Appid string `xml:"appid"`
|
|
@@ -45,9 +45,9 @@ type weChatQueryOrderResponse struct {
|
|
|
CashFeeType string `xml:"cash_fee_type"`
|
|
CashFeeType string `xml:"cash_fee_type"`
|
|
|
CouponFee int `xml:"coupon_fee"`
|
|
CouponFee int `xml:"coupon_fee"`
|
|
|
CouponCount int `xml:"coupon_count"`
|
|
CouponCount int `xml:"coupon_count"`
|
|
|
- CouponType0 string `xml:"coupon_type_$0"`
|
|
|
|
|
- CouponId0 string `xml:"coupon_id_$0"`
|
|
|
|
|
- CouponFee0 int `xml:"coupon_fee_$0"`
|
|
|
|
|
|
|
+ CouponType0 string `xml:"coupon_type_0"`
|
|
|
|
|
+ CouponId0 string `xml:"coupon_id_0"`
|
|
|
|
|
+ CouponFee0 int `xml:"coupon_fee_0"`
|
|
|
TransactionId string `xml:"transaction_id"`
|
|
TransactionId string `xml:"transaction_id"`
|
|
|
OutTradeNo string `xml:"out_trade_no"`
|
|
OutTradeNo string `xml:"out_trade_no"`
|
|
|
Attach string `xml:"attach"`
|
|
Attach string `xml:"attach"`
|
|
@@ -55,7 +55,7 @@ type weChatQueryOrderResponse struct {
|
|
|
TradeStateDesc string `xml:"trade_state_desc"`
|
|
TradeStateDesc string `xml:"trade_state_desc"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type weChatCloseOrderResponse struct {
|
|
|
|
|
|
|
+type WeChatCloseOrderResponse struct {
|
|
|
ReturnCode string `xml:"return_code"`
|
|
ReturnCode string `xml:"return_code"`
|
|
|
ReturnMsg string `xml:"return_msg"`
|
|
ReturnMsg string `xml:"return_msg"`
|
|
|
Appid string `xml:"appid"`
|
|
Appid string `xml:"appid"`
|
|
@@ -68,7 +68,7 @@ type weChatCloseOrderResponse struct {
|
|
|
ErrCodeDes string `xml:"err_code_des"`
|
|
ErrCodeDes string `xml:"err_code_des"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type weChatRefundResponse struct {
|
|
|
|
|
|
|
+type WeChatRefundResponse struct {
|
|
|
ReturnCode string `xml:"return_code"`
|
|
ReturnCode string `xml:"return_code"`
|
|
|
ReturnMsg string `xml:"return_msg"`
|
|
ReturnMsg string `xml:"return_msg"`
|
|
|
ResultCode string `xml:"result_code"`
|
|
ResultCode string `xml:"result_code"`
|
|
@@ -90,14 +90,14 @@ type weChatRefundResponse struct {
|
|
|
CashFee int `xml:"cash_fee"`
|
|
CashFee int `xml:"cash_fee"`
|
|
|
CashFeeType string `xml:"cash_fee_type"`
|
|
CashFeeType string `xml:"cash_fee_type"`
|
|
|
CashRefundFee int `xml:"cash_refund_fee"`
|
|
CashRefundFee int `xml:"cash_refund_fee"`
|
|
|
- CouponType0 string `xml:"coupon_type_$0"`
|
|
|
|
|
|
|
+ CouponType0 string `xml:"coupon_type_0"`
|
|
|
CouponRefundFee int `xml:"coupon_refund_fee"`
|
|
CouponRefundFee int `xml:"coupon_refund_fee"`
|
|
|
- CouponRefundFee0 int `xml:"coupon_refund_fee_$0"`
|
|
|
|
|
|
|
+ CouponRefundFee0 int `xml:"coupon_refund_fee_0"`
|
|
|
CouponRefundCount int `xml:"coupon_refund_count"`
|
|
CouponRefundCount int `xml:"coupon_refund_count"`
|
|
|
- CouponRefundId0 string `xml:"coupon_refund_id_$0"`
|
|
|
|
|
|
|
+ CouponRefundId0 string `xml:"coupon_refund_id_0"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-type weChatQueryRefundResponse struct {
|
|
|
|
|
|
|
+type WeChatQueryRefundResponse struct {
|
|
|
ReturnCode string `xml:"return_code"`
|
|
ReturnCode string `xml:"return_code"`
|
|
|
ReturnMsg string `xml:"return_msg"`
|
|
ReturnMsg string `xml:"return_msg"`
|
|
|
ResultCode string `xml:"result_code"`
|
|
ResultCode string `xml:"result_code"`
|
|
@@ -115,20 +115,20 @@ type weChatQueryRefundResponse struct {
|
|
|
FeeType string `xml:"fee_type"`
|
|
FeeType string `xml:"fee_type"`
|
|
|
CashFee int `xml:"cash_fee"`
|
|
CashFee int `xml:"cash_fee"`
|
|
|
RefundCount int `xml:"refund_count"`
|
|
RefundCount int `xml:"refund_count"`
|
|
|
- OutRefundNo0 string `xml:"out_refund_no_$0"`
|
|
|
|
|
- RefundId0 string `xml:"refund_id_$0"`
|
|
|
|
|
- RefundChannel0 string `xml:"refund_channel_$0"`
|
|
|
|
|
- RefundFee0 int `xml:"refund_fee_$0"`
|
|
|
|
|
- SettlementRefundFee0 int `xml:"settlement_refund_fee_$0"`
|
|
|
|
|
- CouponType00 string `xml:"coupon_type_$0_$0"`
|
|
|
|
|
- CouponRefundFee0 int `xml:"coupon_refund_fee_$0"`
|
|
|
|
|
- CouponRefundCount0 int `xml:"coupon_refund_count_$0"`
|
|
|
|
|
- CouponRefundId00 string `xml:"coupon_refund_id_$0_$0"`
|
|
|
|
|
- CouponRefundFee00 int `xml:"coupon_refund_fee_$0_$0"`
|
|
|
|
|
- RefundStatus0 string `xml:"refund_status_$0"`
|
|
|
|
|
- RefundAccount0 string `xml:"refund_account_$0"`
|
|
|
|
|
- RefundRecvAccout0 string `xml:"refund_recv_accout_$0"`
|
|
|
|
|
- RefundSuccessTime0 string `xml:"refund_success_time_$0"`
|
|
|
|
|
|
|
+ OutRefundNo0 string `xml:"out_refund_no_0"`
|
|
|
|
|
+ RefundId0 string `xml:"refund_id_0"`
|
|
|
|
|
+ RefundChannel0 string `xml:"refund_channel_0"`
|
|
|
|
|
+ RefundFee0 int `xml:"refund_fee_0"`
|
|
|
|
|
+ SettlementRefundFee0 int `xml:"settlement_refund_fee_0"`
|
|
|
|
|
+ CouponType00 string `xml:"coupon_type_0_0"`
|
|
|
|
|
+ CouponRefundFee0 int `xml:"coupon_refund_fee_0"`
|
|
|
|
|
+ CouponRefundCount0 int `xml:"coupon_refund_count_0"`
|
|
|
|
|
+ CouponRefundId00 string `xml:"coupon_refund_id_0_0"`
|
|
|
|
|
+ CouponRefundFee00 int `xml:"coupon_refund_fee_0_0"`
|
|
|
|
|
+ RefundStatus0 string `xml:"refund_status_0"`
|
|
|
|
|
+ RefundAccount0 string `xml:"refund_account_0"`
|
|
|
|
|
+ RefundRecvAccout0 string `xml:"refund_recv_accout_0"`
|
|
|
|
|
+ RefundSuccessTime0 string `xml:"refund_success_time_0"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
type getSignKeyResponse struct {
|
|
type getSignKeyResponse struct {
|
|
@@ -139,3 +139,36 @@ type getSignKeyResponse struct {
|
|
|
MchId string `xml:"mch_id"`
|
|
MchId string `xml:"mch_id"`
|
|
|
SandboxSignkey string `xml:"sandbox_signkey"`
|
|
SandboxSignkey string `xml:"sandbox_signkey"`
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+type WeChatNotifyResponse struct {
|
|
|
|
|
+ ReturnCode string `xml:"return_code"`
|
|
|
|
|
+ ReturnMsg string `xml:"return_msg"`
|
|
|
|
|
+ ResultCode string `xml:"result_code"`
|
|
|
|
|
+ ErrCode string `xml:"err_code"`
|
|
|
|
|
+ ErrCodeDes string `xml:"err_code_des"`
|
|
|
|
|
+ Appid string `xml:"appid"`
|
|
|
|
|
+ MchId string `xml:"mch_id"`
|
|
|
|
|
+ DeviceInfo string `xml:"device_info"`
|
|
|
|
|
+ NonceStr string `xml:"nonce_str"`
|
|
|
|
|
+ Sign string `xml:"sign"`
|
|
|
|
|
+ SignType string `xml:"sign_type"`
|
|
|
|
|
+ Openid string `xml:"openid"`
|
|
|
|
|
+ IsSubscribe string `xml:"is_subscribe"`
|
|
|
|
|
+ TradeType string `xml:"trade_type"`
|
|
|
|
|
+ TradeState string `xml:"trade_state"`
|
|
|
|
|
+ BankType string `xml:"bank_type"`
|
|
|
|
|
+ TotalFee int `xml:"total_fee"`
|
|
|
|
|
+ SettlementTotalFee int `xml:"settlement_total_fee"`
|
|
|
|
|
+ FeeType string `xml:"fee_type"`
|
|
|
|
|
+ CashFee int `xml:"cash_fee"`
|
|
|
|
|
+ CashFeeType string `xml:"cash_fee_type"`
|
|
|
|
|
+ CouponFee int `xml:"coupon_fee"`
|
|
|
|
|
+ CouponCount int `xml:"coupon_count"`
|
|
|
|
|
+ CouponType0 string `xml:"coupon_type_0"`
|
|
|
|
|
+ CouponId0 string `xml:"coupon_id_0"`
|
|
|
|
|
+ CouponFee0 int `xml:"coupon_fee_0"`
|
|
|
|
|
+ TransactionId string `xml:"transaction_id"`
|
|
|
|
|
+ OutTradeNo string `xml:"out_trade_no"`
|
|
|
|
|
+ Attach string `xml:"attach"`
|
|
|
|
|
+ TimeEnd string `xml:"time_end"`
|
|
|
|
|
+}
|