Skip to content

Commit

Permalink
Added CartaPorte 31
Browse files Browse the repository at this point in the history
  • Loading branch information
satcfdi committed Jul 27, 2024
1 parent 14f49d2 commit ad1d0d3
Show file tree
Hide file tree
Showing 16 changed files with 1,784 additions and 50 deletions.
838 changes: 838 additions & 0 deletions satcfdi/create/cfd/cartaporte31.py

Large diffs are not rendered by default.

470 changes: 450 additions & 20 deletions satcfdi/transform/objectify.py

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions satcfdi/transform/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -3932,6 +3932,10 @@ def carta_porte2(col, data):
col.add_map('cartaporte30', 'http://www.sat.gob.mx/CartaPorte30')
col.add_schema('http://www.sat.gob.mx/CartaPorte30 http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte30.xsd')
col.add_base('www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte30.xsd')
def carta_porte3(col, data):
col.add_map('cartaporte31', 'http://www.sat.gob.mx/CartaPorte31')
col.add_schema('http://www.sat.gob.mx/CartaPorte31 http://www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte31.xsd')
col.add_base('www.sat.gob.mx/sitio_internet/cfd/CartaPorte/CartaPorte31.xsd')
def comercio_exterior0(col, data):
col.add_map('cce11', 'http://www.sat.gob.mx/ComercioExterior11')
col.add_schema('http://www.sat.gob.mx/ComercioExterior11 http://www.sat.gob.mx/sitio_internet/cfd/ComercioExterior11/ComercioExterior11.xsd')
Expand Down Expand Up @@ -4244,6 +4248,9 @@ def s_carta_porte1(col, data):
def s_carta_porte2(col, data):
if data.get('Version') == '3.0':
carta_porte2(col, data)
def s_carta_porte3(col, data):
if data.get('Version') == '3.1':
carta_porte3(col, data)
def s_comercio_exterior0(col, data):
if data.get('Version') == '1.1':
comercio_exterior0(col, data)
Expand Down Expand Up @@ -4470,6 +4477,7 @@ def s_rsakey_value0(col, data):
'{http://www.sat.gob.mx/CartaPorte}CartaPorte': s_carta_porte0,
'{http://www.sat.gob.mx/CartaPorte20}CartaPorte': s_carta_porte1,
'{http://www.sat.gob.mx/CartaPorte30}CartaPorte': s_carta_porte2,
'{http://www.sat.gob.mx/CartaPorte31}CartaPorte': s_carta_porte3,
'{http://www.sat.gob.mx/ComercioExterior11}ComercioExterior': s_comercio_exterior0,
'{http://www.sat.gob.mx/ComercioExterior20}ComercioExterior': s_comercio_exterior1,
'{http://www.sat.gob.mx/ComercioExterior}ComercioExterior': s_comercio_exterior2,
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
<xs:schema xmlns:pagosaextranjeros="http://www.sat.gob.mx/esquemas/retencionpago/1/pagosaextranjeros" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:c_retenciones="http://www.sat.gob.mx/esquemas/retencionpago/1/catalogos" targetNamespace="http://www.sat.gob.mx/esquemas/retencionpago/1/pagosaextranjeros" elementFormDefault="qualified" attributeFormDefault="unqualified"><xs:import namespace="http://www.sat.gob.mx/esquemas/retencionpago/1/catalogos" schemaLocation="../catalogos/catRetenciones.xsd"/><xs:element name="Pagosaextranjeros"><xs:complexType><xs:sequence minOccurs="0"><xs:element name="NoBeneficiario" minOccurs="0"><xs:complexType><xs:attribute name="PaisDeResidParaEfecFisc" type="c_retenciones:c_Pais" use="required"/><xs:attribute name="ConceptoPago" type="c_retenciones:c_TipoContribuyenteSujetoRetencion" use="required"/><xs:attribute name="DescripcionConcepto" use="required"><xs:simpleType><xs:restriction base="xs:string"><xs:minLength value="1"/><xs:maxLength value="255"/><xs:whiteSpace value="collapse"/></xs:restriction></xs:simpleType></xs:attribute></xs:complexType></xs:element><xs:element name="Beneficiario" minOccurs="0"><xs:complexType><xs:attribute name="RFC" type="pagosaextranjeros:t_RFC" use="required"/><xs:attribute name="CURP" type="pagosaextranjeros:t_CURP" use="required"/><xs:attribute name="NomDenRazSocB" use="required"><xs:simpleType><xs:restriction base="xs:string"><xs:minLength value="1"/><xs:maxLength value="300"/><xs:whiteSpace value="collapse"/></xs:restriction></xs:simpleType></xs:attribute><xs:attribute name="ConceptoPago" type="c_retenciones:c_TipoContribuyenteSujetoRetencion" use="required"/><xs:attribute name="DescripcionConcepto" use="required"><xs:simpleType><xs:restriction base="xs:string"><xs:minLength value="1"/><xs:maxLength value="255"/><xs:whiteSpace value="collapse"/></xs:restriction></xs:simpleType></xs:attribute></xs:complexType></xs:element></xs:sequence><xs:attribute name="Version" use="required" fixed="1.0"/><xs:attribute name="EsBenefEfectDelCobro" use="required"><xs:simpleType><xs:restriction base="xs:string"><xs:whiteSpace value="collapse"/><xs:enumeration value="SI"/><xs:enumeration value="NO"/></xs:restriction></xs:simpleType></xs:attribute></xs:complexType></xs:element><xs:simpleType name="t_RFC"><xs:restriction base="xs:string"><xs:minLength value="12"/><xs:maxLength value="13"/><xs:whiteSpace value="collapse"/><xs:pattern value="[A-Z,Ñ,&amp;]{3,4}[0-9]{2}[0-1][0-9][0-3][0-9][A-Z,0-9][A-Z,0-9][0-9,A-Z]"/></xs:restriction></xs:simpleType><xs:simpleType name="t_CURP"><xs:restriction base="xs:string"><xs:whiteSpace value="collapse"/><xs:length value="18"/><xs:pattern value="[A-Z][A,E,I,O,U,X][A-Z]{2}[0-9]{2}[0-1][0-9][0-3][0-9][M,H][A-Z]{2}[B,C,D,F,G,H,J,K,L,M,N,Ñ,P,Q,R,S,T,V,W,X,Y,Z]{3}[0-9,A-Z][0-9]"/></xs:restriction></xs:simpleType></xs:schema>
<xs:schema xmlns:pagosaextranjeros="http://www.sat.gob.mx/esquemas/retencionpago/1/pagosaextranjeros" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:c_retenciones="http://www.sat.gob.mx/esquemas/retencionpago/1/catalogos" targetNamespace="http://www.sat.gob.mx/esquemas/retencionpago/1/pagosaextranjeros" elementFormDefault="qualified" attributeFormDefault="unqualified"><xs:import namespace="http://www.sat.gob.mx/esquemas/retencionpago/1/catalogos" schemaLocation="../catalogos/catRetenciones.xsd"/><xs:element name="Pagosaextranjeros"><xs:complexType><xs:sequence minOccurs="0"><xs:element name="NoBeneficiario" minOccurs="0"><xs:complexType><xs:attribute name="PaisDeResidParaEfecFisc" type="c_retenciones:c_Pais" use="required"/><xs:attribute name="ConceptoPago" type="c_retenciones:c_TipoContribuyenteSujetoRetencion" use="required"/><xs:attribute name="DescripcionConcepto" use="required"><xs:simpleType><xs:restriction base="xs:string"><xs:minLength value="1"/><xs:maxLength value="255"/><xs:whiteSpace value="collapse"/></xs:restriction></xs:simpleType></xs:attribute></xs:complexType></xs:element><xs:element name="Beneficiario" minOccurs="0"><xs:complexType><xs:attribute name="RFC" type="pagosaextranjeros:t_RFC" use="required"/><xs:attribute name="CURP" type="pagosaextranjeros:t_CURP" use="required"/><xs:attribute name="NomDenRazSocB" use="required"><xs:simpleType><xs:restriction base="xs:string"><xs:minLength value="1"/><xs:maxLength value="300"/><xs:whiteSpace value="collapse"/></xs:restriction></xs:simpleType></xs:attribute><xs:attribute name="ConceptoPago" type="c_retenciones:c_TipoContribuyenteSujetoRetencion" use="required"/><xs:attribute name="DescripcionConcepto" use="required"><xs:simpleType><xs:restriction base="xs:string"><xs:minLength value="1"/><xs:maxLength value="255"/><xs:whiteSpace value="collapse"/></xs:restriction></xs:simpleType></xs:attribute></xs:complexType></xs:element></xs:sequence><xs:attribute name="Version" use="required" fixed="1.0"/><xs:attribute name="EsBenefEfectDelCobro" use="required"><xs:simpleType><xs:restriction base="xs:string"><xs:whiteSpace value="collapse"/><xs:enumeration value="SI"/><xs:enumeration value="NO"/></xs:restriction></xs:simpleType></xs:attribute></xs:complexType></xs:element><xs:simpleType name="t_RFC"><xs:restriction base="xs:string"><xs:minLength value="12"/><xs:maxLength value="13"/><xs:whiteSpace value="collapse"/><xs:pattern value="[A-Z,Ñ,&amp;]{3,4}[0-9]{2}[0-1][0-9][0-3][0-9][A-Z,0-9][A-Z,0-9][0-9,A-Z]"/></xs:restriction></xs:simpleType><xs:simpleType name="t_CURP"><xs:restriction base="xs:string"><xs:whiteSpace value="collapse"/><xs:length value="18"/><xs:pattern value="[A-Z][A,E,I,O,U,X][A-Z]{2}[0-9]{2}[0-1][0-9][0-3][0-9][M,H,X][A-Z]{2}[B,C,D,F,G,H,J,K,L,M,N,Ñ,P,Q,R,S,T,V,W,X,Y,Z]{3}[0-9,A-Z][0-9]"/></xs:restriction></xs:simpleType></xs:schema>
Loading

0 comments on commit ad1d0d3

Please sign in to comment.