ruby_ufebs 0.2.20 → 0.2.21

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
  SHA256:
3
- metadata.gz: 1d3c1f68438ac107f636161af2a6ac45ed75ce8e1bdff4dba5a875ef42a433ab
4
- data.tar.gz: 57ceac1b56e7be8cd87285f71518ceed7b3a24f6d6a5fdedf57f1d51d414d0fd
3
+ metadata.gz: 41afc013eedc9ae36eb7fe0d103a74060867a9737cb5b6cf6958b2d5add9ef26
4
+ data.tar.gz: 705c1e837b23fd71cb45a2e8ec648116f15dbb7886e3a1d2e2034195759c5e35
5
5
  SHA512:
6
- metadata.gz: 5ea377537e98ed3d0562f835d41671f8593467c5ee74a8fabd9d67563a638d7c23d773634d09690e92eb08bd41bb933b966359ceaa95259e32efd280129470f5
7
- data.tar.gz: a0b2a79b5a0c53b709bd73eecb71f2d87155e869631652702fc03d624d91a673abdf3b9b86a339b333567cf0891949b11385bbdddf045f48ad474a25b33cc9ff
6
+ metadata.gz: 912209cb67f6f214013734c43e04f69e6ce3e8de5173755a173555f1d0017d91077d308eff5650b5c7430f4bfe35571c833de31dcbf50a171ff160828691cf9b
7
+ data.tar.gz: 46bf2a9c6a48b9ce9c908215e186ba98ce69a9b929e36f264dc1dd94ab44635f49a86fb350fedb96b7a8a54becc7426909a83bf173098348eba2951f2375f291
@@ -7,8 +7,8 @@ module Ufebs
7
7
  module Documents
8
8
  class BasePayment
9
9
  include HappyMapper
10
- DOCUMENT_NUMBER_TYPE = '01'.freeze
11
- SYSTEM_CODE = '01'.freeze
10
+ DOCUMENT_NUMBER_TYPE = '06'.freeze
11
+ SYSTEM_CODE = '02'.freeze
12
12
 
13
13
  def validate
14
14
  Ufebs.validate(to_xml)
@@ -34,6 +34,8 @@ module Ufebs
34
34
  trans_kind: DOCUMENT_NUMBER_TYPE,
35
35
  payt_kind: nil,
36
36
  system_code: nil,
37
+ payment_precedence: nil,
38
+ processing_details: nil,
37
39
  departmental_info: nil
38
40
  )
39
41
  raise InvalidPriority.new('priority Реквизит должен иметь значение в диапазоне 0-5.') unless (0..5).include?(priority.to_i)
@@ -52,6 +54,9 @@ module Ufebs
52
54
  @uin = uin
53
55
  @payt_kind = payt_kind
54
56
 
57
+ @payment_precedence = payment_precedence
58
+ @processing_details = processing_details.is_a?(Hash) ? ::Ufebs::Entities::ProcessingDetails.new(processing_details) : processing_details
59
+
55
60
  @ed_author = ed_author
56
61
  @type_number = trans_kind
57
62
  @system_code = system_code || SYSTEM_CODE
@@ -79,6 +79,7 @@ module Ufebs
79
79
  @uin = uin
80
80
  @payt_kind = payt_kind
81
81
  @payment_precedence = payment_precedence
82
+ @processing_details = processing_details.is_a?(Hash) ? ::Ufebs::Entities::ProcessingDetails.new(processing_details) : processing_details
82
83
 
83
84
  @ed_author = ed_author
84
85
  @type_number = DOCUMENT_NUMBER_TYPE
@@ -13,6 +13,7 @@ module Ufebs
13
13
  content.attribute :receipt_date, String, tag: 'ReceiptDate'
14
14
  content.attribute :system_code, String, tag: 'SystemCode'
15
15
  content.attribute :priority, String, tag: 'Priority'
16
+ content.attribute :payment_precedence, String, tag: 'PaymentPrecedence'
16
17
  content.has_one :acc_doc, ::Ufebs::Entities::AccDoc, tag: 'AccDoc'
17
18
  content.has_one :payer, ::Ufebs::Entities::Participant, tag: 'Payer'
18
19
  content.has_one :payee, ::Ufebs::Entities::Participant, tag: 'Payee'
data/lib/ufebs/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module RubyUfebs
2
- VERSION = "0.2.20"
2
+ VERSION = "0.2.21"
3
3
  end
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.2.20
4
+ version: 0.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evgeniy Burdaev