Add email to customer info endpoint #799

This commit is contained in:
Ramon Gutierrez 2024-08-03 06:31:35 +08:00
parent fe4806f41a
commit 96a7cc929e

View file

@ -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(),
]);