Class: Nfe::Generated::CalculoImpostosV1::Ii
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::CalculoImpostosV1::Ii
- Defined in:
- lib/nfe/generated/calculo_impostos_v1/ii.rb,
sig/nfe/generated/calculo_impostos_v1/ii.rbs
Instance Attribute Summary collapse
-
#inf_custo_aquis ⇒ Object
readonly
Returns the value of attribute inf_custo_aquis.
-
#p_cred_sn ⇒ Object
readonly
Returns the value of attribute p_cred_sn.
-
#v_bc ⇒ Object
readonly
Returns the value of attribute v_bc.
-
#v_cred_icmssn ⇒ Object
readonly
Returns the value of attribute v_cred_icmssn.
-
#v_desp_adu ⇒ Object
readonly
Returns the value of attribute v_desp_adu.
-
#v_enc_camb ⇒ Object
readonly
Returns the value of attribute v_enc_camb.
-
#v_ii ⇒ Object
readonly
Returns the value of attribute v_ii.
-
#v_iof ⇒ Object
readonly
Returns the value of attribute v_iof.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Ii
constructor
A new instance of Ii.
Constructor Details
#initialize ⇒ Ii
Returns a new instance of Ii.
18 |
# File 'sig/nfe/generated/calculo_impostos_v1/ii.rbs', line 18
def initialize: (?inf_custo_aquis: String?, ?p_cred_sn: String?, ?v_bc: String?, ?v_cred_icmssn: String?, ?v_desp_adu: String?, ?v_enc_camb: String?, ?v_ii: String?, ?v_iof: String?) -> void
|
Instance Attribute Details
#inf_custo_aquis ⇒ Object (readonly)
Returns the value of attribute inf_custo_aquis
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9 def inf_custo_aquis @inf_custo_aquis end |
#p_cred_sn ⇒ Object (readonly)
Returns the value of attribute p_cred_sn
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9 def p_cred_sn @p_cred_sn end |
#v_bc ⇒ Object (readonly)
Returns the value of attribute v_bc
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9 def v_bc @v_bc end |
#v_cred_icmssn ⇒ Object (readonly)
Returns the value of attribute v_cred_icmssn
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9 def v_cred_icmssn @v_cred_icmssn end |
#v_desp_adu ⇒ Object (readonly)
Returns the value of attribute v_desp_adu
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9 def v_desp_adu @v_desp_adu end |
#v_enc_camb ⇒ Object (readonly)
Returns the value of attribute v_enc_camb
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9 def v_enc_camb @v_enc_camb end |
#v_ii ⇒ Object (readonly)
Returns the value of attribute v_ii
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9 def v_ii @v_ii end |
#v_iof ⇒ Object (readonly)
Returns the value of attribute v_iof
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9 def v_iof @v_iof end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( inf_custo_aquis: payload["infCustoAquis"], p_cred_sn: payload["pCredSN"], v_bc: payload["vBC"], v_cred_icmssn: payload["vCredICMSSN"], v_desp_adu: payload["vDespAdu"], v_enc_camb: payload["vEncCamb"], v_ii: payload["vII"], v_iof: payload["vIOF"], ) end |
.new ⇒ instance
17 |
# File 'sig/nfe/generated/calculo_impostos_v1/ii.rbs', line 17
def self.new: (?inf_custo_aquis: String?, ?p_cred_sn: String?, ?v_bc: String?, ?v_cred_icmssn: String?, ?v_desp_adu: String?, ?v_enc_camb: String?, ?v_ii: String?, ?v_iof: String?) -> instance
|