ruby_ufebs 0.2.14 → 0.2.15
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
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6ff4818d65a85eb8d457b98b6fb21d5ed38f466c64cb5511b58c3af000cf545b
|
4
|
+
data.tar.gz: 131690186a86c336b299162be1fc428cd5e473ec08847bd47d7dd47e3ca19785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b88e829eb1d20479db8a498c528e71d585c592f75f68337acc023e44f537ba5396fb6bb44d18eb8f6af8a0950d38e74d8f2f5ebbfc5679d69f66486fc157d75
|
7
|
+
data.tar.gz: 61dd1057019341581692fcc7ffd2879d2d2c8746dcaf4435be7d92a14c9c86a5a5044e7903c506fc208fab03eaf502b9a0689bdfbcb6f9cf804a967538eadcb3
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative '../entities/ed_ref_id'
|
2
|
+
|
3
|
+
module Ufebs
|
4
|
+
module Requests
|
5
|
+
class NegativeStatusNotification
|
6
|
+
include HappyMapper
|
7
|
+
include Ufebs::Fields::Header
|
8
|
+
|
9
|
+
register_namespace 'ed', 'urn:cbr-ru:ed:v2.0'
|
10
|
+
tag 'ED201'
|
11
|
+
namespace 'ed'
|
12
|
+
|
13
|
+
attribute :ctrl_code, String, tag: 'CtrlCode'
|
14
|
+
attribute :ctrl_time, String, tag: 'CtrlTime'
|
15
|
+
element :annotation, String, tag: 'Annotation'
|
16
|
+
|
17
|
+
has_one :ed_ref_id, ::Ufebs::Entities::EdRefId
|
18
|
+
|
19
|
+
def initialize(params = {})
|
20
|
+
params.each do |key, value|
|
21
|
+
case key.to_sym
|
22
|
+
when :ed_ref_id then @ed_ref_id = Ufebs::Entities::EdRefId.new(value)
|
23
|
+
when :ctrl_time then @ctrl_time = DateTime.parse(value.to_s).strftime('%Y-%m-%dT%H:%M:%SZ')
|
24
|
+
else instance_variable_set("@#{key}".to_sym, value)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
require_relative '../entities/ed_ref_id'
|
2
|
+
|
3
|
+
module Ufebs
|
4
|
+
module Requests
|
5
|
+
class PositiveStatusNotification
|
6
|
+
include HappyMapper
|
7
|
+
include Ufebs::Fields::Header
|
8
|
+
|
9
|
+
register_namespace 'ed', 'urn:cbr-ru:ed:v2.0'
|
10
|
+
tag 'ED208'
|
11
|
+
namespace 'ed'
|
12
|
+
|
13
|
+
attribute :result_code, String, tag: 'ResultCode'
|
14
|
+
attribute :ctrl_code, String, tag: 'CtrlCode'
|
15
|
+
element :annotation, String, tag: 'Annotation'
|
16
|
+
|
17
|
+
has_one :ed_ref_id, ::Ufebs::Entities::EdRefId
|
18
|
+
|
19
|
+
def initialize(params = {})
|
20
|
+
params.each do |key, value|
|
21
|
+
case key.to_sym
|
22
|
+
when :ed_ref_id then @ed_ref_id = Ufebs::Entities::EdRefId.new(value)
|
23
|
+
else instance_variable_set("@#{key}".to_sym, value)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
data/lib/ufebs/version.rb
CHANGED
data/lib/ufebs.rb
CHANGED
@@ -37,6 +37,14 @@ module Ufebs
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
def ED201(params)
|
41
|
+
Ufebs::Requests::NegativeStatusNotification.parse(params)
|
42
|
+
end
|
43
|
+
|
44
|
+
def ED208(params)
|
45
|
+
Ufebs::Requests::PositiveStatusNotification.parse(params)
|
46
|
+
end
|
47
|
+
|
40
48
|
# XML запрос-зонд
|
41
49
|
# @param params [Hash]
|
42
50
|
# @option :number аттрибут EDNo
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_ufebs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Evgeniy Burdaev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -445,7 +445,9 @@ files:
|
|
445
445
|
- lib/ufebs/requests/define_answer.rb
|
446
446
|
- lib/ufebs/requests/define_request.rb
|
447
447
|
- lib/ufebs/requests/group_request.rb
|
448
|
+
- lib/ufebs/requests/negative_status_notification.rb
|
448
449
|
- lib/ufebs/requests/package_request.rb
|
450
|
+
- lib/ufebs/requests/positive_status_notification.rb
|
449
451
|
- lib/ufebs/requests/receipt.rb
|
450
452
|
- lib/ufebs/requests/status_answer.rb
|
451
453
|
- lib/ufebs/requests/test_request.rb
|
@@ -470,7 +472,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
470
472
|
version: '0'
|
471
473
|
requirements: []
|
472
474
|
rubyforge_project:
|
473
|
-
rubygems_version: 2.6
|
475
|
+
rubygems_version: 2.7.6
|
474
476
|
signing_key:
|
475
477
|
specification_version: 4
|
476
478
|
summary: Simple Construction of XML Defined by UFEBS for 2017/2018 standards http://www.cbr.ru/analytics/?PrtId=Formats
|