Class: Moov::Models::Components::TransferControls

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

Overview

Controls for transfers created through a given partner

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(account_id:, partner_account_id:, debt_repayment:, allow_dynamic_descriptor:, allow_surcharge:) ⇒ TransferControls

Returns a new instance of TransferControls.



27
28
29
30
31
32
33
# File 'lib/moov/models/components/transfercontrols.rb', line 27

def initialize(account_id:, partner_account_id:, debt_repayment:, allow_dynamic_descriptor:, allow_surcharge:)
  @account_id = 
  @partner_account_id = 
  @debt_repayment = debt_repayment
  @allow_dynamic_descriptor = allow_dynamic_descriptor
  @allow_surcharge = allow_surcharge
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/moov/models/components/transfercontrols.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @account_id == other.
  return false unless @partner_account_id == other.
  return false unless @debt_repayment == other.debt_repayment
  return false unless @allow_dynamic_descriptor == other.allow_dynamic_descriptor
  return false unless @allow_surcharge == other.allow_surcharge
  true
end