br_boleto 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.markdown +23 -17
- data/lib/br_boleto.rb +2 -0
- data/lib/br_boleto/boleto/banco_brasil.rb +24 -15
- data/lib/br_boleto/boleto/santander.rb +8 -2
- data/lib/br_boleto/conta/banco_brasil.rb +254 -56
- data/lib/br_boleto/conta/bradesco.rb +229 -27
- data/lib/br_boleto/conta/caixa.rb +208 -4
- data/lib/br_boleto/conta/cecred.rb +29 -0
- data/lib/br_boleto/conta/itau.rb +482 -87
- data/lib/br_boleto/conta/santander.rb +224 -97
- data/lib/br_boleto/conta/sicoob.rb +39 -24
- data/lib/br_boleto/conta/sicredi.rb +169 -64
- data/lib/br_boleto/conta/unicred.rb +16 -13
- data/lib/br_boleto/helper/default_codes.rb +2123 -54
- data/lib/br_boleto/remessa/cnab240/banco_brasil.rb +12 -6
- data/lib/br_boleto/remessa/cnab240/bradesco.rb +1 -1
- data/lib/br_boleto/remessa/cnab240/helper/segmento_p.rb +1 -1
- data/lib/br_boleto/remessa/cnab240/itau.rb +20 -3
- data/lib/br_boleto/remessa/cnab240/santander.rb +25 -24
- data/lib/br_boleto/remessa/cnab400/caixa.rb +197 -0
- data/lib/br_boleto/remessa/cnab400/santander.rb +32 -27
- data/lib/br_boleto/retorno/base.rb +24 -0
- data/lib/br_boleto/retorno/cnab240/base.rb +6 -2
- data/lib/br_boleto/retorno/cnab240/santander.rb +5 -1
- data/lib/br_boleto/retorno/cnab400/banco_brasil.rb +3 -1
- data/lib/br_boleto/retorno/cnab400/base.rb +2 -1
- data/lib/br_boleto/retorno/cnab400/bradesco.rb +6 -0
- data/lib/br_boleto/retorno/cnab400/caixa.rb +49 -0
- data/lib/br_boleto/retorno/cnab400/itau.rb +5 -1
- data/lib/br_boleto/retorno/cnab400/santander.rb +5 -1
- data/lib/br_boleto/retorno/cnab400/sicoob.rb +1 -0
- data/lib/br_boleto/retorno/cnab400/sicredi.rb +6 -0
- data/lib/br_boleto/retorno/pagamento.rb +50 -4
- data/lib/br_boleto/version.rb +1 -1
- data/test/br_boleto/boleto/santander_test.rb +1 -1
- data/test/br_boleto/boleto/sicredi_test.rb +1 -0
- data/test/br_boleto/conta/banco_brasil_test.rb +157 -0
- data/test/br_boleto/conta/base_test.rb +8 -8
- data/test/br_boleto/conta/bradesco_test.rb +165 -0
- data/test/br_boleto/conta/caixa_test.rb +159 -1
- data/test/br_boleto/conta/cecred_test.rb +22 -0
- data/test/br_boleto/conta/itau_test.rb +346 -3
- data/test/br_boleto/conta/santantader_test.rb +123 -10
- data/test/br_boleto/conta/sicoob_test.rb +8 -0
- data/test/br_boleto/conta/sicredi_test.rb +79 -0
- data/test/br_boleto/conta/unicred_test.rb +7 -7
- data/test/br_boleto/remessa/cnab240/itau_test.rb +1 -1
- data/test/br_boleto/remessa/cnab400/caixa_test.rb +184 -0
- data/test/br_boleto/remessa/cnab400/santander_test.rb +30 -17
- data/test/br_boleto/retorno/cnab240/banco_brasil_test.rb +30 -6
- data/test/br_boleto/retorno/cnab240/base_test.rb +25 -5
- data/test/br_boleto/retorno/cnab240/bradesco_test.rb +25 -5
- data/test/br_boleto/retorno/cnab240/caixa_test.rb +25 -5
- data/test/br_boleto/retorno/cnab240/cecred_test.rb +15 -3
- data/test/br_boleto/retorno/cnab240/itau_test.rb +25 -5
- data/test/br_boleto/retorno/cnab240/santander_test.rb +30 -6
- data/test/br_boleto/retorno/cnab240/sicoob_test.rb +25 -5
- data/test/br_boleto/retorno/cnab240/sicredi_test.rb +25 -5
- data/test/br_boleto/retorno/cnab240/unicred_test.rb +25 -5
- data/test/br_boleto/retorno/cnab400/bradesco_test.rb +30 -6
- data/test/br_boleto/retorno/cnab400/caixa_test.rb +7 -0
- data/test/br_boleto/retorno/cnab400/itau_test.rb +14 -4
- data/test/br_boleto/retorno/cnab400/sicoob_test.rb +25 -5
- data/test/br_boleto/retorno/cnab400/sicredi_test.rb +10 -2
- data/test/br_boleto/retorno/cnab400/unicred.rb +30 -6
- data/test/br_boleto/retorno/pagamento_test.rb +49 -1
- data/test/factories/remessa/cnab400/caixa.rb +8 -0
- data/test/fixtures/retorno/cnab240/santander.ret +1 -1
- metadata +10 -2
@@ -38,7 +38,11 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
38
38
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 1 ??O"
|
39
39
|
pagamento.numero_contrato.must_equal "0000000000"
|
40
40
|
pagamento.valor_tarifa.must_equal 2.69
|
41
|
-
pagamento.
|
41
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
42
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
43
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
44
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
45
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
42
46
|
pagamento.valor_juros_multa.must_equal 0.0
|
43
47
|
pagamento.valor_desconto.must_equal 0.0
|
44
48
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -82,7 +86,11 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
82
86
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 2"
|
83
87
|
pagamento.numero_contrato.must_equal "0000000000"
|
84
88
|
pagamento.valor_tarifa.must_equal 2.69
|
85
|
-
pagamento.
|
89
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
90
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
91
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
92
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
93
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
86
94
|
pagamento.valor_juros_multa.must_equal 0.0
|
87
95
|
pagamento.valor_desconto.must_equal 0.0
|
88
96
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -126,7 +134,11 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
126
134
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 3"
|
127
135
|
pagamento.numero_contrato.must_equal "0000000000"
|
128
136
|
pagamento.valor_tarifa.must_equal 2.69
|
129
|
-
pagamento.
|
137
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
138
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
139
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
140
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
141
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
130
142
|
pagamento.valor_juros_multa.must_equal 0.0
|
131
143
|
pagamento.valor_desconto.must_equal 0.0
|
132
144
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -170,7 +182,11 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
170
182
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 4"
|
171
183
|
pagamento.numero_contrato.must_equal "0000000000"
|
172
184
|
pagamento.valor_tarifa.must_equal 2.69
|
173
|
-
pagamento.
|
185
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
186
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
187
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
188
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
189
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
174
190
|
pagamento.valor_juros_multa.must_equal 0.0
|
175
191
|
pagamento.valor_desconto.must_equal 0.0
|
176
192
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -214,7 +230,11 @@ describe BrBoleto::Retorno::Cnab240::Sicoob do
|
|
214
230
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 5"
|
215
231
|
pagamento.numero_contrato.must_equal "0000000000"
|
216
232
|
pagamento.valor_tarifa.must_equal 2.69
|
217
|
-
pagamento.
|
233
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
234
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
235
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
236
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
237
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
218
238
|
pagamento.valor_juros_multa.must_equal 0.0
|
219
239
|
pagamento.valor_desconto.must_equal 0.0
|
220
240
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -38,7 +38,11 @@ describe BrBoleto::Retorno::Cnab240::Sicredi do
|
|
38
38
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 1 ??O"
|
39
39
|
pagamento.numero_contrato.must_equal "0000000000"
|
40
40
|
pagamento.valor_tarifa.must_equal 2.69
|
41
|
-
pagamento.
|
41
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
42
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
43
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
44
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
45
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
42
46
|
pagamento.valor_juros_multa.must_equal 0.0
|
43
47
|
pagamento.valor_desconto.must_equal 0.0
|
44
48
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -80,7 +84,11 @@ describe BrBoleto::Retorno::Cnab240::Sicredi do
|
|
80
84
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 2"
|
81
85
|
pagamento.numero_contrato.must_equal "0000000000"
|
82
86
|
pagamento.valor_tarifa.must_equal 2.69
|
83
|
-
pagamento.
|
87
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
88
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
89
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
90
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
91
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
84
92
|
pagamento.valor_juros_multa.must_equal 0.0
|
85
93
|
pagamento.valor_desconto.must_equal 0.0
|
86
94
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -122,7 +130,11 @@ describe BrBoleto::Retorno::Cnab240::Sicredi do
|
|
122
130
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 3"
|
123
131
|
pagamento.numero_contrato.must_equal "0000000000"
|
124
132
|
pagamento.valor_tarifa.must_equal 2.69
|
125
|
-
pagamento.
|
133
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
134
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
135
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
136
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
137
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
126
138
|
pagamento.valor_juros_multa.must_equal 0.0
|
127
139
|
pagamento.valor_desconto.must_equal 0.0
|
128
140
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -164,7 +176,11 @@ describe BrBoleto::Retorno::Cnab240::Sicredi do
|
|
164
176
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 4"
|
165
177
|
pagamento.numero_contrato.must_equal "0000000000"
|
166
178
|
pagamento.valor_tarifa.must_equal 2.69
|
167
|
-
pagamento.
|
179
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
180
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
181
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
182
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
183
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
168
184
|
pagamento.valor_juros_multa.must_equal 0.0
|
169
185
|
pagamento.valor_desconto.must_equal 0.0
|
170
186
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -205,7 +221,11 @@ describe BrBoleto::Retorno::Cnab240::Sicredi do
|
|
205
221
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 5"
|
206
222
|
pagamento.numero_contrato.must_equal "0000000000"
|
207
223
|
pagamento.valor_tarifa.must_equal 2.69
|
208
|
-
pagamento.
|
224
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
225
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
226
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
227
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
228
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
209
229
|
pagamento.valor_juros_multa.must_equal 0.0
|
210
230
|
pagamento.valor_desconto.must_equal 0.0
|
211
231
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -38,7 +38,11 @@ describe BrBoleto::Retorno::Cnab240::Unicred do
|
|
38
38
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 1 ??O"
|
39
39
|
pagamento.numero_contrato.must_equal "0000000000"
|
40
40
|
pagamento.valor_tarifa.must_equal 2.69
|
41
|
-
pagamento.
|
41
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
42
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
43
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
44
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
45
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
42
46
|
pagamento.valor_juros_multa.must_equal 0.0
|
43
47
|
pagamento.valor_desconto.must_equal 0.0
|
44
48
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -80,7 +84,11 @@ describe BrBoleto::Retorno::Cnab240::Unicred do
|
|
80
84
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 2"
|
81
85
|
pagamento.numero_contrato.must_equal "0000000000"
|
82
86
|
pagamento.valor_tarifa.must_equal 2.69
|
83
|
-
pagamento.
|
87
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
88
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
89
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
90
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
91
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
84
92
|
pagamento.valor_juros_multa.must_equal 0.0
|
85
93
|
pagamento.valor_desconto.must_equal 0.0
|
86
94
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -122,7 +130,11 @@ describe BrBoleto::Retorno::Cnab240::Unicred do
|
|
122
130
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 3"
|
123
131
|
pagamento.numero_contrato.must_equal "0000000000"
|
124
132
|
pagamento.valor_tarifa.must_equal 2.69
|
125
|
-
pagamento.
|
133
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
134
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
135
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
136
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
137
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
126
138
|
pagamento.valor_juros_multa.must_equal 0.0
|
127
139
|
pagamento.valor_desconto.must_equal 0.0
|
128
140
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -164,7 +176,11 @@ describe BrBoleto::Retorno::Cnab240::Unicred do
|
|
164
176
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 4"
|
165
177
|
pagamento.numero_contrato.must_equal "0000000000"
|
166
178
|
pagamento.valor_tarifa.must_equal 2.69
|
167
|
-
pagamento.
|
179
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
180
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
181
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
182
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
183
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
168
184
|
pagamento.valor_juros_multa.must_equal 0.0
|
169
185
|
pagamento.valor_desconto.must_equal 0.0
|
170
186
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -205,7 +221,11 @@ describe BrBoleto::Retorno::Cnab240::Unicred do
|
|
205
221
|
pagamento.sacado_nome.must_equal "NOME DO CLIENTE 5"
|
206
222
|
pagamento.numero_contrato.must_equal "0000000000"
|
207
223
|
pagamento.valor_tarifa.must_equal 2.69
|
208
|
-
pagamento.
|
224
|
+
pagamento.motivo_ocorrencia_original_1.must_equal "00"
|
225
|
+
pagamento.motivo_ocorrencia_original_2.must_equal "00"
|
226
|
+
pagamento.motivo_ocorrencia_original_3.must_equal "00"
|
227
|
+
pagamento.motivo_ocorrencia_original_4.must_equal "00"
|
228
|
+
pagamento.motivo_ocorrencia_original_5.must_equal "04"
|
209
229
|
pagamento.valor_juros_multa.must_equal 0.0
|
210
230
|
pagamento.valor_desconto.must_equal 0.0
|
211
231
|
pagamento.valor_abatimento.must_equal 0.0
|
@@ -47,7 +47,11 @@ describe BrBoleto::Retorno::Cnab400::Bradesco do
|
|
47
47
|
pagamento.sacado_tipo_documento.must_be_nil
|
48
48
|
pagamento.sacado_nome.must_be_nil
|
49
49
|
pagamento.numero_contrato.must_be_nil
|
50
|
-
pagamento.
|
50
|
+
pagamento.motivo_ocorrencia_original_1.must_equal '00'
|
51
|
+
pagamento.motivo_ocorrencia_original_2.must_equal '00'
|
52
|
+
pagamento.motivo_ocorrencia_original_3.must_equal '00'
|
53
|
+
pagamento.motivo_ocorrencia_original_4.must_equal '00'
|
54
|
+
pagamento.motivo_ocorrencia_original_5.must_equal '00'
|
51
55
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
52
56
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
53
57
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -89,7 +93,11 @@ describe BrBoleto::Retorno::Cnab400::Bradesco do
|
|
89
93
|
pagamento.sacado_tipo_documento.must_be_nil
|
90
94
|
pagamento.sacado_nome.must_be_nil
|
91
95
|
pagamento.numero_contrato.must_be_nil
|
92
|
-
pagamento.
|
96
|
+
pagamento.motivo_ocorrencia_original_1.must_equal '00'
|
97
|
+
pagamento.motivo_ocorrencia_original_2.must_equal '00'
|
98
|
+
pagamento.motivo_ocorrencia_original_3.must_equal '00'
|
99
|
+
pagamento.motivo_ocorrencia_original_4.must_equal '00'
|
100
|
+
pagamento.motivo_ocorrencia_original_5.must_equal '00'
|
93
101
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
94
102
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
95
103
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -131,7 +139,11 @@ describe BrBoleto::Retorno::Cnab400::Bradesco do
|
|
131
139
|
pagamento.sacado_tipo_documento.must_be_nil
|
132
140
|
pagamento.sacado_nome.must_be_nil
|
133
141
|
pagamento.numero_contrato.must_be_nil
|
134
|
-
pagamento.
|
142
|
+
pagamento.motivo_ocorrencia_original_1.must_equal '00'
|
143
|
+
pagamento.motivo_ocorrencia_original_2.must_equal '00'
|
144
|
+
pagamento.motivo_ocorrencia_original_3.must_equal '00'
|
145
|
+
pagamento.motivo_ocorrencia_original_4.must_equal '00'
|
146
|
+
pagamento.motivo_ocorrencia_original_5.must_equal '00'
|
135
147
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
136
148
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
137
149
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -173,7 +185,11 @@ describe BrBoleto::Retorno::Cnab400::Bradesco do
|
|
173
185
|
pagamento.sacado_tipo_documento.must_be_nil
|
174
186
|
pagamento.sacado_nome.must_be_nil
|
175
187
|
pagamento.numero_contrato.must_be_nil
|
176
|
-
pagamento.
|
188
|
+
pagamento.motivo_ocorrencia_original_1.must_equal '00'
|
189
|
+
pagamento.motivo_ocorrencia_original_2.must_equal '00'
|
190
|
+
pagamento.motivo_ocorrencia_original_3.must_equal '00'
|
191
|
+
pagamento.motivo_ocorrencia_original_4.must_equal '00'
|
192
|
+
pagamento.motivo_ocorrencia_original_5.must_equal '00'
|
177
193
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
178
194
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
179
195
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -215,7 +231,11 @@ describe BrBoleto::Retorno::Cnab400::Bradesco do
|
|
215
231
|
pagamento.sacado_tipo_documento.must_be_nil
|
216
232
|
pagamento.sacado_nome.must_be_nil
|
217
233
|
pagamento.numero_contrato.must_be_nil
|
218
|
-
pagamento.
|
234
|
+
pagamento.motivo_ocorrencia_original_1.must_equal '00'
|
235
|
+
pagamento.motivo_ocorrencia_original_2.must_equal '00'
|
236
|
+
pagamento.motivo_ocorrencia_original_3.must_equal '00'
|
237
|
+
pagamento.motivo_ocorrencia_original_4.must_equal '00'
|
238
|
+
pagamento.motivo_ocorrencia_original_5.must_equal '00'
|
219
239
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
220
240
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
221
241
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -257,7 +277,11 @@ describe BrBoleto::Retorno::Cnab400::Bradesco do
|
|
257
277
|
pagamento.sacado_tipo_documento.must_be_nil
|
258
278
|
pagamento.sacado_nome.must_be_nil
|
259
279
|
pagamento.numero_contrato.must_be_nil
|
260
|
-
pagamento.
|
280
|
+
pagamento.motivo_ocorrencia_original_1.must_equal '00'
|
281
|
+
pagamento.motivo_ocorrencia_original_2.must_equal '00'
|
282
|
+
pagamento.motivo_ocorrencia_original_3.must_equal '00'
|
283
|
+
pagamento.motivo_ocorrencia_original_4.must_equal '00'
|
284
|
+
pagamento.motivo_ocorrencia_original_5.must_equal '00'
|
261
285
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
262
286
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
263
287
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -45,10 +45,15 @@ describe BrBoleto::Retorno::Cnab400::Itau do
|
|
45
45
|
pagamento.sacado_tipo_documento.must_be_nil
|
46
46
|
pagamento.sacado_nome.must_equal ''
|
47
47
|
pagamento.numero_contrato.must_be_nil
|
48
|
-
pagamento.
|
48
|
+
pagamento.motivo_ocorrencia_original_1.must_equal 'B5'
|
49
|
+
pagamento.motivo_ocorrencia_original_2.must_equal '0000'
|
50
|
+
pagamento.motivo_ocorrencia_original_3.must_equal ''
|
51
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
52
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
49
53
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
50
|
-
pagamento.codigo_ocorrencia_banco_correspondente.
|
54
|
+
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
51
55
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
56
|
+
pagamento.codigo_ocorrencia_retorno.must_equal '06'
|
52
57
|
end
|
53
58
|
end
|
54
59
|
|
@@ -89,10 +94,15 @@ describe BrBoleto::Retorno::Cnab400::Itau do
|
|
89
94
|
pagamento.sacado_tipo_documento.must_be_nil
|
90
95
|
pagamento.sacado_nome.must_equal 'MIRCALO TIADORO'
|
91
96
|
pagamento.numero_contrato.must_be_nil
|
92
|
-
pagamento.
|
97
|
+
pagamento.motivo_ocorrencia_original_1.must_equal ''
|
98
|
+
pagamento.motivo_ocorrencia_original_2.must_equal '0000'
|
99
|
+
pagamento.motivo_ocorrencia_original_3.must_equal ''
|
100
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
101
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
93
102
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
94
|
-
pagamento.codigo_ocorrencia_banco_correspondente.
|
103
|
+
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
95
104
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
105
|
+
pagamento.codigo_ocorrencia_retorno.must_equal '09'
|
96
106
|
end
|
97
107
|
end
|
98
108
|
end
|
@@ -53,7 +53,11 @@ describe BrBoleto::Retorno::Cnab400::Sicoob do
|
|
53
53
|
pagamento.sacado_tipo_documento.must_be_nil
|
54
54
|
pagamento.sacado_nome.must_be_nil
|
55
55
|
pagamento.numero_contrato.must_be_nil
|
56
|
-
pagamento.
|
56
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
57
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
58
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
59
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
60
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
57
61
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
58
62
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
59
63
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -98,7 +102,11 @@ describe BrBoleto::Retorno::Cnab400::Sicoob do
|
|
98
102
|
pagamento.sacado_tipo_documento.must_be_nil
|
99
103
|
pagamento.sacado_nome.must_be_nil
|
100
104
|
pagamento.numero_contrato.must_be_nil
|
101
|
-
pagamento.
|
105
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
106
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
107
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
108
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
109
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
102
110
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
103
111
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
104
112
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -143,7 +151,11 @@ describe BrBoleto::Retorno::Cnab400::Sicoob do
|
|
143
151
|
pagamento.sacado_tipo_documento.must_be_nil
|
144
152
|
pagamento.sacado_nome.must_be_nil
|
145
153
|
pagamento.numero_contrato.must_be_nil
|
146
|
-
pagamento.
|
154
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
155
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
156
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
157
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
158
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
147
159
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
148
160
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
149
161
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -188,7 +200,11 @@ describe BrBoleto::Retorno::Cnab400::Sicoob do
|
|
188
200
|
pagamento.sacado_tipo_documento.must_be_nil
|
189
201
|
pagamento.sacado_nome.must_be_nil
|
190
202
|
pagamento.numero_contrato.must_be_nil
|
191
|
-
pagamento.
|
203
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
204
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
205
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
206
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
207
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
192
208
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
193
209
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
194
210
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -233,7 +249,11 @@ describe BrBoleto::Retorno::Cnab400::Sicoob do
|
|
233
249
|
pagamento.sacado_tipo_documento.must_be_nil
|
234
250
|
pagamento.sacado_nome.must_be_nil
|
235
251
|
pagamento.numero_contrato.must_be_nil
|
236
|
-
pagamento.
|
252
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
253
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
254
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
255
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
256
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
237
257
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
238
258
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
239
259
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -51,7 +51,11 @@ describe BrBoleto::Retorno::Cnab400::Sicredi do
|
|
51
51
|
pagamento.sacado_tipo_documento.must_be_nil
|
52
52
|
pagamento.sacado_nome.must_be_nil
|
53
53
|
pagamento.numero_contrato.must_be_nil
|
54
|
-
pagamento.
|
54
|
+
pagamento.motivo_ocorrencia_original_1.must_equal 'H5'
|
55
|
+
pagamento.motivo_ocorrencia_original_2.must_equal ''
|
56
|
+
pagamento.motivo_ocorrencia_original_3.must_equal ''
|
57
|
+
pagamento.motivo_ocorrencia_original_4.must_equal ''
|
58
|
+
pagamento.motivo_ocorrencia_original_5.must_equal ''
|
55
59
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
56
60
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
57
61
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -94,7 +98,11 @@ describe BrBoleto::Retorno::Cnab400::Sicredi do
|
|
94
98
|
pagamento.sacado_tipo_documento.must_be_nil
|
95
99
|
pagamento.sacado_nome.must_be_nil
|
96
100
|
pagamento.numero_contrato.must_be_nil
|
97
|
-
pagamento.
|
101
|
+
pagamento.motivo_ocorrencia_original_1.must_equal 'B3'
|
102
|
+
pagamento.motivo_ocorrencia_original_2.must_equal ''
|
103
|
+
pagamento.motivo_ocorrencia_original_3.must_equal ''
|
104
|
+
pagamento.motivo_ocorrencia_original_4.must_equal ''
|
105
|
+
pagamento.motivo_ocorrencia_original_5.must_equal ''
|
98
106
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
99
107
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
100
108
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -45,7 +45,11 @@ describe BrBoleto::Retorno::Cnab400::Unicred do
|
|
45
45
|
pagamento.sacado_tipo_documento.must_be_nil
|
46
46
|
pagamento.sacado_nome.must_be_nil
|
47
47
|
pagamento.numero_contrato.must_be_nil
|
48
|
-
pagamento.
|
48
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
49
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
50
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
51
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
52
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
49
53
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
50
54
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
51
55
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -85,7 +89,11 @@ describe BrBoleto::Retorno::Cnab400::Unicred do
|
|
85
89
|
pagamento.sacado_tipo_documento.must_be_nil
|
86
90
|
pagamento.sacado_nome.must_be_nil
|
87
91
|
pagamento.numero_contrato.must_be_nil
|
88
|
-
pagamento.
|
92
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
93
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
94
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
95
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
96
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
89
97
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
90
98
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
91
99
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -125,7 +133,11 @@ describe BrBoleto::Retorno::Cnab400::Unicred do
|
|
125
133
|
pagamento.sacado_tipo_documento.must_be_nil
|
126
134
|
pagamento.sacado_nome.must_be_nil
|
127
135
|
pagamento.numero_contrato.must_be_nil
|
128
|
-
pagamento.
|
136
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
137
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
138
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
139
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
140
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
129
141
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
130
142
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
131
143
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -165,7 +177,11 @@ describe BrBoleto::Retorno::Cnab400::Unicred do
|
|
165
177
|
pagamento.sacado_tipo_documento.must_be_nil
|
166
178
|
pagamento.sacado_nome.must_be_nil
|
167
179
|
pagamento.numero_contrato.must_be_nil
|
168
|
-
pagamento.
|
180
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
181
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
182
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
183
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
184
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
169
185
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
170
186
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
171
187
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -205,7 +221,11 @@ describe BrBoleto::Retorno::Cnab400::Unicred do
|
|
205
221
|
pagamento.sacado_tipo_documento.must_be_nil
|
206
222
|
pagamento.sacado_nome.must_be_nil
|
207
223
|
pagamento.numero_contrato.must_be_nil
|
208
|
-
pagamento.
|
224
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
225
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
226
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
227
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
228
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
209
229
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
210
230
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
211
231
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|
@@ -245,7 +265,11 @@ describe BrBoleto::Retorno::Cnab400::Unicred do
|
|
245
265
|
pagamento.sacado_tipo_documento.must_be_nil
|
246
266
|
pagamento.sacado_nome.must_be_nil
|
247
267
|
pagamento.numero_contrato.must_be_nil
|
248
|
-
pagamento.
|
268
|
+
pagamento.motivo_ocorrencia_original_1.must_be_nil
|
269
|
+
pagamento.motivo_ocorrencia_original_2.must_be_nil
|
270
|
+
pagamento.motivo_ocorrencia_original_3.must_be_nil
|
271
|
+
pagamento.motivo_ocorrencia_original_4.must_be_nil
|
272
|
+
pagamento.motivo_ocorrencia_original_5.must_be_nil
|
249
273
|
pagamento.complemento_ocorrencia_sacado.must_be_nil
|
250
274
|
pagamento.codigo_ocorrencia_banco_correspondente.must_be_nil
|
251
275
|
pagamento.nosso_numero_banco_correspondente.must_be_nil
|