sepa 0.0.18.2 → 0.0.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab9664447c049ccc5d9bee8208adedeaf835127a
4
- data.tar.gz: 2458d3d8e38a35ac4e06fd6d84cbb3b6b8f3fdbd
3
+ metadata.gz: d75033937c180d496d10dc6fdfc6fb66b52d8784
4
+ data.tar.gz: 9a9a5c484fcdde9e1498b27345f8cb758279b96f
5
5
  SHA512:
6
- metadata.gz: c767a5457b79d39ed6d7ca038cb4ae97cefd6593ca20e999c71fca5ae7059f04fd34786e0a4b486d2816c67100ddfa04dff8457859063da0935e66aa61099419
7
- data.tar.gz: 4415b51f8c5bd33c997218e2bd8ffee8718546117f02d75e62095ced989d1b56a1865a3c69dcc3b3a53ebd9bb69c3eb01ab1d9069c4ea285beb8214fec20b55a
6
+ metadata.gz: 37b47194ed56a516a6e162b113d5db6f929913e0ad434f446fdff69f35e0e12320c747f679f7c286ce6adc401085406082127680009b5b5803e77ce834527875
7
+ data.tar.gz: 02a182a32f13c526a0a5364523c99ffec035b1b220cf1cdc15c482dbb658e6c185527c937748b8313d6d9f08577f6f159b39a50656ab8835882dc37f2495b727
data/README.md CHANGED
@@ -50,28 +50,69 @@ a message-id.
50
50
 
51
51
  for(each dd in direct_debits) do | ... |
52
52
  bank_account = Sepa::DirectDebitOrder::BankAccount.new dd.iban, dd.bic
53
- debtor = Sepa::DirectDebitOrder::Party.new dd.name, dd.addr, nil, dd.postcode, dd.town, dd.country, dd.contact, dd.phone, dd.email
54
- mandate = Sepa::DirectDebitOrder::MandateInformation.new dd.mandate_id, dd.sig_date, dd.sequence_type
55
- dd_list << Sepa::DirectDebitOrder::DirectDebit.new debtor, bank_account, dd.end_to_end_id, dd.amount, "EUR", mandate
53
+
54
+ debtor = Sepa::DirectDebitOrder::Party.new(dd.name,
55
+ dd.addr,
56
+ nil,
57
+ dd.postcode,
58
+ dd.town,
59
+ dd.country,
60
+ dd.contact,
61
+ dd.phone,
62
+ dd.email)
63
+
64
+ mandate = Sepa::DirectDebitOrder::MandateInformation.new(dd.mandate_id,
65
+ dd.sig_date,
66
+ dd.sequence_type)
67
+
68
+ dd_list << Sepa::DirectDebitOrder::DirectDebit.new(debtor,
69
+ bank_account,
70
+ dd.end_to_end_id,
71
+ dd.amount,
72
+ "EUR",
73
+ mandate)
56
74
  end
57
75
 
58
- creditor = Sepa::DirectDebitOrder::Party.new creditor.name, creditor.address, nil, creditor.postcode, creditor.town, creditor.country, creditor.contact, creditor.phone, creditor.email
76
+ creditor = Sepa::DirectDebitOrder::Party.new(creditor.name,
77
+ creditor.address,
78
+ nil,
79
+ creditor.postcode,
80
+ creditor.town,
81
+ creditor.country,
82
+ creditor.contact,
83
+ creditor.phone,
84
+ creditor.email)
59
85
 
60
- creditor_account = Sepa::DirectDebitOrder::BankAccount.new creditor.iban, creditor.bic
86
+ creditor_account = Sepa::DirectDebitOrder::BankAccount.new(creditor.iban,
87
+ creditor.bic)
61
88
 
62
89
  sepa_identifier = Sepa::DirectDebitOrder::PrivateSepaIdentifier.new creditor.sepa_identifier
63
90
 
