Module: Reapal::Api::Tender::HistoryTenderInfoModify

Defined in:
lib/reapal/api/tender/history_tender_info_modify.rb

Instance Method Summary collapse

Instance Method Details

#history_tender_info_modify(flow_id, tender_no, fee_amount, refund_term, tender_type, debit_contracts, guarant_contract = '', commissioned_contract = '', tender_status = '', returned_principal = 0, returned_interest = 0, returned_fee = 0, returned_def_amount = 0, busway = '01', remark = '') ⇒ Hash

3.19 历史标的信息修改

Parameters:

  • flow_id (String)

    订单号

  • tender_no (String)

    商户系统标的号

  • fee_amount (BigDecimal)

    手续费

  • refund_term (String)

    还款期数

  • tender_type (String)

    标的类别,是否允许自动投标。00:不允许自动投标 01:允许自动投标

  • debit_contracts (String)

    借款方协议号

  • guarant_contract (String) (defaults to: '')

    担保方协议号

  • commissioned_contract (String) (defaults to: '')

    受托方协议号

  • tender_status (String) (defaults to: '')

    标的状态 02:募集中 03:已放款 04:已结清

  • returned_principal (BigDecimal) (defaults to: 0)

    历史已还款金额

  • returned_interest (BigDecimal) (defaults to: 0)

    历史已还款利息

  • returned_fee (BigDecimal) (defaults to: 0)

    历史已还款手续费

  • returned_def_amount (BigDecimal) (defaults to: 0)

    历史已还款罚息

  • busway (String) (defaults to: '01')

    设备通道, ‘00’:PC端;‘01’:手机端(默认);‘02’:Pad端;‘03’:其它

  • remark (String) (defaults to: '')

    备注

Returns:

  • (Hash)

    结果集

    • :result [String] 业务结果:‘S/F/P’

    • :request_params [Hash] 请求参数

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

    • :error_code [String] 错误代号

    • :error_msg [String] 错误信息

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

      * :orderNo [String] 订单号
      * :resultCode [String] 结果代码 0000:成功
      


36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/reapal/api/tender/history_tender_info_modify.rb', line 36

def history_tender_info_modify(flow_id, tender_no, fee_amount, refund_term,
                               tender_type, debit_contracts, guarant_contract='',
                               commissioned_contract='', tender_status='',
                               returned_principal=0, returned_interest=0,
                               returned_fee=0, returned_def_amount=0,
                               busway='01', remark='')
  service = 'reapal.trust.historyTenderInfoModify'
  post_path = '/tender/rest.htm'

  params = {
    orderNo: flow_id,
    tenderNo: tender_no,
    feeAmount: fee_amount,
    refundTerm: refund_term,
    tenderType: tender_type,
    debitContracts: debit_contracts,
    guarantContract: guarant_contract,
    commissionedContract: commissioned_contract,
    tenderStatus: tender_status,
    hisAmount: returned_principal,
    hisIntAmount: returned_interest,
    hisFeeAmount: returned_fee,
    hisDefAmount: returned_def_amount,
    busway: busway,
    remark: remark,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

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

  Reapal.logger.info res

  res
end