Add display name for payment method in rider API JO data. #424

This commit is contained in:
Korina Cordero 2020-06-22 10:56:41 +00:00
parent 42d086ff5d
commit 47eaa6488f

View file

@ -449,6 +449,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
'items' => $inv_items,
],
'mode_of_payment' => $jo->getModeOfPayment(),
'mode_of_payment_display' => CMBModeOfPayment::getName($jo->getModeOfPayment()),
'trade_in_type' => $trade_in_type,
'promo' => $promo_data,
// TODO: load the actual
@ -587,6 +588,7 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
'items' => $inv_items,
],
'mode_of_payment' => $jo->getModeOfPayment(),
'mode_of_payment_display' => CMBModeOfPayment::getName($jo->getModeOfPayment()),
'trade_in_type' => $trade_in_type,
'promo' => $promo_data,
// TODO: load the actual
@ -747,7 +749,8 @@ class CMBRiderAPIHandler implements RiderAPIHandlerInterface
'vat' => $inv->getVat(),
'items' => $inv_items,
],
'mode_of_payment' => $jo->getModeOfPayment(),
'mode_of_payment' => $jo->getModeOfPayment(),
'mode_of_payment_display' => CMBModeOfPayment::getName($jo->getModeOfPayment()),
'trade_in_type' => $trade_in_type,
'promo' => $promo_data,
// TODO: load the actual