Module: RockFintech::Form::Trade::BidApplyP

Defined in:
lib/rock_fintech/form/trade/bid_apply_p.rb

Instance Method Summary collapse

Instance Method Details

#bid_apply_p(card_no, flow_id, amount, asset_no, interest_date, interest_type, interest_day, end_date, interest_rate, frozen_flag, use_bonus, bonus_amount, mobile, transact_date, third_custom, success_url, fail_url, forget_pwd_url, callback_url, devise = '000001', remark = '') ⇒ Hash

投资人投标申请

Parameters:

  • interest_date (Time)

    起息日

  • end_date (Time)

    产品到期日

  • transact_date (Time)

    交易时间

Returns:

  • (Hash)

    结果集

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

    • :request_params [Hash] 请求参数

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

    • :code [String] 结果代码

    • :msg [String] 结果信息

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

      * :order_id [String] 订单号
      * :url [String] 页面跳转 url
      


22
23
24
25
26
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/rock_fintech/form/trade/bid_apply_p.rb', line 22

def bid_apply_p(card_no, flow_id, amount, asset_no, interest_date, interest_type, interest_day,
                end_date, interest_rate, frozen_flag, use_bonus, bonus_amount, mobile, transact_date,
                third_custom, success_url, fail_url, forget_pwd_url, callback_url,devise='000001', remark='')
  service = 'bid_apply_p'

  params = {
    card_no: card_no,
    out_serial_no: flow_id,
    amount: amount,
    asset_no: asset_no,
    interest_date: interest_date.strftime('%Y%m%d'),
    interest_type: interest_type,
    interest_day: interest_day,
    end_date: end_date.strftime('%Y%m%d'),
    interest_rate: interest_rate,
    frozen_flag: frozen_flag,
    use_bonus: use_bonus,
    bonus_amount: bonus_amount,
    transact_date: '' == transact_date ? '' : transact_date.strftime('%Y%m%d'),
    third_custom: third_custom,
    success_url: success_url,
    fail_url: fail_url,
    callback_url: callback_url,
    forget_pwd_url: forget_pwd_url,
    client: devise,
    custom: remark,
  }

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

  res
end