ruby_ufebs 0.1.0 → 0.1.1
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/package.rb +2 -1
- data/lib/ufebs/documents/payment_order.rb +2 -3
- data/lib/ufebs/version.rb +1 -1
- data/lib/ufebs.rb +15 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e1754a87fab102bdbe5f8d8a5435863286b33083
|
|
4
|
+
data.tar.gz: 9100d0ad362173ea672e21f53dd1e9c1f4ecd9f9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c25358a3452bb85e24f7f5a20b97de09fbd750b30bb1b24641e1863da51377c2e7ad81d248a3821bc3a995e47363eeaad4fcb8d2b72f15b9577f480784e02b4b
|
|
7
|
+
data.tar.gz: 3db7e799d0e3db1136e100b1915e65773cce75e05a7581f382820033e27412b028b6c7299d0936984661345254829e560ca95b92eb865fdd6a3eef69f05e4d2a
|
|
@@ -10,9 +10,7 @@ module Ufebs
|
|
|
10
10
|
InvalidPriority = Class.new(StandardError)
|
|
11
11
|
|
|
12
12
|
DOCUMENT_NUMBER_TYPE = '01'.freeze
|
|
13
|
-
XMLNS = "urn:cbr-ru:ed:v2.0".freeze
|
|
14
13
|
SYSTEM_CODE = '01'.freeze
|
|
15
|
-
ED_AUTHOR = '4525595000'.freeze
|
|
16
14
|
|
|
17
15
|
register_namespace 'ed', "urn:cbr-ru:ed:v2.0"
|
|
18
16
|
tag 'ED101'
|
|
@@ -42,6 +40,7 @@ module Ufebs
|
|
|
42
40
|
charge_off_date: Time.now,
|
|
43
41
|
priority: 0,
|
|
44
42
|
receipt_date: Time.now,
|
|
43
|
+
ed_author:,
|
|
45
44
|
acc_doc: Ufebs::Entities::AccDoc.new,
|
|
46
45
|
payer: Ufebs::Entities::Participant.new,
|
|
47
46
|
payee: Ufebs::Entities::Participant.new,
|
|
@@ -64,7 +63,7 @@ module Ufebs
|
|
|
64
63
|
@departmental_info = departmental_info.is_a?(Hash) ? Ufebs::Entities::DepartmentalInfo.new(departmental_info) : departmental_info
|
|
65
64
|
@uin = uin
|
|
66
65
|
|
|
67
|
-
@ed_author =
|
|
66
|
+
@ed_author = ed_author
|
|
68
67
|
@type_number = DOCUMENT_NUMBER_TYPE
|
|
69
68
|
@system_code = SYSTEM_CODE
|
|
70
69
|
|
data/lib/ufebs/version.rb
CHANGED
data/lib/ufebs.rb
CHANGED
|
@@ -14,6 +14,7 @@ module Ufebs
|
|
|
14
14
|
@configuration ||= Configuration.new
|
|
15
15
|
end
|
|
16
16
|
|
|
17
|
+
# Конфигурация
|
|
17
18
|
def configure(&block)
|
|
18
19
|
block.call(configuration)
|
|
19
20
|
end
|
|
@@ -34,6 +35,19 @@ module Ufebs
|
|
|
34
35
|
Ufebs::Requests::TestRequest.new(params)
|
|
35
36
|
end
|
|
36
37
|
|
|
38
|
+
def ED210(params)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def ED243(params)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def ED218(params)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def ED244
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
|
|
37
51
|
# Создание XML по формату ED101(Платежное поручение)
|
|
38
52
|
# @param params [Hash] Hash значений документа
|
|
39
53
|
# @option params [Integer] :number номер документа аттрибут EDNo
|
|
@@ -51,6 +65,7 @@ module Ufebs
|
|
|
51
65
|
# sum: 150000,
|
|
52
66
|
# receipt_date: Time.now,
|
|
53
67
|
# acc_doc: { number: '3', date: Time.now },
|
|
68
|
+
# ed_author: 4525595000
|
|
54
69
|
# purpose: 'оплата в том числе ндс 4000 руб',
|
|
55
70
|
# payer: {
|
|
56
71
|
# name: 'ООО ТЕСТ',
|