reapal 0.9.3 → 0.9.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/reapal/api/tender/tender_finish.rb +9 -9
- data/lib/reapal/api/tender/tender_repayment_project.rb +1 -1
- data/lib/reapal/api/user/contract_query.rb +1 -1
- data/lib/reapal/form/withdraw_apply_form.rb +3 -1
- data/lib/reapal/http/error_code/common.rb +8 -1
- data/lib/reapal/http/error_code/money.rb +4 -4
- data/lib/reapal/http/error_code/order.rb +2 -2
- data/lib/reapal/http/error_code/tender.rb +3 -3
- data/lib/reapal/http/error_code/user.rb +5 -5
- data/lib/reapal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f07450399aff5e61821fcee6cb015cea5a9dba50
|
|
4
|
+
data.tar.gz: 012e44028f84adc559630c4d0c1d1f42c8623876
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bb0f870317b28a8221fe3f43bf4c3870159b6a0d7319ab462f7b7c9100c525097b9a9a02c0694657eff5588c063a2157fc649749eafc699940136e842191861b
|
|
7
|
+
data.tar.gz: 5a5e61e47f8480856ce748ff9d8c09971e29a01bb03346c795153253f38584a122d548671ea93a46b4c2eb1c5184f3b824f12fb65efa228cafecdcdc5cad632b
|
|
@@ -11,16 +11,16 @@ module Reapal
|
|
|
11
11
|
# @param tender_no [String] 商户系统标的号
|
|
12
12
|
# @param debit_contracts [String] 借款方协议号
|
|
13
13
|
# @param debit_details [JSON] 借款方分账
|
|
14
|
-
# *seriaNo [String] 商户流水号
|
|
15
|
-
# *payeeContracts [String] 收款方协议号
|
|
16
|
-
# *amount [BigDecimal] 金额
|
|
17
|
-
# *remark [String] 备注
|
|
14
|
+
# * :seriaNo [String] 商户流水号
|
|
15
|
+
# * :payeeContracts [String] 收款方协议号
|
|
16
|
+
# * :amount [BigDecimal] 金额
|
|
17
|
+
# * :remark [String] 备注
|
|
18
18
|
# @param invest_details [JSON] 投资方分账
|
|
19
|
-
# *seriaNo [String] 商户流水号
|
|
20
|
-
# *investContracts [String] 投资方协议号
|
|
21
|
-
# *payeeContracts [String] 收款方协议号
|
|
22
|
-
# *amount [BigDecimal] 金额
|
|
23
|
-
# *remark [String] 备注
|
|
19
|
+
# * :seriaNo [String] 商户流水号
|
|
20
|
+
# * :investContracts [String] 投资方协议号
|
|
21
|
+
# * :payeeContracts [String] 收款方协议号
|
|
22
|
+
# * :amount [BigDecimal] 金额
|
|
23
|
+
# * :remark [String] 备注
|
|
24
24
|
# @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
|
|
25
25
|
# @param remark [String] 备注
|
|
26
26
|
#
|
|
@@ -15,7 +15,7 @@ module Reapal
|
|
|
15
15
|
# * :projInterest [BigDecimal] 计划还款利息
|
|
16
16
|
# * :projPoundage [BigDecimal] 计划还款手续费
|
|
17
17
|
# * :projAmount [BigDecimal] 计划还款总金额
|
|
18
|
-
# * :projTime [
|
|
18
|
+
# * :projTime [String] 计划还款日期, 'YYYYMMDD'
|
|
19
19
|
# @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
|
|
20
20
|
# @param remark [String] 备注
|
|
21
21
|
#
|
|
@@ -28,7 +28,7 @@ module Reapal
|
|
|
28
28
|
# * :email [String] 企业邮箱
|
|
29
29
|
# * :remark [String] 备注
|
|
30
30
|
#
|
|
31
|
-
def contract_query(
|
|
31
|
+
def contract_query(onekey_com_contract_flow_id)
|
|
32
32
|
service = 'reapal.trust.contractQuery'
|
|
33
33
|
post_path = '/reagw/agreement/agreeApi.htm'
|
|
34
34
|
|
|
@@ -12,6 +12,7 @@ module Reapal
|
|
|
12
12
|
# @param charge [Number] 手续费,2位小数
|
|
13
13
|
# @param return_url [String] 回调 url
|
|
14
14
|
# @param notify_url [String] 通知 url
|
|
15
|
+
# @param remark [String] 默认是空
|
|
15
16
|
# @param busway [String] 设备通道,默认手机端。00:PC端;01:手机端;02:Pad端;03:其它
|
|
16
17
|
#
|
|
17
18
|
# @return [ Hash ] 结果集
|
|
@@ -23,7 +24,7 @@ module Reapal
|
|
|
23
24
|
# * :encryptkey
|
|
24
25
|
# * :data
|
|
25
26
|
#
|
|
26
|
-
def withdraw_apply_form(contract, flow_id, money, charge, return_url, notify_url, busway='01')
|
|
27
|
+
def withdraw_apply_form(contract, flow_id, money, charge, return_url, notify_url, remark='', busway='01')
|
|
27
28
|
service = 'reapal.trust.withdrawApply'
|
|
28
29
|
post_path = '/reagw/service/withdraw.htm'
|
|
29
30
|
|
|
@@ -33,6 +34,7 @@ module Reapal
|
|
|
33
34
|
amount: money,
|
|
34
35
|
charge: charge,
|
|
35
36
|
busway: busway,
|
|
37
|
+
remark: remark,
|
|
36
38
|
returnUrl: return_url,
|
|
37
39
|
notifyUrl: notify_url,
|
|
38
40
|
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
|
@@ -5,7 +5,14 @@ module Reapal
|
|
|
5
5
|
module ErrorCode
|
|
6
6
|
|
|
7
7
|
def self.common
|
|
8
|
-
|
|
8
|
+
%w( 0001 0002 0003 0004 0005 0006 0007 0008 0009 0010 0011
|
|
9
|
+
0012 0013 0014 0015 0016 0017 0099 9001 9002 9003 9004
|
|
10
|
+
9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015
|
|
11
|
+
9016 9017 9018 9019 9020 9021 9022 9023 9024 9025 9026
|
|
12
|
+
9027 9028 9029 9030 9031 9032 9033 9034 9035 9036 9037
|
|
13
|
+
9038 9039 9040 9041 9042 9043 9044 9045 9046 9047 9048
|
|
14
|
+
9049 9050 9051 9052 9053 9054 9055 9056 9056 9057 9058
|
|
15
|
+
9059 9060 9061 9062 9063 9064 9065 9066 9067 9068 9069 )
|
|
9
16
|
end
|
|
10
17
|
|
|
11
18
|
end # module ErrorCode
|
|
@@ -26,7 +26,7 @@ module Reapal
|
|
|
26
26
|
3078 3079 3080 3081 3083 3084 3086 3088 3094 3095
|
|
27
27
|
3096 3097 3098 3099 3100 3135 3136 4001 4002 4003
|
|
28
28
|
4004 4005 4006 4007 4008 4009 4010 4011 4012 4013
|
|
29
|
-
4014 4015 4016 4017 4018 4019 6001 6002)
|
|
29
|
+
4014 4015 4016 4017 4018 4019 6001 6002) | common
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def self.deposit_apply_api
|
|
@@ -51,15 +51,15 @@ module Reapal
|
|
|
51
51
|
@_withdraw_query ||= %w(0301 0302 0303 0304 0305 0306 0307 0308 0309
|
|
52
52
|
0310 0311 0312 0313 0314 0315 0316 0317 0318 0319 0320 0321 0322
|
|
53
53
|
0333 0324 0326 0327 0328 0329 0330 0331 0332 0333 0334 0335 0336
|
|
54
|
-
0337 0338 0339 0340)
|
|
54
|
+
0337 0338 0339 0340) | common
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
def self.sub_account
|
|
58
|
-
@_sub_account ||= %w(0001 1601 1602 1603 1604 1605 1606 1607)
|
|
58
|
+
@_sub_account ||= %w(0001 1601 1602 1603 1604 1605 1606 1607) | common
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
def self.sub_account_query
|
|
62
|
-
@_sub_account_query ||= %w(1608 1609 1610 1611)
|
|
62
|
+
@_sub_account_query ||= %w(1608 1609 1610 1611) | common
|
|
63
63
|
end
|
|
64
64
|
|
|
65
65
|
end # module ErrorCode
|
|
@@ -5,11 +5,11 @@ module Reapal
|
|
|
5
5
|
module ErrorCode
|
|
6
6
|
|
|
7
7
|
def self.query_by_single_flow_id
|
|
8
|
-
@_query_by_single_flow_id ||=
|
|
8
|
+
@_query_by_single_flow_id ||= %w(1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 0001) | tender_common
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def self.query_by_flow_id
|
|
12
|
-
@_query_by_flow_id ||=
|
|
12
|
+
@_query_by_flow_id ||= %w(1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 0001) | tender_common
|
|
13
13
|
end
|
|
14
14
|
|
|
15
15
|
end # module ErrorCode
|
|
@@ -10,14 +10,14 @@ module Reapal
|
|
|
10
10
|
0420 0421 0422 0423 0424 0425 0426 0427 0428
|
|
11
11
|
0429 0430 0431 0432 0433 0434 0435 0436 0437
|
|
12
12
|
0438 0439 0440 0441 0442 0443 0444 0445 0446
|
|
13
|
-
0447 0448 0449 0450)
|
|
13
|
+
0447 0448 0449 0450) | common
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def self.tender_cancel
|
|
17
17
|
@_tender_cancel ||= %w(0700 0701 0702 0703 0704 0705 0706 0707 0708
|
|
18
18
|
0709 0710 0711 0712 0713 0714 0715 0716 0717
|
|
19
19
|
0718 0719 1501 1502 1503 1504 1505 1506 1507
|
|
20
|
-
1508)
|
|
20
|
+
1508) | tender_common
|
|
21
21
|
end
|
|
22
22
|
|
|
23
23
|
|
|
@@ -26,7 +26,7 @@ module Reapal
|
|
|
26
26
|
0509 0510 0511 0512 0513 0514 0515 0516 0517
|
|
27
27
|
0518 0519 0520 0521 0522 0523 0524 0525 0526
|
|
28
28
|
0527 0528 0529 0530 0531 0532 0533 0534 0535
|
|
29
|
-
0536)
|
|
29
|
+
0536) | tender_common
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def self.tender_repayment_project
|
|
@@ -5,7 +5,7 @@ module Reapal
|
|
|
5
5
|
module ErrorCode
|
|
6
6
|
|
|
7
7
|
def self.contract_common
|
|
8
|
-
['0103']
|
|
8
|
+
['0103'] | common
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
def self.contract_create
|
|
@@ -14,7 +14,7 @@ module Reapal
|
|
|
14
14
|
'0119', '0120', '0121', '0122', '0123', '0124', '0125', '0126', '0127',
|
|
15
15
|
'0128', '0129', '0130', '0131', '0132', '0150', '0151', '0152', '0153',
|
|
16
16
|
'0154', '0155', '0156', '0157', '0158', '0159', '0160', '0161', '0162',
|
|
17
|
-
'0163', '0164', '0165', '0166', '0167', '0525']
|
|
17
|
+
'0163', '0164', '0165', '0166', '0167', '0525'] | contract_common
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def self.com_contract_create
|
|
@@ -22,18 +22,18 @@ module Reapal
|
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def self.contract_query
|
|
25
|
-
['0113']
|
|
25
|
+
['0113'] | contract_common
|
|
26
26
|
end
|
|
27
27
|
|
|
28
28
|
def self.mobile
|
|
29
|
-
@_mobile ||= ['1108']
|
|
29
|
+
@_mobile ||= ['1108'] | contract_common
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def self.bind_card
|
|
33
33
|
@_bind_card ||= %w(9060 9064 9065 9083 9084 9085 0017 0210 0302 0303 0328
|
|
34
34
|
0329 0330 0332 0333 0335 0339 0340 0341 0342 0343
|
|
35
35
|
0344 0345 0346 0347 0348 0350 0351 0352 0358 0359
|
|
36
|
-
0360 0362 0363)
|
|
36
|
+
0360 0362 0363) | contract_common
|
|
37
37
|
end
|
|
38
38
|
|
|
39
39
|
end # module ErrorCode
|
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.9.
|
|
4
|
+
version: 0.9.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- tony
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-12-
|
|
11
|
+
date: 2017-12-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|