reapal 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/lib/reapal/api/money/deposit_query.rb +1 -1
  4. data/lib/reapal/api/money/member_payment_query.rb +1 -1
  5. data/lib/reapal/api/money/sub_account.rb +1 -1
  6. data/lib/reapal/api/money/sub_account_query.rb +1 -1
  7. data/lib/reapal/api/money/withdraw_query.rb +1 -1
  8. data/lib/reapal/api/order/query_by_flow_id.rb +1 -1
  9. data/lib/reapal/api/order/query_by_single_flow_id.rb +1 -1
  10. data/lib/reapal/api/order/tender_serial_no_query.rb +1 -1
  11. data/lib/reapal/api/tender/history_tender_info_modify.rb +1 -1
  12. data/lib/reapal/api/tender/refund_guarant_payment_query.rb +1 -1
  13. data/lib/reapal/api/tender/tender_all_cancel.rb +1 -1
  14. data/lib/reapal/api/tender/tender_apply.rb +1 -1
  15. data/lib/reapal/api/tender/tender_apply_modify.rb +1 -1
  16. data/lib/reapal/api/tender/tender_auth_cancel.rb +1 -1
  17. data/lib/reapal/api/tender/tender_auth_query.rb +1 -1
  18. data/lib/reapal/api/tender/tender_close.rb +1 -1
  19. data/lib/reapal/api/tender/tender_finish.rb +1 -1
  20. data/lib/reapal/api/tender/tender_history_apply.rb +75 -0
  21. data/lib/reapal/api/tender/tender_onekey_invest.rb +2 -2
  22. data/lib/reapal/api/tender/tender_onekey_invest_history.rb +2 -2
  23. data/lib/reapal/api/tender/tender_onekey_refund.rb +1 -1
  24. data/lib/reapal/api/tender/tender_repayment_complete.rb +1 -1
  25. data/lib/reapal/api/tender/tender_repayment_project.rb +1 -1
  26. data/lib/reapal/api/user/balance_query.rb +1 -1
  27. data/lib/reapal/api/user/bind_card_query.rb +1 -1
  28. data/lib/reapal/api/user/contract_query.rb +1 -1
  29. data/lib/reapal/api/user/mobile_query.rb +1 -1
  30. data/lib/reapal/api/user/modify_bind_bank_card.rb +1 -1
  31. data/lib/reapal/api/user/onekey_batch_contract.rb +1 -1
  32. data/lib/reapal/api/user/set_history_user_type.rb +1 -1
  33. data/lib/reapal/api/user/undo_bind_bank_card.rb +1 -1
  34. data/lib/reapal/form/bind_bank_card_form.rb +1 -1
  35. data/lib/reapal/form/business_auth_form.rb +1 -1
  36. data/lib/reapal/form/close_account_form.rb +1 -1
  37. data/lib/reapal/form/com_contract_form.rb +1 -1
  38. data/lib/reapal/form/deposit_apply_form.rb +2 -2
  39. data/lib/reapal/form/find_trade_password_form.rb +1 -1
  40. data/lib/reapal/form/member_payment_form.rb +1 -1
  41. data/lib/reapal/form/refund_guarant_payment_form.rb +1 -1
  42. data/lib/reapal/form/signle_tender_transfer_form.rb +1 -1
  43. data/lib/reapal/form/tender_apply_confirm_form.rb +1 -1
  44. data/lib/reapal/form/tender_invest_form.rb +1 -1
  45. data/lib/reapal/form/tender_refund_form.rb +1 -1
  46. data/lib/reapal/form/user_contract_form.rb +1 -1
  47. data/lib/reapal/form/withdraw_apply_form.rb +1 -1
  48. data/lib/reapal/version.rb +1 -1
  49. metadata +3 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 606beb90fc779efcbbc32faaa650d34f79e90b01
4
- data.tar.gz: 91697974a90c22b41a41605f27dec4e83143ddb6
3
+ metadata.gz: 7365df81f94d0384ccb777e346e7b87b066a3fd8
4
+ data.tar.gz: 571fd324e739486019373b85103fc57f67e5d3f1
5
5
  SHA512:
