Module: Returnly::RefundsConfiguration
- Included in:
- RefundCalculator, Refunder, Spree::Api::Returnly::RefundsController
- Defined in:
- lib/returnly/refunds_configuration.rb
Instance Method Summary collapse
- #gift_card_class ⇒ Object
- #gift_card_estimate_class ⇒ Object
- #refund_calculator_class ⇒ Object
- #refund_presenter_class ⇒ Object
- #refunder_class ⇒ Object
- #return_item_amount_calculator_class ⇒ Object
- #return_item_builder_class ⇒ Object
-
#return_item_restock_policy_class ⇒ Object
return item qualifies to be restocked (after refund).
Instance Method Details
#gift_card_class ⇒ Object
28 29 30 |
# File 'lib/returnly/refunds_configuration.rb', line 28 def gift_card_class Returnly.gift_card || Returnly::NilGiftCard end |
#gift_card_estimate_class ⇒ Object
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_class ⇒ Object
20 21 22 |
# File 'lib/returnly/refunds_configuration.rb', line 20 def refund_calculator_class Returnly.refund_calculator || Returnly::RefundCalculator end |
#refund_presenter_class ⇒ Object
24 25 26 |
# File 'lib/returnly/refunds_configuration.rb', line 24 def refund_presenter_class Returnly.refund_presenter || Returnly::RefundPresenter end |
#refunder_class ⇒ Object
16 17 18 |
# File 'lib/returnly/refunds_configuration.rb', line 16 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_builder_class ⇒ Object
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_class ⇒ Object
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 |