From 47eaa6488f2d801f89d917be78fa69f0ac396f53 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Mon, 22 Jun 2020 10:56:41 +0000 Subject: [PATCH] Add display name for payment method in rider API JO data. #424 --- src/Service/RiderAPIHandler/CMBRiderAPIHandler.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php index e1ca9026..f884a7ac 100644 --- a/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php +++ b/src/Service/RiderAPIHandler/CMBRiderAPIHandler.php @@ -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