Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_StateTaxSwitchAuthorizerRequest

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDFeTech_TaxPayers_Resources_StateTaxSwitchAuthorizerRequest

Returns a new instance of DFeTech_TaxPayers_Resources_StateTaxSwitchAuthorizerRequest.

Parameters:

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


12
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_request.rbs', line 12

def initialize: (?authorizer: untyped, ?reason: 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/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_request.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/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_request.rb', line 9

def reason
  @reason
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
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_request.rb', line 10

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

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

.newinstance

Parameters:

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

Returns:

  • (instance)


11
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_request.rbs', line 11

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