Sha256: 7524a41e33d9ac45a3557f097fef2942b4358c3d4d7eabd615c83e54d0e86f60
Contents?: true
Size: 477 Bytes
Versions: 4
Compression:
Stored size: 477 Bytes
Contents
# This service class is intented to provide callback behaviour to handle # the case where an installment cannot be processed due to lack of stock. module SolidusSubscriptions class OutOfStockDispatcher < Dispatcher def dispatch installments.each(&:out_of_stock) super end private def message " The following installments cannot be fulfilled due to lack of stock: #{installments.map(&:id).join(', ')}. " end end end
Version data entries
4 entries across 4 versions & 1 rubygems