64
- payment = Sepa::DirectDebitOrder::CreditorPayment.new creditor, creditor_account, payment_identifier, collection_date, sepa_identifier, dd_list
65
-
66
- initiator = Sepa::DirectDebitOrder::Party.new initiator.identifier, initiator.address, nil, initiator.postcode, initiator.town, initiator.country, initiator.contact, initiator.phone, initiator.email
67
-
68
- order = Sepa::DirectDebitOrder::Order.new message_id, initiator, [payment]
91
+ payment = Sepa::DirectDebitOrder::CreditorPayment.new(creditor,
92
+ creditor_account,
93
+ payment_identifier,
94
+ collection_date,
95
+ sepa_identifier,
96
+ dd_list)
97
+
98
+ initiator = Sepa::DirectDebitOrder::Party.new(initiator.identifier,
99
+ initiator.address,
100
+ nil,
101
+ initiator.postcode,
102
+ initiator.town,
103
+ initiator.country,
104
+ initiator.contact,
105
+ initiator.phone,
106
+ initiator.email)
107
+
108
+ order = Sepa::DirectDebitOrder::Order.new(message_id,
109
+ initiator,
110
+ [payment])
69
111
 
70
112
  order.to_xml pain_008_001_version: "04"
71
113
  end
72
114
 
73
- The last line returns a string that you will then need to send to your bank one way or another. For example, you might use an EBICS client. Or your bank might provide
74
- software to send the file. Or perhaps you can upload it via their website.
115
+ The last line returns a string that you will then need to send to your bank one way or another. For example, you might use an EBICS client. Or your bank might provide software to send the file. Or perhaps you can upload it via their website. If you live in France, you could print it out, send it to your bank by registered post, and they will type it in again on their end and execute the order.
75
116
 
76
117
  If your bank expects a particular time format, do this (for example)
77
118
 
@@ -75,7 +75,7 @@ module Sepa
75
75
  if string_type?(meta[:type])
76
76
  builder.__send__(meta[:tag], normalize(item), attributes)
77
77
  elsif meta[:type] == :[]
78
- if meta[:member_type] == nil
78
+ if meta[:member_type] == nil || string_type?(meta[:member_type])
79
79
  item.each { |obj| builder.__send__(meta[:tag], normalize(obj), attributes) }
80
80
  else
81
81
  item.each do |obj|
@@ -9,5 +9,5 @@ class Sepa::PaymentsInitiation::PostalAddress < Sepa::Base
9
9
  attribute :town_name , "TwnNm"
10
10
  attribute :country_sub_division , "CtySubDvsn"
11
11
  attribute :country , "Ctry"
12
- attribute :address_line , "AdrLine" , :[]
12
+ attribute :address_line , "AdrLine" , :[], Sepa::Max70Text
13
13
  end
@@ -1,3 +1,3 @@
1
1
  module Sepa
2
- VERSION = "0.0.18.2"
2
+ VERSION = "0.0.19"
3
3
  end
