Module: Reapal::Api::User::ModifyBindBankCard

Defined in:
lib/reapal/api/user/modify_bind_bank_card.rb

Instance Method Summary collapse

Instance Method Details

#modify_bind_bank_card(flow_id, contracts, bank_account_no, account_province, account_city, branch, subbranch) ⇒ Hash

1.9 修改绑卡(API)

Parameters:

  • flow_id (String)

    订单号

  • contracts (String)

    用户协议号

  • bank_account_no (String)

    银行卡账号后四位

  • account_province (String)

    银行所在省

  • account_city (String)

    银行所在市

  • branch (String)

    银行分行

  • subbranch (String)

    银行支行

Returns:

  • (Hash)

    结果集

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

    • :request_params [Hash] 请求参数

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

    • :error_code [String] 错误代号

    • :error_msg [String] 错误信息

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

      * :flow_id [ String ]  订单号
      * :result_code [ String ] 结果代码 0000:申请成功
      


27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/reapal/api/user/modify_bind_bank_card.rb', line 27

def modify_bind_bank_card(flow_id,
                          contracts,
                          ,
                          ,
                          ,
                          branch,
                          subbranch)
  service = 'reapal.trust.modifyBindBankCard'
  post_path = '/bankcard/modifyBindBankApi.htm'

  params = {
    orderNo: flow_id,
    contracts: contracts,
    bankAccountNo: ,
    accountProvince: ,
    accountCity: ,
    branch: branch,
    subbranch: subbranch,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

  res = operate_post(:operate, service, params, post_path, Http::ErrorCode.bind_card, ['0000'])

  Reapal.logger.info res

  res
end