sepa 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
+ require 'countries'
3
4
  require 'sepa/payments_initiation/pain00800104/customer_direct_debit_initiation'
4
5
 
5
6
  class Sepa::DirectDebitOrder
@@ -11,6 +12,14 @@ class Sepa::DirectDebitOrder
11
12
  def blank_string? item
12
13
  item.is_a?(String) && item.strip.length == 0
13
14
  end
15
+
16
+ def county_code name
17
+ return "" if blank?(name)
18
+ name = name.upcase
19
+ return name if name.match(/^[A-Z]{2}$/)
20
+ country = ::Country.find_country_by_name(name)
21
+ country ? country.alpha2 : ""
22
+ end
14
23
  end
15
24
 
16
25
  class Order
@@ -61,12 +70,13 @@ class Sepa::DirectDebitOrder
61
70
  end
62
71
 
63
72
  def to_properties prefix, opts
73
+ cc = county_code country
64
74
  hsh = { "#{prefix}.name" => name }
65
75
  hsh["#{prefix}.postal_address.address_line[0]"] = address_line_1 unless blank? address_line_1
66
76
  hsh["#{prefix}.postal_address.address_line[1]"] = address_line_2 unless blank? address_line_2
67
77
  hsh["#{prefix}.postal_address.post_code"] = postcode unless blank? postcode
68
78
  hsh["#{prefix}.postal_address.town_name"] = town unless blank? town
69
- hsh["#{prefix}.postal_address.country"] = country unless blank? country
79
+ hsh["#{prefix}.postal_address.country"] = cc unless blank? cc
70
80
  hsh["#{prefix}.contact_details.name"] = contact_name unless blank? contact_name
71
81
  hsh["#{prefix}.contact_details.phone_number"] = contact_phone unless blank? contact_phone
72
82
  hsh["#{prefix}.contact_details.email_address"] = contact_email unless blank? contact_email
@@ -165,8 +175,10 @@ class Sepa::DirectDebitOrder
165
175
  end
166
176
 
167
177
  def to_properties prefix, opts
168
- { "#{prefix}_account.identification.iban" => iban,
169
- "#{prefix}_agent.financial_institution_identification.bic_fi" => swift }
178
+ bic_tag = ( opts[:pain_008_001_version] == "04" ? "bic_fi" : "bic" )
179
+
180
+ { "#{prefix}_account.identification.iban" => iban,
181
+ "#{prefix}_agent.financial_institution_identification.#{bic_tag}" => swift }
170
182
  end
171
183
  end
172
184
 
@@ -3,7 +3,8 @@ require "sepa/payments_initiation/postal_address"
3
3
  class Sepa::PaymentsInitiation::FinancialInstitutionIdentification < Sepa::Base
4
4
  definition "Unique and unambiguous identification of a financial institution, as assigned under an internationally recognised or proprietary identification scheme."
5
5
  attribute :bic_fi, "BICFI"
6
- attribute :name, "Nm"
6
+ attribute :bic, "BIC"
7
+ attribute :name, "Nm"
7
8
  attribute :postal_address, "PstlAdr", Sepa::PaymentsInitiation::PostalAddress
8
9
 
9
10
  end
@@ -12,9 +12,15 @@ class Sepa::PaymentsInitiation::Pain00800104::CustomerDirectDebitInitiation < Se
12
12
  raise "unknown SEPA pain-008-001 version: #{pain_008_001_version.inspect} - use '04' or '02'"
13
13
  end
14
14
 
15
+ doc_props = {
16
+ :xmlns => "urn:iso:std:iso:20022:tech:xsd:pain.008.001.#{pain_008_001_version}",
17
+ :"xmlns:xsi" => "http://www.w3.org/2001/XMLSchema-instance",
18
+ :"xsi:schemaLocation" => "urn:iso:std:iso:20022:tech:xsd:pain.008.001.#{pain_008_001_version} pain.008.001.#{pain_008_001_version}.xsd"
19
+ }
20
+
15
21
  builder = Builder::XmlMarkup.new(:indent => 2)
