Class: Moov::Models::Components::TransferDestination
- Inherits:
-
Object
- Object
- Moov::Models::Components::TransferDestination
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/transferdestination.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(payment_method_id:, payment_method_type:, account:, bank_account: nil, wallet: nil, card: nil, ach_details: nil, apple_pay: nil, card_details: nil, rtp_details: nil) ⇒ TransferDestination
constructor
A new instance of TransferDestination.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(payment_method_id:, payment_method_type:, account:, bank_account: nil, wallet: nil, card: nil, ach_details: nil, apple_pay: nil, card_details: nil, rtp_details: nil) ⇒ TransferDestination
Returns a new instance of TransferDestination.
38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/moov/models/components/transferdestination.rb', line 38 def initialize(payment_method_id:, payment_method_type:, account:, bank_account: nil, wallet: nil, card: nil, ach_details: nil, apple_pay: nil, card_details: nil, rtp_details: nil) @payment_method_id = payment_method_id @payment_method_type = payment_method_type @account = account @bank_account = bank_account @wallet = wallet @card = card @ach_details = ach_details @apple_pay = apple_pay @card_details = card_details @rtp_details = rtp_details end |
Instance Method Details
#==(other) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 |
# File 'lib/moov/models/components/transferdestination.rb', line 52 def ==(other) return false unless other.is_a? self.class return false unless @payment_method_id == other.payment_method_id return false unless @payment_method_type == other.payment_method_type return false unless @account == other.account return false unless @bank_account == other.bank_account return false unless @wallet == other.wallet return false unless @card == other.card return false unless @ach_details == other.ach_details return false unless @apple_pay == other.apple_pay return false unless @card_details == other.card_details return false unless @rtp_details == other.rtp_details true end |