Module: Reapal::Api::User::OnekeyBatchContract
- Defined in:
- lib/reapal/api/user/onekey_batch_contract.rb
Instance Method Summary collapse
-
#onekey_batch_contract(flow_id, true_name, identity_id, phone, is_to_sms, bank_code, card_id, card_province, card_city, card_branch, card_sub_branch, bus_way = '01') ⇒ Hash
1.1 个人一键签约(API)新版本,迁移老数据.
Instance Method Details
#onekey_batch_contract(flow_id, true_name, identity_id, phone, is_to_sms, bank_code, card_id, card_province, card_city, card_branch, card_sub_branch, bus_way = '01') ⇒ Hash
1.1 个人一键签约(API)新版本,迁移老数据
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/reapal/api/user/onekey_batch_contract.rb', line 22 def onekey_batch_contract(flow_id, true_name, identity_id, phone, is_to_sms, bank_code, card_id, card_province, card_city, card_branch, card_sub_branch, bus_way='01') service = 'reapal.trust.onekeyBatchContract' post_path = '/reagw/agreement/agree.htm' params = { orderNo: flow_id, userName: true_name, userIdentity: identity_id, userMobile: phone, busway: bus_way, remark: '', isToSms: is_to_sms, bankCode: bank_code, bankAccountNo: card_id, accountProvince: card_province, accountCity: card_city, branch: card_branch, subbranch: card_sub_branch, applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'), } operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0000', '0007']) end |