mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-13 23:37:47 +00:00
10 lines
291 B
Ruby
10 lines
291 B
Ruby
# frozen_string_literal: false
|
|
|
|
class Invoice
|
|
class LineItemSerializer < ActiveModel::Serializer
|
|
attributes :id, :added_tax, :currency, :included_tax, :price_with_adjustments, :quantity,
|
|
:variant_id
|
|
has_one :variant, serializer: Invoice::VariantSerializer
|
|
end
|
|
end
|