Sha256: 1876943c6caab3732240ef3dc3c7481ec4950b4f0d12a49ad75e0ad18b9ba504
Contents?: true
Size: 496 Bytes
Versions: 1
Compression:
Stored size: 496 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_subscriptions-alpha-0.0.4 | app/models/solidus_subscriptions/out_of_stock_dispatcher.rb |