Add email to customer info endpoint #799
This commit is contained in:
parent
fe4806f41a
commit
96a7cc929e
1 changed files with 2 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ class CustomerController extends ApiController
|
||||||
return new ApiResponse(true, '', [
|
return new ApiResponse(true, '', [
|
||||||
'first_name' => '',
|
'first_name' => '',
|
||||||
'last_name' => '',
|
'last_name' => '',
|
||||||
|
'email' => '',
|
||||||
'priv_third_party' => (bool) false,
|
'priv_third_party' => (bool) false,
|
||||||
'priv_promo' => (bool) false,
|
'priv_promo' => (bool) false,
|
||||||
]);
|
]);
|
||||||
|
|
@ -36,6 +37,7 @@ class CustomerController extends ApiController
|
||||||
return new ApiResponse(true, '', [
|
return new ApiResponse(true, '', [
|
||||||
'first_name' => $cust->getFirstName(),
|
'first_name' => $cust->getFirstName(),
|
||||||
'last_name' => $cust->getLastName(),
|
'last_name' => $cust->getLastName(),
|
||||||
|
'email' => $cust->getEmail(),
|
||||||
'priv_third_party' => (bool) $cust->getPrivacyThirdParty(),
|
'priv_third_party' => (bool) $cust->getPrivacyThirdParty(),
|
||||||
'priv_promo' => (bool) $cust->getPrivacyPromo(),
|
'priv_promo' => (bool) $cust->getPrivacyPromo(),
|
||||||
]);
|
]);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue