reapal 0.9.7 → 0.9.9

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: '00782feb917efdfc04cc999a4dcf5a681f8faaba'
4
- data.tar.gz: a7861c655b679de6ab6f6123bfd2869686caf714
3
+ metadata.gz: dc80418f6aab1c7493e241753d345e3bd620ce39
4
+ data.tar.gz: 9ff754f1eece3976e594a48102cf397a3b3f6aa5
5
5
  SHA512:
6
- metadata.gz: eb8d0b761a07bc0802cf0d9fca46bf7e0782fb92b9fe5f2d2d73146fdc0f15121876227dec3365ae20c8f8835a6c5e59b7639017982f86e6d28e1fce2a8630f4
7
- data.tar.gz: 2c0e5b1944b50b19717148ccb59d2ccfe9e93c558427274ce0b87c3522332707c2e1b2edada53a50b7c2d97f0d11ae7cc4039c07ba593e164e7148563810d8a3
6
+ metadata.gz: 3f1d6bdfc9249a5a756f71ff57f5823050ed88e293d45abf635dbe5cccdb2b9d1a835d72f2d1086d132150b1ebbf2069a8c6fa48a672b33341f6606d3a76b9f8
7
+ data.tar.gz: 0ac5d3e3fd14af75f461648182b6d7691eea081ef0cdcf994db2d382622b2fb0d7ba7d78a0eb45331f854a580bc19b5a11dbbd6f7799ce6e214586f96b598efc
@@ -0,0 +1,56 @@
1
+ # coding: utf-8
2
+
3
+ module Reapal
4
+ module Form
5
+ module DepositAppyForm
6
+
7
+ # 2.1网银充值 (Form)
8
+ #
9
+ # @param flow_id [String] 业务订单号
10
+ # @param contracts [String] 用户协议号
11
+ # @param money [Number] 充值金额
12
+ # @param charge [Number] 手续费
13
+ # @param return_url [String] 回调 url
14
+ # @param notify_url [String] 通知 url
15
+ # @param remark [String] 备注(默认为 '')
16
+ # @param payment_type [String](默认为 1)1:表示富民银行收银台支付(默认值,此字段为空时,默认此种方式);2:表示B2B企业充值银行直连;3: 表示B2C个人借记卡银行直连;
17
+ # @param channel [String] (默认为 bank) 如果是跳转收银台值为:bank,银行直连请参考:银行代码
18
+ # @param pay_customer_no [String] (默认为 '')支付方式(paymentType参数)为企业银行直连时:民生、浦发、交通三家银行 B2B(企业网银)支付需要提交该字段。其他情况下提交空字符串
19
+ #
20
+ # @return [ Hash ] 结果集
21
+ # * form_method
22
+ # * url
23
+ # * method
24
+ # * form_data
25
+ # * :merchant_id
26
+ # * :encryptkey
27
+ # * :data
28
+ #
29
+ def deposit_apply_form(flow_id, contracts, money, charge,
30
+ return_url, notify_url, remark='',
31
+ payment_type='1', channel='bank', pay_customer_no='')
32
+
33
+ service = 'reapal.trust.depositApply'
34
+ post_path = '/reagw/service/deposit.htm'
35
+
36
+ params = {
37
+ orderNo: flow_id,
38
+ contracts: contracts,
39
+ amount: money,
40
+ charge: charge,
41
+ returnUrl: return_url,
42
+ notifyUrl: notify_url,
43
+ remark: remark,
44
+ paymentType: payment_type,
45
+ channel: channel,
46
+ payCustomerNo: pay_customer_no,
47
+ busway: '00',
48
+ applyTime: Time.now.strftime('%Y-%m-%d %H:%M:%S')
49
+ }
50
+
51
+ get_form_data(service, params, post_path)
52
+ end
53
+
54
+ end #BusinessAuth
55
+ end
56
+ end
@@ -1,3 +1,3 @@
1
1
  module Reapal
2
- VERSION = "0.9.7"
2
+ VERSION = "0.9.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reapal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.7
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - tony
@@ -163,6 +163,7 @@ files:
163
163
  - lib/reapal/extensions.rb
164
164
  - lib/reapal/form/business_auth_form.rb
165
165
  - lib/reapal/form/certificate_form.rb
166
+ - lib/reapal/form/deposit_apply_form.rb
166
167
  - lib/reapal/form/find_trade_password_form.rb
167
168
  - lib/reapal/form/form_helper.rb
168
169
  - lib/reapal/form/mobile_modify_form.rb