withdraw_data.go 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package zhongshui
  2. // 提现请求、响应
  3. type (
  4. withdraw_req struct {
  5. GymchtId string `json:"gymchtId"` // 平台分配商户号
  6. DfSn string `json:"dfSn"` // 商户代付订单号,32字符以内,可含字母,确保商户系统内唯一
  7. ReceiptAmount int `json:"receiptAmount"` // 代付金额,单位分,只允许数字
  8. CurType string `json:"curType"` // 金额类型 金额类型 1-卢布(单位:分)
  9. PayType string `json:"payType"` // 付款方式 1-余额代付 缺损值为1
  10. PaymentModes string `json:"paymentModes,omitempty"` // 否 使用支付模式,UPI,NEFT,IMPS,RTGS,BankCard,Paytm。UPI最大10万,IMPS最大20万,NEFT不限额,当前NEFT强制走IMPS,限额20万
  11. ReceiptName string `json:"receiptName"` // 收款人姓名,账户名,UPI.NEFT和IMPS模式必填,建议都传
  12. ReceiptPan string `json:"receiptPan"` // 收款人卡号,银行账户(UPI-ID或者PayTm账号或者银行卡账号),NEFT和IMPS模式必填,建议都传
  13. ReceiptBankNm string `json:"receiptBankNm,omitempty"` // 否 收款银行,BankCard模式必填
  14. SettleNo string `json:"settleNo,omitempty"` // 否 银行代码,Accounts IFSC,NEFT和IMPS和BankCard模式必填,建议都传,PYTM000001
  15. BeneficiaryVPA string `json:"beneficiaryVPA"` // UPI-VPA,UPI模式必填,和手机号二选一,建议都传, 优先选择VPA, 建议使用VPA,UPI-手机号错误率高(88799788@PYTM)
  16. BeneficiaryPhoneNo string `json:"beneficiaryPhoneNo,omitempty"` // 否 UPI-手机号,UPI模式必填,和VPA二选一,建议都传, 优先选择VPA(987654321)
  17. BeneficiaryEmail string `json:"beneficiaryEmail"` // 收款人Email
  18. BeneficiaryAddress string `json:"beneficiaryAddress"` // 收款人地址
  19. Mobile string `json:"mobile"` // 收款人联系电话
  20. AcctType string `json:"acctType"` // 帐号类型, 默认传0
  21. Memo string `json:"memo,omitempty"` // 否 摘要,简单的附言
  22. Nonce string `json:"nonce"` // 32位随机字符串
  23. NotifyUrl string `json:"notifyUrl,omitempty"` // 否 通知地址,接收代付结果通知的url,255字符以内,确保通过互联网能访问该地址
  24. }
  25. withdraw_resp struct {
  26. ResultCode string `json:"resultCode"` // 请求响应码,00000表示成功,其他失败
  27. Message string `json:"message"` // 响应码描述
  28. GymchtId string `json:"gymchtId"` // 否 商户号,平台分配商户号
  29. DfSn string `json:"dfSn"` // 商户代付订单号
  30. DfTransactionId string `json:"dfTransactionId"` // 平台代付单号,32字符以内
  31. DfState string `json:"dfState"` // 代付订单状态 代付状态 00-成功 01-处理中 02-处理失败
  32. DfDesc string `json:"dfDesc"` // 代付状态描述
  33. TimeEnd string `json:"timeEnd"` // 代付完成时间,格式:YYYYMMDDhhmmss
  34. Nonce string `json:"nonce"` // 32位随机字符串
  35. Sign string `json:"sign"` // Md5签名结果
  36. }
  37. )
  38. // 提现通知
  39. type withdrawNotify struct {
  40. ResultCode string `json:"resultCode"` // 响应码, 请求响应码,00000表示成功
  41. Message string `json:"message"` // 响应码描述
  42. GymchtId string `json:"gymchtId"` // 否 商户号,平台分配商户号
  43. DfTransactionId string `json:"dfTransactionId"` // 平台代付单号,32字符以内
  44. DfSn string `json:"dfSn"` // 商户代付订单号
  45. DfState string `json:"dfState"` // 代付状态 00-成功,02-失败
  46. ReceiptAmount int `json:"receiptAmount"` // 代付金额, 单位分,只允许数字
  47. DfDesc string `json:"dfDesc"` // 代付状态描述
  48. ReceiptName string `json:"receiptName"` // 收款人姓名
  49. ReceiptPan string `json:"receiptPan"` // 收款人卡号
  50. ReceiptBankNm string `json:"receiptBankNm"` // 收款银行
  51. Mobile string `json:"mobile"` // 否 收款人手机号码
  52. TimeEnd string `json:"timeEnd"` // 代付完成时间,格式:YYYYMMDDhhmmss
  53. Memo string `json:"memo"` // 否 简单的附言
  54. Nonce string `json:"nonce"` // 32位随机字符串
  55. Sign string `json:"sign"` // Md5签名结果
  56. }
  57. // 账户余额查询请求、响应
  58. type (
  59. queryAccount_req struct {
  60. GymchtId string `json:"gymchtId"` // 商户号,平台分配商户号
  61. QryTime string `json:"qryTime"` // 查询时间,格式为yyyyMMddHHmmss
  62. QryType string `json:"qryType"` // 查询类型 1-余额 2-垫资可用额度 缺损值为1
  63. Nonce string `json:"nonce"` // 32位随机字符串
  64. }
  65. queryAccount_resp struct {
  66. ResultCode string `json:"resultCode"` // 请求响应码,00000表示成功,其他失败
  67. Message string `json:"message"` // 响应码描述
  68. GymchtId string `json:"gymchtId"` // 平台商户号
  69. AccountStatus string `json:"accountStatus"` // 账户状态,00-正常
  70. Balance int `json:"balance"` // 账户余额,单位分,只允许数字
  71. Nonce string `json:"nonce"` // 32位随机字符串
  72. Sign string `json:"sign"` // Md5签名结果
  73. }
  74. )