Sha256: 1ec8ed938aee1df48c03a80cf80b8a3f2fe499242210ef50c70f3cb821f9e74b

Contents?: true

Size: 1.77 KB

Versions: 12

Compression:

Stored size: 1.77 KB

Contents

# coding: utf-8

module Reapal
  module Api
    module User
      module OnekeyBatchContract

        # 1.1 个人一键签约(API)新版本,迁移老数据
        #
        # @param flow_id [ String ] 订单号
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :error_msg [String] 错误提示
        #   * :error_code [String] 融宝的错误编号
        #   * :data [Hash] 成功数据,返回的数据不一定是上送数据,比如手机号。所以要以返回数据为准
        #       * :contracts [String] 用户签约协议号
        #       * :userName [String] 姓名
        #       * :userIdentity [String] 身份证
        #       * :userMobile [String] 手机号
        #
        def onekey_batch_contract(flow_id, true_name, identity_id, phone, is_to_sms,
                                  bank_code, card_id, card_province, card_city, card_branch, card_sub_branch,
                                  bus_way='01')
          service = 'reapal.trust.onekeyBatchContract'
          post_path = '/reagw/agreement/agree.htm'

          params = {
            orderNo: flow_id,
            userName: true_name,
            userIdentity: identity_id,
            userMobile: phone,
            busway: bus_way,
            remark: '',
            isToSms: is_to_sms,
            bankCode: bank_code,
            bankAccountNo: card_id,
            accountProvince: card_province,
            accountCity: card_city,
            branch: card_branch,
            subbranch: card_sub_branch,
            applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
          }

          operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0000', '0007'])
        end

      end # module Agree
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
reapal-0.9.12 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.11 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.10 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.9 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.7 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.6 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.5 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.3 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.2 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.1 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.9.0 lib/reapal/api/user/onekey_batch_contract.rb
reapal-0.3.0 lib/reapal/api/user/onekey_batch_contract.rb