<commit_before>module OrderOperations
  class MarkPaid < SkinnyControllers::Operation::Base
    def run
      order = OrderOperations::Read.new(current_user, params).run
      return unless order

      order.mark_paid!(params_for_action)
      order
    end
  end
end<commit_msg>send receipt upon marking of paid<commit_after>module OrderOperations
  class MarkPaid < SkinnyControllers::Operation::Base
    def run
      order = OrderOperations::Read.new(current_user, params).run
      return unless order

      order.mark_paid!(params_for_action)

      OrderMailer.receipt(for_order: model).deliver_now if order.paid?

      order
    end
  end
end
{'fraction_non_alphanumeric': 0.07197549770290965, 'fraction_numerical': 0.0, 'mean_word_length': 3.7050359712230216, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5001895', 'n_tokens_mistral': 195, 'n_tokens_neox': 191, 'n_words': 44}