Module: Returnly::RefundsConfiguration
- Included in:
- Refunder, Spree::Api::Returnly::RefundsController
- Defined in:
- lib/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
16 17 18 |
# File 'lib/returnly/refunds_configuration.rb', line 16 def refund_calculator_class Returnly.refund_calculator || Returnly::RefundCalculator end |
#refunder_class ⇒ Object
12 13 14 |
# File 'lib/returnly/refunds_configuration.rb', line 12 def refunder_class Returnly.refunder || Returnly::Refunder end |
#return_item_amount_calculator_class ⇒ Object
3 4 5 |
# File 'lib/returnly/refunds_configuration.rb', line 3 def return_item_amount_calculator_class Returnly.return_item_amount_calculator || Returnly::Refund::AmountCalculator end |
#return_item_restock_policy_class ⇒ Object
return item qualifies to be restocked (after refund)
8 9 10 |
# File 'lib/returnly/refunds_configuration.rb', line 8 def return_item_restock_policy_class Returnly.return_item_restock_policy || Returnly::Refund::ReturnItemRestockPolicy end |