Class: Nfe::Generated::ServiceInvoiceRtcV1::IbsCbs
- Inherits:
-
Data
- Object
- Data
- Nfe::Generated::ServiceInvoiceRtcV1::IbsCbs
- 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
-
#basis ⇒ Object
readonly
Returns the value of attribute basis.
-
#cbs ⇒ Object
readonly
Returns the value of attribute cbs.
-
#class_code ⇒ Object
readonly
Returns the value of attribute class_code.
-
#credit_transfer ⇒ Object
readonly
Returns the value of attribute credit_transfer.
-
#destination_indicator ⇒ Object
readonly
Returns the value of attribute destination_indicator.
-
#government_purchase ⇒ Object
readonly
Returns the value of attribute government_purchase.
-
#ibs ⇒ Object
readonly
Returns the value of attribute ibs.
-
#ibscbs_deduction_reduction_amount ⇒ Object
readonly
Returns the value of attribute ibscbs_deduction_reduction_amount.
-
#is_donation ⇒ Object
readonly
Returns the value of attribute is_donation.
-
#leased_movable_assets ⇒ Object
readonly
Returns the value of attribute leased_movable_assets.
-
#operation_indicator ⇒ Object
readonly
Returns the value of attribute operation_indicator.
-
#operation_type ⇒ Object
readonly
Returns the value of attribute operation_type.
-
#personal_use ⇒ Object
readonly
Returns the value of attribute personal_use.
-
#presumed_credits ⇒ Object
readonly
Returns the value of attribute presumed_credits.
-
#purpose ⇒ Object
readonly
Returns the value of attribute purpose.
-
#regular_taxation ⇒ Object
readonly
Returns the value of attribute regular_taxation.
-
#reimbursed_resupplied_amount ⇒ Object
readonly
Returns the value of attribute reimbursed_resupplied_amount.
-
#related_docs ⇒ Object
readonly
Returns the value of attribute related_docs.
-
#situation_code ⇒ Object
readonly
Returns the value of attribute situation_code.
-
#third_party_reimbursements ⇒ Object
readonly
Returns the value of attribute third_party_reimbursements.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ IbsCbs
constructor
A new instance of IbsCbs.
Constructor Details
#initialize ⇒ IbsCbs
Returns a new instance of IbsCbs.
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
#basis ⇒ Object (readonly)
Returns the value of attribute basis
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9 def basis @basis end |
#cbs ⇒ Object (readonly)
Returns the value of attribute cbs
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9 def cbs @cbs end |
#class_code ⇒ Object (readonly)
Returns the value of attribute 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_transfer ⇒ Object (readonly)
Returns the value of attribute 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_indicator ⇒ Object (readonly)
Returns the value of attribute 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_purchase ⇒ Object (readonly)
Returns the value of attribute government_purchase
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9 def government_purchase @government_purchase end |
#ibs ⇒ Object (readonly)
Returns the value of attribute ibs
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9 def ibs @ibs end |
#ibscbs_deduction_reduction_amount ⇒ Object (readonly)
Returns the value of attribute 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_donation ⇒ Object (readonly)
Returns the value of attribute 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_assets ⇒ Object (readonly)
Returns the value of attribute 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_indicator ⇒ Object (readonly)
Returns the value of attribute 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_type ⇒ Object (readonly)
Returns the value of attribute 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_use ⇒ Object (readonly)
Returns the value of attribute 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_credits ⇒ Object (readonly)
Returns the value of attribute presumed_credits
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9 def presumed_credits @presumed_credits end |
#purpose ⇒ Object (readonly)
Returns the value of attribute purpose
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9 def purpose @purpose end |
#regular_taxation ⇒ Object (readonly)
Returns the value of attribute 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_amount ⇒ Object (readonly)
Returns the value of attribute 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 |
#related_docs ⇒ Object (readonly)
Returns the value of attribute related_docs
9 10 11 |
# File 'lib/nfe/generated/service_invoice_rtc_v1/ibs_cbs.rb', line 9 def @related_docs end |
#situation_code ⇒ Object (readonly)
Returns the value of attribute 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_reimbursements ⇒ Object (readonly)
Returns the value of attribute 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?
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 |
.new ⇒ 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
|