Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_CreateStateTaxResourceItem

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDFeTech_TaxPayers_Resources_CreateStateTaxResourceItem

Returns a new instance of DFeTech_TaxPayers_Resources_CreateStateTaxResourceItem.

Parameters:



19
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_state_tax_resource_item.rbs', line 19

def initialize: (code: untyped, ?environment_type: untyped, ?number: Integer?, ?processing_details: DFeTech_TaxPayers_Resources_CreateStateTaxProcessingDetailsResource, ?security_credential: DFeTech_TaxPayers_Domain_Entities_SecurityCredential, ?serie: Integer?, ?special_tax_regime: untyped, tax_number: String, type: untyped) -> void

Instance Attribute Details

#codeObject (readonly)

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



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

def code
  @code
end

#environment_typeObject (readonly)

Returns the value of attribute environment_type

Returns:

  • (Object)

    the current value of environment_type



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

def environment_type
  @environment_type
end

#numberObject (readonly)

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



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

def number
  @number
end

#processing_detailsObject (readonly)

Returns the value of attribute processing_details

Returns:

  • (Object)

    the current value of processing_details



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

def processing_details
  @processing_details
end

#security_credentialObject (readonly)

Returns the value of attribute security_credential

Returns:

  • (Object)

    the current value of security_credential



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

def security_credential
  @security_credential
end

#serieObject (readonly)

Returns the value of attribute serie

Returns:

  • (Object)

    the current value of serie



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

def serie
  @serie
end

#special_tax_regimeObject (readonly)

Returns the value of attribute special_tax_regime

Returns:

  • (Object)

    the current value of special_tax_regime



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

def special_tax_regime
  @special_tax_regime
end

#tax_numberObject (readonly)

Returns the value of attribute tax_number

Returns:

  • (Object)

    the current value of tax_number



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

def tax_number
  @tax_number
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



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

def type
  @type
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
20
21
22
23
24
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_state_tax_resource_item.rb', line 10

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

  new(
    code: payload["code"],
    environment_type: payload["environmentType"],
    number: payload["number"],
    processing_details: DFeTech_TaxPayers_Resources_CreateStateTaxProcessingDetailsResource.from_api(payload["processingDetails"]),
    security_credential: DFeTech_TaxPayers_Domain_Entities_SecurityCredential.from_api(payload["securityCredential"]),
    serie: payload["serie"],
    special_tax_regime: payload["specialTaxRegime"],
    tax_number: payload["taxNumber"],
    type: payload["type"],
  )
end

.newinstance

Parameters:

Returns:

  • (instance)


18
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_state_tax_resource_item.rbs', line 18

def self.new: (code: untyped, ?environment_type: untyped, ?number: Integer?, ?processing_details: DFeTech_TaxPayers_Resources_CreateStateTaxProcessingDetailsResource, ?security_credential: DFeTech_TaxPayers_Domain_Entities_SecurityCredential, ?serie: Integer?, ?special_tax_regime: untyped, tax_number: String, type: untyped) -> instance