correios_sigep 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +8 -8
  2. data/lib/correios_sigep.rb +2 -0
  3. data/lib/correios_sigep/logistic_reverse/request_sro.rb +11 -4
  4. data/lib/correios_sigep/models/errors/collect_number_not_found.rb +8 -0
  5. data/lib/correios_sigep/models/errors/required_fields.rb +8 -0
  6. data/lib/correios_sigep/version.rb +1 -1
  7. data/spec/correios_sigep/builders/xml/request_spec.rb +0 -1
  8. data/spec/correios_sigep/logistic_reverse/request_collect_number_spec.rb +1 -2
  9. data/spec/correios_sigep/logistic_reverse/request_sro_spec.rb +43 -36
  10. data/spec/fixtures/correios/{response_already_in_use.xml → request_collect_number/response_already_in_use.xml} +0 -0
  11. data/spec/fixtures/correios/{response_inexistent_zipcode.xml → request_collect_number/response_inexistent_zipcode.xml} +0 -0
  12. data/spec/fixtures/correios/{response_not_answered_for_zipcode.xml → request_collect_number/response_not_answered_for_zipcode.xml} +0 -0
  13. data/spec/fixtures/correios/{response_not_configured_client.xml → request_collect_number/response_not_configured_client.xml} +0 -0
  14. data/spec/fixtures/correios/{response_success.xml → request_collect_number/response_success.xml} +0 -0
  15. data/spec/fixtures/correios/{response_unavailable_house_collect.xml → request_collect_number/response_unavailable_house_collect.xml} +0 -0
  16. data/spec/fixtures/correios/{response_unavailable_service.xml → request_collect_number/response_unavailable_service.xml} +0 -0
  17. data/spec/fixtures/correios/{response_unexpected.xml → request_collect_number/response_unexpected.xml} +0 -0
  18. data/spec/fixtures/correios/request_sro/response_collect_number_not_found.xml +13 -0
  19. data/spec/fixtures/correios/request_sro/response_required_fields.xml +13 -0
  20. data/spec/fixtures/correios/request_sro/response_sro_not_ready.xml +30 -0
  21. data/spec/fixtures/correios/request_sro/response_success.xml +30 -0
  22. data/spec/fixtures/correios/request_sro/response_unknown_error.xml +13 -0
  23. data/spec/fixtures/requests/sro_request.xml +6 -0
  24. metadata +32 -18
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDg4MzVhMjBkNmM4ZGZjODUyZGY0YWQ2ZTJkNGFlZTk1MjkxZGVmMA==
4
+ ZGUyY2U0NTg5N2FmZmRjNDk4NzcyZTRlYzIxYTM1ZjY4OTI1ZTY0Ng==
5
5
  data.tar.gz: !binary |-
6
- YWEzYjMxNzFlNWEyMzRhNjM3NjEzMTVlYTgwYjYxZDNmMjkwYzcxYQ==
6
+ NGE1NDdjNGUzM2VjZDExYmI1ZDMwNDUzNzBjN2VhYzNjNGU5ZDg1Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NDJjNWRiY2JhZTNjNWY4OGRiZDFiOWZiMzUzODBkNmI0ZjUxZGZjOTk0MzNh
10
- MDQzNzBlMGE0NjRmOWZkZjZhNjZhNTE0MjA1YmQ2YzEzZWUzZTZkNjlhZTUy
11
- Y2ZkNTcwNDQzNTk3NWRhZjRkYTVkODgyNTllZDQ3ZWMzYWZiNzY=
9
+ ZTUwNmQyZWYwNDEzYThiMDI2MGVkZTg5Nzc3NWRiYjdmYmRkMjdjNWEzNTk2
10
+ ZGQ1ZDgwZDE3M2U2OTIyZjlhZTY1OGIyMWM4ZjQ0OWFiNDZjMWQxYTk0NTE4
11
+ OGNmMDM5MzYxNDgyY2ExZjA3YjFkMjRjYjNmNzZhZThhMzNjNTY=
12
12
  data.tar.gz: !binary |-
13
- ZWIzYjdjNjJkMWY5NmE3NzJlNmNjN2Y1MTAyNTAyMWJkYzY0OTNjYWRjNGYx
14
- ZDljOWFjNzJkMTBjNGY0NDYyMTE1YjUzN2U3OGI0ZWU5YTRiZjVkYzVhMjRi
15
- ZWE2MTdlNzJiOWY1ZDM3MGEyNWI0NGM1MmZkNWIxNDBiYmFlZjM=
13
+ ZjEyOTFmNjc3NDZkNzk0NzljMTViMzA5NjFhNzYwZDI2MzI4ZjNmZDViN2Iz
14
+ MjcyOWQyZmNjN2FmMWE3MDRkY2QyMWM1YzAzN2E5MTI1NjljZGEzYjUwZmNh
15
+ ZjZmNGM4ODFkMjNkNjUyNjAyYTI5OGM1Y2U0MTVmNGEwMTk1ZDA=
@@ -28,6 +28,8 @@ require 'correios_sigep/models/errors/collect_not_answered_for_the_zipcode'
28
28
  require 'correios_sigep/models/errors/not_configured_client'
29
29
  require 'correios_sigep/models/errors/unknown_error'
30
30
  require 'correios_sigep/models/errors/sro_not_ready'
31
+ require 'correios_sigep/models/errors/required_fields'
32
+ require 'correios_sigep/models/errors/collect_number_not_found'
31
33
  require 'correios_sigep/logistic_reverse/base_client'
32
34
  require 'correios_sigep/logistic_reverse/request_collect_number'
33
35
  require 'correios_sigep/logistic_reverse/request_sro'
@@ -15,13 +15,20 @@ module CorreiosSigep
15
15
  private
16
16
  def process_response response
17
17
  correios_hash = response.body[:acompanhar_pedido_response][:return]
18
+ check_sro_errors correios_hash
19
+ correios_hash[:coleta][:objeto][:numero_etiqueta] || begin raise Models::Errors::SRONotReady; end
20
+ end
18
21
 
19
- case correios_hash[:cod_erro].to_i
22
+ def check_sro_errors return_body
23
+ error_msg = return_body[:msg_erro]
24
+ case return_body[:cod_erro].to_i
20
25
  when 0
21
- correios_hash[:coleta][:objeto][:numero_etiqueta]
26
+ when -7
27
+ raise Models::Errors::RequiredFields.new(error_msg)
28
+ when -5
29
+ raise Models::Errors::CollectNumberNotFound.new(error_msg)
22
30
  else
23
- # TODO look for a descritpion of this weird error
24
- raise Models::Errors::SRONotReady
31
+ raise Models::Errors::UnknownError.new(error_msg)
25
32
  end
26
33
  end
27
34
  end
@@ -0,0 +1,8 @@
1
+ module CorreiosSigep
2
+ module Models
3
+ module Errors
4
+ class CollectNumberNotFound < StandardError
5
+ end
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,8 @@
1
+ module CorreiosSigep
2
+ module Models
3
+ module Errors
4
+ class RequiredFields < StandardError
5
+ end
6
+ end
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module CorreiosSigep
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
3
3
  end
@@ -1,5 +1,4 @@
1
1
  require 'spec_helper'
2
- require 'pry'
3
2
 
4
3
  module CorreiosSigep
5
4
  module Builders
@@ -6,7 +6,6 @@ module CorreiosSigep
6
6
  let(:logistic_reverse) { Models::LogisticReverse.new }
7
7
  let(:request_collect) { described_class.new logistic_reverse }
8
8
  let(:body) { request_fixture('collect_number_request.xml') }
9
- let(:request_header) { request_fixture('header.txt') }
10
9
 
11
10
  before do
12
11
  seed_logistic_reverse(logistic_reverse)
@@ -22,7 +21,7 @@ module CorreiosSigep
22
21
  'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
23
22
  'Content-Length'=>'2267', 'Content-Type'=>'text/xml;charset=UTF-8',
24
23
  'Soapaction'=>'"solicitarPostagemReversa"', 'User-Agent'=>'Ruby' }).
25
- to_return(:status => 200, :body => correios_fixture(response_body), :headers => {})
24
+ to_return(:status => 200, :body => correios_fixture("request_collect_number/#{response_body}"), :headers => {})
26
25
  end
27
26
 
28
27
  describe '.process' do
@@ -1,63 +1,70 @@
1
+ require 'spec_helper'
2
+
1
3
  module CorreiosSigep
2
4
  module LogisticReverse
3
5
  describe RequestSRO do
4
6
  let(:sro_params) { { collect_number: '1234', type: 'A' } }
5
7
  let(:sro) { CorreiosSigep::Models::SRO.new(sro_params) }
8
+ let(:body) { request_fixture('sro_request.xml').chop }
6
9
 
7
- describe '.initialize' do
8
- subject { described_class.new(sro) }
10
+ before do
11
+ # WSDL
12
+ stub_request(:get, "http://webservicescolhomologacao.correios.com.br/ScolWeb/WebServiceScol?wsdl").
13
+ with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Ruby'}).
14
+ to_return(:status => 200, :body => correios_fixture('wsdl.xml'), :headers => {})
9
15
 
10
- it 'instantiates necessary classes' do
11
- expect(subject.class).to eq CorreiosSigep::LogisticReverse::RequestSRO
12
- end
16
+ # REQUEST
17
+ stub_request(:post, "http://webservicescolhomologacao.correios.com.br/ScolWeb/WebServiceScol").
18
+ with(:body => body, :headers => { 'Accept'=>'*/*',
19
+ 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3',
20
+ 'Content-Length'=>'633', 'Content-Type'=>'text/xml;charset=UTF-8',
21
+ 'Soapaction'=>'"acompanharPedido"', 'User-Agent'=>'Ruby' }).
22
+ to_return(:status => 200, :body => correios_fixture("request_sro/#{response_body}"), :headers => {})
13
23
  end
14
24
 
15
25
  describe '.process' do
16
26
  subject { described_class.new(sro).process }
17
27
 
18
- before :each do
19
- expect_any_instance_of(RequestSRO).to receive(:invoke).with(any_args) { response }
28
+ context 'when successfully brings a SRO' do
29
+ let(:response_body) { 'response_success.xml' }
30
+
31
+ it 'returns sro ticket' do
32
+ expect(subject).to eq 'ETI12345'
33
+ end
20
34
  end
21
35
 
22
- let(:response) { double('response', body: response_hash) }
23
- let(:sro_ticket) { 'ABC123123123BR' }
36
+ context 'when SRO is not ready yet' do
37
+ let(:response_body) { 'response_sro_not_ready.xml' }
24
38
 
25
- context 'when successfully brings a SRO' do
26
- let(:response_hash) do
27
- {
28
- acompanhar_pedido_response: {
29
- return: {
30
- cod_erro: 0,
31
- coleta: {
32
- objeto: {
33
- numero_etiqueta: sro_ticket
34
- }
35
- }
36
- }
37
- }
38
- }
39
+ it 'raises SRONotReady error' do
40
+ expect{subject}.to raise_error Models::Errors::SRONotReady
39
41
  end
42
+ end
40
43
 
41
- it 'returns sro ticket' do
42
- expect(subject).to eq sro_ticket
44
+ context 'when required fields is not filled' do
45
+ let(:response_body) { 'response_required_fields.xml' }
46
+
47
+ it 'raises RequiredFields error' do
48
+ expect{subject}.to raise_error Models::Errors::RequiredFields
43
49
  end
44
50
  end
45
51
 
46
- context 'when SRO is not ready yet' do
47
- let(:response_hash) do
48
- {
49
- acompanhar_pedido_response: {
50
- return: {
51
- cod_erro: 1
52
- }
53
- }
54
- }
52
+ context 'when CollectNumber does not exist or it is not valid' do
53
+ let(:response_body) { 'response_collect_number_not_found.xml' }
54
+
55
+ it 'raises CollectNumberNotFound' do
56
+ expect{subject}.to raise_error Models::Errors::CollectNumberNotFound
55
57
  end
58
+ end
56
59
 
57
- it 'raises an error' do
58
- expect{subject}.to raise_error Models::Errors::SRONotReady
60
+ context 'with an unknow error' do
61
+ let(:response_body) { 'response_unknown_error.xml' }
62
+
63
+ it 'raises UnkowError' do
64
+ expect{subject}.to raise_error Models::Errors::UnknownError
59
65
  end
60
66
  end
67
+
61
68
  end
62
69
  end
63
70
  end
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <S:Body>
4
+ <ns2:acompanharPedidoResponse xmlns:ns2="http://webservice.scol.correios.com.br/">
5
+ <return>
6
+ <data>16/07/2015</data>
7
+ <hora>19:21</hora>
8
+ <cod_erro>-5</cod_erro>
9
+ <msg_erro>Número do pedido inválido ou não localizado na base de dados para o tipo de solicitação informado.</msg_erro>
10
+ </return>
11
+ </ns2:acompanharPedidoResponse>
12
+ </S:Body>
13
+ </S:Envelope>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <S:Body>
4
+ <ns2:acompanharPedidoResponse xmlns:ns2="http://webservice.scol.correios.com.br/">
5
+ <return>
6
+ <data>16/07/2015</data>
7
+ <hora>11:35</hora>
8
+ <cod_erro>-7</cod_erro>
9
+ <msg_erro>Dados obrigatórios não informados.</msg_erro>
10
+ </return>
11
+ </ns2:acompanharPedidoResponse>
12
+ </S:Body>
13
+ </S:Envelope>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <S:Body>
4
+ <ns2:acompanharPedidoResponse xmlns:ns2="http://webservice.scol.correios.com.br/">
5
+ <return>
6
+ <codigo_administrativo>0808265</codigo_administrativo>
7
+ <tipo_solicitacao>A</tipo_solicitacao>
8
+ <coleta>
9
+ <numero_pedido>1234</numero_pedido>
10
+ <controle_cliente>56789</controle_cliente>
11
+ <historico>
12
+ <status>55</status>
13
+ <descricao_status>Aguardando Objeto na Agência</descricao_status>
14
+ <data_atualizacao>16-07-2015</data_atualizacao>
15
+ <hora_atualizacao>11:02:36</hora_atualizacao>
16
+ <observacao/>
17
+ </historico>
18
+ <objeto>
19
+ <numero_etiqueta/>
20
+ <controle_objeto_cliente>2696523</controle_objeto_cliente>
21
+ <ultimo_status>55</ultimo_status>
22
+ <descricao_status>Aguardando Objeto na Agência</descricao_status>
23
+ <data_ultima_atualizacao>16-07-2015</data_ultima_atualizacao>
24
+ <hora_ultima_atualizacao>11:02:36</hora_ultima_atualizacao>
25
+ </objeto>
26
+ </coleta>
27
+ </return>
28
+ </ns2:acompanharPedidoResponse>
29
+ </S:Body>
30
+ </S:Envelope>
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <S:Body>
4
+ <ns2:acompanharPedidoResponse xmlns:ns2="http://webservice.scol.correios.com.br/">
5
+ <return>
6
+ <codigo_administrativo>0808265</codigo_administrativo>
7
+ <tipo_solicitacao>A</tipo_solicitacao>
8
+ <coleta>
9
+ <numero_pedido>1234</numero_pedido>
10
+ <controle_cliente>56789</controle_cliente>
11
+ <historico>
12
+ <status>55</status>
13
+ <descricao_status>Aguardando Objeto na Agência</descricao_status>
14
+ <data_atualizacao>16-07-2015</data_atualizacao>
15
+ <hora_atualizacao>11:02:36</hora_atualizacao>
16
+ <observacao/>
17
+ </historico>
18
+ <objeto>
19
+ <numero_etiqueta>ETI12345</numero_etiqueta>
20
+ <controle_objeto_cliente>2696523</controle_objeto_cliente>
21
+ <ultimo_status>55</ultimo_status>
22
+ <descricao_status>Aguardando Objeto na Agência</descricao_status>
23
+ <data_ultima_atualizacao>16-07-2015</data_ultima_atualizacao>
24
+ <hora_ultima_atualizacao>11:02:36</hora_ultima_atualizacao>
25
+ </objeto>
26
+ </coleta>
27
+ </return>
28
+ </ns2:acompanharPedidoResponse>
29
+ </S:Body>
30
+ </S:Envelope>
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
3
+ <S:Body>
4
+ <ns2:acompanharPedidoResponse xmlns:ns2="http://webservice.scol.correios.com.br/">
5
+ <return>
6
+ <data>16/07/2015</data>
7
+ <hora>11:35</hora>
8
+ <cod_erro>123</cod_erro>
9
+ <msg_erro>Erro desconhecido.</msg_erro>
10
+ </return>
11
+ </ns2:acompanharPedidoResponse>
12
+ </S:Body>
13
+ </S:Envelope>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?><env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://webservice.scol.correios.com.br/" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"><env:Body><tns:acompanharPedido><cartao>0057018901</cartao><codigo_servico>41076</codigo_servico><contrato>9912208555</contrato><codAdministrativo>08082650</codAdministrativo><senha>8o8otn</senha><usuario>60618043</usuario>
2
+ <tipoBusca>H</tipoBusca>
3
+ <tipoSolicitacao>A</tipoSolicitacao>
4
+ <numeroPedido>1234</numeroPedido>
5
+
6
+ </tns:acompanharPedido></env:Body></env:Envelope>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: correios_sigep
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Ribeiro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-07-01 00:00:00.000000000 Z
12
+ date: 2015-07-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: savon
@@ -135,8 +135,10 @@ files:
135
135
  - lib/correios_sigep/models/collect.rb
