ruby_ufebs 0.2.8 → 0.2.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: 59216a04ba479a44fb0914ad6f97500ae1d14f35
4
- data.tar.gz: 779f30515b82f63f87df7f379dd0218d912d36df
3
+ metadata.gz: 98351561a5b1143ddfb8e911589b63fd6f30b6bf
4
+ data.tar.gz: a9c5ccea6eac30e402ccff13b14ce3fcf7b93685
5
5
  SHA512:
6
- metadata.gz: 175ecf9c5cab49d2e55720d14e1dac01f64a00da9ea325e405c035453830c6125752eea05801f12d1727487ab2da1a49ece7f06a42ec7c2e11f55846f0db35f9
7
- data.tar.gz: 3a7155c5ea798fa06c7e40dd88af88a0e1175c6da4a132579c40f6a80756ea0229b656eaa58945d31913970c50ba26c2c910708e932738d336db68ac10e3fea4
6
+ metadata.gz: 0ad267037d0cf6a7f627bb4b5e2605db2ac4cbca0ce1f4178754473fb75312cfb38cb23442806008d4c83dbe5aea9956b08e54cb6e72f19189292ca470c0554b
7
+ data.tar.gz: 8eb7845e8fecdbcb811c66b99d8b6eb8c14c9f151ff4bd00590d532b7ef05c94cd550d47abeb26fafb30a02c1a12d0332f15348700b75d01cc8657ce79489595
@@ -0,0 +1,24 @@
1
+ module Ufebs
2
+ module Requests
3
+ class StatusAnswer
4
+ include HappyMapper
5
+ register_namespace 'ed', 'urn:cbr-ru:ed:v2.0'
6
+ tag 'ED205'
7
+ namespace 'ed'
8
+
9
+ attribute :ctrl_time, String, tag: 'CtrlTime'
10
+ attribute :ed_author, String, tag: 'EDAuthor'
11
+ attribute :ed_date, String, tag: 'EDDate'
12
+ attribute :ed_no, String, tag: 'EDNo'
13
+ attribute :ed_receiver, String, tag: 'EDReceiver'
14
+ attribute :status_state_code, String, tag: 'StatusStateCode'
15
+
16
+ has_one :ed_ref_id, ::Ufebs::Entities::EdRefId
17
+ has_one :session, ::Ufebs::Entities::Session, tag: 'Session', state_when_nil: false
18
+ end
19
+ end
20
+ end
21
+
22
+ #<?xml version="1.0" encoding="WINDOWS-1251"?
23
+ #><ED205 CtrlTime="2018-02-27T10:36:13Z" EDAuthor="4583001999" EDDate="2018-02-23" EDNo="1066492" EDReceiver="4525420000" StatusStateCode="30" xmlns="urn:cbr-ru:ed:v2.0">
24
+ #<EDRefID EDAuthor="4525420000" EDDate="2018-02-23" EDNo="1"/><Session><SessionID>5</SessionID></Session></ED205>
data/lib/ufebs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RubyUfebs
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
data/lib/ufebs.rb CHANGED
@@ -49,6 +49,9 @@ module Ufebs
49
49
  def ED210(params)
50
50
  end
51
51
 
52
+ def ED205(params)
53
+ Ufebs::Requests::StatusAnswer.parse(params)
54
+ end
52
55
 
53
56
  # Создание/Парсинг выписки ED211
54
57
  # @example Пример
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.8
4
+ version: 0.2.9
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-02-27 00:00:00.000000000 Z
11
+ date: 2018-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -446,6 +446,7 @@ files:
446
446
  - lib/ufebs/requests/group_request.rb
447
447
  - lib/ufebs/requests/package_request.rb
448
448
  - lib/ufebs/requests/receipt.rb
449
+ - lib/ufebs/requests/status_answer.rb
449
450
  - lib/ufebs/requests/test_request.rb
450
451
  - lib/ufebs/version.rb
451
452
  - ruby_ufebs.gemspec