Class: Moov::Models::Components::UpdateIssuingControlsError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(velocity_limits: nil, merchant_category_restrictions: nil, merchant_restrictions: nil, allowed_schedule: nil, expires_on: nil) ⇒ UpdateIssuingControlsError

Returns a new instance of UpdateIssuingControlsError.



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

def initialize(velocity_limits: nil, merchant_category_restrictions: nil, merchant_restrictions: nil, allowed_schedule: nil, expires_on: nil)
  @velocity_limits = velocity_limits
  @merchant_category_restrictions = merchant_category_restrictions
  @merchant_restrictions = merchant_restrictions
  @allowed_schedule = allowed_schedule
  @expires_on = expires_on
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @velocity_limits == other.velocity_limits
  return false unless @merchant_category_restrictions == other.merchant_category_restrictions
  return false unless @merchant_restrictions == other.merchant_restrictions
  return false unless @allowed_schedule == other.allowed_schedule
  return false unless @expires_on == other.expires_on
  true
end