sepa_rator 1.3.0 → 1.3.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/sepa_rator/account/debtor_account.rb +5 -2
- data/lib/sepa_rator/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: 1f81f775b9672175eb25c887d1c4d31525b1b218e7e7c4efa36b372bb85010e0
|
|
4
|
+
data.tar.gz: f64ce6a61f43c39f968bc17ead46ba48370351b440c32f838def6385dd719ca0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc7867b7ecf3f7bd2e19bc0fb557e75d1fb5492cc4ad51b34162fd522e798f7befdc4b47af0d9f52ede7eb0368d154834399466bb1b59b2d70faf6166d1a4a33
|
|
7
|
+
data.tar.gz: 8b3a5dfd400470eb34d62e263bf429ef4dc2d407ee5a2a7b9e69307c206374169b528f307bb729e1af0fb57c263f4de7cc83ce15c6427249e8333e0d078a3113
|
|
@@ -2,12 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
module SEPA
|
|
4
4
|
class DebtorAccount < Account
|
|
5
|
-
attr_accessor :initiating_party_identifier, :initiating_party_lei, :initiating_party_bic
|
|
5
|
+
attr_accessor :initiating_party_identifier, :initiating_party_scheme, :initiating_party_lei, :initiating_party_bic
|
|
6
6
|
|
|
7
7
|
convert :initiating_party_identifier, to: :text
|
|
8
|
+
convert :initiating_party_scheme, to: :text
|
|
8
9
|
# Max256Text (v13 GenericOrganisationIdentification3); stricter v03/v09
|
|
9
10
|
# limits are enforced by XSD validation at output time.
|
|
10
11
|
validates_length_of :initiating_party_identifier, within: 1..256, allow_nil: true
|
|
12
|
+
validates_length_of :initiating_party_scheme, within: 1..35, allow_nil: true
|
|
11
13
|
validates_with LEIValidator, field_name: :initiating_party_lei, message: 'is invalid'
|
|
12
14
|
validates_with BICValidator, field_name: :initiating_party_bic, message: 'is invalid'
|
|
13
15
|
|
|
@@ -15,7 +17,8 @@ module SEPA
|
|
|
15
17
|
return unless initiating_party_identifier || initiating_party_bic || initiating_party_lei
|
|
16
18
|
|
|
17
19
|
build_organisation_id(builder, initiating_party_identifier, profile,
|
|
18
|
-
lei: initiating_party_lei, org_bic: initiating_party_bic
|
|
20
|
+
lei: initiating_party_lei, org_bic: initiating_party_bic,
|
|
21
|
+
scheme: initiating_party_scheme)
|
|
19
22
|
end
|
|
20
23
|
end
|
|
21
24
|
end
|
data/lib/sepa_rator/version.rb
CHANGED