Class: Nfe::Generated::ProductInvoiceRtcV1::TaxCouponInformationResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::TaxCouponInformationResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/tax_coupon_information_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/tax_coupon_information_resource.rbs
Instance Attribute Summary collapse
-
#model_document_fiscal ⇒ Object
readonly
Returns the value of attribute model_document_fiscal.
-
#order_count_operation ⇒ Object
readonly
Returns the value of attribute order_count_operation.
-
#order_ecf ⇒ Object
readonly
Returns the value of attribute order_ecf.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TaxCouponInformationResource
constructor
A new instance of TaxCouponInformationResource.
Constructor Details
#initialize ⇒ TaxCouponInformationResource
Returns a new instance of TaxCouponInformationResource.
13 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/tax_coupon_information_resource.rbs', line 13
def initialize: (?model_document_fiscal: String?, ?order_count_operation: Integer?, ?order_ecf: String?) -> void
|
Instance Attribute Details
#model_document_fiscal ⇒ Object (readonly)
Returns the value of attribute model_document_fiscal
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/tax_coupon_information_resource.rb', line 9 def model_document_fiscal @model_document_fiscal end |
#order_count_operation ⇒ Object (readonly)
Returns the value of attribute order_count_operation
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/tax_coupon_information_resource.rb', line 9 def order_count_operation @order_count_operation end |
#order_ecf ⇒ Object (readonly)
Returns the value of attribute order_ecf
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/tax_coupon_information_resource.rb', line 9 def order_ecf @order_ecf end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/tax_coupon_information_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( model_document_fiscal: payload["modelDocumentFiscal"], order_count_operation: payload["orderCountOperation"], order_ecf: payload["orderECF"], ) end |
.new ⇒ instance
12 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/tax_coupon_information_resource.rbs', line 12
def self.new: (?model_document_fiscal: String?, ?order_count_operation: Integer?, ?order_ecf: String?) -> instance
|