Revert typecasting for now #162
This commit is contained in:
parent
b3eb68346f
commit
b5c67f1c91
1 changed files with 4 additions and 4 deletions
|
|
@ -321,8 +321,8 @@ class APIController extends Controller
|
||||||
$data = [
|
$data = [
|
||||||
'first_name' => $cust->getFirstName(),
|
'first_name' => $cust->getFirstName(),
|
||||||
'last_name' => $cust->getLastName(),
|
'last_name' => $cust->getLastName(),
|
||||||
'priv_third_party' => $cust->getPrivacyThirdParty(),
|
'priv_third_party' => (bool) $cust->getPrivacyThirdParty(),
|
||||||
'priv_promo' => $cust->getPrivacyPromo(),
|
'priv_promo' => (bool) $cust->getPrivacyPromo(),
|
||||||
];
|
];
|
||||||
$res->setData($data);
|
$res->setData($data);
|
||||||
|
|
||||||
|
|
@ -1587,8 +1587,8 @@ class APIController extends Controller
|
||||||
$items[] = [
|
$items[] = [
|
||||||
'id' => $item->getID(),
|
'id' => $item->getID(),
|
||||||
'title' => $item->getTitle(),
|
'title' => $item->getTitle(),
|
||||||
'qty' => (int) $item->getQuantity(),
|
'qty' => $item->getQuantity(),
|
||||||
'price' => (float) $item->getPrice(),
|
'price' => $item->getPrice(),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue