Class: Nfe::Generated::ProductInvoiceRtcV1::IITaxResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::IITaxResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/iitax_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/iitax_resource.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Object
readonly
Returns the value of attribute amount.
-
#base_tax ⇒ Object
readonly
Returns the value of attribute base_tax.
-
#customs_expenditure_amount ⇒ Object
readonly
Returns the value of attribute customs_expenditure_amount.
-
#iof_amount ⇒ Object
readonly
Returns the value of attribute iof_amount.
-
#v_enq_camb ⇒ Object
readonly
Returns the value of attribute v_enq_camb.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IITaxResource
constructor
A new instance of IITaxResource.
Constructor Details
#initialize ⇒ IITaxResource
Returns a new instance of IITaxResource.
15 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/iitax_resource.rbs', line 15
def initialize: (?amount: Float?, ?base_tax: String?, ?customs_expenditure_amount: String?, ?iof_amount: Float?, ?v_enq_camb: Float?) -> void
|
Instance Attribute Details
#amount ⇒ Object (readonly)
Returns the value of attribute amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/iitax_resource.rb', line 9 def amount @amount end |
#base_tax ⇒ Object (readonly)
Returns the value of attribute base_tax
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/iitax_resource.rb', line 9 def base_tax @base_tax end |
#customs_expenditure_amount ⇒ Object (readonly)
Returns the value of attribute customs_expenditure_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/iitax_resource.rb', line 9 def customs_expenditure_amount @customs_expenditure_amount end |
#iof_amount ⇒ Object (readonly)
Returns the value of attribute iof_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/iitax_resource.rb', line 9 def iof_amount @iof_amount end |
#v_enq_camb ⇒ Object (readonly)
Returns the value of attribute v_enq_camb
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/iitax_resource.rb', line 9 def v_enq_camb @v_enq_camb end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/iitax_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( amount: payload["amount"], base_tax: payload["baseTax"], customs_expenditure_amount: payload["customsExpenditureAmount"], iof_amount: payload["iofAmount"], v_enq_camb: payload["vEnqCamb"], ) end |
.new ⇒ instance
14 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/iitax_resource.rbs', line 14
def self.new: (?amount: Float?, ?base_tax: String?, ?customs_expenditure_amount: String?, ?iof_amount: Float?, ?v_enq_camb: Float?) -> instance
|