Sha256: be6755a5ebff360ea80ba6687ee1e82c9a2f46df8740154c6c51bebdd88dedb7

Contents?: true

Size: 782 Bytes

Versions: 4

Compression:

Stored size: 782 Bytes

Contents

module Returnly
  module RefundsConfiguration
    def return_item_amount_calculator_class
      Returnly.return_item_amount_calculator || Returnly::Refund::AmountCalculator
    end

    def return_item_builder_class
      Returnly.return_item_builder || Returnly::Builders::ReturnItem
    end

    # return item qualifies to be restocked (after refund)
    def return_item_restock_policy_class
      Returnly.return_item_restock_policy || Returnly::Refund::ReturnItemRestockPolicy
    end

    def refunder_class
      Returnly.refunder || Returnly::Refunder
    end

    def refund_calculator_class
      Returnly.refund_calculator || Returnly::RefundCalculator
    end

    def refund_presenter_class
      Returnly.refund_presenter || Returnly::RefundPresenter
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
solidus-returnly-0.12.0 lib/returnly/refunds_configuration.rb
solidus-returnly-0.11.0 lib/returnly/refunds_configuration.rb
solidus-returnly-0.10.0 lib/returnly/refunds_configuration.rb
solidus-returnly-0.9.0 lib/returnly/refunds_configuration.rb