Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEDEX a Cobrar retornando valor 0 #33

Open
doug2k1 opened this issue May 15, 2017 · 0 comments
Open

SEDEX a Cobrar retornando valor 0 #33

doug2k1 opened this issue May 15, 2017 · 0 comments

Comments

@doug2k1
Copy link

doug2k1 commented May 15, 2017

Olá. Acredito que seja algum problema do webservice dos Correios mesmo, ou outra mudança de código. Estou deixando aqui para registrar.

frete = Correios::Frete::Calculador.new :cep_origem => '13040089', 
:cep_destino => '13041445', :peso => 1, :comprimento => 30, :largura => 15, :altura => 5, 
:valor_declarado => 100

frete.calcular :sedex_a_cobrar

Resultado:

#<Correios::Frete::Servico:0x007fc040374c38 @codigo="40045", @valor=0.0, @prazo_entrega=1, @valor_mao_propria=0.0, @valor_aviso_recebimento=0.0, @valor_valor_declarado=0.0, @entrega_domiciliar=true, @entrega_sabado=true, @erro="0", @tipo=:sedex_a_cobrar, @nome="SEDEX a Cobrar", @descricao="SEDEX a Cobrar, sem contrato">

Obrigado!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant