reapal 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/reapal/api/user/com_onekey_batch_contract.rb +93 -0
- data/lib/reapal/form/com_uploading_info_form.rb +40 -0
- data/lib/reapal/version.rb +1 -1
- metadata +7 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2d274177d6145a1473054bafb1c2830ba09ce0e
|
4
|
+
data.tar.gz: 6045ce7f6ebaf59d36445e466d83f475060eff57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b19a1a2a181af0659d7611681489896d54f4d9e3627aeeaff4c2fe17a2c18fa2e39ce37d9787fec65072b25d9d8a00001e11bc661bd0334c1fe3f7683a7181cd
|
7
|
+
data.tar.gz: 5fb98be66bb3cccf2f60a70e7dee0a4d5e62e9153bc6707594d44ef0a3fee43d1288a5239121ea48bb6551f9451e0a674b7f914a99f97735250c5f1d818858fc
|
data/.gitignore
CHANGED
@@ -0,0 +1,93 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module Reapal
|
4
|
+
module Api
|
5
|
+
module User
|
6
|
+
module ComOnekeyBatchContract
|
7
|
+
|
8
|
+
# 5.3 历史企业用户迁移
|
9
|
+
#
|
10
|
+
# @param flow_id [ String ] 订单号
|
11
|
+
# @param corp_name [ String ] 法人代表姓名
|
12
|
+
# @param corp_identity [ String ] 法人代表身份证号
|
13
|
+
# @param corp_phone [ String ] 法人代表手机号
|
14
|
+
# @param manager_name [ String ] 经办人姓名
|
15
|
+
# @param manager_identity [ String ] 经办人身份证号
|
16
|
+
# @param manager_phone [ String ] 经办人身份证号
|
17
|
+
# @param com_name [ String ] 企业名称
|
18
|
+
# @param com_license [ String ] 企业组织机构代码/社会征信号
|
19
|
+
# @param lic_start_date [ Time ] 企业组织机构证起始日
|
20
|
+
# @param lic_end_date [ Time ] 企业组织机构证截止日
|
21
|
+
# @param bank_code [ String ] 银行代码
|
22
|
+
# @param card_id [ String ] 企业对公账户号
|
23
|
+
# @param user_type [ String ] 注册类别 01:出借人 02:借款人 03:担保人 04:受托方
|
24
|
+
# @param email [ String ] 企业邮箱
|
25
|
+
# @param busway [ String ] 设备通道 00:PC端
|
26
|
+
# @param remark [ String ] 备注
|
27
|
+
#
|
28
|
+
# @return [ Hash ] 结果集
|
29
|
+
# * :result [String] "S"/"F"/"P"
|
30
|
+
# * :error_msg [String] 错误提示
|
31
|
+
# * :error_code [String] 融宝的错误编号
|
32
|
+
# * :data [Hash] 成功数据,返回的数据不一定是上送数据,比如手机号。所以要以返回数据为准
|
33
|
+
# * :orderNo: [String] 签约订单号
|
34
|
+
# * :contracts [String] 企业签约协议号
|
35
|
+
# * :resultCode [String] 结果代码 0000:申请成功
|
36
|
+
# * :corpName [String] 法人代表姓名
|
37
|
+
# * :corpIdentity [String] 法人代表身份证号
|
38
|
+
# * :corpMobile [String] 法人代表手机号
|
39
|
+
# * :managerNmae [String] 经办人姓名
|
40
|
+
# * :managerIdentity [String] 经办人身份证号
|
41
|
+
# * :managerMobile [String] 经办人手机号
|
42
|
+
# * :comName [String] 企业名称
|
43
|
+
# * :comLicense [String] 企业组织机构/社会征信号
|
44
|
+
# * :licStartDate [String] 企业组织机构证起始日
|
45
|
+
# * :licEndDate [String] 企业组织机构证截止日
|
46
|
+
# * :bankAccountNo [String] 银行卡后四位
|
47
|
+
# * :bankCode [String] 银行编码
|
48
|
+
# * :userType [String] 注册类别
|
49
|
+
# * :email [String] 企业邮箱
|
50
|
+
# * :remark [String] 备注
|
51
|
+
# * :processTime [String] 处理时间
|
52
|
+
#
|
53
|
+
def com_onekey_batch_contract(flow_id, corp_name, corp_identity, corp_phone, manager_name,
|
54
|
+
manager_identity, manager_phone, com_name, com_license, lic_start_date,
|
55
|
+
lic_end_date, bank_code, card_id, user_type, email,
|
56
|
+
return_url, notify_url, busway='00',remark='')
|
57
|
+
service = 'reapal.trust.oneKeyBatchCompInformationTransfer'
|
58
|
+
post_path = '/agreement/agree.htm'
|
59
|
+
|
60
|
+
params = {
|
61
|
+
orderNo: flow_id,
|
62
|
+
corpName: corp_name,
|
63
|
+
corpIdentity: corp_identity,
|
64
|
+
corpMobile: corp_phone,
|
65
|
+
managerName: manager_name,
|
66
|
+
managerIdentity: manager_identity,
|
67
|
+
managerMobile: manager_phone,
|
68
|
+
comName: com_name,
|
69
|
+
comLicense: com_license,
|
70
|
+
licStartDate: lic_start_date.strftime('%Y%m%d'),
|
71
|
+
licEndDate: lic_end_date.strftime('%Y%m%d'),
|
72
|
+
busway: busway,
|
73
|
+
remark: remark,
|
74
|
+
bankCode: bank_code,
|
75
|
+
bankAccountNo: card_id,
|
76
|
+
userType: user_type,
|
77
|
+
email: email,
|
78
|
+
returnUrl: return_url,
|
79
|
+
notifyUrl: notify_url,
|
80
|
+
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S')
|
81
|
+
}
|
82
|
+
|
83
|
+
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.contract_create, ['0000', '0007'])
|
84
|
+
|
85
|
+
Reapal.logger.info res
|
86
|
+
|
87
|
+
res
|
88
|
+
end
|
89
|
+
|
90
|
+
end # module Agree
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
module Reapal
|
2
|
+
module Form
|
3
|
+
module ComUploadingInfoForm
|
4
|
+
|
5
|
+
# 5.4 企业迁移用户激活
|
6
|
+
#
|
7
|
+
# @param flow_id [ String ] 订单号
|
8
|
+
# @param contract [ String ] 协议号
|
9
|
+
# @param return_url [ String ] 回调 URL
|
10
|
+
# @param notify_url [ String ] 通知 URL
|
11
|
+
# @param remark [ String ] 备注
|
12
|
+
#
|
13
|
+
# @return [ Hash ] 结果集
|
14
|
+
# * :form_method
|
15
|
+
# * :method
|
16
|
+
# * :url
|
17
|
+
# * :form_data
|
18
|
+
# * :merchant_id
|
19
|
+
# * :encryptkey
|
20
|
+
# * :data
|
21
|
+
#
|
22
|
+
def com_uploading_info_form(flow_id, contract, return_url, notify_url, remark='')
|
23
|
+
service = 'reapal.trust.comUploadingInfo'
|
24
|
+
post_path = '/agreement/agree.htm'
|
25
|
+
|
26
|
+
params = {
|
27
|
+
orderNo: flow_id,
|
28
|
+
contracts: contract,
|
29
|
+
returnUrl: return_url,
|
30
|
+
notifyUrl: notify_url,
|
31
|
+
remark: remark,
|
32
|
+
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
33
|
+
}
|
34
|
+
|
35
|
+
get_form_data(service, params, post_path)
|
36
|
+
end
|
37
|
+
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
data/lib/reapal/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reapal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- tony
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -106,7 +106,7 @@ dependencies:
|
|
106
106
|
- - ">="
|
107
107
|
- !ruby/object:Gem::Version
|
108
108
|
version: 1.8.4
|
109
|
-
description: 富民银行的存管实现
|
109
|
+
description: "富民银行的存管实现"
|
110
110
|
email:
|
111
111
|
- tony@omniaccount.com
|
112
112
|
executables: []
|
@@ -150,6 +150,7 @@ files:
|
|
150
150
|
- lib/reapal/api/tender/tender_repayment_project.rb
|
151
151
|
- lib/reapal/api/user/balance_query.rb
|
152
152
|
- lib/reapal/api/user/bind_card_query.rb
|
153
|
+
- lib/reapal/api/user/com_onekey_batch_contract.rb
|
153
154
|
- lib/reapal/api/user/contract_query.rb
|
154
155
|
- lib/reapal/api/user/mobile_query.rb
|
155
156
|
- lib/reapal/api/user/modify_bind_bank_card.rb
|
@@ -165,6 +166,7 @@ files:
|
|
165
166
|
- lib/reapal/form/close_account_form.rb
|
166
167
|
- lib/reapal/form/com_contract_form.rb
|
167
168
|
- lib/reapal/form/com_update_info_form.rb
|
169
|
+
- lib/reapal/form/com_uploading_info_form.rb
|
168
170
|
- lib/reapal/form/deposit_apply_form.rb
|
169
171
|
- lib/reapal/form/find_trade_password_form.rb
|
170
172
|
- lib/reapal/form/form_helper.rb
|
@@ -212,8 +214,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
214
|
version: '0'
|
213
215
|
requirements: []
|
214
216
|
rubyforge_project:
|
215
|
-
rubygems_version: 2.
|
217
|
+
rubygems_version: 2.4.5.1
|
216
218
|
signing_key:
|
217
219
|
specification_version: 4
|
218
|
-
summary: 融宝支付的SDK
|
220
|
+
summary: "融宝支付的SDK"
|
219
221
|
test_files: []
|