Source: show
# File app/serializers/v2/memberships/payment_intent_serializer.rb, line 8 def invoice_line_items if object.invoice.instance_of?(Stripe::Invoice) object.invoice.lines.map(&:description) else Array.wrap(object.description) end end
# File app/serializers/v2/memberships/payment_intent_serializer.rb, line 16 def payment_intent { id: id, amount: amount, currency: currency, client_secret: client_secret, last_payment_error: last_payment_error, status: status } end