Skip to content

Commit

Permalink
Add Documentation to Spree::Promotion::OrderAdjustmentsRecalculator
Browse files Browse the repository at this point in the history
  • Loading branch information
mamhoff committed Sep 7, 2022
1 parent f9751bd commit 4b5d9f1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ module Spree
class Promotion < Spree::Base

# This class encapsulates all the things the promotion system does to
# an order.
# an order. It is called from the `Spree::OrderUpdater` before taxes are
# calculated, such that taxes always respect promotions.

# This class iterates over all existing promotion adjustments and recalculates
# their amount and eligibility using their adjustment source.
class OrderAdjustmentsRecalculator
def initialize(order)
@order = order
Expand Down

0 comments on commit 4b5d9f1

Please sign in to comment.