Class: Moov::Models::Components::PartnerPricingAgreement
- Inherits:
-
Object
- Object
- Moov::Models::Components::PartnerPricingAgreement
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/partnerpricingagreement.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(agreement_id:, plan_id:, name:, accepted_on:, status:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, revenue_share:, account_id: nil, description: nil) ⇒ PartnerPricingAgreement
constructor
A new instance of PartnerPricingAgreement.
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:, revenue_share:, account_id: nil, description: nil) ⇒ PartnerPricingAgreement
Returns a new instance of PartnerPricingAgreement.
42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/moov/models/components/partnerpricingagreement.rb', line 42 def initialize(agreement_id:, plan_id:, name:, accepted_on:, status:, card_acquiring_model:, billable_fees:, minimum_commitment:, monthly_platform_fee:, revenue_share:, 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 @revenue_share = revenue_share @account_id = account_id @description = description end |
Instance Method Details
#==(other) ⇒ Object
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 |
# File 'lib/moov/models/components/partnerpricingagreement.rb', line 58 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 @revenue_share == other.revenue_share return false unless @account_id == other.account_id return false unless @description == other.description true end |