Class: SpreeSquare::LineItemSerializer

Inherits:
Spree::Api::V3::LineItemSerializer
  • Object
show all
Defined in:
app/serializers/spree_square/line_item_serializer.rb

Overview

Exposes the modifiers selected on a line item (for cart/checkout display) using the snapshot recorded at add-to-cart time — never a live lookup, so a later Square menu edit can't change what's shown for an existing cart/order.