Module: Reapal::Api::User::ComOnekeyBatchContract
- Defined in:
- lib/reapal/api/user/com_onekey_batch_contract.rb
Instance Method Summary collapse
Instance Method Details
#com_onekey_batch_contract(flow_id, corp_name, corp_identity, corp_phone, manager_name, manager_identity, manager_phone, com_name, com_license, lic_start_date, lic_end_date, bank_code, card_id, user_type, email, return_url, notify_url, busway = '00', remark = '') ⇒ Hash
5.3 历史企业用户迁移
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/reapal/api/user/com_onekey_batch_contract.rb', line 53 def com_onekey_batch_contract(flow_id, corp_name, corp_identity, corp_phone, manager_name, manager_identity, manager_phone, com_name, com_license, lic_start_date, lic_end_date, bank_code, card_id, user_type, email, return_url, notify_url, busway='00',remark='') service = 'reapal.trust.oneKeyBatchCompInformationTransfer' post_path = '/agreement/agree.htm' params = { orderNo: flow_id, corpName: corp_name, corpIdentity: corp_identity, corpMobile: corp_phone, managerName: manager_name, managerIdentity: manager_identity, managerMobile: manager_phone, comName: com_name, comLicense: com_license, licStartDate: lic_start_date.strftime('%Y%m%d'), licEndDate: lic_end_date.strftime('%Y%m%d'), busway: busway, remark: remark, bankCode: bank_code, bankAccountNo: card_id, userType: user_type, email: email, returnUrl: return_url, notifyUrl: notify_url, applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S') } res = operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0000', '0007']) Reapal.logger.info res res end |