Sha256: 8ed5de8acede159c8f5509184ed1c3713561e44ace3f96254d1ba11f36210834
Contents?: true
Size: 1.76 KB
Versions: 1
Compression:
Stored size: 1.76 KB
Contents
# coding: utf-8 module Reapal module Form module BusinessAuth # 3.20 标的授权 (Form) # # @param flow_id [String] 业务订单号 # @param contracts [String] 用户协议号 # @param services [String] 授权服务 02一键投标 ,03 为一键还款 04 一键债转 # @param busway [String] 00:PC端;01:手机端;02:Pad端;03:其它 # @param auth_limit [String] 授权期限日期 YYYYMMDD # @param tender_no [String] 标的号,授权为一键还款时必填 # @param return_url [String] 回调 url # @param notify_url [String] 通知 url # # @return [ Hash ] 结果集 # * form_method # * url # * method # * form_data # * :merchant_id # * :encryptkey # * :data # def business_auth_form(flow_id, contracts, services, busway='01', auth_limit, tender_no, return_url, notify_url) service = 'reapal.trust.businessAuth' post_path = '/reagw/tender/rest.htm' params = { orderNo: flow_id, contracts: contracts, services: services, busway: busway, authLimit: auth_limit, tenderNo: tender_no, returnUrl: return_url, notifyUrl: notify_url, remark: '', applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S') } request = Http.get_body(service, params, @config) { form_method: { :url => config[:server_url] + post_path, :method => :post, }, form_data: request } end end #BusinessAuth end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
reapal-0.2.2 | lib/reapal/form/business_auth_form.rb |