File tree Expand file tree Collapse file tree
Shared/CustomersRestApi/Transfer Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -47,12 +47,12 @@ public function confirmCustomer(RestRequestInterface $restRequest): RestResponse
4747 /** @var \Generated\Shared\Transfer\RestCustomerConfirmationAttributesTransfer $restCustomerConfirmationAttributesTransfer */
4848 $ restCustomerConfirmationAttributesTransfer = $ restRequest ->getResource ()->getAttributes ();
4949
50- if (!$ restCustomerConfirmationAttributesTransfer ->getConfirmationCode ()) {
50+ if (!$ restCustomerConfirmationAttributesTransfer ->getRegistrationKey ()) {
5151 return $ this ->customerRestResponseBuilder ->createCustomerConfirmationCodeMissingErrorResponse ();
5252 }
5353
5454 $ customerTransfer = (new CustomerTransfer ())
55- ->setRegistrationKey ($ restCustomerConfirmationAttributesTransfer ->getConfirmationCode ());
55+ ->setRegistrationKey ($ restCustomerConfirmationAttributesTransfer ->getRegistrationKey ());
5656
5757 $ customerResponseTransfer = $ this ->customerClient ->confirmCustomerRegistration ($ customerTransfer );
5858
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public function createCustomerConfirmationErrorResponse(ArrayObject $customerErr
8787 $ restResponse = $ this ->mapCustomerErrorsToRestResponse ($ customerErrorTransfers , $ restResponse );
8888
8989 if (!count ($ restResponse ->getErrors ())) {
90- $ this ->addDefaultCustomerConfirmationError ($ restResponse );
90+ $ this ->addCustomerConfirmationFailedError ($ restResponse );
9191 }
9292
9393 return $ restResponse ;
@@ -111,7 +111,7 @@ public function createCustomerConfirmationCodeMissingErrorResponse(): RestRespon
111111 *
112112 * @return \Spryker\Glue\GlueApplication\Rest\JsonApi\RestResponseInterface
113113 */
114- protected function addDefaultCustomerConfirmationError (RestResponseInterface $ restResponse ): RestResponseInterface
114+ protected function addCustomerConfirmationFailedError (RestResponseInterface $ restResponse ): RestResponseInterface
115115 {
116116 $ restErrorMessageTransfer = (new RestErrorMessageTransfer ())
117117 ->setCode (CustomersRestApiConfig::RESPONSE_CODE_CONFIRMATION_FAILED )
Original file line number Diff line number Diff line change @@ -212,5 +212,5 @@ customer-restore-password:
212212
213213customer-confirmation :
214214 post :
215- confirmationCode :
215+ registrationKey :
216216 - NotBlank
Original file line number Diff line number Diff line change 6262 </transfer >
6363
6464 <transfer name =" RestCustomerConfirmationAttributes" >
65- <property name =" confirmationCode " type =" string" restRequestParameter =" required" />
65+ <property name =" registrationKey " type =" string" restRequestParameter =" required" />
6666 </transfer >
6767
6868 <transfer name =" Address" >
You can’t perform that action at this time.
0 commit comments