Add changelog to insurance info on vehicle endpoint #761
This commit is contained in:
parent
d3054760d3
commit
da87b386a3
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue