mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-14 04:04:23 +00:00
11 lines
403 B
Ruby
11 lines
403 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, :unit_price_price_and_unit, :unit_presentation
|
|
has_one :variant, serializer: Invoice::VariantSerializer
|
|
has_many :tax_rates, serializer: Invoice::TaxRateSerializer
|
|
end
|
|
end
|