code: private function setDueParameters($query)
      {
          $query
              ->setParameter('trigger_invoiced', Trigger::TRIGGER_INVOICED)
              ->setParameter('state_invoiced', [InvoiceStates::STATE_PARTIAL, InvoiceStates::STATE_COMPLETED])
              ->setParameter('trigger_fully_invoiced', Trigger::TRIGGER_FULLY_INVOICED)
              ->setParameter('state_fully_invoiced', InvoiceStates::STATE_COMPLETED)
              ->setParameter('trigger_shipped', Trigger::TRIGGER_SHIPPED)
              ->setParameter('state_shipped', [ShipmentStates::STATE_PARTIAL, ShipmentStates::STATE_COMPLETED])
              ->setParameter('trigger_fully_shipped', Trigger::TRIGGER_FULLY_SHIPPED)
              ->setParameter('state_fully_shipped', ShipmentStates::STATE_COMPLETED);
      }
docs: Set the due clause's parameters.
  
  @param Query|QueryBuilder $query