Class: Nfe::Generated::ConsultaDfeDistribuicaoV2::BuyerResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ConsultaDfeDistribuicaoV2::BuyerResource
- Defined in:
- lib/nfe/generated/consulta_dfe_distribuicao_v2/buyer_resource.rb,
sig/nfe/generated/consulta_dfe_distribuicao_v2/buyer_resource.rbs
Instance Attribute Summary collapse
-
#federal_tax_number ⇒ Object
readonly
Returns the value of attribute federal_tax_number.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ BuyerResource
constructor
A new instance of BuyerResource.
Constructor Details
#initialize ⇒ BuyerResource
Returns a new instance of BuyerResource.
12 |
# File 'sig/nfe/generated/consulta_dfe_distribuicao_v2/buyer_resource.rbs', line 12
def initialize: (?federal_tax_number: String, ?name: String) -> void
|
Instance Attribute Details
#federal_tax_number ⇒ Object (readonly)
Returns the value of attribute federal_tax_number
9 10 11 |
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/buyer_resource.rb', line 9 def federal_tax_number @federal_tax_number end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/buyer_resource.rb', line 9 def name @name end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 |
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/buyer_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( federal_tax_number: payload["federalTaxNumber"], name: payload["name"], ) end |
.new ⇒ instance
11 |
# File 'sig/nfe/generated/consulta_dfe_distribuicao_v2/buyer_resource.rbs', line 11
def self.new: (?federal_tax_number: String, ?name: String) -> instance
|