Add trade_in_type output to get job order call in rider api #159
This commit is contained in:
parent
863bf56453
commit
2925ec3df3
1 changed files with 5 additions and 0 deletions
|
|
@ -363,6 +363,10 @@ class RAPIController extends Controller
|
|||
$promo_data = null;
|
||||
}
|
||||
|
||||
$trade_in_type = $jo->getTradeInType();
|
||||
if (empty($trade_in_type))
|
||||
$trade_in_type = 'none';
|
||||
|
||||
|
||||
$data = [
|
||||
'job_order' => [
|
||||
|
|
@ -398,6 +402,7 @@ class RAPIController extends Controller
|
|||
'items' => $inv_items,
|
||||
],
|
||||
'mode_of_payment' => $jo->getModeOfPayment(),
|
||||
'trade_in_type' => $trade_in_type,
|
||||
'promo' => $promo_data,
|
||||
]
|
||||
];
|
||||
|
|
|
|||
Loading…
Reference in a new issue