Include email in customer info endpoint #809
This commit is contained in:
parent
0a4ea563d9
commit
a724b00ce7
1 changed files with 2 additions and 0 deletions
|
|
@ -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(),
|
||||
]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue