Merge branch '162-phase-2-changes' into 'master'

Resolve "Phase 2 changes"

Closes #162

See merge request jankstudio/resq!172
This commit is contained in:
Kendrick Chan 2018-08-13 06:53:03 +00:00
commit 0bc1100240

View file

@ -321,8 +321,8 @@ class APIController extends Controller
$data = [
'first_name' => $cust->getFirstName(),
'last_name' => $cust->getLastName(),
'priv_third_party' => $cust->getPrivacyThirdParty(),
'priv_promo' => $cust->getPrivacyPromo(),
'priv_third_party' => (bool) $cust->getPrivacyThirdParty(),
'priv_promo' => (bool) $cust->getPrivacyPromo(),
];
$res->setData($data);
@ -1587,8 +1587,8 @@ class APIController extends Controller
$items[] = [
'id' => $item->getID(),
'title' => $item->getTitle(),
'qty' => (int) $item->getQuantity(),
'price' => (float) $item->getPrice(),
'qty' => $item->getQuantity(),
'price' => $item->getPrice(),
];
}