![JAR search and dependency download from the Maven repository](/logo.png)
com.fincatto.documentofiscal.nfe400.classes.nota.NFNotaInfoItemProdutoMedicamento Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nfe Show documentation
Show all versions of nfe Show documentation
Biblioteca de comunicacao de nota fiscal eletronica brasileira
package com.fincatto.documentofiscal.nfe400.classes.nota;
import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
import com.fincatto.documentofiscal.validadores.DFStringValidador;
import org.simpleframework.xml.Element;
import java.math.BigDecimal;
public class NFNotaInfoItemProdutoMedicamento extends DFBase {
private static final long serialVersionUID = 3127772234811692432L;
@Element(name = "cProdANVISA")
private String codigoProdutoAnvisa;
@Element(name = "xMotivoIsencao", required = false)
private String motivoIsencao;
@Element(name = "vPMC")
private String precoMaximoConsumidor;
public NFNotaInfoItemProdutoMedicamento() {
this.codigoProdutoAnvisa = null;
this.precoMaximoConsumidor = null;
}
public String getCodigoProdutoAnvisa() {
return this.codigoProdutoAnvisa;
}
public NFNotaInfoItemProdutoMedicamento setCodigoProdutoAnvisa(final String codigoProdutoAnvisa) {
DFStringValidador.codigoProdutoAnvisa(codigoProdutoAnvisa, "C\u00f3digo produto anvisa");
this.codigoProdutoAnvisa = codigoProdutoAnvisa;
return this;
}
public String getPrecoMaximoConsumidor() {
return this.precoMaximoConsumidor;
}
public NFNotaInfoItemProdutoMedicamento setPrecoMaximoConsumidor(final BigDecimal precoMaximoConsumidor) {
this.precoMaximoConsumidor = DFBigDecimalValidador.tamanho15Com2CasasDecimais(precoMaximoConsumidor, "Pre\u00e7o m\u00e1ximo consumidor");
return this;
}
public String getMotivoIsencao() {
return motivoIsencao;
}
public NFNotaInfoItemProdutoMedicamento setMotivoIsencao(String motivoIsencao) {
DFStringValidador.validaTamanhoMaximo(motivoIsencao, 255, "Motivo da isen\u00e7\u00e3o da ANVISA");
this.motivoIsencao = motivoIsencao;
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy