Class: Nfe::Generated::ProductInvoiceRtcV1::ICMSTotalResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::ICMSTotalResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rbs
Instance Attribute Summary collapse
-
#base_tax ⇒ Object
readonly
Returns the value of attribute base_tax.
-
#cofins_amount ⇒ Object
readonly
Returns the value of attribute cofins_amount.
-
#discount_amount ⇒ Object
readonly
Returns the value of attribute discount_amount.
-
#fcp_amount ⇒ Object
readonly
Returns the value of attribute fcp_amount.
-
#fcpst_amount ⇒ Object
readonly
Returns the value of attribute fcpst_amount.
-
#fcpst_ret_amount ⇒ Object
readonly
Returns the value of attribute fcpst_ret_amount.
-
#fcpuf_destination_amount ⇒ Object
readonly
Returns the value of attribute fcpuf_destination_amount.
-
#federal_taxes_amount ⇒ Object
readonly
Returns the value of attribute federal_taxes_amount.
-
#freight_amount ⇒ Object
readonly
Returns the value of attribute freight_amount.
-
#icms_amount ⇒ Object
readonly
Returns the value of attribute icms_amount.
-
#icms_exempt_amount ⇒ Object
readonly
Returns the value of attribute icms_exempt_amount.
-
#icmsuf_destination_amount ⇒ Object
readonly
Returns the value of attribute icmsuf_destination_amount.
-
#icmsuf_sender_amount ⇒ Object
readonly
Returns the value of attribute icmsuf_sender_amount.
-
#ii_amount ⇒ Object
readonly
Returns the value of attribute ii_amount.
-
#insurance_amount ⇒ Object
readonly
Returns the value of attribute insurance_amount.
-
#invoice_amount ⇒ Object
readonly
Returns the value of attribute invoice_amount.
-
#ipi_amount ⇒ Object
readonly
Returns the value of attribute ipi_amount.
-
#ipi_devol_amount ⇒ Object
readonly
Returns the value of attribute ipi_devol_amount.
-
#others_amount ⇒ Object
readonly
Returns the value of attribute others_amount.
-
#pis_amount ⇒ Object
readonly
Returns the value of attribute pis_amount.
-
#product_amount ⇒ Object
readonly
Returns the value of attribute product_amount.
-
#q_bcmono ⇒ Object
readonly
Returns the value of attribute q_bcmono.
-
#q_bcmono_ret ⇒ Object
readonly
Returns the value of attribute q_bcmono_ret.
-
#q_bcmono_reten ⇒ Object
readonly
Returns the value of attribute q_bcmono_reten.
-
#st_amount ⇒ Object
readonly
Returns the value of attribute st_amount.
-
#st_calculation_basis_amount ⇒ Object
readonly
Returns the value of attribute st_calculation_basis_amount.
-
#v_icmsmono ⇒ Object
readonly
Returns the value of attribute v_icmsmono.
-
#v_icmsmono_ret ⇒ Object
readonly
Returns the value of attribute v_icmsmono_ret.
-
#v_icmsmono_reten ⇒ Object
readonly
Returns the value of attribute v_icmsmono_reten.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ICMSTotalResource
constructor
A new instance of ICMSTotalResource.
Constructor Details
#initialize ⇒ ICMSTotalResource
Returns a new instance of ICMSTotalResource.
39 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rbs', line 39
def initialize: (?base_tax: Float?, ?cofins_amount: Float?, ?discount_amount: Float?, ?fcp_amount: Float?, ?fcpst_amount: Float?, ?fcpst_ret_amount: Float?, ?fcpuf_destination_amount: Float?, ?federal_taxes_amount: Float?, ?freight_amount: Float?, ?icms_amount: Float?, ?icms_exempt_amount: Float?, ?icmsuf_destination_amount: Float?, ?icmsuf_sender_amount: Float?, ?ii_amount: Float?, ?insurance_amount: Float?, ?invoice_amount: Float?, ?ipi_amount: Float?, ?ipi_devol_amount: Float?, ?others_amount: Float?, ?pis_amount: Float?, ?product_amount: Float?, ?q_bcmono: Float?, ?q_bcmono_ret: Float?, ?q_bcmono_reten: Float?, ?st_amount: Float?, ?st_calculation_basis_amount: Float?, ?v_icmsmono: Float?, ?v_icmsmono_ret: Float?, ?v_icmsmono_reten: Float?) -> void
|
Instance Attribute Details
#base_tax ⇒ Object (readonly)
Returns the value of attribute base_tax
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def base_tax @base_tax end |
#cofins_amount ⇒ Object (readonly)
Returns the value of attribute cofins_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def cofins_amount @cofins_amount end |
#discount_amount ⇒ Object (readonly)
Returns the value of attribute discount_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def discount_amount @discount_amount end |
#fcp_amount ⇒ Object (readonly)
Returns the value of attribute fcp_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def fcp_amount @fcp_amount end |
#fcpst_amount ⇒ Object (readonly)
Returns the value of attribute fcpst_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def fcpst_amount @fcpst_amount end |
#fcpst_ret_amount ⇒ Object (readonly)
Returns the value of attribute fcpst_ret_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def fcpst_ret_amount @fcpst_ret_amount end |
#fcpuf_destination_amount ⇒ Object (readonly)
Returns the value of attribute fcpuf_destination_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def fcpuf_destination_amount @fcpuf_destination_amount end |
#federal_taxes_amount ⇒ Object (readonly)
Returns the value of attribute federal_taxes_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def federal_taxes_amount @federal_taxes_amount end |
#freight_amount ⇒ Object (readonly)
Returns the value of attribute freight_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def freight_amount @freight_amount end |
#icms_amount ⇒ Object (readonly)
Returns the value of attribute icms_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def icms_amount @icms_amount end |
#icms_exempt_amount ⇒ Object (readonly)
Returns the value of attribute icms_exempt_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def icms_exempt_amount @icms_exempt_amount end |
#icmsuf_destination_amount ⇒ Object (readonly)
Returns the value of attribute icmsuf_destination_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def icmsuf_destination_amount @icmsuf_destination_amount end |
#icmsuf_sender_amount ⇒ Object (readonly)
Returns the value of attribute icmsuf_sender_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def icmsuf_sender_amount @icmsuf_sender_amount end |
#ii_amount ⇒ Object (readonly)
Returns the value of attribute ii_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def ii_amount @ii_amount end |
#insurance_amount ⇒ Object (readonly)
Returns the value of attribute insurance_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def insurance_amount @insurance_amount end |
#invoice_amount ⇒ Object (readonly)
Returns the value of attribute invoice_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def invoice_amount @invoice_amount end |
#ipi_amount ⇒ Object (readonly)
Returns the value of attribute ipi_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def ipi_amount @ipi_amount end |
#ipi_devol_amount ⇒ Object (readonly)
Returns the value of attribute ipi_devol_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def ipi_devol_amount @ipi_devol_amount end |
#others_amount ⇒ Object (readonly)
Returns the value of attribute others_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def others_amount @others_amount end |
#pis_amount ⇒ Object (readonly)
Returns the value of attribute pis_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def pis_amount @pis_amount end |
#product_amount ⇒ Object (readonly)
Returns the value of attribute product_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def product_amount @product_amount end |
#q_bcmono ⇒ Object (readonly)
Returns the value of attribute q_bcmono
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def q_bcmono @q_bcmono end |
#q_bcmono_ret ⇒ Object (readonly)
Returns the value of attribute q_bcmono_ret
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def q_bcmono_ret @q_bcmono_ret end |
#q_bcmono_reten ⇒ Object (readonly)
Returns the value of attribute q_bcmono_reten
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def q_bcmono_reten @q_bcmono_reten end |
#st_amount ⇒ Object (readonly)
Returns the value of attribute st_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def st_amount @st_amount end |
#st_calculation_basis_amount ⇒ Object (readonly)
Returns the value of attribute st_calculation_basis_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def st_calculation_basis_amount @st_calculation_basis_amount end |
#v_icmsmono ⇒ Object (readonly)
Returns the value of attribute v_icmsmono
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def v_icmsmono @v_icmsmono end |
#v_icmsmono_ret ⇒ Object (readonly)
Returns the value of attribute v_icmsmono_ret
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def v_icmsmono_ret @v_icmsmono_ret end |
#v_icmsmono_reten ⇒ Object (readonly)
Returns the value of attribute v_icmsmono_reten
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 9 def v_icmsmono_reten @v_icmsmono_reten 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 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( base_tax: payload["baseTax"], cofins_amount: payload["cofinsAmount"], discount_amount: payload["discountAmount"], fcp_amount: payload["fcpAmount"], fcpst_amount: payload["fcpstAmount"], fcpst_ret_amount: payload["fcpstRetAmount"], fcpuf_destination_amount: payload["fcpufDestinationAmount"], federal_taxes_amount: payload["federalTaxesAmount"], freight_amount: payload["freightAmount"], icms_amount: payload["icmsAmount"], icms_exempt_amount: payload["icmsExemptAmount"], icmsuf_destination_amount: payload["icmsufDestinationAmount"], icmsuf_sender_amount: payload["icmsufSenderAmount"], ii_amount: payload["iiAmount"], insurance_amount: payload["insuranceAmount"], invoice_amount: payload["invoiceAmount"], ipi_amount: payload["ipiAmount"], ipi_devol_amount: payload["ipiDevolAmount"], others_amount: payload["othersAmount"], pis_amount: payload["pisAmount"], product_amount: payload["productAmount"], q_bcmono: payload["qBCMono"], q_bcmono_ret: payload["qBCMonoRet"], q_bcmono_reten: payload["qBCMonoReten"], st_amount: payload["stAmount"], st_calculation_basis_amount: payload["stCalculationBasisAmount"], v_icmsmono: payload["vICMSMono"], v_icmsmono_ret: payload["vICMSMonoRet"], v_icmsmono_reten: payload["vICMSMonoReten"], ) end |
.new ⇒ instance
38 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/icmstotal_resource.rbs', line 38
def self.new: (?base_tax: Float?, ?cofins_amount: Float?, ?discount_amount: Float?, ?fcp_amount: Float?, ?fcpst_amount: Float?, ?fcpst_ret_amount: Float?, ?fcpuf_destination_amount: Float?, ?federal_taxes_amount: Float?, ?freight_amount: Float?, ?icms_amount: Float?, ?icms_exempt_amount: Float?, ?icmsuf_destination_amount: Float?, ?icmsuf_sender_amount: Float?, ?ii_amount: Float?, ?insurance_amount: Float?, ?invoice_amount: Float?, ?ipi_amount: Float?, ?ipi_devol_amount: Float?, ?others_amount: Float?, ?pis_amount: Float?, ?product_amount: Float?, ?q_bcmono: Float?, ?q_bcmono_ret: Float?, ?q_bcmono_reten: Float?, ?st_amount: Float?, ?st_calculation_basis_amount: Float?, ?v_icmsmono: Float?, ?v_icmsmono_ret: Float?, ?v_icmsmono_reten: Float?) -> instance
|