From 3b0a5065d8103c941937ddec4ffd0aed4901afa1 Mon Sep 17 00:00:00 2001 From: giansalex Date: Fri, 6 Oct 2017 19:24:48 -0500 Subject: [PATCH] add greenter-core dependency --- composer.json | 4 +- src/Greenter/Factory/FactoryInterface.php | 25 - src/Greenter/Model/Client/Client.php | 96 ---- src/Greenter/Model/Company/Address.php | 195 ------- src/Greenter/Model/Company/Company.php | 116 ----- src/Greenter/Model/Despatch/Despatch.php | 340 ------------- .../Model/Despatch/DespatchDetail.php | 120 ----- src/Greenter/Model/Despatch/Direction.php | 85 ---- src/Greenter/Model/Despatch/Shipment.php | 349 ------------- src/Greenter/Model/Despatch/Transportist.php | 176 ------- src/Greenter/Model/DocumentInterface.php | 23 - src/Greenter/Model/Perception/Perception.php | 318 ------------ .../Model/Perception/PerceptionDetail.php | 287 ----------- src/Greenter/Model/Response/BaseResult.php | 71 --- src/Greenter/Model/Response/BillResult.php | 62 --- src/Greenter/Model/Response/CdrResponse.php | 108 ---- src/Greenter/Model/Response/Error.php | 62 --- .../Model/Response/StatusCdrResult.php | 62 --- src/Greenter/Model/Response/StatusResult.php | 90 ---- src/Greenter/Model/Response/SummaryResult.php | 39 -- src/Greenter/Model/Retention/Exchange.php | 128 ----- src/Greenter/Model/Retention/Payment.php | 101 ---- src/Greenter/Model/Retention/Retention.php | 319 ------------ .../Model/Retention/RetentionDetail.php | 284 ----------- src/Greenter/Model/Sale/BaseSale.php | 478 ------------------ src/Greenter/Model/Sale/Detraction.php | 100 ---- src/Greenter/Model/Sale/Document.php | 69 --- src/Greenter/Model/Sale/EmbededDespatch.php | 265 ---------- src/Greenter/Model/Sale/Invoice.php | 291 ----------- src/Greenter/Model/Sale/Legend.php | 73 --- src/Greenter/Model/Sale/Note.php | 169 ------- src/Greenter/Model/Sale/Prepayment.php | 96 ---- src/Greenter/Model/Sale/SaleDetail.php | 347 ------------- src/Greenter/Model/Sale/SalePerception.php | 122 ----- src/Greenter/Model/Summary/Summary.php | 166 ------ src/Greenter/Model/Summary/SummaryDetail.php | 310 ------------ .../Model/Summary/SummaryDetailV2.php | 365 ------------- src/Greenter/Model/Summary/SummaryV2.php | 40 -- src/Greenter/Model/Voided/Reversion.php | 32 -- src/Greenter/Model/Voided/Voided.php | 181 ------- src/Greenter/Model/Voided/VoidedDetail.php | 121 ----- src/Greenter/Ws/Services/SenderInterface.php | 25 - src/Greenter/Xml/Builder/BuilderInterface.php | 26 - .../Xml/Validator/ClientValidator.php | 35 -- .../Xml/Validator/DespatchDetailValidator.php | 38 -- .../Xml/Validator/DespatchValidator.php | 56 -- .../Xml/Validator/DetractionValidator.php | 28 - .../Xml/Validator/DirectionValidator.php | 31 -- .../Validator/EmbededDespatchValidator.php | 33 -- .../Xml/Validator/ExchangeValidator.php | 36 -- .../Xml/Validator/InvoiceValidator.php | 78 --- .../Xml/Validator/LegendValidator.php | 28 - src/Greenter/Xml/Validator/NoteValidator.php | 96 ---- .../Xml/Validator/PaymentValidator.php | 32 -- .../Validator/PerceptionDetailValidator.php | 51 -- .../Xml/Validator/PerceptionValidator.php | 55 -- .../Xml/Validator/PrepaymentValidator.php | 38 -- .../Validator/RetentionDetailValidator.php | 52 -- .../Xml/Validator/RetentionValidator.php | 55 -- .../Xml/Validator/SaleDetailValidator.php | 36 -- .../Xml/Validator/SalePerceptionValidator.php | 33 -- .../Xml/Validator/ShipmentValidator.php | 47 -- .../Validator/SummaryDetailV2Validator.php | 52 -- .../Xml/Validator/SummaryDetailValidator.php | 50 -- .../Xml/Validator/SummaryValidator.php | 37 -- .../Xml/Validator/TransportistValidator.php | 47 -- .../Xml/Validator/VoidedDetailValidator.php | 45 -- .../Xml/Validator/VoidedValidator.php | 37 -- 68 files changed, 2 insertions(+), 7860 deletions(-) delete mode 100644 src/Greenter/Factory/FactoryInterface.php delete mode 100644 src/Greenter/Model/Client/Client.php delete mode 100644 src/Greenter/Model/Company/Address.php delete mode 100644 src/Greenter/Model/Company/Company.php delete mode 100644 src/Greenter/Model/Despatch/Despatch.php delete mode 100644 src/Greenter/Model/Despatch/DespatchDetail.php delete mode 100644 src/Greenter/Model/Despatch/Direction.php delete mode 100644 src/Greenter/Model/Despatch/Shipment.php delete mode 100644 src/Greenter/Model/Despatch/Transportist.php delete mode 100644 src/Greenter/Model/DocumentInterface.php delete mode 100644 src/Greenter/Model/Perception/Perception.php delete mode 100644 src/Greenter/Model/Perception/PerceptionDetail.php delete mode 100644 src/Greenter/Model/Response/BaseResult.php delete mode 100644 src/Greenter/Model/Response/BillResult.php delete mode 100644 src/Greenter/Model/Response/CdrResponse.php delete mode 100644 src/Greenter/Model/Response/Error.php delete mode 100644 src/Greenter/Model/Response/StatusCdrResult.php delete mode 100644 src/Greenter/Model/Response/StatusResult.php delete mode 100644 src/Greenter/Model/Response/SummaryResult.php delete mode 100644 src/Greenter/Model/Retention/Exchange.php delete mode 100644 src/Greenter/Model/Retention/Payment.php delete mode 100644 src/Greenter/Model/Retention/Retention.php delete mode 100644 src/Greenter/Model/Retention/RetentionDetail.php delete mode 100644 src/Greenter/Model/Sale/BaseSale.php delete mode 100644 src/Greenter/Model/Sale/Detraction.php delete mode 100644 src/Greenter/Model/Sale/Document.php delete mode 100644 src/Greenter/Model/Sale/EmbededDespatch.php delete mode 100644 src/Greenter/Model/Sale/Invoice.php delete mode 100644 src/Greenter/Model/Sale/Legend.php delete mode 100644 src/Greenter/Model/Sale/Note.php delete mode 100644 src/Greenter/Model/Sale/Prepayment.php delete mode 100644 src/Greenter/Model/Sale/SaleDetail.php delete mode 100644 src/Greenter/Model/Sale/SalePerception.php delete mode 100644 src/Greenter/Model/Summary/Summary.php delete mode 100644 src/Greenter/Model/Summary/SummaryDetail.php delete mode 100644 src/Greenter/Model/Summary/SummaryDetailV2.php delete mode 100644 src/Greenter/Model/Summary/SummaryV2.php delete mode 100644 src/Greenter/Model/Voided/Reversion.php delete mode 100644 src/Greenter/Model/Voided/Voided.php delete mode 100644 src/Greenter/Model/Voided/VoidedDetail.php delete mode 100644 src/Greenter/Ws/Services/SenderInterface.php delete mode 100644 src/Greenter/Xml/Builder/BuilderInterface.php delete mode 100644 src/Greenter/Xml/Validator/ClientValidator.php delete mode 100644 src/Greenter/Xml/Validator/DespatchDetailValidator.php delete mode 100644 src/Greenter/Xml/Validator/DespatchValidator.php delete mode 100644 src/Greenter/Xml/Validator/DetractionValidator.php delete mode 100644 src/Greenter/Xml/Validator/DirectionValidator.php delete mode 100644 src/Greenter/Xml/Validator/EmbededDespatchValidator.php delete mode 100644 src/Greenter/Xml/Validator/ExchangeValidator.php delete mode 100644 src/Greenter/Xml/Validator/InvoiceValidator.php delete mode 100644 src/Greenter/Xml/Validator/LegendValidator.php delete mode 100644 src/Greenter/Xml/Validator/NoteValidator.php delete mode 100644 src/Greenter/Xml/Validator/PaymentValidator.php delete mode 100644 src/Greenter/Xml/Validator/PerceptionDetailValidator.php delete mode 100644 src/Greenter/Xml/Validator/PerceptionValidator.php delete mode 100644 src/Greenter/Xml/Validator/PrepaymentValidator.php delete mode 100644 src/Greenter/Xml/Validator/RetentionDetailValidator.php delete mode 100644 src/Greenter/Xml/Validator/RetentionValidator.php delete mode 100644 src/Greenter/Xml/Validator/SaleDetailValidator.php delete mode 100644 src/Greenter/Xml/Validator/SalePerceptionValidator.php delete mode 100644 src/Greenter/Xml/Validator/ShipmentValidator.php delete mode 100644 src/Greenter/Xml/Validator/SummaryDetailV2Validator.php delete mode 100644 src/Greenter/Xml/Validator/SummaryDetailValidator.php delete mode 100644 src/Greenter/Xml/Validator/SummaryValidator.php delete mode 100644 src/Greenter/Xml/Validator/TransportistValidator.php delete mode 100644 src/Greenter/Xml/Validator/VoidedDetailValidator.php delete mode 100644 src/Greenter/Xml/Validator/VoidedValidator.php diff --git a/composer.json b/composer.json index 13d8fe46..ca23cf1e 100644 --- a/composer.json +++ b/composer.json @@ -14,8 +14,8 @@ "require": { "php": ">=5.5.9", "twig/twig": "~1.0", - "symfony/validator": "^3.3", - "giansalex/xmldsig": "3.0.*" + "giansalex/xmldsig": "3.0.*", + "greenter/core": "^1.0" }, "require-dev": { "phpunit/phpunit": "4.8.36" diff --git a/src/Greenter/Factory/FactoryInterface.php b/src/Greenter/Factory/FactoryInterface.php deleted file mode 100644 index 9af4d3dd..00000000 --- a/src/Greenter/Factory/FactoryInterface.php +++ /dev/null @@ -1,25 +0,0 @@ -tipoDoc; - } - - /** - * @param mixed $tipoDoc - * @return Client - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return mixed - */ - public function getNumDoc() - { - return $this->numDoc; - } - - /** - * @param mixed $numDoc - * @return Client - */ - public function setNumDoc($numDoc) - { - $this->numDoc = $numDoc; - return $this; - } - - /** - * @return string - */ - public function getRznSocial() - { - return $this->rznSocial; - } - - /** - * @param string $rznSocial - * @return Client - */ - public function setRznSocial($rznSocial) - { - $this->rznSocial = $rznSocial; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Company/Address.php b/src/Greenter/Model/Company/Address.php deleted file mode 100644 index b7dd4696..00000000 --- a/src/Greenter/Model/Company/Address.php +++ /dev/null @@ -1,195 +0,0 @@ -codigoPais = 'PE'; - } - - /** - * @return string - */ - public function getUbigueo() - { - return $this->ubigueo; - } - - /** - * @param string $ubigueo - * @return Address - */ - public function setUbigueo($ubigueo) - { - $this->ubigueo = $ubigueo; - return $this; - } - - /** - * @return string - */ - public function getCodigoPais() - { - return $this->codigoPais; - } - - /** - * @param string $codigoPais - * @return Address - */ - public function setCodigoPais($codigoPais) - { - $this->codigoPais = $codigoPais; - return $this; - } - - /** - * @return string - */ - public function getDepartamento() - { - return $this->departamento; - } - - /** - * @param string $departamento - * @return Address - */ - public function setDepartamento($departamento) - { - $this->departamento = $departamento; - return $this; - } - - /** - * @return string - */ - public function getProvincia() - { - return $this->provincia; - } - - /** - * @param string $provincia - * @return Address - */ - public function setProvincia($provincia) - { - $this->provincia = $provincia; - return $this; - } - - /** - * @return string - */ - public function getDistrito() - { - return $this->distrito; - } - - /** - * @param string $distrito - * @return Address - */ - public function setDistrito($distrito) - { - $this->distrito = $distrito; - return $this; - } - - /** - * @return string - */ - public function getUrbanizacion() - { - return $this->urbanizacion; - } - - /** - * @param string $urbanizacion - * @return Address - */ - public function setUrbanizacion($urbanizacion) - { - $this->urbanizacion = $urbanizacion; - return $this; - } - - /** - * @return string - */ - public function getDireccion() - { - return $this->direccion; - } - - /** - * @param string $direccion - * @return Address - */ - public function setDireccion($direccion) - { - $this->direccion = $direccion; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Company/Company.php b/src/Greenter/Model/Company/Company.php deleted file mode 100644 index 8ca87071..00000000 --- a/src/Greenter/Model/Company/Company.php +++ /dev/null @@ -1,116 +0,0 @@ -ruc; - } - - /** - * @param string $ruc - * @return Company - */ - public function setRuc($ruc) - { - $this->ruc = $ruc; - return $this; - } - - /** - * @return string - */ - public function getRazonSocial() - { - return $this->razonSocial; - } - - /** - * @param string $razonSocial - * @return Company - */ - public function setRazonSocial($razonSocial) - { - $this->razonSocial = $razonSocial; - return $this; - } - - /** - * @return string - */ - public function getNombreComercial() - { - return $this->nombreComercial; - } - - /** - * @param string $nombreComercial - * @return Company - */ - public function setNombreComercial($nombreComercial) - { - $this->nombreComercial = $nombreComercial; - return $this; - } - - /** - * @return Address - */ - public function getAddress() - { - return $this->address; - } - - /** - * @param Address $address - * @return Company - */ - public function setAddress($address) - { - $this->address = $address; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Despatch/Despatch.php b/src/Greenter/Model/Despatch/Despatch.php deleted file mode 100644 index 0b1fa53b..00000000 --- a/src/Greenter/Model/Despatch/Despatch.php +++ /dev/null @@ -1,340 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return Despatch - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getSerie() - { - return $this->serie; - } - - /** - * @param string $serie - * @return Despatch - */ - public function setSerie($serie) - { - $this->serie = $serie; - return $this; - } - - /** - * @return string - */ - public function getCorrelativo() - { - return $this->correlativo; - } - - /** - * @param string $correlativo - * @return Despatch - */ - public function setCorrelativo($correlativo) - { - $this->correlativo = $correlativo; - return $this; - } - - /** - * @return string - */ - public function getObservacion() - { - return $this->observacion; - } - - /** - * @param string $observacion - * @return Despatch - */ - public function setObservacion($observacion) - { - $this->observacion = $observacion; - return $this; - } - - /** - * @return \DateTime - */ - public function getFechaEmision() - { - return $this->fechaEmision; - } - - /** - * @param \DateTime $fechaEmision - * @return Despatch - */ - public function setFechaEmision($fechaEmision) - { - $this->fechaEmision = $fechaEmision; - return $this; - } - - /** - * @return Company - */ - public function getCompany() - { - return $this->company; - } - - /** - * @param Company $company - * @return Despatch - */ - public function setCompany($company) - { - $this->company = $company; - return $this; - } - - /** - * @return Client - */ - public function getDestinatario() - { - return $this->destinatario; - } - - /** - * @param Client $destinatario - * @return Despatch - */ - public function setDestinatario($destinatario) - { - $this->destinatario = $destinatario; - return $this; - } - - /** - * @return Client - */ - public function getTercero() - { - return $this->tercero; - } - - /** - * @param Client $tercero - * @return Despatch - */ - public function setTercero($tercero) - { - $this->tercero = $tercero; - return $this; - } - - /** - * @return Shipment - */ - public function getEnvio() - { - return $this->envio; - } - - /** - * @param Shipment $envio - * @return Despatch - */ - public function setEnvio($envio) - { - $this->envio = $envio; - return $this; - } - - /** - * @return Document - */ - public function getDocBaja() - { - return $this->docBaja; - } - - /** - * @param Document $docBaja - * @return Despatch - */ - public function setDocBaja($docBaja) - { - $this->docBaja = $docBaja; - return $this; - } - - /** - * @return Document - */ - public function getRelDoc() - { - return $this->relDoc; - } - - /** - * @param Document $relDoc - * @return Despatch - */ - public function setRelDoc($relDoc) - { - $this->relDoc = $relDoc; - return $this; - } - - /** - * @return DespatchDetail[] - */ - public function getDetails() - { - return $this->details; - } - - /** - * @param DespatchDetail[] $details - * @return Despatch - */ - public function setDetails($details) - { - $this->details = $details; - return $this; - } - - /** - * Get FileName without extension. - * - * @return string - */ - public function getName() - { - $parts = [ - $this->company->getRuc(), - $this->getTipoDoc(), // 09 - $this->getSerie(), - $this->getCorrelativo(), - ]; - - return join('-', $parts); - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Despatch/DespatchDetail.php b/src/Greenter/Model/Despatch/DespatchDetail.php deleted file mode 100644 index f1e0fa42..00000000 --- a/src/Greenter/Model/Despatch/DespatchDetail.php +++ /dev/null @@ -1,120 +0,0 @@ -codigo; - } - - /** - * @param string $codigo - * @return DespatchDetail - */ - public function setCodigo($codigo) - { - $this->codigo = $codigo; - return $this; - } - - /** - * @return string - */ - public function getDescripcion() - { - return $this->descripcion; - } - - /** - * @param string $descripcion - * @return DespatchDetail - */ - public function setDescripcion($descripcion) - { - $this->descripcion = $descripcion; - return $this; - } - - /** - * @return string - */ - public function getUnidad() - { - return $this->unidad; - } - - /** - * @param string $unidad - * @return DespatchDetail - */ - public function setUnidad($unidad) - { - $this->unidad = $unidad; - return $this; - } - - /** - * @return int - */ - public function getCantidad() - { - return $this->cantidad; - } - - /** - * @param int $cantidad - * @return DespatchDetail - */ - public function setCantidad($cantidad) - { - $this->cantidad = $cantidad; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Despatch/Direction.php b/src/Greenter/Model/Despatch/Direction.php deleted file mode 100644 index 5d3c4c83..00000000 --- a/src/Greenter/Model/Despatch/Direction.php +++ /dev/null @@ -1,85 +0,0 @@ -ubigueo = $ubigueo; - $this->direccion = $direccion; - } - - - /** - * @return string - */ - public function getUbigueo() - { - return $this->ubigueo; - } - - /** - * @param string $ubigueo - * @return Direction - */ - public function setUbigueo($ubigueo) - { - $this->ubigueo = $ubigueo; - return $this; - } - - /** - * @return string - */ - public function getDireccion() - { - return $this->direccion; - } - - /** - * @param string $direccion - * @return Direction - */ - public function setDireccion($direccion) - { - $this->direccion = $direccion; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Despatch/Shipment.php b/src/Greenter/Model/Despatch/Shipment.php deleted file mode 100644 index 6f02df77..00000000 --- a/src/Greenter/Model/Despatch/Shipment.php +++ /dev/null @@ -1,349 +0,0 @@ -codTraslado; - } - - /** - * @param string $codTraslado - * @return Shipment - */ - public function setCodTraslado($codTraslado) - { - $this->codTraslado = $codTraslado; - return $this; - } - - /** - * @return string - */ - public function getDesTraslado() - { - return $this->desTraslado; - } - - /** - * @param string $desTraslado - * @return Shipment - */ - public function setDesTraslado($desTraslado) - { - $this->desTraslado = $desTraslado; - return $this; - } - - /** - * @return bool - */ - public function isIndTransbordo() - { - return $this->indTransbordo; - } - - /** - * @param bool $indTransbordo - * @return Shipment - */ - public function setIndTransbordo($indTransbordo) - { - $this->indTransbordo = $indTransbordo; - return $this; - } - - /** - * @return float - */ - public function getPesoTotal() - { - return $this->pesoTotal; - } - - /** - * @param float $pesoTotal - * @return Shipment - */ - public function setPesoTotal($pesoTotal) - { - $this->pesoTotal = $pesoTotal; - return $this; - } - - /** - * @return string - */ - public function getUndPesoTotal() - { - return $this->undPesoTotal; - } - - /** - * @param string $undPesoTotal - * @return Shipment - */ - public function setUndPesoTotal($undPesoTotal) - { - $this->undPesoTotal = $undPesoTotal; - return $this; - } - - /** - * @return int - */ - public function getNumBultos() - { - return $this->numBultos; - } - - /** - * @param int $numBultos - * @return Shipment - */ - public function setNumBultos($numBultos) - { - $this->numBultos = $numBultos; - return $this; - } - - /** - * @return string - */ - public function getModTraslado() - { - return $this->modTraslado; - } - - /** - * @param string $modTraslado - * @return Shipment - */ - public function setModTraslado($modTraslado) - { - $this->modTraslado = $modTraslado; - return $this; - } - - /** - * @return \DateTime - */ - public function getFecTraslado() - { - return $this->fecTraslado; - } - - /** - * @param \DateTime $fecTraslado - * @return Shipment - */ - public function setFecTraslado($fecTraslado) - { - $this->fecTraslado = $fecTraslado; - return $this; - } - - /** - * @return string - */ - public function getNumContenedor() - { - return $this->numContenedor; - } - - /** - * @param string $numContenedor - * @return Shipment - */ - public function setNumContenedor($numContenedor) - { - $this->numContenedor = $numContenedor; - return $this; - } - - /** - * @return string - */ - public function getCodPuerto() - { - return $this->codPuerto; - } - - /** - * @param string $codPuerto - * @return Shipment - */ - public function setCodPuerto($codPuerto) - { - $this->codPuerto = $codPuerto; - return $this; - } - - /** - * @return Transportist - */ - public function getTransportista() - { - return $this->transportista; - } - - /** - * @param Transportist $transportista - * @return Shipment - */ - public function setTransportista($transportista) - { - $this->transportista = $transportista; - return $this; - } - - /** - * @return Direction - */ - public function getLlegada() - { - return $this->llegada; - } - - /** - * @param Direction $llegada - * @return Shipment - */ - public function setLlegada($llegada) - { - $this->llegada = $llegada; - return $this; - } - - /** - * @return Direction - */ - public function getPartida() - { - return $this->partida; - } - - /** - * @param Direction $partida - * @return Shipment - */ - public function setPartida($partida) - { - $this->partida = $partida; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Despatch/Transportist.php b/src/Greenter/Model/Despatch/Transportist.php deleted file mode 100644 index 74106f85..00000000 --- a/src/Greenter/Model/Despatch/Transportist.php +++ /dev/null @@ -1,176 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return Transportist - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getNumDoc() - { - return $this->numDoc; - } - - /** - * @param string $numDoc - * @return Transportist - */ - public function setNumDoc($numDoc) - { - $this->numDoc = $numDoc; - return $this; - } - - /** - * @return string - */ - public function getRznSocial() - { - return $this->rznSocial; - } - - /** - * @param string $rznSocial - * @return Transportist - */ - public function setRznSocial($rznSocial) - { - $this->rznSocial = $rznSocial; - return $this; - } - - /** - * @return string - */ - public function getPlaca() - { - return $this->placa; - } - - /** - * @param string $placa - * @return Transportist - */ - public function setPlaca($placa) - { - $this->placa = $placa; - return $this; - } - - /** - * @return string - */ - public function getChoferTipoDoc() - { - return $this->choferTipoDoc; - } - - /** - * @param string $choferTipoDoc - * @return Transportist - */ - public function setChoferTipoDoc($choferTipoDoc) - { - $this->choferTipoDoc = $choferTipoDoc; - return $this; - } - - /** - * @return string - */ - public function getChoferDoc() - { - return $this->choferDoc; - } - - /** - * @param string $choferDoc - * @return Transportist - */ - public function setChoferDoc($choferDoc) - { - $this->choferDoc = $choferDoc; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/DocumentInterface.php b/src/Greenter/Model/DocumentInterface.php deleted file mode 100644 index 7d742ae2..00000000 --- a/src/Greenter/Model/DocumentInterface.php +++ /dev/null @@ -1,23 +0,0 @@ -serie; - } - - /** - * @param string $serie - * @return Perception - */ - public function setSerie($serie) - { - $this->serie = $serie; - return $this; - } - - /** - * @return string - */ - public function getCorrelativo() - { - return $this->correlativo; - } - - /** - * @param string $correlativo - * @return Perception - */ - public function setCorrelativo($correlativo) - { - $this->correlativo = $correlativo; - return $this; - } - - /** - * @return \DateTime - */ - public function getFechaEmision() - { - return $this->fechaEmision; - } - - /** - * @param \DateTime $fechaEmision - * @return Perception - */ - public function setFechaEmision($fechaEmision) - { - $this->fechaEmision = $fechaEmision; - return $this; - } - - /** - * @return Company - */ - public function getCompany() - { - return $this->company; - } - - /** - * @param Company $company - * @return Perception - */ - public function setCompany($company) - { - $this->company = $company; - return $this; - } - - /** - * @return Client - */ - public function getProveedor() - { - return $this->proveedor; - } - - /** - * @param Client $proveedor - * @return Perception - */ - public function setProveedor($proveedor) - { - $this->proveedor = $proveedor; - return $this; - } - - /** - * @return string - */ - public function getRegimen() - { - return $this->regimen; - } - - /** - * @param string $regimen - * @return Perception - */ - public function setRegimen($regimen) - { - $this->regimen = $regimen; - return $this; - } - - /** - * @return float - */ - public function getTasa() - { - return $this->tasa; - } - - /** - * @param float $tasa - * @return Perception - */ - public function setTasa($tasa) - { - $this->tasa = $tasa; - return $this; - } - - /** - * @return float - */ - public function getImpPercibido() - { - return $this->impPercibido; - } - - /** - * @param float $impPercibido - * @return Perception - */ - public function setImpPercibido($impPercibido) - { - $this->impPercibido = $impPercibido; - return $this; - } - - /** - * @return float - */ - public function getImpCobrado() - { - return $this->impCobrado; - } - - /** - * @param float $impCobrado - * @return Perception - */ - public function setImpCobrado($impCobrado) - { - $this->impCobrado = $impCobrado; - return $this; - } - - /** - * @return string - */ - public function getObservacion() - { - return $this->observacion; - } - - /** - * @param string $observacion - * @return Perception - */ - public function setObservacion($observacion) - { - $this->observacion = $observacion; - return $this; - } - - /** - * @return PerceptionDetail[] - */ - public function getDetails() - { - return $this->details; - } - - /** - * @param PerceptionDetail[] $details - * @return Perception - */ - public function setDetails($details) - { - $this->details = $details; - return $this; - } - - /** - * Get FileName without extension. - * - * @return string - */ - public function getName() - { - $parts = [ - $this->company->getRuc(), - '40', - $this->getSerie(), - $this->getCorrelativo(), - ]; - - return join('-', $parts); - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Perception/PerceptionDetail.php b/src/Greenter/Model/Perception/PerceptionDetail.php deleted file mode 100644 index 8e00463b..00000000 --- a/src/Greenter/Model/Perception/PerceptionDetail.php +++ /dev/null @@ -1,287 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return PerceptionDetail - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getNumDoc() - { - return $this->numDoc; - } - - /** - * @param string $numDoc - * @return PerceptionDetail - */ - public function setNumDoc($numDoc) - { - $this->numDoc = $numDoc; - return $this; - } - - /** - * @return \DateTime - */ - public function getFechaEmision() - { - return $this->fechaEmision; - } - - /** - * @param \DateTime $fechaEmision - * @return PerceptionDetail - */ - public function setFechaEmision($fechaEmision) - { - $this->fechaEmision = $fechaEmision; - return $this; - } - - /** - * @return float - */ - public function getImpTotal() - { - return $this->impTotal; - } - - /** - * @param float $impTotal - * @return PerceptionDetail - */ - public function setImpTotal($impTotal) - { - $this->impTotal = $impTotal; - return $this; - } - - /** - * @return string - */ - public function getMoneda() - { - return $this->moneda; - } - - /** - * @param string $moneda - * @return PerceptionDetail - */ - public function setMoneda($moneda) - { - $this->moneda = $moneda; - return $this; - } - - /** - * @return Payment[] - */ - public function getCobros() - { - return $this->cobros; - } - - /** - * @param Payment[] $cobros - * @return PerceptionDetail - */ - public function setCobros($cobros) - { - $this->cobros = $cobros; - return $this; - } - - /** - * @return \DateTime - */ - public function getFechaPercepcion() - { - return $this->fechaPercepcion; - } - - /** - * @param \DateTime $fechaPercepcion - * @return PerceptionDetail - */ - public function setFechaPercepcion($fechaPercepcion) - { - $this->fechaPercepcion = $fechaPercepcion; - return $this; - } - - /** - * @return float - */ - public function getImpPercibido() - { - return $this->impPercibido; - } - - /** - * @param float $impPercibido - * @return PerceptionDetail - */ - public function setImpPercibido($impPercibido) - { - $this->impPercibido = $impPercibido; - return $this; - } - - /** - * @return float - */ - public function getImpCobrar() - { - return $this->impCobrar; - } - - /** - * @param float $impCobrar - * @return PerceptionDetail - */ - public function setImpCobrar($impCobrar) - { - $this->impCobrar = $impCobrar; - return $this; - } - - /** - * @return Exchange - */ - public function getTipoCambio() - { - return $this->tipoCambio; - } - - /** - * @param Exchange $tipoCambio - * @return PerceptionDetail - */ - public function setTipoCambio($tipoCambio) - { - $this->tipoCambio = $tipoCambio; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Response/BaseResult.php b/src/Greenter/Model/Response/BaseResult.php deleted file mode 100644 index 63fcef1a..00000000 --- a/src/Greenter/Model/Response/BaseResult.php +++ /dev/null @@ -1,71 +0,0 @@ -success = false; - } - - - /** - * @return bool - */ - public function isSuccess() - { - return $this->success; - } - - /** - * @param bool $success - * @return BaseResult - */ - public function setSuccess($success) - { - $this->success = $success; - return $this; - } - - /** - * @return Error - */ - public function getError() - { - return $this->error; - } - - /** - * @param Error $error - * @return BaseResult - */ - public function setError($error) - { - $this->error = $error; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Response/BillResult.php b/src/Greenter/Model/Response/BillResult.php deleted file mode 100644 index aa88f420..00000000 --- a/src/Greenter/Model/Response/BillResult.php +++ /dev/null @@ -1,62 +0,0 @@ -cdrZip; - } - - /** - * @param string $cdrZip - * @return BillResult - */ - public function setCdrZip($cdrZip) - { - $this->cdrZip = $cdrZip; - return $this; - } - - /** - * @return CdrResponse - */ - public function getCdrResponse() - { - return $this->cdrResponse; - } - - /** - * @param CdrResponse $cdrResponse - * @return BillResult - */ - public function setCdrResponse($cdrResponse) - { - $this->cdrResponse = $cdrResponse; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Response/CdrResponse.php b/src/Greenter/Model/Response/CdrResponse.php deleted file mode 100644 index b6d3040a..00000000 --- a/src/Greenter/Model/Response/CdrResponse.php +++ /dev/null @@ -1,108 +0,0 @@ -id; - } - - /** - * @param string $id - * @return CdrResponse - */ - public function setId($id) - { - $this->id = $id; - return $this; - } - - /** - * @return string - */ - public function getCode() - { - return $this->code; - } - - /** - * @param string $code - * @return CdrResponse - */ - public function setCode($code) - { - $this->code = $code; - return $this; - } - - /** - * @return string - */ - public function getDescription() - { - return $this->description; - } - - /** - * @param string $description - * @return CdrResponse - */ - public function setDescription($description) - { - $this->description = $description; - return $this; - } - - /** - * @return string[] - */ - public function getNotes() - { - return $this->notes; - } - - /** - * @param string[] $notes - * @return CdrResponse - */ - public function setNotes($notes) - { - $this->notes = $notes; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Response/Error.php b/src/Greenter/Model/Response/Error.php deleted file mode 100644 index 42bae511..00000000 --- a/src/Greenter/Model/Response/Error.php +++ /dev/null @@ -1,62 +0,0 @@ -code; - } - - /** - * @param string $code - * @return Error - */ - public function setCode($code) - { - $this->code = $code; - return $this; - } - - /** - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * @param string $message - * @return Error - */ - public function setMessage($message) - { - $this->message = $message; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Response/StatusCdrResult.php b/src/Greenter/Model/Response/StatusCdrResult.php deleted file mode 100644 index 4ad080fb..00000000 --- a/src/Greenter/Model/Response/StatusCdrResult.php +++ /dev/null @@ -1,62 +0,0 @@ -code; - } - - /** - * @param string $code - * @return StatusCdrResult - */ - public function setCode($code) - { - $this->code = $code; - return $this; - } - - /** - * @return string - */ - public function getMessage() - { - return $this->message; - } - - /** - * @param string $message - * @return StatusCdrResult - */ - public function setMessage($message) - { - $this->message = $message; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Response/StatusResult.php b/src/Greenter/Model/Response/StatusResult.php deleted file mode 100644 index 72f1dec1..00000000 --- a/src/Greenter/Model/Response/StatusResult.php +++ /dev/null @@ -1,90 +0,0 @@ -code; - } - - /** - * @param string $code - * @return StatusResult - */ - public function setCode($code) - { - $this->code = $code; - return $this; - } - - /** - * @return string - */ - public function getCdrZip() - { - return $this->cdrZip; - } - - /** - * @param string $cdrZip - * @return StatusResult - */ - public function setCdrZip($cdrZip) - { - $this->cdrZip = $cdrZip; - return $this; - } - - /** - * @return CdrResponse - */ - public function getCdrResponse() - { - return $this->cdrResponse; - } - - /** - * @param CdrResponse $cdrResponse - * @return StatusResult - */ - public function setCdrResponse($cdrResponse) - { - $this->cdrResponse = $cdrResponse; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Response/SummaryResult.php b/src/Greenter/Model/Response/SummaryResult.php deleted file mode 100644 index ab280ba0..00000000 --- a/src/Greenter/Model/Response/SummaryResult.php +++ /dev/null @@ -1,39 +0,0 @@ -ticket; - } - - /** - * @param string $ticket - * @return SummaryResult - */ - public function setTicket($ticket) - { - $this->ticket = $ticket; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Retention/Exchange.php b/src/Greenter/Model/Retention/Exchange.php deleted file mode 100644 index 8945c529..00000000 --- a/src/Greenter/Model/Retention/Exchange.php +++ /dev/null @@ -1,128 +0,0 @@ -monedaRef; - } - - /** - * @param string $monedaRef - * @return Exchange - */ - public function setMonedaRef($monedaRef) - { - $this->monedaRef = $monedaRef; - return $this; - } - - /** - * @return string - */ - public function getMonedaObj() - { - return $this->monedaObj; - } - - /** - * @param string $monedaObj - * @return Exchange - */ - public function setMonedaObj($monedaObj) - { - $this->monedaObj = $monedaObj; - return $this; - } - - /** - * @return float - */ - public function getFactor() - { - return $this->factor; - } - - /** - * @param float $factor - * @return Exchange - */ - public function setFactor($factor) - { - $this->factor = $factor; - return $this; - } - - /** - * @return \DateTime - */ - public function getFecha() - { - return $this->fecha; - } - - /** - * @param \DateTime $fecha - * @return Exchange - */ - public function setFecha($fecha) - { - $this->fecha = $fecha; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Retention/Payment.php b/src/Greenter/Model/Retention/Payment.php deleted file mode 100644 index ed1c03b6..00000000 --- a/src/Greenter/Model/Retention/Payment.php +++ /dev/null @@ -1,101 +0,0 @@ -moneda; - } - - /** - * @param string $moneda - * @return Payment - */ - public function setMoneda($moneda) - { - $this->moneda = $moneda; - return $this; - } - - /** - * @return float - */ - public function getImporte() - { - return $this->importe; - } - - /** - * @param float $importe - * @return Payment - */ - public function setImporte($importe) - { - $this->importe = $importe; - return $this; - } - - /** - * @return \DateTime - */ - public function getFecha() - { - return $this->fecha; - } - - /** - * @param \DateTime $fecha - * @return Payment - */ - public function setFecha($fecha) - { - $this->fecha = $fecha; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Retention/Retention.php b/src/Greenter/Model/Retention/Retention.php deleted file mode 100644 index 98cb9306..00000000 --- a/src/Greenter/Model/Retention/Retention.php +++ /dev/null @@ -1,319 +0,0 @@ -serie; - } - - /** - * @param string $serie - * @return Retention - */ - public function setSerie($serie) - { - $this->serie = $serie; - return $this; - } - - /** - * @return string - */ - public function getCorrelativo() - { - return $this->correlativo; - } - - /** - * @param string $correlativo - * @return Retention - */ - public function setCorrelativo($correlativo) - { - $this->correlativo = $correlativo; - return $this; - } - - /** - * @return \DateTime - */ - public function getFechaEmision() - { - return $this->fechaEmision; - } - - /** - * @param \DateTime $fechaEmision - * @return Retention - */ - public function setFechaEmision($fechaEmision) - { - $this->fechaEmision = $fechaEmision; - return $this; - } - - /** - * @return Client - */ - public function getProveedor() - { - return $this->proveedor; - } - - /** - * @param Client $proveedor - * @return Retention - */ - public function setProveedor($proveedor) - { - $this->proveedor = $proveedor; - return $this; - } - - /** - * @return Company - */ - public function getCompany() - { - return $this->company; - } - - /** - * @param Company $company - * @return Retention - */ - public function setCompany($company) - { - $this->company = $company; - return $this; - } - - /** - * @return string - */ - public function getRegimen() - { - return $this->regimen; - } - - /** - * @param string $regimen - * @return Retention - */ - public function setRegimen($regimen) - { - $this->regimen = $regimen; - return $this; - } - - /** - * @return float - */ - public function getTasa() - { - return $this->tasa; - } - - /** - * @param float $tasa - * @return Retention - */ - public function setTasa($tasa) - { - $this->tasa = $tasa; - return $this; - } - - /** - * @return float - */ - public function getImpRetenido() - { - return $this->impRetenido; - } - - /** - * @param float $impRetenido - * @return Retention - */ - public function setImpRetenido($impRetenido) - { - $this->impRetenido = $impRetenido; - return $this; - } - - /** - * @return float - */ - public function getImpPagado() - { - return $this->impPagado; - } - - /** - * @param float $impPagado - * @return Retention - */ - public function setImpPagado($impPagado) - { - $this->impPagado = $impPagado; - return $this; - } - - /** - * @return string - */ - public function getObservacion() - { - return $this->observacion; - } - - /** - * @param string $observacion - * @return Retention - */ - public function setObservacion($observacion) - { - $this->observacion = $observacion; - return $this; - } - - /** - * @return RetentionDetail[] - */ - public function getDetails() - { - return $this->details; - } - - /** - * @param RetentionDetail[] $details - * @return Retention - */ - public function setDetails($details) - { - $this->details = $details; - return $this; - } - - /** - * Get FileName without extension. - * - * @return string - */ - public function getName() - { - $parts = [ - $this->company->getRuc(), - '20', - $this->getSerie(), - $this->getCorrelativo(), - ]; - - return join('-', $parts); - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Retention/RetentionDetail.php b/src/Greenter/Model/Retention/RetentionDetail.php deleted file mode 100644 index e88797fb..00000000 --- a/src/Greenter/Model/Retention/RetentionDetail.php +++ /dev/null @@ -1,284 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return RetentionDetail - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getNumDoc() - { - return $this->numDoc; - } - - /** - * @param string $numDoc - * @return RetentionDetail - */ - public function setNumDoc($numDoc) - { - $this->numDoc = $numDoc; - return $this; - } - - /** - * @return \DateTime - */ - public function getFechaEmision() - { - return $this->fechaEmision; - } - - /** - * @param \DateTime $fechaEmision - * @return RetentionDetail - */ - public function setFechaEmision($fechaEmision) - { - $this->fechaEmision = $fechaEmision; - return $this; - } - - /** - * @return float - */ - public function getImpTotal() - { - return $this->impTotal; - } - - /** - * @param float $impTotal - * @return RetentionDetail - */ - public function setImpTotal($impTotal) - { - $this->impTotal = $impTotal; - return $this; - } - - /** - * @return string - */ - public function getMoneda() - { - return $this->moneda; - } - - /** - * @param string $moneda - * @return RetentionDetail - */ - public function setMoneda($moneda) - { - $this->moneda = $moneda; - return $this; - } - - /** - * @return Payment[] - */ - public function getPagos() - { - return $this->pagos; - } - - /** - * @param Payment[] $pagos - * @return RetentionDetail - */ - public function setPagos($pagos) - { - $this->pagos = $pagos; - return $this; - } - - /** - * @return \DateTime - */ - public function getFechaRetencion() - { - return $this->fechaRetencion; - } - - /** - * @param \DateTime $fechaRetencion - * @return RetentionDetail - */ - public function setFechaRetencion($fechaRetencion) - { - $this->fechaRetencion = $fechaRetencion; - return $this; - } - - /** - * @return float - */ - public function getImpRetenido() - { - return $this->impRetenido; - } - - /** - * @param float $impRetenido - * @return RetentionDetail - */ - public function setImpRetenido($impRetenido) - { - $this->impRetenido = $impRetenido; - return $this; - } - - /** - * @return float - */ - public function getImpPagar() - { - return $this->impPagar; - } - - /** - * @param float $impPagar - * @return RetentionDetail - */ - public function setImpPagar($impPagar) - { - $this->impPagar = $impPagar; - return $this; - } - - /** - * @return Exchange - */ - public function getTipoCambio() - { - return $this->tipoCambio; - } - - /** - * @param Exchange $tipoCambio - * @return RetentionDetail - */ - public function setTipoCambio($tipoCambio) - { - $this->tipoCambio = $tipoCambio; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/BaseSale.php b/src/Greenter/Model/Sale/BaseSale.php deleted file mode 100644 index 8315eb4c..00000000 --- a/src/Greenter/Model/Sale/BaseSale.php +++ /dev/null @@ -1,478 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return BaseSale - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getSerie() - { - return $this->serie; - } - - /** - * @param string $serie - * @return BaseSale - */ - public function setSerie($serie) - { - $this->serie = $serie; - return $this; - } - - /** - * @return string - */ - public function getCorrelativo() - { - return $this->correlativo; - } - - /** - * @param string $correlativo - * @return BaseSale - */ - public function setCorrelativo($correlativo) - { - $this->correlativo = $correlativo; - return $this; - } - - /** - * @return \DateTime - */ - public function getFechaEmision() - { - return $this->fechaEmision; - } - - /** - * @param \DateTime $fechaEmision - * @return BaseSale - */ - public function setFechaEmision($fechaEmision) - { - $this->fechaEmision = $fechaEmision; - return $this; - } - - /** - * @return Client - */ - public function getClient() - { - return $this->client; - } - - /** - * @param Client $client - * @return BaseSale - */ - public function setClient($client) - { - $this->client = $client; - return $this; - } - - /** - * @return Company - */ - public function getCompany() - { - return $this->company; - } - - /** - * @param Company $company - * @return BaseSale - */ - public function setCompany($company) - { - $this->company = $company; - return $this; - } - - /** - * @return mixed - */ - public function getTipoMoneda() - { - return $this->tipoMoneda; - } - - /** - * @param mixed $tipoMoneda - * @return BaseSale - */ - public function setTipoMoneda($tipoMoneda) - { - $this->tipoMoneda = $tipoMoneda; - return $this; - } - - /** - * @return mixed - */ - public function getSumOtrosCargos() - { - return $this->sumOtrosCargos; - } - - /** - * @param mixed $sumOtrosCargos - * @return BaseSale - */ - public function setSumOtrosCargos($sumOtrosCargos) - { - $this->sumOtrosCargos = $sumOtrosCargos; - return $this; - } - - /** - * @return mixed - */ - public function getMtoOperGravadas() - { - return $this->mtoOperGravadas; - } - - /** - * @param mixed $mtoOperGravadas - * @return BaseSale - */ - public function setMtoOperGravadas($mtoOperGravadas) - { - $this->mtoOperGravadas = $mtoOperGravadas; - return $this; - } - - /** - * @return mixed - */ - public function getMtoOperInafectas() - { - return $this->mtoOperInafectas; - } - - /** - * @param mixed $mtoOperInafectas - * @return BaseSale - */ - public function setMtoOperInafectas($mtoOperInafectas) - { - $this->mtoOperInafectas = $mtoOperInafectas; - return $this; - } - - /** - * @return float - */ - public function getMtoOperExoneradas() - { - return $this->mtoOperExoneradas; - } - - /** - * @param float $mtoOperExoneradas - * @return BaseSale - */ - public function setMtoOperExoneradas($mtoOperExoneradas) - { - $this->mtoOperExoneradas = $mtoOperExoneradas; - return $this; - } - - /** - * @return mixed - */ - public function getMtoIGV() - { - return $this->mtoIGV; - } - - /** - * @param mixed $mtoIGV - * @return BaseSale - */ - public function setMtoIGV($mtoIGV) - { - $this->mtoIGV = $mtoIGV; - return $this; - } - - /** - * @return mixed - */ - public function getMtoISC() - { - return $this->mtoISC; - } - - /** - * @param mixed $mtoISC - * @return BaseSale - */ - public function setMtoISC($mtoISC) - { - $this->mtoISC = $mtoISC; - return $this; - } - - /** - * @return float - */ - public function getMtoOtrosTributos() - { - return $this->mtoOtrosTributos; - } - - /** - * @param float $mtoOtrosTributos - * @return BaseSale - */ - public function setMtoOtrosTributos($mtoOtrosTributos) - { - $this->mtoOtrosTributos = $mtoOtrosTributos; - return $this; - } - - /** - * @return float - */ - public function getMtoImpVenta() - { - return $this->mtoImpVenta; - } - - /** - * @param float $mtoImpVenta - * @return BaseSale - */ - public function setMtoImpVenta($mtoImpVenta) - { - $this->mtoImpVenta = $mtoImpVenta; - return $this; - } - - /** - * @return SaleDetail[] - */ - public function getDetails() - { - return $this->details; - } - - /** - * @param SaleDetail[] $details - * @return BaseSale - */ - public function setDetails($details) - { - $this->details = $details; - return $this; - } - - /** - * @return Legend[] - */ - public function getLegends() - { - return $this->legends; - } - - /** - * @param Legend[] $legends - * @return BaseSale - */ - public function setLegends($legends) - { - $this->legends = $legends; - return $this; - } - - /** - * @return Document[] - */ - public function getRelDocs() - { - return $this->relDocs; - } - - /** - * @param Document[] $relDocs - * @return BaseSale - */ - public function setRelDocs($relDocs) - { - $this->relDocs = $relDocs; - return $this; - } - - /** - * Get FileName without extension. - * - * @return string - */ - public function getName() - { - $parts = [ - $this->company->getRuc(), - $this->getTipoDoc(), - $this->getSerie(), - $this->getCorrelativo(), - ]; - - return join('-', $parts); - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/Detraction.php b/src/Greenter/Model/Sale/Detraction.php deleted file mode 100644 index 4cac39ad..00000000 --- a/src/Greenter/Model/Sale/Detraction.php +++ /dev/null @@ -1,100 +0,0 @@ -percent; - } - - /** - * @param float $percent - * @return Detraction - */ - public function setPercent($percent) - { - $this->percent = $percent; - return $this; - } - - /** - * @return float - */ - public function getMount() - { - return $this->mount; - } - - /** - * @param float $mount - * @return Detraction - */ - public function setMount($mount) - { - $this->mount = $mount; - return $this; - } - - /** - * @return float - */ - public function getValueRef() - { - return $this->valueRef; - } - - /** - * @param float $valueRef - * @return Detraction - */ - public function setValueRef($valueRef) - { - $this->valueRef = $valueRef; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/Document.php b/src/Greenter/Model/Sale/Document.php deleted file mode 100644 index 9643e08d..00000000 --- a/src/Greenter/Model/Sale/Document.php +++ /dev/null @@ -1,69 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return Document - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getNroDoc() - { - return $this->nroDoc; - } - - /** - * @param string $nroDoc - * @return Document - */ - public function setNroDoc($nroDoc) - { - $this->nroDoc = $nroDoc; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/EmbededDespatch.php b/src/Greenter/Model/Sale/EmbededDespatch.php deleted file mode 100644 index 6fb682ef..00000000 --- a/src/Greenter/Model/Sale/EmbededDespatch.php +++ /dev/null @@ -1,265 +0,0 @@ -llegada; - } - - /** - * @param Direction $llegada - * @return EmbededDespatch - */ - public function setLlegada($llegada) - { - $this->llegada = $llegada; - return $this; - } - - /** - * @return Direction - */ - public function getPartida() - { - return $this->partida; - } - - /** - * @param Direction $partida - * @return EmbededDespatch - */ - public function setPartida($partida) - { - $this->partida = $partida; - return $this; - } - - /** - * @return Client - */ - public function getTransportista() - { - return $this->transportista; - } - - /** - * @param Client $transportista - * @return EmbededDespatch - */ - public function setTransportista($transportista) - { - $this->transportista = $transportista; - return $this; - } - - /** - * @return string - */ - public function getNroLicencia() - { - return $this->nroLicencia; - } - - /** - * @param string $nroLicencia - * @return EmbededDespatch - */ - public function setNroLicencia($nroLicencia) - { - $this->nroLicencia = $nroLicencia; - return $this; - } - - /** - * @return string - */ - public function getTranspPlaca() - { - return $this->transpPlaca; - } - - /** - * @param string $transpPlaca - * @return EmbededDespatch - */ - public function setTranspPlaca($transpPlaca) - { - $this->transpPlaca = $transpPlaca; - return $this; - } - - /** - * @return string - */ - public function getTranspCodeAuth() - { - return $this->transpCodeAuth; - } - - /** - * @param string $transpCodeAuth - * @return EmbededDespatch - */ - public function setTranspCodeAuth($transpCodeAuth) - { - $this->transpCodeAuth = $transpCodeAuth; - return $this; - } - - /** - * @return string - */ - public function getTranspMarca() - { - return $this->transpMarca; - } - - /** - * @param string $transpMarca - * @return EmbededDespatch - */ - public function setTranspMarca($transpMarca) - { - $this->transpMarca = $transpMarca; - return $this; - } - - /** - * @return string - */ - public function getModTraslado() - { - return $this->modTraslado; - } - - /** - * @param string $modTraslado - * @return EmbededDespatch - */ - public function setModTraslado($modTraslado) - { - $this->modTraslado = $modTraslado; - return $this; - } - - /** - * @return float - */ - public function getPesoBruto() - { - return $this->pesoBruto; - } - - /** - * @param float $pesoBruto - * @return EmbededDespatch - */ - public function setPesoBruto($pesoBruto) - { - $this->pesoBruto = $pesoBruto; - return $this; - } - - /** - * @return string - */ - public function getUndPesoBruto() - { - return $this->undPesoBruto; - } - - /** - * @param string $undPesoBruto - * @return EmbededDespatch - */ - public function setUndPesoBruto($undPesoBruto) - { - $this->undPesoBruto = $undPesoBruto; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/Invoice.php b/src/Greenter/Model/Sale/Invoice.php deleted file mode 100644 index fc673522..00000000 --- a/src/Greenter/Model/Sale/Invoice.php +++ /dev/null @@ -1,291 +0,0 @@ -tipoOperacion; - } - - /** - * @param string $tipoOperacion - * @return Invoice - */ - public function setTipoOperacion($tipoOperacion) - { - $this->tipoOperacion = $tipoOperacion; - return $this; - } - - /** - * @return float - */ - public function getSumDsctoGlobal() - { - return $this->sumDsctoGlobal; - } - - /** - * @param float $sumDsctoGlobal - * @return Invoice - */ - public function setSumDsctoGlobal($sumDsctoGlobal) - { - $this->sumDsctoGlobal = $sumDsctoGlobal; - return $this; - } - - /** - * @return float - */ - public function getMtoDescuentos() - { - return $this->mtoDescuentos; - } - - /** - * @param float $mtoDescuentos - * @return Invoice - */ - public function setMtoDescuentos($mtoDescuentos) - { - $this->mtoDescuentos = $mtoDescuentos; - return $this; - } - - /** - * @return float - */ - public function getMtoOperGratuitas() - { - return $this->mtoOperGratuitas; - } - - /** - * @param float $mtoOperGratuitas - * @return Invoice - */ - public function setMtoOperGratuitas($mtoOperGratuitas) - { - $this->mtoOperGratuitas = $mtoOperGratuitas; - return $this; - } - - /** - * @return mixed - */ - public function getTotalAnticipos() - { - return $this->totalAnticipos; - } - - /** - * @param mixed $totalAnticipos - * @return Invoice - */ - public function setTotalAnticipos($totalAnticipos) - { - $this->totalAnticipos = $totalAnticipos; - return $this; - } - - /** - * @return SalePerception - */ - public function getPerception() - { - return $this->perception; - } - - /** - * @param SalePerception $perception - * @return Invoice - */ - public function setPerception($perception) - { - $this->perception = $perception; - return $this; - } - - /** - * @return string - */ - public function getCompra() - { - return $this->compra; - } - - /** - * @param string $compra - * @return Invoice - */ - public function setCompra($compra) - { - $this->compra = $compra; - return $this; - } - - /** - * @return Document[] - */ - public function getGuias() - { - return $this->guias; - } - - /** - * @param Document[] $guias - * @return Invoice - */ - public function setGuias($guias) - { - $this->guias = $guias; - return $this; - } - - /** - * @return Prepayment[] - */ - public function getAnticipos() - { - return $this->anticipos; - } - - /** - * @param Prepayment[] $anticipos - * @return Invoice - */ - public function setAnticipos($anticipos) - { - $this->anticipos = $anticipos; - return $this; - } - - /** - * @return Detraction - */ - public function getDetraccion() - { - return $this->detraccion; - } - - /** - * @param Detraction $detraccion - * @return Invoice - */ - public function setDetraccion($detraccion) - { - $this->detraccion = $detraccion; - return $this; - } - - /** - * @return EmbededDespatch - */ - public function getGuiaEmbebida() - { - return $this->guiaEmbebida; - } - - /** - * @param EmbededDespatch $guiaEmbebida - * @return Invoice - */ - public function setGuiaEmbebida($guiaEmbebida) - { - $this->guiaEmbebida = $guiaEmbebida; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/Legend.php b/src/Greenter/Model/Sale/Legend.php deleted file mode 100644 index 00634344..00000000 --- a/src/Greenter/Model/Sale/Legend.php +++ /dev/null @@ -1,73 +0,0 @@ -code; - } - - /** - * @param string $code - * @return Legend - */ - public function setCode($code) - { - $this->code = $code; - return $this; - } - - /** - * @return string - */ - public function getValue() - { - return $this->value; - } - - /** - * @param string $value - * @return Legend - */ - public function setValue($value) - { - $this->value = $value; - return $this; - } - -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/Note.php b/src/Greenter/Model/Sale/Note.php deleted file mode 100644 index bc8fe5f5..00000000 --- a/src/Greenter/Model/Sale/Note.php +++ /dev/null @@ -1,169 +0,0 @@ -codMotivo; - } - - /** - * @param string $codMotivo - * @return Note - */ - public function setCodMotivo($codMotivo) - { - $this->codMotivo = $codMotivo; - return $this; - } - - /** - * @return string - */ - public function getDesMotivo() - { - return $this->desMotivo; - } - - /** - * @param string $desMotivo - * @return Note - */ - public function setDesMotivo($desMotivo) - { - $this->desMotivo = $desMotivo; - return $this; - } - - /** - * @return string - */ - public function getTipDocAfectado() - { - return $this->tipDocAfectado; - } - - /** - * @param string $tipDocAfectado - * @return Note - */ - public function setTipDocAfectado($tipDocAfectado) - { - $this->tipDocAfectado = $tipDocAfectado; - return $this; - } - - /** - * @return string - */ - public function getNumDocfectado() - { - return $this->numDocfectado; - } - - /** - * @param string $numDocfectado - * @return Note - */ - public function setNumDocfectado($numDocfectado) - { - $this->numDocfectado = $numDocfectado; - return $this; - } - - /** - * @return float - */ - public function getMtoOperGratuitas() - { - return $this->mtoOperGratuitas; - } - - /** - * @param float $mtoOperGratuitas - * @return Note - */ - public function setMtoOperGratuitas($mtoOperGratuitas) - { - $this->mtoOperGratuitas = $mtoOperGratuitas; - return $this; - } - - /** - * @return SalePerception - */ - public function getPerception() - { - return $this->perception; - } - - /** - * @param SalePerception $perception - * @return Note - */ - public function setPerception($perception) - { - $this->perception = $perception; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/Prepayment.php b/src/Greenter/Model/Sale/Prepayment.php deleted file mode 100644 index ba8ad252..00000000 --- a/src/Greenter/Model/Sale/Prepayment.php +++ /dev/null @@ -1,96 +0,0 @@ -tipoDocRel; - } - - /** - * @param string $tipoDocRel - * @return Prepayment - */ - public function setTipoDocRel($tipoDocRel) - { - $this->tipoDocRel = $tipoDocRel; - return $this; - } - - /** - * @return string - */ - public function getNroDocRel() - { - return $this->nroDocRel; - } - - /** - * @param string $nroDocRel - * @return Prepayment - */ - public function setNroDocRel($nroDocRel) - { - $this->nroDocRel = $nroDocRel; - return $this; - } - - /** - * @return float - */ - public function getTotal() - { - return $this->total; - } - - /** - * @param float $total - * @return Prepayment - */ - public function setTotal($total) - { - $this->total = $total; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/SaleDetail.php b/src/Greenter/Model/Sale/SaleDetail.php deleted file mode 100644 index 60e24816..00000000 --- a/src/Greenter/Model/Sale/SaleDetail.php +++ /dev/null @@ -1,347 +0,0 @@ -codUnidadMedida; - } - - /** - * @param string $codUnidadMedida - * @return SaleDetail - */ - public function setCodUnidadMedida($codUnidadMedida) - { - $this->codUnidadMedida = $codUnidadMedida; - return $this; - } - - /** - * @return float - */ - public function getCtdUnidadItem() - { - return $this->ctdUnidadItem; - } - - /** - * @param float $ctdUnidadItem - * @return SaleDetail - */ - public function setCtdUnidadItem($ctdUnidadItem) - { - $this->ctdUnidadItem = $ctdUnidadItem; - return $this; - } - - /** - * @return string - */ - public function getCodProducto() - { - return $this->codProducto; - } - - /** - * @param string $codProducto - * @return SaleDetail - */ - public function setCodProducto($codProducto) - { - $this->codProducto = $codProducto; - return $this; - } - - /** - * @return string - */ - public function getDesItem() - { - return $this->desItem; - } - - /** - * @param string $desItem - * @return SaleDetail - */ - public function setDesItem($desItem) - { - $this->desItem = $desItem; - return $this; - } - - /** - * @return float - */ - public function getMtoValorUnitario() - { - return $this->mtoValorUnitario; - } - - /** - * @param float $mtoValorUnitario - * @return SaleDetail - */ - public function setMtoValorUnitario($mtoValorUnitario) - { - $this->mtoValorUnitario = $mtoValorUnitario; - return $this; - } - - /** - * @return float - */ - public function getMtoDsctoItem() - { - return $this->mtoDsctoItem; - } - - /** - * @param float $mtoDsctoItem - * @return SaleDetail - */ - public function setMtoDsctoItem($mtoDsctoItem) - { - $this->mtoDsctoItem = $mtoDsctoItem; - return $this; - } - - /** - * @return float - */ - public function getMtoIgvItem() - { - return $this->mtoIgvItem; - } - - /** - * @param float $mtoIgvItem - * @return SaleDetail - */ - public function setMtoIgvItem($mtoIgvItem) - { - $this->mtoIgvItem = $mtoIgvItem; - return $this; - } - - /** - * @return string - */ - public function getTipAfeIgv() - { - return $this->tipAfeIgv; - } - - /** - * @param string $tipAfeIgv - * @return SaleDetail - */ - public function setTipAfeIgv($tipAfeIgv) - { - $this->tipAfeIgv = $tipAfeIgv; - return $this; - } - - /** - * @return float - */ - public function getMtoIscItem() - { - return $this->mtoIscItem; - } - - /** - * @param float $mtoIscItem - * @return SaleDetail - */ - public function setMtoIscItem($mtoIscItem) - { - $this->mtoIscItem = $mtoIscItem; - return $this; - } - - /** - * @return string - */ - public function getTipSisIsc() - { - return $this->tipSisIsc; - } - - /** - * @param string $tipSisIsc - * @return SaleDetail - */ - public function setTipSisIsc($tipSisIsc) - { - $this->tipSisIsc = $tipSisIsc; - return $this; - } - - /** - * @return float - */ - public function getMtoPrecioUnitario() - { - return $this->mtoPrecioUnitario; - } - - /** - * @param float $mtoPrecioUnitario - * @return SaleDetail - */ - public function setMtoPrecioUnitario($mtoPrecioUnitario) - { - $this->mtoPrecioUnitario = $mtoPrecioUnitario; - return $this; - } - - /** - * @return float - */ - public function getMtoValorVenta() - { - return $this->mtoValorVenta; - } - - /** - * @param float $mtoValorVenta - * @return SaleDetail - */ - public function setMtoValorVenta($mtoValorVenta) - { - $this->mtoValorVenta = $mtoValorVenta; - return $this; - } - - /** - * @return float - */ - public function getMtoValorGratuito() - { - return $this->mtoValorGratuito; - } - - /** - * @param float $mtoValorGratuito - * @return SaleDetail - */ - public function setMtoValorGratuito($mtoValorGratuito) - { - $this->mtoValorGratuito = $mtoValorGratuito; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Sale/SalePerception.php b/src/Greenter/Model/Sale/SalePerception.php deleted file mode 100644 index 69f19cc5..00000000 --- a/src/Greenter/Model/Sale/SalePerception.php +++ /dev/null @@ -1,122 +0,0 @@ -codReg; - } - - /** - * @param string $codReg - * @return SalePerception - */ - public function setCodReg($codReg) - { - $this->codReg = $codReg; - return $this; - } - - /** - * @return float - */ - public function getMtoBase() - { - return $this->mtoBase; - } - - /** - * @param float $mtoBase - * @return SalePerception - */ - public function setMtoBase($mtoBase) - { - $this->mtoBase = $mtoBase; - return $this; - } - - /** - * @return float - */ - public function getMto() - { - return $this->mto; - } - - /** - * @param float $mto - * @return SalePerception - */ - public function setMto($mto) - { - $this->mto = $mto; - return $this; - } - - /** - * @return float - */ - public function getMtoTotal() - { - return $this->mtoTotal; - } - - /** - * @param float $mtoTotal - * @return SalePerception - */ - public function setMtoTotal($mtoTotal) - { - $this->mtoTotal = $mtoTotal; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Summary/Summary.php b/src/Greenter/Model/Summary/Summary.php deleted file mode 100644 index fe9c13dd..00000000 --- a/src/Greenter/Model/Summary/Summary.php +++ /dev/null @@ -1,166 +0,0 @@ -correlativo; - } - - /** - * @param string $correlativo - * @return Summary - */ - public function setCorrelativo($correlativo) - { - $this->correlativo = $correlativo; - return $this; - } - - /** - * @return \DateTime - */ - public function getFecGeneracion() - { - return $this->fecGeneracion; - } - - /** - * @param \DateTime $fecGeneracion - * @return Summary - */ - public function setFecGeneracion($fecGeneracion) - { - $this->fecGeneracion = $fecGeneracion; - return $this; - } - - /** - * @return \DateTime - */ - public function getFecResumen() - { - return $this->fecResumen; - } - - /** - * @param \DateTime $fecResumen - * @return Summary - */ - public function setFecResumen($fecResumen) - { - $this->fecResumen = $fecResumen; - return $this; - } - - /** - * @return Company - */ - public function getCompany() - { - return $this->company; - } - - /** - * @param Company $company - * @return Summary - */ - public function setCompany($company) - { - $this->company = $company; - return $this; - } - - /** - * @return SummaryDetail[] - */ - public function getDetails() - { - return $this->details; - } - - /** - * @param SummaryDetail[] $details - * @return Summary - */ - public function setDetails($details) - { - $this->details = $details; - return $this; - } - - /** - * Get FileName without extension. - * - * @return string - */ - public function getName() - { - $parts = [ - $this->company->getRuc(), - 'RC', - $this->getFecResumen()->format('Ymd'), - $this->getCorrelativo(), - ]; - - return join('-', $parts); - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Summary/SummaryDetail.php b/src/Greenter/Model/Summary/SummaryDetail.php deleted file mode 100644 index 7737ad54..00000000 --- a/src/Greenter/Model/Summary/SummaryDetail.php +++ /dev/null @@ -1,310 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return SummaryDetail - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getSerie() - { - return $this->serie; - } - - /** - * @param string $serie - * @return SummaryDetail - */ - public function setSerie($serie) - { - $this->serie = $serie; - return $this; - } - - /** - * @return string - */ - public function getDocInicio() - { - return $this->docInicio; - } - - /** - * @param string $docInicio - * @return SummaryDetail - */ - public function setDocInicio($docInicio) - { - $this->docInicio = $docInicio; - return $this; - } - - /** - * @return string - */ - public function getDocFin() - { - return $this->docFin; - } - - /** - * @param string $docFin - * @return SummaryDetail - */ - public function setDocFin($docFin) - { - $this->docFin = $docFin; - return $this; - } - - /** - * @return float - */ - public function getTotal() - { - return $this->total; - } - - /** - * @param float $total - * @return SummaryDetail - */ - public function setTotal($total) - { - $this->total = $total; - return $this; - } - - /** - * @return float - */ - public function getMtoOperGravadas() - { - return $this->mtoOperGravadas; - } - - /** - * @param float $mtoOperGravadas - * @return SummaryDetail - */ - public function setMtoOperGravadas($mtoOperGravadas) - { - $this->mtoOperGravadas = $mtoOperGravadas; - return $this; - } - - /** - * @return float - */ - public function getMtoOperInafectas() - { - return $this->mtoOperInafectas; - } - - /** - * @param float $mtoOperInafectas - * @return SummaryDetail - */ - public function setMtoOperInafectas($mtoOperInafectas) - { - $this->mtoOperInafectas = $mtoOperInafectas; - return $this; - } - - /** - * @return mixed - */ - public function getMtoOperExoneradas() - { - return $this->mtoOperExoneradas; - } - - /** - * @param mixed $mtoOperExoneradas - * @return SummaryDetail - */ - public function setMtoOperExoneradas($mtoOperExoneradas) - { - $this->mtoOperExoneradas = $mtoOperExoneradas; - return $this; - } - - /** - * @return float - */ - public function getMtoDescuentos() - { - return $this->mtoDescuentos; - } - - /** - * @param float $mtoDescuentos - * @return SummaryDetail - */ - public function setMtoDescuentos($mtoDescuentos) - { - $this->mtoDescuentos = $mtoDescuentos; - return $this; - } - - /** - * @return float - */ - public function getMtoIGV() - { - return $this->mtoIGV; - } - - /** - * @param float $mtoIGV - * @return SummaryDetail - */ - public function setMtoIGV($mtoIGV) - { - $this->mtoIGV = $mtoIGV; - return $this; - } - - /** - * @return mixed - */ - public function getMtoISC() - { - return $this->mtoISC; - } - - /** - * @param mixed $mtoISC - * @return SummaryDetail - */ - public function setMtoISC($mtoISC) - { - $this->mtoISC = $mtoISC; - return $this; - } - - /** - * @return float - */ - public function getMtoOtrosTributos() - { - return $this->mtoOtrosTributos; - } - - /** - * @param float $mtoOtrosTributos - * @return SummaryDetail - */ - public function setMtoOtrosTributos($mtoOtrosTributos) - { - $this->mtoOtrosTributos = $mtoOtrosTributos; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Summary/SummaryDetailV2.php b/src/Greenter/Model/Summary/SummaryDetailV2.php deleted file mode 100644 index c26e5cf4..00000000 --- a/src/Greenter/Model/Summary/SummaryDetailV2.php +++ /dev/null @@ -1,365 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return SummaryDetailV2 - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getSerieNro() - { - return $this->serieNro; - } - - /** - * @param string $serieNro - * @return SummaryDetailV2 - */ - public function setSerieNro($serieNro) - { - $this->serieNro = $serieNro; - return $this; - } - - /** - * @return string - */ - public function getClienteTipo() - { - return $this->clienteTipo; - } - - /** - * @param string $clienteTipo - * @return SummaryDetailV2 - */ - public function setClienteTipo($clienteTipo) - { - $this->clienteTipo = $clienteTipo; - return $this; - } - - /** - * @return string - */ - public function getClienteNro() - { - return $this->clienteNro; - } - - /** - * @param string $clienteNro - * @return SummaryDetailV2 - */ - public function setClienteNro($clienteNro) - { - $this->clienteNro = $clienteNro; - return $this; - } - - /** - * @return Document - */ - public function getDocReferencia() - { - return $this->docReferencia; - } - - /** - * @param Document $docReferencia - * @return SummaryDetailV2 - */ - public function setDocReferencia($docReferencia) - { - $this->docReferencia = $docReferencia; - return $this; - } - - /** - * @return string - */ - public function getEstado() - { - return $this->estado; - } - - /** - * @param string $estado - * @return SummaryDetailV2 - */ - public function setEstado($estado) - { - $this->estado = $estado; - return $this; - } - - /** - * @return float - */ - public function getTotal() - { - return $this->total; - } - - /** - * @param float $total - * @return SummaryDetailV2 - */ - public function setTotal($total) - { - $this->total = $total; - return $this; - } - - /** - * @return float - */ - public function getMtoOperGravadas() - { - return $this->mtoOperGravadas; - } - - /** - * @param float $mtoOperGravadas - * @return SummaryDetailV2 - */ - public function setMtoOperGravadas($mtoOperGravadas) - { - $this->mtoOperGravadas = $mtoOperGravadas; - return $this; - } - - /** - * @return float - */ - public function getMtoOperInafectas() - { - return $this->mtoOperInafectas; - } - - /** - * @param float $mtoOperInafectas - * @return SummaryDetailV2 - */ - public function setMtoOperInafectas($mtoOperInafectas) - { - $this->mtoOperInafectas = $mtoOperInafectas; - return $this; - } - - /** - * @return float - */ - public function getMtoOperExoneradas() - { - return $this->mtoOperExoneradas; - } - - /** - * @param float $mtoOperExoneradas - * @return SummaryDetailV2 - */ - public function setMtoOperExoneradas($mtoOperExoneradas) - { - $this->mtoOperExoneradas = $mtoOperExoneradas; - return $this; - } - - /** - * @return float - */ - public function getMtoDescuentos() - { - return $this->mtoDescuentos; - } - - /** - * @param float $mtoDescuentos - * @return SummaryDetailV2 - */ - public function setMtoDescuentos($mtoDescuentos) - { - $this->mtoDescuentos = $mtoDescuentos; - return $this; - } - - /** - * @return float - */ - public function getMtoIGV() - { - return $this->mtoIGV; - } - - /** - * @param float $mtoIGV - * @return SummaryDetailV2 - */ - public function setMtoIGV($mtoIGV) - { - $this->mtoIGV = $mtoIGV; - return $this; - } - - /** - * @return float - */ - public function getMtoISC() - { - return $this->mtoISC; - } - - /** - * @param float $mtoISC - * @return SummaryDetailV2 - */ - public function setMtoISC($mtoISC) - { - $this->mtoISC = $mtoISC; - return $this; - } - - /** - * @return float - */ - public function getMtoOtrosTributos() - { - return $this->mtoOtrosTributos; - } - - /** - * @param float $mtoOtrosTributos - * @return SummaryDetailV2 - */ - public function setMtoOtrosTributos($mtoOtrosTributos) - { - $this->mtoOtrosTributos = $mtoOtrosTributos; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Summary/SummaryV2.php b/src/Greenter/Model/Summary/SummaryV2.php deleted file mode 100644 index 875c355e..00000000 --- a/src/Greenter/Model/Summary/SummaryV2.php +++ /dev/null @@ -1,40 +0,0 @@ -details; - } - - /** - * @param SummaryDetailV2[] $details - * @return SummaryV2 - */ - public function setDetails($details) - { - $this->details = $details; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Voided/Reversion.php b/src/Greenter/Model/Voided/Reversion.php deleted file mode 100644 index 5d2d9f35..00000000 --- a/src/Greenter/Model/Voided/Reversion.php +++ /dev/null @@ -1,32 +0,0 @@ -getFecComunicacion()->format('Ymd'), - $this->getCorrelativo(), - ]; - - return join('-', $parts); - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Voided/Voided.php b/src/Greenter/Model/Voided/Voided.php deleted file mode 100644 index d4ca1a88..00000000 --- a/src/Greenter/Model/Voided/Voided.php +++ /dev/null @@ -1,181 +0,0 @@ -fecGeneracion = new \DateTime(); - } - - /** - * @return string - */ - public function getCorrelativo() - { - return $this->correlativo; - } - - /** - * @param string $correlativo - * @return Voided - */ - public function setCorrelativo($correlativo) - { - $this->correlativo = $correlativo; - return $this; - } - - /** - * @return \DateTime - */ - public function getFecGeneracion() - { - return $this->fecGeneracion; - } - - /** - * @param \DateTime $fecGeneracion - * @return Voided - */ - public function setFecGeneracion($fecGeneracion) - { - $this->fecGeneracion = $fecGeneracion; - return $this; - } - - /** - * @return \DateTime - */ - public function getFecComunicacion() - { - return $this->fecComunicacion; - } - - /** - * @param \DateTime $fecComunicacion - * @return Voided - */ - public function setFecComunicacion($fecComunicacion) - { - $this->fecComunicacion = $fecComunicacion; - return $this; - } - - /** - * @return Company - */ - public function getCompany() - { - return $this->company; - } - - /** - * @param Company $company - * @return Voided - */ - public function setCompany($company) - { - $this->company = $company; - return $this; - } - - /** - * @return VoidedDetail[] - */ - public function getDetails() - { - return $this->details; - } - - /** - * @param VoidedDetail[] $details - * @return Voided - */ - public function setDetails($details) - { - $this->details = $details; - return $this; - } - - /** - * Get FileName without extension. - * - * @return string - */ - public function getName() - { - return $this->company->getRuc() . '-' . $this->getXmlId(); - } - - /** - * Get Id XML. - * - * @return string - */ - public function getXmlId() - { - $parts = [ - 'RA', - $this->getFecComunicacion()->format('Ymd'), - $this->getCorrelativo(), - ]; - - return join('-', $parts); - } -} \ No newline at end of file diff --git a/src/Greenter/Model/Voided/VoidedDetail.php b/src/Greenter/Model/Voided/VoidedDetail.php deleted file mode 100644 index ca609597..00000000 --- a/src/Greenter/Model/Voided/VoidedDetail.php +++ /dev/null @@ -1,121 +0,0 @@ -tipoDoc; - } - - /** - * @param string $tipoDoc - * @return VoidedDetail - */ - public function setTipoDoc($tipoDoc) - { - $this->tipoDoc = $tipoDoc; - return $this; - } - - /** - * @return string - */ - public function getSerie() - { - return $this->serie; - } - - /** - * @param string $serie - * @return VoidedDetail - */ - public function setSerie($serie) - { - $this->serie = $serie; - return $this; - } - - /** - * @return string - */ - public function getCorrelativo() - { - return $this->correlativo; - } - - /** - * @param string $correlativo - * @return VoidedDetail - */ - public function setCorrelativo($correlativo) - { - $this->correlativo = $correlativo; - return $this; - } - - /** - * @return string - */ - public function getDesMotivoBaja() - { - return $this->desMotivoBaja; - } - - /** - * @param string $desMotivoBaja - * @return VoidedDetail - */ - public function setDesMotivoBaja($desMotivoBaja) - { - $this->desMotivoBaja = $desMotivoBaja; - return $this; - } -} \ No newline at end of file diff --git a/src/Greenter/Ws/Services/SenderInterface.php b/src/Greenter/Ws/Services/SenderInterface.php deleted file mode 100644 index 76888165..00000000 --- a/src/Greenter/Ws/Services/SenderInterface.php +++ /dev/null @@ -1,25 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 1, 'max' => 1]), - ]); - $metadata->addPropertyConstraints('numDoc', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 15]), - ]); - $metadata->addPropertyConstraints('rznSocial', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 100]), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/DespatchDetailValidator.php b/src/Greenter/Xml/Validator/DespatchDetailValidator.php deleted file mode 100644 index 554e1212..00000000 --- a/src/Greenter/Xml/Validator/DespatchDetailValidator.php +++ /dev/null @@ -1,38 +0,0 @@ -addPropertyConstraints('codigo', [ - new Assert\Length(['max' => 16]), - ]); - $metadata->addPropertyConstraints('descripcion', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 250]), - ]); - $metadata->addPropertyConstraints('unidad', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 4]), - ]); - $metadata->addPropertyConstraints('cantidad', [ - new Assert\NotBlank(), - new Assert\Type(['type' => 'int']) - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/DespatchValidator.php b/src/Greenter/Xml/Validator/DespatchValidator.php deleted file mode 100644 index 487eeb0d..00000000 --- a/src/Greenter/Xml/Validator/DespatchValidator.php +++ /dev/null @@ -1,56 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 2]), - ]); - $metadata->addPropertyConstraints('serie', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 4]), - ]); - $metadata->addPropertyConstraints('correlativo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraint('observacion', new Assert\Length(['max' => 250])); - $metadata->addPropertyConstraint('fechaEmision', new Assert\Date()); - $metadata->addPropertyConstraints('destinatario', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraints('company', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraint('tercero', new Assert\Valid()); - $metadata->addPropertyConstraints('envio', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraint('docBaja', new Assert\Valid()); - $metadata->addPropertyConstraint('relDoc', new Assert\Valid()); - $metadata->addPropertyConstraints('details', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/DetractionValidator.php b/src/Greenter/Xml/Validator/DetractionValidator.php deleted file mode 100644 index 8a5abd16..00000000 --- a/src/Greenter/Xml/Validator/DetractionValidator.php +++ /dev/null @@ -1,28 +0,0 @@ -addPropertyConstraints('percent', [ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraint('mount', new Assert\NotBlank()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/DirectionValidator.php b/src/Greenter/Xml/Validator/DirectionValidator.php deleted file mode 100644 index 92361b01..00000000 --- a/src/Greenter/Xml/Validator/DirectionValidator.php +++ /dev/null @@ -1,31 +0,0 @@ -addPropertyConstraints('ubigueo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraints('direccion', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 100]), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/EmbededDespatchValidator.php b/src/Greenter/Xml/Validator/EmbededDespatchValidator.php deleted file mode 100644 index e6963f84..00000000 --- a/src/Greenter/Xml/Validator/EmbededDespatchValidator.php +++ /dev/null @@ -1,33 +0,0 @@ -addPropertyConstraint('llegada', new Assert\Valid()); - $metadata->addPropertyConstraint('partida', new Assert\Valid()); - $metadata->addPropertyConstraint('transportista', new Assert\Valid()); - $metadata->addPropertyConstraint('nroLicencia', new Assert\Length(['max' => 30])); - $metadata->addPropertyConstraint('transpPlaca', new Assert\Length(['max' => 10])); - $metadata->addPropertyConstraint('transpCodeAuth', new Assert\Length(['max' => 50])); - $metadata->addPropertyConstraint('transpMarca', new Assert\Length(['max' => 50])); - $metadata->addPropertyConstraint('modTraslado', new Assert\Length(['min' => 2, 'max' => 2])); - $metadata->addPropertyConstraint('pesoBruto', new Assert\Type('numeric')); - $metadata->addPropertyConstraint('undPesoBruto', new Assert\Length(['max' => 4])); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/ExchangeValidator.php b/src/Greenter/Xml/Validator/ExchangeValidator.php deleted file mode 100644 index 16113417..00000000 --- a/src/Greenter/Xml/Validator/ExchangeValidator.php +++ /dev/null @@ -1,36 +0,0 @@ -addPropertyConstraints('monedaRef', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 3, 'max' => 3]), - ]); - $metadata->addPropertyConstraints('monedaObj', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 3, 'max' => 3]), - ]); - $metadata->addPropertyConstraint('factor', new Assert\NotBlank()); - $metadata->addPropertyConstraints('fecha', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/InvoiceValidator.php b/src/Greenter/Xml/Validator/InvoiceValidator.php deleted file mode 100644 index 6cc050ab..00000000 --- a/src/Greenter/Xml/Validator/InvoiceValidator.php +++ /dev/null @@ -1,78 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraints('serie', [ - new Assert\NotBlank(), - new Assert\Length([ 'max' => 4]), - ]); - $metadata->addPropertyConstraints('correlativo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraints('fechaEmision', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraints('tipoMoneda', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 3]), - ]); - $metadata->addPropertyConstraints('mtoOperGravadas',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraints('mtoOperInafectas',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraints('mtoOperExoneradas',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraints('mtoImpVenta',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraints('client', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraints('company', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraint('details', new Assert\Valid()); - $metadata->addPropertyConstraint('legends', new Assert\Valid()); - $metadata->addPropertyConstraint('guias', new Assert\Valid()); - $metadata->addPropertyConstraint('anticipos', new Assert\Valid()); - $metadata->addPropertyConstraint('detraccion', new Assert\Valid()); - $metadata->addPropertyConstraint('relDocs', new Assert\Valid()); - $metadata->addPropertyConstraint('perception', new Assert\Valid()); - $metadata->addPropertyConstraint('guiaEmbebida', new Assert\Valid()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/LegendValidator.php b/src/Greenter/Xml/Validator/LegendValidator.php deleted file mode 100644 index f0b7804c..00000000 --- a/src/Greenter/Xml/Validator/LegendValidator.php +++ /dev/null @@ -1,28 +0,0 @@ -addPropertyConstraint('code', new Assert\Length([ - 'min'=> 4, - 'max' => 4, - ])); - $metadata->addPropertyConstraint('value', new Assert\Length(['max' => 100])); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/NoteValidator.php b/src/Greenter/Xml/Validator/NoteValidator.php deleted file mode 100644 index 9ab580ba..00000000 --- a/src/Greenter/Xml/Validator/NoteValidator.php +++ /dev/null @@ -1,96 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraints('serie', [ - new Assert\NotBlank(), - new Assert\Length([ 'max' => 4]), - ]); - $metadata->addPropertyConstraints('correlativo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraints('fechaEmision', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraints('tipoMoneda', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 3]), - ]); - $metadata->addPropertyConstraints('mtoOperGravadas',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraints('mtoOperInafectas',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraints('mtoOperExoneradas',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraints('mtoImpVenta',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - $metadata->addPropertyConstraints('client', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraints('company', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraint('details', new Assert\Valid()); - $metadata->addPropertyConstraint('legends', new Assert\Valid()); - $metadata->addPropertyConstraint('relDocs', new Assert\Valid()); - $metadata->addPropertyConstraint('perception', new Assert\Valid()); - $metadata->addPropertyConstraints('codMotivo', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraints('desMotivo', [ - new Assert\NotBlank(), - new Assert\Length([ 'max' => 250]), - ]); - $metadata->addPropertyConstraints('tipDocAfectado', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraints('numDocfectado', [ - new Assert\NotBlank(), - new Assert\Length([ 'max' => 13]), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/PaymentValidator.php b/src/Greenter/Xml/Validator/PaymentValidator.php deleted file mode 100644 index a6b19e96..00000000 --- a/src/Greenter/Xml/Validator/PaymentValidator.php +++ /dev/null @@ -1,32 +0,0 @@ -addPropertyConstraints('moneda', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 3, 'max' => 3]), - ]); - $metadata->addPropertyConstraint('importe', new Assert\NotBlank()); - $metadata->addPropertyConstraints('fecha', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/PerceptionDetailValidator.php b/src/Greenter/Xml/Validator/PerceptionDetailValidator.php deleted file mode 100644 index 6c24c84d..00000000 --- a/src/Greenter/Xml/Validator/PerceptionDetailValidator.php +++ /dev/null @@ -1,51 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 2]), - ]); - $metadata->addPropertyConstraints('numDoc', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 13]), - ]); - $metadata->addPropertyConstraints('fechaEmision', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraint('impTotal', new Assert\NotBlank()); - $metadata->addPropertyConstraints('moneda', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 3, 'max' => 3]), - ]); - $metadata->addPropertyConstraints('cobros', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraint('impCobrar', new Assert\NotBlank()); - $metadata->addPropertyConstraints('fechaPercepcion', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraint('impPercibido', new Assert\NotBlank()); - $metadata->addPropertyConstraint('tipoCambio', new Assert\Valid()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/PerceptionValidator.php b/src/Greenter/Xml/Validator/PerceptionValidator.php deleted file mode 100644 index 53e87f4a..00000000 --- a/src/Greenter/Xml/Validator/PerceptionValidator.php +++ /dev/null @@ -1,55 +0,0 @@ -addPropertyConstraints('serie', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 4]), - ]); - $metadata->addPropertyConstraints('correlativo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraints('fechaEmision', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraints('company', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraints('proveedor', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraints('regimen', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 2, 'max' => 2]), - ]); - $metadata->addPropertyConstraint('tasa', new Assert\NotBlank()); - $metadata->addPropertyConstraint('impPercibido', new Assert\NotBlank()); - $metadata->addPropertyConstraint('impCobrado', new Assert\NotBlank()); - $metadata->addPropertyConstraint('observacion', new Assert\Length(['max' => 250])); - $metadata->addPropertyConstraints('details', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/PrepaymentValidator.php b/src/Greenter/Xml/Validator/PrepaymentValidator.php deleted file mode 100644 index 33065655..00000000 --- a/src/Greenter/Xml/Validator/PrepaymentValidator.php +++ /dev/null @@ -1,38 +0,0 @@ -addPropertyConstraints('tipoDocRel', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraints('nroDocRel', [ - new Assert\NotBlank(), - new Assert\Length([ 'max' => 30]), - ]); - $metadata->addPropertyConstraints('total',[ - new Assert\NotBlank(), - new Assert\Type(['type' => 'numeric']), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/RetentionDetailValidator.php b/src/Greenter/Xml/Validator/RetentionDetailValidator.php deleted file mode 100644 index d768ee7f..00000000 --- a/src/Greenter/Xml/Validator/RetentionDetailValidator.php +++ /dev/null @@ -1,52 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 2]), - ]); - $metadata->addPropertyConstraints('numDoc', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 13]), - ]); - $metadata->addPropertyConstraints('fechaEmision', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraint('impTotal', new Assert\NotBlank()); - $metadata->addPropertyConstraints('moneda', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 3, 'max' => 3]), - ]); - $metadata->addPropertyConstraints('pagos', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraint('impPagar', new Assert\NotBlank()); - $metadata->addPropertyConstraints('fechaRetencion', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraint('impRetenido', new Assert\NotBlank()); - $metadata->addPropertyConstraint('impPagar', new Assert\NotBlank()); - $metadata->addPropertyConstraint('tipoCambio', new Assert\Valid()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/RetentionValidator.php b/src/Greenter/Xml/Validator/RetentionValidator.php deleted file mode 100644 index ce92fbc9..00000000 --- a/src/Greenter/Xml/Validator/RetentionValidator.php +++ /dev/null @@ -1,55 +0,0 @@ -addPropertyConstraints('serie', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 4]), - ]); - $metadata->addPropertyConstraints('correlativo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraints('fechaEmision', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraints('company', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraints('proveedor', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraints('regimen', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 2, 'max' => 2]), - ]); - $metadata->addPropertyConstraint('tasa', new Assert\NotBlank()); - $metadata->addPropertyConstraint('impRetenido', new Assert\NotBlank()); - $metadata->addPropertyConstraint('impPagado', new Assert\NotBlank()); - $metadata->addPropertyConstraint('observacion', new Assert\Length(['max' => 250])); - $metadata->addPropertyConstraints('details', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/SaleDetailValidator.php b/src/Greenter/Xml/Validator/SaleDetailValidator.php deleted file mode 100644 index 757e330a..00000000 --- a/src/Greenter/Xml/Validator/SaleDetailValidator.php +++ /dev/null @@ -1,36 +0,0 @@ -addPropertyConstraints('codUnidadMedida', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 3]), - ]); - $metadata->addPropertyConstraints('desItem', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 250]), - ]); - $metadata->addPropertyConstraint('mtoValorUnitario', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoIgvItem', new Assert\NotBlank()); - $metadata->addPropertyConstraint('tipAfeIgv', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoPrecioUnitario', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoValorVenta', new Assert\NotBlank()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/SalePerceptionValidator.php b/src/Greenter/Xml/Validator/SalePerceptionValidator.php deleted file mode 100644 index d54c9916..00000000 --- a/src/Greenter/Xml/Validator/SalePerceptionValidator.php +++ /dev/null @@ -1,33 +0,0 @@ -addPropertyConstraints('codReg', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraint('mtoBase', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mto', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoTotal', new Assert\NotBlank()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/ShipmentValidator.php b/src/Greenter/Xml/Validator/ShipmentValidator.php deleted file mode 100644 index 3f5fdf0f..00000000 --- a/src/Greenter/Xml/Validator/ShipmentValidator.php +++ /dev/null @@ -1,47 +0,0 @@ -addPropertyConstraints('codTraslado', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 2, 'max' => 2]), - ]); - $metadata->addPropertyConstraint('desTraslado', new Assert\Length(['max' => 100])); - $metadata->addPropertyConstraint('indTransbordo', new Assert\Type(['type' => 'bool'])); - $metadata->addPropertyConstraint('pesoTotal', new Assert\NotBlank()); - $metadata->addPropertyConstraints('undPesoTotal', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 4]), - ]); - $metadata->addPropertyConstraints('modTraslado', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 2, 'max' => 2]), - ]); - $metadata->addPropertyConstraints('fecTraslado', [ - new Assert\NotBlank(), - new Assert\Date() - ]); - $metadata->addPropertyConstraint('numContenedor', new Assert\Length(['max' => 17])); - $metadata->addPropertyConstraint('codPuerto', new Assert\Length(['max' => 3])); - $metadata->addPropertyConstraint('transportista', new Assert\Valid()); - $metadata->addPropertyConstraint('llegada', new Assert\Valid()); - $metadata->addPropertyConstraint('partida', new Assert\Valid()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/SummaryDetailV2Validator.php b/src/Greenter/Xml/Validator/SummaryDetailV2Validator.php deleted file mode 100644 index 364eeb80..00000000 --- a/src/Greenter/Xml/Validator/SummaryDetailV2Validator.php +++ /dev/null @@ -1,52 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraints('serieNro', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 13]), - ]); - $metadata->addPropertyConstraints('clienteTipo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 1]), - ]); - $metadata->addPropertyConstraints('clienteNro', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 20]), - ]); - $metadata->addPropertyConstraints('estado', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 1]), - ]); - $metadata->addPropertyConstraint('docReferencia', new Assert\Valid()); - $metadata->addPropertyConstraint('total', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoOperGravadas', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoOperInafectas', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoOperExoneradas', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoIGV', new Assert\NotBlank()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/SummaryDetailValidator.php b/src/Greenter/Xml/Validator/SummaryDetailValidator.php deleted file mode 100644 index ab62203b..00000000 --- a/src/Greenter/Xml/Validator/SummaryDetailValidator.php +++ /dev/null @@ -1,50 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraints('serie', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 4, - 'max' => 4, - ]), - ]); - $metadata->addPropertyConstraints('docInicio', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraints('docFin', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraint('total', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoOperGravadas', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoOperInafectas', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoOperExoneradas', new Assert\NotBlank()); - $metadata->addPropertyConstraint('mtoIGV', new Assert\NotBlank()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/SummaryValidator.php b/src/Greenter/Xml/Validator/SummaryValidator.php deleted file mode 100644 index b6aeeeca..00000000 --- a/src/Greenter/Xml/Validator/SummaryValidator.php +++ /dev/null @@ -1,37 +0,0 @@ -addPropertyConstraints('correlativo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 3]), - ]); - $metadata->addPropertyConstraint('fecGeneracion', new Assert\Date()); - $metadata->addPropertyConstraints('fecResumen', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraints('company', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraint('details', new Assert\Valid()); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/TransportistValidator.php b/src/Greenter/Xml/Validator/TransportistValidator.php deleted file mode 100644 index 1843f356..00000000 --- a/src/Greenter/Xml/Validator/TransportistValidator.php +++ /dev/null @@ -1,47 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 1, 'max' => 1]), - ]); - $metadata->addPropertyConstraints('numDoc', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 15]), - ]); - $metadata->addPropertyConstraints('rznSocial', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 100]), - ]); - $metadata->addPropertyConstraints('placa', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraints('choferTipoDoc', [ - new Assert\NotBlank(), - new Assert\Length(['min' => 1, 'max' => 1]), - ]); - $metadata->addPropertyConstraints('choferDoc', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 11]), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/VoidedDetailValidator.php b/src/Greenter/Xml/Validator/VoidedDetailValidator.php deleted file mode 100644 index 8a94be86..00000000 --- a/src/Greenter/Xml/Validator/VoidedDetailValidator.php +++ /dev/null @@ -1,45 +0,0 @@ -addPropertyConstraints('tipoDoc', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 2, - 'max' => 2, - ]), - ]); - $metadata->addPropertyConstraints('serie', [ - new Assert\NotBlank(), - new Assert\Length([ - 'min' => 4, - 'max' => 4, - ]), - ]); - $metadata->addPropertyConstraints('correlativo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 8]), - ]); - $metadata->addPropertyConstraints('desMotivoBaja', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 100]), - ]); - } -} \ No newline at end of file diff --git a/src/Greenter/Xml/Validator/VoidedValidator.php b/src/Greenter/Xml/Validator/VoidedValidator.php deleted file mode 100644 index 97a88e37..00000000 --- a/src/Greenter/Xml/Validator/VoidedValidator.php +++ /dev/null @@ -1,37 +0,0 @@ -addPropertyConstraints('correlativo', [ - new Assert\NotBlank(), - new Assert\Length(['max' => 3]), - ]); - $metadata->addPropertyConstraint('fecGeneracion', new Assert\Date()); - $metadata->addPropertyConstraints('fecComunicacion', [ - new Assert\NotBlank(), - new Assert\Date(), - ]); - $metadata->addPropertyConstraints('company', [ - new Assert\NotBlank(), - new Assert\Valid(), - ]); - $metadata->addPropertyConstraint('details', new Assert\Valid()); - } -} \ No newline at end of file