Sha256: ee67971dd9f50186f053eb56b8eca17d5db74e20a4a53095f38ccf45bcc9af12

Contents?: true

Size: 1.83 KB

Versions: 20

Compression:

Stored size: 1.83 KB

Contents

# coding: utf-8
module RockFintech
  module Form
    module Account
      module CreateAccountP
        # 开户
        #
        # @param flow_id [ String ] 申请流水号
        # @param account_type [ String ] 账户类型 普通户200201,企业户200204
        # @param role_type [ String ] 用户角色 1:出借角色,2:借款角色,3:代偿角色
        # @param success_url [ String ] 成功 url
        # @param fail_url [ String ] 失败 url
        # @param callback_url [String] 回调 url
        # @param devise [ String ] 交易终端,默认手机 000001手机APP 000002网页 000003微信 000004柜面
        # @param remark [ String ] 备注,默认为空
        #
        # @return [ Hash ] 结果集
        #   * :result [String] "S"/"F"/"P"
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :code [String] 结果代码
        #   * :msg [String] 结果信息
        #   * :data: 具体业务返回信息
        #       * :out_serial_no [String] 申请流水号
        #       * :order_id [String] 订单号
        #       * :url [String] 页面跳转 url
        #
        def create_account_p(flow_id, account_type, role_type,
                            success_url, fail_url, callback_url,
                            devise='000001', remark='')
          service = 'create_account_p'

          params = {
            out_serial_no: flow_id,
            account_type: account_type,
            role_type: role_type,
            success_url: success_url,
            fail_url: fail_url,
            callback_url: callback_url,
            client: devise,
            custom: remark,
          }

          res = operate_post(:operate, service, params, Http::ErrorCode.create_account_p, ['RD000000'])

          res
        end

      end # module
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rock_fintech-0.19.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.18.4 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.18.1 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.17.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.16.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.15.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.14.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.13.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.12.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.11.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.10.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.9.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.8.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.7.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.6.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.5.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.4.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.3.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.2.0 lib/rock_fintech/form/account/create_account_p.rb
rock_fintech-0.1.0 lib/rock_fintech/form/account/create_account_p.rb