Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_CompanyResourceV1

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDFeTech_TaxPayers_Resources_CompanyResourceV1

Returns a new instance of DFeTech_TaxPayers_Resources_CompanyResourceV1.

Parameters:

  • address: (DFeTech_TaxPayers_Domain_Entities_Address)
  • auth_issue_value: (String, nil)
  • certificate: (DFeTech_TaxPayers_Resources_CompanyCertificateV1)
  • company_registry_number: (Integer, nil)
  • created_on: (String, nil)
  • email: (String, nil)
  • environment: (Object)
  • federal_tax_determination: (Object)
  • federal_tax_number: (Integer, nil)
  • fiscal_status: (Object)
  • id: (String, nil)
  • iss_rate: (Float, nil)
  • last_rps_sent: (Integer, nil)
  • legal_nature: (Object)
  • login_name: (String, nil)
  • login_password: (String, nil)
  • modified_on: (String, nil)
  • municipal_tax_determination: (Object)
  • municipal_tax_number: (String, nil)
  • name: (String, nil)
  • openning_date: (String, nil)
  • regional_tax_number: (Integer, nil)
  • rps_number: (Integer, nil)
  • rps_serial_number: (String, nil)
  • special_tax_regime: (Object)
  • status: (Object)
  • tax_regime: (Object)
  • trade_name: (String, nil)


38
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_v1.rbs', line 38

def initialize: (?address: DFeTech_TaxPayers_Domain_Entities_Address, ?auth_issue_value: String?, ?certificate: DFeTech_TaxPayers_Resources_CompanyCertificateV1, ?company_registry_number: Integer?, ?created_on: String?, ?email: String?, ?environment: untyped, ?federal_tax_determination: untyped, ?federal_tax_number: Integer?, ?fiscal_status: untyped, ?id: String?, ?iss_rate: Float?, ?last_rps_sent: Integer?, ?legal_nature: untyped, ?login_name: String?, ?login_password: String?, ?modified_on: String?, ?municipal_tax_determination: untyped, ?municipal_tax_number: String?, ?name: String?, ?openning_date: String?, ?regional_tax_number: Integer?, ?rps_number: Integer?, ?rps_serial_number: String?, ?special_tax_regime: untyped, ?status: untyped, ?tax_regime: untyped, ?trade_name: String?) -> void

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address

Returns:

  • (Object)

    the current value of address



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

def address
  @address
end

#auth_issue_valueObject (readonly)

Returns the value of attribute auth_issue_value

Returns:

  • (Object)

    the current value of auth_issue_value



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

def auth_issue_value
  @auth_issue_value
end

#certificateObject (readonly)

Returns the value of attribute certificate

Returns:

  • (Object)

    the current value of certificate



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

def certificate
  @certificate
end

#company_registry_numberObject (readonly)

Returns the value of attribute company_registry_number

Returns:

  • (Object)

    the current value of company_registry_number



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

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

def created_on
  @created_on
end

#emailObject (readonly)

Returns the value of attribute email

Returns:

  • (Object)

    the current value of email



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

def email
  @email
end

#environmentObject (readonly)

Returns the value of attribute environment

Returns:

  • (Object)

    the current value of environment



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

def environment
  @environment
end

#federal_tax_determinationObject (readonly)

Returns the value of attribute federal_tax_determination

Returns:

  • (Object)

    the current value of federal_tax_determination



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

def federal_tax_determination
  @federal_tax_determination
end

#federal_tax_numberObject (readonly)

Returns the value of attribute federal_tax_number

Returns:

  • (Object)

    the current value of federal_tax_number



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

def federal_tax_number
  @federal_tax_number
end

#fiscal_statusObject (readonly)

Returns the value of attribute fiscal_status

Returns:

  • (Object)

    the current value of fiscal_status



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

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

def id
  @id
end

#iss_rateObject (readonly)

Returns the value of attribute iss_rate

Returns:

  • (Object)

    the current value of iss_rate



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

def iss_rate
  @iss_rate
end

#last_rps_sentObject (readonly)

Returns the value of attribute last_rps_sent

Returns:

  • (Object)

    the current value of last_rps_sent



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

def last_rps_sent
  @last_rps_sent
end

Returns the value of attribute legal_nature

Returns:

  • (Object)

    the current value of legal_nature



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

def legal_nature
  @legal_nature
end

#login_nameObject (readonly)

Returns the value of attribute login_name

Returns:

  • (Object)

    the current value of login_name



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

def 
  @login_name
end

#login_passwordObject (readonly)

Returns the value of attribute login_password

Returns:

  • (Object)

    the current value of login_password



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

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

def modified_on
  @modified_on
end

#municipal_tax_determinationObject (readonly)

Returns the value of attribute municipal_tax_determination

Returns:

  • (Object)

    the current value of municipal_tax_determination



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

def municipal_tax_determination
  @municipal_tax_determination
end

