Resolve "Add Paramount insurance and PayMongo support for RESQ2 API" #1699

Merged
arcticzero merged 22 commits from 761-add-paramount-insurance-and-paymongo-support-for-resq2-api into 746-resq-2-0-final 2023-11-17 20:28:03 +00:00
Showing only changes of commit da87b386a3 - Show all commits

View file

@ -333,6 +333,9 @@ class VehicleController extends ApiController
'transaction_status' => $gt->getStatus(),
'premium_amount' => (string)bcdiv($gt->getAmount(), 100), // NOTE: hard expressing as string so it's consistent
];
// get information changelog
$insurance['changelog'] = $iobj->getMetadata()['changes'] ?? [];
}
$row['latest_insurance'] = $insurance;