Module: Reapal::Api::Tender::TenderRepaymentComplete

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

Instance Method Summary collapse

Instance Method Details

#tender_repayment_complete(flow_id, tender_no, periods, comp_principal, comp_interest, comp_poundage, comp_amount, comp_time, busway = '01', remark = '') ⇒ Hash

3.15 还款计划更新(API)



31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/reapal/api/tender/tender_repayment_complete.rb', line 31

def tender_repayment_complete(flow_id, tender_no, periods, comp_principal, comp_interest,
                              comp_poundage, comp_amount, comp_time, busway='01', remark='')
  service = 'reapal.trust.repaymentComplete'
  post_path = '/reagw/tender/rest.htm'

  params = {
    orderNo: flow_id,
    tenderNo: tender_no,
    periods: periods,
    compPrincipal: comp_principal,
    compInterest: comp_interest,
    compPoundage: comp_poundage,
    compAmount: comp_amount,
    compTime: comp_time.strftime('%Y%m%d'),
    busway: busway,
    remark: remark,
    applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
  }

  operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_repayment_complete, ['0000'])
end