Class: Moov::Models::Components::UpdateIssuingControlsMerchantCategoryRestrictions

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

Overview

Replaces the merchant category restrictions. Set to null to remove.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(mode: nil, categories: nil, custom_mc_cs: nil, exempt_merchants: nil) ⇒ UpdateIssuingControlsMerchantCategoryRestrictions

Returns a new instance of UpdateIssuingControlsMerchantCategoryRestrictions.



25
26
27
28
29
30
# File 'lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rb', line 25

def initialize(mode: nil, categories: nil, custom_mc_cs: nil, exempt_merchants: nil)
  @mode = mode
  @categories = categories
  @custom_mc_cs = custom_mc_cs
  @exempt_merchants = exempt_merchants
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/moov/models/components/updateissuingcontrols_merchantcategoryrestrictions.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @mode == other.mode
  return false unless @categories == other.categories
  return false unless @custom_mc_cs == other.custom_mc_cs
  return false unless @exempt_merchants == other.exempt_merchants
  true
end