Class: Spree::ReimbursementType
- Includes:
- NamedType
- Defined in:
- app/models/spree/reimbursement_type.rb
Direct Known Subclasses
Defined Under Namespace
Modules: ReimbursementHelpers Classes: Credit, Exchange, OriginalPayment, StoreCredit
Constant Summary collapse
- KINDS =
%w(Spree::ReimbursementType::Credit Spree::ReimbursementType::Exchange Spree::ReimbursementType::OriginalPayment Spree::ReimbursementType::StoreCredit).freeze
- ORIGINAL =
'original'.freeze
Class Method Summary collapse
-
.reimburse(_reimbursement, _return_items, _simulate) ⇒ Object
This method will reimburse the return items based on however its 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.
Methods inherited from Base
belongs_to_required_by_default, for_store, has_many_inversing, json_api_columns, json_api_permitted_attributes, json_api_type, page, spree_base_scopes, spree_base_uniqueness_scope
Methods included from Preferences::Preferable
#clear_preferences, #default_preferences, #defined_preferences, #deprecated_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_deprecated, #preference_type, #set_preference
Class Method Details
.reimburse(_reimbursement, _return_items, _simulate) ⇒ Object
This method will reimburse the return items based on however its 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
16 17 18 |
# File 'app/models/spree/reimbursement_type.rb', line 16 def self.reimburse(_reimbursement, _return_items, _simulate) raise 'Implement me' end |