Sha256: a7ffa2e2c10b4b96ed5bb5456db1ae520694274137c448a66d02ad7a5ceb57fd
Contents?: true
Size: 1.97 KB
Versions: 1
Compression:
Stored size: 1.97 KB
Contents
# coding: utf-8 module Reapal module Api module Tender module TenderRepaymentProject # 3.14 还款计划 # # @param flow_id [String] 还款计划订单号 # @param tender_no [String] 商户系统标的号 # @param project_details [String] 还款计划明细 # * :periods [Integer] 还款期数 # * :projPrincipal [BigDecimal] 计划还款本金 # * :projInterest [BigDecimal] 计划还款利息 # * :projPoundage [BigDecimal] 计划还款手续费 # * :projAmount [BigDecimal] 计划还款总金额 # * :projTime [String] 计划还款日期, 'YYYYMMDD' # @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它 # @param remark [String] 备注 # # @return [ Hash ] 结果集 # * :result [String] 业务结果:'S/F/P' # * :request_params [Hash] 请求参数 # * :response [Object] 请求返回对象 # * :error_code [String] 错误代号 # * :error_msg [String] 错误信息 # * :data: 具体业务返回信息 # * :orderNo [String] 还款订单号 # * :resultCode [String] 结果代码 # def tender_repayment_project(flow_id, tender_no, project_details, busway='01', remark='') service = 'reapal.trust.repaymentProject' post_path = '/reagw/tender/rest.htm' project_details[0][:projTime] = project_details[0][:projTime].strftime('%Y%m%d') params = { orderNo: flow_id, tenderNo: tender_no, projectDetails: project_details, 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_project, ['0000']) end end # module TenderRepaymentProject end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reapal-0.9.5 | lib/reapal/api/tender/tender_repayment_project.rb |