# frozen_string_literal: true

module SolidusPromotions
  class ShippingRateDiscount < Spree::Base
    belongs_to :shipping_rate, inverse_of: :discounts, class_name: "Spree::ShippingRate"
    belongs_to :benefit, inverse_of: :shipping_rate_discounts

    extend Spree::DisplayMoney
    money_methods :amount
  end
end
