Class: Nfe::Generated::NfConsumidorV2::TaxDeterminationResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::NfConsumidorV2::TaxDeterminationResource
- Defined in:
- lib/nfe/generated/nf_consumidor_v2/tax_determination_resource.rb,
sig/nfe/generated/nf_consumidor_v2/tax_determination_resource.rbs
Instance Attribute Summary collapse
-
#acquisition_purpose ⇒ Object
readonly
Returns the value of attribute acquisition_purpose.
-
#buyer_tax_profile ⇒ Object
readonly
Returns the value of attribute buyer_tax_profile.
-
#issuer_tax_profile ⇒ Object
readonly
Returns the value of attribute issuer_tax_profile.
-
#operation_code ⇒ Object
readonly
Returns the value of attribute operation_code.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TaxDeterminationResource
constructor
A new instance of TaxDeterminationResource.
Constructor Details
#initialize ⇒ TaxDeterminationResource
Returns a new instance of TaxDeterminationResource.
15 |
# File 'sig/nfe/generated/nf_consumidor_v2/tax_determination_resource.rbs', line 15
def initialize: (?acquisition_purpose: String?, ?buyer_tax_profile: String?, ?issuer_tax_profile: String?, ?operation_code: Integer?, ?origin: String?) -> void
|
Instance Attribute Details
#acquisition_purpose ⇒ Object (readonly)
Returns the value of attribute acquisition_purpose
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/tax_determination_resource.rb', line 9 def acquisition_purpose @acquisition_purpose end |
#buyer_tax_profile ⇒ Object (readonly)
Returns the value of attribute buyer_tax_profile
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/tax_determination_resource.rb', line 9 def buyer_tax_profile @buyer_tax_profile end |
#issuer_tax_profile ⇒ Object (readonly)
Returns the value of attribute issuer_tax_profile
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/tax_determination_resource.rb', line 9 def issuer_tax_profile @issuer_tax_profile end |
#operation_code ⇒ Object (readonly)
Returns the value of attribute operation_code
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/tax_determination_resource.rb', line 9 def operation_code @operation_code end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin
9 10 11 |
# File 'lib/nfe/generated/nf_consumidor_v2/tax_determination_resource.rb', line 9 def origin @origin end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe/generated/nf_consumidor_v2/tax_determination_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( acquisition_purpose: payload["acquisitionPurpose"], buyer_tax_profile: payload["buyerTaxProfile"], issuer_tax_profile: payload["issuerTaxProfile"], operation_code: payload["operationCode"], origin: payload["origin"], ) end |
.new ⇒ instance
14 |
# File 'sig/nfe/generated/nf_consumidor_v2/tax_determination_resource.rbs', line 14
def self.new: (?acquisition_purpose: String?, ?buyer_tax_profile: String?, ?issuer_tax_profile: String?, ?operation_code: Integer?, ?origin: String?) -> instance
|