Class: Spree::ReimbursementType

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

Direct Known Subclasses

Credit, Exchange, OriginalPayment

Defined Under Namespace

Modules: ReimbursementHelpers Classes: Credit, Exchange, OriginalPayment

Constant Summary collapse

ORIGINAL =
'original'

Class Method Summary collapse

Methods inherited from Base

page

Methods included from Preferences::Preferable

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

Class Method Details

.reimburse(reimbursement, return_items, simulate) ⇒ Object

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