Order Delivery API Concern (orders/delivery_actions.rb)

spree · spree/api/app/controllers/concerns/spree/api/v3/orders/delivery_actions.rb · ruby · BSD-3-Clause
pos, integration, payments, fw:rails, tag:knn-classified, tag:fulfillment, tag:deliveries

Rails controller concern that implements create, update, and destroy actions for delivery records within the V3 orders API, handling authorization, order locking, and fulfillment recalculation.

# Source: https://github.com/spree/spree | License: BSD-3-Clause | Copyright 2024-present, Vendo Sp. z o.o., Vendo Connect Inc
# Provided via justclaw.it.com; keep this notice with the code.
module Spree
  module Api
    module V3
      module Orders
        # The consignments of one fulfillment — a parcel each, or a freight
        # PRO number covering several pallets.
        #
        # A delivery is born when a tracking number is attached, days before
        # anything arrives, so POST means "this went out as another
        # consignment"; arrival is a transition on an existing row.
        #
        # Shared by the operator's branch and the seller's. `@parent` (the
        # fulfillment) and `@resource` arrive already fetched and authorized,
        # so including this concern cann

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key