Class: Nfe::Generated::NfConsumidorV2::IcmsTaxResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfConsumidorV2::IcmsTaxResource
- Defined in:
- lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb,
sig/nfe/generated/nf_consumidor_v2/icms_tax_resource.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#amount_operation ⇒ Object
readonly
Returns the value of attribute amount_operation.
-
#amount_streason ⇒ Object
readonly
Returns the value of attribute amount_streason.
-
#base_deferred ⇒ Object
readonly
Returns the value of attribute base_deferred.
-
#base_snretention_amount ⇒ Object
readonly
Returns the value of attribute base_snretention_amount.
-
#base_stretention_amount ⇒ Object
readonly
Returns the value of attribute base_stretention_amount.
-
#base_tax ⇒ Object
readonly
Returns the value of attribute base_tax.
-
#base_tax_fcpstamount ⇒ Object
readonly
Returns the value of attribute base_tax_fcpstamount.
-
#base_tax_modality ⇒ Object
readonly
Returns the value of attribute base_tax_modality.
-
#base_tax_operation_percentual ⇒ Object
readonly
Returns the value of attribute base_tax_operation_percentual.
-
#base_tax_reduction ⇒ Object
readonly
Returns the value of attribute base_tax_reduction.
-
#base_tax_st ⇒ Object
readonly
Returns the value of attribute base_tax_st.
-
#base_tax_stmodality ⇒ Object
readonly
Returns the value of attribute base_tax_stmodality.
-
#base_tax_streduction ⇒ Object
readonly
Returns the value of attribute base_tax_streduction.
-
#basis_benefit_code ⇒ Object
readonly
Returns the value of attribute basis_benefit_code.
-
#csosn ⇒ Object
readonly
Returns the value of attribute csosn.
-
#cst ⇒ Object
readonly
Returns the value of attribute cst.
-
#deduction_indicator ⇒ Object
readonly
Returns the value of attribute deduction_indicator.
-
#effective_amount ⇒ Object
readonly
Returns the value of attribute effective_amount.
-
#effective_base_tax_amount ⇒ Object
readonly
Returns the value of attribute effective_base_tax_amount.
-
#effective_base_tax_reduction_rate ⇒ Object
readonly
Returns the value of attribute effective_base_tax_reduction_rate.
-
#effective_rate ⇒ Object
readonly
Returns the value of attribute effective_rate.
-
#exempt_amount ⇒ Object
readonly
Returns the value of attribute exempt_amount.
-
#exempt_amount_st ⇒ Object
readonly
Returns the value of attribute exempt_amount_st.
-
#exempt_reason ⇒ Object
readonly
Returns the value of attribute exempt_reason.
-
#exempt_reason_st ⇒ Object
readonly
Returns the value of attribute exempt_reason_st.
-
#fcp_amount ⇒ Object
readonly
Returns the value of attribute fcp_amount.
-
#fcp_rate ⇒ Object
readonly
Returns the value of attribute fcp_rate.
-
#fcpst_amount ⇒ Object
readonly
Returns the value of attribute fcpst_amount.
-
#fcpst_rate ⇒ Object
readonly
Returns the value of attribute fcpst_rate.
-
#fcpst_ret_amount ⇒ Object
readonly
Returns the value of attribute fcpst_ret_amount.
-
#fcpst_ret_rate ⇒ Object
readonly
Returns the value of attribute fcpst_ret_rate.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#percentual ⇒ Object
readonly
Returns the value of attribute percentual.
-
#percentual_deferment ⇒ Object
readonly
Returns the value of attribute percentual_deferment.
-
#rate ⇒ Object
readonly
Returns the value of attribute rate.
-
#sn_credit_amount ⇒ Object
readonly
Returns the value of attribute sn_credit_amount.
-
#sn_credit_rate ⇒ Object
readonly
Returns the value of attribute sn_credit_rate.
-
#sn_retention_amount ⇒ Object
readonly
Returns the value of attribute sn_retention_amount.
-
#st_amount ⇒ Object
readonly
Returns the value of attribute st_amount.
-
#st_final_consumer_rate ⇒ Object
readonly
Returns the value of attribute st_final_consumer_rate.
-
#st_margin_added_amount ⇒ Object
readonly
Returns the value of attribute st_margin_added_amount.
-
#st_margin_amount ⇒ Object
readonly
Returns the value of attribute st_margin_amount.
-
#st_rate ⇒ Object
readonly
Returns the value of attribute st_rate.
-
#st_retention_amount ⇒ Object
readonly
Returns the value of attribute st_retention_amount.
-
#substitute_amount ⇒ Object
readonly
Returns the value of attribute substitute_amount.
-
#ufst ⇒ Object
readonly
Returns the value of attribute ufst.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IcmsTaxResource
constructor
A new instance of IcmsTaxResource.
Constructor Details
#initialize ⇒ IcmsTaxResource
Returns a new instance of IcmsTaxResource.
57 |
# File 'sig/nfe/generated/nf_consumidor_v2/icms_tax_resource.rbs', line 57
def initialize: (?amount: Float?, ?amount_operation: String?, ?amount_streason: String?, ?base_deferred: String?, ?base_snretention_amount: String?, ?base_stretention_amount: String?, ?base_tax: Float?, ?base_tax_fcpstamount: Float?, ?base_tax_modality: String?, ?base_tax_operation_percentual: String?, ?base_tax_reduction: Float?, ?base_tax_st: Float?, ?base_tax_stmodality: String?, ?base_tax_streduction: String?, ?basis_benefit_code: String?, ?csosn: String?, ?cst: String?, ?deduction_indicator: untyped, ?effective_amount: Float?, ?effective_base_tax_amount: Float?, ?effective_base_tax_reduction_rate: Float?, ?effective_rate: Float?, ?exempt_amount: Float?, ?exempt_amount_st: Float?, ?exempt_reason: untyped, ?exempt_reason_st: untyped, ?fcp_amount: Float?, ?fcp_rate: Float?, ?fcpst_amount: Float?, ?fcpst_rate: Float?, ?fcpst_ret_amount: Float?, ?fcpst_ret_rate: Float?, ?origin: String?, ?percentual: Float?, ?percentual_deferment: String?, ?rate: Float?, ?sn_credit_amount: Float?, ?sn_credit_rate: Float?, ?sn_retention_amount: String?, ?st_amount: Float?, ?st_final_consumer_rate: Float?, ?st_margin_added_amount: String?, ?st_margin_amount: Float?, ?st_rate: Float?, ?st_retention_amount: String?, ?substitute_amount: Float?, ?ufst: String?) -> void
|
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def amount @amount end |
#amount_operation ⇒ Object (readonly)
Returns the value of attribute amount_operation
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def amount_operation @amount_operation end |
#amount_streason ⇒ Object (readonly)
Returns the value of attribute amount_streason
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def amount_streason @amount_streason end |
#base_deferred ⇒ Object (readonly)
Returns the value of attribute base_deferred
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_deferred @base_deferred end |
#base_snretention_amount ⇒ Object (readonly)
Returns the value of attribute base_snretention_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_snretention_amount @base_snretention_amount end |
#base_stretention_amount ⇒ Object (readonly)
Returns the value of attribute base_stretention_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_stretention_amount @base_stretention_amount end |
#base_tax ⇒ Object (readonly)
Returns the value of attribute base_tax
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_tax @base_tax end |
#base_tax_fcpstamount ⇒ Object (readonly)
Returns the value of attribute base_tax_fcpstamount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_tax_fcpstamount @base_tax_fcpstamount end |
#base_tax_modality ⇒ Object (readonly)
Returns the value of attribute base_tax_modality
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_tax_modality @base_tax_modality end |
#base_tax_operation_percentual ⇒ Object (readonly)
Returns the value of attribute base_tax_operation_percentual
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_tax_operation_percentual @base_tax_operation_percentual end |
#base_tax_reduction ⇒ Object (readonly)
Returns the value of attribute base_tax_reduction
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_tax_reduction @base_tax_reduction end |
#base_tax_st ⇒ Object (readonly)
Returns the value of attribute base_tax_st
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_tax_st @base_tax_st end |
#base_tax_stmodality ⇒ Object (readonly)
Returns the value of attribute base_tax_stmodality
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_tax_stmodality @base_tax_stmodality end |
#base_tax_streduction ⇒ Object (readonly)
Returns the value of attribute base_tax_streduction
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def base_tax_streduction @base_tax_streduction end |
#basis_benefit_code ⇒ Object (readonly)
Returns the value of attribute basis_benefit_code
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def basis_benefit_code @basis_benefit_code end |
#csosn ⇒ Object (readonly)
Returns the value of attribute csosn
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def csosn @csosn end |
#cst ⇒ Object (readonly)
Returns the value of attribute cst
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def cst @cst end |
#deduction_indicator ⇒ Object (readonly)
Returns the value of attribute deduction_indicator
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def deduction_indicator @deduction_indicator end |
#effective_amount ⇒ Object (readonly)
Returns the value of attribute effective_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def effective_amount @effective_amount end |
#effective_base_tax_amount ⇒ Object (readonly)
Returns the value of attribute effective_base_tax_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def effective_base_tax_amount @effective_base_tax_amount end |
#effective_base_tax_reduction_rate ⇒ Object (readonly)
Returns the value of attribute effective_base_tax_reduction_rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def effective_base_tax_reduction_rate @effective_base_tax_reduction_rate end |
#effective_rate ⇒ Object (readonly)
Returns the value of attribute effective_rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def effective_rate @effective_rate end |
#exempt_amount ⇒ Object (readonly)
Returns the value of attribute exempt_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def exempt_amount @exempt_amount end |
#exempt_amount_st ⇒ Object (readonly)
Returns the value of attribute exempt_amount_st
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def exempt_amount_st @exempt_amount_st end |
#exempt_reason ⇒ Object (readonly)
Returns the value of attribute exempt_reason
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def exempt_reason @exempt_reason end |
#exempt_reason_st ⇒ Object (readonly)
Returns the value of attribute exempt_reason_st
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def exempt_reason_st @exempt_reason_st end |
#fcp_amount ⇒ Object (readonly)
Returns the value of attribute fcp_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def fcp_amount @fcp_amount end |
#fcp_rate ⇒ Object (readonly)
Returns the value of attribute fcp_rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def fcp_rate @fcp_rate end |
#fcpst_amount ⇒ Object (readonly)
Returns the value of attribute fcpst_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def fcpst_amount @fcpst_amount end |
#fcpst_rate ⇒ Object (readonly)
Returns the value of attribute fcpst_rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def fcpst_rate @fcpst_rate end |
#fcpst_ret_amount ⇒ Object (readonly)
Returns the value of attribute fcpst_ret_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def fcpst_ret_amount @fcpst_ret_amount end |
#fcpst_ret_rate ⇒ Object (readonly)
Returns the value of attribute fcpst_ret_rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def fcpst_ret_rate @fcpst_ret_rate end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def origin @origin end |
#percentual ⇒ Object (readonly)
Returns the value of attribute percentual
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def percentual @percentual end |
#percentual_deferment ⇒ Object (readonly)
Returns the value of attribute percentual_deferment
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def percentual_deferment @percentual_deferment end |
#rate ⇒ Object (readonly)
Returns the value of attribute rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def rate @rate end |
#sn_credit_amount ⇒ Object (readonly)
Returns the value of attribute sn_credit_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def sn_credit_amount @sn_credit_amount end |
#sn_credit_rate ⇒ Object (readonly)
Returns the value of attribute sn_credit_rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def sn_credit_rate @sn_credit_rate end |
#sn_retention_amount ⇒ Object (readonly)
Returns the value of attribute sn_retention_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def sn_retention_amount @sn_retention_amount end |
#st_amount ⇒ Object (readonly)
Returns the value of attribute st_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def st_amount @st_amount end |
#st_final_consumer_rate ⇒ Object (readonly)
Returns the value of attribute st_final_consumer_rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def st_final_consumer_rate @st_final_consumer_rate end |
#st_margin_added_amount ⇒ Object (readonly)
Returns the value of attribute st_margin_added_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def st_margin_added_amount @st_margin_added_amount end |
#st_margin_amount ⇒ Object (readonly)
Returns the value of attribute st_margin_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def st_margin_amount @st_margin_amount end |
#st_rate ⇒ Object (readonly)
Returns the value of attribute st_rate
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def st_rate @st_rate end |
#st_retention_amount ⇒ Object (readonly)
Returns the value of attribute st_retention_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def st_retention_amount @st_retention_amount end |
#substitute_amount ⇒ Object (readonly)
Returns the value of attribute substitute_amount
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def substitute_amount @substitute_amount end |
#ufst ⇒ Object (readonly)
Returns the value of attribute ufst
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 9 def ufst @ufst 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 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 61 62 |
# File 'lib/nfe/generated/nf_consumidor_v2/icms_tax_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( amount: payload["amount"], amount_operation: payload["amountOperation"], amount_streason: payload["amountSTReason"], base_deferred: payload["baseDeferred"], base_snretention_amount: payload["baseSNRetentionAmount"], base_stretention_amount: payload["baseSTRetentionAmount"], base_tax: payload["baseTax"], base_tax_fcpstamount: payload["baseTaxFCPSTAmount"], base_tax_modality: payload["baseTaxModality"], base_tax_operation_percentual: payload["baseTaxOperationPercentual"], base_tax_reduction: payload["baseTaxReduction"], base_tax_st: payload["baseTaxST"], base_tax_stmodality: payload["baseTaxSTModality"], base_tax_streduction: payload["baseTaxSTReduction"], basis_benefit_code: payload["basisBenefitCode"], csosn: payload["csosn"], cst: payload["cst"], deduction_indicator: payload["deductionIndicator"], effective_amount: payload["effectiveAmount"], effective_base_tax_amount: payload["effectiveBaseTaxAmount"], effective_base_tax_reduction_rate: payload["effectiveBaseTaxReductionRate"], effective_rate: payload["effectiveRate"], exempt_amount: payload["exemptAmount"], exempt_amount_st: payload["exemptAmountST"], exempt_reason: payload["exemptReason"], exempt_reason_st: payload["exemptReasonST"], fcp_amount: payload["fcpAmount"], fcp_rate: payload["fcpRate"], fcpst_amount: payload["fcpstAmount"], fcpst_rate: payload["fcpstRate"], fcpst_ret_amount: payload["fcpstRetAmount"], fcpst_ret_rate: payload["fcpstRetRate"], origin: payload["origin"], percentual: payload["percentual"], percentual_deferment: payload["percentualDeferment"], rate: payload["rate"], sn_credit_amount: payload["snCreditAmount"], sn_credit_rate: payload["snCreditRate"], sn_retention_amount: payload["snRetentionAmount"], st_amount: payload["stAmount"], st_final_consumer_rate: payload["stFinalConsumerRate"], st_margin_added_amount: payload["stMarginAddedAmount"], st_margin_amount: payload["stMarginAmount"], st_rate: payload["stRate"], st_retention_amount: payload["stRetentionAmount"], substitute_amount: payload["substituteAmount"], ufst: payload["ufst"], ) end |
.new ⇒ instance
56 |
# File 'sig/nfe/generated/nf_consumidor_v2/icms_tax_resource.rbs', line 56
def self.new: (?amount: Float?, ?amount_operation: String?, ?amount_streason: String?, ?base_deferred: String?, ?base_snretention_amount: String?, ?base_stretention_amount: String?, ?base_tax: Float?, ?base_tax_fcpstamount: Float?, ?base_tax_modality: String?, ?base_tax_operation_percentual: String?, ?base_tax_reduction: Float?, ?base_tax_st: Float?, ?base_tax_stmodality: String?, ?base_tax_streduction: String?, ?basis_benefit_code: String?, ?csosn: String?, ?cst: String?, ?deduction_indicator: untyped, ?effective_amount: Float?, ?effective_base_tax_amount: Float?, ?effective_base_tax_reduction_rate: Float?, ?effective_rate: Float?, ?exempt_amount: Float?, ?exempt_amount_st: Float?, ?exempt_reason: untyped, ?exempt_reason_st: untyped, ?fcp_amount: Float?, ?fcp_rate: Float?, ?fcpst_amount: Float?, ?fcpst_rate: Float?, ?fcpst_ret_amount: Float?, ?fcpst_ret_rate: Float?, ?origin: String?, ?percentual: Float?, ?percentual_deferment: String?, ?rate: Float?, ?sn_credit_amount: Float?, ?sn_credit_rate: Float?, ?sn_retention_amount: String?, ?st_amount: Float?, ?st_final_consumer_rate: Float?, ?st_margin_added_amount: String?, ?st_margin_amount: Float?, ?st_rate: Float?, ?st_retention_amount: String?, ?substitute_amount: Float?, ?ufst: String?) -> instance
|