Class: EcfDgii::Generated::Ecf34CodigoModificacionType
- Inherits:
-
Object
- Object
- EcfDgii::Generated::Ecf34CodigoModificacionType
- Defined in:
- lib/ecf_dgii/generated/models/ecf34_codigo_modificacion_type.rb
Constant Summary collapse
- ANULA_EL_NCF_MODIFICADO =
"AnulaElNCFModificado".freeze
- CORRIGE_TEXTO_DEL_COMPROBANTE_FISCAL_MODIFICADO =
"CorrigeTextoDelComprobanteFiscalModificado".freeze
- CORRIGE_MONTOS_DEL_NCF_MODIFICADO =
"CorrigeMontosDelNCFModificado".freeze
- REEMPLAZO_NCF_EMITIDO_EN_CONTINGENCIA =
"ReemplazoNCFEmitidoEnContingencia".freeze
- REFERENCIA_FACTURA_CONSUMO_ELECTRONICA =
"ReferenciaFacturaConsumoElectronica".freeze
Class Method Summary collapse
- .all_vars ⇒ Object
-
.build_from_hash(value) ⇒ String
Builds the enum from string.
Instance Method Summary collapse
-
#build_from_hash(value) ⇒ String
Builds the enum from string.
Class Method Details
.all_vars ⇒ Object
24 25 26 |
# File 'lib/ecf_dgii/generated/models/ecf34_codigo_modificacion_type.rb', line 24 def self.all_vars @all_vars ||= [ANULA_EL_NCF_MODIFICADO, CORRIGE_TEXTO_DEL_COMPROBANTE_FISCAL_MODIFICADO, CORRIGE_MONTOS_DEL_NCF_MODIFICADO, REEMPLAZO_NCF_EMITIDO_EN_CONTINGENCIA, REFERENCIA_FACTURA_CONSUMO_ELECTRONICA].freeze end |
.build_from_hash(value) ⇒ String
Builds the enum from string
31 32 33 |
# File 'lib/ecf_dgii/generated/models/ecf34_codigo_modificacion_type.rb', line 31 def self.build_from_hash(value) new.build_from_hash(value) end |
Instance Method Details
#build_from_hash(value) ⇒ String
Builds the enum from string
38 39 40 41 |
# File 'lib/ecf_dgii/generated/models/ecf34_codigo_modificacion_type.rb', line 38 def build_from_hash(value) return value if Ecf34CodigoModificacionType.all_vars.include?(value) raise "Invalid ENUM value #{value} for class #Ecf34CodigoModificacionType" end |