Class: Nfe::Generated::ProductInvoiceRtcV1::AdditionalInformationResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::AdditionalInformationResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rbs
Instance Attribute Summary collapse
-
#advance_payment ⇒ Object
readonly
Returns the value of attribute advance_payment.
-
#contract ⇒ Object
readonly
Returns the value of attribute contract.
-
#effort ⇒ Object
readonly
Returns the value of attribute effort.
-
#fisco ⇒ Object
readonly
Returns the value of attribute fisco.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#referenced_process ⇒ Object
readonly
Returns the value of attribute referenced_process.
-
#tax_documents_reference ⇒ Object
readonly
Returns the value of attribute tax_documents_reference.
-
#taxpayer ⇒ Object
readonly
Returns the value of attribute taxpayer.
-
#taxpayer_comments ⇒ Object
readonly
Returns the value of attribute taxpayer_comments.
-
#xml_authorized ⇒ Object
readonly
Returns the value of attribute xml_authorized.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ AdditionalInformationResource
constructor
A new instance of AdditionalInformationResource.
Constructor Details
#initialize ⇒ AdditionalInformationResource
Returns a new instance of AdditionalInformationResource.
20 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rbs', line 20
def initialize: (?advance_payment: Array[AdvancePaymentItemResource]?, ?contract: String?, ?effort: String?, ?fisco: String?, ?order: String?, ?referenced_process: Array[ReferencedProcessResource]?, ?tax_documents_reference: Array[TaxDocumentsReferenceResource]?, ?taxpayer: String?, ?taxpayer_comments: Array[TaxpayerCommentsResource]?, ?xml_authorized: Array[Integer]?) -> void
|
Instance Attribute Details
#advance_payment ⇒ Object (readonly)
Returns the value of attribute advance_payment
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def advance_payment @advance_payment end |
#contract ⇒ Object (readonly)
Returns the value of attribute contract
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def contract @contract end |
#effort ⇒ Object (readonly)
Returns the value of attribute effort
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def effort @effort end |
#fisco ⇒ Object (readonly)
Returns the value of attribute fisco
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def fisco @fisco end |
#order ⇒ Object (readonly)
Returns the value of attribute order
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def order @order end |
#referenced_process ⇒ Object (readonly)
Returns the value of attribute referenced_process
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def referenced_process @referenced_process end |
#tax_documents_reference ⇒ Object (readonly)
Returns the value of attribute tax_documents_reference
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def tax_documents_reference @tax_documents_reference end |
#taxpayer ⇒ Object (readonly)
Returns the value of attribute taxpayer
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def taxpayer @taxpayer end |
#taxpayer_comments ⇒ Object (readonly)
Returns the value of attribute taxpayer_comments
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def taxpayer_comments @taxpayer_comments end |
#xml_authorized ⇒ Object (readonly)
Returns the value of attribute xml_authorized
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 9 def @xml_authorized end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( advance_payment: (payload["advancePayment"] || []).map { |e| AdvancePaymentItemResource.from_api(e) }, contract: payload["contract"], effort: payload["effort"], fisco: payload["fisco"], order: payload["order"], referenced_process: (payload["referencedProcess"] || []).map { |e| ReferencedProcessResource.from_api(e) }, tax_documents_reference: (payload["taxDocumentsReference"] || []).map { |e| TaxDocumentsReferenceResource.from_api(e) }, taxpayer: payload["taxpayer"], taxpayer_comments: (payload["taxpayerComments"] || []).map { |e| TaxpayerCommentsResource.from_api(e) }, xml_authorized: payload["xmlAuthorized"], ) end |
.new ⇒ instance
19 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/additional_information_resource.rbs', line 19
def self.new: (?advance_payment: Array[AdvancePaymentItemResource]?, ?contract: String?, ?effort: String?, ?fisco: String?, ?order: String?, ?referenced_process: Array[ReferencedProcessResource]?, ?tax_documents_reference: Array[TaxDocumentsReferenceResource]?, ?taxpayer: String?, ?taxpayer_comments: Array[TaxpayerCommentsResource]?, ?xml_authorized: Array[Integer]?) -> instance
|