Sha256: ee16d41998dcda0a37e5dddfbbf417484ebe18efbbaa1c0d394caa3db9699de3
Contents?: true
Size: 727 Bytes
Versions: 11
Compression:
Stored size: 727 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 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 def self.reimburse(reimbursement, return_items, simulate) raise "Implement me" end end end
Version data entries
11 entries across 11 versions & 1 rubygems