136
136
  - lib/correios_sigep/models/correios_response_codes.rb
137
137
  - lib/correios_sigep/models/errors/collect_not_answered_for_the_zipcode.rb
138
+ - lib/correios_sigep/models/errors/collect_number_not_found.rb
138
139
  - lib/correios_sigep/models/errors/inexistent_zipcode.rb
139
140
  - lib/correios_sigep/models/errors/not_configured_client.rb
141
+ - lib/correios_sigep/models/errors/required_fields.rb
140
142
  - lib/correios_sigep/models/errors/sro_not_ready.rb
141
143
  - lib/correios_sigep/models/errors/ticket_already_used.rb
142
144
  - lib/correios_sigep/models/errors/unavailable_house_collect.rb
@@ -167,16 +169,22 @@ files:
167
169
  - spec/fixtures/builders/logistic_reverse.xml
168
170
  - spec/fixtures/builders/request_collect_number.xml
169
171
  - spec/fixtures/builders/request_sro.xml
170
- - spec/fixtures/correios/response_already_in_use.xml
171
- - spec/fixtures/correios/response_inexistent_zipcode.xml
172
- - spec/fixtures/correios/response_not_answered_for_zipcode.xml
173
- - spec/fixtures/correios/response_not_configured_client.xml
174
- - spec/fixtures/correios/response_success.xml
175
- - spec/fixtures/correios/response_unavailable_house_collect.xml
176
- - spec/fixtures/correios/response_unavailable_service.xml
177
- - spec/fixtures/correios/response_unexpected.xml
172
+ - spec/fixtures/correios/request_collect_number/response_already_in_use.xml
173
+ - spec/fixtures/correios/request_collect_number/response_inexistent_zipcode.xml
174
+ - spec/fixtures/correios/request_collect_number/response_not_answered_for_zipcode.xml
175
+ - spec/fixtures/correios/request_collect_number/response_not_configured_client.xml
176
+ - spec/fixtures/correios/request_collect_number/response_success.xml
177
+ - spec/fixtures/correios/request_collect_number/response_unavailable_house_collect.xml
178
+ - spec/fixtures/correios/request_collect_number/response_unavailable_service.xml
179
+ - spec/fixtures/correios/request_collect_number/response_unexpected.xml
180
+ - spec/fixtures/correios/request_sro/response_collect_number_not_found.xml
181
+ - spec/fixtures/correios/request_sro/response_required_fields.xml
182
+ - spec/fixtures/correios/request_sro/response_sro_not_ready.xml
183
+ - spec/fixtures/correios/request_sro/response_success.xml
184
+ - spec/fixtures/correios/request_sro/response_unknown_error.xml
178
185
  - spec/fixtures/correios/wsdl.xml
179
186
  - spec/fixtures/requests/collect_number_request.xml
187
+ - spec/fixtures/requests/sro_request.xml
180
188
  - spec/spec_helper.rb
181
189
  - spec/support/fixture_helper.rb
182
190
  - spec/support/logistic_reverse_helper.rb
@@ -223,16 +231,22 @@ test_files:
223
231
  - spec/fixtures/builders/logistic_reverse.xml
224
232
  - spec/fixtures/builders/request_collect_number.xml
225
233
  - spec/fixtures/builders/request_sro.xml
226
- - spec/fixtures/correios/response_already_in_use.xml
227
- - spec/fixtures/correios/response_inexistent_zipcode.xml
228
- - spec/fixtures/correios/response_not_answered_for_zipcode.xml
229
- - spec/fixtures/correios/response_not_configured_client.xml
230
- - spec/fixtures/correios/response_success.xml
231
- - spec/fixtures/correios/response_unavailable_house_collect.xml
232
- - spec/fixtures/correios/response_unavailable_service.xml
233
- - spec/fixtures/correios/response_unexpected.xml
234
+ - spec/fixtures/correios/request_collect_number/response_already_in_use.xml
235
+ - spec/fixtures/correios/request_collect_number/response_inexistent_zipcode.xml
236
+ - spec/fixtures/correios/request_collect_number/response_not_answered_for_zipcode.xml
237
+ - spec/fixtures/correios/request_collect_number/response_not_configured_client.xml
238
+ - spec/fixtures/correios/request_collect_number/response_success.xml
239
+ - spec/fixtures/correios/request_collect_number/response_unavailable_house_collect.xml
240
+ - spec/fixtures/correios/request_collect_number/response_unavailable_service.xml
241
+ - spec/fixtures/correios/request_collect_number/response_unexpected.xml
242
+ - spec/fixtures/correios/request_sro/response_collect_number_not_found.xml
243
+ - spec/fixtures/correios/request_sro/response_required_fields.xml
244
+ - spec/fixtures/correios/request_sro/response_sro_not_ready.xml
245
+ - spec/fixtures/correios/request_sro/response_success.xml
246
+ - spec/fixtures/correios/request_sro/response_unknown_error.xml
234
247
  - spec/fixtures/correios/wsdl.xml
235
248
  - spec/fixtures/requests/collect_number_request.xml
249
+ - spec/fixtures/requests/sro_request.xml
236
250
  - spec/spec_helper.rb
237
251
  - spec/support/fixture_helper.rb
238
252
  - spec/support/logistic_reverse_helper.rb