6
- metadata.gz: 51a3e29d01da8dcfab156c9423ed614b294562c769b8cae410f53f878e9a39ed2234025fd054ab9934b06b1af949fcd2fac0325d774240ae17bd42096a04952d
7
- data.tar.gz: 94671788a345c9d21b5b0b91dddda102305c3e8c8b221cf1d9c27cc720ad6d828707347cbc1d1f481d37cb8bc7a24552a9838b7a67c6ebe79fa18324ca8787b1
6
+ metadata.gz: 37336a9768e4817a07ea375731f9e65d65dc603790f4a188cf0bbe106fd879e386db1cb2e0ddd7a1627178baf9f05e552575ba87d97726c9fafdbb23610b3f95
7
+ data.tar.gz: dd19351f6c89b6cb243b4c82c094f09a7ce34293a21a071c5ea126e2b60fd6b82f1abfbdbab07222819f211bc603904e19c714bbad1041a4929abe0925e16b26
data/.gitignore CHANGED
@@ -6,6 +6,10 @@
6
6
  /pkg/
7
7
  /spec/reports/
8
8
  /tmp/
9
+ /spec/support/config/config.yml
10
+ /spec/support/config/config.develop.yml
11
+ /spec/support/config/config.uat.yml
12
+ /spec/uat/
9
13
 
10
14
  .byebug_history
11
15
  reapal-*.gem
@@ -20,7 +20,7 @@ module Reapal
20
20
  #
21
21
  def deposit_query(deposit_flow_id)
22
22
  service = 'reapal.trust.depositQuery'
23
- post_path = '/reagw/service/depwit.htm'
23
+ post_path = '/service/depwit.htm'
24
24
 