@@ -0,0 +1,350 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <Document>
3
+ <CstmrDrctDbtInitn>
4
+ <GrpHdr>
5
+ <MsgId>MSG0001</MsgId>
6
+ <CreDtTm>1992-02-28T18:30:00Z</CreDtTm>
7
+ <NbOfTxs>8</NbOfTxs>
8
+ <CtrlSum>10775.21</CtrlSum>
9
+ <InitgPty>
10
+ <Nm>SOFTIFY SARL</Nm>
11
+ </InitgPty>
12
+ </GrpHdr>
13
+ <PmtInf>
14
+ <PmtInfId>MONECOLE_PAYMENTS_20130703-FRST</PmtInfId>
15
+ <PmtMtd>DD</PmtMtd>
16
+ <NbOfTxs>2</NbOfTxs>
17
+ <CtrlSum>2766.66</CtrlSum>
18
+ <PmtTpInf>
19
+ <SvcLvl>
20
+ <Cd>SEPA</Cd>
21
+ </SvcLvl>
22
+ <LclInstrm>
23
+ <Cd>CORE</Cd>
24
+ </LclInstrm>
25
+ <SeqTp>FRST</SeqTp>
26
+ </PmtTpInf>
27
+ <ReqdColltnDt>2013-07-10</ReqdColltnDt>
28
+ <Cdtr>
29
+ <Nm>Mon Ecole</Nm>
30
+ <PstlAdr>
31
+ <Ctry>FR</Ctry>
32
+ <AdrLine>3, Livva de Getamire</AdrLine>
33
+ <AdrLine>75022 Paris</AdrLine>
34
+ </PstlAdr>
35
+ </Cdtr>
36
+ <CdtrAcct>
37
+ <Id>
38
+ <IBAN>FRGOOGOOYADDA9999999</IBAN>
39
+ </Id>
40
+ </CdtrAcct>
41
+ <CdtrAgt>
42
+ <FinInstnId>
43
+ <BIC>FRGGYELLOW99</BIC>
44
+ </FinInstnId>
45
+ </CdtrAgt>
46
+ <ChrgBr>SLEV</ChrgBr>
47
+ <CdtrSchmeId>
48
+ <Id>
49
+ <PrvtId>
50
+ <Othr>
51
+ <Id>FR123ZZZ010203</Id>
52
+ <SchmeNm>
53
+ <Prtry>SEPA</Prtry>
54
+ </SchmeNm>
55
+ </Othr>
56
+ </PrvtId>
57
+ </Id>
58
+ </CdtrSchmeId>
59
+ <DrctDbtTxInf>
60
+ <PmtId>
61
+ <EndToEndId>MONECOLE REG F13790 PVT 3</EndToEndId>
62
+ </PmtId>
63
+ <InstdAmt Ccy="EUR">1732.32</InstdAmt>
64
+ <DrctDbtTx>
65
+ <MndtRltdInf>
66
+ <MndtId>mandate-id-1</MndtId>
67
+ <DtOfSgntr>2012-01-19</DtOfSgntr>
68
+ </MndtRltdInf>
69
+ </DrctDbtTx>
70
+ <DbtrAgt>
71
+ <FinInstnId>
72
+ <BIC>FRQQWIGGA</BIC>
73
+ </FinInstnId>
74
+ </DbtrAgt>
75
+ <Dbtr>
76
+ <Nm>ADAMS/SAMUELMR</Nm>
77
+ <PstlAdr>
78
+ <Ctry>DE</Ctry>
79
+ <AdrLine>256, Livva de Getamire</AdrLine>
80
+ <AdrLine>75048 BERLIN</AdrLine>
81
+ </PstlAdr>
82
+ </Dbtr>
83
+ <DbtrAcct>
84
+ <Id>
85
+ <IBAN>FRQUIQUIWIGWAM947551</IBAN>
86
+ </Id>
87
+ </DbtrAcct>
88
+ </DrctDbtTxInf>
89
+ <DrctDbtTxInf>
90
+ <PmtId>
91
+ <EndToEndId>MONECOLE REG F13792 PVT 3</EndToEndId>
92
+ </PmtId>
93
+ <InstdAmt Ccy="EUR">1034.34</InstdAmt>
94
+ <DrctDbtTx>
95
+ <MndtRltdInf>
96
+ <MndtId>mandate-id-1</MndtId>
97
+ <DtOfSgntr>2012-01-19</DtOfSgntr>
98
+ </MndtRltdInf>
99
+ </DrctDbtTx>
100
+ <DbtrAgt>
101
+ <FinInstnId>
102
+ <BIC>FRQQWIGGA</BIC>
103
+ </FinInstnId>
104
+ </DbtrAgt>
105
+ <Dbtr>
106
+ <Nm>ADAMS/SAMUELMR</Nm>
107
+ <PstlAdr>
108
+ <Ctry>DE</Ctry>
109
+ <AdrLine>256, Livva de Getamire</AdrLine>
110
+ <AdrLine>75048 BERLIN</AdrLine>
111
+ </PstlAdr>
112
+ </Dbtr>
113
+ <DbtrAcct>
114
+ <Id>
115
+ <IBAN>FRQUIQUIWIGWAM947551</IBAN>
116
+ </Id>
117
+ </DbtrAcct>
118
+ </DrctDbtTxInf>
119
+ </PmtInf>
120
+ <PmtInf>
121
+ <PmtInfId>MONECOLE_PAYMENTS_20130703-RCUR</PmtInfId>
122
+ <PmtMtd>DD</PmtMtd>
123
+ <NbOfTxs>6</NbOfTxs>
124
+ <CtrlSum>8008.55</CtrlSum>
125
+ <PmtTpInf>
126
+ <SvcLvl>
127
+ <Cd>SEPA</Cd>
128
+ </SvcLvl>
129
+ <LclInstrm>
130
+ <Cd>CORE</Cd>
131
+ </LclInstrm>
132
+ <SeqTp>RCUR</SeqTp>
133
+ </PmtTpInf>
134
+ <ReqdColltnDt>2013-07-10</ReqdColltnDt>
135
+ <Cdtr>
136
+ <Nm>Mon Ecole</Nm>
137
+ <PstlAdr>
138
+ <Ctry>FR</Ctry>
139
+ <AdrLine>3, Livva de Getamire</AdrLine>
140
+ <AdrLine>75022 Paris</AdrLine>
141
+ </PstlAdr>
142
+ </Cdtr>
143
+ <CdtrAcct>
144
+ <Id>
145
+ <IBAN>FRGOOGOOYADDA9999999</IBAN>
146
+ </Id>
147
+ </CdtrAcct>
148
+ <CdtrAgt>
149
+ <FinInstnId>
150
+ <BIC>FRGGYELLOW99</BIC>
151
+ </FinInstnId>
152
+ </CdtrAgt>
153
+ <ChrgBr>SLEV</ChrgBr>
154
+ <CdtrSchmeId>
155
+ <Id>
156
+ <PrvtId>
157
+ <Othr>
158
+ <Id>FR123ZZZ010203</Id>
159
+ <SchmeNm>
160
+ <Prtry>SEPA</Prtry>
161
+ </SchmeNm>
162
+ </Othr>
163
+ </PrvtId>
164
+ </Id>
165
+ </CdtrSchmeId>
166
+ <DrctDbtTxInf>
167
+ <PmtId>
168
+ <EndToEndId>MONECOLE REG F13789 PVT 3</EndToEndId>
169
+ </PmtId>
170
+ <InstdAmt Ccy="EUR">1231.31</InstdAmt>
171
+ <DrctDbtTx>
172
+ <MndtRltdInf>
173
+ <MndtId>mandate-id-0</MndtId>
174
+ <DtOfSgntr>2010-11-18</DtOfSgntr>
175
+ </MndtRltdInf>
176
+ </DrctDbtTx>
177
+ <DbtrAgt>
178
+ <FinInstnId>
179
+ <BIC>FRZZPPKOOKOO</BIC>
180
+ </FinInstnId>
181
+ </DbtrAgt>
182
+ <Dbtr>
183
+ <Nm>DALTON/CONANMR</Nm>
184
+ <PstlAdr>
185
+ <Ctry>FR</Ctry>
186
+ <AdrLine>64, Livva de Getamire</AdrLine>
187
+ <AdrLine>30005 RENNES</AdrLine>
188
+ </PstlAdr>
189
+ </Dbtr>
190
+ <DbtrAcct>
191
+ <Id>
192
+ <IBAN>FRZIZIPAPARAZZI345789</IBAN>
193
+ </Id>
194
+ </DbtrAcct>
195
+ </DrctDbtTxInf>
196
+ <DrctDbtTxInf>
197
+ <PmtId>
198
+ <EndToEndId>MONECOLE REG F13791 PVT 3</EndToEndId>
199
+ </PmtId>
200
+ <InstdAmt Ccy="EUR">1133.33</InstdAmt>
201
+ <DrctDbtTx>
202
+ <MndtRltdInf>
203
+ <MndtId>mandate-id-0</MndtId>
204
+ <DtOfSgntr>2010-11-18</DtOfSgntr>
205
+ </MndtRltdInf>
206
+ </DrctDbtTx>
207
+ <DbtrAgt>
208
+ <FinInstnId>
209
+ <BIC>FRZZPPKOOKOO</BIC>
210
+ </FinInstnId>
211
+ </DbtrAgt>
212
+ <Dbtr>
213
+ <Nm>DALTON/CONANMR</Nm>
214
+ <PstlAdr>
215
+ <Ctry>FR</Ctry>
216
+ <AdrLine>64, Livva de Getamire</AdrLine>
217
+ <AdrLine>30005 RENNES</AdrLine>
218
+ </PstlAdr>
219
+ </Dbtr>
220
+ <DbtrAcct>
221
+ <Id>
222
+ <IBAN>FRZIZIPAPARAZZI345789</IBAN>
223
+ </Id>
224
+ </DbtrAcct>
225
+ </DrctDbtTxInf>
226
+ <DrctDbtTxInf>
227
+ <PmtId>
228
+ <EndToEndId>MONECOLE REG F13793 PVT 3</EndToEndId>
229
+ </PmtId>
230
+ <InstdAmt Ccy="EUR">1935.35</InstdAmt>
231
+ <DrctDbtTx>
232
+ <MndtRltdInf>
233
+ <MndtId>mandate-id-2</MndtId>
234
+ <DtOfSgntr>2013-06-08</DtOfSgntr>
235
+ </MndtRltdInf>
236
+ </DrctDbtTx>
237
+ <DbtrAgt>
238
+ <FinInstnId>
239
+ <BIC>FRQQWIGGA</BIC>
240
+ </FinInstnId>
241
+ </DbtrAgt>
242
+ <Dbtr>
243
+ <Nm>Mr. James Joyce</Nm>
244
+ <PstlAdr>
245
+ <AdrLine>512, Livva de Meet Agir</AdrLine>
246
+ <AdrLine>75099 LONDON</AdrLine>
247
+ </PstlAdr>
248
+ </Dbtr>
249
+ <DbtrAcct>
250
+ <Id>
251
+ <IBAN>FRQUIQUIWIGWAM947551</IBAN>
252
+ </Id>
253
+ </DbtrAcct>
254
+ </DrctDbtTxInf>
255
+ <DrctDbtTxInf>
256
+ <PmtId>
257
+ <EndToEndId>MONECOLE REG F13794 PVT 3</EndToEndId>
258
+ </PmtId>
259
+ <InstdAmt Ccy="EUR">1236.36</InstdAmt>
260
+ <DrctDbtTx>
261
+ <MndtRltdInf>
262
+ <MndtId>mandate-id-2</MndtId>
263
+ <DtOfSgntr>2013-06-08</DtOfSgntr>
264
+ </MndtRltdInf>
265
+ </DrctDbtTx>
266
+ <DbtrAgt>
267
+ <FinInstnId>
268
+ <BIC>FRQQWIGGA</BIC>
269
+ </FinInstnId>
270
+ </DbtrAgt>
271
+ <Dbtr>
272
+ <Nm>Mr. James Joyce</Nm>
273
+ <PstlAdr>
274
+ <AdrLine>512, Livva de Meet Agir</AdrLine>
275
+ <AdrLine>75099 LONDON</AdrLine>
276
+ </PstlAdr>
277
+ </Dbtr>
278
+ <DbtrAcct>
279
+ <Id>
280
+ <IBAN>FRQUIQUIWIGWAM947551</IBAN>
281
+ </Id>
282
+ </DbtrAcct>
283
+ </DrctDbtTxInf>
284
+ <DrctDbtTxInf>
285
+ <PmtId>
286
+ <EndToEndId>MONECOLE REG F13795 PVT 3</EndToEndId>
287
+ </PmtId>
288
+ <InstdAmt Ccy="EUR">1235.42</InstdAmt>
289
+ <DrctDbtTx>
290
+ <MndtRltdInf>
291
+ <MndtId>mandate-id-3</MndtId>
292
+ <DtOfSgntr>2014-01-23</DtOfSgntr>
293
+ </MndtRltdInf>
294
+ </DrctDbtTx>
295
+ <DbtrAgt>
296
+ <FinInstnId>
297
+ <Othr>
298
+ <Id>NOTPROVIDED</Id>
299
+ </Othr>
300
+ </FinInstnId>
301
+ </DbtrAgt>
302
+ <Dbtr>
303
+ <Nm>R Epelsteeltje</Nm>
304
+ <PstlAdr>
305
+ <Ctry>NL</Ctry>
306
+ <AdrLine>Spuistraat 42</AdrLine>
307
+ <AdrLine>75099 Amsterdam</AdrLine>
308
+ </PstlAdr>
309
+ </Dbtr>
310
+ <DbtrAcct>
311
+ <Id>
312
+ <IBAN>NLQUIQUIWIGWAM947551</IBAN>
313
+ </Id>
314
+ </DbtrAcct>
315
+ </DrctDbtTxInf>
316
+ <DrctDbtTxInf>
317
+ <PmtId>
318
+ <EndToEndId>MONECOLE REG F13796 PVT 3</EndToEndId>
319
+ </PmtId>
320
+ <InstdAmt Ccy="EUR">1236.78</InstdAmt>
321
+ <DrctDbtTx>
322
+ <MndtRltdInf>
323
+ <MndtId>mandate-id-3</MndtId>
324
+ <DtOfSgntr>2014-01-23</DtOfSgntr>
325
+ </MndtRltdInf>
326
+ </DrctDbtTx>
327
+ <DbtrAgt>
328
+ <FinInstnId>
329
+ <Othr>
330
+ <Id>NOTPROVIDED</Id>
331
+ </Othr>
332
+ </FinInstnId>
333
+ </DbtrAgt>
334
+ <Dbtr>
335
+ <Nm>R Epelsteeltje</Nm>
336
+ <PstlAdr>
337
+ <Ctry>NL</Ctry>
338
+ <AdrLine>Spuistraat 42</AdrLine>
339
+ <AdrLine>75099 Amsterdam</AdrLine>
340
+ </PstlAdr>
341
+ </Dbtr>
342
+ <DbtrAcct>
343
+ <Id>
344
+ <IBAN>NLQUIQUIWIGWAM947551</IBAN>
345
+ </Id>
346
+ </DbtrAcct>
347
+ </DrctDbtTxInf>
348
+ </PmtInf>
349
+ </CstmrDrctDbtInitn>
350
+ </Document>
@@ -63,6 +63,9 @@
63
63
  <PmtId>
