Module exposing: FreightSummary, Line, self, cartons, complete, as_json
# 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
class FreightSummary
# One variant's contribution to a freight summary.
#
# Built once from the live catalog and thereafter carried as plain data,
# so an order's frozen summary keeps reporting the cartons it actually
# shipped in even after the variant is repacked.
class Line
include ActiveModel::Model
include ActiveModel::Attributes
attribute :variant_id, :string
attribute :sku, :string
attribute :name, :string
attribute :units, :integer, default: 0
attribute :cartons, :integer
attribute :pallets, :integer
#
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key