Class: Nfe::Generated::ServiceInvoiceRtcV1::IbsCbs

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeIbsCbs

Returns a new instance of IbsCbs.

Parameters:

  • basis: (Float)
  • cbs: (Hash[String, untyped])
  • class_code: (String)
  • credit_transfer: (Hash[String, untyped])
  • destination_indicator: (String)
  • government_purchase: (Hash[String, untyped])
  • ibs: (Hash[String, untyped])
  • ibscbs_deduction_reduction_amount: (Float)
  • is_donation: (Boolean, nil)
  • leased_movable_assets: (Array[Hash[String, untyped]])
  • operation_indicator: (String)
  • operation_type: (String)
  • personal_use: (Object)
  • presumed_credits: (Hash[String, untyped])
  • purpose: (String)
  • regular_taxation: (Hash[String, untyped])
  • reimbursed_resupplied_amount: (Float)
  • related_docs: (Hash[String, untyped])
  • situation_code: (String)
  • third_party_reimbursements: (Hash[String, untyped])


30
# File 'sig/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rbs', line 30

def initialize: (?basis: Float, ?cbs: Hash[String, untyped], class_code: String, ?credit_transfer: Hash[String, untyped], ?destination_indicator: String, ?government_purchase: Hash[String, untyped], ?ibs: Hash[String, untyped], ?ibscbs_deduction_reduction_amount: Float, ?is_donation: bool?, ?leased_movable_assets: Array[Hash[String, untyped]], operation_indicator: String, ?operation_type: String, ?personal_use: untyped, ?presumed_credits: Hash[String, untyped], ?purpose: String, ?regular_taxation: Hash[String, untyped], ?reimbursed_resupplied_amount: Float, ?related_docs: Hash[String, untyped], ?situation_code: String, ?third_party_reimbursements: Hash[String, untyped]) -> 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/service_invoice_rtc_v1/ibs_cbs.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/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def cbs
  @cbs
end

#class_codeObject (readonly)

Returns the value of attribute class_code

Returns:

  • (Object)

    the current value of class_code



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def class_code
  @class_code
end

#credit_transferObject (readonly)

Returns the value of attribute credit_transfer

Returns:

  • (Object)

    the current value of credit_transfer



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def credit_transfer
  @credit_transfer
end

#destination_indicatorObject (readonly)

Returns the value of attribute destination_indicator

Returns:

  • (Object)

    the current value of destination_indicator



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def destination_indicator
  @destination_indicator
end

#government_purchaseObject (readonly)

Returns the value of attribute government_purchase

Returns:

  • (Object)

    the current value of government_purchase



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def government_purchase
  @government_purchase
end

#ibsObject (readonly)

Returns the value of attribute ibs

Returns:

  • (Object)

    the current value of ibs



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def ibs
  @ibs
end

#ibscbs_deduction_reduction_amountObject (readonly)

Returns the value of attribute ibscbs_deduction_reduction_amount

Returns:

  • (Object)

    the current value of ibscbs_deduction_reduction_amount



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def ibscbs_deduction_reduction_amount
  @ibscbs_deduction_reduction_amount
end

#is_donationObject (readonly)

Returns the value of attribute is_donation

Returns:

  • (Object)

    the current value of is_donation



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def is_donation
  @is_donation
end

#leased_movable_assetsObject (readonly)

Returns the value of attribute leased_movable_assets

Returns:

  • (Object)

    the current value of leased_movable_assets



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def leased_movable_assets
  @leased_movable_assets
end

#operation_indicatorObject (readonly)

Returns the value of attribute operation_indicator

Returns:

  • (Object)

    the current value of operation_indicator



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def operation_indicator
  @operation_indicator
end

#operation_typeObject (readonly)

Returns the value of attribute operation_type

Returns:

  • (Object)

    the current value of operation_type



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def operation_type
  @operation_type
end

#personal_useObject (readonly)

Returns the value of attribute personal_use

Returns:

  • (Object)

    the current value of personal_use



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def personal_use
  @personal_use
end

#presumed_creditsObject (readonly)

