Delete profile
Description#
Allows clients to permanently delete their account.
Validation#
- This function cannot be activated if the user didn't create a profile.
- This function cannot be activated while the client has an active orders to prevent undefined behaviour.
Mechanism#
- Activate delete credit card recursively on all the client's credit cards.
- Activate delete saved address recursively on all the client's saved addresses.
- Delete the following data from the client
- First name
- Last name
- Phone number
- Change Entity propertyDeleted to Valuetrue