Sha256: 04898f70abb2860d360974ae563815a2b17062e55bced4360c7375ecd1f750b8
Contents?: true
Size: 726 Bytes
Versions: 14
Compression:
Stored size: 726 Bytes
Contents
module Spree class ReimbursementType < Spree::Base include Spree::NamedType KINDS = %w(Spree::ReimbursementType::Credit Spree::ReimbursementType::Exchange Spree::ReimbursementType::OriginalPayment Spree::ReimbursementType::StoreCredit).freeze ORIGINAL = 'original'.freeze has_many :return_items # 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 def self.reimburse(reimbursement, return_items, simulate) raise "Implement me" end end end
Version data entries
14 entries across 14 versions & 2 rubygems