All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mx.emite.sdk.serializers.RegimenesSerializer Maven / Gradle / Ivy

Go to download

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.serializers;

import java.io.IOException;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

import mx.emite.sdk.enums.sat.RegimenesFiscales;

public class RegimenesSerializer extends JsonSerializer{

	
	
	

	@Override
	public void serialize(RegimenesFiscales regimen, JsonGenerator gen, SerializerProvider provider) throws IOException, JsonProcessingException {
		if(regimen==null)
			gen.writeNull();
		else if(regimen.getIdSat()==null)
			gen.writeNull();
		else
			gen.writeNumber(regimen.getIdSat());
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy