Sha256: 4d3017ce85a6b418de12d6faf97c993043f7b3ef20b750de9b8a7ea77f749697
Contents?: true
Size: 493 Bytes
Versions: 26
Compression:
Stored size: 493 Bytes
Contents
module Spree module Api module Webhooks module ShipmentDecorator def self.prepended(base) def base.custom_webhook_events %w[shipment.shipped] end end def after_ship super queue_webhooks_requests!('shipment.shipped') order.queue_webhooks_requests!('order.shipped') if order.fully_shipped? end end end end end Spree::Shipment.prepend(Spree::Api::Webhooks::ShipmentDecorator)
Version data entries
26 entries across 26 versions & 3 rubygems