Sha256: c2e0d745888ed8bf97bdc564cc12f3895797a039f50595b6b87a26de658f8c47
Contents?: true
Size: 336 Bytes
Versions: 27
Compression:
Stored size: 336 Bytes
Contents
# frozen_string_literal: true class Spree::ReimbursementType::Exchange < Spree::ReimbursementType def self.reimburse(reimbursement, return_items, simulate) return [] unless return_items.present? exchange = Spree::Exchange.new(reimbursement.order, return_items) exchange.perform! unless simulate [exchange] end end
Version data entries
27 entries across 27 versions & 2 rubygems