reapal 0.9.13 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/reapal/api/api_helper.rb +1 -1
- data/lib/reapal/api/money/deposit_query.rb +1 -1
- data/lib/reapal/api/money/member_payment_query.rb +46 -0
- data/lib/reapal/api/money/sub_account.rb +5 -5
- data/lib/reapal/api/money/sub_account_query.rb +1 -1
- data/lib/reapal/api/money/withdraw_query.rb +1 -1
- data/lib/reapal/api/order/query_by_single_flow_id.rb +1 -0
- data/lib/reapal/api/tender/history_tender_info_modify.rb +63 -0
- data/lib/reapal/api/tender/refund_guarant_payment_query.rb +42 -0
- data/lib/reapal/api/tender/tender_all_cancel.rb +1 -1
- data/lib/reapal/api/tender/tender_apply.rb +12 -4
- data/lib/reapal/api/tender/tender_apply_modify.rb +77 -0
- data/lib/reapal/api/tender/tender_auth_cancel.rb +3 -5
- data/lib/reapal/api/tender/tender_auth_query.rb +12 -9
- data/lib/reapal/api/tender/tender_close.rb +44 -0
- data/lib/reapal/api/tender/tender_finish.rb +14 -13
- data/lib/reapal/api/tender/tender_onekey_invest.rb +3 -3
- data/lib/reapal/api/tender/tender_onekey_invest_history.rb +50 -0
- data/lib/reapal/api/tender/tender_onekey_refund.rb +24 -17
- data/lib/reapal/api/tender/tender_repayment_complete.rb +1 -1
- data/lib/reapal/api/tender/tender_repayment_project.rb +1 -1
- data/lib/reapal/api/user/balance_query.rb +1 -1
- data/lib/reapal/api/user/bind_card_query.rb +5 -6
- data/lib/reapal/api/user/contract_query.rb +8 -5
- data/lib/reapal/api/user/mobile_query.rb +4 -4
- data/lib/reapal/api/user/modify_bind_bank_card.rb +1 -1
- data/lib/reapal/api/user/onekey_batch_contract.rb +20 -5
- data/lib/reapal/api/user/set_history_user_type.rb +44 -0
- data/lib/reapal/api/user/undo_bind_bank_card.rb +1 -1
- data/lib/reapal/form/{certificate_form.rb → bind_bank_card_form.rb} +9 -10
- data/lib/reapal/form/business_auth_form.rb +12 -9
- data/lib/reapal/form/close_account_form.rb +42 -0
- data/lib/reapal/form/com_contract_form.rb +64 -0
- data/lib/reapal/form/deposit_apply_form.rb +2 -3
- data/lib/reapal/form/find_trade_password_form.rb +1 -1
- data/lib/reapal/form/member_payment_form.rb +51 -0
- data/lib/reapal/form/mobile_modify_form.rb +1 -1
- data/lib/reapal/form/refund_guarant_payment_form.rb +50 -0
- data/lib/reapal/form/shortcut_recharge_form.rb +43 -0
- data/lib/reapal/form/signle_tender_transfer_form.rb +76 -0
- data/lib/reapal/form/tender_apply_confirm_form.rb +42 -0
- data/lib/reapal/form/tender_invest_form.rb +49 -0
- data/lib/reapal/form/tender_refund_form.rb +81 -0
- data/lib/reapal/form/user_contract_form.rb +46 -0
- data/lib/reapal/form/withdraw_apply_form.rb +1 -1
- data/lib/reapal/http/communicate.rb +1 -1
- data/lib/reapal/http/error_code/tender.rb +16 -0
- data/lib/reapal/http/error_code/user.rb +4 -0
- data/lib/reapal/version.rb +1 -1
- metadata +20 -12
- data/lib/reapal/api/money/deposit_apply_api.rb +0 -77
- data/lib/reapal/api/money/deposit_confirm_api.rb +0 -57
- data/lib/reapal/api/money/deposit_sms_api.rb +0 -52
- data/lib/reapal/api/tender/tender_onekey_single_transfer.rb +0 -80
- data/lib/reapal/api/user/bank_card_add_sms.rb +0 -65
- data/lib/reapal/api/user/bank_card_add_sms_again.rb +0 -47
- data/lib/reapal/api/user/bank_card_add_sms_confirm.rb +0 -46
- data/lib/reapal/api/user/onekey_com_contract.rb +0 -81
- data/lib/reapal/api/user/onekey_contract.rb +0 -52
@@ -1,52 +0,0 @@
|
|
1
|
-
# coding: utf-8
|
2
|
-
|
3
|
-
module Reapal
|
4
|
-
module Api
|
5
|
-
module User
|
6
|
-
module OnekeyContract
|
7
|
-
|
8
|
-
# 1.2 个人一键签约(API)
|
9
|
-
#
|
10
|
-
# @param flow_id [ String ] 订单号
|
11
|
-
# @param true_name [ String ] 真实姓名
|
12
|
-
# @param identity_id [ String ] 身份证号
|
13
|
-
# @param phone [ String ] 手机号
|
14
|
-
# @param bus_way [ String ] 00:PC端;01:手机端;02:Pad端;03:其它
|
15
|
-
#
|
16
|
-
# @return [ Hash ] 结果集
|
17
|
-
# * :result [String] 业务结果:'S/F/P'
|
18
|
-
# * :request_params [Hash] 请求参数
|
19
|
-
# * :response [Object] 请求返回对象
|
20
|
-
# * :error_code [String] 错误代号
|
21
|
-
# * :error_msg [String] 错误信息
|
22
|
-
# * :data: 具体业务返回信息
|
23
|
-
# * :contracts [String] 用户签约协议号
|
24
|
-
# * :userName [String] 姓名
|
25
|
-
# * :userIdentity [String] 身份证
|
26
|
-
# * :userMobile [String] 手机号
|
27
|
-
#
|
28
|
-
def onekey_contract(flow_id, true_name, identity_id, phone, bus_way='01')
|
29
|
-
service = 'reapal.trust.onekeyContract'
|
30
|
-
post_path = '/reagw/agreement/agree.htm'
|
31
|
-
|
32
|
-
params = {
|
33
|
-
orderNo: flow_id,
|
34
|
-
userName: true_name,
|
35
|
-
userIdentity: identity_id,
|
36
|
-
userMobile: phone,
|
37
|
-
busway: bus_way,
|
38
|
-
remark: '',
|
39
|
-
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
40
|
-
}
|
41
|
-
|
42
|
-
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0000', '0007'])
|
43
|
-
|
44
|
-
Reapal.logger.info res
|
45
|
-
|
46
|
-
res
|
47
|
-
end
|
48
|
-
|
49
|
-
end # module
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|