Sha256: d6b3639a6fadbb83f1536627f5a070c1c6e47f77e451cca90b4a057275d3c37d

Contents?: true

Size: 537 Bytes

Versions: 27

Compression:

Stored size: 537 Bytes

Contents

# frozen_string_literal: true

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

27 entries across 27 versions & 2 rubygems

Version Path
solidus_core-2.6.6 app/models/spree/reimbursement_type.rb
solidus_core-2.7.4 app/models/spree/reimbursement_type.rb
solidus_core-2.7.3 app/models/spree/reimbursement_type.rb
solidus_core-2.6.5 app/models/spree/reimbursement_type.rb
solidus_core-2.7.2 app/models/spree/reimbursement_type.rb
solidus_core-2.6.4 app/models/spree/reimbursement_type.rb
solidus_core-2.6.3 app/models/spree/reimbursement_type.rb
solidus_core-2.7.1 app/models/spree/reimbursement_type.rb
solidus_core-2.6.2 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.14 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.13 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.12 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.11 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.10 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.9 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.8 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.7 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.6 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.5 app/models/spree/reimbursement_type.rb
solidus_core_devise_token_auth-2.8.0.alpha.4 app/models/spree/reimbursement_type.rb