#municipal_tax_numberObject (readonly)

Returns the value of attribute municipal_tax_number

Returns:

  • (Object)

    the current value of municipal_tax_number



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

def municipal_tax_number
  @municipal_tax_number
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

#openning_dateObject (readonly)

Returns the value of attribute openning_date

Returns:

  • (Object)

    the current value of openning_date



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

def openning_date
  @openning_date
end

#regional_tax_numberObject (readonly)

Returns the value of attribute regional_tax_number

Returns:

  • (Object)

    the current value of regional_tax_number



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

def regional_tax_number
  @regional_tax_number
end

#rps_numberObject (readonly)

Returns the value of attribute rps_number

Returns:

  • (Object)

    the current value of rps_number



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

def rps_number
  @rps_number
end

#rps_serial_numberObject (readonly)

Returns the value of attribute rps_serial_number

Returns:

  • (Object)

    the current value of rps_serial_number



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

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

def status
  @status
end

#tax_regimeObject (readonly)

Returns the value of attribute tax_regime

Returns:

  • (Object)

    the current value of tax_regime



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

def tax_regime
  @tax_regime
end

#trade_nameObject (readonly)

Returns the value of attribute trade_name

Returns:

  • (Object)

    the current value of trade_name



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

def trade_name
  @trade_name
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
32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_v1.rb', line 10

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

  new(
    address: DFeTech_TaxPayers_Domain_Entities_Address.from_api(payload["address"]),
    auth_issue_value: payload["authIssueValue"],
    certificate: DFeTech_TaxPayers_Resources_CompanyCertificateV1.from_api(payload["certificate"]),
    company_registry_number: payload["companyRegistryNumber"],
    created_on: payload["createdOn"],
    email: payload["email"],
    environment: payload["environment"],
    federal_tax_determination: payload["federalTaxDetermination"],
    federal_tax_number: payload["federalTaxNumber"],
    fiscal_status: payload["fiscalStatus"],
    id: payload["id"],
    iss_rate: payload["issRate"],
    last_rps_sent: payload["lastRpsSent"],
    legal_nature: payload["legalNature"],
    login_name: payload["loginName"],
    login_password: payload["loginPassword"],
    modified_on: payload["modifiedOn"],
    municipal_tax_determination: payload["municipalTaxDetermination"],
    municipal_tax_number: payload["municipalTaxNumber"],
    name: payload["name"],
    openning_date: payload["openningDate"],
    regional_tax_number: payload["regionalTaxNumber"],
    rps_number: payload["rpsNumber"],
    rps_serial_number: payload["rpsSerialNumber"],
    special_tax_regime: payload["specialTaxRegime"],
    status: payload["status"],
    tax_regime: payload["taxRegime"],
    trade_name: payload["tradeName"],
  )
end

.newinstance

Parameters:

  • address: (DFeTech_TaxPayers_Domain_Entities_Address)
  • auth_issue_value: (String, nil)
  • certificate: (DFeTech_TaxPayers_Resources_CompanyCertificateV1)
  • company_registry_number: (Integer, nil)
  • created_on: (String, nil)
  • email: (String, nil)
  • environment: (Object)
  • federal_tax_determination: (Object)
  • federal_tax_number: (Integer, nil)
  • fiscal_status: (Object)
  • id: (String, nil)
  • iss_rate: (Float, nil)
  • last_rps_sent: (Integer, nil)
  • legal_nature: (Object)
  • login_name: (String, nil)
  • login_password: (String, nil)
  • modified_on: (String, nil)
  • municipal_tax_determination: (Object)
  • municipal_tax_number: (String, nil)
  • name: (String, nil)
  • openning_date: (String, nil)
  • regional_tax_number: (Integer, nil)
  • rps_number: (Integer, nil)
  • rps_serial_number: (String, nil)
  • special_tax_regime: (Object)
  • status: (Object)
  • tax_regime: (Object)
  • trade_name: (String, nil)

Returns:

  • (instance)


37
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_v1.rbs', line 37

def self.new: (?address: DFeTech_TaxPayers_Domain_Entities_Address, ?auth_issue_value: String?, ?certificate: DFeTech_TaxPayers_Resources_CompanyCertificateV1, ?company_registry_number: Integer?, ?created_on: String?, ?email: String?, ?environment: untyped, ?federal_tax_determination: untyped, ?federal_tax_number: Integer?, ?fiscal_status: untyped, ?id: String?, ?iss_rate: Float?, ?last_rps_sent: Integer?, ?legal_nature: untyped, ?login_name: String?, ?login_password: String?, ?modified_on: String?, ?municipal_tax_determination: untyped, ?municipal_tax_number: String?, ?name: String?, ?openning_date: String?, ?regional_tax_number: Integer?, ?rps_number: Integer?, ?rps_serial_number: String?, ?special_tax_regime: untyped, ?status: untyped, ?tax_regime: untyped, ?trade_name: String?) -> instance