Module: Reapal::Api::Tender::TenderHistoryApply

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

Instance Method Summary collapse

Instance Method Details

#tender_history_apply(flow_id, tender_no, tender_name, money, rate, fee_amount, refund_term, debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts, guarant_contract = nil, commissioned_contract = nil, busway = '01', remark = '') ⇒ Hash

3.20 历史标的迁移



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
70
# File 'lib/reapal/api/tender/tender_history_apply.rb', line 38

def tender_history_apply(flow_id, tender_no, tender_name, money, rate, fee_amount, refund_term,
                 debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts,
                 guarant_contract=nil, commissioned_contract=nil, busway='01', remark='')
  service = 'reapal.trust.tenderHistoryApply'
  post_path = '/tender/rest.htm'

  params = {
    orderNo: flow_id,
    tenderNo: tender_no,
    tenderName: tender_name,
    amount: money,
    rate: rate,
    feeAmount: fee_amount,
    refundTerm: refund_term,
    debitTerm: debit_term,
    debitType: debit_type,
    repayDate: repay_date.strftime("%Y%m%d"),
    expiryDate: expiry_date.strftime("%Y%m%d"),
    tenderType: tender_type,
    debitContracts: debit_contracts,
    guarantContract: guarant_contract,
    commissionedContract: commissioned_contract,
    busway: busway,
    remark: remark,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

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

  Reapal.logger.info res

  res
end