64
64
  <EndToEndId>MONECOLE REG F13789 PVT 3</EndToEndId>
65
65
  </PmtId>
66
+ <PmtTpInf>
67
+ <SeqTp>FRST</SeqTp>
68
+ </PmtTpInf>
66
69
  <InstdAmt Ccy="EUR">1231.31</InstdAmt>
67
70
  <DrctDbtTx>
68
71
  <MndtRltdInf>
@@ -80,7 +83,7 @@
80
83
  <PstCd>30005</PstCd>
81
84
  <TwnNm>RENNES</TwnNm>
82
85
  <Ctry>FR</Ctry>
83
- <AdrLine>64, Livva de Getamire</AdrLine>
86
+ <AdrLine>64, Livva de Getamire 2345678 30 345678 40 345678 50 345678 60 345678 7</AdrLine>
84
87
  </PstlAdr>
85
88
  <CtctDtls>
86
89
  <Nm>Conan DALTON</Nm>
@@ -99,7 +102,7 @@
99
102
  <EndToEndId>MONECOLE REG F13790 PVT 3</EndToEndId>
100
103
  </PmtId>
101
104
  <PmtTpInf>
102
- <SeqTp>FRST</SeqTp>
105
+ <SeqTp>RCUR</SeqTp>
103
106
  </PmtTpInf>
