Class: Nfe::Generated::NfConsumidorV2::ContingencyDetails

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeContingencyDetails

Returns a new instance of ContingencyDetails.

Parameters:

  • authorizer: (Object)
  • reason: (String, nil)
  • started_on: (String)


13
# File 'sig/nfe/generated/nf_consumidor_v2/contingency_details.rbs', line 13

def initialize: (?authorizer: untyped, ?reason: String?, ?started_on: String) -> void

Instance Attribute Details

#authorizerObject (readonly)

Returns the value of attribute authorizer

Returns:

  • (Object)

    the current value of authorizer



9
10
11
# File 'lib/nfe/generated/nf_consumidor_v2/contingency_details.rb', line 9

def authorizer
  @authorizer
end

#reasonObject (readonly)

Returns the value of attribute reason

Returns:

  • (Object)

    the current value of reason



9
10
11
# File 'lib/nfe/generated/nf_consumidor_v2/contingency_details.rb', line 9

def reason
  @reason
end

#started_onObject (readonly)

Returns the value of attribute started_on

Returns:

  • (Object)

    the current value of started_on



9
10
11
# File 'lib/nfe/generated/nf_consumidor_v2/contingency_details.rb', line 9

def started_on
  @started_on
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/nf_consumidor_v2/contingency_details.rb', line 10

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

  new(
    authorizer: payload["authorizer"],
    reason: payload["reason"],
    started_on: payload["startedOn"],
  )
end

.newinstance

Parameters:

  • authorizer: (Object)
  • reason: (String, nil)
  • started_on: (String)

Returns:

  • (instance)


12
# File 'sig/nfe/generated/nf_consumidor_v2/contingency_details.rbs', line 12

def self.new: (?authorizer: untyped, ?reason: String?, ?started_on: String) -> instance