Sha256: 5625ca4a3fd1507018ad1ab7515b7d40b487d6d13f12ba7f8aff3440c982ddd6
Contents?: true
Size: 1.61 KB
Versions: 3
Compression:
Stored size: 1.61 KB
Contents
# coding: utf-8 module Reapal module Form module BusinessAuthForm # 3.12 标的授权 (Form) # # @param flow_id [String] 业务订单号 # @param contract [String] 用户协议号 # @param services [String] 授权服务 02 自动投标 03 自动还款 05 自动担保还款 # @param auth_limit [String] 授权期限日期 YYYYMMDD # @param amount [Bigdecimal] 金额 # @param total_amount [Bigdecimal] 累计金额 # @param return_url [String] 回调 url # @param notify_url [String] 通知 url # @param busway [String] 00:PC端;01:手机端;02:Pad端;03:其它 # @param remark [ String ] 备注 # # @return [ Hash ] 结果集 # * form_method # * url # * method # * form_data # * :merchant_id # * :encryptkey # * :data # def business_auth_form(flow_id, contract, services, auth_limit, amount, total_amount, return_url, notify_url, busway='01', remark='') service = 'reapal.trust.businessAuth' post_path = '/reagw/user/rest.htm' params = { orderNo: flow_id, contracts: contract, services: services, busway: busway, authLimit: auth_limit, amount: amount, totalAmount: total_amount, 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 #BusinessAuth end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reapal-0.11.0 | lib/reapal/form/business_auth_form.rb |
reapal-0.10.1 | lib/reapal/form/business_auth_form.rb |
reapal-0.10.0 | lib/reapal/form/business_auth_form.rb |