Module: Returnly::RefundsConfiguration

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

Instance Method Summary collapse

Instance Method Details

#gift_card_classObject



28
29
30
# File 'lib/returnly/refunds_configuration.rb', line 28

def gift_card_class
  Returnly.gift_card || Returnly::NilGiftCard
end

#gift_card_estimate_classObject



32
33
34
# File 'lib/returnly/refunds_configuration.rb', line 32

def gift_card_estimate_class
  Returnly.git_card_estimate || Returnly::NilGiftCardEstimate
end

#refund_calculator_classObject



20
21
22
# File 'lib/returnly/refunds_configuration.rb', line 20

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

#refund_presenter_classObject



24
25
26
# File 'lib/returnly/refunds_configuration.rb', line 24

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

#refunder_classObject



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

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_builder_classObject



7
8
9
# File 'lib/returnly/refunds_configuration.rb', line 7

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

#return_item_restock_policy_classObject

return item qualifies to be restocked (after refund)



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

def return_item_restock_policy_class
  Returnly.return_item_restock_policy || Returnly::Refund::ReturnItemRestockPolicy
end