25
25
  params = {
26
26
  orderNo: deposit_flow_id,
@@ -22,7 +22,7 @@ module Reapal
22
22
  #
23
23
  def member_payment_query(member_payment_flow_id)
24
24
  service = 'reapal.trust.memberPaymentQuery'
25
- post_path = '/reagw/tender/rest.htm'
25
+ post_path = '/tender/rest.htm'
26
26
 
27
27
  params = {
28
28
  orderNo: member_payment_flow_id,
@@ -28,7 +28,7 @@ module Reapal
28
28
  #
29
29
  def sub_account(flow_id, sub_type, sub_details, remark ='')
30
30
  service = 'reapal.trust.subAccount'
31
- post_path = '/reagw/service/depwit.htm'
31
+ post_path = '/service/depwit.htm'
32
32
 
33
33
  params = {
34
34
  orderNo: flow_id,
@@ -28,7 +28,7 @@ module Reapal
28
28
  #
29
29
  def sub_account_query(sub_account_flow_id, serial_no='')
30
30
  service = 'reapal.trust.subAccountQuery'
31
- post_path = '/reagw/service/depwit.htm'
31
+ post_path = '/service/depwit.htm'
32
32
 
33
33
  params = {
34
34
  orderNo: sub_account_flow_id,
@@ -25,7 +25,7 @@ module Reapal
25
25
  #
26
26
  def withdraw_query(withdraw_flow_id)
27
27
  service = 'reapal.trust.withdrawQuery'
28
- post_path = '/reagw/service/depwit.htm'
28
+ post_path = '/service/depwit.htm'
29
29
 
30
30
  params = {
31
31
  orderNo: withdraw_flow_id,
@@ -48,7 +48,7 @@ module Reapal
48
48
  return res
49
49
  end
50
50
 
51
- post_path = '/reagw/tender/rest.htm'
51
+ post_path = '/tender/rest.htm'
52
52
 
53
53
  params = {
54
54
  orderNo: flow_id,
@@ -40,7 +40,7 @@ module Reapal
40
40
  return res
41
41
  end
42
42
 
43
- post_path = '/reagw/tender/rest.htm'
43
+ post_path = '/tender/rest.htm'
44
44
 
45
45
  params = {
46
46
  orderNo: flow_id,
@@ -37,7 +37,7 @@ module Reapal
37
37
  return res
38
38
  end
39
39
 
40
- post_path = '/reagw/tender/rest.htm'
40
+ post_path = '/tender/rest.htm'
41
41
 
42
42
  params = {
43
43
  serialNo: serial_no,
@@ -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 = '/reagw/tender/rest.htm'
36
+ post_path = '/tender/rest.htm'
37
37
 
38
38
  params = {
39
39
  orderNo: flow_id,
@@ -22,7 +22,7 @@ module Reapal
22
22
  #
23
23
  def refund_guarant_payment_query(refund_flow_id)
24
24
  service = 'reapal.trust.refundGuarantPaymentQuery'
25
- post_path = '/reagw/tender/rest.htm'
25
+ post_path = '/tender/rest.htm'
26
26
 
27
27
  params = {
28
28
  orderNo: refund_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 = '/reagw/tender/rest.htm'
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 = '/reagw/tender/rest.htm'
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 = '/reagw/tender/rest.htm'
43
+ post_path = '/tender/rest.htm'
44
44
 
45
45
  params = {
46
46
  orderNo: flow_id,
@@ -25,7 +25,7 @@ module Reapal
25
25
  #
26
26
  def tender_auth_cancel(flow_id, contracts, services, busway="01", remark='')
27
27
  service = 'reapal.trust.authCancel'
28
- post_path = '/reagw/user/restApi.htm'
28
+ post_path = '/user/restApi.htm'
29
29
 
30
30
  params = {
31
31
  cancleOrderNo: flow_id,
@@ -28,7 +28,7 @@ module Reapal
28
28
  #
29
29
  def tender_auth_query(flow_id, contract)
30
30
  service = 'reapal.trust.authQuery'
31
- post_path = '/reagw/user/restApi.htm'
31
+ post_path = '/user/restApi.htm'
32
32
 
33
33
  params = {
34
34
  orderNo: flow_id,
@@ -22,7 +22,7 @@ module Reapal
22
22
  #
23
23
  def tender_close(tender_no, busway="01", remark='')
24
24
  service = 'reapal.trust.tenderClose'
25
- post_path = '/reagw/tender/rest.htm'
25
+ post_path = '/tender/rest.htm'
26
26
 
27
27
  params = {
28
28
  tenderNo: tender_no,
@@ -38,7 +38,7 @@ module Reapal
38
38
  invest_details, fee_details=[],
39
39
  busway='01', remark='')
40
40
  service = 'reapal.trust.tenderFinish'
41
- post_path = '/reagw/tender/rest.htm'
41
+ post_path = '/tender/rest.htm'
42
42
 
43
43
  params = {
44
44
  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 = '/reagw/tender/rest.htm'
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'], '3.0')
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 = '/reagw/tender/rest.htm'
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'], '3.0')
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
 
@@ -54,7 +54,7 @@ module Reapal
54
54
  busway='01',
55
55
  remark='')
56
56
  service = 'reapal.trust.onekeyRefund'
57
- post_path = '/reagw/tender/rest.htm'
57
+ post_path = '/tender/rest.htm'
58
58
 
59
59
  params = {
60
60
  orderNo: flow_id,
@@ -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 = '/reagw/tender/rest.htm'
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 = '/reagw/tender/rest.htm'
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 balance_query(contracts)
24
24
  service = 'reapal.trust.balanceQuery'
25
- post_path = '/reagw/agreement/agreeApi.htm'
25
+ post_path = '/agreement/agreeApi.htm'
26
26
 
27
27
  params = {
28
28
  contracts: contracts,
@@ -31,7 +31,7 @@ module Reapal
31
31
  #
32
32
  def bind_card_query(contracts)
33
33
  service = 'reapal.trust.bindQuery'
34
- post_path = '/reagw/user/restApi.htm'
34
+ post_path = '/user/restApi.htm'
35
35
 
36
36
  params = {
37
37
  contracts: contracts,
@@ -33,7 +33,7 @@ module Reapal
33
33
  #
34
34
  def contract_query(contract_flow_id)
35
35
  service = 'reapal.trust.contractQuery'
36
- post_path = '/reagw/agreement/agreeApi.htm'
36
+ post_path = '/agreement/agreeApi.htm'
37
37
 
38
38
  params = {
39
39
  orderNo: contract_flow_id,
@@ -21,7 +21,7 @@ module Reapal
21
21
  #
22
22
  def mobile_query(contract)
23
23
  service = 'reapal.trust.mobileQuery'
24
- post_path = '/reagw/user/restApi.htm'
24
+ post_path = '/user/restApi.htm'
25
25
 
26
26
  params = {
27
27
  contracts: contract,
@@ -32,7 +32,7 @@ module Reapal
32
32
  branch,
33
33
  subbranch)
34
34
  service = 'reapal.trust.modifyBindBankCard'
35
- post_path = '/reagw/bankcard/modifyBindBankApi.htm'
35
+ post_path = '/bankcard/modifyBindBankApi.htm'
36
36
 
37
37
  params = {
38
38
  orderNo: flow_id,
@@ -37,7 +37,7 @@ module Reapal
37
37
  card_branch, card_sub_branch, user_type,
38
38
  busway='01', remark='')
39
39
  service = 'reapal.trust.onekeyBatchContract'
40
- post_path = '/reagw/agreement/agree.htm'
40
+ post_path = '/agreement/agree.htm'
41
41
 
42
42
  params = {
43
43
  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 = '/reagw/agreement/setHistoryUserType.htm'
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 = '/reagw/bankcard/undoBindBankApi.htm'
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 = '/reagw/bankcard/toBankCardBinding.htm'
26
+ post_path = '/bankcard/toBankCardBinding.htm'
27
27
 
28
28
  params = {
29
29
  orderNo: flow_id,
@@ -30,7 +30,7 @@ module Reapal
30
30
  return_url, notify_url, busway='01', remark='')
31
31
 
32
32
  service = 'reapal.trust.businessAuth'
33
- post_path = '/reagw/user/rest.htm'
33
+ post_path = '/user/rest.htm'
34
34
 
35
35
  params = {
36
36
  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 = '/reagw/agreement/closeAccountApply.htm'
26
+ post_path = '/agreement/closeAccountApply.htm'
27
27
 
28
28
  params = {
29
29
  orderNo: flow_id,
@@ -35,7 +35,7 @@ module Reapal
35
35
  busway='01', remark='')
36
36
 
37
37
  service = 'reapal.trust.comContract'
38
- post_path = '/reagw/agreement/agree.htm'
38
+ post_path = '/agreement/agree.htm'
39
39
 
40
40
  params = {
41
41
  orderNo: flow_id,
@@ -2,7 +2,7 @@
2
2
 
3
3
  module Reapal
4
4
  module Form
5
- module DepositAppyForm
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 = '/reagw/service/deposit.htm'
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 = '/reagw/findTradePassword/findTradePassword.htm'
25
+ post_path = '/findTradePassword/findTradePassword.htm'
26
26
 
27
27
  params = {
28
28
  contracts: contract,
@@ -29,7 +29,7 @@ module Reapal
29
29
  return_url, notify_url,
30
30
  busway='01', remark='')
31
31
  service = 'reapal.trust.memberPayment'
32
- post_path = '/reagw/tender/rest.htm'
32
+ post_path = '/tender/rest.htm'
33
33
 
34
34
  params = {
35
35
  orderNo: flow_id,
@@ -28,7 +28,7 @@ module Reapal
28
28
  fee_amount, payee_contract,
29
29
  return_url, notify_url, busway='01')
30
30
  service = 'reapal.trust.refundGuarantPayment'
31
- post_path = '/reagw/tender/rest.htm'
31
+ post_path = '/tender/rest.htm'
32
32
 
33
33
  params = {
34
34
  orderNo: flow_id,
@@ -47,7 +47,7 @@ module Reapal
47
47
  fee_type = '',
48
48
  remark = '')
49
49
  service = 'reapal.trust.signleTenderTransfer'
50
- post_path = '/reagw/tender/rest.htm'
50
+ post_path = '/tender/rest.htm'
51
51
 
52
52
  params = {
53
53
  orderNo: flow_id,
@@ -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 = '/reagw/tender/rest.htm'
25
+ post_path = '/tender/rest.htm'
26
26
 
27
27
  params = {
28
28
  orderNo: flow_id,
@@ -27,7 +27,7 @@ module Reapal
27
27
  return_url, notify_url,
28
28
  coupon_amt=nil, remark='')
29
29
  service = 'reapal.trust.tenderInvest'
30
- post_path = '/reagw/tender/rest.htm'
30
+ post_path = '/tender/rest.htm'
31
31
 
32
32
  params = {
33
33
  orderNo: flow_id,
@@ -56,7 +56,7 @@ module Reapal
56
56
  busway = '01',
57
57
  remark = '')
58
58
  service = 'reapal.trust.tenderRefund'
59
- post_path = '/reagw/tender/rest.htm'
59
+ post_path = '/tender/rest.htm'
60
60
 
61
61
  params = {
62
62
  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 = '/reagw/agreement/agree.htm'
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 = '/reagw/service/withdraw.htm'
29
+ post_path = '/service/withdraw.htm'
30
30
 
31
31
  params = {
32
32
  orderNo: flow_id,
@@ -1,3 +1,3 @@
1
1
  module Reapal
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
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.11.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-15 00:00:00.000000000 Z
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