Class: Nfe::TaxCoupon::AdditionalInformation

Inherits:
Data
  • Object
show all
Defined in:
lib/nfe/resources/dto/consumer_invoice_query/tax_coupon.rb,
sig/nfe/resources/dto/consumer_invoice_query/tax_coupon.rbs

Overview

Free-form additional information block (+infAdic+).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAdditionalInformation

Returns a new instance of AdditionalInformation.

Parameters:

  • taxpayer: (Object)


59
# File 'sig/nfe/resources/dto/consumer_invoice_query/tax_coupon.rbs', line 59

def initialize: (taxpayer: untyped) -> void

Instance Attribute Details

#taxpayerObject (readonly)

Returns the value of attribute taxpayer.

Returns:

  • (Object)


55
56
57
# File 'sig/nfe/resources/dto/consumer_invoice_query/tax_coupon.rbs', line 55

def taxpayer
  @taxpayer
end

Class Method Details

.from_api(payload) ⇒ Nfe::TaxCoupon::AdditionalInformation?

Parameters:

  • payload (Hash[untyped, untyped], nil)

Returns:



108
109
110
111
112
113
114
# File 'lib/nfe/resources/dto/consumer_invoice_query/tax_coupon.rb', line 108

def self.from_api(payload)
  return nil if payload.nil?

  new(
    taxpayer: payload["taxpayer"]
  )
end

.newinstance

Parameters:

  • taxpayer: (Object)

Returns:

  • (instance)


58
# File 'sig/nfe/resources/dto/consumer_invoice_query/tax_coupon.rbs', line 58

def self.new: (taxpayer: untyped) -> instance