Class: Nfe::Generated::CalculoImpostosV1::CalculateRequestRecipient
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::CalculoImpostosV1::CalculateRequestRecipient
- Defined in:
- lib/nfe/generated/calculo_impostos_v1/calculate_request_recipient.rb,
sig/nfe/generated/calculo_impostos_v1/calculate_request_recipient.rbs
Instance Attribute Summary collapse
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#tax_profile ⇒ Object
readonly
Returns the value of attribute tax_profile.
-
#tax_regime ⇒ Object
readonly
Returns the value of attribute tax_regime.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CalculateRequestRecipient
constructor
A new instance of CalculateRequestRecipient.
Constructor Details
#initialize ⇒ CalculateRequestRecipient
Returns a new instance of CalculateRequestRecipient.
13 |
# File 'sig/nfe/generated/calculo_impostos_v1/calculate_request_recipient.rbs', line 13
def initialize: (state: untyped, ?tax_profile: String?, ?tax_regime: untyped) -> void
|
Instance Attribute Details
#state ⇒ Object (readonly)
Returns the value of attribute state
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_request_recipient.rb', line 9 def state @state end |
#tax_profile ⇒ Object (readonly)
Returns the value of attribute tax_profile
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_request_recipient.rb', line 9 def tax_profile @tax_profile end |
#tax_regime ⇒ Object (readonly)
Returns the value of attribute tax_regime
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_request_recipient.rb', line 9 def tax_regime @tax_regime end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_request_recipient.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( state: payload["state"], tax_profile: payload["taxProfile"], tax_regime: payload["taxRegime"], ) end |
.new ⇒ instance
12 |
# File 'sig/nfe/generated/calculo_impostos_v1/calculate_request_recipient.rbs', line 12
def self.new: (state: untyped, ?tax_profile: String?, ?tax_regime: untyped) -> instance
|