Module: Reapal::Api::User::OnekeyComContract
- Defined in:
- lib/reapal/api/user/onekey_com_contract.rb
Instance Method Summary collapse
Instance Method Details
#onekey_com_contract(flow_id, corp_name, identity_id, com_name, com_license, lic_start_date, lic_end_date, phone, return_url, notify_url, email, busway = '01', remark = '') ⇒ Hash
1.4 企业一键签约(API)
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/reapal/api/user/onekey_com_contract.rb', line 43 def onekey_com_contract(flow_id, corp_name, identity_id, com_name, com_license, lic_start_date, lic_end_date, phone, return_url, notify_url, email, busway='01', remark='') service = 'reapal.trust.comContractAPI' post_path = '/reagw/agreement/agree.htm' params = { orderNo: flow_id, corpName: corp_name, corpIdentity: identity_id, comName: com_name, comLicense: com_license, licStartDate: lic_start_date, licEndDate: lic_end_date, mobile: phone, email: email, busway: busway, returnUrl: return_url, notifyUrl: notify_url, remark: '', applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } res = operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0002', '0006']) if 'S' == res[:result] && '0003' == res[:data][:resultCode] res[:result] = 'F' end res end |