Class: Moov::Models::Components::CreateSweepConfig

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(wallet_id:, status:, push_payment_method_id:, pull_payment_method_id:, statement_descriptor: nil, minimum_balance: nil) ⇒ CreateSweepConfig

Returns a new instance of CreateSweepConfig.



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

def initialize(wallet_id:, status:, push_payment_method_id:, pull_payment_method_id:, statement_descriptor: nil, minimum_balance: nil)
  @wallet_id = wallet_id
  @status = status
  @push_payment_method_id = push_payment_method_id
  @pull_payment_method_id = pull_payment_method_id
  @statement_descriptor = statement_descriptor
  @minimum_balance = minimum_balance
end

Instance Method Details

#==(other) ⇒ Object



39
40
41
42
43
44
45
46
47
48
# File 'lib/moov/models/components/createsweepconfig.rb', line 39

def ==(other)
  return false unless other.is_a? self.class
  return false unless @wallet_id == other.wallet_id
  return false unless @status == other.status
  return false unless @push_payment_method_id == other.push_payment_method_id
  return false unless @pull_payment_method_id == other.pull_payment_method_id
  return false unless @statement_descriptor == other.statement_descriptor
  return false unless @minimum_balance == other.minimum_balance
  true
end