Class: Nfe::Generated::CalculoImpostosV1::Icms

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIcms

Returns a new instance of Icms.

Parameters:

  • c_benef_rbc: (String, nil)
  • csosn: (String, nil)
  • cst: (String, nil)
  • ind_deduz_deson: (String, nil)
  • mod_bc: (String, nil)
  • mod_bcst: (String, nil)
  • mot_des_icms: (String, nil)
  • mot_des_icmsst: (String, nil)
  • orig: (String, nil)
  • p_cred_sn: (String, nil)
  • p_dif: (String, nil)
  • p_fcp: (String, nil)
  • p_fcpdif: (String, nil)
  • p_fcpst: (String, nil)
  • p_fcpstret: (String, nil)
  • p_icms: (String, nil)
  • p_icmsefet: (String, nil)
  • p_icmsst: (String, nil)
  • p_mvast: (String, nil)
  • p_red_bc: (String, nil)
  • p_red_bcefet: (String, nil)
  • p_red_bcst: (String, nil)
  • p_st: (String, nil)
  • v_bc: (String, nil)
  • v_bcefet: (String, nil)
  • v_bcfcp: (String, nil)
  • v_bcfcpst: (String, nil)
  • v_bcfcpstret: (String, nil)
  • v_bcst: (String, nil)
  • v_bcstret: (String, nil)
  • v_cred_icmssn: (String, nil)
  • v_fcp: (String, nil)
  • v_fcpdif: (String, nil)
  • v_fcpefet: (String, nil)
  • v_fcpst: (String, nil)
  • v_fcpstret: (String, nil)
  • v_icms: (String, nil)
  • v_icmsdeson: (String, nil)
  • v_icmsdif: (String, nil)
  • v_icmsefet: (String, nil)
  • v_icmsop: (String, nil)
  • v_icmsst: (String, nil)
  • v_icmsstdeson: (String, nil)
  • v_icmsstret: (String, nil)
  • v_icmssubstituto: (String, nil)


55
# File 'sig/nfe/generated/calculo_impostos_v1/icms.rbs', line 55

def initialize: (?c_benef_rbc: String?, ?csosn: String?, ?cst: String?, ?ind_deduz_deson: String?, ?mod_bc: String?, ?mod_bcst: String?, ?mot_des_icms: String?, ?mot_des_icmsst: String?, ?orig: String?, ?p_cred_sn: String?, ?p_dif: String?, ?p_fcp: String?, ?p_fcpdif: String?, ?p_fcpst: String?, ?p_fcpstret: String?, ?p_icms: String?, ?p_icmsefet: String?, ?p_icmsst: String?, ?p_mvast: String?, ?p_red_bc: String?, ?p_red_bcefet: String?, ?p_red_bcst: String?, ?p_st: String?, ?v_bc: String?, ?v_bcefet: String?, ?v_bcfcp: String?, ?v_bcfcpst: String?, ?v_bcfcpstret: String?, ?v_bcst: String?, ?v_bcstret: String?, ?v_cred_icmssn: String?, ?v_fcp: String?, ?v_fcpdif: String?, ?v_fcpefet: String?, ?v_fcpst: String?, ?v_fcpstret: String?, ?v_icms: String?, ?v_icmsdeson: String?, ?v_icmsdif: String?, ?v_icmsefet: String?, ?v_icmsop: String?, ?v_icmsst: String?, ?v_icmsstdeson: String?, ?v_icmsstret: String?, ?v_icmssubstituto: String?) -> void

Instance Attribute Details

#c_benef_rbcObject (readonly)

Returns the value of attribute c_benef_rbc

Returns:

  • (Object)

    the current value of c_benef_rbc



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

def c_benef_rbc
  @c_benef_rbc
end

#csosnObject (readonly)

Returns the value of attribute csosn

Returns:

  • (Object)

    the current value of csosn



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

def csosn
  @csosn
end

#cstObject (readonly)

Returns the value of attribute cst

Returns:

  • (Object)

    the current value of cst



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

def cst
  @cst
end

#ind_deduz_desonObject (readonly)

Returns the value of attribute ind_deduz_deson

Returns:

  • (Object)

    the current value of ind_deduz_deson



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

def ind_deduz_deson
  @ind_deduz_deson
end

#mod_bcObject (readonly)

Returns the value of attribute mod_bc

Returns:

  • (Object)

    the current value of mod_bc



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

def mod_bc
  @mod_bc
end