104
107
  <InstdAmt Ccy="EUR">1732.32</InstdAmt>
105
108
  <DrctDbtTx>
@@ -35,12 +35,13 @@ describe Sepa::PaymentsInitiation::Pain00800104::CustomerDirectDebitInitiation d
35
35
  "payment_information[0].creditor_account.identification.iban" => "FRGOOGOOYADDA9999999",
36
36
  "payment_information[0].creditor_agent.financial_institution_identification.bic_fi" => "FRGGYELLOW99",
37
37
  "payment_information[0].direct_debit_transaction_information[0].payment_identification.end_to_end_identification" => "MONECOLE REG F13789 PVT 3",
38
+ "payment_information[0].direct_debit_transaction_information[0].payment_type_information.sequence_type" => "FRST",
38
39
  "payment_information[0].direct_debit_transaction_information[0].instructed_amount" => "1231.31",
39
40
  "payment_information[0].direct_debit_transaction_information[0].instructed_amount_currency" => "EUR",
40
41
  "payment_information[0].direct_debit_transaction_information[0].direct_debit_transaction.mandate_related_information.mandate_identification" => "mandate-id-0",
41
42
  "payment_information[0].direct_debit_transaction_information[0].debtor_agent.financial_institution_identification.bic_fi" => "FRZZPPKOOKOO",
