Method: NuvemfiscalSdkRuby::NfeSefazPISOutr#list_invalid_properties
- Defined in:
- lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_outr.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_pis_outr.rb', line 124 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if !@v_bc.nil? && @v_bc < 0 invalid_properties.push('invalid value for "v_bc", must be greater than or equal to 0.') end if !@p_pis.nil? && @p_pis < 0 invalid_properties.push('invalid value for "p_pis", must be greater than or equal to 0.') end if !@q_bc_prod.nil? && @q_bc_prod < 0 invalid_properties.push('invalid value for "q_bc_prod", must be greater than or equal to 0.') end if !@v_aliq_prod.nil? && @v_aliq_prod < 0 invalid_properties.push('invalid value for "v_aliq_prod", must be greater than or equal to 0.') end if @v_pis < 0 invalid_properties.push('invalid value for "v_pis", must be greater than or equal to 0.') end invalid_properties end |