Class: Spree::ReimbursementType Private

Inherits:
Base
  • Object
show all
Includes:
NamedType
Defined in:
app/models/spree/reimbursement_type.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Direct Known Subclasses

Credit, Exchange, OriginalPayment, StoreCredit

Defined Under Namespace

Modules: ReimbursementHelpers Classes: Credit, Exchange, OriginalPayment, StoreCredit

Constant Summary

ORIGINAL =

This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.

'original'

Class Method Summary (collapse)

Methods inherited from Base

display_includes, #initialize_preference_defaults, page, preference

Methods included from Preferences::Preferable

#default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference

Class Method Details

+ (Object) reimburse(_reimbursement, _return_items, _simulate)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

This method will reimburse the return items based on however it child implements it By default it takes a reimbursement, the return items it needs to reimburse, and if it is a simulation or a real reimbursement. This should return an array



12
13
14
# File 'app/models/spree/reimbursement_type.rb', line 12

def self.reimburse(_reimbursement, _return_items, _simulate)
  raise "Implement me"
end