Include email in customer info endpoint #809

This commit is contained in:
Ramon Gutierrez 2024-10-10 04:03:30 +08:00
parent 0a4ea563d9
commit a724b00ce7

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