Sha256: da6b7a1f3027d82624868a59edc27466f2e08ead9e1d69bd4986fa2716141e1e

Contents?: true

Size: 1.66 KB

Versions: 4

Compression:

Stored size: 1.66 KB

Contents

# coding: utf-8

module Reapal
  module Api
    module User
      module ContractQuery

        # 1.5 签约查询,支持个人和企业(API)
        #
        # @param onekey_com_contract_flow_id [ String ] 签约订单号
        #
        # @return [ Hash ] 结果集
        #   * :result [String] 业务结果:'S/F/P'
        #   * :request_params [Hash] 请求参数
        #   * :response [Object] 请求返回对象
        #   * :error_code [String] 错误代号
        #   * :error_msg [String] 错误信息
        #   * :data: 具体业务返回信息
        #     * :orderNo [String] 签约订单号
        #     * :contract [String] 企业协议号
        #     * :result [String] * :resultCode [String] 结果代码 0000:签约成功 0003:待审核
        #     * :corpName [String] 法人代表姓名
        #     * :corpIdentity [String] 法人身份证号
        #     * :comLicense [String] 组织机构代码/社会征信号
        #     * :licStartDate [String] 企业组织机构证起始日
        #     * :licEndDate [String] 企业组织机构证截止日
        #     * :mobile [String] 手机号
        #     * :email [String] 企业邮箱
        #     * :remark [String] 备注
        #
        def contract_query(onekey_com_contract_flow_id)
          service = 'reapal.trust.contractQuery'
          post_path = '/reagw/agreement/agreeApi.htm'

          params = {
            orderNo: oneket_com_contract_flow_id,
            queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
          }

          operate_post(:query, service, params, post_path, Http::ErrorCode.contract_query, ['0000'])
        end

      end # module
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
reapal-0.9.9 lib/reapal/api/user/contract_query.rb
reapal-0.9.7 lib/reapal/api/user/contract_query.rb
reapal-0.9.6 lib/reapal/api/user/contract_query.rb
reapal-0.9.5 lib/reapal/api/user/contract_query.rb