Module: Returnly::RefundsConfiguration

Included in:
Refunder, Spree::Api::Returnly::RefundsController
Defined in:
lib/returnly/refunds_configuration.rb

Instance Method Summary collapse

Instance Method Details

#refund_calculator_classObject



16
17
18
# File 'lib/returnly/refunds_configuration.rb', line 16

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

#refunder_classObject



12
13
14
# File 'lib/returnly/refunds_configuration.rb', line 12

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

#return_item_amount_calculator_classObject



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_classObject

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