lib/reapal/api/user/contract_query.rb in reapal-0.2.2 vs lib/reapal/api/user/contract_query.rb in reapal-0.3.0
- old
+ new
@@ -5,14 +5,42 @@
module User
module ContractQuery
# 1.5 签约查询,支持个人和企业(API)
#
- def contract_query(ori_flow_id)
- # TODO(tony): 目前我们只用个人签约,个人签约都是同步返回,所以先不做实现
- raise "Not Implement"
+ # @param oneket_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(oneket_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
+ end # module
end
end
end