Class: Nfe::Generated::NfConsumidorV2::MonophaseIBSCBSTaxResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfConsumidorV2::MonophaseIBSCBSTaxResource
- Defined in:
- lib/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rb,
sig/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rbs
Instance Attribute Summary collapse
-
#cbs_amount ⇒ Object
readonly
Returns the value of attribute cbs_amount.
-
#deferment ⇒ Object
readonly
Returns the value of attribute deferment.
-
#ibs_amount ⇒ Object
readonly
Returns the value of attribute ibs_amount.
-
#previously_withheld ⇒ Object
readonly
Returns the value of attribute previously_withheld.
-
#standart ⇒ Object
readonly
Returns the value of attribute standart.
-
#withholding ⇒ Object
readonly
Returns the value of attribute withholding.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ MonophaseIBSCBSTaxResource
constructor
A new instance of MonophaseIBSCBSTaxResource.
Constructor Details
#initialize ⇒ MonophaseIBSCBSTaxResource
Returns a new instance of MonophaseIBSCBSTaxResource.
16 |
# File 'sig/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rbs', line 16
def initialize: (?cbs_amount: Float?, ?deferment: MonophaseDefermentTaxResource, ?ibs_amount: Float?, ?previously_withheld: MonophasePreviouslyWithheldTaxResource, ?standart: MonophaseStandardTaxResource, ?withholding: MonophaseWithholdingTaxResource) -> void
|
Instance Attribute Details
#cbs_amount ⇒ Object (readonly)
Returns the value of attribute cbs_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rb', line 9 def cbs_amount @cbs_amount end |
#deferment ⇒ Object (readonly)
Returns the value of attribute deferment
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rb', line 9 def deferment @deferment end |
#ibs_amount ⇒ Object (readonly)
Returns the value of attribute ibs_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rb', line 9 def ibs_amount @ibs_amount end |
#previously_withheld ⇒ Object (readonly)
Returns the value of attribute previously_withheld
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rb', line 9 def previously_withheld @previously_withheld end |
#standart ⇒ Object (readonly)
Returns the value of attribute standart
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rb', line 9 def standart @standart end |
#withholding ⇒ Object (readonly)
Returns the value of attribute withholding
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rb', line 9 def withholding @withholding end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( cbs_amount: payload["cbsAmount"], deferment: MonophaseDefermentTaxResource.from_api(payload["deferment"]), ibs_amount: payload["ibsAmount"], previously_withheld: MonophasePreviouslyWithheldTaxResource.from_api(payload["previouslyWithheld"]), standart: MonophaseStandardTaxResource.from_api(payload["standart"]), withholding: MonophaseWithholdingTaxResource.from_api(payload["withholding"]), ) end |
.new ⇒ instance
15 |
# File 'sig/nfe/generated/nf_consumidor_v2/monophase_ibscbstax_resource.rbs', line 15
def self.new: (?cbs_amount: Float?, ?deferment: MonophaseDefermentTaxResource, ?ibs_amount: Float?, ?previously_withheld: MonophasePreviouslyWithheldTaxResource, ?standart: MonophaseStandardTaxResource, ?withholding: MonophaseWithholdingTaxResource) -> instance
|