Class: Nfe::Generated::ProductInvoiceRtcV1::TotalsWithholdings
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::TotalsWithholdings
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rb,
sig/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rbs
Instance Attribute Summary collapse
-
#cofins_amount ⇒ Object
readonly
Returns the value of attribute cofins_amount.
-
#csll_amount ⇒ Object
readonly
Returns the value of attribute csll_amount.
-
#irrf_amount ⇒ Object
readonly
Returns the value of attribute irrf_amount.
-
#irrf_basis ⇒ Object
readonly
Returns the value of attribute irrf_basis.
-
#pis_amount ⇒ Object
readonly
Returns the value of attribute pis_amount.
-
#social_secutiry_amount ⇒ Object
readonly
Returns the value of attribute social_secutiry_amount.
-
#social_secutiry_basis ⇒ Object
readonly
Returns the value of attribute social_secutiry_basis.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TotalsWithholdings
constructor
A new instance of TotalsWithholdings.
Constructor Details
#initialize ⇒ TotalsWithholdings
Returns a new instance of TotalsWithholdings.
17 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rbs', line 17
def initialize: (?cofins_amount: Float?, ?csll_amount: Float?, ?irrf_amount: Float?, ?irrf_basis: Float?, ?pis_amount: Float?, ?social_secutiry_amount: Float?, ?social_secutiry_basis: Float?) -> void
|
Instance Attribute Details
#cofins_amount ⇒ Object (readonly)
Returns the value of attribute cofins_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rb', line 9 def cofins_amount @cofins_amount end |
#csll_amount ⇒ Object (readonly)
Returns the value of attribute csll_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rb', line 9 def csll_amount @csll_amount end |
#irrf_amount ⇒ Object (readonly)
Returns the value of attribute irrf_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rb', line 9 def irrf_amount @irrf_amount end |
#irrf_basis ⇒ Object (readonly)
Returns the value of attribute irrf_basis
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rb', line 9 def irrf_basis @irrf_basis end |
#pis_amount ⇒ Object (readonly)
Returns the value of attribute pis_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rb', line 9 def pis_amount @pis_amount end |
#social_secutiry_amount ⇒ Object (readonly)
Returns the value of attribute social_secutiry_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rb', line 9 def @social_secutiry_amount end |
#social_secutiry_basis ⇒ Object (readonly)
Returns the value of attribute social_secutiry_basis
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rb', line 9 def @social_secutiry_basis 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/product_invoice_rtc_v1/totals_withholdings.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( cofins_amount: payload["cofinsAmount"], csll_amount: payload["csllAmount"], irrf_amount: payload["irrfAmount"], irrf_basis: payload["irrfBasis"], pis_amount: payload["pisAmount"], social_secutiry_amount: payload["socialSecutiryAmount"], social_secutiry_basis: payload["socialSecutiryBasis"], ) end |
.new ⇒ instance
16 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/totals_withholdings.rbs', line 16
def self.new: (?cofins_amount: Float?, ?csll_amount: Float?, ?irrf_amount: Float?, ?irrf_basis: Float?, ?pis_amount: Float?, ?social_secutiry_amount: Float?, ?social_secutiry_basis: Float?) -> instance
|