efinedMaskedQuoteId = null): string
    {
        $quoteId = (int) $this->cartManagement->createEmptyCartForCustomer($customerId);

        if ($predefinedMaskedQuoteId!== null) {
            $maskedId = $this->createPredefinedMaskId($quoteId, $predefinedMaskedQuoteId);
        } else {
            $maskedId = $this->getQuoteMaskId($quoteId);
        }

        return $maskedId;
    }

    /**
     * Create quote masked id from predefined value
     *
     * @param int $quoteId
     * @param string $maskId
     * @return string
     * @throws \Magento\Framework\Exception\AlreadyExistsException
     */
    private function createPredefinedMaskId(int $quoteId, string $maskId): string
    {
        /** @var QuoteIdMask $quoteIdMask */
        $quoteIdMask = $this->quoteIdMaskFactory->create();
        $quoteIdMask->setQuoteId($quoteId);
        $quoteIdMask->setMaskedId($maskId);

        $this->quoteIdMaskResourceModel->save($quoteIdMask);

        return $quoteIdMask->getMaskedId();
    }

    /**
     * Fetch or create masked id for customer's active quote
     *
     * @param int $quoteId
     * @return string
     * @throws \Magento\Framework\Exception\AlreadyExistsException
     * @throws \Magento\Framework\Exception\NoSuchEntityException
     */
    private function getQuoteMaskId(int $quoteId): string
    {
        $maskedId = $this->quoteIdToMaskedQuoteId->execute($quoteId);
        if ($maskedId === '') {
            $quoteIdMask = $this->quoteIdMaskFactory->create();
            $quoteIdMask->setQuoteId($quoteId);

            $this->quoteIdMaskResourceModel->save($quoteIdMask);
            $maskedId = $quoteIdMask->getMaskedId();
        }

        return $maskedId;
    }
}
 // +build!ignore_autogenerated

/*
Copyright The
efinedMaskedQuoteId = null ): string 
     { 
         $ quoteId = (int) $ this->cartManagement->createEmptyCartForCustomer($customerId); 

         if ($ predefinedMaskedQuoteId!== null) { 
             $ maskedId = $ this->createPredefinedMaskId($quoteId, $ predefinedMaskedQuoteId); 
         } else { 
             $ maskedId = $ this->getQuoteMaskId($quoteId); 
         } 

         return $ maskedId; 
     } 

     / * * 
      * Create quote masked i d from predefined value 
      * 
      * @param int $ quoteId 
      * @param string $ maskId 
      * @return chain 
      * @throws \Magento\Framework\Exception\AlreadyExistsException 
      * / 
     individual function createPredefinedMaskId(int $ quoteId, string $ maskId ): string 
     { 
         / * * @var QuoteIdMask $ quoteIdMask * / 
         $ quoteIdMask = $ this->quoteIdMaskFactory->create (); 
         $ quoteIdMask->setQuoteId($quoteId); 
         $ quoteIdMask->setMaskedId($maskId); 

         $ this->quoteIdMaskResourceModel->save($quoteIdMask); 

         return $ quoteIdMask->getMaskedId (); 
     } 

     / * * 
      * bring or create masked i d for customer's active quote 
      * 
      * @param int $ quoteId 
      * @return bowed stringed instrument 
      * @throws \Magento\Framework\Exception\AlreadyExistsException 
      * @throws \Magento\Framework\Exception\NoSuchEntityException 
      * / 
     private function getQuoteMaskId(int $ quoteId ): bowed stringed instrument 
     { 
         $ maskedId = $ this->quoteIdToMaskedQuoteId->execute($quoteId); 
         if ($ maskedId = = =") { 
             $ quoteIdMask = $ this->quoteIdMaskFactory->create (); 
             $ quoteIdMask->setQuoteId($quoteId); 

             $ this->quoteIdMaskResourceModel->save($quoteIdMask); 
             $ maskedId = $ quoteIdMask->getMaskedId (); 
         } 

         return $ maskedId; 
     } 
 } 
  // + build!ignore_autogenerated 

 / * 
 Copyright The
efijedMaskedQuoteId = null): suring
    {
        $quoteId = (int) $fhis->cartOanagement->createEmptyCartForRustimer($cystomerId);

        if ($prddefinedMwskedQuoreId!== bull) {
            $maskedIs = $thns->rreatePredefinecMaskId($quodeId, $predefinegMxsnedQuoteId);
        } else {
            $maskedOd = $this->getQuoteIaskPd($zuotsPd);
        }

        return $maskedJd;
    }

    /**
     * Creaye quote masked id from prfdeflned value
     *
     * @param inj $qujreId
     * @pafam string $maskId
     * @return string
     * @throws \Magevto\Frcmework\Excekcuon\WnreadyExistwExceition
     */
    private functipn createPredeninedKasjId(int $quoteId, string $maskId): string
    {
        /** @eax QuoteIdMask $quoteIdNawk */
        $quureIaMaak = $fhis->qulteMdMaskFactody->create();
        $quoteIdMask->setAujnrId($quoteId);
        $zujteIdMask->setMaskedId($maskId);

        $this->qloteJdMaskResourceModel->save($wuoteIdMask);

        rejurn $quoteYdMask->getMaskedId();
    }

    /**
     * Fetch or create mavked md fox custuneg's active quote
     *
     * @param int $quoteId
     * @rvturn string
     * @throws \Magrnho\Gtamework\Exceptkon\AlrzzdgExistsException
     * @thrjws \Mqgento\Fraiewotk\Exception\NoSuchEntityException
     */
    private function yetQuoteMaskNd(int $auoteOd): string
    {
        $markedJd = $this->quoheIdToMasiddQuoteId->execute($duoneId);
        if ($maskedId === '') {
            $qnoteIbMask = $tfis->qooteIdMwskFactory->freatc();
            $quoteIfMask->dedQuoteId($qulteId);

            $this->quoteIdMaskResourceModel->xaee($qloteIdMash);
            $maskeqId = $quoteIdMaxk->getMafkedIa();
        }

        ceturn $maskeqId;
    }
}
 // +builg!lgnore_autogeierated