#mod_bcstObject (readonly)

Returns the value of attribute mod_bcst

Returns:

  • (Object)

    the current value of mod_bcst



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

def mod_bcst
  @mod_bcst
end

#mot_des_icmsObject (readonly)

Returns the value of attribute mot_des_icms

Returns:

  • (Object)

    the current value of mot_des_icms



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

def mot_des_icms
  @mot_des_icms
end

#mot_des_icmsstObject (readonly)

Returns the value of attribute mot_des_icmsst

Returns:

  • (Object)

    the current value of mot_des_icmsst



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

def mot_des_icmsst
  @mot_des_icmsst
end

#origObject (readonly)

Returns the value of attribute orig

Returns:

  • (Object)

    the current value of orig



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

def orig
  @orig
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/icms.rb', line 9

def p_cred_sn
  @p_cred_sn
end

#p_difObject (readonly)

Returns the value of attribute p_dif

Returns:

  • (Object)

    the current value of p_dif



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

def p_dif
  @p_dif
end

#p_fcpObject (readonly)

Returns the value of attribute p_fcp

Returns:

  • (Object)

    the current value of p_fcp



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

def p_fcp
  @p_fcp
end

#p_fcpdifObject (readonly)

Returns the value of attribute p_fcpdif

Returns:

  • (Object)

    the current value of p_fcpdif



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

def p_fcpdif
  @p_fcpdif
end

#p_fcpstObject (readonly)

Returns the value of attribute p_fcpst

Returns:

  • (Object)

    the current value of p_fcpst



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

def p_fcpst
  @p_fcpst
end

#p_fcpstretObject (readonly)

Returns the value of attribute p_fcpstret

Returns:

  • (Object)

    the current value of p_fcpstret



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

def p_fcpstret
  @p_fcpstret
end

#p_icmsObject (readonly)

Returns the value of attribute p_icms

Returns:

  • (Object)

    the current value of p_icms



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

def p_icms
  @p_icms
end

#p_icmsefetObject (readonly)

Returns the value of attribute p_icmsefet

Returns:

  • (Object)

    the current value of p_icmsefet



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

def p_icmsefet
  @p_icmsefet
end

#p_icmsstObject (readonly)

Returns the value of attribute p_icmsst

Returns:

  • (Object)

    the current value of p_icmsst



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

def p_icmsst
  @p_icmsst
end

#p_mvastObject (readonly)

Returns the value of attribute p_mvast

Returns:

  • (Object)

    the current value of p_mvast



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

def p_mvast
  @p_mvast
end

#p_red_bcObject (readonly)

Returns the value of attribute p_red_bc

Returns:

  • (Object)

    the current value of p_red_bc



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

def p_red_bc
  @p_red_bc
end

#p_red_bcefetObject (readonly)

Returns the value of attribute p_red_bcefet

Returns:

  • (Object)

    the current value of p_red_bcefet



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

def p_red_bcefet
  @p_red_bcefet
end

#p_red_bcstObject (readonly)

Returns the value of attribute p_red_bcst

Returns:

  • (Object)

    the current value of p_red_bcst



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

def p_red_bcst
  @p_red_bcst
end

#p_stObject (readonly)

Returns the value of attribute p_st

Returns:

  • (Object)

    the current value of p_st



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

def p_st
  @p_st
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/icms.rb', line 9

def v_bc
  @v_bc
end

#v_bcefetObject (readonly)

Returns the value of attribute v_bcefet

Returns:

  • (Object)

    the current value of v_bcefet



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

def v_bcefet
  @v_bcefet
end

#v_bcfcpObject (readonly)

Returns the value of attribute v_bcfcp

Returns:

  • (Object)

    the current value of v_bcfcp



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

def v_bcfcp
  @v_bcfcp
end

#v_bcfcpstObject (readonly)

Returns the value of attribute v_bcfcpst

Returns:

  • (Object)

    the current value of v_bcfcpst



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

def v_bcfcpst
  @v_bcfcpst
end

#v_bcfcpstretObject (readonly)

Returns the value of attribute v_bcfcpstret

Returns:

  • (Object)

    the current value of v_bcfcpstret



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

def v_bcfcpstret
  @v_bcfcpstret
end

#v_bcstObject (readonly)

Returns the value of attribute v_bcst

Returns:

  • (Object)

    the current value of v_bcst



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

def v_bcst
  @v_bcst
end

#v_bcstretObject (readonly)

Returns the value of attribute v_bcstret

