Sha256: 8c359ff25f4a589241955c7157c12339f7267ac8cacf7943f30da6962b402430

Contents?: true

Size: 506 Bytes

Versions: 43

Compression:

Stored size: 506 Bytes

Contents

module Spree
  class ReimbursementType < Spree::Base
    include Spree::NamedType

    ORIGINAL = 'original'

    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

43 entries across 43 versions & 1 rubygems

Version Path
solidus_core-2.5.2 app/models/spree/reimbursement_type.rb
solidus_core-2.5.1 app/models/spree/reimbursement_type.rb
solidus_core-2.5.0 app/models/spree/reimbursement_type.rb
solidus_core-2.5.0.rc1 app/models/spree/reimbursement_type.rb
solidus_core-2.5.0.beta2 app/models/spree/reimbursement_type.rb
solidus_core-2.5.0.beta1 app/models/spree/reimbursement_type.rb
solidus_core-2.4.2 app/models/spree/reimbursement_type.rb
solidus_core-2.3.1 app/models/spree/reimbursement_type.rb
solidus_core-2.4.1 app/models/spree/reimbursement_type.rb
solidus_core-2.2.2 app/models/spree/reimbursement_type.rb
solidus_core-2.1.1 app/models/spree/reimbursement_type.rb
solidus_core-2.0.3 app/models/spree/reimbursement_type.rb
solidus_core-1.4.2 app/models/spree/reimbursement_type.rb
solidus_core-1.3.2 app/models/spree/reimbursement_type.rb
solidus_core-2.4.0 app/models/spree/reimbursement_type.rb
solidus_core-2.4.0.rc1 app/models/spree/reimbursement_type.rb
solidus_core-2.4.0.beta1 app/models/spree/reimbursement_type.rb
solidus_core-2.3.0 app/models/spree/reimbursement_type.rb
solidus_core-2.3.0.rc3 app/models/spree/reimbursement_type.rb
solidus_core-2.3.0.rc2 app/models/spree/reimbursement_type.rb