Class: Nfe::Generated::ProductInvoiceRtcV1::IBSTotalsResource
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ProductInvoiceRtcV1::IBSTotalsResource
- Defined in:
- lib/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rbs
Instance Attribute Summary collapse
-
#municipal ⇒ Object
readonly
Returns the value of attribute municipal.
-
#presumed_credit_amount ⇒ Object
readonly
Returns the value of attribute presumed_credit_amount.
-
#presumed_credit_conditional_amount ⇒ Object
readonly
Returns the value of attribute presumed_credit_conditional_amount.
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#total_amount ⇒ Object
readonly
Returns the value of attribute total_amount.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IBSTotalsResource
constructor
A new instance of IBSTotalsResource.
Constructor Details
#initialize ⇒ IBSTotalsResource
Returns a new instance of IBSTotalsResource.
15 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rbs', line 15
def initialize: (?municipal: IBSMunicipalTotalsResource, ?presumed_credit_amount: Float?, ?presumed_credit_conditional_amount: Float?, ?state: IBSStateTotalsResource, ?total_amount: Float?) -> void
|
Instance Attribute Details
#municipal ⇒ Object (readonly)
Returns the value of attribute municipal
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rb', line 9 def municipal @municipal end |
#presumed_credit_amount ⇒ Object (readonly)
Returns the value of attribute presumed_credit_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rb', line 9 def presumed_credit_amount @presumed_credit_amount end |
#presumed_credit_conditional_amount ⇒ Object (readonly)
Returns the value of attribute presumed_credit_conditional_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rb', line 9 def presumed_credit_conditional_amount @presumed_credit_conditional_amount end |
#state ⇒ Object (readonly)
Returns the value of attribute state
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rb', line 9 def state @state end |
#total_amount ⇒ Object (readonly)
Returns the value of attribute total_amount
9 10 11 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rb', line 9 def total_amount @total_amount end |
Class Method Details
.from_api(payload) ⇒ instance?
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rb', line 10 def self.from_api(payload) return nil if payload.nil? new( municipal: IBSMunicipalTotalsResource.from_api(payload["municipal"]), presumed_credit_amount: payload["presumedCreditAmount"], presumed_credit_conditional_amount: payload["presumedCreditConditionalAmount"], state: IBSStateTotalsResource.from_api(payload["state"]), total_amount: payload["totalAmount"], ) end |
.new ⇒ instance
14 |
# File 'sig/nfe/generated/product_invoice_rtc_v1/ibstotals_resource.rbs', line 14
def self.new: (?municipal: IBSMunicipalTotalsResource, ?presumed_credit_amount: Float?, ?presumed_credit_conditional_amount: Float?, ?state: IBSStateTotalsResource, ?total_amount: Float?) -> instance
|