ruby_ufebs 0.1.9 → 0.1.10

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: 0d0777a14092fe09b778ae605cfe86368ea8ac3e
4
- data.tar.gz: b34d1b67b06e1f01799595cdb115c467d59a7bdf
3
+ metadata.gz: 97f8dcfd15004e4094372352b4c369be1177d4dc
4
+ data.tar.gz: cb180c4ed92cf971b420ee8d49b75ae5086551f3
5
5
  SHA512:
6
- metadata.gz: c60024c2bc50a87daaa1d1018c1128d75454f9d38abc96eab8e66a52b5fa87367f604c936011d9245f5f7742d4ced06e8d077842c64b5ba04a7e81c17e6a8519
7
- data.tar.gz: 16d49eae2248d136cc53539c788f7df265227c949327a72842494d6efafbc10a36380486b03f13e14a4b44db19a1d0dbf1ef3935e548b763f45297028016e53a
6
+ metadata.gz: 2c4af148609cf03b0529c01132a6f0b37511068e999fa426a339c954890d15b2d393d0dfd6c8e3608f46f549c54074c2520fc3fe52224773187e01eda75e6e81
7
+ data.tar.gz: 8deed46cb2b6b29ac4eb9d2f4650c2a696cf8c9cc0a52ae569b87bf3653f554c3633ced0bd28190ee03ebbc0d2f97525315d03b045313310a327aa5fa4d7fe6a
@@ -6,7 +6,7 @@ module Ufebs
6
6
  include HappyMapper
7
7
  register_namespace 'ed', "urn:cbr-ru:ed:v2.0"
8
8
  tag 'PacketEPD'
9
- XMLNS = "urn:cbr-ru:ed:v2.0".freeze
9
+ namespace 'ed'
10
10
 
11
11
  attribute :ed_date, String, tag: 'EDDate'
12
12
  attribute :ed_author, String, tag: 'EDAuthor'
@@ -14,7 +14,6 @@ module Ufebs
14
14
  attribute :quantity, String, tag: 'EDQuantity'
15
15
  attribute :sum, String, tag: 'Sum'
16
16
  attribute :system_code, String, tag: 'SystemCode'
17
- attribute :xmlns, String
18
17
 
19
18
  has_many :payment_orders, Ufebs::Documents::PaymentOrder
20
19
 
@@ -26,8 +25,6 @@ module Ufebs
26
25
  @quantity = params[:quantity] || payment_orders.size
27
26
  @sum = params[:sum] || payment_orders.sum(&:sum)
28
27
  @system_code = '01'
29
-
30
- @xmlns = XMLNS
31
28
  end
32
29
 
33
30
  def to_xml
data/lib/ufebs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RubyUfebs
2
- VERSION = "0.1.9"
2
+ VERSION = "0.1.10"
3
3
  end
data/lib/ufebs.rb CHANGED
@@ -113,7 +113,8 @@ module Ufebs
113
113
  Ufebs::Documents::PaymentOrder.new(params)
114
114
  end
115
115
 
116
- def PackedEPD()
116
+ def PackedEPD(payment_eds, params)
117
+ Ufebs::Documents::Package.new(payment_eds, params)
117
118
  end
118
119
 
119
120
  def validate(doc)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_ufebs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Burdaev