Module: RockFintech::Api::Trade::AutoBidApply

Defined in:
lib/rock_fintech/api/trade/auto_bid_apply.rb

Instance Method Summary collapse

Instance Method Details

#auto_bid_apply(card_no, out_serial_no, amount, use_bonus, bonus_amount, auth_code, asset_no, interest_date, interest_type, interest_day, end_date, interest_rate, frozen_flag, frozen_no = "", devise = '000001', remark = '') ⇒ Hash

一键投标

Returns:

  • (Hash)

    结果集

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

    • :request_params [Hash] 请求参数

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

    • :code [String] 结果代码

    • :msg [String] 结果信息

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

      * :out_serial_no [String] 申请流水号
      * :card_no [String] 电子账号
      * :name [String] 姓名
      * :bid_amount [String] 投标金额
      * :forcast_income [String] 预期收益
      * :buy_date [String] 投标日期
      * :state [String] 记录状态 (1: 投标中, 2: 计息中, 3: 到期待返还, 4: 本息已返还)
      * :auth_code [String] 投标申请授权码
      


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
54
55
56
# File 'lib/rock_fintech/api/trade/auto_bid_apply.rb', line 25

def auto_bid_apply(card_no, out_serial_no, amount,
                   use_bonus, bonus_amount, auth_code,
                   asset_no, interest_date, interest_type,
                   interest_day, end_date, interest_rate,
                   frozen_flag, frozen_no="",
                   devise='000001', remark='')

  service = 'auto_bid_apply'

  params = {
    card_no: card_no,
    out_serial_no: out_serial_no,
    amount: amount,
    use_bonus: use_bonus,
    bonus_amount: bonus_amount,
    auth_code: auth_code,
    asset_no: asset_no,
    interest_date: interest_date,
    interest_type: interest_type,
    interest_day: interest_day,
    end_date: end_date,
    interest_rate: interest_rate,
    frozen_flag: frozen_flag,
    frozen_no: frozen_no,
    client: devise,
    custom: remark,
  }

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

  res
end