|
|
@@ -56,108 +56,204 @@ type voucherDetailListInfo struct {
|
|
|
PurchaseAntContribute string `json:"purchase_ant_contribute,omitempty"`
|
|
|
}
|
|
|
|
|
|
-type AliPayTradePayResponse struct {
|
|
|
- AliPayTradePayResponse alipayTradeResponseInfo `json:"alipay_trade_pay_response"`
|
|
|
- SignData string `json:"-"`
|
|
|
- Sign string `json:"sign"`
|
|
|
+type AliPayUserPhone struct {
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"subCode,omitempty"`
|
|
|
+ SubMsg string `json:"subMsg,omitempty"`
|
|
|
+ Mobile string `json:"mobile,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
+type AliPayTradePayResponse struct {
|
|
|
+ AliPayTradePayResponse payResponse `json:"alipay_trade_pay_response,omitempty"`
|
|
|
+ SignData string `json:"-"`
|
|
|
+ Sign string `json:"sign"`
|
|
|
+}
|
|
|
+
|
|
|
+type payResponse struct {
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ TradeNo string `json:"trade_no,omitempty"`
|
|
|
+ OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
+ BuyerLogonId string `json:"buyer_logon_id,omitempty"`
|
|
|
+ SettleAmount string `json:"settle_amount,omitempty"`
|
|
|
+ PayCurrency string `json:"pay_currency,omitempty"`
|
|
|
+ PayAmount string `json:"pay_amount,omitempty"`
|
|
|
+ SettleTransRate string `json:"settle_trans_rate,omitempty"`
|
|
|
+ TransPayRate string `json:"trans_pay_rate,omitempty"`
|
|
|
+ TotalAmount string `json:"total_amount,omitempty"`
|
|
|
+ TransCurrency string `json:"trans_currency,omitempty"`
|
|
|
+ SettleCurrency string `json:"settle_currency,omitempty"`
|
|
|
+ ReceiptAmount string `json:"receipt_amount,omitempty"`
|
|
|
+ BuyerPayAmount string `json:"buyer_pay_amount,omitempty"`
|
|
|
+ PointAmount string `json:"point_amount,omitempty"`
|
|
|
+ InvoiceAmount string `json:"invoice_amount,omitempty"`
|
|
|
+ GmtPayment string `json:"gmt_payment,omitempty"`
|
|
|
+ FundBillList []struct {
|
|
|
+ FundChannel string `json:"fund_channel,omitempty"`
|
|
|
+ BankCode string `json:"bank_code,omitempty"`
|
|
|
+ Amount string `json:"amount,omitempty"`
|
|
|
+ RealAmount string `json:"real_amount,omitempty"`
|
|
|
+ } `json:"fund_bill_list"`
|
|
|
+ CardBalance string `json:"card_balance,omitempty"`
|
|
|
+ StoreName string `json:"store_name,omitempty"`
|
|
|
+ BuyerUserId string `json:"buyer_user_id,omitempty"`
|
|
|
+ DiscountGoodsDetail string `json:"discount_goods_detail,omitempty"`
|
|
|
+ VoucherDetailList []struct {
|
|
|
+ Id string `json:"id,omitempty"`
|
|
|
+ Name string `json:"name,omitempty"`
|
|
|
+ Type string `json:"type,omitempty"`
|
|
|
+ Amount string `json:"amount,omitempty"`
|
|
|
+ MerchantContribute string `json:"merchant_contribute,omitempty"`
|
|
|
+ OtherContribute string `json:"other_contribute,omitempty"`
|
|
|
+ Memo string `json:"memo,omitempty"`
|
|
|
+ TemplateId string `json:"template_id,omitempty"`
|
|
|
+ PurchaseBuyerContribute string `json:"purchase_buyer_contribute,omitempty"`
|
|
|
+ PurchaseMerchantContribute string `json:"purchase_merchant_contribute,omitempty"`
|
|
|
+ PurchaseAntContribute string `json:"purchase_ant_contribute,omitempty"`
|
|
|
+ } `json:"voucher_detail_list"`
|
|
|
+ AdvanceAmount string `json:"advance_amount,omitempty"`
|
|
|
+ AuthTradePayMode string `json:"auth_trade_pay_mode,omitempty"`
|
|
|
+ ChargeAmount string `json:"charge_amount,omitempty"`
|
|
|
+ ChargeFlags string `json:"charge_flags,omitempty"`
|
|
|
+ SettlementId string `json:"settlement_id,omitempty"`
|
|
|
+ BusinessParams string `json:"business_params,omitempty"`
|
|
|
+ BuyerUserType string `json:"buyer_user_type,omitempty"`
|
|
|
+ MdiscountAmount string `json:"mdiscount_amount,omitempty"`
|
|
|
+ DiscountAmount string `json:"discount_amount,omitempty"`
|
|
|
+ BuyerUserName string `json:"buyer_user_name,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+//===================================================
|
|
|
type AliPayTradeQueryResponse struct {
|
|
|
- AliPayTradeQueryResponse alipayTradeResponseInfo `json:"alipay_trade_query_response"`
|
|
|
- SignData string `json:"-"`
|
|
|
- Sign string `json:"sign"`
|
|
|
+ AliPayTradeQueryResponse queryResponse `json:"alipay_trade_query_response,omitempty"`
|
|
|
+ SignData string `json:"-"`
|
|
|
+ Sign string `json:"sign"`
|
|
|
+}
|
|
|
+
|
|
|
+type queryResponse struct {
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ TradeNo string `json:"trade_no,omitempty"`
|
|
|
+ OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
+ BuyerLogonId string `json:"buyer_logon_id,omitempty"`
|
|
|
+ TradeStatus string `json:"trade_status,omitempty"`
|
|
|
+ TotalAmount string `json:"total_amount,omitempty"`
|
|
|
+ TransCurrency string `json:"trans_currency,omitempty"`
|
|
|
+ SettleCurrency string `json:"settle_currency,omitempty"`
|
|
|
+ SettleAmount string `json:"settle_amount,omitempty"`
|
|
|
+ PayCurrency string `json:"pay_currency,omitempty"`
|
|
|
+ PayAmount string `json:"pay_amount,omitempty"`
|
|
|
+ SettleTransRate string `json:"settle_trans_rate,omitempty"`
|
|
|
+ TransPayRate string `json:"trans_pay_rate,omitempty"`
|
|
|
+ BuyerPayAmount string `json:"buyer_pay_amount,omitempty"`
|
|
|
+ PointAmount string `json:"point_amount,omitempty"`
|
|
|
+ InvoiceAmount string `json:"invoice_amount,omitempty"`
|
|
|
+ SendPayDate string `json:"send_pay_date,omitempty"`
|
|
|
+ ReceiptAmount string `json:"receipt_amount,omitempty"`
|
|
|
+ StoreId string `json:"store_id,omitempty"`
|
|
|
+ TerminalId string `json:"terminal_id,omitempty"`
|
|
|
+ FundBillList []struct {
|
|
|
+ FundChannel string `json:"fund_channel,omitempty"`
|
|
|
+ BankCode string `json:"bank_code,omitempty"`
|
|
|
+ Amount string `json:"amount,omitempty"`
|
|
|
+ RealAmount string `json:"real_amount,omitempty"`
|
|
|
+ } `json:"fund_bill_list"`
|
|
|
+ StoreName string `json:"store_name,omitempty"`
|
|
|
+ BuyerUserId string `json:"buyer_user_id,omitempty"`
|
|
|
+ ChargeAmount string `json:"charge_amount,omitempty"`
|
|
|
+ ChargeFlags string `json:"charge_flags,omitempty"`
|
|
|
+ SettlementId string `json:"settlement_id,omitempty"`
|
|
|
+ TradeSettleInfo struct {
|
|
|
+ TradeSettleDetailList []struct {
|
|
|
+ OperationType string `json:"operation_type,omitempty"`
|
|
|
+ OperationSerialNo string `json:"operation_serial_no,omitempty"`
|
|
|
+ OperationDt string `json:"operation_dt,omitempty"`
|
|
|
+ TransOut string `json:"trans_out,omitempty"`
|
|
|
+ TransIn string `json:"trans_in,omitempty"`
|
|
|
+ Amount string `json:"amount,omitempty"`
|
|
|
+ } `json:"trade_settle_detail_list,omitempty"`
|
|
|
+ } `json:"trade_settle_info,omitempty"`
|
|
|
+ AuthTradePayMode string `json:"auth_trade_pay_mode,omitempty"`
|
|
|
+ BuyerUserType string `json:"buyer_user_type,omitempty"`
|
|
|
+ MdiscountAmount string `json:"mdiscount_amount,omitempty"`
|
|
|
+ DiscountAmount string `json:"discount_amount,omitempty"`
|
|
|
+ BuyerUserName string `json:"buyer_user_name,omitempty"`
|
|
|
+ Subject string `json:"subject,omitempty"`
|
|
|
+ Body string `json:"body,omitempty"`
|
|
|
+ AlipaySubMerchantId string `json:"alipay_sub_merchant_id,omitempty"`
|
|
|
+ ExtInfos string `json:"ext_infos,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+//===================================================
|
|
|
+type AliPayTradeCreateResponse struct {
|
|
|
+ AliPayTradeCreateResponse createResponse `json:"alipay_trade_create_response,omitempty"`
|
|
|
+ SignData string `json:"-"`
|
|
|
+ Sign string `json:"sign"`
|
|
|
}
|
|
|
|
|
|
-type AliPayTradeCreateResponse struct {
|
|
|
- AliPayTradeCreateResponse alipayTradeResponseInfo `json:"alipay_trade_create_response"`
|
|
|
- SignData string `json:"-"`
|
|
|
- Sign string `json:"sign"`
|
|
|
+type createResponse struct {
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ TradeNo string `json:"trade_no,omitempty"`
|
|
|
+ OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
type AliPayTradeCloseResponse struct {
|
|
|
- AliPayTradeCloseResponse alipayTradeResponseInfo `json:"alipay_trade_close_response"`
|
|
|
- SignData string `json:"-"`
|
|
|
- Sign string `json:"sign"`
|
|
|
+ AliPayTradeCloseResponse closeResponse `json:"alipay_trade_close_response,omitempty"`
|
|
|
+ SignData string `json:"-"`
|
|
|
+ Sign string `json:"sign"`
|
|
|
+}
|
|
|
+
|
|
|
+type closeResponse struct {
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ TradeNo string `json:"trade_no,omitempty"`
|
|
|
+ OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
type AliPayTradeCancelResponse struct {
|
|
|
- AliPayTradeCancelResponse alipayTradeResponseInfo `json:"alipay_trade_cancel_response"`
|
|
|
- SignData string `json:"-"`
|
|
|
- Sign string `json:"sign"`
|
|
|
-}
|
|
|
-
|
|
|
-type alipayTradeResponseInfo struct {
|
|
|
- Code string `json:"code,omitempty"`
|
|
|
- Msg string `json:"msg,omitempty"`
|
|
|
- SubCode string `json:"sub_code,omitempty"`
|
|
|
- SubMsg string `json:"sub_msg,omitempty"`
|
|
|
- TradeNo string `json:"trade_no,omitempty"`
|
|
|
- OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
- BuyerLogonId string `json:"buyer_logon_id,omitempty"`
|
|
|
- TradeStatus string `json:"trade_status,omitempty"`
|
|
|
- SettleAmount string `json:"settle_amount,omitempty"`
|
|
|
- PayCurrency string `json:"pay_currency,omitempty"`
|
|
|
- PayAmount string `json:"pay_amount,omitempty"`
|
|
|
- SettleTransRate string `json:"settle_trans_rate,omitempty"`
|
|
|
- TransPayRate string `json:"trans_pay_rate,omitempty"`
|
|
|
- TotalAmount string `json:"total_amount,omitempty"`
|
|
|
- TransCurrency string `json:"trans_currency,omitempty"`
|
|
|
- SettleCurrency string `json:"settle_currency,omitempty"`
|
|
|
- ReceiptAmount string `json:"receipt_amount,omitempty"`
|
|
|
- BuyerPayAmount string `json:"buyer_pay_amount,omitempty"`
|
|
|
- PointAmount string `json:"point_amount,omitempty"`
|
|
|
- InvoiceAmount string `json:"invoice_amount,omitempty"`
|
|
|
- SendPayDate string `json:"send_pay_date,omitempty"`
|
|
|
- GmtPayment string `json:"gmt_payment,omitempty"`
|
|
|
- FundBillList []fundBillListInfo `json:"fund_bill_list,omitempty"`
|
|
|
- CardBalance string `json:"card_balance,omitempty"`
|
|
|
- TerminalId string `json:"terminal_id,omitempty"`
|
|
|
- StoreId string `json:"store_id,omitempty"`
|
|
|
- StoreName string `json:"store_name,omitempty"`
|
|
|
- BuyerUserId string `json:"buyer_user_id,omitempty"`
|
|
|
- DiscountGoodsDetail string `json:"discount_goods_detail,omitempty"`
|
|
|
- VoucherDetailList []voucherDetailListInfo `json:"voucher_detail_list,omitempty"`
|
|
|
- AdvanceAmount string `json:"advance_amount,omitempty"`
|
|
|
- AuthTradePayMode string `json:"auth_trade_pay_mode,omitempty"`
|
|
|
- ChargeAmount string `json:"charge_amount,omitempty"`
|
|
|
- ChargeFlags string `json:"charge_flags,omitempty"`
|
|
|
- SettlementId string `json:"settlement_id,omitempty"`
|
|
|
- BusinessParams string `json:"business_params,omitempty"`
|
|
|
- BuyerUserType string `json:"buyer_user_type,omitempty"`
|
|
|
- MdiscountAmount string `json:"mdiscount_amount,omitempty"`
|
|
|
- DiscountAmount string `json:"discount_amount,omitempty"`
|
|
|
- BuyerUserName string `json:"buyer_user_name,omitempty"`
|
|
|
- Subject string `json:"subject,omitempty"`
|
|
|
- Body string `json:"body,omitempty"`
|
|
|
- AlipaySubMerchantId string `json:"alipay_sub_merchant_id,omitempty"`
|
|
|
- ExtInfos string `json:"ext_infos,omitempty"`
|
|
|
- RetryFlag string `json:"retry_flag,omitempty"`
|
|
|
- Action string `json:"action,omitempty"`
|
|
|
- GmtRefundPay string `json:"gmt_refund_pay,omitempty"`
|
|
|
- RefundSettlementId string `json:"refund_settlement_id,omitempty"`
|
|
|
+ AliPayTradeCancelResponse cancelResponse `json:"alipay_trade_cancel_response,omitempty"`
|
|
|
+ SignData string `json:"-"`
|
|
|
+ Sign string `json:"sign"`
|
|
|
}
|
|
|
|
|
|
-type AliPaySystemOauthTokenResponse struct {
|
|
|
- AliPaySystemOauthTokenResponse oauthTokenInfo `json:"alipay_system_oauth_token_response,omitempty"`
|
|
|
- ErrorResponse alipayErrorResponse `json:"error_response,omitempty"`
|
|
|
- SignData string `json:"-"`
|
|
|
- Sign string `json:"sign"`
|
|
|
+type cancelResponse struct {
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ TradeNo string `json:"trade_no,omitempty"`
|
|
|
+ OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
+ RetryFlag string `json:"retry_flag,omitempty"`
|
|
|
+ Action string `json:"action,omitempty"`
|
|
|
+ GmtRefundPay string `json:"gmt_refund_pay,omitempty"`
|
|
|
+ RefundSettlementId string `json:"refund_settlement_id,omitempty"`
|
|
|
}
|
|
|
|
|
|
-type AlipayUserInfoShareResponse struct {
|
|
|
- AlipayUserInfoShareResponse userInfoShare `json:"alipay_user_info_share_response,omitempty"`
|
|
|
- //ErrorResponse alipayErrorResponse `json:"error_response,omitempty"`
|
|
|
+//===================================================
|
|
|
+type AliPaySystemOauthTokenResponse struct {
|
|
|
+ AliPaySystemOauthTokenResponse oauthTokenInfo `json:"alipay_system_oauth_token_response,omitempty"`
|
|
|
+ ErrorResponse struct {
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ } `json:"error_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
-
|
|
|
-type alipayErrorResponse struct {
|
|
|
- Code string `json:"code,omitempty"`
|
|
|
- Msg string `json:"msg,omitempty"`
|
|
|
- SubCode string `json:"sub_code,omitempty"`
|
|
|
- SubMsg string `json:"sub_msg,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
type oauthTokenInfo struct {
|
|
|
AccessToken string `json:"access_token,omitempty"`
|
|
|
AlipayUserId string `json:"alipay_user_id,omitempty"`
|
|
|
@@ -167,6 +263,13 @@ type oauthTokenInfo struct {
|
|
|
UserId string `json:"user_id,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
+type AlipayUserInfoShareResponse struct {
|
|
|
+ AlipayUserInfoShareResponse userInfoShare `json:"alipay_user_info_share_response,omitempty"`
|
|
|
+ SignData string `json:"-"`
|
|
|
+ Sign string `json:"sign"`
|
|
|
+}
|
|
|
+
|
|
|
type userInfoShare struct {
|
|
|
Code string `json:"code,omitempty"`
|
|
|
Msg string `json:"msg,omitempty"`
|
|
|
@@ -184,40 +287,36 @@ type userInfoShare struct {
|
|
|
Gender string `json:"gender,omitempty"`
|
|
|
}
|
|
|
|
|
|
-type AliPayUserPhone struct {
|
|
|
- Code string `json:"code,omitempty"`
|
|
|
- Msg string `json:"msg,omitempty"`
|
|
|
- SubCode string `json:"subCode,omitempty"`
|
|
|
- SubMsg string `json:"subMsg,omitempty"`
|
|
|
- Mobile string `json:"mobile,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
+//===================================================
|
|
|
type AliPayTradeRefundResponse struct {
|
|
|
- AlipayTradeRefundResponse refundResponse `json:"alipay_trade_refund_response"`
|
|
|
+ AlipayTradeRefundResponse refundResponse `json:"alipay_trade_refund_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
|
|
|
type refundResponse struct {
|
|
|
- Code string `json:"code,omitempty"`
|
|
|
- Msg string `json:"msg,omitempty"`
|
|
|
- SubCode string `json:"sub_code,omitempty"`
|
|
|
- SubMsg string `json:"sub_msg,omitempty"`
|
|
|
- TradeNo string `json:"trade_no,omitempty"`
|
|
|
- OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
- BuyerLogonId string `json:"buyer_logon_id,omitempty"`
|
|
|
- FundChange string `json:"fund_change,omitempty"`
|
|
|
- RefundFee string `json:"refund_fee,omitempty"`
|
|
|
- RefundCurrency string `json:"refund_currency,omitempty"`
|
|
|
- GmtRefundPay string `json:"gmt_refund_pay,omitempty"`
|
|
|
- RefundDetailItemList []tradeFundBill `json:"refund_detail_item_list,omitempty"`
|
|
|
- StoreName string `json:"store_name,omitempty"`
|
|
|
- BuyerUserId string `json:"buyer_user_id,omitempty"`
|
|
|
- RefundPresetPaytoolList []presetPayToolInfo `json:"refund_preset_paytool_list,omitempty"`
|
|
|
- RefundSettlementId string `json:"refund_settlement_id,omitempty"`
|
|
|
- PresentRefundBuyerAmount string `json:"present_refund_buyer_amount,omitempty"`
|
|
|
- PresentRefundDiscountAmount string `json:"present_refund_discount_amount,omitempty"`
|
|
|
- PresentRefundMdiscountAmount string `json:"present_refund_mdiscount_amount,omitempty"`
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ TradeNo string `json:"trade_no,omitempty"`
|
|
|
+ OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
+ BuyerLogonId string `json:"buyer_logon_id,omitempty"`
|
|
|
+ FundChange string `json:"fund_change,omitempty"`
|
|
|
+ RefundFee string `json:"refund_fee,omitempty"`
|
|
|
+ RefundCurrency string `json:"refund_currency,omitempty"`
|
|
|
+ GmtRefundPay string `json:"gmt_refund_pay,omitempty"`
|
|
|
+ RefundDetailItemList []tradeFundBill `json:"refund_detail_item_list,omitempty"`
|
|
|
+ StoreName string `json:"store_name,omitempty"`
|
|
|
+ BuyerUserId string `json:"buyer_user_id,omitempty"`
|
|
|
+ RefundPresetPaytoolList []struct {
|
|
|
+ Amount []string `json:"amount,omitempty"`
|
|
|
+ AssertTypeCode string `json:"assert_type_code,omitempty"`
|
|
|
+ } `json:"refund_preset_paytool_list,omitempty"`
|
|
|
+ RefundSettlementId string `json:"refund_settlement_id,omitempty"`
|
|
|
+ PresentRefundBuyerAmount string `json:"present_refund_buyer_amount,omitempty"`
|
|
|
+ PresentRefundDiscountAmount string `json:"present_refund_discount_amount,omitempty"`
|
|
|
+ PresentRefundMdiscountAmount string `json:"present_refund_mdiscount_amount,omitempty"`
|
|
|
}
|
|
|
|
|
|
type tradeFundBill struct {
|
|
|
@@ -228,50 +327,45 @@ type tradeFundBill struct {
|
|
|
FundType string `json:"fund_type,omitempty"`
|
|
|
}
|
|
|
|
|
|
-type presetPayToolInfo struct {
|
|
|
- Amount []string `json:"amount,omitempty"`
|
|
|
- AssertTypeCode string `json:"assert_type_code,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
+//===================================================
|
|
|
type AliPayTradeFastpayRefundQueryResponse struct {
|
|
|
- AliPayTradeFastpayRefundQueryResponse refundQueryResponse `json:"alipay_trade_fastpay_refund_query_response"`
|
|
|
+ AliPayTradeFastpayRefundQueryResponse refundQueryResponse `json:"alipay_trade_fastpay_refund_query_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
|
|
|
type refundQueryResponse struct {
|
|
|
- Code string `json:"code,omitempty"`
|
|
|
- Msg string `json:"msg,omitempty"`
|
|
|
- SubCode string `json:"sub_code,omitempty"`
|
|
|
- SubMsg string `json:"sub_msg,omitempty"`
|
|
|
- TradeNo string `json:"trade_no,omitempty"`
|
|
|
- OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
- OutRequestNo string `json:"out_request_no,omitempty"`
|
|
|
- RefundReason string `json:"refund_reason,omitempty"`
|
|
|
- TotalAmount string `json:"total_amount,omitempty"`
|
|
|
- RefundAmount string `json:"refund_amount,omitempty"`
|
|
|
- RefundRoyaltys []RefundRoyaltyResult `json:"refund_royaltys,omitempty"`
|
|
|
- GmtRefundPay string `json:"gmt_refund_pay,omitempty"`
|
|
|
- RefundDetailItemList []tradeFundBill `json:"refund_detail_item_list,omitempty"`
|
|
|
- SendBackFee string `json:"send_back_fee,omitempty"`
|
|
|
- RefundSettlementId string `json:"refund_settlement_id,omitempty"`
|
|
|
- PresentRefundBuyerAmount string `json:"present_refund_buyer_amount,omitempty"`
|
|
|
- PresentRefundDiscountAmount string `json:"present_refund_discount_amount,omitempty"`
|
|
|
- PresentRefundMdiscountAmount string `json:"present_refund_mdiscount_amount,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type RefundRoyaltyResult struct {
|
|
|
- RefundAmount string `json:"refund_amount,omitempty"`
|
|
|
- RoyaltyType string `json:"royalty_type,omitempty"`
|
|
|
- ResultCode string `json:"result_code,omitempty"`
|
|
|
- TransOut string `json:"trans_out,omitempty"`
|
|
|
- TransOutEmail string `json:"trans_out_email,omitempty"`
|
|
|
- TransIn string `json:"trans_in,omitempty"`
|
|
|
- TransInEmail string `json:"trans_in_email,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ TradeNo string `json:"trade_no,omitempty"`
|
|
|
+ OutTradeNo string `json:"out_trade_no,omitempty"`
|
|
|
+ OutRequestNo string `json:"out_request_no,omitempty"`
|
|
|
+ RefundReason string `json:"refund_reason,omitempty"`
|
|
|
+ TotalAmount string `json:"total_amount,omitempty"`
|
|
|
+ RefundAmount string `json:"refund_amount,omitempty"`
|
|
|
+ RefundRoyaltys []struct {
|
|
|
+ RefundAmount string `json:"refund_amount,omitempty"`
|
|
|
+ RoyaltyType string `json:"royalty_type,omitempty"`
|
|
|
+ ResultCode string `json:"result_code,omitempty"`
|
|
|
+ TransOut string `json:"trans_out,omitempty"`
|
|
|
+ TransOutEmail string `json:"trans_out_email,omitempty"`
|
|
|
+ TransIn string `json:"trans_in,omitempty"`
|
|
|
+ TransInEmail string `json:"trans_in_email,omitempty"`
|
|
|
+ } `json:"refund_royaltys,omitempty"`
|
|
|
+ GmtRefundPay string `json:"gmt_refund_pay,omitempty"`
|
|
|
+ RefundDetailItemList []tradeFundBill `json:"refund_detail_item_list,omitempty"`
|
|
|
+ SendBackFee string `json:"send_back_fee,omitempty"`
|
|
|
+ RefundSettlementId string `json:"refund_settlement_id,omitempty"`
|
|
|
+ PresentRefundBuyerAmount string `json:"present_refund_buyer_amount,omitempty"`
|
|
|
+ PresentRefundDiscountAmount string `json:"present_refund_discount_amount,omitempty"`
|
|
|
+ PresentRefundMdiscountAmount string `json:"present_refund_mdiscount_amount,omitempty"`
|
|
|
+}
|
|
|
+
|
|
|
+//===================================================
|
|
|
type AliPayTradeOrderSettleResponse struct {
|
|
|
- AliPayTradeOrderSettleResponse orderSettleResponse `json:"alipay_trade_order_settle_response"`
|
|
|
+ AliPayTradeOrderSettleResponse orderSettleResponse `json:"alipay_trade_order_settle_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
@@ -283,8 +377,9 @@ type orderSettleResponse struct {
|
|
|
TradeNo string `json:"trade_no,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
type AlipayTradePrecreateResponse struct {
|
|
|
- AlipayTradePrecreateResponse precreateResponse `json:"alipay_trade_precreate_response"`
|
|
|
+ AlipayTradePrecreateResponse precreateResponse `json:"alipay_trade_precreate_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
@@ -298,8 +393,9 @@ type precreateResponse struct {
|
|
|
QrCode string `json:"qr_code,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
type AliPayTradePageRefundResponse struct {
|
|
|
- AliPayTradePageRefundResponse pageRefundResponse `json:"alipay_trade_page_refund_response"`
|
|
|
+ AliPayTradePageRefundResponse pageRefundResponse `json:"alipay_trade_page_refund_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
@@ -315,8 +411,9 @@ type pageRefundResponse struct {
|
|
|
RefundAmount string `json:"refund_amount,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
type AlipayFundTransToaccountTransferResponse struct {
|
|
|
- AlipayFundTransToaccountTransferResponse transToaccountTransferResponse `json:"alipay_fund_trans_toaccount_transfer_response"`
|
|
|
+ AlipayFundTransToaccountTransferResponse transToaccountTransferResponse `json:"alipay_fund_trans_toaccount_transfer_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
@@ -331,8 +428,9 @@ type transToaccountTransferResponse struct {
|
|
|
PayDate string `json:"pay_date,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
type ZhimaCreditScoreGetResponse struct {
|
|
|
- ZhimaCreditScoreGetResponse scoreGetResponse `json:"zhima_credit_score_get_response"`
|
|
|
+ ZhimaCreditScoreGetResponse scoreGetResponse `json:"zhima_credit_score_get_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
@@ -346,31 +444,30 @@ type scoreGetResponse struct {
|
|
|
ZmScore string `json:"zm_score,omitempty"`
|
|
|
}
|
|
|
|
|
|
+//===================================================
|
|
|
type AlipayOpenAuthTokenAppResponse struct {
|
|
|
- AlipayOpenAuthTokenAppResponse authTokenAppResponse `json:"alipay_open_auth_token_app_response"`
|
|
|
+ AlipayOpenAuthTokenAppResponse authTokenAppResponse `json:"alipay_open_auth_token_app_response,omitempty"`
|
|
|
SignData string `json:"-"`
|
|
|
Sign string `json:"sign"`
|
|
|
}
|
|
|
|
|
|
type authTokenAppResponse struct {
|
|
|
- Code string `json:"code,omitempty"`
|
|
|
- Msg string `json:"msg,omitempty"`
|
|
|
- SubCode string `json:"sub_code,omitempty"`
|
|
|
- SubMsg string `json:"sub_msg,omitempty"`
|
|
|
- UserId string `json:"user_id,omitempty"`
|
|
|
- AuthAppId string `json:"auth_app_id,omitempty"`
|
|
|
- AppAuthToken string `json:"app_auth_token,omitempty"`
|
|
|
- AppRefreshToken string `json:"app_refresh_token,omitempty"`
|
|
|
- ExpiresIn int `json:"expires_in,omitempty"`
|
|
|
- ReExpiresIn int `json:"re_expires_in,omitempty"`
|
|
|
- Tokens []tokenInfo `json:"tokens,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type tokenInfo struct {
|
|
|
+ Code string `json:"code,omitempty"`
|
|
|
+ Msg string `json:"msg,omitempty"`
|
|
|
+ SubCode string `json:"sub_code,omitempty"`
|
|
|
+ SubMsg string `json:"sub_msg,omitempty"`
|
|
|
+ UserId string `json:"user_id,omitempty"`
|
|
|
+ AuthAppId string `json:"auth_app_id,omitempty"`
|
|
|
AppAuthToken string `json:"app_auth_token,omitempty"`
|
|
|
AppRefreshToken string `json:"app_refresh_token,omitempty"`
|
|
|
- AuthAppId string `json:"auth_app_id,omitempty"`
|
|
|
ExpiresIn int `json:"expires_in,omitempty"`
|
|
|
ReExpiresIn int `json:"re_expires_in,omitempty"`
|
|
|
- UserId string `json:"user_id,omitempty"`
|
|
|
+ Tokens []struct {
|
|
|
+ AppAuthToken string `json:"app_auth_token,omitempty"`
|
|
|
+ AppRefreshToken string `json:"app_refresh_token,omitempty"`
|
|
|
+ AuthAppId string `json:"auth_app_id,omitempty"`
|
|
|
+ ExpiresIn int `json:"expires_in,omitempty"`
|
|
|
+ ReExpiresIn int `json:"re_expires_in,omitempty"`
|
|
|
+ UserId string `json:"user_id,omitempty"`
|
|
|
+ } `json:"tokens,omitempty"`
|
|
|
}
|