Class: Moov::Models::Components::InstantPaymentFees
- Inherits:
-
Object
- Object
- Moov::Models::Components::InstantPaymentFees
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/instantpaymentfees.rb
Overview
A detailed breakdown of instant payment fees.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(rtp_credit_transaction:, push_to_card_transaction:, pull_from_card_transaction:, instant_verification:, total:, rtp_decline: nil, push_to_card_decline: nil, pull_from_card_decline: nil, pull_from_card_refund: nil) ⇒ InstantPaymentFees
constructor
A new instance of InstantPaymentFees.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(rtp_credit_transaction:, push_to_card_transaction:, pull_from_card_transaction:, instant_verification:, total:, rtp_decline: nil, push_to_card_decline: nil, pull_from_card_decline: nil, pull_from_card_refund: nil) ⇒ InstantPaymentFees
Returns a new instance of InstantPaymentFees.
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/moov/models/components/instantpaymentfees.rb', line 35 def initialize(rtp_credit_transaction:, push_to_card_transaction:, pull_from_card_transaction:, instant_verification:, total:, rtp_decline: nil, push_to_card_decline: nil, pull_from_card_decline: nil, pull_from_card_refund: nil) @rtp_credit_transaction = rtp_credit_transaction @push_to_card_transaction = push_to_card_transaction @pull_from_card_transaction = pull_from_card_transaction @instant_verification = instant_verification @total = total @rtp_decline = rtp_decline @push_to_card_decline = push_to_card_decline @pull_from_card_decline = pull_from_card_decline @pull_from_card_refund = pull_from_card_refund end |
Instance Method Details
#==(other) ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/moov/models/components/instantpaymentfees.rb', line 48 def ==(other) return false unless other.is_a? self.class return false unless @rtp_credit_transaction == other.rtp_credit_transaction return false unless @push_to_card_transaction == other.push_to_card_transaction return false unless @pull_from_card_transaction == other.pull_from_card_transaction return false unless @instant_verification == other.instant_verification return false unless @total == other.total return false unless @rtp_decline == other.rtp_decline return false unless @push_to_card_decline == other.push_to_card_decline return false unless @pull_from_card_decline == other.pull_from_card_decline return false unless @pull_from_card_refund == other.pull_from_card_refund true end |