Class: Nfe::Generated::NfConsumidorV2::IBSCBSTaxResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfConsumidorV2::IBSCBSTaxResource
- Defined in:
- lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb,
sig/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rbs
Instance Attribute Summary collapse
-
#basis ⇒ Object
readonly
Returns the value of attribute basis.
-
#calculation_mode ⇒ Object
readonly
Returns the value of attribute calculation_mode.
-
#cbs ⇒ Object
readonly
Returns the value of attribute cbs.
-
#class_code ⇒ Object
readonly
Returns the value of attribute class_code.
-
#credit_reversal ⇒ Object
readonly
Returns the value of attribute credit_reversal.
-
#credit_transfer ⇒ Object
readonly
Returns the value of attribute credit_transfer.
-
#donation_indicator ⇒ Object
readonly
Returns the value of attribute donation_indicator.
-
#government_purchase ⇒ Object
readonly
Returns the value of attribute government_purchase.
-
#ibs_total_amount ⇒ Object
readonly
Returns the value of attribute ibs_total_amount.
-
#monophase ⇒ Object
readonly
Returns the value of attribute monophase.
-
#municipal ⇒ Object
readonly
Returns the value of attribute municipal.
-
#operational_presumed_credit ⇒ Object
readonly
Returns the value of attribute operational_presumed_credit.
-
#regular_taxation ⇒ Object
readonly
Returns the value of attribute regular_taxation.
-
#situation_code ⇒ Object
readonly
Returns the value of attribute situation_code.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#zfm_presumed_credit ⇒ Object
readonly
Returns the value of attribute zfm_presumed_credit.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IBSCBSTaxResource
constructor
A new instance of IBSCBSTaxResource.
Constructor Details
#initialize ⇒ IBSCBSTaxResource
Returns a new instance of IBSCBSTaxResource.
26 |
# File 'sig/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rbs', line 26
def initialize: (?basis: Float?, ?calculation_mode: String?, ?cbs: CBSTaxResource, ?class_code: String?, ?credit_reversal: CreditReversalResource, ?credit_transfer: CreditTransferTaxResource, ?donation_indicator: String?, ?government_purchase: GovernmentPurchaseTaxResource, ?ibs_total_amount: Float?, ?monophase: MonophaseIBSCBSTaxResource, ?municipal: IBSMunicipalTaxResource, ?operational_presumed_credit: OperationalPresumedCreditResource, ?regular_taxation: RegularTaxationResource, ?situation_code: String?, ?state: IBSStateTaxResource, ?zfm_presumed_credit: ZfmPresumedCreditResource) -> void
|
Instance Attribute Details
#basis ⇒ Object (readonly)
Returns the value of attribute basis
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def basis @basis end |
#calculation_mode ⇒ Object (readonly)
Returns the value of attribute calculation_mode
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def calculation_mode @calculation_mode end |
#cbs ⇒ Object (readonly)
Returns the value of attribute cbs
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def cbs @cbs end |
#class_code ⇒ Object (readonly)
Returns the value of attribute class_code
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def class_code @class_code end |
#credit_reversal ⇒ Object (readonly)
Returns the value of attribute credit_reversal
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def credit_reversal @credit_reversal end |
#credit_transfer ⇒ Object (readonly)
Returns the value of attribute credit_transfer
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def credit_transfer @credit_transfer end |
#donation_indicator ⇒ Object (readonly)
Returns the value of attribute donation_indicator
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def donation_indicator @donation_indicator end |
#government_purchase ⇒ Object (readonly)
Returns the value of attribute government_purchase
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def government_purchase @government_purchase end |
#ibs_total_amount ⇒ Object (readonly)
Returns the value of attribute ibs_total_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def ibs_total_amount @ibs_total_amount end |
#monophase ⇒ Object (readonly)
Returns the value of attribute monophase
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def monophase @monophase end |
#municipal ⇒ Object (readonly)
Returns the value of attribute municipal
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def municipal @municipal end |
#operational_presumed_credit ⇒ Object (readonly)
Returns the value of attribute operational_presumed_credit
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def operational_presumed_credit @operational_presumed_credit end |
#regular_taxation ⇒ Object (readonly)
Returns the value of attribute regular_taxation
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def regular_taxation @regular_taxation end |
#situation_code ⇒ Object (readonly)
Returns the value of attribute situation_code
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def situation_code @situation_code end |
#state ⇒ Object (readonly)
Returns the value of attribute state
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def state @state end |
#zfm_presumed_credit ⇒ Object (readonly)
Returns the value of attribute zfm_presumed_credit
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 9 def zfm_presumed_credit @zfm_presumed_credit end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( basis: payload["basis"], calculation_mode: payload["calculationMode"], cbs: CBSTaxResource.from_api(payload["cbs"]), class_code: payload["classCode"], credit_reversal: CreditReversalResource.from_api(payload["creditReversal"]), credit_transfer: CreditTransferTaxResource.from_api(payload["creditTransfer"]), donation_indicator: payload["donationIndicator"], government_purchase: GovernmentPurchaseTaxResource.from_api(payload["governmentPurchase"]), ibs_total_amount: payload["ibsTotalAmount"], monophase: MonophaseIBSCBSTaxResource.from_api(payload["monophase"]), municipal: IBSMunicipalTaxResource.from_api(payload["municipal"]), operational_presumed_credit: OperationalPresumedCreditResource.from_api(payload["operationalPresumedCredit"]), regular_taxation: RegularTaxationResource.from_api(payload["regularTaxation"]), situation_code: payload["situationCode"], state: IBSStateTaxResource.from_api(payload["state"]), zfm_presumed_credit: ZfmPresumedCreditResource.from_api(payload["zfmPresumedCredit"]), ) end |
.new ⇒ instance
25 |
# File 'sig/nfe/generated/nf_consumidor_v2/ibscbstax_resource.rbs', line 25
def self.new: (?basis: Float?, ?calculation_mode: String?, ?cbs: CBSTaxResource, ?class_code: String?, ?credit_reversal: CreditReversalResource, ?credit_transfer: CreditTransferTaxResource, ?donation_indicator: String?, ?government_purchase: GovernmentPurchaseTaxResource, ?ibs_total_amount: Float?, ?monophase: MonophaseIBSCBSTaxResource, ?municipal: IBSMunicipalTaxResource, ?operational_presumed_credit: OperationalPresumedCreditResource, ?regular_taxation: RegularTaxationResource, ?situation_code: String?, ?state: IBSStateTaxResource, ?zfm_presumed_credit: ZfmPresumedCreditResource) -> instance
|