Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_StateTaxSwitchAuthorizerResponse

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDFeTech_TaxPayers_Resources_StateTaxSwitchAuthorizerResponse

Returns a new instance of DFeTech_TaxPayers_Resources_StateTaxSwitchAuthorizerResponse.

Parameters:

  • from_authorizer: (Object)
  • modified_on: (String)
  • reason: (String, nil)
  • to_authorizer: (Object)


14
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_response.rbs', line 14

def initialize: (?from_authorizer: untyped, ?modified_on: String, ?reason: String?, ?to_authorizer: untyped) -> void

Instance Attribute Details

#from_authorizerObject (readonly)

Returns the value of attribute from_authorizer

Returns:

  • (Object)

    the current value of from_authorizer



9
10
11
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_response.rb', line 9

def from_authorizer
  @from_authorizer
end

#modified_onObject (readonly)

Returns the value of attribute modified_on

Returns:

  • (Object)

    the current value of modified_on



9
10
11
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_response.rb', line 9

def modified_on
  @modified_on
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_response.rb', line 9

def reason
  @reason
end

#to_authorizerObject (readonly)

Returns the value of attribute to_authorizer

Returns:

  • (Object)

    the current value of to_authorizer



9
10
11
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_response.rb', line 9

def to_authorizer
  @to_authorizer
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/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_response.rb', line 10

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

  new(
    from_authorizer: payload["fromAuthorizer"],
    modified_on: payload["modifiedOn"],
    reason: payload["reason"],
    to_authorizer: payload["toAuthorizer"],
  )
end

.newinstance

Parameters:

  • from_authorizer: (Object)
  • modified_on: (String)
  • reason: (String, nil)
  • to_authorizer: (Object)

Returns:

  • (instance)


13
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_switch_authorizer_response.rbs', line 13

def self.new: (?from_authorizer: untyped, ?modified_on: String, ?reason: String?, ?to_authorizer: untyped) -> instance