Class: Moov::Models::Components::SweepConfigPaymentMethod

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/sweepconfigpaymentmethod.rb

Overview

The payment method used to push or pull funds to a bank account. The push payment method can only be ach-credit-standard, ach-credit-same-day, or rtp-credit. The pull payment method can only be ach-debit-fund.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(payment_method_id:, disabled_on: nil) ⇒ SweepConfigPaymentMethod

Returns a new instance of SweepConfigPaymentMethod.



23
24
25
26
# File 'lib/moov/models/components/sweepconfigpaymentmethod.rb', line 23

def initialize(payment_method_id:, disabled_on: nil)
  @payment_method_id = payment_method_id
  @disabled_on = disabled_on
end

Instance Method Details

#==(other) ⇒ Object



29
30
31
32
33
34
# File 'lib/moov/models/components/sweepconfigpaymentmethod.rb', line 29

def ==(other)
  return false unless other.is_a? self.class
  return false unless @payment_method_id == other.payment_method_id
  return false unless @disabled_on == other.disabled_on
  true
end