16
22
  builder.instruct!
17
- builder.Document(:xmlns=>"urn:iso:std:iso:20022:tech:xsd:pain.008.001.#{pain_008_001_version}", :"xmlns:xsi"=>"http://www.w3.org/2001/XMLSchema-instance", :"xsi:schemaLocation"=>"urn:iso:std:iso:20022:tech:xsd:pain.008.001.04 pain.008.001.04.xsd") {
23
+ builder.Document(doc_props) {
18
24
  builder.CstmrDrctDbtInitn {
19
25
  self.to_xml builder
20
26
  }
@@ -7,8 +7,8 @@ class Sepa::PaymentsInitiation::Pain00800104::GroupHeader < Sepa::Base
7
7
  attribute :message_identification, "MsgId"
8
8
  attribute :creation_date_time , "CreDtTm", Time
9
9
  attribute :number_of_transactions, "NbOfTxs"
10
- attribute :initiating_party , "InitgPty", Sepa::PaymentsInitiation::PartyIdentification
11
10
  attribute :control_sum , "CtrlSum"
11
+ attribute :initiating_party , "InitgPty", Sepa::PaymentsInitiation::PartyIdentification
12
12
  attribute :authorisation , "Authstn", Sepa::PaymentsInitiation::Authorisation
13
13
  attribute :forwarding_agent , "FwdgAgt", Sepa::PaymentsInitiation::BranchAndFinancialInstitutionIdentification
14
14
  end
data/lib/sepa/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sepa
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
data/sepa.gemspec CHANGED
@@ -11,12 +11,13 @@ Gem::Specification.new do |gem|
11
11
  gem.authors = ["Conan Dalton"]
12
12
  gem.license = 'MIT'
13
13
  gem.email = ["conan@conandalton.net"]
14
- gem.description = %q{ Generate ISO20022 XML messages. Implements pain.008.001.04 CustomerDirectDebitInitiation for now. WARNING: NO WARRANTY, USE AT YOUR OWN RISK AND PERIL. }
15
- gem.summary = %q{ pain.008.001.04 CustomerDirectDebitInitiation ISO20022 XML. WARNING: NO WARRANTY, USE AT YOUR OWN RISK AND PERIL. }
14
+ gem.description = %q{ Generate ISO20022 XML messages. Implements a subset of pain.008.001.02 and pain.008.001.04 CustomerDirectDebitInitiation for now. WARNING: NO WARRANTY, USE AT YOUR OWN RISK AND PERIL. }
15
+ gem.summary = %q{ pain.008.001.04 and pain.008.001.02 CustomerDirectDebitInitiation ISO20022 XML. WARNING: NO WARRANTY, USE AT YOUR OWN RISK AND PERIL. }
16
16
  gem.homepage = "https://github.com/conanite/sepa"
17
17
 
18
18
  gem.add_dependency 'builder'
19
19
  gem.add_dependency 'aduki'
20
+ gem.add_dependency 'countries', "~> 0.9.3"
20
21
  gem.add_development_dependency 'rspec', '~> 2.9'
21
22
  gem.add_development_dependency 'rspec_numbering_formatter'
22
23
 
@@ -7,19 +7,19 @@ describe Sepa::DirectDebitOrder do
7
7
 
8
8
  def order sepa_identifier_class
9
9
  bank_account0 = Sepa::DirectDebitOrder::BankAccount.new "FRZIZIPAPARAZZI345789", "FRZZPPKOOKOO"
10
- debtor0 = Sepa::DirectDebitOrder::Party.new "DALTON/CONANMR", "64, Livva de Getamire", nil, "30005", "RENNES", "FR", "Conan DALTON", "01234567890", "conan@dalton.sepa.i.hope.this.works"
10
+ debtor0 = Sepa::DirectDebitOrder::Party.new "DALTON/CONANMR", "64, Livva de Getamire", nil, "30005", "RENNES", "France", "Conan DALTON", "01234567890", "conan@dalton.sepa.i.hope.this.works"
11
11
  mandate0 = Sepa::DirectDebitOrder::MandateInformation.new("mandate-id-0", Date.parse("2010-11-18"), "RCUR")
12
12
  dd00 = Sepa::DirectDebitOrder::DirectDebit.new debtor0, bank_account0, "MONECOLE REG F13789 PVT 3", 1231.31, "EUR", mandate0
13
13
  dd01 = Sepa::DirectDebitOrder::DirectDebit.new debtor0, bank_account0, "MONECOLE REG F13791 PVT 3", 1133.33, "EUR", mandate0
14
14
 
15
15
  bank_account1 = Sepa::DirectDebitOrder::BankAccount.new "FRQUIQUIWIGWAM947551", "FRQQWIGGA"
16
- debtor1 = Sepa::DirectDebitOrder::Party.new "ADAMS/SAMUELMR", "256, Livva de Getamire", nil, "75048", "PARIS", "FR", "Samuel ADAMS", "09876543210", "samuel@adams.sepa.i.hope.this.works"
16
+ debtor1 = Sepa::DirectDebitOrder::Party.new "ADAMS/SAMUELMR", "256, Livva de Getamire", nil, "75048", "BERLIN", "Germany", "Samuel ADAMS", "09876543210", "samuel@adams.sepa.i.hope.this.works"
17
17
  mandate1 = Sepa::DirectDebitOrder::MandateInformation.new("mandate-id-1", Date.parse("2012-01-19"), "FRST")
18
18
  dd10 = Sepa::DirectDebitOrder::DirectDebit.new debtor1, bank_account1, "MONECOLE REG F13790 PVT 3", 1732.32, "EUR", mandate1
19
19
  dd11 = Sepa::DirectDebitOrder::DirectDebit.new debtor1, bank_account1, "MONECOLE REG F13792 PVT 3", 1034.34, "EUR", mandate1
20
20
 
21
21
  bank_account2 = Sepa::DirectDebitOrder::BankAccount.new "FRQUIQUIWIGWAM947551", "FRQQWIGGA"
22
- debtor2 = Sepa::DirectDebitOrder::Party.new "ADAMS/SAMUELMR", "512, Livva de Meet Agir", nil, "75099", "PARIS", "FR", "Johann S. BACH", "09876543210", "js@bach.sepa.i.hope.this.works"
22
+ debtor2 = Sepa::DirectDebitOrder::Party.new "Mr. James Joyce", "512, Livva de Meet Agir", nil, "75099", "LONDON", "Angleterre", "Johann S. BACH", "09876543210", "js@bach.sepa.i.hope.this.works"
23
23
  mandate2 = Sepa::DirectDebitOrder::MandateInformation.new("mandate-id-2", Date.parse("2013-06-08"), "RCUR")
24
24
  dd20 = Sepa::DirectDebitOrder::DirectDebit.new debtor2, bank_account2, "MONECOLE REG F13793 PVT 3", 1935.35, "EUR", mandate2
25
25
  dd21 = Sepa::DirectDebitOrder::DirectDebit.new debtor2, bank_account2, "MONECOLE REG F13794 PVT 3", 1236.36, "EUR", mandate2
@@ -27,7 +27,7 @@ describe Sepa::DirectDebitOrder do
27
27
  sepa_now = Time.strptime "1992-02-28T18:30:00", "%Y-%m-%dT%H:%M:%S"
28
28
  Time.stub(:now).and_return sepa_now
29
29
 
30
- creditor = Sepa::DirectDebitOrder::Party.new "Mon École", "3, Livva de Getamire", nil, "75022", "Paris", "FR", "M. le Directeur", "+33 999 999 999", "directeur@monecole.softify.com"
30
+ creditor = Sepa::DirectDebitOrder::Party.new "Mon École", "3, Livva de Getamire", nil, "75022", "Paris", "Frankreich", "M. le Directeur", "+33 999 999 999", "directeur@monecole.softify.com"
31
31
  creditor_account = Sepa::DirectDebitOrder::BankAccount.new "FRGOOGOOYADDA9999999", "FRGGYELLOW99"
32
32
  sepa_identifier = sepa_identifier_class.new "FR123ZZZ010203"
33
33
  payment = Sepa::DirectDebitOrder::CreditorPayment.new creditor, creditor_account, "MONECOLE_PAYMENTS_20130703", Date.parse("2013-07-10"), sepa_identifier, [dd00, dd01, dd10, dd11, dd20, dd21]
@@ -5,6 +5,7 @@
5
5
  <MsgId>MSG0001</MsgId>
6
6
  <CreDtTm>1992-02-28T18:30:00</CreDtTm>
7
7
  <NbOfTxs>2</NbOfTxs>
8
+ <CtrlSum>2963.63</CtrlSum>
8
9
  <InitgPty>
9
10
  <Nm>SOFTIFY SARL</Nm>
10
11
  <PstlAdr>
@@ -19,7 +20,6 @@
19
20
  <EmailAdr>gerant@softify.bigbang</EmailAdr>
20
21
  </CtctDtls>
21
22
  </InitgPty>
22
- <CtrlSum>2963.63</CtrlSum>
23
23
  </GrpHdr>
24
24
  <PmtInf>
25
25
  <PmtInfId>MONECOLE_PAYMENTS_20130703</PmtInfId>
@@ -1,10 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.008.001.04 pain.008.001.04.xsd">
2
+ <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.008.001.02 pain.008.001.02.xsd">
3
3
  <CstmrDrctDbtInitn>
4
4
  <GrpHdr>
5
5
  <MsgId>MSG0001</MsgId>
6
6
  <CreDtTm>1992-02-28T18:30:00</CreDtTm>
7
7
  <NbOfTxs>6</NbOfTxs>
8
+ <CtrlSum>8303.01</CtrlSum>
8
9
  <InitgPty>
9
10
  <Nm>SOFTIFY SARL</Nm>
10
11
  <PstlAdr>
@@ -19,7 +20,6 @@
19
20
  <EmailAdr>gerant@softify.bigbang</EmailAdr>
20
21
  </CtctDtls>
21
22
  </InitgPty>
22
- <CtrlSum>8303.01</CtrlSum>
23
23
  </GrpHdr>
24
24
  <PmtInf>
25
25
  <PmtInfId>MONECOLE_PAYMENTS_20130703_FRST</PmtInfId>
@@ -57,7 +57,7 @@
57
57
  </CdtrAcct>
58
58
  <CdtrAgt>
59
59
  <FinInstnId>
60
- <BICFI>FRGGYELLOW99</BICFI>
60
+ <BIC>FRGGYELLOW99</BIC>
61
61
  </FinInstnId>
62
62
  </CdtrAgt>
63
63
  <ChrgBr>SLEV</ChrgBr>
@@ -86,15 +86,15 @@
86
86
  </DrctDbtTx>
87
87
  <DbtrAgt>
88
88
  <FinInstnId>
89
- <BICFI>FRQQWIGGA</BICFI>
89
+ <BIC>FRQQWIGGA</BIC>
90
90
  </FinInstnId>
91
91
  </DbtrAgt>
92
92
  <Dbtr>
93
93
  <Nm>ADAMS/SAMUELMR</Nm>
94
94
  <PstlAdr>
95
95
  <PstCd>75048</PstCd>
96
- <TwnNm>PARIS</TwnNm>
97
- <Ctry>FR</Ctry>
96
+ <TwnNm>BERLIN</TwnNm>
97
+ <Ctry>DE</Ctry>
98
98
  <AdrLine>256, Livva de Getamire</AdrLine>
99
99
  </PstlAdr>
100
100
  <CtctDtls>
@@ -122,15 +122,15 @@
122
122
  </DrctDbtTx>
123
123
  <DbtrAgt>
124
124
  <FinInstnId>
125
- <BICFI>FRQQWIGGA</BICFI>
125
+ <BIC>FRQQWIGGA</BIC>
126
126
  </FinInstnId>
127
127
  </DbtrAgt>
128
128
  <Dbtr>
129
129
  <Nm>ADAMS/SAMUELMR</Nm>
130
130
  <PstlAdr>
131
131
  <PstCd>75048</PstCd>
132
- <TwnNm>PARIS</TwnNm>
133
- <Ctry>FR</Ctry>
132
+ <TwnNm>BERLIN</TwnNm>
133
+ <Ctry>DE</Ctry>
134
134
  <AdrLine>256, Livva de Getamire</AdrLine>
135
135
  </PstlAdr>
136
136
  <CtctDtls>
@@ -182,7 +182,7 @@
182
182
  </CdtrAcct>
183
183
  <CdtrAgt>
184
184
  <FinInstnId>
185
- <BICFI>FRGGYELLOW99</BICFI>
185
+ <BIC>FRGGYELLOW99</BIC>
186
186
  </FinInstnId>
187
187
  </CdtrAgt>
188
188
  <ChrgBr>SLEV</ChrgBr>
@@ -211,7 +211,7 @@
211
211
  </DrctDbtTx>
212
212
  <DbtrAgt>
213
213
  <FinInstnId>
214
- <BICFI>FRZZPPKOOKOO</BICFI>
214
+ <BIC>FRZZPPKOOKOO</BIC>
215
215
  </FinInstnId>
216
216
  </DbtrAgt>
217
217
  <Dbtr>
@@ -247,7 +247,7 @@
247
247
  </DrctDbtTx>
248
248
  <DbtrAgt>
249
249
  <FinInstnId>
250
- <BICFI>FRZZPPKOOKOO</BICFI>
250
+ <BIC>FRZZPPKOOKOO</BIC>
251
251
  </FinInstnId>
252
252
  </DbtrAgt>
253
253
  <Dbtr>
@@ -283,15 +283,14 @@
283
283
  </DrctDbtTx>
284
284
  <DbtrAgt>
285
285
  <FinInstnId>
286
- <BICFI>FRQQWIGGA</BICFI>
286
+ <BIC>FRQQWIGGA</BIC>
287
287
  </FinInstnId>
288
288
  </DbtrAgt>
289
289
  <Dbtr>
290
- <Nm>ADAMS/SAMUELMR</Nm>
290
+ <Nm>Mr. James Joyce</Nm>
291
291
  <PstlAdr>
292
292
  <PstCd>75099</PstCd>
293
- <TwnNm>PARIS</TwnNm>
294
- <Ctry>FR</Ctry>
293
+ <TwnNm>LONDON</TwnNm>
295
294
  <AdrLine>512, Livva de Meet Agir</AdrLine>
296
295
  </PstlAdr>
297
296
  <CtctDtls>
@@ -319,15 +318,14 @@
319
318
  </DrctDbtTx>
320
319
  <DbtrAgt>
321
320
  <FinInstnId>
322
- <BICFI>FRQQWIGGA</BICFI>
321
+ <BIC>FRQQWIGGA</BIC>
323
322
  </FinInstnId>
324
323
  </DbtrAgt>
325
324
  <Dbtr>
326
- <Nm>ADAMS/SAMUELMR</Nm>
325
+ <Nm>Mr. James Joyce</Nm>
327
326
  <PstlAdr>
328
327
  <PstCd>75099</PstCd>
329
- <TwnNm>PARIS</TwnNm>
330
- <Ctry>FR</Ctry>
328
+ <TwnNm>LONDON</TwnNm>
331
329
  <AdrLine>512, Livva de Meet Agir</AdrLine>
332
330
  </PstlAdr>
333
331
  <CtctDtls>
@@ -5,6 +5,7 @@
5
5
  <MsgId>MSG0001</MsgId>
6
6
  <CreDtTm>1992-02-28T18:30:00</CreDtTm>
7
7
  <NbOfTxs>6</NbOfTxs>
8
+ <CtrlSum>8303.01</CtrlSum>
8
9
  <InitgPty>
9
10
  <Nm>SOFTIFY SARL</Nm>
10
11
  <PstlAdr>
@@ -19,7 +20,6 @@
19
20
  <EmailAdr>gerant@softify.bigbang</EmailAdr>
20
21
  </CtctDtls>
21
22
  </InitgPty>
22
- <CtrlSum>8303.01</CtrlSum>
23
23
  </GrpHdr>
24
24
  <PmtInf>
25
25
  <PmtInfId>MONECOLE_PAYMENTS_20130703</PmtInfId>
@@ -173,8 +173,8 @@
173
173
  <Nm>ADAMS/SAMUELMR</Nm>
174
174
  <PstlAdr>
175
175
  <PstCd>75048</PstCd>
176
- <TwnNm>PARIS</TwnNm>
177
- <Ctry>FR</Ctry>
176
+ <TwnNm>BERLIN</TwnNm>
177
+ <Ctry>DE</Ctry>
178
178
  <AdrLine>256, Livva de Getamire</AdrLine>
179
179
  </PstlAdr>
180
180
  <CtctDtls>
@@ -212,8 +212,8 @@
212
212
  <Nm>ADAMS/SAMUELMR</Nm>
213
213
  <PstlAdr>
214
214
  <PstCd>75048</PstCd>
215
- <TwnNm>PARIS</TwnNm>
216
- <Ctry>FR</Ctry>
215
+ <TwnNm>BERLIN</TwnNm>
216
+ <Ctry>DE</Ctry>
217
217
  <AdrLine>256, Livva de Getamire</AdrLine>
218
218
  </PstlAdr>
219
219
  <CtctDtls>
@@ -248,11 +248,10 @@
248
248
  </FinInstnId>
249
249
  </DbtrAgt>
250
250
  <Dbtr>
251
- <Nm>ADAMS/SAMUELMR</Nm>
251
+ <Nm>Mr. James Joyce</Nm>
252
252
  <PstlAdr>
253
253
  <PstCd>75099</PstCd>
254
- <TwnNm>PARIS</TwnNm>
255
- <Ctry>FR</Ctry>
254
+ <TwnNm>LONDON</TwnNm>
256
255
  <AdrLine>512, Livva de Meet Agir</AdrLine>
257
256
  </PstlAdr>
258
257
  <CtctDtls>
@@ -287,11 +286,10 @@
287
286
  </FinInstnId>
288
287
  </DbtrAgt>
289
288
  <Dbtr>
290
- <Nm>ADAMS/SAMUELMR</Nm>
289
+ <Nm>Mr. James Joyce</Nm>
291
290
  <PstlAdr>
292
291
  <PstCd>75099</PstCd>
293
- <TwnNm>PARIS</TwnNm>
294
- <Ctry>FR</Ctry>
292
+ <TwnNm>LONDON</TwnNm>
295
293
  <AdrLine>512, Livva de Meet Agir</AdrLine>
296
294
  </PstlAdr>
297
295
  <CtctDtls>
@@ -5,6 +5,7 @@
5
5
  <MsgId>MSG0001</MsgId>
6
6
  <CreDtTm>1992-02-28T18:30:00</CreDtTm>
7
7
  <NbOfTxs>6</NbOfTxs>
8
+ <CtrlSum>8303.01</CtrlSum>
8
9
  <InitgPty>
9
10
  <Nm>SOFTIFY SARL</Nm>
10
11
  <PstlAdr>
@@ -19,7 +20,6 @@
19
20
  <EmailAdr>gerant@softify.bigbang</EmailAdr>
20
21
  </CtctDtls>
21
22
  </InitgPty>
22
- <CtrlSum>8303.01</CtrlSum>
23
23
  </GrpHdr>
24
24
  <PmtInf>
25
25
  <PmtInfId>MONECOLE_PAYMENTS_20130703</PmtInfId>
@@ -173,8 +173,8 @@
173
173
  <Nm>ADAMS/SAMUELMR</Nm>
174
174
  <PstlAdr>
175
175
  <PstCd>75048</PstCd>
176
- <TwnNm>PARIS</TwnNm>
177
- <Ctry>FR</Ctry>
176
+ <TwnNm>BERLIN</TwnNm>
177
+ <Ctry>DE</Ctry>
178
178
  <AdrLine>256, Livva de Getamire</AdrLine>
179
179
  </PstlAdr>
180
180
  <CtctDtls>
@@ -212,8 +212,8 @@
212
212
  <Nm>ADAMS/SAMUELMR</Nm>
213
213
  <PstlAdr>
214
214
  <PstCd>75048</PstCd>
215
- <TwnNm>PARIS</TwnNm>
216
- <Ctry>FR</Ctry>
215
+ <TwnNm>BERLIN</TwnNm>
216
+ <Ctry>DE</Ctry>
217
217
  <AdrLine>256, Livva de Getamire</AdrLine>
218
218
  </PstlAdr>
219
219
  <CtctDtls>
@@ -248,11 +248,10 @@
248
248
  </FinInstnId>
249
249
  </DbtrAgt>
250
250
  <Dbtr>
251
- <Nm>ADAMS/SAMUELMR</Nm>
251
+ <Nm>Mr. James Joyce</Nm>
252
252
  <PstlAdr>
253
253
  <PstCd>75099</PstCd>
254
- <TwnNm>PARIS</TwnNm>
255
- <Ctry>FR</Ctry>
254
+ <TwnNm>LONDON</TwnNm>
256
255
  <AdrLine>512, Livva de Meet Agir</AdrLine>
257
256
  </PstlAdr>
258
257
  <CtctDtls>
@@ -287,11 +286,10 @@
287
286
  </FinInstnId>
288
287
  </DbtrAgt>
289
288
  <Dbtr>
290
- <Nm>ADAMS/SAMUELMR</Nm>
289
+ <Nm>Mr. James Joyce</Nm>
291
290
  <PstlAdr>
292
291
  <PstCd>75099</PstCd>
293
- <TwnNm>PARIS</TwnNm>
294
- <Ctry>FR</Ctry>
292
+ <TwnNm>LONDON</TwnNm>
295
293
  <AdrLine>512, Livva de Meet Agir</AdrLine>
296
294
  </PstlAdr>
297
295
  <CtctDtls>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sepa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-12 00:00:00.000000000 Z
12
+ date: 2013-11-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: builder
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ! '>='
44
44
  - !ruby/object:Gem::Version
45
45
  version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: countries
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 0.9.3
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 0.9.3
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: rspec
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -75,8 +91,9 @@ dependencies:
75
91
  - - ! '>='
76
92
  - !ruby/object:Gem::Version
77
93
  version: '0'
78
- description: ! ' Generate ISO20022 XML messages. Implements pain.008.001.04 CustomerDirectDebitInitiation
79
- for now. WARNING: NO WARRANTY, USE AT YOUR OWN RISK AND PERIL. '
94
+ description: ! ' Generate ISO20022 XML messages. Implements a subset of pain.008.001.02
95
+ and pain.008.001.04 CustomerDirectDebitInitiation for now. WARNING: NO WARRANTY,
96
+ USE AT YOUR OWN RISK AND PERIL. '
80
97
  email:
81
98
  - conan@conandalton.net
82
99
  executables: []
@@ -163,8 +180,8 @@ rubyforge_project:
163
180
  rubygems_version: 1.8.24
164
181
  signing_key:
165
182
  specification_version: 3
166
- summary: ! 'pain.008.001.04 CustomerDirectDebitInitiation ISO20022 XML. WARNING: NO
167
- WARRANTY, USE AT YOUR OWN RISK AND PERIL.'
183
+ summary: ! 'pain.008.001.04 and pain.008.001.02 CustomerDirectDebitInitiation ISO20022
184
+ XML. WARNING: NO WARRANTY, USE AT YOUR OWN RISK AND PERIL.'
168
185
  test_files:
169
186
  - spec/sepa/direct_debit_order_spec.rb
170
187
  - spec/sepa/direct_debit_properties.yml