Skip to content

Commit 6eb356f

Browse files
committed
AC-6731: Validation fixes for webAPI
1 parent 016e76c commit 6eb356f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/code/Magento/Quote/Model/BillingAddressManagement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function assign($cartId, AddressInterface $address, $useForShipping = fal
7979
$quote = $this->quoteRepository->getActive($cartId);
8080

8181
// validate the address
82-
$this->addressValidator->validateAddress($quote, $address);
82+
$this->addressValidator->validateWithExistingAddress($quote, $address);
8383

8484
$address->setCustomerId($quote->getCustomerId());
8585
$quote->removeAddress($quote->getBillingAddress()->getId());

app/code/Magento/Quote/Model/QuoteAddressValidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function validateForCart(CartInterface $cart, AddressInterface $address):
140140
* @return void
141141
* @throws NoSuchEntityException The specified customer ID or address ID is not valid.
142142
*/
143-
public function validateAddress(CartInterface $cart, AddressInterface $address): void
143+
public function validateWithExistingAddress(CartInterface $cart, AddressInterface $address): void
144144
{
145145
// check if address belongs to quote.
146146
if ($address->getId() !== null) {

0 commit comments

Comments
 (0)