Component evidence

download (orders/shipping_label_actions.rb)

spree · spree/api/app/controllers/concerns/spree/api/v3/orders/shipping_label_actions.rb · ruby · BSD-3-Clause
postag:knn-classified

Concern providing download and delete actions for shipping labels in Spree API.

Source preview first 800 characters · full source over MCP
# 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 postage on a parcel: recording a label, printing it back, and
        # removing one that was uploaded by mistake.
        #
        # Shared by the operator's branch and the seller's. Buying a label is
        # NOT here: it needs a carrier account, which is the operator's, so
        # that action lives on the admin controller alone.
        #
        # `@parent` (the label's owner) and `@resource` arrive already fetched
        # and authorized, so including this concern cannot widen what a caller
        # reaches.
        mo

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