$addresses =
$this->addressRepository->
search($criteria,
$context);
/** @var CustomerAddressEntity $activeBillingAddress */
$activeBillingAddress =
$addresses->
get($activeBillingAddressId);
$customer->
setActiveBillingAddress($activeBillingAddress);
/** @var CustomerAddressEntity $activeShippingAddress */
$activeShippingAddress =
$addresses->
get($activeShippingAddressId);
$customer->
setActiveShippingAddress($activeShippingAddress);
/** @var CustomerAddressEntity $defaultBillingAddress */
$defaultBillingAddress =
$addresses->
get($customer->
getDefaultBillingAddressId());
$customer->
setDefaultBillingAddress($defaultBillingAddress);
/** @var CustomerAddressEntity $defaultShippingAddress */
$defaultShippingAddress =
$addresses->
get($customer->
getDefaultShippingAddressId());
$customer->
setDefaultShippingAddress($defaultShippingAddress);
return $customer;
} /**
* @return CashRoundingConfig[]
*
* @group not-deterministic
* NEXT-21735 - This is covered randomly
*
* @codeCoverageIgnore
*/