Class: NuvemfiscalSdkRuby::NfeSefazICMSTot
- Inherits:
-
Object
- Object
- NuvemfiscalSdkRuby::NfeSefazICMSTot
- Defined in:
- lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb
Overview
Totais referentes ao ICMS.
Instance Attribute Summary collapse
-
#q_bc_mono ⇒ Object
Valor total da quantidade tributada do ICMS monofásico próprio.
-
#q_bc_mono_ret ⇒ Object
Valor total da quantidade tributada do ICMS monofásico retido anteriormente.
-
#q_bc_mono_reten ⇒ Object
Valor total da quantidade tributada do ICMS monofásico sujeito a retenção.
-
#v_bc ⇒ Object
BC do ICMS.
-
#v_bcst ⇒ Object
BC do ICMS ST.
-
#v_cofins ⇒ Object
Valor do COFINS.
-
#v_desc ⇒ Object
Valor Total do Desconto.
-
#v_fcp ⇒ Object
Valor Total do FCP (Fundo de Combate à Pobreza).
-
#v_fcpst ⇒ Object
Valor Total do FCP (Fundo de Combate à Pobreza) retido por substituição tributária.
-
#v_fcpst_ret ⇒ Object
Valor Total do FCP (Fundo de Combate à Pobreza) retido anteriormente por substituição tributária.
-
#v_fcpuf_dest ⇒ Object
Valor total do ICMS relativo ao Fundo de Combate à Pobreza (FCP) para a UF de destino.
-
#v_frete ⇒ Object
Valor Total do Frete.
-
#v_icms ⇒ Object
Valor Total do ICMS.
-
#v_icms_deson ⇒ Object
Valor Total do ICMS desonerado.
-
#v_icms_mono ⇒ Object
Valor total do ICMS monofásico próprio.
-
#v_icms_mono_ret ⇒ Object
Valor do ICMS monofásico retido anteriormente.
-
#v_icms_mono_reten ⇒ Object
Valor total do ICMS monofásico sujeito a retenção.
-
#v_icmsuf_dest ⇒ Object
Valor total do ICMS de partilha para a UF do destinatário.
-
#v_icmsuf_remet ⇒ Object
Valor total do ICMS de partilha para a UF do remetente.
-
#v_ii ⇒ Object
Valor Total do II.
-
#v_ipi ⇒ Object
Valor Total do IPI.
-
#v_ipi_devol ⇒ Object
Valor Total do IPI devolvido.
-
#v_nf ⇒ Object
Valor Total da NF-e.
-
#v_outro ⇒ Object
Outras Despesas acessórias.
-
#v_pis ⇒ Object
Valor do PIS.
-
#v_prod ⇒ Object
Valor Total dos produtos e serviços.
-
#v_seg ⇒ Object
Valor Total do Seguro.
-
#v_st ⇒ Object
Valor Total do ICMS ST.
-
#v_tot_trib ⇒ Object
Valor estimado total de impostos federais, estaduais e municipais.
Class Method Summary collapse
-
._deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about.
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.build_from_hash(attributes) ⇒ Object
Builds the object from hash.
-
.openapi_nullable ⇒ Object
List of attributes with nullable: true.
-
.openapi_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Integer
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ NfeSefazICMSTot
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ NfeSefazICMSTot
Initializes the object
218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 218 def initialize(attributes = {}) if (!attributes.is_a?(Hash)) fail ArgumentError, "The input argument (attributes) must be a hash in `NuvemfiscalSdkRuby::NfeSefazICMSTot` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) fail ArgumentError, "`#{k}` is not a valid attribute in `NuvemfiscalSdkRuby::NfeSefazICMSTot`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'v_bc') self.v_bc = attributes[:'v_bc'] else self.v_bc = nil end if attributes.key?(:'v_icms') self.v_icms = attributes[:'v_icms'] else self.v_icms = nil end if attributes.key?(:'v_icms_deson') self.v_icms_deson = attributes[:'v_icms_deson'] else self.v_icms_deson = nil end if attributes.key?(:'v_fcpuf_dest') self.v_fcpuf_dest = attributes[:'v_fcpuf_dest'] end if attributes.key?(:'v_icmsuf_dest') self.v_icmsuf_dest = attributes[:'v_icmsuf_dest'] end if attributes.key?(:'v_icmsuf_remet') self.v_icmsuf_remet = attributes[:'v_icmsuf_remet'] end if attributes.key?(:'v_fcp') self.v_fcp = attributes[:'v_fcp'] else self.v_fcp = nil end if attributes.key?(:'v_bcst') self.v_bcst = attributes[:'v_bcst'] else self.v_bcst = nil end if attributes.key?(:'v_st') self.v_st = attributes[:'v_st'] else self.v_st = nil end if attributes.key?(:'v_fcpst') self.v_fcpst = attributes[:'v_fcpst'] else self.v_fcpst = nil end if attributes.key?(:'v_fcpst_ret') self.v_fcpst_ret = attributes[:'v_fcpst_ret'] else self.v_fcpst_ret = nil end if attributes.key?(:'q_bc_mono') self.q_bc_mono = attributes[:'q_bc_mono'] end if attributes.key?(:'v_icms_mono') self.v_icms_mono = attributes[:'v_icms_mono'] end if attributes.key?(:'q_bc_mono_reten') self.q_bc_mono_reten = attributes[:'q_bc_mono_reten'] end if attributes.key?(:'v_icms_mono_reten') self.v_icms_mono_reten = attributes[:'v_icms_mono_reten'] end if attributes.key?(:'q_bc_mono_ret') self.q_bc_mono_ret = attributes[:'q_bc_mono_ret'] end if attributes.key?(:'v_icms_mono_ret') self.v_icms_mono_ret = attributes[:'v_icms_mono_ret'] end if attributes.key?(:'v_prod') self.v_prod = attributes[:'v_prod'] else self.v_prod = nil end if attributes.key?(:'v_frete') self.v_frete = attributes[:'v_frete'] else self.v_frete = nil end if attributes.key?(:'v_seg') self.v_seg = attributes[:'v_seg'] else self.v_seg = nil end if attributes.key?(:'v_desc') self.v_desc = attributes[:'v_desc'] else self.v_desc = nil end if attributes.key?(:'v_ii') self.v_ii = attributes[:'v_ii'] else self.v_ii = nil end if attributes.key?(:'v_ipi') self.v_ipi = attributes[:'v_ipi'] else self.v_ipi = nil end if attributes.key?(:'v_ipi_devol') self.v_ipi_devol = attributes[:'v_ipi_devol'] else self.v_ipi_devol = nil end if attributes.key?(:'v_pis') self.v_pis = attributes[:'v_pis'] else self.v_pis = nil end if attributes.key?(:'v_cofins') self.v_cofins = attributes[:'v_cofins'] else self.v_cofins = nil end if attributes.key?(:'v_outro') self.v_outro = attributes[:'v_outro'] else self.v_outro = nil end if attributes.key?(:'v_nf') self.v_nf = attributes[:'v_nf'] else self.v_nf = nil end if attributes.key?(:'v_tot_trib') self.v_tot_trib = attributes[:'v_tot_trib'] end end |
Instance Attribute Details
#q_bc_mono ⇒ Object
Valor total da quantidade tributada do ICMS monofásico próprio.
53 54 55 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 53 def q_bc_mono @q_bc_mono end |
#q_bc_mono_ret ⇒ Object
Valor total da quantidade tributada do ICMS monofásico retido anteriormente.
65 66 67 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 65 def q_bc_mono_ret @q_bc_mono_ret end |
#q_bc_mono_reten ⇒ Object
Valor total da quantidade tributada do ICMS monofásico sujeito a retenção.
59 60 61 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 59 def q_bc_mono_reten @q_bc_mono_reten end |
#v_bc ⇒ Object
BC do ICMS.
20 21 22 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 20 def v_bc @v_bc end |
#v_bcst ⇒ Object
BC do ICMS ST.
41 42 43 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 41 def v_bcst @v_bcst end |
#v_cofins ⇒ Object
Valor do COFINS.
95 96 97 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 95 def v_cofins @v_cofins end |
#v_desc ⇒ Object
Valor Total do Desconto.
80 81 82 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 80 def v_desc @v_desc end |
#v_fcp ⇒ Object
Valor Total do FCP (Fundo de Combate à Pobreza).
38 39 40 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 38 def v_fcp @v_fcp end |
#v_fcpst ⇒ Object
Valor Total do FCP (Fundo de Combate à Pobreza) retido por substituição tributária.
47 48 49 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 47 def v_fcpst @v_fcpst end |
#v_fcpst_ret ⇒ Object
Valor Total do FCP (Fundo de Combate à Pobreza) retido anteriormente por substituição tributária.
50 51 52 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 50 def v_fcpst_ret @v_fcpst_ret end |
#v_fcpuf_dest ⇒ Object
Valor total do ICMS relativo ao Fundo de Combate à Pobreza (FCP) para a UF de destino.
29 30 31 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 29 def v_fcpuf_dest @v_fcpuf_dest end |
#v_frete ⇒ Object
Valor Total do Frete.
74 75 76 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 74 def v_frete @v_frete end |
#v_icms ⇒ Object
Valor Total do ICMS.
23 24 25 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 23 def v_icms @v_icms end |
#v_icms_deson ⇒ Object
Valor Total do ICMS desonerado.
26 27 28 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 26 def v_icms_deson @v_icms_deson end |
#v_icms_mono ⇒ Object
Valor total do ICMS monofásico próprio.
56 57 58 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 56 def v_icms_mono @v_icms_mono end |
#v_icms_mono_ret ⇒ Object
Valor do ICMS monofásico retido anteriormente.
68 69 70 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 68 def v_icms_mono_ret @v_icms_mono_ret end |
#v_icms_mono_reten ⇒ Object
Valor total do ICMS monofásico sujeito a retenção.
62 63 64 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 62 def v_icms_mono_reten @v_icms_mono_reten end |
#v_icmsuf_dest ⇒ Object
Valor total do ICMS de partilha para a UF do destinatário.
32 33 34 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 32 def v_icmsuf_dest @v_icmsuf_dest end |
#v_icmsuf_remet ⇒ Object
Valor total do ICMS de partilha para a UF do remetente.
35 36 37 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 35 def v_icmsuf_remet @v_icmsuf_remet end |
#v_ii ⇒ Object
Valor Total do II.
83 84 85 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 83 def v_ii @v_ii end |
#v_ipi ⇒ Object
Valor Total do IPI.
86 87 88 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 86 def v_ipi @v_ipi end |
#v_ipi_devol ⇒ Object
Valor Total do IPI devolvido. Deve ser informado quando preenchido o Grupo Tributos Devolvidos na emissão de nota finNFe=4 (devolução) nas operações com não contribuintes do IPI. Corresponde ao total da soma dos campos id: UA04.
89 90 91 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 89 def v_ipi_devol @v_ipi_devol end |
#v_nf ⇒ Object
Valor Total da NF-e.
101 102 103 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 101 def v_nf @v_nf end |
#v_outro ⇒ Object
Outras Despesas acessórias.
98 99 100 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 98 def v_outro @v_outro end |
#v_pis ⇒ Object
Valor do PIS.
92 93 94 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 92 def v_pis @v_pis end |
#v_prod ⇒ Object
Valor Total dos produtos e serviços.
71 72 73 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 71 def v_prod @v_prod end |
#v_seg ⇒ Object
Valor Total do Seguro.
77 78 79 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 77 def v_seg @v_seg end |
#v_st ⇒ Object
Valor Total do ICMS ST.
44 45 46 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 44 def v_st @v_st end |
#v_tot_trib ⇒ Object
Valor estimado total de impostos federais, estaduais e municipais.
104 105 106 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 104 def v_tot_trib @v_tot_trib end |
Class Method Details
._deserialize(type, value) ⇒ Object
Deserializes the data based on type
911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 911 def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :Boolean if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model # models (e.g. Pet) or oneOf klass = NuvemfiscalSdkRuby.const_get(type) klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end |
.acceptable_attributes ⇒ Object
Returns all the JSON keys this model knows about
142 143 144 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 142 def self.acceptable_attributes attribute_map.values end |
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 107 def self.attribute_map { :'v_bc' => :'vBC', :'v_icms' => :'vICMS', :'v_icms_deson' => :'vICMSDeson', :'v_fcpuf_dest' => :'vFCPUFDest', :'v_icmsuf_dest' => :'vICMSUFDest', :'v_icmsuf_remet' => :'vICMSUFRemet', :'v_fcp' => :'vFCP', :'v_bcst' => :'vBCST', :'v_st' => :'vST', :'v_fcpst' => :'vFCPST', :'v_fcpst_ret' => :'vFCPSTRet', :'q_bc_mono' => :'qBCMono', :'v_icms_mono' => :'vICMSMono', :'q_bc_mono_reten' => :'qBCMonoReten', :'v_icms_mono_reten' => :'vICMSMonoReten', :'q_bc_mono_ret' => :'qBCMonoRet', :'v_icms_mono_ret' => :'vICMSMonoRet', :'v_prod' => :'vProd', :'v_frete' => :'vFrete', :'v_seg' => :'vSeg', :'v_desc' => :'vDesc', :'v_ii' => :'vII', :'v_ipi' => :'vIPI', :'v_ipi_devol' => :'vIPIDevol', :'v_pis' => :'vPIS', :'v_cofins' => :'vCOFINS', :'v_outro' => :'vOutro', :'v_nf' => :'vNF', :'v_tot_trib' => :'vTotTrib' } end |
.build_from_hash(attributes) ⇒ Object
Builds the object from hash
887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 887 def self.build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) transformed_hash = {} openapi_types.each_pair do |key, type| if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[attribute_map[key]].is_a?(Array) transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end elsif !attributes[attribute_map[key]].nil? transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end new(transformed_hash) end |
.openapi_nullable ⇒ Object
List of attributes with nullable: true
182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 182 def self.openapi_nullable Set.new([ :'v_bc', :'v_icms', :'v_icms_deson', :'v_fcpuf_dest', :'v_icmsuf_dest', :'v_icmsuf_remet', :'v_fcp', :'v_bcst', :'v_st', :'v_fcpst', :'v_fcpst_ret', :'q_bc_mono', :'v_icms_mono', :'q_bc_mono_reten', :'v_icms_mono_reten', :'q_bc_mono_ret', :'v_icms_mono_ret', :'v_prod', :'v_frete', :'v_seg', :'v_desc', :'v_ii', :'v_ipi', :'v_ipi_devol', :'v_pis', :'v_cofins', :'v_outro', :'v_nf', :'v_tot_trib' ]) end |
.openapi_types ⇒ Object
Attribute type mapping.
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 147 def self.openapi_types { :'v_bc' => :'Float', :'v_icms' => :'Float', :'v_icms_deson' => :'Float', :'v_fcpuf_dest' => :'Float', :'v_icmsuf_dest' => :'Float', :'v_icmsuf_remet' => :'Float', :'v_fcp' => :'Float', :'v_bcst' => :'Float', :'v_st' => :'Float', :'v_fcpst' => :'Float', :'v_fcpst_ret' => :'Float', :'q_bc_mono' => :'Float', :'v_icms_mono' => :'Float', :'q_bc_mono_reten' => :'Float', :'v_icms_mono_reten' => :'Float', :'q_bc_mono_ret' => :'Float', :'v_icms_mono_ret' => :'Float', :'v_prod' => :'Float', :'v_frete' => :'Float', :'v_seg' => :'Float', :'v_desc' => :'Float', :'v_ii' => :'Float', :'v_ipi' => :'Float', :'v_ipi_devol' => :'Float', :'v_pis' => :'Float', :'v_cofins' => :'Float', :'v_outro' => :'Float', :'v_nf' => :'Float', :'v_tot_trib' => :'Float' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 838 def ==(o) return true if self.equal?(o) self.class == o.class && v_bc == o.v_bc && v_icms == o.v_icms && v_icms_deson == o.v_icms_deson && v_fcpuf_dest == o.v_fcpuf_dest && v_icmsuf_dest == o.v_icmsuf_dest && v_icmsuf_remet == o.v_icmsuf_remet && v_fcp == o.v_fcp && v_bcst == o.v_bcst && v_st == o.v_st && v_fcpst == o.v_fcpst && v_fcpst_ret == o.v_fcpst_ret && q_bc_mono == o.q_bc_mono && v_icms_mono == o.v_icms_mono && q_bc_mono_reten == o.q_bc_mono_reten && v_icms_mono_reten == o.v_icms_mono_reten && q_bc_mono_ret == o.q_bc_mono_ret && v_icms_mono_ret == o.v_icms_mono_ret && v_prod == o.v_prod && v_frete == o.v_frete && v_seg == o.v_seg && v_desc == o.v_desc && v_ii == o.v_ii && v_ipi == o.v_ipi && v_ipi_devol == o.v_ipi_devol && v_pis == o.v_pis && v_cofins == o.v_cofins && v_outro == o.v_outro && v_nf == o.v_nf && v_tot_trib == o.v_tot_trib end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
982 983 984 985 986 987 988 989 990 991 992 993 994 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 982 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#eql?(o) ⇒ Boolean
874 875 876 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 874 def eql?(o) self == o end |
#hash ⇒ Integer
Calculates hash code according to all attributes.
880 881 882 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 880 def hash [v_bc, v_icms, v_icms_deson, v_fcpuf_dest, v_icmsuf_dest, v_icmsuf_remet, v_fcp, v_bcst, v_st, v_fcpst, v_fcpst_ret, q_bc_mono, v_icms_mono, q_bc_mono_reten, v_icms_mono_reten, q_bc_mono_ret, v_icms_mono_ret, v_prod, v_frete, v_seg, v_desc, v_ii, v_ipi, v_ipi_devol, v_pis, v_cofins, v_outro, v_nf, v_tot_trib].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 388 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @v_bc < 0 invalid_properties.push('invalid value for "v_bc", must be greater than or equal to 0.') end if @v_icms < 0 invalid_properties.push('invalid value for "v_icms", must be greater than or equal to 0.') end if @v_icms_deson < 0 invalid_properties.push('invalid value for "v_icms_deson", must be greater than or equal to 0.') end if !@v_fcpuf_dest.nil? && @v_fcpuf_dest < 0 invalid_properties.push('invalid value for "v_fcpuf_dest", must be greater than or equal to 0.') end if !@v_icmsuf_dest.nil? && @v_icmsuf_dest < 0 invalid_properties.push('invalid value for "v_icmsuf_dest", must be greater than or equal to 0.') end if !@v_icmsuf_remet.nil? && @v_icmsuf_remet < 0 invalid_properties.push('invalid value for "v_icmsuf_remet", must be greater than or equal to 0.') end if @v_fcp < 0 invalid_properties.push('invalid value for "v_fcp", must be greater than or equal to 0.') end if @v_bcst < 0 invalid_properties.push('invalid value for "v_bcst", must be greater than or equal to 0.') end if @v_st < 0 invalid_properties.push('invalid value for "v_st", must be greater than or equal to 0.') end if @v_fcpst < 0 invalid_properties.push('invalid value for "v_fcpst", must be greater than or equal to 0.') end if @v_fcpst_ret < 0 invalid_properties.push('invalid value for "v_fcpst_ret", must be greater than or equal to 0.') end if !@q_bc_mono.nil? && @q_bc_mono < 0 invalid_properties.push('invalid value for "q_bc_mono", must be greater than or equal to 0.') end if !@v_icms_mono.nil? && @v_icms_mono < 0 invalid_properties.push('invalid value for "v_icms_mono", must be greater than or equal to 0.') end if !@q_bc_mono_reten.nil? && @q_bc_mono_reten < 0 invalid_properties.push('invalid value for "q_bc_mono_reten", must be greater than or equal to 0.') end if !@v_icms_mono_reten.nil? && @v_icms_mono_reten < 0 invalid_properties.push('invalid value for "v_icms_mono_reten", must be greater than or equal to 0.') end if !@q_bc_mono_ret.nil? && @q_bc_mono_ret < 0 invalid_properties.push('invalid value for "q_bc_mono_ret", must be greater than or equal to 0.') end if !@v_icms_mono_ret.nil? && @v_icms_mono_ret < 0 invalid_properties.push('invalid value for "v_icms_mono_ret", must be greater than or equal to 0.') end if @v_prod < 0 invalid_properties.push('invalid value for "v_prod", must be greater than or equal to 0.') end if @v_frete < 0 invalid_properties.push('invalid value for "v_frete", must be greater than or equal to 0.') end if @v_seg < 0 invalid_properties.push('invalid value for "v_seg", must be greater than or equal to 0.') end if @v_desc < 0 invalid_properties.push('invalid value for "v_desc", must be greater than or equal to 0.') end if @v_ii < 0 invalid_properties.push('invalid value for "v_ii", must be greater than or equal to 0.') end if @v_ipi < 0 invalid_properties.push('invalid value for "v_ipi", must be greater than or equal to 0.') end if @v_ipi_devol < 0 invalid_properties.push('invalid value for "v_ipi_devol", 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 if @v_cofins < 0 invalid_properties.push('invalid value for "v_cofins", must be greater than or equal to 0.') end if @v_outro < 0 invalid_properties.push('invalid value for "v_outro", must be greater than or equal to 0.') end if @v_nf < 0 invalid_properties.push('invalid value for "v_nf", must be greater than or equal to 0.') end if !@v_tot_trib.nil? && @v_tot_trib < 0 invalid_properties.push('invalid value for "v_tot_trib", must be greater than or equal to 0.') end invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
958 959 960 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 958 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
964 965 966 967 968 969 970 971 972 973 974 975 976 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 964 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) if value.nil? is_nullable = self.class.openapi_nullable.include?(attr) next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) end hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
952 953 954 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 952 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 |
# File 'lib/nuvemfiscal_sdk_ruby/models/nfe_sefaz_icms_tot.rb', line 512 def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @v_bc < 0 return false if @v_icms < 0 return false if @v_icms_deson < 0 return false if !@v_fcpuf_dest.nil? && @v_fcpuf_dest < 0 return false if !@v_icmsuf_dest.nil? && @v_icmsuf_dest < 0 return false if !@v_icmsuf_remet.nil? && @v_icmsuf_remet < 0 return false if @v_fcp < 0 return false if @v_bcst < 0 return false if @v_st < 0 return false if @v_fcpst < 0 return false if @v_fcpst_ret < 0 return false if !@q_bc_mono.nil? && @q_bc_mono < 0 return false if !@v_icms_mono.nil? && @v_icms_mono < 0 return false if !@q_bc_mono_reten.nil? && @q_bc_mono_reten < 0 return false if !@v_icms_mono_reten.nil? && @v_icms_mono_reten < 0 return false if !@q_bc_mono_ret.nil? && @q_bc_mono_ret < 0 return false if !@v_icms_mono_ret.nil? && @v_icms_mono_ret < 0 return false if @v_prod < 0 return false if @v_frete < 0 return false if @v_seg < 0 return false if @v_desc < 0 return false if @v_ii < 0 return false if @v_ipi < 0 return false if @v_ipi_devol < 0 return false if @v_pis < 0 return false if @v_cofins < 0 return false if @v_outro < 0 return false if @v_nf < 0 return false if !@v_tot_trib.nil? && @v_tot_trib < 0 true end |