rock_fintech 0.15.0 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5383c3eda303d93908948d679080cde3dde0fdd3
4
- data.tar.gz: 37077102b562d1d09d663b4f64ef91aea7de2b14
3
+ metadata.gz: c1455c5df26f60d1ef4f97cbb6b20eb5806c5631
4
+ data.tar.gz: e387fa8080bfe110989838bde8588ee942d8e350
5
5
  SHA512:
6
- metadata.gz: 375677f25abca1e3b6e05114d1e0d961103c508a8fef89fc983cb20114833370f2351f032ea676ea730887c51486541ae35aa7f2660babdf810efb0223937858
7
- data.tar.gz: dae5648f28e1bc46811dd8f549c56fe0eae750b8bcc89dfb6c7b89fc31cb1bd47987b7dc94d83c879b3ead8d2e6f2772c5626e396094bb749233ec32eef50062
6
+ metadata.gz: e9940cb383c73bac3df127b1cddf618af7eae4342e019bb28772ef308ecccfbd857e9a4aa7ea926ec1ba8782c2073c048928cf2de91029b66c5d5abf0bb275b1
7
+ data.tar.gz: b2f60afaceb4e4834370995b0250409203641f7c8157636411aa337bb96fad00d47e3a10a88a656deb273366a8c9cfcd8c6b0e40d67b225336f088b2657fdf66
@@ -29,7 +29,8 @@ module RockFintech
29
29
  # * :status [Integer] 订单状态 1 下单(等待网关访问后提交) 2 处理中(客户已提交,正在处理)3 订单关闭 4 超时关闭(超时时间:5分钟)
30
30
  # * :rsp_code [String] 00 处理成功 01 查询渠道登记簿,未找到该渠道记录 02 查询机构登记簿,未找到该机构记录 03 渠道未关联支付通道 04 支付通道登记簿无此记录 05 该渠道不可操作此类账户 06 开户数量超限 07 交易密码不一致 08 平台预留手机号错误 09 绑卡数量超出限制 10 四要素鉴权失败
31
31
  # * :account_type [String] 账户类型,200201:普通电子账户
32
- #
32
+ # * :account_status 账户状态 (0 正常,1 冻结,2 注销,41 账户未激活,人工激活,42 账户未激活,外部来账激活,43 账户未激活,外部指定来账激活)
33
+ # * :ran_amount 如果是企业户开户,成功后必须激活 该字段表示需要充值的指定金额
33
34
  def create_account_sr_query(order_id, devise="000001", remark='')
34
35
  service = "create_account_sr_query"
35
36
 
