reapal 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +4 -0
- data/lib/reapal/api/money/deposit_query.rb +1 -1
- data/lib/reapal/api/money/member_payment_query.rb +1 -1
- data/lib/reapal/api/money/sub_account.rb +1 -1
- 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_flow_id.rb +1 -1
- data/lib/reapal/api/order/query_by_single_flow_id.rb +1 -1
- data/lib/reapal/api/order/tender_serial_no_query.rb +1 -1
- data/lib/reapal/api/tender/history_tender_info_modify.rb +1 -1
- data/lib/reapal/api/tender/refund_guarant_payment_query.rb +1 -1
- data/lib/reapal/api/tender/tender_all_cancel.rb +1 -1
- data/lib/reapal/api/tender/tender_apply.rb +1 -1
- data/lib/reapal/api/tender/tender_apply_modify.rb +1 -1
- data/lib/reapal/api/tender/tender_auth_cancel.rb +1 -1
- data/lib/reapal/api/tender/tender_auth_query.rb +1 -1
- data/lib/reapal/api/tender/tender_close.rb +1 -1
- data/lib/reapal/api/tender/tender_finish.rb +1 -1
- data/lib/reapal/api/tender/tender_history_apply.rb +75 -0
- data/lib/reapal/api/tender/tender_onekey_invest.rb +2 -2
- data/lib/reapal/api/tender/tender_onekey_invest_history.rb +2 -2
- data/lib/reapal/api/tender/tender_onekey_refund.rb +1 -1
- 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 +1 -1
- data/lib/reapal/api/user/contract_query.rb +1 -1
- data/lib/reapal/api/user/mobile_query.rb +1 -1
- data/lib/reapal/api/user/modify_bind_bank_card.rb +1 -1
- data/lib/reapal/api/user/onekey_batch_contract.rb +1 -1
- data/lib/reapal/api/user/set_history_user_type.rb +1 -1
- data/lib/reapal/api/user/undo_bind_bank_card.rb +1 -1
- data/lib/reapal/form/bind_bank_card_form.rb +1 -1
- data/lib/reapal/form/business_auth_form.rb +1 -1
- data/lib/reapal/form/close_account_form.rb +1 -1
- data/lib/reapal/form/com_contract_form.rb +1 -1
- data/lib/reapal/form/deposit_apply_form.rb +2 -2
- data/lib/reapal/form/find_trade_password_form.rb +1 -1
- data/lib/reapal/form/member_payment_form.rb +1 -1
- data/lib/reapal/form/refund_guarant_payment_form.rb +1 -1
- data/lib/reapal/form/signle_tender_transfer_form.rb +1 -1
- data/lib/reapal/form/tender_apply_confirm_form.rb +1 -1
- data/lib/reapal/form/tender_invest_form.rb +1 -1
- data/lib/reapal/form/tender_refund_form.rb +1 -1
- data/lib/reapal/form/user_contract_form.rb +1 -1
- data/lib/reapal/form/withdraw_apply_form.rb +1 -1
- data/lib/reapal/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7365df81f94d0384ccb777e346e7b87b066a3fd8
|
4
|
+
data.tar.gz: 571fd324e739486019373b85103fc57f67e5d3f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37336a9768e4817a07ea375731f9e65d65dc603790f4a188cf0bbe106fd879e386db1cb2e0ddd7a1627178baf9f05e552575ba87d97726c9fafdbb23610b3f95
|
7
|
+
data.tar.gz: dd19351f6c89b6cb243b4c82c094f09a7ce34293a21a071c5ea126e2b60fd6b82f1abfbdbab07222819f211bc603904e19c714bbad1041a4929abe0925e16b26
|
data/.gitignore
CHANGED
@@ -33,7 +33,7 @@ module Reapal
|
|
33
33
|
tender_type, debit_contracts, guarant_contract=nil,
|
34
34
|
commissioned_contract=nil, tender_status=nil, busway='01', remark='')
|
35
35
|
service = 'reapal.trust.historyTenderInfoModify'
|
36
|
-
post_path = '/
|
36
|
+
post_path = '/tender/rest.htm'
|
37
37
|
|
38
38
|
params = {
|
39
39
|
orderNo: flow_id,
|
@@ -25,7 +25,7 @@ module Reapal
|
|
25
25
|
#
|
26
26
|
def tender_all_cancel(flow_id, tender_no, original_flow_id, busway="01", remark='')
|
27
27
|
service = 'reapal.trust.tenderAllCancel'
|
28
|
-
post_path = '/
|
28
|
+
post_path = '/tender/rest.htm'
|
29
29
|
|
30
30
|
params = {
|
31
31
|
orderNo: flow_id,
|
@@ -39,7 +39,7 @@ module Reapal
|
|
39
39
|
debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts,
|
40
40
|
guarant_contract=nil, commissioned_contract=nil, busway='01', remark='')
|
41
41
|
service = 'reapal.trust.tenderApply'
|
42
|
-
post_path = '/
|
42
|
+
post_path = '/tender/rest.htm'
|
43
43
|
|
44
44
|
params = {
|
45
45
|
orderNo: flow_id,
|
@@ -40,7 +40,7 @@ module Reapal
|
|
40
40
|
debit_term, debit_type, repay_date, expiry_date, tender_type, debit_contracts,
|
41
41
|
guarant_contract=nil, commissioned_contract=nil, tender_status=nil, busway='01', remark='')
|
42
42
|
service = 'reapal.trust.tenderApplyModify'
|
43
|
-
post_path = '/
|
43
|
+
post_path = '/tender/rest.htm'
|
44
44
|
|
45
45
|
params = {
|
46
46
|
orderNo: flow_id,
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
module Reapal
|
4
|
+
module Api
|
5
|
+
module Tender
|
6
|
+
module TenderHistoryApply
|
7
|
+
|
8
|
+
# 3.20 历史标的迁移
|
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 busway [String] 设备通道, '00':PC端;'01':手机端(默认);'02':Pad端;'03':其它
|
26
|
+
# @param remark [String] 备注
|
27
|
+
#
|
28
|
+
# @return [ Hash ] 结果集
|
29
|
+
# * :result [String] 业务结果:'S/F/P'
|
30
|
+
# * :request_params [Hash] 请求参数
|
31
|
+
# * :response [Object] 请求返回对象
|
32
|
+
# * :error_code [String] 错误代号
|
33
|
+
# * :error_msg [String] 错误信息
|
34
|
+
# * :data: 具体业务返回信息
|
35
|
+
# * :orderNo [String] 发标订单号
|
36
|
+
# * :resultCode [String] 结果代码
|
37
|
+
#
|
38
|
+
def tender_history_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='')
|
41
|
+
service = 'reapal.trust.tenderHistoryApply'
|
42
|
+
post_path = '/tender/rest.htm'
|
43
|
+
|
44
|
+
params = {
|
45
|
+
orderNo: flow_id,
|
46
|
+
tenderNo: tender_no,
|
47
|
+
tenderName: tender_name,
|
48
|
+
amount: money,
|
49
|
+
rate: rate,
|
50
|
+
feeAmount: fee_amount,
|
51
|
+
refundTerm: refund_term,
|
52
|
+
debitTerm: debit_term,
|
53
|
+
debitType: debit_type,
|
54
|
+
repayDate: repay_date.strftime("%Y%m%d"),
|
55
|
+
expiryDate: expiry_date.strftime("%Y%m%d"),
|
56
|
+
tenderType: tender_type,
|
57
|
+
debitContracts: debit_contracts,
|
58
|
+
guarantContract: guarant_contract,
|
59
|
+
commissionedContract: commissioned_contract,
|
60
|
+
busway: busway,
|
61
|
+
remark: remark,
|
62
|
+
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
63
|
+
}
|
64
|
+
|
65
|
+
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_apply, ['0000'])
|
66
|
+
|
67
|
+
Reapal.logger.info res
|
68
|
+
|
69
|
+
res
|
70
|
+
end
|
71
|
+
|
72
|
+
end # module TenderApply
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -30,7 +30,7 @@ module Reapal
|
|
30
30
|
def tender_onekey_invest(flow_id, tender_no, amount, coupon_amt,
|
31
31
|
invest_contracts, busway='01', remark='')
|
32
32
|
service = 'reapal.trust.onekeyInvest'
|
33
|
-
post_path = '/
|
33
|
+
post_path = '/tender/rest.htm'
|
34
34
|
|
35
35
|
params = {
|
36
36
|
orderNo: flow_id,
|
@@ -43,7 +43,7 @@ module Reapal
|
|
43
43
|
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
44
44
|
}
|
45
45
|
|
46
|
-
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_onekey_invest, ['0000']
|
46
|
+
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_onekey_invest, ['0000'])
|
47
47
|
|
48
48
|
if 'S' == res[:result] && '0001' == res[:data][:resultCode]
|
49
49
|
res[:result] = 'F'
|
@@ -28,7 +28,7 @@ module Reapal
|
|
28
28
|
#
|
29
29
|
def tender_onekey_invest_history(tender_no, invest_details, remark='')
|
30
30
|
service = 'reapal.trust.onekeyInvestHistory'
|
31
|
-
post_path = '/
|
31
|
+
post_path = '/tender/rest.htm'
|
32
32
|
|
33
33
|
params = {
|
34
34
|
tenderNo: tender_no,
|
@@ -37,7 +37,7 @@ module Reapal
|
|
37
37
|
applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
|
38
38
|
}
|
39
39
|
|
40
|
-
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_onekey_invest, ['0000']
|
40
|
+
res = operate_post(:operate, service, params, post_path, Http::ErrorCode.tender_onekey_invest, ['0000'])
|
41
41
|
|
42
42
|
Reapal.logger.info res
|
43
43
|
|
@@ -31,7 +31,7 @@ module Reapal
|
|
31
31
|
def tender_repayment_complete(flow_id, tender_no, periods, comp_principal, comp_interest,
|
32
32
|
comp_poundage, comp_amount, comp_time, busway='01', remark='')
|
33
33
|
service = 'reapal.trust.repaymentComplete'
|
34
|
-
post_path = '/
|
34
|
+
post_path = '/tender/rest.htm'
|
35
35
|
|
36
36
|
params = {
|
37
37
|
orderNo: flow_id,
|
@@ -31,7 +31,7 @@ module Reapal
|
|
31
31
|
#
|
32
32
|
def tender_repayment_project(flow_id, tender_no, project_details, busway='01', remark='')
|
33
33
|
service = 'reapal.trust.repaymentProject'
|
34
|
-
post_path = '/
|
34
|
+
post_path = '/tender/rest.htm'
|
35
35
|
|
36
36
|
params = {
|
37
37
|
orderNo: flow_id,
|
@@ -22,7 +22,7 @@ module Reapal
|
|
22
22
|
#
|
23
23
|
def set_history_user_type(flow_id, contracts, user_type)
|
24
24
|
service = 'reapal.trust.setHistoryUserType'
|
25
|
-
post_path = '/
|
25
|
+
post_path = '/agreement/setHistoryUserType.htm'
|
26
26
|
|
27
27
|
params = {
|
28
28
|
orderNo: flow_id,
|
@@ -23,7 +23,7 @@ module Reapal
|
|
23
23
|
#
|
24
24
|
def undo_bind_bank_card(flow_id, contracts, bank_account_no)
|
25
25
|
service = 'reapal.trust.undoBindBankCard'
|
26
|
-
post_path = '/
|
26
|
+
post_path = '/bankcard/undoBindBankApi.htm'
|
27
27
|
|
28
28
|
params = {
|
29
29
|
orderNo: flow_id,
|
@@ -23,7 +23,7 @@ module Reapal
|
|
23
23
|
#
|
24
24
|
def bind_bank_card_form(flow_id, contract, return_url, notify_url, busway='01')
|
25
25
|
service = 'reapal.trust.bankCardAddV3'
|
26
|
-
post_path = '/
|
26
|
+
post_path = '/bankcard/toBankCardBinding.htm'
|
27
27
|
|
28
28
|
params = {
|
29
29
|
orderNo: flow_id,
|
@@ -23,7 +23,7 @@ module Reapal
|
|
23
23
|
#
|
24
24
|
def close_account_form(flow_id, contract, return_url, notify_url, busway='01')
|
25
25
|
service = 'reapal.trust.closeAccount'
|
26
|
-
post_path = '/
|
26
|
+
post_path = '/agreement/closeAccountApply.htm'
|
27
27
|
|
28
28
|
params = {
|
29
29
|
orderNo: flow_id,
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
module Reapal
|
4
4
|
module Form
|
5
|
-
module
|
5
|
+
module DepositApplyForm
|
6
6
|
|
7
7
|
# 2.1 充值
|
8
8
|
#
|
@@ -29,7 +29,7 @@ module Reapal
|
|
29
29
|
busway = '01', remark='')
|
30
30
|
|
31
31
|
service = 'reapal.trust.depositApply'
|
32
|
-
post_path = '/
|
32
|
+
post_path = '/service/deposit.htm'
|
33
33
|
|
34
34
|
params = {
|
35
35
|
orderNo: flow_id,
|
@@ -22,7 +22,7 @@ module Reapal
|
|
22
22
|
#
|
23
23
|
def find_trade_password_form(contract, return_url, notify_url, busway='01')
|
24
24
|
service = 'reapal.trust.findTradePassword'
|
25
|
-
post_path = '/
|
25
|
+
post_path = '/findTradePassword/findTradePassword.htm'
|
26
26
|
|
27
27
|
params = {
|
28
28
|
contracts: contract,
|
@@ -22,7 +22,7 @@ module Reapal
|
|
22
22
|
#
|
23
23
|
def tender_apply_confirm_form(flow_id, tender_no, return_url, notify_url, bus_way='01', remark=nil)
|
24
24
|
service = 'reapal.trust.tenderApplyConfirm'
|
25
|
-
post_path = '/
|
25
|
+
post_path = '/tender/rest.htm'
|
26
26
|
|
27
27
|
params = {
|
28
28
|
orderNo: flow_id,
|
@@ -24,7 +24,7 @@ module Reapal
|
|
24
24
|
#
|
25
25
|
def user_contract_form(flow_id, true_name, identity_id, user_type, return_url, notify_url, bus_way='01', remark='')
|
26
26
|
service = 'reapal.trust.userContract'
|
27
|
-
post_path = '/
|
27
|
+
post_path = '/agreement/agree.htm'
|
28
28
|
|
29
29
|
params = {
|
30
30
|
orderNo: flow_id,
|
@@ -26,7 +26,7 @@ module Reapal
|
|
26
26
|
#
|
27
27
|
def withdraw_apply_form(contract, flow_id, money, charge, return_url, notify_url, remark='', busway='01')
|
28
28
|
service = 'reapal.trust.withdrawApply'
|
29
|
-
post_path = '/
|
29
|
+
post_path = '/service/withdraw.htm'
|
30
30
|
|
31
31
|
params = {
|
32
32
|
orderNo: flow_id,
|
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.12.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-02
|
11
|
+
date: 2018-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -142,6 +142,7 @@ files:
|
|
142
142
|
- lib/reapal/api/tender/tender_auth_query.rb
|
143
143
|
- lib/reapal/api/tender/tender_close.rb
|
144
144
|
- lib/reapal/api/tender/tender_finish.rb
|
145
|
+
- lib/reapal/api/tender/tender_history_apply.rb
|
145
146
|
- lib/reapal/api/tender/tender_onekey_invest.rb
|
146
147
|
- lib/reapal/api/tender/tender_onekey_invest_history.rb
|
147
148
|
- lib/reapal/api/tender/tender_onekey_refund.rb
|