Skip to content

Instantly share code, notes, and snippets.

@likemusic
Created November 5, 2017 22:19
Show Gist options
  • Save likemusic/aee6e3d45ead23f5113b0e83b70f3e3a to your computer and use it in GitHub Desktop.
Save likemusic/aee6e3d45ead23f5113b0e83b70f3e3a to your computer and use it in GitHub Desktop.
Find the service data object
...
/**
* Create customer account. Perform necessary business operations like sending email.
*
* @api
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
* @param string $password
* @param string $redirectUrl
* @return \Magento\Customer\Api\Data\CustomerInterface
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function createAccount(
\Magento\Customer\Api\Data\CustomerInterface $customer,
$password = null,
$redirectUrl = ''
);
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment