Module: Reapal::Api::Tender::TenderOneKeySingleTransfer

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

Instance Method Summary collapse

Instance Method Details

#tender_onekey_single_transfer(flow_id, tender_no, trans_capital, money, trans_contracts, into_contracts, transfer_type, invest_order, org_transfer_order, busway = '01', fee = '', fee_type = '', remark = '') ⇒ Hash

3.19 一键债权转让



34
35
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
70
71
72
73
# File 'lib/reapal/api/tender/tender_onekey_single_transfer.rb', line 34

def tender_onekey_single_transfer(flow_id,
                                  tender_no,
                                  trans_capital,
                                  money,
                                  trans_contracts,
                                  into_contracts,
                                  transfer_type,
                                  invest_order,
                                  org_transfer_order,
                                  busway='01',
                                  fee='',
                                  fee_type='',
                                  remark='')
  service = 'reapal.trust.onekeySignleTransfer'
  post_path = '/reagw/tender/rest.htm'

  params = {
    orderNo: flow_id,
    tenderNo: tender_no,
    transCapital: trans_capital,
    amount: money,
    transContracts: trans_contracts,
    intoContracts: into_contracts,
    fee: fee,
    feeType: fee_type,
    transferType: transfer_type,
    investOrder: invest_order,
    orgTransferOrder: org_transfer_order,
    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_onekey_single_transfer, ['0000'])
  if 'S' == res[:result] && '0001' == res[:data][:resultCode]
    res[:result] = 'F'
  end

  res
end