text: from cypherpunkpay.db.db import DB
  from cypherpunkpay.usecases import UseCase
  from cypherpunkpay.usecases.call_payment_completed_url_uc import CallPaymentCompletedUrlUC
  
  
  class NotifyMerchantOfAllCompletionsUC(UseCase):
  
      def __init__(self, db: DB, config=None, http_client=None):
          self._db = db
          self._config = config
          self._http_client = http_client
  
      def exec(self):
          charges = self._db.get_charges_for_merchant_notification()
          for charge in charges:
              CallPaymentCompletedUrlUC(charge=charge, db=self._db, config=self._config, http_client=self._http_client).exec()
  