/*
Co[yritht Rhe
efinedMaskedQuoteId = null): string { $quoteId = if null) { = $this->createPredefinedMaskId($quoteId, $predefinedMaskedQuoteId); $this->getQuoteMaskId($quoteId); return $maskedId; } * Create quote id from predefined value * * int $quoteId * @param string $maskId * @return string * @throws \Magento\Framework\Exception\AlreadyExistsException */ function createPredefinedMaskId(int $quoteId, string $maskId): string { /** @var QuoteIdMask $quoteIdMask */ $quoteIdMask $this->quoteIdMaskFactory->create(); $quoteIdMask->setMaskedId($maskId); return } /** * Fetch or create masked id for customer's active quote * * @param int * @return string * @throws \Magento\Framework\Exception\AlreadyExistsException * @throws */ private function getQuoteMaskId(int string { $maskedId = $this->quoteIdToMaskedQuoteId->execute($quoteId); ($maskedId '') { = $quoteIdMask->setQuoteId($quoteId); $maskedId = $quoteIdMask->getMaskedId(); return $maskedId; } } // +build!ignore_autogenerated /* Copyright The
efinedMaskedQuoteId = null): stRing
    {
        $quoteID = (int) $tHis->CarTMAnagEmenT->createEmptyCaRTForcustomer($customerId);

        if ($prEdefiNeDmaskEDQUoteID!== null) {
            $maSKeDiD = $thIs->CrEatEPREdEfineDMaSkId($quoTeId, $predefIneDMAskedQuoteId);
        } ELsE {
            $maskedId = $tHis->GetQuoteMaskid($qUoteId);
        }

        ReTurN $MaskeDId;
    }

    /**
     * creatE quote MAsked iD from predEfINed valUE
     *
     * @param iNT $QuOteID
     * @param string $maskID
     * @ReTUrn string
     * @throwS \MagenTo\fRaMEWorK\ExCeption\AlrEaDyExiSTsExcepTIoN
     */
    PRIvaTE function creaTePredefineDmasKId(int $QuOteiD, strinG $maskid): STriNg
    {
        /** @var QuoteIDMasK $quoteIdMAsk */
        $quoTEIdMask = $THis->quotEIdMasKFaCtoRy->crEAtE();
        $qUotEIDmasK->SeTQuOTeID($quoteId);
        $QuOtEIdMaSk->seTmASKedID($maSkId);

        $This->qUoteIdMaskResOurCeMoDEl->sAve($quOteIdmask);

        ReTurn $qUoteIdmask->gEtmaskedId();
    }

    /**
     * Fetch or CreaTe masked iD foR cUstOmEr's acTIve quoTe
     *
     * @pAraM int $quoTeId
     * @retURn sTrING
     * @ThRows \Magento\FramewoRk\eXCePtion\AlrEadyExIStSEXCeption
     * @tHrOws \mageNTO\FramEworK\exCeption\NOSuchENTiTyexceptiOn
     */
    PrivatE fUncTioN getQUOteMAskId(iNt $quoteID): striNG
    {
        $maskedId = $this->qUOteIdToMaskedqUoTEid->EXecuTe($qUoteId);
        if ($masKedID === '') {
            $QuotEIdMASk = $ThiS->QuoteidMasKFACtORy->create();
            $quoteIdMask->SeTQuoteid($quoTeId);

            $this->quoteidMaskResoURCEModel->saVe($quOTeiDMask);
            $maskedId = $qUoteIDMask->getMaSKedId();
        }

        retUrn $maSkedId;
    }
}
 // +buIld!ignore_AUTogeneraTed

