Class: Nfe::Generated::CalculoImpostosV1::Ii

Inherits:
Data
  • Object
show all
Defined in:
lib/nfe/generated/calculo_impostos_v1/ii.rb,
sig/nfe/generated/calculo_impostos_v1/ii.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIi

Returns a new instance of Ii.

Parameters:

  • inf_custo_aquis: (String, nil)
  • p_cred_sn: (String, nil)
  • v_bc: (String, nil)
  • v_cred_icmssn: (String, nil)
  • v_desp_adu: (String, nil)
  • v_enc_camb: (String, nil)
  • v_ii: (String, nil)
  • v_iof: (String, nil)


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_aquisObject (readonly)

Returns the value of attribute inf_custo_aquis

Returns:

  • (Object)

    the current value of 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_snObject (readonly)

Returns the value of attribute p_cred_sn

Returns:

  • (Object)

    the current value of 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_bcObject (readonly)

Returns the value of attribute v_bc

Returns:

  • (Object)

    the current value of v_bc



9
10
11
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9

def v_bc
  @v_bc
end

#v_cred_icmssnObject (readonly)

Returns the value of attribute v_cred_icmssn

Returns:

  • (Object)

    the current value of 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_aduObject (readonly)

Returns the value of attribute v_desp_adu

Returns:

  • (Object)

    the current value of 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_cambObject (readonly)

Returns the value of attribute v_enc_camb

Returns:

  • (Object)

    the current value of 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_iiObject (readonly)

Returns the value of attribute v_ii

Returns:

  • (Object)

    the current value of v_ii



9
10
11
# File 'lib/nfe/generated/calculo_impostos_v1/ii.rb', line 9

def v_ii
  @v_ii
end

#v_iofObject (readonly)

Returns the value of attribute v_iof

Returns:

  • (Object)

    the current value of 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?

Parameters:

  • payload (Hash[String, untyped], nil)

Returns:

  • (instance, nil)


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

.newinstance

Parameters:

  • inf_custo_aquis: (String, nil)
  • p_cred_sn: (String, nil)
  • v_bc: (String, nil)
  • v_cred_icmssn: (String, nil)
  • v_desp_adu: (String, nil)
  • v_enc_camb: (String, nil)
  • v_ii: (String, nil)
  • v_iof: (String, nil)

Returns:

  • (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