Class: Nfe::Generated::ConsultaDfeDistribuicaoV2::EnableInboundProductInvoiceResource

Inherits:
Data
  • Object
show all
Defined in:
lib/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rb,
sig/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEnableInboundProductInvoiceResource

Returns a new instance of EnableInboundProductInvoiceResource.

Parameters:

  • automatic_manifesting: (Hash[String, untyped])
  • environment_sefaz: (String)
  • start_from_date: (String)
  • start_from_nsu: (Integer)


14
# File 'sig/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rbs', line 14

def initialize: (?automatic_manifesting: Hash[String, untyped], ?environment_sefaz: String, ?start_from_date: String, ?start_from_nsu: Integer) -> void

Instance Attribute Details

#automatic_manifestingObject (readonly)

Returns the value of attribute automatic_manifesting

Returns:

  • (Object)

    the current value of automatic_manifesting



9
10
11
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rb', line 9

def automatic_manifesting
  @automatic_manifesting
end

#environment_sefazObject (readonly)

Returns the value of attribute environment_sefaz

Returns:

  • (Object)

    the current value of environment_sefaz



9
10
11
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rb', line 9

def environment_sefaz
  @environment_sefaz
end

#start_from_dateObject (readonly)

Returns the value of attribute start_from_date

Returns:

  • (Object)

    the current value of start_from_date



9
10
11
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rb', line 9

def start_from_date
  @start_from_date
end

#start_from_nsuObject (readonly)

Returns the value of attribute start_from_nsu

Returns:

  • (Object)

    the current value of start_from_nsu



9
10
11
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rb', line 9

def start_from_nsu
  @start_from_nsu
end

Class Method Details

.from_api(payload) ⇒ instance?

Parameters:

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

Returns:

  • (instance, nil)


10
11
12
13
14
15
16
17
18
19
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rb', line 10

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

  new(
    automatic_manifesting: payload["automaticManifesting"],
    environment_sefaz: payload["environmentSEFAZ"],
    start_from_date: payload["startFromDate"],
    start_from_nsu: payload["startFromNsu"],
  )
end

.newinstance

Parameters:

  • automatic_manifesting: (Hash[String, untyped])
  • environment_sefaz: (String)
  • start_from_date: (String)
  • start_from_nsu: (Integer)

Returns:

  • (instance)


13
# File 'sig/nfe/generated/consulta_dfe_distribuicao_v2/enable_inbound_product_invoice_resource.rbs', line 13

def self.new: (?automatic_manifesting: Hash[String, untyped], ?environment_sefaz: String, ?start_from_date: String, ?start_from_nsu: Integer) -> instance