Class: Moov::Models::Components::PartnerPricing

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(plan_id:, name:, revenue_share:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, created_at:, description: nil) ⇒ PartnerPricing

Returns a new instance of PartnerPricing.



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

def initialize(plan_id:, name:, revenue_share:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, created_at:, description: nil)
  @plan_id = plan_id
  @name = name
  @revenue_share = revenue_share
  @card_acquiring_model = card_acquiring_model
  @billable_fees = billable_fees
  @minimum_commitment = minimum_commitment
  @monthly_platform_fee = monthly_platform_fee
  @created_at = created_at
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



49
50
51
52
53
54
55
56
57
58
59
60
61
# File 'lib/moov/models/components/partnerpricing.rb', line 49

def ==(other)
  return false unless other.is_a? self.class
  return false unless @plan_id == other.plan_id
  return false unless @name == other.name
  return false unless @revenue_share == other.revenue_share
  return false unless @card_acquiring_model == other.card_acquiring_model
  return false unless @billable_fees == other.billable_fees
  return false unless @minimum_commitment == other.minimum_commitment
  return false unless @monthly_platform_fee == other.monthly_platform_fee
  return false unless @created_at == other.created_at
  return false unless @description == other.description
  true
end