You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: receipts.rb
    path of file: ./repos/pay/lib/pay
    
    the code of the file until where you have to start completion: module Pay
  module Receipts
    def product
      Pay.applica
    
    def receipt_line_items
      line_items = pdf_line_items

      # Include total paid
      line_items << [nil, nil, I18n.t("pay.receipt.amount_paid"), Pay::Currency.format(amount, currency: currency)]

      if refunded?
        # If we have a list of individual refunds, add each entry
        if refunds&.any?
          refunds.each do |refund|
            next unless refund["status"] == "succeeded"
            refunded_at = Time.at(refund["created"]).to_date
            line_items << [nil, nil, I18n.t("pay.receipt.refunded_on", date: I18n.l(refunded_at, format: :long)), Pay::Currency.format(refund["amount"], currency: refund["currency"])]
          end
        else
          line_items << [nil, nil, I18n.t("pay.receipt.refunded"), Pay::Currency.format(amount_refunded, currency: currency)]
        end