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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f5c4d4ba498a51346375639632710641e3155d6ae580f6b20a830970cc16b91
4
- data.tar.gz: 340692a742d81be85dd1c46568269192a04f05f6ca63a9cf0ce270a28c3873e4
3
+ metadata.gz: 1f81f775b9672175eb25c887d1c4d31525b1b218e7e7c4efa36b372bb85010e0
4
+ data.tar.gz: f64ce6a61f43c39f968bc17ead46ba48370351b440c32f838def6385dd719ca0
5
5
  SHA512:
6
- metadata.gz: bf92825685748b1537816192e43049895c61d460891ec3dcb151fa1d85aa126b6660c75292336e1f1d73f0b453d9e6424e7f1381b74ae10588b69bc320226c16
7
- data.tar.gz: 896146e071e0be2f864156b5b8241307f47dac1848e25910e4691933fe948e47de40b597038a3bfeb918c958d07c8bb963e5b66a5fdd29d203cc8f0016062376
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SEPA
4
- VERSION = '1.3.0'
4
+ VERSION = '1.3.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sepa_rator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Leciejewski