Module: Solidus::Returnly::RefundsConfiguration
- Included in:
- Refunder, Spree::Api::Returnly::RefundsController
- Defined in:
- lib/solidus/returnly/refunds_configuration.rb
Instance Method Summary collapse
- #refund_calculator_class ⇒ Object
- #refunder_class ⇒ Object
- #return_item_amount_calculator_class ⇒ Object
-
#return_item_restock_policy_class ⇒ Object
return item qualifies to be restocked (after refund).
Instance Method Details
#refund_calculator_class ⇒ Object
17 18 19 |
# File 'lib/solidus/returnly/refunds_configuration.rb', line 17 def refund_calculator_class Solidus::Returnly.refund_calculator || Solidus::Returnly::RefundCalculator end |
#refunder_class ⇒ Object
13 14 15 |
# File 'lib/solidus/returnly/refunds_configuration.rb', line 13 def refunder_class Solidus::Returnly.refunder || Solidus::Returnly::Refunder end |
#return_item_amount_calculator_class ⇒ Object
4 5 6 |
# File 'lib/solidus/returnly/refunds_configuration.rb', line 4 def return_item_amount_calculator_class Solidus::Returnly.return_item_amount_calculator || Solidus::Returnly::Refund::AmountCalculator end |
#return_item_restock_policy_class ⇒ Object
return item qualifies to be restocked (after refund)
9 10 11 |
# File 'lib/solidus/returnly/refunds_configuration.rb', line 9 def return_item_restock_policy_class Solidus::Returnly.return_item_restock_policy || Solidus::Returnly::Refund::ReturnItemRestockPolicy end |