Sha256: c2b8a119a5af9ecf11f79bfed40ae909acfb2094e8ad41b441f82d26ed551676

Contents?: true

Size: 1.24 KB

Versions: 5

Compression:

Stored size: 1.24 KB

Contents

module Reapal
  module Form
    module ComUpdateInfoForm

        # 1.3 企业信息修改
        #
        # @param flow_id [ String ] 订单号
        # @param contract [ String ] 协议号
        # @param return_url [ String ] 回调 URL
        # @param notify_url [ String ] 通知 URL
        # @param busway [ String ] 设备通道,默认手机端 00:PC端;01:移动端H5页面
        # @param remark [ String ] 备注
        #
        # @return [ Hash ] 结果集
        #   * :form_method
        #     * :method
        #     * :url
        #   * :form_data
        #     * :merchant_id
        #     * :encryptkey
        #     * :data
        #
        def com_update_info_form(flow_id, contract, return_url, notify_url,
                                 busway='01', remark='')
          service = 'reapal.trust.comUpadteInfo'
          post_path = '/agreement/agree.htm'

          params = {
            orderNo: flow_id,
            contracts: contract,
            busway: busway,
            returnUrl: return_url,
            notifyUrl: notify_url,
            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

5 entries across 5 versions & 1 rubygems

Version Path
reapal-0.18.0 lib/reapal/form/com_update_info_form.rb
reapal-0.17.0 lib/reapal/form/com_update_info_form.rb
reapal-0.16.0 lib/reapal/form/com_update_info_form.rb
reapal-0.15.0 lib/reapal/form/com_update_info_form.rb
reapal-0.14.0 lib/reapal/form/com_update_info_form.rb