42
43
  "payment_information[0].direct_debit_transaction_information[0].debtor.name" => "DALTON/CONANMR",
43
- "payment_information[0].direct_debit_transaction_information[0].debtor.postal_address.address_line[0]" => "64, Livva de Getamire",
44
+ "payment_information[0].direct_debit_transaction_information[0].debtor.postal_address.address_line[0]" => "64, Livva de Getamire 2345678 30 345678 40 345678 50 345678 60 345678 70 345678 80",
44
45
  "payment_information[0].direct_debit_transaction_information[0].debtor.postal_address.post_code" => "30005",
45
46
  "payment_information[0].direct_debit_transaction_information[0].debtor.postal_address.town_name" => "RENNES",
46
47
  "payment_information[0].direct_debit_transaction_information[0].debtor.postal_address.country" => "FR",
@@ -49,7 +50,7 @@ describe Sepa::PaymentsInitiation::Pain00800104::CustomerDirectDebitInitiation d
49
50
  "payment_information[0].direct_debit_transaction_information[0].debtor.contact_details.email_address" => "conan@dalton.sepa.i.hope.this.works",
50
51
  "payment_information[0].direct_debit_transaction_information[0].debtor_account.identification.iban" => "FRZIZIPAPARAZZI345789",
51
52
  "payment_information[0].direct_debit_transaction_information[1].payment_identification.end_to_end_identification" => "MONECOLE REG F13790 PVT 3",