Returns the value of attribute presumed_credits

Returns:

  • (Object)

    the current value of presumed_credits



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def presumed_credits
  @presumed_credits
end

#purposeObject (readonly)

Returns the value of attribute purpose

Returns:

  • (Object)

    the current value of purpose



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def purpose
  @purpose
end

#regular_taxationObject (readonly)

Returns the value of attribute regular_taxation

Returns:

  • (Object)

    the current value of regular_taxation



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def regular_taxation
  @regular_taxation
end

#reimbursed_resupplied_amountObject (readonly)

Returns the value of attribute reimbursed_resupplied_amount

Returns:

  • (Object)

    the current value of reimbursed_resupplied_amount



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def reimbursed_resupplied_amount
  @reimbursed_resupplied_amount
end

Returns the value of attribute related_docs

Returns:

  • (Object)

    the current value of related_docs



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def related_docs
  @related_docs
end

#situation_codeObject (readonly)

Returns the value of attribute situation_code

Returns:

  • (Object)

    the current value of situation_code



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def situation_code
  @situation_code
end

#third_party_reimbursementsObject (readonly)

Returns the value of attribute third_party_reimbursements

Returns:

  • (Object)

    the current value of third_party_reimbursements



9
10
11
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9

def third_party_reimbursements
  @third_party_reimbursements
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
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 10

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

  new(
    basis: payload["basis"],
    cbs: payload["cbs"],
    class_code: payload["classCode"],
    credit_transfer: payload["creditTransfer"],
    destination_indicator: payload["destinationIndicator"],
    government_purchase: payload["governmentPurchase"],
    ibs: payload["ibs"],
    ibscbs_deduction_reduction_amount: payload["ibscbsDeductionReductionAmount"],
    is_donation: payload["isDonation"],
    leased_movable_assets: payload["leasedMovableAssets"],
    operation_indicator: payload["operationIndicator"],
    operation_type: payload["operationType"],
    personal_use: payload["personalUse"],
    presumed_credits: payload["presumedCredits"],
    purpose: payload["purpose"],
    regular_taxation: payload["regularTaxation"],
    reimbursed_resupplied_amount: payload["reimbursedResuppliedAmount"],
    related_docs: payload["relatedDocs"],
    situation_code: payload["situationCode"],
    third_party_reimbursements: payload["thirdPartyReimbursements"],
  )
end

.newinstance

Parameters:

  • basis: (Float)
  • cbs: (Hash[String, untyped])
  • class_code: (String)
  • credit_transfer: (Hash[String, untyped])
  • destination_indicator: (String)
  • government_purchase: (Hash[String, untyped])
  • ibs: (Hash[String, untyped])
  • ibscbs_deduction_reduction_amount: (Float)
  • is_donation: (Boolean, nil)
  • leased_movable_assets: (Array[Hash[String, untyped]])
  • operation_indicator: (String)
  • operation_type: (String)
  • personal_use: (Object)
  • presumed_credits: (Hash[String, untyped])
  • purpose: (String)
  • regular_taxation: (Hash[String, untyped])
  • reimbursed_resupplied_amount: (Float)
  • related_docs: (Hash[String, untyped])
  • situation_code: (String)
  • third_party_reimbursements: (Hash[String, untyped])

Returns:

  • (instance)


29
# File 'sig/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rbs', line 29

def self.new: (?basis: Float, ?cbs: Hash[String, untyped], class_code: String, ?credit_transfer: Hash[String, untyped], ?destination_indicator: String, ?government_purchase: Hash[String, untyped], ?ibs: Hash[String, untyped], ?ibscbs_deduction_reduction_amount: Float, ?is_donation: bool?, ?leased_movable_assets: Array[Hash[String, untyped]], operation_indicator: String, ?operation_type: String, ?personal_use: untyped, ?presumed_credits: Hash[String, untyped], ?purpose: String, ?regular_taxation: Hash[String, untyped], ?reimbursed_resupplied_amount: Float, ?related_docs: Hash[String, untyped], ?situation_code: String, ?third_party_reimbursements: Hash[String, untyped]) -> instance