Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_CompanyResourceItem
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_CompanyResourceItem
- Defined in:
- lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb,
sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rbs
Instance Attribute Summary collapse
-
#account_id ⇒ Object
readonly
Returns the value of attribute account_id.
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#created_on ⇒ Object
readonly
Returns the value of attribute created_on.
-
#federal_tax_number ⇒ Object
readonly
Returns the value of attribute federal_tax_number.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#modified_on ⇒ Object
readonly
Returns the value of attribute modified_on.
-
#municipal_tax_number ⇒ Object
readonly
Returns the value of attribute municipal_tax_number.
-
#municipal_taxes ⇒ Object
readonly
Returns the value of attribute municipal_taxes.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#state_taxes ⇒ Object
readonly
Returns the value of attribute state_taxes.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#tax_regime ⇒ Object
readonly
Returns the value of attribute tax_regime.
-
#trade_name ⇒ Object
readonly
Returns the value of attribute trade_name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ DFeTech_TaxPayers_Resources_CompanyResourceItem
constructor
A new instance of DFeTech_TaxPayers_Resources_CompanyResourceItem.
Constructor Details
#initialize ⇒ DFeTech_TaxPayers_Resources_CompanyResourceItem
Returns a new instance of DFeTech_TaxPayers_Resources_CompanyResourceItem.
23 |
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rbs', line 23
def initialize: (?account_id: String?, address: DFeTech_TaxPayers_Resources_AddressResource, ?created_on: String, federal_tax_number: Integer, ?id: String?, ?modified_on: String?, ?municipal_tax_number: String?, ?municipal_taxes: Array[String]?, name: String, ?state_taxes: Array[String]?, ?status: untyped, tax_regime: untyped, ?trade_name: String?) -> void
|
Instance Attribute Details
#account_id ⇒ Object (readonly)
Returns the value of attribute account_id
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def account_id @account_id end |
#address ⇒ Object (readonly)
Returns the value of attribute address
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def address @address end |
#created_on ⇒ Object (readonly)
Returns the value of attribute created_on
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def created_on @created_on end |
#federal_tax_number ⇒ Object (readonly)
Returns the value of attribute federal_tax_number
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def federal_tax_number @federal_tax_number end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def id @id end |
#modified_on ⇒ Object (readonly)
Returns the value of attribute modified_on
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def modified_on @modified_on end |
#municipal_tax_number ⇒ Object (readonly)
Returns the value of attribute municipal_tax_number
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def municipal_tax_number @municipal_tax_number end |
#municipal_taxes ⇒ Object (readonly)
Returns the value of attribute municipal_taxes
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def municipal_taxes @municipal_taxes end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def name @name end |
#state_taxes ⇒ Object (readonly)
Returns the value of attribute state_taxes
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def state_taxes @state_taxes end |
#status ⇒ Object (readonly)
Returns the value of attribute status
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def status @status end |
#tax_regime ⇒ Object (readonly)
Returns the value of attribute tax_regime
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def tax_regime @tax_regime end |
#trade_name ⇒ Object (readonly)
Returns the value of attribute trade_name
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 9 def trade_name @trade_name end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( account_id: payload["accountId"], address: DFeTech_TaxPayers_Resources_AddressResource.from_api(payload["address"]), created_on: payload["createdOn"], federal_tax_number: payload["federalTaxNumber"], id: payload["id"], modified_on: payload["modifiedOn"], municipal_tax_number: payload["municipalTaxNumber"], municipal_taxes: payload["municipalTaxes"], name: payload["name"], state_taxes: payload["stateTaxes"], status: payload["status"], tax_regime: payload["taxRegime"], trade_name: payload["tradeName"], ) end |
.new ⇒ instance
22 |
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_company_resource_item.rbs', line 22
def self.new: (?account_id: String?, address: DFeTech_TaxPayers_Resources_AddressResource, ?created_on: String, federal_tax_number: Integer, ?id: String?, ?modified_on: String?, ?municipal_tax_number: String?, ?municipal_taxes: Array[String]?, name: String, ?state_taxes: Array[String]?, ?status: untyped, tax_regime: untyped, ?trade_name: String?) -> instance
|