module Workarea class LegacyOrder class Item include ApplicationDocument field :name, type: String field :sku, type: String field :product_id, type: String field :quantity, type: Integer field :price, type: Money field :details, type: Hash, default: {} field :customizations, type: Hash, default: {} field :token, type: String field :status, type: String field :data, type: Hash, default: {} embedded_in :order, class_name: "Workarea::LegacyOrder" validates_presence_of :name, :sku, :quantity, :price end end end