Class: Moov::Models::Components::FeePlanAgreement

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(agreement_id:, plan_id:, name:, accepted_on:, status:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, account_id: nil, description: nil) ⇒ FeePlanAgreement

Returns a new instance of FeePlanAgreement.



40
41
42
43
44
45
46
47
48
49
50
51
52
# File 'lib/moov/models/components/feeplanagreement.rb', line 40

def initialize(agreement_id:, plan_id:, name:, accepted_on:, status:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, account_id: nil, description: nil)
  @agreement_id = agreement_id
  @plan_id = plan_id
  @name = name
  @accepted_on = accepted_on
  @status = status
  @card_acquiring_model = card_acquiring_model
  @billable_fees = billable_fees
  @minimum_commitment = minimum_commitment
  @monthly_platform_fee = monthly_platform_fee
  @account_id = 
  @description = description
end

Instance Method Details

#==(other) ⇒ Object



55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'lib/moov/models/components/feeplanagreement.rb', line 55

def ==(other)
  return false unless other.is_a? self.class
  return false unless @agreement_id == other.agreement_id
  return false unless @plan_id == other.plan_id
  return false unless @name == other.name
  return false unless @accepted_on == other.accepted_on
  return false unless @status == other.status
  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 @account_id == other.
  return false unless @description == other.description
  true
end