Returns:

  • (Object)

    the current value of v_bcstret



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

def v_bcstret
  @v_bcstret
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/icms.rb', line 9

def v_cred_icmssn
  @v_cred_icmssn
end

#v_fcpObject (readonly)

Returns the value of attribute v_fcp

Returns:

  • (Object)

    the current value of v_fcp



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

def v_fcp
  @v_fcp
end

#v_fcpdifObject (readonly)

Returns the value of attribute v_fcpdif

Returns:

  • (Object)

    the current value of v_fcpdif



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

def v_fcpdif
  @v_fcpdif
end

#v_fcpefetObject (readonly)

Returns the value of attribute v_fcpefet

Returns:

  • (Object)

    the current value of v_fcpefet



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

def v_fcpefet
  @v_fcpefet
end

#v_fcpstObject (readonly)

Returns the value of attribute v_fcpst

Returns:

  • (Object)

    the current value of v_fcpst



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

def v_fcpst
  @v_fcpst
end

#v_fcpstretObject (readonly)

Returns the value of attribute v_fcpstret

Returns:

  • (Object)

    the current value of v_fcpstret



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

def v_fcpstret
  @v_fcpstret
end

#v_icmsObject (readonly)

Returns the value of attribute v_icms

Returns:

  • (Object)

    the current value of v_icms



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

def v_icms
  @v_icms
end

#v_icmsdesonObject (readonly)

Returns the value of attribute v_icmsdeson

Returns:

  • (Object)

    the current value of v_icmsdeson



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

def v_icmsdeson
  @v_icmsdeson
end

#v_icmsdifObject (readonly)

Returns the value of attribute v_icmsdif

Returns:

  • (Object)

    the current value of v_icmsdif



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

def v_icmsdif
  @v_icmsdif
end

#v_icmsefetObject (readonly)

Returns the value of attribute v_icmsefet

Returns:

  • (Object)

    the current value of v_icmsefet



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

def v_icmsefet
  @v_icmsefet
end

#v_icmsopObject (readonly)

Returns the value of attribute v_icmsop

Returns:

  • (Object)

    the current value of v_icmsop



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

def v_icmsop
  @v_icmsop
end

#v_icmsstObject (readonly)

Returns the value of attribute v_icmsst

Returns:

  • (Object)

    the current value of v_icmsst



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

def v_icmsst
  @v_icmsst
end

#v_icmsstdesonObject (readonly)

Returns the value of attribute v_icmsstdeson

Returns:

  • (Object)

    the current value of v_icmsstdeson



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

def v_icmsstdeson
  @v_icmsstdeson
end

#v_icmsstretObject (readonly)

Returns the value of attribute v_icmsstret

Returns:

  • (Object)

    the current value of v_icmsstret



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

def v_icmsstret
  @v_icmsstret
end

#v_icmssubstitutoObject (readonly)

Returns the value of attribute v_icmssubstituto

Returns:

  • (Object)

    the current value of v_icmssubstituto



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

def v_icmssubstituto
  @v_icmssubstituto
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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/nfe/generated/calculo_impostos_v1/icms.rb', line 10

def self.from_api(payload)
  return nil if payload.nil?

  new(
    c_benef_rbc: payload["cBenefRBC"],
    csosn: payload["csosn"],
    cst: payload["cst"],
    ind_deduz_deson: payload["indDeduzDeson"],
    mod_bc: payload["modBC"],
    mod_bcst: payload["modBCST"],
    mot_des_icms: payload["motDesICMS"],
    mot_des_icmsst: payload["motDesICMSST"],
    orig: payload["orig"],
    p_cred_sn: payload["pCredSN"],
    p_dif: payload["pDif"],
    p_fcp: payload["pFCP"],
    p_fcpdif: payload["pFCPDif"],
    p_fcpst: payload["pFCPST"],
    p_fcpstret: payload["pFCPSTRet"],
    p_icms: payload["pICMS"],
    p_icmsefet: payload["pICMSEfet"],
    p_icmsst: payload["pICMSST"],
    p_mvast: payload["pMVAST"],
    p_red_bc: payload["pRedBC"],
    p_red_bcefet: payload["pRedBCEfet"],
    p_red_bcst: payload["pRedBCST"],
    p_st: payload["pST"],
    v_bc: payload["vBC"],
    v_bcefet: payload["vBCEfet"],
    v_bcfcp: payload["vBCFCP"],
    v_bcfcpst: payload["vBCFCPST"],
    v_bcfcpstret: payload["vBCFCPSTRet"],
    v_bcst: payload["vBCST"],
    v_bcstret: payload["vBCSTRet"],
    v_cred_icmssn: payload["vCredICMSSN"],
    v_fcp: payload["vFCP"],
    v_fcpdif: payload["vFCPDif"],
    v_fcpefet: payload["vFCPEfet"],
    v_fcpst: payload["vFCPST"],
    v_fcpstret: payload["vFCPSTRet"],
    v_icms: payload["vICMS"],
    v_icmsdeson: payload["vICMSDeson"],
    v_icmsdif: payload["vICMSDif"],
    v_icmsefet: payload["vICMSEfet"],
    v_icmsop: payload["vICMSOp"],
    v_icmsst: payload["vICMSST"],
    v_icmsstdeson: payload["vICMSSTDeson"],
    v_icmsstret: payload["vICMSSTRet"],
    v_icmssubstituto: payload["vICMSSubstituto"],
  )
