@@ -23,6 +23,7 @@ interface AccountManagementInterface
23
23
/**
24
24
* Create customer account. Perform necessary business operations like sending email.
25
25
*
26
+ * @api
26
27
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
27
28
* @param string $password
28
29
* @param string $redirectUrl
@@ -38,6 +39,7 @@ public function createAccount(
38
39
/**
39
40
* Create customer account using provided hashed password. Should not be exposed as a webapi.
40
41
*
42
+ * @api
41
43
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
42
44
* @param string $hash Password hash that we can save directly
43
45
* @param string $redirectUrl URL fed to welcome email templates. Can be used by templates to, for example, direct
@@ -56,6 +58,7 @@ public function createAccountWithPasswordHash(
56
58
/**
57
59
* Validate customer data.
58
60
*
61
+ * @api
59
62
* @param \Magento\Customer\Api\Data\CustomerInterface $customer
60
63
* @return \Magento\Customer\Api\Data\ValidationResultsInterface
61
64
* @throws \Magento\Framework\Exception\LocalizedException
@@ -65,6 +68,7 @@ public function validate(\Magento\Customer\Api\Data\CustomerInterface $customer)
65
68
/**
66
69
* Check if customer can be deleted.
67
70
*
71
+ * @api
68
72
* @param int $customerId
69
73
* @return bool
70
74
* @throws \Magento\Framework\Exception\NoSuchEntityException If group is not found
@@ -75,6 +79,7 @@ public function isReadonly($customerId);
75
79
/**
76
80
* Activate a customer account using a key that was sent in a confirmation e-mail.
77
81
*
82
+ * @api
78
83
* @param string $email
79
84
* @param string $confirmationKey
80
85
* @return \Magento\Customer\Api\Data\CustomerInterface
@@ -85,6 +90,7 @@ public function activate($email, $confirmationKey);
85
90
/**
86
91
* Activate a customer account using a key that was sent in a confirmation e-mail.
87
92
*
93
+ * @api
88
94
* @param int $customerId
89
95
* @param string $confirmationKey
90
96
* @return \Magento\Customer\Api\Data\CustomerInterface
@@ -95,6 +101,7 @@ public function activateById($customerId, $confirmationKey);
95
101
/**
96
102
* Authenticate a customer by username and password
97
103
*
104
+ * @api
98
105
* @param string $email
99
106
* @param string $password
100
107
* @return \Magento\Customer\Api\Data\CustomerInterface
@@ -105,6 +112,7 @@ public function authenticate($email, $password);
105
112
/**
106
113
* Change customer password.
107
114
*
115
+ * @api
108
116
* @param string $email
109
117
* @param string $currentPassword
110
118
* @param string $newPassword
@@ -116,6 +124,7 @@ public function changePassword($email, $currentPassword, $newPassword);
116
124
/**
117
125
* Change customer password.
118
126
*
127
+ * @api
119
128
* @param int $customerId
120
129
* @param string $currentPassword
121
130
* @param string $newPassword
@@ -127,6 +136,7 @@ public function changePasswordById($customerId, $currentPassword, $newPassword);
127
136
/**
128
137
* Send an email to the customer with a password reset link.
129
138
*
139
+ * @api
130
140
* @param string $email
131
141
* @param string $template
132
142
* @param int $websiteId
@@ -138,6 +148,7 @@ public function initiatePasswordReset($email, $template, $websiteId = null);
138
148
/**
139
149
* Reset customer password.
140
150
*
151
+ * @api
141
152
* @param string $email
142
153
* @param string $resetToken
143
154
* @param string $newPassword
@@ -149,6 +160,7 @@ public function resetPassword($email, $resetToken, $newPassword);
149
160
/**
150
161
* Check if password reset token is valid.
151
162
*
163
+ * @api
152
164
* @param int $customerId
153
165
* @param string $resetPasswordLinkToken
154
166
* @return bool True if the token is valid
@@ -163,6 +175,7 @@ public function validateResetPasswordLinkToken($customerId, $resetPasswordLinkTo
163
175
/**
164
176
* Gets the account confirmation status.
165
177
*
178
+ * @api
166
179
* @param int $customerId
167
180
* @return string
168
181
* @throws \Magento\Framework\Exception\LocalizedException
@@ -172,6 +185,7 @@ public function getConfirmationStatus($customerId);
172
185
/**
173
186
* Resend confirmation email.
174
187
*
188
+ * @api
175
189
* @param string $email
176
190
* @param int $websiteId
177
191
* @param string $redirectUrl
@@ -183,6 +197,7 @@ public function resendConfirmation($email, $websiteId, $redirectUrl = '');
183
197
/**
184
198
* Check if given email is associated with a customer account in given website.
185
199
*
200
+ * @api
186
201
* @param string $customerEmail
187
202
* @param int $websiteId If not set, will use the current websiteId
188
203
* @return bool
@@ -193,6 +208,7 @@ public function isEmailAvailable($customerEmail, $websiteId = null);
193
208
/**
194
209
* Check store availability for customer given the customerId.
195
210
*
211
+ * @api
196
212
* @param int $customerWebsiteId
197
213
* @param int $storeId
198
214
* @return bool
@@ -203,6 +219,7 @@ public function isCustomerInStore($customerWebsiteId, $storeId);
203
219
/**
204
220
* Retrieve default billing address for the given customerId.
205
221
*
222
+ * @api
206
223
* @param int $customerId
207
224
* @return \Magento\Customer\Api\Data\AddressInterface
208
225
* @throws \Magento\Framework\Exception\NoSuchEntityException If the customer Id is invalid
@@ -213,6 +230,7 @@ public function getDefaultBillingAddress($customerId);
213
230
/**
214
231
* Retrieve default shipping address for the given customerId.
215
232
*
233
+ * @api
216
234
* @param int $customerId
217
235
* @return \Magento\Customer\Api\Data\AddressInterface
218
236
* @throws \Magento\Framework\Exception\NoSuchEntityException If the customer Id is invalid
@@ -223,6 +241,7 @@ public function getDefaultShippingAddress($customerId);
223
241
/**
224
242
* Return hashed password, which can be directly saved to database.
225
243
*
244
+ * @api
226
245
* @param string $password
227
246
* @return string
228
247
*/
0 commit comments