feat: delete customer data in compliance with GDPR regulations (#64)

This commit is contained in:
Manoj Ghorela
2022-12-13 19:39:32 +05:30
committed by GitHub
parent 3655c8de82
commit ae8869318b
12 changed files with 246 additions and 35 deletions

View File

@ -39,7 +39,9 @@ pub struct CustomerId {
#[derive(Default, Debug, Deserialize, Serialize)]
pub struct CustomerDeleteResponse {
pub customer_id: String,
pub deleted: bool,
pub customer_deleted: bool,
pub address_deleted: bool,
pub payment_methods_deleted: bool,
}
pub fn generate_customer_id() -> String {