Example #1
0
 /**
  * @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
  * @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
  *
  * @return void
  */
 protected function processCustomerAddress(AddressTransfer $addressTransfer, CustomerTransfer $customerTransfer)
 {
     $addressTransfer->setFkCustomer($customerTransfer->getIdCustomer());
     if ($addressTransfer->getIdCustomerAddress() === null) {
         $this->address->createAddressAndUpdateCustomerDefaultAddresses($addressTransfer);
     } else {
         $this->address->updateAddressAndCustomerDefaultAddresses($addressTransfer);
     }
 }