if (typeof Sexo != "function") { function Sexo() { } } if (typeof Frete != "function") { function Frete() { this.id = 0; this.cep = null; this.valor = null; this.tipo = null; this.empresa = null; this.pedido = null; } } if (typeof Pedido != "function") { function Pedido() { this.id = 0; this.frete = null; this.pessoa = null; this.pagamento = null; this.data = null; this.itens = null; this.referencia = null; } } if (typeof ItemPedido != "function") { function ItemPedido() { this.qtde = 0; this.id = 0; this.valorFrete = null; this.produto = null; this.valor = null; this.extras = null; } } if (typeof Telefone != "function") { function Telefone() { this.id = 0; this.ddd = null; this.tipo = null; this.numero = null; } } if (typeof Endereco != "function") { function Endereco() { this.id = 0; this.cidade = null; this.bairro = null; this.complemento = null; this.cep = null; this.uf = null; this.pessoa = null; this.logradouro = null; this.numero = null; } } if (typeof PessoaFisica != "function") { function PessoaFisica() { this.id = 0; this.pedidos = null; this.sobrenome = null; this.documentos = null; this.email = null; this.telefones = null; this.sexo = null; this.nome = null; this.nascimento = null; this.senha = null; this.endereco = null; } } if (typeof Documento != "function") { function Documento() { this.id = 0; this.tipo = null; this.numero = null; } } if (typeof Referencia != "function") { function Referencia() { this.id = 0; this.codigo = null; this.pedido = null; } } if (typeof Produto != "function") { function Produto() { this.peso = 0; this.id = 0; this.titulo = null; this.valor = null; this.isbn = null; } } // Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (freteLookup == null) var freteLookup = {}; freteLookup._path = '/dwr'; freteLookup.calcularFrete = function(p0, callback) { dwr.engine._execute(freteLookup._path, 'freteLookup', 'calcularFrete', p0, callback); }