Class: Nfe::Generated::CalculoImpostosV1::CalculateItemResponse
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::CalculoImpostosV1::CalculateItemResponse
- Defined in:
- lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb,
sig/nfe/generated/calculo_impostos_v1/calculate_item_response.rbs
Instance Attribute Summary collapse
-
#additional_information ⇒ Object
readonly
Returns the value of attribute additional_information.
-
#benefit ⇒ Object
readonly
Returns the value of attribute benefit.
-
#cest ⇒ Object
readonly
Returns the value of attribute cest.
-
#cfop ⇒ Object
readonly
Returns the value of attribute cfop.
-
#cofins ⇒ Object
readonly
Returns the value of attribute cofins.
-
#icms ⇒ Object
readonly
Returns the value of attribute icms.
-
#icms_uf_dest ⇒ Object
readonly
Returns the value of attribute icms_uf_dest.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#ii ⇒ Object
readonly
Returns the value of attribute ii.
-
#ipi ⇒ Object
readonly
Returns the value of attribute ipi.
-
#last_modified ⇒ Object
readonly
Returns the value of attribute last_modified.
-
#pis ⇒ Object
readonly
Returns the value of attribute pis.
-
#product_id ⇒ Object
readonly
Returns the value of attribute product_id.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ CalculateItemResponse
constructor
A new instance of CalculateItemResponse.
Constructor Details
#initialize ⇒ CalculateItemResponse
Returns a new instance of CalculateItemResponse.
23 |
# File 'sig/nfe/generated/calculo_impostos_v1/calculate_item_response.rbs', line 23
def initialize: (?additional_information: String?, ?benefit: String?, ?cest: String?, ?cfop: Integer, ?cofins: Cofins, ?icms: Icms, ?icms_uf_dest: IcmsUfDest, ?id: String?, ?ii: Ii, ?ipi: Ipi, ?last_modified: String, ?pis: Pis, ?product_id: String?) -> void
|
Instance Attribute Details
#additional_information ⇒ Object (readonly)
Returns the value of attribute additional_information
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def additional_information @additional_information end |
#benefit ⇒ Object (readonly)
Returns the value of attribute benefit
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def benefit @benefit end |
#cest ⇒ Object (readonly)
Returns the value of attribute cest
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def cest @cest end |
#cfop ⇒ Object (readonly)
Returns the value of attribute cfop
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def cfop @cfop end |
#cofins ⇒ Object (readonly)
Returns the value of attribute cofins
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def cofins @cofins end |
#icms ⇒ Object (readonly)
Returns the value of attribute icms
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def icms @icms end |
#icms_uf_dest ⇒ Object (readonly)
Returns the value of attribute icms_uf_dest
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def icms_uf_dest @icms_uf_dest end |
#id ⇒ Object (readonly)
Returns the value of attribute id
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def id @id end |
#ii ⇒ Object (readonly)
Returns the value of attribute ii
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def ii @ii end |
#ipi ⇒ Object (readonly)
Returns the value of attribute ipi
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def ipi @ipi end |
#last_modified ⇒ Object (readonly)
Returns the value of attribute last_modified
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def last_modified @last_modified end |
#pis ⇒ Object (readonly)
Returns the value of attribute pis
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def pis @pis end |
#product_id ⇒ Object (readonly)
Returns the value of attribute product_id
9 10 11 |
# File 'lib/nfe/generated/calculo_impostos_v1/calculate_item_response.rb', line 9 def product_id @product_id 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/calculo_impostos_v1/calculate_item_response.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( additional_information: payload["additionalInformation"], benefit: payload["benefit"], cest: payload["cest"], cfop: payload["cfop"], cofins: Cofins.from_api(payload["cofins"]), icms: Icms.from_api(payload["icms"]), icms_uf_dest: IcmsUfDest.from_api(payload["icmsUfDest"]), id: payload["id"], ii: Ii.from_api(payload["ii"]), ipi: Ipi.from_api(payload["ipi"]), last_modified: payload["lastModified"], pis: Pis.from_api(payload["pis"]), product_id: payload["productId"], ) end |
.new ⇒ instance
22 |
# File 'sig/nfe/generated/calculo_impostos_v1/calculate_item_response.rbs', line 22
def self.new: (?additional_information: String?, ?benefit: String?, ?cest: String?, ?cfop: Integer, ?cofins: Cofins, ?icms: Icms, ?icms_uf_dest: IcmsUfDest, ?id: String?, ?ii: Ii, ?ipi: Ipi, ?last_modified: String, ?pis: Pis, ?product_id: String?) -> instance
|