Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_StateTaxResourceItem

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDFeTech_TaxPayers_Resources_StateTaxResourceItem

Returns a new instance of DFeTech_TaxPayers_Resources_StateTaxResourceItem.

Parameters:



26
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_resource_item.rbs', line 26

def initialize: (?account_id: String?, code: untyped, ?company_id: String?, ?created_on: String, ?environment_type: untyped, ?id: String?, ?modified_on: String?, ?number: Integer?, ?processing_details: DFeTech_TaxPayers_Resources_CreateStateTaxProcessingDetailsResource, ?security_credential: DFeTech_TaxPayers_Domain_Entities_SecurityCredential, ?serie: Integer?, ?series: Array[Integer]?, ?special_tax_regime: untyped, ?status: untyped, tax_number: String, type: untyped) -> void

Instance Attribute Details

#account_idObject (readonly)

Returns the value of attribute account_id

Returns:

  • (Object)

    the current value of account_id



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

def 
  @account_id
end

#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_state_tax_resource_item.rb', line 9

def code
  @code
end

#company_idObject (readonly)

Returns the value of attribute company_id

Returns:

  • (Object)

    the current value of company_id



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

def company_id
  @company_id
end

#created_onObject (readonly)

Returns the value of attribute created_on

Returns:

  • (Object)

    the current value of created_on



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

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

def environment_type
  @environment_type
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



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

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

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

def serie
  @serie
end

#seriesObject (readonly)

Returns the value of attribute series

Returns:

  • (Object)

    the current value of series



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

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

def special_tax_regime
  @special_tax_regime
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



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

def status
  @status
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_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_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
25
26
27
28
29
30
31
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_resource_item.rb', line 10

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

  new(
    account_id: payload["accountId"],
    code: payload["code"],
    company_id: payload["companyId"],
    created_on: payload["createdOn"],
    environment_type: payload["environmentType"],
    id: payload["id"],
    modified_on: payload["modifiedOn"],
    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"],
    series: payload["series"],
    special_tax_regime: payload["specialTaxRegime"],
    status: payload["status"],
    tax_number: payload["taxNumber"],
    type: payload["type"],
  )
end

.newinstance

Parameters:

Returns:

  • (instance)


25
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_state_tax_resource_item.rbs', line 25

def self.new: (?account_id: String?, code: untyped, ?company_id: String?, ?created_on: String, ?environment_type: untyped, ?id: String?, ?modified_on: String?, ?number: Integer?, ?processing_details: DFeTech_TaxPayers_Resources_CreateStateTaxProcessingDetailsResource, ?security_credential: DFeTech_TaxPayers_Domain_Entities_SecurityCredential, ?serie: Integer?, ?series: Array[Integer]?, ?special_tax_regime: untyped, ?status: untyped, tax_number: String, type: untyped) -> instance