sepa_king_extended 0.11.4 → 0.11.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sepa_king/message/credit_transfer.rb +9 -0
- data/lib/sepa_king/transaction.rb +5 -2
- data/lib/sepa_king/version.rb +1 -1
- data/sepa_king_extended-0.11.4.gem +0 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a1264ed97060c95eead732e6ee2fd9a1d8361b9
|
4
|
+
data.tar.gz: 3c1470f514e00e18d6e4c01d8e4a04f4cf612d55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ac444f2bd520d398c111dac8643651b39f21a71c7231bbb862018ca1e5f7e1413d494d278a3d86e69ac1d6bee817428ad329418cd0de2544ddfb2c906494dea
|
7
|
+
data.tar.gz: 55e92377d5d7c99cec07bc78c9c7ac9260ad29c0921a2ed1afa8dfee518c0284b9d0a7d71ea812407da198a9a59a879d794f9fc1a34618cfad69832d39f6db48
|
@@ -84,6 +84,15 @@ module SEPA
|
|
84
84
|
end
|
85
85
|
builder.Cdtr do
|
86
86
|
builder.Nm(transaction.name)
|
87
|
+
if transaction.street_name
|
88
|
+
builder.StrtNm(transaction.street_name)
|
89
|
+
end
|
90
|
+
if transaction.post_code
|
91
|
+
builder.PstCd(transaction.post_code)
|
92
|
+
end
|
93
|
+
if transaction.town_name
|
94
|
+
builder.TwnNm(transaction.town_name)
|
95
|
+
end
|
87
96
|
end
|
88
97
|
builder.CdtrAcct do
|
89
98
|
builder.Id do
|
@@ -6,8 +6,8 @@ module SEPA
|
|
6
6
|
|
7
7
|
DEFAULT_REQUESTED_DATE = Date.new(1999, 1, 1).freeze
|
8
8
|
|
9
|
-
attr_accessor :name, :iban, :bic, :amount, :instruction, :reference, :remittance_information, :requested_date, :batch_booking, :currency
|
10
|
-
convert :name, :instruction, :reference, :remittance_information, to: :text
|
9
|
+
attr_accessor :name, :iban, :bic, :amount, :instruction, :reference, :remittance_information, :requested_date, :batch_booking, :currency, :street_name, :post_code, :town_name
|
10
|
+
convert :name, :instruction, :reference, :remittance_information, :street_name, :post_code, :town_name, to: :text
|
11
11
|
convert :amount, to: :decimal
|
12
12
|
|
13
13
|
validates_length_of :name, within: 1..70
|
@@ -15,6 +15,9 @@ module SEPA
|
|
15
15
|
validates_length_of :instruction, within: 1..35, allow_nil: true
|
16
16
|
validates_length_of :reference, within: 1..35, allow_nil: true
|
17
17
|
validates_length_of :remittance_information, within: 1..140, allow_nil: true
|
18
|
+
validates_length_of :street_name, within: 1..70, allow_nil: true
|
19
|
+
validates_length_of :post_code, within: 1..16, allow_nil: true
|
20
|
+
validates_length_of :town_name, within: 1..35, allow_nil: true
|
18
21
|
validates_numericality_of :amount, greater_than: 0
|
19
22
|
validates_presence_of :requested_date
|
20
23
|
validates_inclusion_of :batch_booking, :in => [true, false]
|
data/lib/sepa_king/version.rb
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sepa_king_extended
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Georg Leciejewski
|
@@ -187,6 +187,7 @@ files:
|
|
187
187
|
- sepa_king_extended-0.11.1.gem
|
188
188
|
- sepa_king_extended-0.11.2.gem
|
189
189
|
- sepa_king_extended-0.11.3.gem
|
190
|
+
- sepa_king_extended-0.11.4.gem
|
190
191
|
- sepa_king_extended.gemspec
|
191
192
|
- spec/account_spec.rb
|
192
193
|
- spec/converter_spec.rb
|