Sha256: 015d005827cd9a70fa4d038d9ace79f4c21833619abcbccd8245d69dcca0dde9

Contents?: true

Size: 1.51 KB

Versions: 2

Compression:

Stored size: 1.51 KB

Contents

module Reapal
  module Form
    module TenderInvestForm

        # 3.4 投标
        #
        # @param flow_id [ String ] 订单号
        # @param tender_no [ String ] 标的号
        # @param amount [ Number ] 金额
        # @param invest_contract [ String ] 投资方协议号
        # @param return_url [ String ] 回调 url
        # @param notify_url [ String ]  通知 url
        # @param coupon_amt [ Number ] 红包抵用券
        # @param busway [ String ] 00:PC端页面 01:移动端H5
        # @param remark [ String ] 备注
        #
        # @return [ Hash ] 结果集
        #   * :form_method
        #     * :method
        #     * :url
        #   * :form_data
        #     * :merchant_id
        #     * :encryptkey
        #     * :data
        #
        def tender_invest_form(flow_id, tender_no,
                               amount, invest_contract,
                               return_url, notify_url,
                               coupon_amt='', busway='01', remark='')
          service = 'reapal.trust.tenderInvest'
          post_path = '/tender/rest.htm'

          params = {
            orderNo: flow_id,
            tenderNo: tender_no,
            amount: amount,
            investContracts: invest_contract,
            returnUrl: return_url,
            notifyUrl: notify_url,
            busway: busway,
            remark: remark,
            applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
          }

          get_form_data(service, params, post_path)
        end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
reapal-0.18.0 lib/reapal/form/tender_invest_form.rb
reapal-0.17.0 lib/reapal/form/tender_invest_form.rb