Class: Nfe::Generated::ProductInvoiceRtcV1::IBSCBSTotalsResource

Inherits:
Data
  • Object
show all
Defined in:
lib/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rb,
sig/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIBSCBSTotalsResource

Returns a new instance of IBSCBSTotalsResource.

Parameters:



15
# File 'sig/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rbs', line 15

def initialize: (?basis: Float?, ?cbs: CBSTotalsResource, ?credit_reversal: CreditReversalTotalsResource, ?ibs: IBSTotalsResource, ?monophase: MonophaseTotalsResource) -> void

Instance Attribute Details

#basisObject (readonly)

Returns the value of attribute basis

Returns:

  • (Object)

    the current value of basis



9
10
11
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rb', line 9

def basis
  @basis
end

#cbsObject (readonly)

Returns the value of attribute cbs

Returns:

  • (Object)

    the current value of cbs



9
10
11
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rb', line 9

def cbs
  @cbs
end

#credit_reversalObject (readonly)

Returns the value of attribute credit_reversal

Returns:

  • (Object)

    the current value of credit_reversal



9
10
11
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rb', line 9

def credit_reversal
  @credit_reversal
end

#ibsObject (readonly)

Returns the value of attribute ibs

Returns:

  • (Object)

    the current value of ibs



9
10
11
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rb', line 9

def ibs
  @ibs
end

#monophaseObject (readonly)

Returns the value of attribute monophase

Returns:

  • (Object)

    the current value of monophase



9
10
11
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rb', line 9

def monophase
  @monophase
end

Class Method Details

.from_api(payload) ⇒ instance?

Parameters:

  • payload (Hash[String, untyped], nil)

Returns:

  • (instance, nil)


10
11
12
13
14
15
16
17
18
19
20
# File 'lib/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rb', line 10

def self.from_api(payload)
  return nil if payload.nil?

  new(
    basis: payload["basis"],
    cbs: CBSTotalsResource.from_api(payload["cbs"]),
    credit_reversal: CreditReversalTotalsResource.from_api(payload["creditReversal"]),
    ibs: IBSTotalsResource.from_api(payload["ibs"]),
    monophase: MonophaseTotalsResource.from_api(payload["monophase"]),
  )
end

.newinstance

Parameters:

Returns:

  • (instance)


14
# File 'sig/nfe/generated/product_invoice_rtc_v1/ibscbstotals_resource.rbs', line 14

def self.new: (?basis: Float?, ?cbs: CBSTotalsResource, ?credit_reversal: CreditReversalTotalsResource, ?ibs: IBSTotalsResource, ?monophase: MonophaseTotalsResource) -> instance