52
- "payment_information[0].direct_debit_transaction_information[1].payment_type_information.sequence_type" => "FRST",
53
+ "payment_information[0].direct_debit_transaction_information[1].payment_type_information.sequence_type" => "RCUR",
53
54
  "payment_information[0].direct_debit_transaction_information[1].instructed_amount" => "1732.32",
54
55
  "payment_information[0].direct_debit_transaction_information[1].instructed_amount_currency" => "EUR",
55
56
  "payment_information[0].direct_debit_transaction_information[1].direct_debit_transaction.mandate_related_information.mandate_identification" => "mandate-id-1",
@@ -77,6 +78,7 @@ describe Sepa::PaymentsInitiation::Pain00800104::CustomerDirectDebitInitiation d
77
78
  it "should produce xml corresponding to the given inputs" do
78
79
  xml = Sepa::PaymentsInitiation::Pain00800104::CustomerDirectDebitInitiation.new(props).generate_xml(:pain_008_001_version => '04')
79
80
  xml = check_doc_header_04 xml
81
+
80
82
  expected = File.read(File.expand_path("../../../expected-simple.xml", __FILE__))
81
83
  expected.force_encoding(Encoding::UTF_8) if expected.respond_to? :force_encoding
82
84
  xml.should == expected
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sepa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.18.2
4
+ version: 0.0.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Conan Dalton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-09 00:00:00.000000000 Z
11
+ date: 2018-04-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -143,6 +143,7 @@ files:
143
143
  - spec/sepa/direct_debit_order_spec.rb
144
144
  - spec/sepa/direct_debit_properties.yml
145
145
  - spec/sepa/expected-grphdr-time-format.xml
146
+ - spec/sepa/expected-simple-v02.xml
146
147
  - spec/sepa/expected-simple.xml
147
148
  - spec/sepa/expected_customer_direct_debit_initiation_v02.xml
148
149
  - spec/sepa/expected_customer_direct_debit_initiation_v02_with_remittance_information.xml
@@ -182,6 +183,7 @@ test_files:
182
183
  - spec/sepa/direct_debit_order_spec.rb
183
184
  - spec/sepa/direct_debit_properties.yml
184
185
  - spec/sepa/expected-grphdr-time-format.xml
186
+ - spec/sepa/expected-simple-v02.xml
185
187
  - spec/sepa/expected-simple.xml
186
188
  - spec/sepa/expected_customer_direct_debit_initiation_v02.xml
187
189
  - spec/sepa/expected_customer_direct_debit_initiation_v02_with_remittance_information.xml