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 +4 -4
- data/lib/ufebs/documents/base_payment.rb +7 -2
- data/lib/ufebs/documents/payment_order.rb +1 -0
- data/lib/ufebs/fields/payment_doc.rb +1 -0
- data/lib/ufebs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41afc013eedc9ae36eb7fe0d103a74060867a9737cb5b6cf6958b2d5add9ef26
|
|
4
|
+
data.tar.gz: 705c1e837b23fd71cb45a2e8ec648116f15dbb7886e3a1d2e2034195759c5e35
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 = '
|
|
11
|
-
SYSTEM_CODE = '
|
|
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