Class: Nfe::Generated::ProductInvoiceRtcV1::ImportDeclarationResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::ImportDeclarationResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rbs
Instance Attribute Summary collapse
-
#acquirer_federal_tax_number ⇒ Object
readonly
Returns the value of attribute acquirer_federal_tax_number.
-
#additions ⇒ Object
readonly
Returns the value of attribute additions.
-
#afrmm_amount ⇒ Object
readonly
Returns the value of attribute afrmm_amount.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#customs_clearance_name ⇒ Object
readonly
Returns the value of attribute customs_clearance_name.
-
#customs_clearance_state ⇒ Object
readonly
Returns the value of attribute customs_clearance_state.
-
#customs_clearanced_on ⇒ Object
readonly
Returns the value of attribute customs_clearanced_on.
-
#exporter ⇒ Object
readonly
Returns the value of attribute exporter.
-
#intermediation ⇒ Object
readonly
Returns the value of attribute intermediation.
-
#international_transport ⇒ Object
readonly
Returns the value of attribute international_transport.
-
#registered_on ⇒ Object
readonly
Returns the value of attribute registered_on.
-
#state_third ⇒ Object
readonly
Returns the value of attribute state_third.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ ImportDeclarationResource
constructor
A new instance of ImportDeclarationResource.
Constructor Details
#initialize ⇒ ImportDeclarationResource
Returns a new instance of ImportDeclarationResource.
22 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rbs', line 22
def initialize: (?acquirer_federal_tax_number: String?, ?additions: Array[AdditionResource]?, ?afrmm_amount: Float?, ?code: String?, ?customs_clearance_name: String?, ?customs_clearance_state: untyped, ?customs_clearanced_on: String?, ?exporter: String?, ?intermediation: untyped, ?international_transport: untyped, ?registered_on: String?, ?state_third: String?) -> void
|
Instance Attribute Details
#acquirer_federal_tax_number ⇒ Object (readonly)
Returns the value of attribute acquirer_federal_tax_number
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def acquirer_federal_tax_number @acquirer_federal_tax_number end |
#additions ⇒ Object (readonly)
Returns the value of attribute additions
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def additions @additions end |
#afrmm_amount ⇒ Object (readonly)
Returns the value of attribute afrmm_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def afrmm_amount @afrmm_amount end |
#code ⇒ Object (readonly)
Returns the value of attribute code
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def code @code end |
#customs_clearance_name ⇒ Object (readonly)
Returns the value of attribute customs_clearance_name
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def customs_clearance_name @customs_clearance_name end |
#customs_clearance_state ⇒ Object (readonly)
Returns the value of attribute customs_clearance_state
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def customs_clearance_state @customs_clearance_state end |
#customs_clearanced_on ⇒ Object (readonly)
Returns the value of attribute customs_clearanced_on
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def customs_clearanced_on @customs_clearanced_on end |
#exporter ⇒ Object (readonly)
Returns the value of attribute exporter
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def exporter @exporter end |
#intermediation ⇒ Object (readonly)
Returns the value of attribute intermediation
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def intermediation @intermediation end |
#international_transport ⇒ Object (readonly)
Returns the value of attribute international_transport
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def international_transport @international_transport end |
#registered_on ⇒ Object (readonly)
Returns the value of attribute registered_on
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def registered_on @registered_on end |
#state_third ⇒ Object (readonly)
Returns the value of attribute state_third
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 9 def state_third @state_third end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( acquirer_federal_tax_number: payload["acquirerFederalTaxNumber"], additions: (payload["additions"] || []).map { |e| AdditionResource.from_api(e) }, afrmm_amount: payload["afrmmAmount"], code: payload["code"], customs_clearance_name: payload["customsClearanceName"], customs_clearance_state: payload["customsClearanceState"], customs_clearanced_on: payload["customsClearancedOn"], exporter: payload["exporter"], intermediation: payload["intermediation"], international_transport: payload["internationalTransport"], registered_on: payload["registeredOn"], state_third: payload["stateThird"], ) end |
.new ⇒ instance
21 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/import_declaration_resource.rbs', line 21
def self.new: (?acquirer_federal_tax_number: String?, ?additions: Array[AdditionResource]?, ?afrmm_amount: Float?, ?code: String?, ?customs_clearance_name: String?, ?customs_clearance_state: untyped, ?customs_clearanced_on: String?, ?exporter: String?, ?intermediation: untyped, ?international_transport: untyped, ?registered_on: String?, ?state_third: String?) -> instance
|