Class: Nfe::Generated::ContribuintesV2::DFeTech_TaxPayers_Resources_CreateStateTaxResource

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDFeTech_TaxPayers_Resources_CreateStateTaxResource

Returns a new instance of DFeTech_TaxPayers_Resources_CreateStateTaxResource.



11
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_state_tax_resource.rbs', line 11

def initialize: (?state_tax: DFeTech_TaxPayers_Resources_CreateStateTaxResourceItem) -> void

Instance Attribute Details

#state_taxObject (readonly)

Returns the value of attribute state_tax

Returns:

  • (Object)

    the current value of state_tax



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

def state_tax
  @state_tax
end

Class Method Details

.from_api(payload) ⇒ instance?

Parameters:

  • payload (Hash[String, untyped], nil)

Returns:

  • (instance, nil)


10
11
12
13
14
15
16
# File 'lib/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_state_tax_resource.rb', line 10

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

  new(
    state_tax: DFeTech_TaxPayers_Resources_CreateStateTaxResourceItem.from_api(payload["stateTax"]),
  )
end

.newinstance

Parameters:

Returns:

  • (instance)


10
# File 'sig/nfe/generated/contribuintes_v2/dfe_tech_tax_payers_resources_create_state_tax_resource.rbs', line 10

def self.new: (?state_tax: DFeTech_TaxPayers_Resources_CreateStateTaxResourceItem) -> instance