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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a074850a4e4728b637d6915008604056eb888dac
|
4
|
+
data.tar.gz: d0efdad45edbddb795b371a72b06c030082809d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33a144d4c8e2ca30e79e3410aa4ebda45c2421119009b72fa0e9a914448fa3ecb29fa36e40f71ac06a6285a6e29a413171745fb1a41c0ca47dc3e12a8b4471b0
|
7
|
+
data.tar.gz: 3d411444bb4c59fc820c91d199aa3974f4010ee6d4b931138da3ca0b9d3288ebe4c3ee29acf669c8a8832f691a2ffba5808d438a883b6fccd8fd83a5132939d7
|
@@ -14,7 +14,7 @@ module Reapal
|
|
14
14
|
#
|
15
15
|
# @return [ Hash ] 结果集(见通用返回)
|
16
16
|
#
|
17
|
-
def operate_post(request_type, service, params, post_path, fail_codes, success_codes, version=
|
17
|
+
def operate_post(request_type, service, params, post_path, fail_codes, success_codes, version='3.0')
|
18
18
|
response = Http.post(service, params, @config, post_path, version)
|
19
19
|
|
20
20
|
res = Reapal::Utils.api_result(params, response)
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module Reapal
|
4
|
+
module Api
|
5
|
+
module Money
|
6
|
+
module MemberPaymentQuery
|
7
|
+
|
8
|
+
# 2.7 会员缴费查询
|
9
|
+
#
|
10
|
+
# @param member_payment_flow_id [ String ] 缴费订单号
|
11
|
+
#
|
12
|
+
# @return [ Hash ] 结果集
|
13
|
+
# * :result [String] 业务结果:'S/F/P'
|
14
|
+
# * :request_params [Hash] 请求参数
|
15
|
+
# * :response [Object] 请求返回对象
|
16
|
+
# * :error_code [String] 错误代号
|
17
|
+
# * :error_msg [String] 错误信息
|
18
|
+
# * :data: 具体业务返回信息
|
19
|
+
# * :orderNo [String] 缴费订单号
|
20
|
+
# * :amount [String] 缴费金额
|
21
|
+
# * :resultCode [String] 结果代码 0000:缴费成功 0001:失败
|
22
|
+
#
|
23
|
+
def member_payment_query(member_payment_flow_id)
|
24
|
+
service = 'reapal.trust.memberPaymentQuery'
|
25
|
+
post_path = '/reagw/tender/rest.htm'
|
26
|
+
|
27
|
+
params = {
|
28
|
+
orderNo: member_payment_flow_id,
|
29
|
+
queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
30
|
+
}
|
31
|
+
|
32
|
+
res = operate_post(:query, service, params, post_path, Http::ErrorCode.member_payment_query, ['0000'])
|
33
|
+
|
34
|
+
if 'P' == res[:result] && '0001' == res[:data][:resultCode]
|
35
|
+
res[:result] = 'F'
|
36
|
+
end
|
37
|
+
|
38
|
+
Reapal.logger.info res
|
39
|
+
|
40
|
+
res
|
41
|
+
end
|
42
|
+
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
@@ -5,15 +5,15 @@ module Reapal
|
|
5
5
|
module Money
|
6
6
|
module SubAccount
|
7
7
|
|
8
|
-
# 2.
|
8
|
+
# 2.8 企业分账(API)
|
9
9
|
#
|
10
10
|
# @param flow_id [ String ] 完成订单号
|
11
11
|
# @param sub_type [ String ] 分账类型 1:代还款。2:分账。3:其它
|
12
12
|
# @param sub_details [ Array ] 分账明细
|
13
|
-
# *
|
14
|
-
# *
|
15
|
-
# * amount [BigDecimal] 金额
|
16
|
-
# *
|
13
|
+
# * :serialNo [String] 分账流水号
|
14
|
+
# * :payeeContracts [String] 收款方协议号
|
15
|
+
# * :amount [BigDecimal] 金额
|
16
|
+
# * :remark [String] 备注
|
17
17
|
# @param remark [ String ] 业务备注信息
|
18
18
|
#
|
19
19
|
# @return [ Hash ] 结果集
|
@@ -21,6 +21,7 @@ module Reapal
|
|
21
21
|
# * :data: 具体业务返回信息
|
22
22
|
# * :orderNo [String] 商户订单号
|
23
23
|
# * :realAmount [String] 实际投标金额(只针对投标查询)
|
24
|
+
# * :tenderStatus [String] 01:待确认 02:募集中 03:已放款 04:已结清 05:已逾期 99:已关闭(只针对发标查询)
|
24
25
|
# * :resultCode [String] 结果代码
|
25
26
|
#
|
26
27
|
def query_by_single_flow_id(flow_id, service_type)
|
@@ -0,0 +1,63 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module Reapal
|
4
|
+
module Api
|
5
|
+
module Tender
|
6
|
+
module HistoryTenderInfoModify
|
7
|
+
|
8
|
+
# 3.19 历史标的信息修改
|
9
|
+
#
|
10
|
+
# @param flow_id [ String ] 订单号
|
11
|
+
# @param tender_no [ String ] 商户系统标的号
|
12
|
+
# @param fee_amount [ BigDecimal ] 手续费
|
13
|
+
# @param refund_term [ String ] 还款期数
|
14
|
+
# @param tender_type [String] 标的类别,是否允许自动投标。00:不允许自动投标 01:允许自动投标
|
15
|
+
# @param debit_contracts [String] 借款方协议号
|
16
|
+
# @param guarant_contract [String] 担保方协议号
|
17
|
+
# @param commissioned_contract [String] 受托方协议号
|
18
|
+
# @param tender_status [String] 标的状态 02:募集中 03:已放款 04:已结清
|
19
|
+
# @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
|
20
|
+
# @param remark [String] 备注
|
21
|
+
#
|
22
|
+
# @return [ Hash ] 结果集
|
23
|
+
# * :result [String] 业务结果:'S/F/P'
|
24
|
+
# * :request_params [Hash] 请求参数
|
25
|
+
# * :response [Object] 请求返回对象
|
26
|
+
# * :error_code [String] 错误代号
|
27
|
+
# * :error_msg [String] 错误信息
|
28
|
+
# * :data: 具体业务返回信息
|
29
|
+
# * :orderNo [String] 订单号
|
30
|
+
# * :resultCode [String] 结果代码 0000:成功
|
31
|
+
#
|
32
|
+
def history_tender_info_modify(flow_id, tender_no, fee_amount, refund_term,
|
33
|
+
tender_type, debit_contracts, guarant_contract=nil,
|
34
|
+
commissioned_contract=nil, tender_status=nil, busway='01', remark='')
|
35
|
+
service = 'reapal.trust.historyTenderInfoModify'
|
36
|
+
post_path = '/reagw/tender/rest.htm'
|
37
|
+
|
38
|
+
params = {
|
39
|
+
orderNo: flow_id,
|
40
|
+
tenderNo: tender_no,
|
41
|
+
feeAmount: fee_amount,
|
42
|
+
refundTerm: refund_term,
|
43
|
+
tenderType: tender_type,
|
44
|
+
debitContracts: debit_contracts,
|
45
|
+
guarantContract: guarant_contract,
|
46
|
+
commissionedContract: commissioned_contract,
|
47
|
+
tenderStatus: tender_status,
|
48
|
+
busway: busway,
|
49
|
+
remark: remark,
|
50
|
+
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
51
|
+
}
|
52
|
+
|
53
|
+
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.history_tender_info_modify, ['0000'])
|
54
|
+
|
55
|
+
Reapal.logger.info res
|
56
|
+
|
57
|
+
res
|
58
|
+
end
|
59
|
+
|
60
|
+
end # module TenderApply
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module Reapal
|
4
|
+
module Api
|
5
|
+
module Tender
|
6
|
+
module RefundGuarantPaymentQuery
|
7
|
+
|
8
|
+
# 3.17 借款人还代偿款查询
|
9
|
+
#
|
10
|
+
# @param refund_flow_id [ String ] 还款订单号
|
11
|
+
#
|
12
|
+
# @return [ Hash ] 结果集
|
13
|
+
# * :result [String] 业务结果:'S/F/P'
|
14
|
+
# * :request_params [Hash] 请求参数
|
15
|
+
# * :response [Object] 请求返回对象
|
16
|
+
# * :error_code [String] 错误代号
|
17
|
+
# * :error_msg [String] 错误信息
|
18
|
+
# * :data: 具体业务返回信息
|
19
|
+
# * :orderNo [String] 订单号
|
20
|
+
# * :amount [Number] 金额
|
21
|
+
# * :resultCode [String]
|
22
|
+
#
|
23
|
+
def refund_guarant_payment_query(refund_flow_id)
|
24
|
+
service = 'reapal.trust.refundGuarantPaymentQuery'
|
25
|
+
post_path = '/reagw/tender/rest.htm'
|
26
|
+
|
27
|
+
params = {
|
28
|
+
orderNo: refund_flow_id,
|
29
|
+
queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
30
|
+
}
|
31
|
+
|
32
|
+
res = operate_post(:query, service, params, post_path, Http::ErrorCode.refund_guarant_payment_query, ['0000'])
|
33
|
+
|
34
|
+
Reapal.logger.info res
|
35
|
+
|
36
|
+
res
|
37
|
+
end
|
38
|
+
|
39
|
+
end # module TenderAuthQuery
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -12,12 +12,16 @@ module Reapal
|
|
12
12
|
# @param tender_name [String] 商户系统标的名称
|
13
13
|
# @param money [BigDecimal] 金额
|
14
14
|
# @param rate [BigDecimal] 利率 10.3表示10.3%
|
15
|
-
# @param
|
15
|
+
# @param fee_amount [BigDecimal] 手续费
|
16
|
+
# @param refund_term [String] 还款期数
|
17
|
+
# @param debit_term [Integer] 标的期限
|
16
18
|
# @param debit_type [String] 期数类型,年:0,月:1,日:2
|
17
19
|
# @param repay_date [Time] 还款日期
|
18
20
|
# @param expiry_date [Time] 投标截止日期
|
21
|
+
# @param tender_type [String] 标的类别,是否允许自动投标。00:不允许自动投标 01:允许自动投标
|
19
22
|
# @param debit_contracts [String] 借款方协议号
|
20
23
|
# @param guarant_contract [String] 担保方协议号
|
24
|
+
# @param commissioned_contract [String] 受托方协议号
|
21
25
|
# @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
|
22
26
|
# @param remark [String] 备注
|
23
27
|
#
|
@@ -31,9 +35,9 @@ module Reapal
|
|
31
35
|
# * :orderNo [String] 发标订单号
|
32
36
|
# * :resultCode [String] 结果代码
|
33
37
|
#
|
34
|
-
def tender_apply(flow_id, tender_no, tender_name, money, rate,
|
35
|
-
debit_term, debit_type, repay_date, expiry_date,
|
36
|
-
|
38
|
+
def tender_apply(flow_id, tender_no, tender_name, money, rate, fee_amount, refund_term,
|
39
|
+
debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts,
|
40
|
+
guarant_contract=nil, commissioned_contract=nil, busway='01', remark='')
|
37
41
|
service = 'reapal.trust.tenderApply'
|
38
42
|
post_path = '/reagw/tender/rest.htm'
|
39
43
|
|
@@ -43,12 +47,16 @@ module Reapal
|
|
43
47
|
tenderName: tender_name,
|
44
48
|
amount: money,
|
45
49
|
rate: rate,
|
50
|
+
feeAmount: fee_amount,
|
51
|
+
refundTerm: refund_term,
|
46
52
|
debitTerm: debit_term,
|
47
53
|
debitType: debit_type,
|
48
54
|
repayDate: repay_date.strftime("%Y%m%d"),
|
49
55
|
expiryDate: expiry_date.strftime("%Y%m%d"),
|
56
|
+
tenderType: tender_type,
|
50
57
|
debitContracts: debit_contracts,
|
51
58
|
guarantContract: guarant_contract,
|
59
|
+
commissionedContract: commissioned_contract,
|
52
60
|
busway: busway,
|
53
61
|
remark: remark,
|
54
62
|
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
@@ -0,0 +1,77 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module Reapal
|
4
|
+
module Api
|
5
|
+
module Tender
|
6
|
+
module TenderApplyModify
|
7
|
+
|
8
|
+
# 3.3 标的信息修改
|
9
|
+
#
|
10
|
+
# @param flow_id [String] 订单号
|
11
|
+
# @param tender_no [String] 商户系统标的号
|
12
|
+
# @param tender_name [String] 商户系统标的名称
|
13
|
+
# @param money [BigDecimal] 金额
|
14
|
+
# @param rate [BigDecimal] 利率 10.3表示10.3%
|
15
|
+
# @param fee_amount [BigDecimal] 手续费
|
16
|
+
# @param refund_term [String] 还款期数
|
17
|
+
# @param debit_term [Integer] 标的期限
|
18
|
+
# @param debit_type [String] 期数类型,年:0,月:1,日:2
|
19
|
+
# @param repay_date [Time] 还款日期
|
20
|
+
# @param expiry_date [Time] 投标截止日期
|
21
|
+
# @param tender_type [String] 标的类别,是否允许自动投标。00:不允许自动投标 01:允许自动投标
|
22
|
+
# @param debit_contracts [String] 借款方协议号
|
23
|
+
# @param guarant_contract [String] 担保方协议号
|
24
|
+
# @param commissioned_contract [String] 受托方协议号
|
25
|
+
# @param tender_status [String] 标的状态 如果变更标的信息,则该字段为空,其他信息字段不为空,且标的状态为 01待确认。02:募集中 03:已放款 04:已结清 05:已逾期
|
26
|
+
# @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
|
27
|
+
# @param remark [String] 备注
|
28
|
+
#
|
29
|
+
# @return [ Hash ] 结果集
|
30
|
+
# * :result [String] 业务结果:'S/F/P'
|
31
|
+
# * :request_params [Hash] 请求参数
|
32
|
+
# * :response [Object] 请求返回对象
|
33
|
+
# * :error_code [String] 错误代号
|
34
|
+
# * :error_msg [String] 错误信息
|
35
|
+
# * :data: 具体业务返回信息
|
36
|
+
# * :orderNo [String] 发标订单号
|
37
|
+
# * :resultCode [String] 结果代码
|
38
|
+
#
|
39
|
+
def tender_apply_modify(flow_id, tender_no, tender_name, money, rate, fee_amount, refund_term,
|
40
|
+
debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts,
|
41
|
+
guarant_contract=nil, commissioned_contract=nil, tender_status=nil, busway='01', remark='')
|
42
|
+
service = 'reapal.trust.tenderApplyModify'
|
43
|
+
post_path = '/reagw/tender/rest.htm'
|
44
|
+
|
45
|
+
params = {
|
46
|
+
orderNo: flow_id,
|
47
|
+
tenderNo: tender_no,
|
48
|
+
tenderName: tender_name,
|
49
|
+
amount: money,
|
50
|
+
rate: rate,
|
51
|
+
feeAmount: fee_amount,
|
52
|
+
refundTerm: refund_term,
|
53
|
+
debitTerm: debit_term,
|
54
|
+
debitType: debit_type,
|
55
|
+
repayDate: repay_date.strftime("%Y%m%d"),
|
56
|
+
expiryDate: expiry_date.strftime("%Y%m%d"),
|
57
|
+
tenderType: tender_type,
|
58
|
+
debitContracts: debit_contracts,
|
59
|
+
guarantContract: guarant_contract,
|
60
|
+
commissionedContract: commissioned_contract,
|
61
|
+
tenderStatus: tender_status,
|
62
|
+
busway: busway,
|
63
|
+
remark: remark,
|
64
|
+
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
65
|
+
}
|
66
|
+
|
67
|
+
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_apply_modify, ['0000'])
|
68
|
+
|
69
|
+
Reapal.logger.info res
|
70
|
+
|
71
|
+
res
|
72
|
+
end
|
73
|
+
|
74
|
+
end # module TenderApply
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -5,12 +5,11 @@ module Reapal
|
|
5
5
|
module Tender
|
6
6
|
module TenderAuthCancel
|
7
7
|
|
8
|
-
# 3.
|
8
|
+
# 3.14 标的授权取消
|
9
9
|
#
|
10
10
|
# @param flow_id [String] 订单号
|
11
11
|
# @param contracts [ String ] 用户协议号
|
12
|
-
# @param services [String] 授权业务。 02
|
13
|
-
# @param tender_no [String] 标的号
|
12
|
+
# @param services [String] 授权业务。 02 自动投标 03 自动还款 05 自动担保还款
|
14
13
|
# @param busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
|
15
14
|
# @param remark [String] 备注
|
16
15
|
#
|
@@ -24,7 +23,7 @@ module Reapal
|
|
24
23
|
# * :services [String] 授权业务。 02一键投标 ,03 为一键还款 04 一键债转
|
25
24
|
# * :resultCode [String] 结果代码
|
26
25
|
#
|
27
|
-
def tender_auth_cancel(flow_id, contracts, services,
|
26
|
+
def tender_auth_cancel(flow_id, contracts, services, busway="01", remark='')
|
28
27
|
service = 'reapal.trust.authCancel'
|
29
28
|
post_path = '/reagw/user/restApi.htm'
|
30
29
|
|
@@ -33,7 +32,6 @@ module Reapal
|
|
33
32
|
contracts: contracts,
|
34
33
|
services: services,
|
35
34
|
busway: busway,
|
36
|
-
tenderNo: tender_no,
|
37
35
|
remark: remark,
|
38
36
|
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
39
37
|
}
|
@@ -5,10 +5,10 @@ module Reapal
|
|
5
5
|
module Tender
|
6
6
|
module TenderAuthQuery
|
7
7
|
|
8
|
-
# 3.
|
8
|
+
# 3.13 标的授权查询
|
9
9
|
#
|
10
|
-
# @param flow_id [String] 操作订单号
|
11
|
-
# @param
|
10
|
+
# @param flow_id [ String ] 操作订单号
|
11
|
+
# @param contract [ String ] 用户协议号
|
12
12
|
#
|
13
13
|
# @return [ Hash ] 结果集
|
14
14
|
# * :result [String] 业务结果:'S/F/P'
|
@@ -17,19 +17,22 @@ module Reapal
|
|
17
17
|
# * :error_code [String] 错误代号
|
18
18
|
# * :error_msg [String] 错误信息
|
19
19
|
# * :data: 具体业务返回信息
|
20
|
+
# * :orderNo [String] 订单号
|
20
21
|
# * :contracts [String] 用户协议号
|
21
|
-
# * :servicesDetail [
|
22
|
-
# * :services [String] 授权服务。 02
|
22
|
+
# * :servicesDetail [Array] 授权明细
|
23
|
+
# * :services [String] 授权服务。 02 自动投标 ,03 自动还款 05 自动担保还款
|
23
24
|
# * :authLimit [String] 授权期限日期 YYYYMMDD
|
24
|
-
# * :
|
25
|
-
|
26
|
-
|
25
|
+
# * :amount [Number] 金额
|
26
|
+
# * :usedTotalAmount [Number] 已使用授权金额
|
27
|
+
# * :totalAmount [Number] 累计金额
|
28
|
+
#
|
29
|
+
def tender_auth_query(flow_id, contract)
|
27
30
|
service = 'reapal.trust.authQuery'
|
28
31
|
post_path = '/reagw/user/restApi.htm'
|
29
32
|
|
30
33
|
params = {
|
31
34
|
orderNo: flow_id,
|
32
|
-
contracts:
|
35
|
+
contracts: contract,
|
33
36
|
queryTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
34
37
|
}
|
35
38
|
|