Module: Reapal::Form::ComContractForm
- Defined in:
- lib/reapal/form/com_contract_form.rb
Instance Method Summary collapse
Instance Method Details
#com_contract_form(flow_id, corp_name, identity_id, com_name, com_license, lic_start_date, lic_end_date, bank_code, user_type, email, return_url, notify_url, busway = '01', remark = '') ⇒ Hash
1.1 企业签约
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/reapal/form/com_contract_form.rb', line 31 def com_contract_form(flow_id, corp_name, identity_id, com_name, com_license, lic_start_date, lic_end_date, bank_code, user_type, email, return_url, notify_url, busway='01', remark='') service = 'reapal.trust.comContract' post_path = '/agreement/agree.htm' params = { orderNo: flow_id, corpName: corp_name, corpIdentity: identity_id, comName: com_name, comLicense: com_license, licStartDate: lic_start_date.strftime("%Y%m%d"), licEndDate: lic_end_date.strftime("%Y%m%d"), bankCode: bank_code, userType: user_type, email: email, busway: busway, returnUrl: return_url, notifyUrl: notify_url, remark: remark, applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } get_form_data(service, params, post_path) end |