We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Olá. Acredito que seja algum problema do webservice dos Correios mesmo, ou outra mudança de código. Estou deixando aqui para registrar.
Resultado:
Obrigado!
The text was updated successfully, but these errors were encountered: