Module: RockFintech::Api::Account::FindAccountByMobile

Defined in:
lib/rock_fintech/api/account/find_account_by_mobile.rb

Instance Method Summary collapse

Instance Method Details

#find_account_by_mobile(mobile, devise = '000001', remark = '') ⇒ Hash

按手机号查询电子账号信息

Returns:

  • (Hash)

    结果集

    • :result [String] “S”/“F”/“P”

    • :request_params [Hash] 请求参数

    • :response [Object] 请求返回对象

    • :code [String] 结果代码

    • :msg [String] 结果信息

    • :data: 具体业务返回信息

      * :mobile [String] 手机号
      * :product [String] 产品号
      * :card_no [String] 电子账号
      * :customer_no [String] 客户号
      * :issue_date [String] 开户日期
      * :name [String] 持卡人姓名
      * :cert_type [String] 证件类型,15-身份证18位
      * :cert_no [String] 证件号码
      


24
25
26
27
28
29
30
31
32
33
34
35
36
# File 'lib/rock_fintech/api/account/find_account_by_mobile.rb', line 24

def (mobile, devise='000001', remark='')
  service = 'find_account_by_mobile'

  params = {
    mobile: mobile,
    client: devise,
    custom: remark,
  }

  res = operate_post(:query, service, params, Http::ErrorCode., ['RD000000'])

  res
end