Class: Nfe::Generated::ConsultaDfeDistribuicaoV2::EnableTransportationInvoiceInboundResource

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEnableTransportationInvoiceInboundResource

Returns a new instance of EnableTransportationInvoiceInboundResource.

Parameters:

  • environment_sefaz: (String)
  • start_from_date: (String)
  • start_from_nsu: (Integer)


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

def initialize: (?environment_sefaz: String, ?start_from_date: String, ?start_from_nsu: Integer) -> void

Instance Attribute Details

#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_transportation_invoice_inbound_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_transportation_invoice_inbound_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_transportation_invoice_inbound_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
# File 'lib/nfe/generated/consulta_dfe_distribuicao_v2/enable_transportation_invoice_inbound_resource.rb', line 10

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

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

.newinstance

Parameters:

  • environment_sefaz: (String)
  • start_from_date: (String)
  • start_from_nsu: (Integer)

Returns:

  • (instance)


12
# File 'sig/nfe/generated/consulta_dfe_distribuicao_v2/enable_transportation_invoice_inbound_resource.rbs', line 12

def self.new: (?environment_sefaz: String, ?start_from_date: String, ?start_from_nsu: Integer) -> instance