Class: Moov::Models::Components::CreateTransferSource
- Inherits:
-
Object
- Object
- Moov::Models::Components::CreateTransferSource
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/createtransfersource.rb
Overview
Where funds for a transfer originate. For the source, you must include either a ‘paymentMethodID` or a `transferID`.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(transfer_id: nil, payment_method_id: nil, payment_token: nil, card_details: nil, ach_details: nil) ⇒ CreateTransferSource
constructor
A new instance of CreateTransferSource.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(transfer_id: nil, payment_method_id: nil, payment_token: nil, card_details: nil, ach_details: nil) ⇒ CreateTransferSource
Returns a new instance of CreateTransferSource.
29 30 31 32 33 34 35 |
# File 'lib/moov/models/components/createtransfersource.rb', line 29 def initialize(transfer_id: nil, payment_method_id: nil, payment_token: nil, card_details: nil, ach_details: nil) @transfer_id = transfer_id @payment_method_id = payment_method_id @payment_token = payment_token @card_details = card_details @ach_details = ach_details end |
Instance Method Details
#==(other) ⇒ Object
38 39 40 41 42 43 44 45 46 |
# File 'lib/moov/models/components/createtransfersource.rb', line 38 def ==(other) return false unless other.is_a? self.class return false unless @transfer_id == other.transfer_id return false unless @payment_method_id == other.payment_method_id return false unless @payment_token == other.payment_token return false unless @card_details == other.card_details return false unless @ach_details == other.ach_details true end |