Class: Moov::Models::Components::CardBrandFees

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(total:, interchange: nil, interchange_programs: nil, network_passthrough: nil, completed_domestic_online: nil, completed_domestic_in_person: nil, completed_international_online: nil, completed_international_in_person: nil, declines: nil, refunds: nil) ⇒ CardBrandFees

Returns a new instance of CardBrandFees.



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

def initialize(total:, interchange: nil, interchange_programs: nil, network_passthrough: nil, completed_domestic_online: nil, completed_domestic_in_person: nil, completed_international_online: nil, completed_international_in_person: nil, declines: nil, refunds: nil)
  @total = total
  @interchange = interchange
  @interchange_programs = interchange_programs
  @network_passthrough = network_passthrough
  @completed_domestic_online = completed_domestic_online
  @completed_domestic_in_person = completed_domestic_in_person
  @completed_international_online = completed_international_online
  @completed_international_in_person = completed_international_in_person
  @declines = declines
  @refunds = refunds
end

Instance Method Details

#==(other) ⇒ Object



51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/moov/models/components/cardbrandfees.rb', line 51

def ==(other)
  return false unless other.is_a? self.class
  return false unless @total == other.total
  return false unless @interchange == other.interchange
  return false unless @interchange_programs == other.interchange_programs
  return false unless @network_passthrough == other.network_passthrough
  return false unless @completed_domestic_online == other.completed_domestic_online
  return false unless @completed_domestic_in_person == other.completed_domestic_in_person
  return false unless @completed_international_online == other.completed_international_online
  return false unless @completed_international_in_person == other.completed_international_in_person
  return false unless @declines == other.declines
  return false unless @refunds == other.refunds
  true
end