Sigepweb class

A classe principal

Constructors

Sigepweb({SigepContrato? contrato, bool isDebug = false, bool useSSL = false})
Construtor padrao. Voce pode iniciar esta classe passando um contrato ou informando isDebug como true que usara entao o ambiente de homologacao para testes.

Properties

contrato SigepContrato?
getter/setter pair
dio → Dio
final
hashCode int
The hash code for this object.
no setterinherited
isDebug bool
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useSSL bool
final

Methods

calcPrecoPrazo({List<String> servicosList = const [ServicosPostagem.sedexAVista_04014, ServicosPostagem.pacAVista_04510], required String cepOrigem, required String cepDestino, double valorPeso = .5, FormatoEncomenda formatoEncomenda = FormatoEncomenda.caixa, int comprimento = 20, int altura = 20, int largura = 20, int diametro = 0, bool maosPropria = false, double valorDeclarado = 0.0, bool avisoRecebimento = false}) Future<List<CalcPrecoPrazoItemModel>>
Efetua os calculos de preco e prazo para uma encomenda. Resulta numa lista de CalcPrecoPrazoItemModel.
consultaCEP(String cep) Future<ConsultaCepModel>
A partir do cep este metodo busca na API o resultado que sera embutido na model ConsultaCepModel. Poderá disparar SigepwebRuntimeError caso o CEP seja inválido.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited