mx.emite.sdk.cfdi32.TUbicacion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ef-sdk-java Show documentation
Show all versions of ef-sdk-java Show documentation
Este kit de consumo provee a los integradores de Apis de Java para construir software que consuma los diferentes servicios web publicados por Emite Facturacion
The newest version!
package mx.emite.sdk.cfdi32;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import mx.emite.sdk.enums.sat.Estados;
import mx.emite.sdk.enums.sat.Paises;
import mx.emite.sdk.enums.sat.adaptadores.EstadosAdapter;
import mx.emite.sdk.enums.sat.adaptadores.PaisesAdapter;
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "t_Ubicacion")
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class TUbicacion{
@XmlAttribute
@NotNull
protected String calle;
@XmlAttribute
@NotNull
@Digits(integer=5, fraction = 0) @Size(min=4,max=5)
protected String codigoPostal;
@XmlAttribute
protected String colonia;
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(EstadosAdapter.class)
@NotNull
protected Estados estado;
@XmlAttribute
protected String localidad;
@XmlAttribute
@NotNull
protected String municipio;
@XmlAttribute
protected String noExterior;
@XmlAttribute
protected String noInterior;
@XmlAttribute(required = true)
@XmlJavaTypeAdapter(PaisesAdapter.class)
@NotNull
protected Paises pais;
@XmlAttribute
protected String referencia;
}