Module: Lanmao::Form::Account::EnterpriseBindBankcardForm

Defined in:
lib/lanmao/form/account/enterprise_bind_bankcard.rb

Instance Method Summary collapse

Instance Method Details

#enterprise_bind_bankcard_form(flow_id, redirect_url, platform_user_no, bank_card_no, bank_code, bind_type = "UPDATE_BANKCARD") ⇒ Hash

企业换绑卡

Returns:

  • (Hash)

    结果集

    • :form_method

      • :method

      • :url

    • :form_data

      • :data



16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# File 'lib/lanmao/form/account/enterprise_bind_bankcard.rb', line 16

def enterprise_bind_bankcard_form(flow_id, redirect_url, platform_user_no, bank_card_no, bank_code, bind_type="UPDATE_BANKCARD")

  service = "ENTERPRISE_BIND_BANKCARD"

  params = {
    requestNo: flow_id,
    redirectUrl: redirect_url,
    platformUserNo: platform_user_no,
    bankcardNo: bank_card_no,
    bankcode: bank_code,
    bindType: bind_type,
  }

  res = get_form_data(service, params)

  res
end