Files
openfoodnetwork/app/serializers/invoice/payment_serializer.rb
Mohamed ABDELLANI 61d58df56f fix linter issues
2023-06-18 21:03:13 +02:00

13 lines
314 B
Ruby

# frozen_string_literal: false
class Invoice
class PaymentSerializer < ActiveModel::Serializer
attributes :state, :created_at, :amount, :currency, :payment_method_id
has_one :payment_method, serializer: Invoice::PaymentMethodSerializer
def created_at
object.created_at.to_s
end
end
end