From 8ab67487dada1b0446f300990fcba41ae5235050 Mon Sep 17 00:00:00 2001 From: macbook Date: Tue, 21 Nov 2017 22:03:12 -0600 Subject: [PATCH] bugs fixed --- src/Facturacom33.php | 2 +- src/models/Cliente.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Facturacom33.php b/src/Facturacom33.php index e4c9ee4..b2b103e 100644 --- a/src/Facturacom33.php +++ b/src/Facturacom33.php @@ -44,7 +44,7 @@ public function createCliente($cliente) $this->API_VERSION = 'api/v1'; $model = new Cliente(); $model->setAttributes($cliente->getAttributes()); - if ($cliente->validate()) { + if ($model->validate()) { try { return $this->booleanResponse($this->sendRequest('post', 'clients/create', $model->getAttributes())); } catch (\Exception $exception) { diff --git a/src/models/Cliente.php b/src/models/Cliente.php index 96b5213..e436b1c 100644 --- a/src/models/Cliente.php +++ b/src/models/Cliente.php @@ -85,7 +85,6 @@ public function rules() [ 'nombre', 'apellidos', - 'email', 'rfc', 'razons', 'calle',