From 96a7cc929e24a74792c12258352367fb196cf998 Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Sat, 3 Aug 2024 06:31:35 +0800 Subject: [PATCH] Add email to customer info endpoint #799 --- 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(), ]);