Class: Moov::Models::Components::PartnerFees

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

Overview

Monthly partner costs that are charged separately and not included in residual subtotal (e.g. platform fees, minimums).

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(minimum_commitment:, monthly_platform:, total:) ⇒ PartnerFees

Returns a new instance of PartnerFees.



23
24
25
26
27
# File 'lib/moov/models/components/partnerfees.rb', line 23

def initialize(minimum_commitment:, monthly_platform:, total:)
  @minimum_commitment = minimum_commitment
  @monthly_platform = monthly_platform
  @total = total
end

Instance Method Details

#==(other) ⇒ Object



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

def ==(other)
  return false unless other.is_a? self.class
  return false unless @minimum_commitment == other.minimum_commitment
  return false unless @monthly_platform == other.monthly_platform
  return false unless @total == other.total
  true
end