@@ -0,0 +1,46 @@
1
+ # coding: utf-8
2
+ module RockFintech
3
+ module Api
4
+ module Batch
5
+ module BatchCouponB
6
+
7
+ # 存管账户批量红包发放
8
+ #
9
+ # @param notify_url [ String ] 回调地址
10
+ # @param items [ Array ] 还款信息(此参数传入时必须用 to_json 转化)
11
+ # * :in_card_no [String] 转入方电子账号
12
+ # * :currency [String] 币种 156:人民币
13
+ # * :amount [String] 入账金额
14
+ # * :coupon_date [String] 日期 YYMMDD
15
+ # * :coupon_type [String] 业务类别 001-红包发放
16
+ # * :name [String] 持卡人姓名
17
+ # * :third_reserved [String] 第三方流水号
18
+ #
19
+ # @return [ Hash ] 结果集
20
+ # * :result [String] "S"/"F"/"P"
21
+ # * :request_params [Hash] 请求参数
22
+ # * :response [Object] 请求返回对象
23
+ # * :code [String] 结果代码
24
+ # * :msg [String] 结果信息
25
+ # * :data: 具体业务返回信息
26
+ #
27
+ def batch_coupon_b(batch_no, batch_count, notify_url, items, remark='')
28
+ service = 'batch_coupon_b'
29
+
30
+ params = {
31
+ batch_count: batch_count,
32
+ batch_no: batch_no,
33
+ notify_url: notify_url,
34
+ items: items,
35
+ custom: remark,
36
+ }
37
+
38
+ res = operate_post(:operate, service, params, Http::ErrorCode.batch_coupon_b, ['RD000000'])
39
+
40
+ res
41
+ end
42
+
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,33 @@
1
+ # coding: utf-8
2
+ module RockFintech
3
+ module Api
4
+ module Batch
5
+ module BatchNotifyResendB
6
+
7
+ # 批处理回调重发接口
8
+ #
9
+ # @return [ Hash ] 结果集
10
+ # * :result [String] "S"/"F"/"P"
11
+ # * :request_params [Hash] 请求参数
12
+ # * :response [Object] 请求返回对象
13
+ # * :code [String] 结果代码
14
+ # * :msg [String] 结果信息
15
+ # * :data: 具体业务返回信息
16
+ #
17
+ def batch_notify_resend_b(req_sequence_id, remark='')
18
+ service = 'batch_notify_resend_b'
19
+
20
+ params = {
21
+ req_sequence_id: req_sequence_id,
22
+ custom: remark,
23
+ }
24
+
25
+ res = operate_post(:operate, service, params, Http::ErrorCode.batch_notify_resend_b, ['RD000000'])
26
+
27
+ res
28
+ end
29
+
30
+ end
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,53 @@
1
+ # coding: utf-8
2
+ module RockFintech
3
+ module Api
4
+ module Query
5
+ module BatchNewQueryCouponB
6
+
7
+ # 批次发红包查询(新)
8
+ #
9
+ # @return [ Hash ] 结果集
10
+ # * :result [String] "S"/"F"/"P"
11
+ # * :request_params [Hash] 请求参数
12
+ # * :response [Object] 请求返回对象
13
+ # * :code [String] 结果代码
14
+ # * :msg [String] 结果信息
15
+ # * :data: 具体业务返回信息
16
+ # * :batch_no [String] 批次号
17
+ # * :batch_count [String] 数量
18
+ # * :batch_date [String] 日期
19
+ # * :items [Array]
20
+ # * :result [String] 处理相应码('00': 成功, 其他为失败)
21
+ # * :message [String] 应答描述
22
+ # * :amount [String] 扣账(本金)金额
23
+ # * :out_card_no [String] 扣款电子账号
24
+ # * :in_card_no [String] 转入电子账号
25
+ # * :out_fee_mode [String] 转出方手续费扣款方式 (0: 指定金额; 1: 同产品设置)
26
+ # * :out_fee_amount [String] 转出方手续费扣款金额
27
+ # * :real_out_fee_amount [String] 转出方手续费实际扣款金额
28
+ # * :in_fee_mode [String] 转入方手续费扣款方式 (0: 指定金额; 1: 同产品设置)
29
+ # * :in_fee_amount [String] 转入方手续费扣款金额
30
+ # * :real_in_fee_amount [String] 转入方手续费实际扣款金额
31
+ # * :assets_no [String] 标的编号
32
+ # * :auth_code [String] 投标神奇授权码
33
+ # * :serial_no [String] 投标申请流水号
34
+ # * :third_reserved [String] 第三方流水号
35
+ #
36
+ def batch_new_query_coupon_b(batch_no, devise='000001', remark='')
37
+ service = 'batch_new_query_coupon_b'
38
+
39
+ params = {
40
+ batch_no: batch_no,
41
+ client: devise,
42
+ custom: remark,
43
+ }
44
+
45
+ res = operate_post(:query, service, params, Http::ErrorCode.batch_new_query_coupon_b, ['RD000000'])
46
+
47
+ res
48
+ end
49
+
50
+ end
51
+ end
52
+ end
53
+ end
@@ -15,6 +15,14 @@ module RockFintech
15
15
  def self.batch_end_credit_b
16
16
  @_batch_payment ||= %w[]
17
17
  end
18
+
19
+ def self.batch_coupon_b
20
+ @_batch_coupon_b ||= %w[]
21
+ end
22
+
23
+ def batch_notify_resend_b
24
+ @_batch_notify_resend_b ||= %w[]
25
+ end
18
26
  end # module ErrorCode
19
27
  end
20
28
  end
@@ -39,6 +39,10 @@ module RockFintech
39
39
  def self.trustee_pay_query
40
40
  @_trustee_pay_query ||= %w[]
41
41
  end
42
+
43
+ def batch_new_query_coupon_b
44
+ @_batch_new_query_coupon_b || %w[]
45
+ end
42
46
  end # module ErrorCode
43
47
  end
44
48
  end
@@ -1,3 +1,3 @@
1
1
  module RockFintech
2
- VERSION = "0.15.0"
2
+ VERSION = "0.16.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rock_fintech
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - chenpengyu
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-05-17 00:00:00.000000000 Z
11
+ date: 2018-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -172,7 +172,9 @@ files:
172
172
  - lib/rock_fintech/api/asset/assets_enroll.rb
173
173
  - lib/rock_fintech/api/asset/assets_revoke.rb
174
174
  - lib/rock_fintech/api/batch/.gitkeep
175
+ - lib/rock_fintech/api/batch/batch_coupon_b.rb
175
176
  - lib/rock_fintech/api/batch/batch_end_credit_b.rb
177
+ - lib/rock_fintech/api/batch/batch_notify_resend_b.rb
176
178
  - lib/rock_fintech/api/batch/batch_payment_b.rb
177
179
  - lib/rock_fintech/api/batch/batch_repayment_b.rb
178
180
  - lib/rock_fintech/api/enterprise/.gitkeep
@@ -188,6 +190,7 @@ files:
188
190
  - lib/rock_fintech/api/platform/money_revoke.rb
189
191
  - lib/rock_fintech/api/query/.gitkeep
190
192
  - lib/rock_fintech/api/query/apply_bid_query.rb
193
+ - lib/rock_fintech/api/query/batch_new_query_coupon_b.rb
191
194
  - lib/rock_fintech/api/query/batch_new_query_payment_b.rb
192
195
  - lib/rock_fintech/api/query/batch_new_query_repayment_b.rb
193
196
  - lib/rock_fintech/api/query/batch_query_payment_b.rb