From a724b00ce77b4d81148d45574d78896ddc9c0445 Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Thu, 10 Oct 2024 04:03:30 +0800 Subject: [PATCH] Include email in customer info endpoint #809 --- src/Controller/CustomerAppAPI/CustomerController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Controller/CustomerAppAPI/CustomerController.php b/src/Controller/CustomerAppAPI/CustomerController.php index 4ba7279c..2abfe2e5 100644 --- a/src/Controller/CustomerAppAPI/CustomerController.php +++ b/src/Controller/CustomerAppAPI/CustomerController.php @@ -27,6 +27,7 @@ class CustomerController extends ApiController return new ApiResponse(true, '', [ 'first_name' => '', 'last_name' => '', + 'email' => '', 'priv_third_party' => (bool) false, 'priv_promo' => (bool) false, ]); @@ -36,6 +37,7 @@ class CustomerController extends ApiController return new ApiResponse(true, '', [ 'first_name' => $cust->getFirstName(), 'last_name' => $cust->getLastName(), + 'email' => $cust->getEmail(), 'priv_third_party' => (bool) $cust->getPrivacyThirdParty(), 'priv_promo' => (bool) $cust->getPrivacyPromo(), ]);