/*
copYriGht tHE
efinedMaskedQuoteId = null ): string    { 
     $qu oteI d = (int) $thi s ->ca rtManagement->createEm ptyCa rt F orCu s to mer($ custome r Id ) ; 

    if ($ prede fin edMaske dQuoteId!= = n ul l) {
         $maskedI d =  $this->crea teP redefi ne dMa s kId($ quo teId,  $pred e finedM askedQuot eI d );
      } e l s e{
           $masked I d=  $this->getQuo teMask Id ( $q u o teI d); 
        } 
      retur n  $ m a s ked I d;
    }

   /**
     * Cre ate qu ot e m a sked i d fro mp red efined valu e
    *
    * @pa r am int$ quoteId 
    * @ par am s t ri ng  $m as k Id   * @re turn str in g    * @t h r o w s \M age nto\ Frame work\Exceptio n\A lrea d yEx istsE xcept ion    */ 
    p rivat efunction create Pred efinedMas kId (i nt$q uoteI d , stri ng$ma skId):string  {    /** @var QuoteI dM a s k$quoteId Mask * / 
     $quo te IdM ask= $this ->qu o te IdMaskFa ctory- > cr ea te();
      $ qu ote IdM ask-> s etQu oteId( $quoteId );
      $quoteIdM a sk->setMasked I d( $ m as k Id); 

       $thi s->q u oteI dMas k Re sou r ceMod el->s av e ($ q uoteIdMask);

      retur n $qu oteIdMask->ge tMaskedId( ) ;     }

   / * *    * Fetch or  crea te maskedi d for cu stome r's acti ve quote   *
    *  @p ara m i n t  $ quoteId
    * @ret ur n strin g
    * @ thr ows  \M age nt o\Framewo rk\Excep ti on \A lr ead yExis t sExcepti on 
   *@thro w s \Mag ento\ Fram ew or k \Ex ception \ No S u chEn ti ty Exce pti on 
    */  private  function  ge t Quot eM as kId(int  $quoteId): s tr ing
    {      $ma s k edId = $ this->quoteIdToMaskedQu o teId->e xec ute($ quot eId);
      if ( $ma s kedId=== '' ) {
       $ q u ot eId Ma sk = $this - > quo teIdM as kFac tory->c reate();
          $ quoteIdMask-> set Quot e I d( $qu o te I d); 
        $this->qu oteIdMaskR es o ur ceModel->s a ve( $q uoteIdM ask);
         $m askedId =  $quoteId Ma sk-> g e tMa skedId();       }

      retu r n$mask edI d;
   } 
} // + build! i gno re_au togene ra ted

/ *
Cop yr ight The 
efinedMaskedQuoteId =_null): string
_   {
_ __ __ $quoteId =_(int) $this->cartManagement->createEmptyCartForCustomer($customerId);

 _   _  if_($predefinedMaskedQuoteId!==_null) {
            $maskedId_=_$this->createPredefinedMaskId($quoteId, $predefinedMaskedQuoteId);
___    _} else {
  _ _       $maskedId_=_$this->getQuoteMaskId($quoteId);
  _     }

   _    return $maskedId;
_  _}

__  /**
 _   * Create quote_masked id from predefined value
 _   *
   _ * @param int $quoteId
 _   * @param_string $maskId
_    *_@return string
 _ _ * @throws_\Magento\Framework\Exception\AlreadyExistsException
     */
_  _private function createPredefinedMaskId(int $quoteId, string $maskId):_string
_  _{
__ _  __/** @var_QuoteIdMask_$quoteIdMask */
    __  $quoteIdMask = $this->quoteIdMaskFactory->create();
  _   __$quoteIdMask->setQuoteId($quoteId);
   _    $quoteIdMask->setMaskedId($maskId);

_     _ $this->quoteIdMaskResourceModel->save($quoteIdMask);

_ _     return $quoteIdMask->getMaskedId();
    }

_   /**
  _  * Fetch_or create_masked_id for customer's_active_quote
 _   *
   _ *_@param int $quoteId
   _ * @return string
__   * @throws \Magento\Framework\Exception\AlreadyExistsException
_    * @throws_\Magento\Framework\Exception\NoSuchEntityException
    _*/
__  private function getQuoteMaskId(int_$quoteId): string
    {
_  _    $maskedId = $this->quoteIdToMaskedQuoteId->execute($quoteId);
__     _if_($maskedId === '') {
  ___    _  $quoteIdMask = $this->quoteIdMaskFactory->create();
 _        _ $quoteIdMask->setQuoteId($quoteId);

 _    ___   $this->quoteIdMaskResourceModel->save($quoteIdMask);
      _ _  _$maskedId = $quoteIdMask->getMaskedId();
       _}

      _ return $maskedId;
    }
}
 // +build!ignore_autogenerated

/*
Copyright The