Class: Nfe::TaxCoupon::AdditionalInformation
- Inherits:
-
Data
- Object
- Data
- Nfe::TaxCoupon::AdditionalInformation
- 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
-
#taxpayer ⇒ Object
readonly
Returns the value of attribute taxpayer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ AdditionalInformation
constructor
A new instance of AdditionalInformation.
Constructor Details
#initialize ⇒ AdditionalInformation
Returns a new instance of AdditionalInformation.
59 |
# File 'sig/nfe/resources/dto/consumer_invoice_query/tax_coupon.rbs', line 59
def initialize: (taxpayer: untyped) -> void
|
Instance Attribute Details
#taxpayer ⇒ Object (readonly)
Returns the value of attribute taxpayer.
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?
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 |
.new ⇒ instance
58 |
# File 'sig/nfe/resources/dto/consumer_invoice_query/tax_coupon.rbs', line 58
def self.new: (taxpayer: untyped) -> instance
|