reapal 0.10.0 → 0.10.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a074850a4e4728b637d6915008604056eb888dac
4
- data.tar.gz: d0efdad45edbddb795b371a72b06c030082809d2
3
+ metadata.gz: c948bb221b8e939dd402667c22d6abb9cc8903cd
4
+ data.tar.gz: cacdd0659178d652de8e555879f74e62d7e76479
5
5
  SHA512:
6
- metadata.gz: 33a144d4c8e2ca30e79e3410aa4ebda45c2421119009b72fa0e9a914448fa3ecb29fa36e40f71ac06a6285a6e29a413171745fb1a41c0ca47dc3e12a8b4471b0
7
- data.tar.gz: 3d411444bb4c59fc820c91d199aa3974f4010ee6d4b931138da3ca0b9d3288ebe4c3ee29acf669c8a8832f691a2ffba5808d438a883b6fccd8fd83a5132939d7
6
+ metadata.gz: da73029fdf70cc1eba1ddb064bd2d313228e39514b24f91f705673c5901cae6d70aefd848a095dc12f71c35f383e8227a37f26f27b02b127f1d43a6dfb073d70
7
+ data.tar.gz: f1295c0507eca9fd647bb85f860caf672a96a4feb1a218e7d49a40d42a590fe78b8279691fb174563e50f35da80bd310a8b2eeac105cc1e73d3999b5f4923827
@@ -4,7 +4,7 @@ module Reapal
4
4
  module Form
5
5
  module DepositAppyForm
6
6
 
7
- # 2.1网银充值 (Form)
7
+ # 2.1 充值
8
8
  #
9
9
  # @param flow_id [String] 业务订单号
10
10
  # @param contracts [String] 用户协议号
@@ -12,9 +12,8 @@ module Reapal
12
12
  # @param charge [Number] 手续费
13
13
  # @param return_url [String] 回调 url
14
14
  # @param notify_url [String] 通知 url
15
+ # @param busway [ String ] 默认01 00:网银充值;01:快捷充值
15
16
  # @param remark [String] 备注(默认为 '')
16
- # @param payment_type [String](默认为 1)1:表示富民银行收银台支付(默认值,此字段为空时,默认此种方式);2:表示B2B企业充值银行直连;3: 表示B2C个人借记卡银行直连;
17
- # @param pay_customer_no [String] (默认为 '')支付方式(paymentType参数)为企业银行直连时:民生、浦发、交通三家银行 B2B(企业网银)支付需要提交该字段。其他情况下提交空字符串
18
17
  #
19
18
  # @return [ Hash ] 结果集
20
19
  # * form_method
@@ -25,31 +24,30 @@ module Reapal
25
24
  # * :encryptkey
26
25
  # * :data
27
26
  #
28
- def deposit_apply_form(flow_id, contracts, money, charge,
29
- return_url, notify_url, remark='',
30
- payment_type='1', pay_customer_no='')
27
+ def deposit_apply_form(flow_id, contract, money, charge,
28
+ return_url, notify_url,
29
+ busway = '01', remark='')
31
30
 
32
31
  service = 'reapal.trust.depositApply'
33
32
  post_path = '/reagw/service/deposit.htm'
34
33
 
35
34
  params = {
36
35
  orderNo: flow_id,
37
- contracts: contracts,
36
+ contracts: contract,
38
37
  amount: money,
39
38
  charge: charge,
40
39
  returnUrl: return_url,
41
40
  notifyUrl: notify_url,
42
41
  remark: remark,
43
- paymentType: payment_type,
44
- channel: 'bank',
45
- payCustomerNo: pay_customer_no,
46
- busway: '00',
42
+ busway: busway,
47
43
  applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S')
48
44
  }
49
45
 
46
+ params.merge(channel: 'bank', paymentType: '1', payCustomerNo: '') if '00' == busway
47
+
50
48
  get_form_data(service, params, post_path)
51
49
  end
52
50
 
53
- end #BusinessAuth
51
+ end # module
54
52
  end
55
53
  end
@@ -1,3 +1,3 @@
1
1
  module Reapal
2
- VERSION = "0.10.0"
2
+ VERSION = "0.10.1"
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.10.0
4
+ version: 0.10.1
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-08 00:00:00.000000000 Z
11
+ date: 2018-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -169,7 +169,6 @@ files:
169
169
  - lib/reapal/form/member_payment_form.rb
170
170
  - lib/reapal/form/mobile_modify_form.rb
171
171
  - lib/reapal/form/refund_guarant_payment_form.rb
172
- - lib/reapal/form/shortcut_recharge_form.rb
173
172
  - lib/reapal/form/signle_tender_transfer_form.rb
174
173
  - lib/reapal/form/tender_apply_confirm_form.rb
175
174
  - lib/reapal/form/tender_invest_form.rb
@@ -1,43 +0,0 @@
1
- module Reapal
2
- module Form
3
- module ShortcutRechargeForm
4
-
5
- # 2.2 快捷充值
6
- #
7
- # @param flow_id [ String ] 订单号
8
- # @param contracts [ String ] 协议号
9
- # @param money [ Number ] 交易金额
10
- # @param return_url [String] 回调 url
11
- # @param notify_url [String] 通知 url
12
- # @param remark [ String ] 备注
13
- #
14
- # @return [ Hash ] 结果集
15
- # * :form_method
16
- # * :method
17
- # * :url
18
- # * :form_data
19
- # * :merchant_id
20
- # * :encryptkey
21
- # * :data
22
- #
23
- def shortcut_recharge_form(flow_id, contracts, money, return_url, notify_url, remark='')
24
- service = 'reapal.trust.depositApply'
25
- post_path = '/reagw/service/deposit.htm'
26
-
27
- params = {
28
- orderNo: flow_id,
29
- contracts: contracts,
30
- amount: money,
31
- returnUrl: return_url,
32
- notifyUrl: notify_url,
33
- busway: '01',
34
- remark: remark,
35
- applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S'),
36
- }
37
-
38
- get_form_data(service, params, post_path)
39
- end
40
-
41
- end
42
- end
43
- end