支付模块
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

187 lines
8.1 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 ZhimaCreditPayafteruseCreditbizorderFinish struct {
  65. ZhimaCreditPayafteruseCreditbizorderFinishResponse struct {
  66. Code string `json:"code"`
  67. Msg string `json:"msg"`
  68. OutRequestNo string `json:"out_request_no"`
  69. CreditBizOrderId string `json:"credit_biz_order_id"`
  70. OrderStatus string `json:"order_status"`
  71. } `json:"zhima_credit_payafteruse_creditbizorder_finish_response"`
  72. Sign string `json:"sign"`
  73. }
  74. type AlipayTradePay struct {
  75. AlipayTradePayResponse struct {
  76. Code string `json:"code"`
  77. Msg string `json:"msg"`
  78. TradeNo string `json:"trade_no"`
  79. OutTradeNo string `json:"out_trade_no"`
  80. OpenId string `json:"open_id"`
  81. BuyerLogonId string `json:"buyer_logon_id"`
  82. TransPayRate string `json:"trans_pay_rate"`
  83. TotalAmount float64 `json:"total_amount"`
  84. TransCurrency string `json:"trans_currency"`
  85. SettleCurrency string `json:"settle_currency"`
  86. SettleAmount string `json:"settle_amount"`
  87. PayCurrency string `json:"pay_currency"`
  88. PayAmount string `json:"pay_amount"`
  89. SettleTransRate string `json:"settle_trans_rate"`
  90. ReceiptAmount string `json:"receipt_amount"`
  91. BuyerPayAmount float64 `json:"buyer_pay_amount"`
  92. PointAmount float64 `json:"point_amount"`
  93. InvoiceAmount float64 `json:"invoice_amount"`
  94. GmtPayment string `json:"gmt_payment"`
  95. FundBillList []struct {
  96. FundChannel string `json:"fund_channel"`
  97. BankCode string `json:"bank_code"`
  98. Amount int `json:"amount"`
  99. RealAmount float64 `json:"real_amount"`
  100. FundType string `json:"fund_type"`
  101. } `json:"fund_bill_list"`
  102. CardBalance float64 `json:"card_balance"`
  103. StoreName string `json:"store_name"`
  104. DiscountGoodsDetail string `json:"discount_goods_detail"`
  105. BuyerUserId string `json:"buyer_user_id"`
  106. AsyncPaymentMode string `json:"async_payment_mode"`
  107. VoucherDetailList []struct {
  108. Id string `json:"id"`
  109. Name string `json:"name"`
  110. Type string `json:"type"`
  111. Amount int `json:"amount"`
  112. MerchantContribute int `json:"merchant_contribute"`
  113. OtherContribute int `json:"other_contribute"`
  114. Memo string `json:"memo"`
  115. TemplateId string `json:"template_id"`
  116. OtherContributeDetail []struct {
  117. ContributeType string `json:"contribute_type"`
  118. ContributeAmount int `json:"contribute_amount"`
  119. } `json:"other_contribute_detail"`
  120. PurchaseBuyerContribute float64 `json:"purchase_buyer_contribute"`
  121. PurchaseMerchantContribute float64 `json:"purchase_merchant_contribute"`
  122. PurchaseAntContribute float64 `json:"purchase_ant_contribute"`
  123. } `json:"voucher_detail_list"`
  124. AdvanceAmount string `json:"advance_amount"`
  125. AuthTradePayMode string `json:"auth_trade_pay_mode"`
  126. ChargeAmount string `json:"charge_amount"`
  127. ChargeFlags string `json:"charge_flags"`
  128. SettlementId string `json:"settlement_id"`
  129. BusinessParams string `json:"business_params"`
  130. BuyerUserType string `json:"buyer_user_type"`
  131. MdiscountAmount string `json:"mdiscount_amount"`
  132. DiscountAmount string `json:"discount_amount"`
  133. BuyerUserName string `json:"buyer_user_name"`
  134. ReceiptCurrencyType string `json:"receipt_currency_type"`
  135. CreditPayMode string `json:"credit_pay_mode"`
  136. CreditBizOrderId string `json:"credit_biz_order_id"`
  137. EnterprisePayInfo struct {
  138. IsUseEnterprisePay bool `json:"is_use_enterprise_pay"`
  139. InvoiceAmount int `json:"invoice_amount"`
  140. BizInfo string `json:"biz_info"`
  141. } `json:"enterprise_pay_info"`
  142. CanTurnToAppPay string `json:"can_turn_to_app_pay"`
  143. HybAmount string `json:"hyb_amount"`
  144. BkagentRespInfo struct {
  145. BindtrxId string `json:"bindtrx_id"`
  146. BindclrissrId string `json:"bindclrissr_id"`
  147. BindpyeracctbkId string `json:"bindpyeracctbk_id"`
  148. BkpyeruserCode string `json:"bkpyeruser_code"`
  149. EstterLocation string `json:"estter_location"`
  150. } `json:"bkagent_resp_info"`
  151. ChargeInfoList struct {
  152. ChargeFee float64 `json:"charge_fee"`
  153. OriginalChargeFee float64 `json:"original_charge_fee"`
  154. SwitchFeeRate string `json:"switch_fee_rate"`
  155. IsRatingOnTradeReceiver string `json:"is_rating_on_trade_receiver"`
  156. IsRatingOnSwitch string `json:"is_rating_on_switch"`
  157. ChargeType string `json:"charge_type"`
  158. SubFeeDetailList []struct {
  159. ChargeFee float64 `json:"charge_fee"`
  160. OriginalChargeFee float64 `json:"original_charge_fee"`
  161. SwitchFeeRate string `json:"switch_fee_rate"`
  162. } `json:"sub_fee_detail_list"`
  163. } `json:"charge_info_list"`
  164. } `json:"alipay_trade_pay_response"`
  165. Sign string `json:"sign"`
  166. }
  167. type AlipayTradeRefund struct {
  168. AlipayTradeRefundResponse struct {
  169. Code string `json:"code"`
  170. Msg string `json:"msg"`
  171. BuyerLogonId string `json:"buyer_logon_id"`
  172. BuyerUserId string `json:"buyer_user_id"`
  173. FundChange string `json:"fund_change"`
  174. GmtRefundPay string `json:"gmt_refund_pay"`
  175. OutTradeNo string `json:"out_trade_no"`
  176. RefundFee string `json:"refund_fee"`
  177. SendBackFee string `json:"send_back_fee"`
  178. TradeNo string `json:"trade_no"`
  179. SubMsg string `json:"sub_msg"`
  180. } `json:"alipay_trade_refund_response"`
  181. Sign string `json:"sign"`
  182. }