Module: Reapal::Api::User::ContractQuery
- Defined in:
- lib/reapal/api/user/contract_query.rb
Instance Method Summary collapse
-
#contract_query(contract_flow_id) ⇒ Hash
1.1.4 签约查询,支持个人和企业(API).
Instance Method Details
#contract_query(contract_flow_id) ⇒ Hash
1.1.4 签约查询,支持个人和企业(API)
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/reapal/api/user/contract_query.rb', line 34 def contract_query(contract_flow_id) service = 'reapal.trust.contractQuery' post_path = '/agreement/agreeApi.htm' params = { orderNo: contract_flow_id, queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } res = operate_post(:query, service, params, post_path, Http::ErrorCode.contract_query, ['0000']) if 'P' == res[:result] && '0001' == res[:data][:resultCode] res[:result] = 'F' end Reapal.logger.info res res end |