Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into bugfix/core-844-zed…
Browse files Browse the repository at this point in the history
…-error-messages
  • Loading branch information
PhilinTv committed Dec 12, 2017
2 parents f5d486c + 9207a0b commit 3bfba56
Show file tree
Hide file tree
Showing 50 changed files with 1,075 additions and 502 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ composer require spryker/customer

## Documentation

[Module Documentation](http://academy.spryker.com/developing_with_spryker/module_guide/customer_management/customer/customer.html)
[Module Documentation](https://academy.spryker.com/developing_with_spryker/module_guide/customer_management/customer/customer.html)
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@
"spryker/kernel": "^3.0.0",
"spryker/locale": "^3.0.0",
"spryker/mail": "^4.0.0",
"spryker/propel-orm": "^1.0.0",
"spryker/propel-orm": "^1.5.0",
"spryker/sequence-number": "^3.0.0",
"spryker/session": "^3.0.0",
"spryker/symfony": "^3.0.0",
"spryker/util-date-time": "^1.0.0",
"spryker/util-sanitize": "^2.0.0",
"spryker/util-text": "^1.1.0",
"spryker/util-validate": "^1.0.0",
"spryker/zed-request": "^3.0.0"
},
"require-dev": {
Expand All @@ -36,7 +38,7 @@
"autoload": {
"psr-4": {
"Spryker\\": "src/Spryker/",
"SprykerTest\\Shared\\Customer\\": "tests/SprykerTest/Shared/Customer/_support/Helper/"
"SprykerTest\\Shared\\Customer\\Helper\\": "tests/SprykerTest/Shared/Customer/_support/Helper/"
}
},
"autoload-dev": {
Expand Down
69 changes: 49 additions & 20 deletions src/Spryker/Client/Customer/CustomerClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,27 +17,8 @@
class CustomerClient extends AbstractClient implements CustomerClientInterface
{
/**
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
* {@inheritdoc}
*
* @return bool
*/
public function hasCustomerWithEmailAndPassword(CustomerTransfer $customerTransfer)
{
$customerResponseTransfer = $this->getFactory()
->createZedCustomerStub()
->hasCustomerWithEmailAndPassword($customerTransfer);

$hasCustomer = $customerResponseTransfer->getHasCustomer();
if ($hasCustomer === true) {
$this->setCustomer($customerResponseTransfer->getCustomerTransfer());
}

return $hasCustomer;
}

/**
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -54,6 +35,8 @@ public function findCustomerWithEmailAndPassword(CustomerTransfer $customerTrans
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -68,6 +51,8 @@ public function registerCustomer(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -82,6 +67,8 @@ public function confirmRegistration(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -96,6 +83,8 @@ public function sendPasswordRestoreMail(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -110,6 +99,8 @@ public function restorePassword(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -126,6 +117,8 @@ public function setCustomer(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @return \Generated\Shared\Transfer\CustomerTransfer
Expand All @@ -140,6 +133,8 @@ public function getCustomer()
}

/**
* {@inheritdoc}
*
* @api
*
* @param int $idCustomer
Expand Down Expand Up @@ -179,6 +174,8 @@ public function findCustomerById(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -195,6 +192,8 @@ public function getCustomerByEmail(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -209,6 +208,8 @@ public function updateCustomer(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -223,6 +224,8 @@ public function updateCustomerPassword(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -237,6 +240,8 @@ public function deleteCustomer(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -257,6 +262,8 @@ public function login(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @return void
Expand All @@ -269,6 +276,8 @@ public function logout()
}

/**
* {@inheritdoc}
*
* @api
*
* @return bool
Expand All @@ -281,6 +290,8 @@ public function isLoggedIn()
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand All @@ -295,6 +306,8 @@ public function getAddresses(CustomerTransfer $customerTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
Expand All @@ -309,6 +322,8 @@ public function getAddress(AddressTransfer $addressTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
Expand All @@ -323,6 +338,8 @@ public function updateAddress(AddressTransfer $addressTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
Expand All @@ -337,6 +354,8 @@ public function updateAddressAndCustomerDefaultAddresses(AddressTransfer $addres
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
Expand All @@ -351,6 +370,8 @@ public function createAddressAndUpdateCustomerDefaultAddresses(AddressTransfer $
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
Expand All @@ -365,6 +386,8 @@ public function createAddress(AddressTransfer $addressTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
Expand All @@ -379,6 +402,8 @@ public function deleteAddress(AddressTransfer $addressTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
Expand All @@ -393,6 +418,8 @@ public function setDefaultShippingAddress(AddressTransfer $addressTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\AddressTransfer $addressTransfer
Expand All @@ -407,6 +434,8 @@ public function setDefaultBillingAddress(AddressTransfer $addressTransfer)
}

/**
* {@inheritdoc}
*
* @api
*
* @param \Generated\Shared\Transfer\CustomerTransfer $customerTransfer
Expand Down
Loading

0 comments on commit 3bfba56

Please sign in to comment.