Sha256: 3dd85c64d7d470a28bbf6f50e34da5fe8ddf29815ff3ed4324ee8566c3764d0e

Contents?: true

Size: 730 Bytes

Versions: 122

Compression:

Stored size: 730 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

122 entries across 122 versions & 1 rubygems

Version Path
spree_core-4.2.4 app/models/spree/reimbursement_type.rb
spree_core-3.7.14.1 app/models/spree/reimbursement_type.rb
spree_core-4.2.3.1 app/models/spree/reimbursement_type.rb
spree_core-4.1.13.1 app/models/spree/reimbursement_type.rb
spree_core-4.0.7.1 app/models/spree/reimbursement_type.rb
spree_core-4.2.3 app/models/spree/reimbursement_type.rb
spree_core-4.2.2 app/models/spree/reimbursement_type.rb
spree_core-4.2.1 app/models/spree/reimbursement_type.rb
spree_core-4.0.7 app/models/spree/reimbursement_type.rb
spree_core-3.7.14 app/models/spree/reimbursement_type.rb
spree_core-4.2.0 app/models/spree/reimbursement_type.rb
spree_core-4.2.0.rc5 app/models/spree/reimbursement_type.rb
spree_core-4.2.0.rc4 app/models/spree/reimbursement_type.rb
spree_core-4.2.0.rc3 app/models/spree/reimbursement_type.rb
spree_core-4.1.13 app/models/spree/reimbursement_type.rb
spree_core-4.0.6 app/models/spree/reimbursement_type.rb
spree_core-4.2.0.rc2 app/models/spree/reimbursement_type.rb
spree_core-3.7.13 app/models/spree/reimbursement_type.rb
spree_core-4.0.5 app/models/spree/reimbursement_type.rb
spree_core-4.1.12 app/models/spree/reimbursement_type.rb