Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_CreateCompanyResourceItem
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_CreateCompanyResourceItem
- Defined in:
- lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_company_resource_item.rb,
sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_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.
-
#federal_tax_number ⇒ Object
readonly
Returns the value of attribute federal_tax_number.
-
#municipal_tax_number ⇒ Object
readonly
Returns the value of attribute municipal_tax_number.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#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_CreateCompanyResourceItem
constructor
A new instance of DFeTech_TaxPayers_Resources_CreateCompanyResourceItem.
Constructor Details
#initialize ⇒ DFeTech_TaxPayers_Resources_CreateCompanyResourceItem
Returns a new instance of DFeTech_TaxPayers_Resources_CreateCompanyResourceItem.
17 |
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_company_resource_item.rbs', line 17
def initialize: (?account_id: String?, address: DFeTech_TaxPayers_Resources_AddressResource, federal_tax_number: Integer, ?municipal_tax_number: String?, name: String, 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_create_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_create_company_resource_item.rb', line 9 def address @address 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_create_company_resource_item.rb', line 9 def federal_tax_number @federal_tax_number 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_create_company_resource_item.rb', line 9 def municipal_tax_number @municipal_tax_number end |
#name ⇒ Object (readonly)
Returns the value of attribute name
9 10 11 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_company_resource_item.rb', line 9 def name @name 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_create_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_create_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 |
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_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"]), federal_tax_number: payload["federalTaxNumber"], municipal_tax_number: payload["municipalTaxNumber"], name: payload["name"], tax_regime: payload["taxRegime"], trade_name: payload["tradeName"], ) end |
.new ⇒ instance
16 |
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_company_resource_item.rbs', line 16
def self.new: (?account_id: String?, address: DFeTech_TaxPayers_Resources_AddressResource, federal_tax_number: Integer, ?municipal_tax_number: String?, name: String, tax_regime: untyped, ?trade_name: String?) -> instance
|