支付模块
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

208 righe
9.0 KiB

  1. package md
  2. type AliPayPayParams struct {
  3. Subject string `json:"subject" binding:"required"`
  4. Amount string `json:"amount" binding:"required"`
  5. OrderType string `json:"order_type" binding:"required"`
  6. OrdId string `json:"ord_id"`
  7. }
  8. type PayData struct {
  9. PayAppCertSn string `json:"pay_app_cert_sn"`
  10. PayAlipayRootCertSn string `json:"pay_alipay_root_cert_sn"`
  11. PayAlipayrsaPublicKey string `json:"pay_alipayrsa_public_key"`
  12. PayAliUseType string `json:"pay_ali_use_type"`
  13. PriKey string `json:"pay_ali_new_private_key"`
  14. WxAppletFilepathUrl string `json:"wx_applet_filepath_url"`
  15. }
  16. type ZhimaCreditPayafteruseCreditagreementQuery struct {
  17. ZhimaCreditPayafteruseCreditagreementQueryResponse struct {
  18. Code string `json:"code"`
  19. Msg string `json:"msg"`
  20. AgreementStatus string `json:"agreement_status"`
  21. BizTime string `json:"biz_time"`
  22. CreditAgreementId string `json:"credit_agreement_id"`
  23. OutAgreementNo string `json:"out_agreement_no"`
  24. } `json:"zhima_credit_payafteruse_creditagreement_query_response"`
  25. AlipayCertSn string `json:"alipay_cert_sn"`
  26. Sign string `json:"sign"`
  27. }
  28. type ZhimaCreditPayafteruseCreditbizorderOrder struct {
  29. ZhimaCreditPayafteruseCreditbizorderOrderResponse struct {
  30. Code string `json:"code"`
  31. Msg string `json:"msg"`
  32. OutOrderNo string `json:"out_order_no"`
  33. CreditBizOrderId string `json:"credit_biz_order_id"`
  34. } `json:"zhima_credit_payafteruse_creditbizorder_order_response"`
  35. Sign string `json:"sign"`
  36. }
  37. type ZhimaCreditPayafteruseCreditbizorderQuery struct {
  38. ZhimaCreditPayafteruseCreditbizorderQueryResponse struct {
  39. Code string `json:"code"`
  40. Msg string `json:"msg"`
  41. CreditBizOrderId string `json:"credit_biz_order_id"`
  42. CreditAgreementId string `json:"credit_agreement_id"`
  43. TotalAmount float64 `json:"total_amount"`
  44. CreateTime string `json:"create_time"`
  45. ZmServiceId string `json:"zm_service_id"`
  46. ProductCode string `json:"product_code"`
  47. OrderStatus string `json:"order_status"`
  48. TradeNo string `json:"trade_no"`
  49. } `json:"zhima_credit_payafteruse_creditbizorder_query_response"`
  50. Sign string `json:"sign"`
  51. }
  52. type AlipayFundTransUniTransfer struct {
  53. AlipayFundTransUniTransferResponse struct {
  54. Code string `json:"code"`
  55. Msg string `json:"msg"`
  56. OutBizNo string `json:"out_biz_no"`
  57. OrderId string `json:"order_id"`
  58. PayFundOrderId string `json:"pay_fund_order_id"`
  59. Status string `json:"status"`
  60. TransDate string `json:"trans_date"`
  61. } `json:"alipay_fund_trans_uni_transfer_response"`
  62. Sign string `json:"sign"`
  63. }
  64. type AlipayFundTransCommonQuery struct {
  65. AlipayFundTransCommonQueryResponse struct {
  66. Code string `json:"code"`
  67. Msg string `json:"msg"`
  68. OrderId string `json:"order_id"`
  69. PayFundOrderId string `json:"pay_fund_order_id"`
  70. OutBizNo string `json:"out_biz_no"`
  71. TransAmount string `json:"trans_amount"`
  72. Status string `json:"status"`
  73. PayDate string `json:"pay_date"`
  74. ArrivalTimeEnd string `json:"arrival_time_end"`
  75. OrderFee string `json:"order_fee"`
  76. ErrorCode string `json:"error_code"`
  77. FailReason string `json:"fail_reason"`
  78. SubOrderErrorCode string `json:"sub_order_error_code"`
  79. SubOrderFailReason string `json:"sub_order_fail_reason"`
  80. SubOrderStatus string `json:"sub_order_status"`
  81. SettleSerialNo string `json:"settle_serial_no"`
  82. } `json:"alipay_fund_trans_common_query_response"`
  83. Sign string `json:"sign"`
  84. }
  85. type ZhimaCreditPayafteruseCreditbizorderFinish struct {
  86. ZhimaCreditPayafteruseCreditbizorderFinishResponse struct {
  87. Code string `json:"code"`
  88. Msg string `json:"msg"`
  89. OutRequestNo string `json:"out_request_no"`
  90. CreditBizOrderId string `json:"credit_biz_order_id"`
  91. OrderStatus string `json:"order_status"`
  92. } `json:"zhima_credit_payafteruse_creditbizorder_finish_response"`
  93. Sign string `json:"sign"`
  94. }
  95. type AlipayTradePay struct {
  96. AlipayTradePayResponse struct {
  97. Code string `json:"code"`
  98. Msg string `json:"msg"`
  99. TradeNo string `json:"trade_no"`
  100. OutTradeNo string `json:"out_trade_no"`
  101. OpenId string `json:"open_id"`
  102. BuyerLogonId string `json:"buyer_logon_id"`
  103. TransPayRate string `json:"trans_pay_rate"`
  104. TotalAmount float64 `json:"total_amount"`
  105. TransCurrency string `json:"trans_currency"`
  106. SettleCurrency string `json:"settle_currency"`
  107. SettleAmount string `json:"settle_amount"`
  108. PayCurrency string `json:"pay_currency"`
  109. PayAmount string `json:"pay_amount"`
  110. SettleTransRate string `json:"settle_trans_rate"`
  111. ReceiptAmount string `json:"receipt_amount"`
  112. BuyerPayAmount float64 `json:"buyer_pay_amount"`
  113. PointAmount float64 `json:"point_amount"`
  114. InvoiceAmount float64 `json:"invoice_amount"`
  115. GmtPayment string `json:"gmt_payment"`
  116. FundBillList []struct {
  117. FundChannel string `json:"fund_channel"`
  118. BankCode string `json:"bank_code"`
  119. Amount int `json:"amount"`
  120. RealAmount float64 `json:"real_amount"`
  121. FundType string `json:"fund_type"`
  122. } `json:"fund_bill_list"`
  123. CardBalance float64 `json:"card_balance"`
  124. StoreName string `json:"store_name"`
  125. DiscountGoodsDetail string `json:"discount_goods_detail"`
  126. BuyerUserId string `json:"buyer_user_id"`
  127. AsyncPaymentMode string `json:"async_payment_mode"`
  128. VoucherDetailList []struct {
  129. Id string `json:"id"`
  130. Name string `json:"name"`
  131. Type string `json:"type"`
  132. Amount int `json:"amount"`
  133. MerchantContribute int `json:"merchant_contribute"`
  134. OtherContribute int `json:"other_contribute"`
  135. Memo string `json:"memo"`
  136. TemplateId string `json:"template_id"`
  137. OtherContributeDetail []struct {
  138. ContributeType string `json:"contribute_type"`
  139. ContributeAmount int `json:"contribute_amount"`
  140. } `json:"other_contribute_detail"`
  141. PurchaseBuyerContribute float64 `json:"purchase_buyer_contribute"`
  142. PurchaseMerchantContribute float64 `json:"purchase_merchant_contribute"`
  143. PurchaseAntContribute float64 `json:"purchase_ant_contribute"`
  144. } `json:"voucher_detail_list"`
  145. AdvanceAmount string `json:"advance_amount"`
  146. AuthTradePayMode string `json:"auth_trade_pay_mode"`
  147. ChargeAmount string `json:"charge_amount"`
  148. ChargeFlags string `json:"charge_flags"`
  149. SettlementId string `json:"settlement_id"`
  150. BusinessParams string `json:"business_params"`
  151. BuyerUserType string `json:"buyer_user_type"`
  152. MdiscountAmount string `json:"mdiscount_amount"`
  153. DiscountAmount string `json:"discount_amount"`
  154. BuyerUserName string `json:"buyer_user_name"`
  155. ReceiptCurrencyType string `json:"receipt_currency_type"`
  156. CreditPayMode string `json:"credit_pay_mode"`
  157. CreditBizOrderId string `json:"credit_biz_order_id"`
  158. EnterprisePayInfo struct {
  159. IsUseEnterprisePay bool `json:"is_use_enterprise_pay"`
  160. InvoiceAmount int `json:"invoice_amount"`
  161. BizInfo string `json:"biz_info"`
  162. } `json:"enterprise_pay_info"`
  163. CanTurnToAppPay string `json:"can_turn_to_app_pay"`
  164. HybAmount string `json:"hyb_amount"`
  165. BkagentRespInfo struct {
  166. BindtrxId string `json:"bindtrx_id"`
  167. BindclrissrId string `json:"bindclrissr_id"`
  168. BindpyeracctbkId string `json:"bindpyeracctbk_id"`
  169. BkpyeruserCode string `json:"bkpyeruser_code"`
  170. EstterLocation string `json:"estter_location"`
  171. } `json:"bkagent_resp_info"`
  172. ChargeInfoList struct {
  173. ChargeFee float64 `json:"charge_fee"`
  174. OriginalChargeFee float64 `json:"original_charge_fee"`
  175. SwitchFeeRate string `json:"switch_fee_rate"`
  176. IsRatingOnTradeReceiver string `json:"is_rating_on_trade_receiver"`
  177. IsRatingOnSwitch string `json:"is_rating_on_switch"`
  178. ChargeType string `json:"charge_type"`
  179. SubFeeDetailList []struct {
  180. ChargeFee float64 `json:"charge_fee"`
  181. OriginalChargeFee float64 `json:"original_charge_fee"`
  182. SwitchFeeRate string `json:"switch_fee_rate"`
  183. } `json:"sub_fee_detail_list"`
  184. } `json:"charge_info_list"`
  185. } `json:"alipay_trade_pay_response"`
  186. Sign string `json:"sign"`
  187. }
  188. type AlipayTradeRefund struct {
  189. AlipayTradeRefundResponse struct {
  190. Code string `json:"code"`
  191. Msg string `json:"msg"`
  192. BuyerLogonId string `json:"buyer_logon_id"`
  193. BuyerUserId string `json:"buyer_user_id"`
  194. FundChange string `json:"fund_change"`
  195. GmtRefundPay string `json:"gmt_refund_pay"`
  196. OutTradeNo string `json:"out_trade_no"`
  197. RefundFee string `json:"refund_fee"`
  198. SendBackFee string `json:"send_back_fee"`
  199. TradeNo string `json:"trade_no"`
  200. SubMsg string `json:"sub_msg"`
  201. } `json:"alipay_trade_refund_response"`
  202. Sign string `json:"sign"`
  203. }