Sha256: 84dbb641f14923905646975d72be0b3ef23f61dd6a4168deecf80bf000a9cb0f

Contents?: true

Size: 546 Bytes

Versions: 41

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

module IronBank
  module Resources
    # A rate plan belongs to a subscription and is a copy of the associated
    # product rate plan from the catalog at the time of the subscription.
    #
    class RatePlan < Resource
      with_schema
      with_cache

      with_one :amendment
      with_one :product_rate_plan, alias: :catalog_plan
      with_one :subscription

      with_many :rate_plan_charges,
                alias:      :charges,
                conditions: { is_last_segment: true }
    end
  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
iron_bank-5.4.1 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.4.0 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.3.2 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.3.0 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.2.6 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.2.4 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.2.3 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.2.0 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.1.1 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.1.0 lib/iron_bank/resources/rate_plan.rb
iron_bank-4.4.3 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.0.1 lib/iron_bank/resources/rate_plan.rb
iron_bank-5.0.0 lib/iron_bank/resources/rate_plan.rb
iron_bank-4.4.1 lib/iron_bank/resources/rate_plan.rb
iron_bank-4.4.0 lib/iron_bank/resources/rate_plan.rb
iron_bank-4.3.1 lib/iron_bank/resources/rate_plan.rb
iron_bank-4.3.0 lib/iron_bank/resources/rate_plan.rb
iron_bank-4.2.0 lib/iron_bank/resources/rate_plan.rb
iron_bank-4.1.1 lib/iron_bank/resources/rate_plan.rb
iron_bank-4.1.0 lib/iron_bank/resources/rate_plan.rb