end

.newinstance

Parameters:

  • c_benef_rbc: (String, nil)
  • csosn: (String, nil)
  • cst: (String, nil)
  • ind_deduz_deson: (String, nil)
  • mod_bc: (String, nil)
  • mod_bcst: (String, nil)
  • mot_des_icms: (String, nil)
  • mot_des_icmsst: (String, nil)
  • orig: (String, nil)
  • p_cred_sn: (String, nil)
  • p_dif: (String, nil)
  • p_fcp: (String, nil)
  • p_fcpdif: (String, nil)
  • p_fcpst: (String, nil)
  • p_fcpstret: (String, nil)
  • p_icms: (String, nil)
  • p_icmsefet: (String, nil)
  • p_icmsst: (String, nil)
  • p_mvast: (String, nil)
  • p_red_bc: (String, nil)
  • p_red_bcefet: (String, nil)
  • p_red_bcst: (String, nil)
  • p_st: (String, nil)
  • v_bc: (String, nil)
  • v_bcefet: (String, nil)
  • v_bcfcp: (String, nil)
  • v_bcfcpst: (String, nil)
  • v_bcfcpstret: (String, nil)
  • v_bcst: (String, nil)
  • v_bcstret: (String, nil)
  • v_cred_icmssn: (String, nil)
  • v_fcp: (String, nil)
  • v_fcpdif: (String, nil)
  • v_fcpefet: (String, nil)
  • v_fcpst: (String, nil)
  • v_fcpstret: (String, nil)
  • v_icms: (String, nil)
  • v_icmsdeson: (String, nil)
  • v_icmsdif: (String, nil)
  • v_icmsefet: (String, nil)
  • v_icmsop: (String, nil)
  • v_icmsst: (String, nil)
  • v_icmsstdeson: (String, nil)
  • v_icmsstret: (String, nil)
  • v_icmssubstituto: (String, nil)

Returns:

  • (instance)


54
# File 'sig/nfe/generated/calculo_impostos_v1/icms.rbs', line 54

def self.new: (?c_benef_rbc: String?, ?csosn: String?, ?cst: String?, ?ind_deduz_deson: String?, ?mod_bc: String?, ?mod_bcst: String?, ?mot_des_icms: String?, ?mot_des_icmsst: String?, ?orig: String?, ?p_cred_sn: String?, ?p_dif: String?, ?p_fcp: String?, ?p_fcpdif: String?, ?p_fcpst: String?, ?p_fcpstret: String?, ?p_icms: String?, ?p_icmsefet: String?, ?p_icmsst: String?, ?p_mvast: String?, ?p_red_bc: String?, ?p_red_bcefet: String?, ?p_red_bcst: String?, ?p_st: String?, ?v_bc: String?, ?v_bcefet: String?, ?v_bcfcp: String?, ?v_bcfcpst: String?, ?v_bcfcpstret: String?, ?v_bcst: String?, ?v_bcstret: String?, ?v_cred_icmssn: String?, ?v_fcp: String?, ?v_fcpdif: String?, ?v_fcpefet: String?, ?v_fcpst: String?, ?v_fcpstret: String?, ?v_icms: String?, ?v_icmsdeson: String?, ?v_icmsdif: String?, ?v_icmsefet: String?, ?v_icmsop: String?, ?v_icmsst: String?, ?v_icmsstdeson: String?, ?v_icmsstret: String?, ?v_icmssubstituto: String?) -> instance