Skip to content

Commit 485bdeb

Browse files
committed
Remove Retenciones 2.0
These changes will be commited later after expression is validated
1 parent ad9580a commit 485bdeb

12 files changed

+5
-318
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![Coverage Status][badge-coverage]][coverage]
99
[![Total Downloads][badge-downloads]][downloads]
1010

11-
> Genera expresiones de CFDI 4.4, CFDI 3.3, CFDI 3.2, RET 1.0 y RET 2.0
11+
> Genera expresiones de CFDI 4.4, CFDI 3.3, CFDI 3.2 y RET 1.0
1212
1313
:us: The documentation of this project is in spanish as this is the natural language for intended audience.
1414

@@ -42,12 +42,6 @@ Ejemplo de expresión para RET 1.0:
4242
?&re=XAXX010101000&nr=12345678901234567890%tt=1234567890.123456&id=ad662d33-6934-459c-a128-BDf0393f0f44
4343
```
4444

45-
Ejemplo de expresión para RET 2.0:
46-
47-
```text
48-
https://prodretencionverificacion.clouda.sat.gob.mx?id=AAAAAAAA-BBBB-CCCC-DDDD-000000000000&re=Ñ&A010101AAA&nr=0000000000000000000X&tt=123456.78&fe=qsIe6w==
49-
```
50-
5145
## Instalación
5246

5347
Usa [composer](https://getcomposer.org/)

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "phpcfdi/cfdi-expresiones",
3-
"description": "Genera expresiones de CFDI 4.4, CFDI 3.3, CFDI 3.2, RET 1.0 y RET 2.0",
3+
"description": "Genera expresiones de CFDI 4.4, CFDI 3.3, CFDI 3.2 y RET 1.0",
44
"keywords": ["phpcfdi", "sat", "cfdi"],
55
"homepage": "https://github.com/phpcfdi/cfdi-expresiones",
66
"license": "MIT",

docs/CHANGELOG.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ Se agrega el soporte de CFDI 4.0 con fundamento en el Anexo 20.
1919
Para ello, la *Especificación técnica del código de barras bidimensional a incorporar en la representación impresa*
2020
se separa a un estándar interno llamado `CfdiStandard20170701`
2121

22-
#### Soporte de RET 2.0
23-
24-
Se agrega el soporte de RET 2.0 con fundamento en el Anexo 20.
25-
2622
#### Refactorización de métodos compartidos
2723

2824
Las expresiones de CFDI 3.3 y CFDI 4.0 son idénticas, así como la forma de formatear datos como RFC, Sello, Total, etc.

src/DiscoverExtractor.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use PhpCfdi\CfdiExpresiones\Extractors\Comprobante33;
1111
use PhpCfdi\CfdiExpresiones\Extractors\Comprobante40;
1212
use PhpCfdi\CfdiExpresiones\Extractors\Retenciones10;
13-
use PhpCfdi\CfdiExpresiones\Extractors\Retenciones20;
1413

1514
class DiscoverExtractor implements ExpressionExtractorInterface
1615
{
@@ -32,7 +31,6 @@ public function defaultExtractors(): array
3231
new Comprobante40(),
3332
new Comprobante33(),
3433
new Comprobante32(),
35-
new Retenciones20(),
3634
new Retenciones10(),
3735
];
3836
}

src/Extractors/Retenciones20.php

Lines changed: 0 additions & 125 deletions
This file was deleted.

tests/Unit/DOMDocumentsTestCase.php

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,6 @@ public function documentCfdi32(): DOMDocument
3030
return $document;
3131
}
3232

33-
public function documentRet20Mexican(): DOMDocument
34-
{
35-
$document = new DOMDocument();
36-
$document->load($this->filePath('ret20-mexican-fake.xml'));
37-
return $document;
38-
}
39-
40-
public function documentRet20Foreign(): DOMDocument
41-
{
42-
$document = new DOMDocument();
43-
$document->load($this->filePath('ret20-foreign-fake.xml'));
44-
return $document;
45-
}
46-
4733
public function documentRet10Mexican(): DOMDocument
4834
{
4935
$document = new DOMDocument();

tests/Unit/DiscoverExtractorTest.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
use PhpCfdi\CfdiExpresiones\Extractors\Comprobante33;
1313
use PhpCfdi\CfdiExpresiones\Extractors\Comprobante40;
1414
use PhpCfdi\CfdiExpresiones\Extractors\Retenciones10;
15-
use PhpCfdi\CfdiExpresiones\Extractors\Retenciones20;
1615

1716
class DiscoverExtractorTest extends DOMDocumentsTestCase
1817
{
@@ -35,11 +34,10 @@ public function testDefaultExtractorContainsKnownClasses(): void
3534
$extrator = new DiscoverExtractor();
3635
$extractorClasses = array_map('get_class', $extrator->defaultExtractors());
3736
$this->assertContains(Retenciones10::class, $extractorClasses);
38-
$this->assertContains(Retenciones20::class, $extractorClasses);
3937
$this->assertContains(Comprobante32::class, $extractorClasses);
4038
$this->assertContains(Comprobante33::class, $extractorClasses);
4139
$this->assertContains(Comprobante40::class, $extractorClasses);
42-
$this->assertCount(5, $extractorClasses);
40+
$this->assertCount(4, $extractorClasses);
4341
}
4442

4543
public function testDontMatchUsingEmptyDocument(): void
@@ -65,8 +63,6 @@ public function providerExpressionOnValidDocuments(): array
6563
'Cfdi40' => [$this->documentCfdi40(), 'CFDI40'],
6664
'Cfdi33' => [$this->documentCfdi33(), 'CFDI33'],
6765
'Cfdi32' => [$this->documentCfdi32(), 'CFDI32'],
68-
'Ret20Mexican' => [$this->documentRet20Mexican(), 'RET20'],
69-
'Ret20Foreign' => [$this->documentRet20Foreign(), 'RET20'],
7066
'Ret10Mexican' => [$this->documentRet10Mexican(), 'RET10'],
7167
'Ret10Foreign' => [$this->documentRet10Foreign(), 'RET10'],
7268
];

tests/Unit/Extractors/Retenciones10Test.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public function testExtractRetenciones10Mexican(): void
4747
public function providerCfdiDifferentVersions(): array
4848
{
4949
return [
50-
'RET 2.0 Mexican' => [$this->documentRet20Mexican()],
51-
'RET 2.0 Foreign' => [$this->documentRet20Foreign()],
50+
'CFDI 3.3' => [$this->documentCfdi33()],
51+
'CFDI 4.0' => [$this->documentCfdi40()],
5252
];
5353
}
5454

tests/Unit/Extractors/Retenciones20Test.php

Lines changed: 0 additions & 126 deletions
This file was deleted.

tests/_files/ret20-foreign-fake.xml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)