Sha256: b136023627e19a42a749e80fbfb886060bf718e5b2181428889c72902e8431ac

Contents?: true

Size: 438 Bytes

Versions: 1

Compression:

Stored size: 438 Bytes

Contents

module Workarea
  module FlowIo
    class FulfillmentCancellation
      include Sidekiq::Worker

      def perform(id, canceled_items)
        fulfillment_cancelation_form = FlowIo::FulfillmentCancellationForm.from(id: id, quantities: canceled_items)
        order = Workarea::Order.find(id)

        FlowIo.client.fulfillments.put_cancellations(FlowIo.organization_id, order.id, fulfillment_cancelation_form)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
workarea-flow_io-1.2.1 app/workers/workarea/flow_io/fulfillment_cancellation.rb