Class: Nfe::Generated::ConsultaNfeDistribuicaoV1::Sucessonarequisio6
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ConsultaNfeDistribuicaoV1::Sucessonarequisio6
- Defined in:
- lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb,
sig/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rbs
Instance Attribute Summary collapse
-
#access_key ⇒ Object
readonly
Returns the value of attribute access_key.
-
#buyer ⇒ Object
readonly
Returns the value of attribute buyer.
-
#company ⇒ Object
readonly
Returns the value of attribute company.
-
#created_on ⇒ Object
readonly
Returns the value of attribute created_on.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#federal_tax_number_sender ⇒ Object
readonly
Returns the value of attribute federal_tax_number_sender.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#issued_on ⇒ Object
readonly
Returns the value of attribute issued_on.
-
#issuer ⇒ Object
readonly
Returns the value of attribute issuer.
-
#links ⇒ Object
readonly
Returns the value of attribute links.
-
#name_sender ⇒ Object
readonly
Returns the value of attribute name_sender.
-
#nfe_number ⇒ Object
readonly
Returns the value of attribute nfe_number.
-
#nsu ⇒ Object
readonly
Returns the value of attribute nsu.
-
#parent_access_key ⇒ Object
readonly
Returns the value of attribute parent_access_key.
-
#product_invoices ⇒ Object
readonly
Returns the value of attribute product_invoices.
-
#total_invoice_amount ⇒ Object
readonly
Returns the value of attribute total_invoice_amount.
-
#transportation ⇒ Object
readonly
Returns the value of attribute transportation.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#xml_url ⇒ Object
readonly
Returns the value of attribute xml_url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Sucessonarequisio6
constructor
A new instance of Sucessonarequisio6.
Constructor Details
#initialize ⇒ Sucessonarequisio6
Returns a new instance of Sucessonarequisio6.
29 |
# File 'sig/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rbs', line 29
def initialize: (access_key: String, buyer: Buyer, company: Company, created_on: String, description: String, federal_tax_number_sender: String, id: String, issued_on: String, issuer: Issuer, links: Links, name_sender: String, nfe_number: String, nsu: String, parent_access_key: String, product_invoices: Array[ProductInvoice], total_invoice_amount: String, transportation: Transportation, ?type: String?, xml_url: String) -> void
|
Instance Attribute Details
#access_key ⇒ Object (readonly)
Returns the value of attribute access_key
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def access_key @access_key end |
#buyer ⇒ Object (readonly)
Returns the value of attribute buyer
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def buyer @buyer end |
#company ⇒ Object (readonly)
Returns the value of attribute company
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def company @company end |
#created_on ⇒ Object (readonly)
Returns the value of attribute created_on
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def created_on @created_on end |
#description ⇒ Object (readonly)
Returns the value of attribute description
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def description @description end |
#federal_tax_number_sender ⇒ Object (readonly)
Returns the value of attribute federal_tax_number_sender
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def federal_tax_number_sender @federal_tax_number_sender end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def id @id end |
#issued_on ⇒ Object (readonly)
Returns the value of attribute issued_on
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def issued_on @issued_on end |
#issuer ⇒ Object (readonly)
Returns the value of attribute issuer
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def issuer @issuer end |
#links ⇒ Object (readonly)
Returns the value of attribute links
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def links @links end |
#name_sender ⇒ Object (readonly)
Returns the value of attribute name_sender
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def name_sender @name_sender end |
#nfe_number ⇒ Object (readonly)
Returns the value of attribute nfe_number
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def nfe_number @nfe_number end |
#nsu ⇒ Object (readonly)
Returns the value of attribute nsu
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def nsu @nsu end |
#parent_access_key ⇒ Object (readonly)
Returns the value of attribute parent_access_key
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def parent_access_key @parent_access_key end |
#product_invoices ⇒ Object (readonly)
Returns the value of attribute product_invoices
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def product_invoices @product_invoices end |
#total_invoice_amount ⇒ Object (readonly)
Returns the value of attribute total_invoice_amount
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def total_invoice_amount @total_invoice_amount end |
#transportation ⇒ Object (readonly)
Returns the value of attribute transportation
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def transportation @transportation end |
#type ⇒ Object (readonly)
Returns the value of attribute type
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def type @type end |
#xml_url ⇒ Object (readonly)
Returns the value of attribute xml_url
9 10 11 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 9 def xml_url @xml_url 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 |
# File 'lib/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( access_key: payload["accessKey"], buyer: Buyer.from_api(payload["buyer"]), company: Company.from_api(payload["company"]), created_on: payload["createdOn"], description: payload["description"], federal_tax_number_sender: payload["federalTaxNumberSender"], id: payload["id"], issued_on: payload["issuedOn"], issuer: Issuer.from_api(payload["issuer"]), links: Links.from_api(payload["links"]), name_sender: payload["nameSender"], nfe_number: payload["nfeNumber"], nsu: payload["nsu"], parent_access_key: payload["parentAccessKey"], product_invoices: (payload["productInvoices"] || []).map { |e| ProductInvoice.from_api(e) }, total_invoice_amount: payload["totalInvoiceAmount"], transportation: Transportation.from_api(payload["transportation"]), type: payload["type"], xml_url: payload["xmlUrl"], ) end |
.new ⇒ instance
28 |
# File 'sig/nfe/generated/consulta_nfe_distribuicao_v1/sucessonarequisio6.rbs', line 28
def self.new: (access_key: String, buyer: Buyer, company: Company, created_on: String, description: String, federal_tax_number_sender: String, id: String, issued_on: String, issuer: Issuer, links: Links, name_sender: String, nfe_number: String, nsu: String, parent_access_key: String, product_invoices: Array[ProductInvoice], total_invoice_amount: String, transportation: Transportation, ?type: String?, xml_url: String) -> instance
|