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