Class: Nfe::Generated::CalculoImpostosV1::Pis
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::CalculoImpostosV1::Pis
- Defined in:
- lib/nfe/generated/calculo_impostos_v1/pis.rb,
sig/nfe/generated/calculo_impostos_v1/pis.rbs
Instance Attribute Summary collapse
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#p_pis ⇒ Object
readonly
Returns the value of attribute p_pis.
-
#q_bcprod ⇒ Object
readonly
Returns the value of attribute q_bcprod.
-
#v_aliq_prod ⇒ Object
readonly
Returns the value of attribute v_aliq_prod.
-
#v_bc ⇒ Object
readonly
Returns the value of attribute v_bc.
-
#v_pis ⇒ Object
readonly
Returns the value of attribute v_pis.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Pis
constructor
A new instance of Pis.
Constructor Details
#initialize ⇒ Pis
Returns a new instance of Pis.
16 |
# File 'sig/nfe/generated/calculo_impostos_v1/pis.rbs', line 16
def initialize: (?cst: String?, ?p_pis: String?, ?q_bcprod: String?, ?v_aliq_prod: String?, ?v_bc: String?, ?v_pis: String?) -> void
|
Instance Attribute Details
#cst ⇒ Object (readonly)
Returns the value of attribute cst
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/pis.rb', line 9 def cst @cst end |
#p_pis ⇒ Object (readonly)
Returns the value of attribute p_pis
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/pis.rb', line 9 def p_pis @p_pis end |
#q_bcprod ⇒ Object (readonly)
Returns the value of attribute q_bcprod
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/pis.rb', line 9 def q_bcprod @q_bcprod end |
#v_aliq_prod ⇒ Object (readonly)
Returns the value of attribute v_aliq_prod
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/pis.rb', line 9 def v_aliq_prod @v_aliq_prod end |
#v_bc ⇒ Object (readonly)
Returns the value of attribute v_bc
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/pis.rb', line 9 def v_bc @v_bc end |
#v_pis ⇒ Object (readonly)
Returns the value of attribute v_pis
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/pis.rb', line 9 def v_pis @v_pis end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfe/generated/calculo_impostos_v1/pis.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( cst: payload["cst"], p_pis: payload["pPIS"], q_bcprod: payload["qBCProd"], v_aliq_prod: payload["vAliqProd"], v_bc: payload["vBC"], v_pis: payload["vPIS"], ) end |
.new ⇒ instance
15 |
# File 'sig/nfe/generated/calculo_impostos_v1/pis.rbs', line 15
def self.new: (?cst: String?, ?p_pis: String?, ?q_bcprod: String?, ?v_aliq_prod: String?, ?v_bc: String?, ?v_pis: String?) -> instance
|