16
16
use Xendit \M2Invoice \Helper \ApiRequest ;
17
17
use Magento \Quote \Api \CartRepositoryInterface ;
18
18
use Magento \Framework \Serialize \Serializer \Json as MagentoSerializerJson ;
19
- use Xendit \M2Invoice \External \Serialize \Serializer \Json as XenditSerializerJson ;
20
19
use Magento \Quote \Api \Data \CartInterface ;
21
20
use Magento \Customer \Model \Session as CustomerSession ;
22
21
use Xendit \M2Invoice \Helper \Metric ;
@@ -109,7 +108,6 @@ class AbstractInvoice extends AbstractMethod
109
108
* @param RuleRepository $ruleRepo
110
109
* @param CartRepositoryInterface $quoteRepository
111
110
* @param MagentoSerializerJson $magentoSerializerJson
112
- * @param XenditSerializerJson $xenditSerializerJson
113
111
* @param CustomerSession $customerSession
114
112
*/
115
113
public function __construct (
@@ -126,7 +124,7 @@ public function __construct(
126
124
RuleRepository $ ruleRepo ,
127
125
CartRepositoryInterface $ quoteRepository ,
128
126
MagentoSerializerJson $ magentoSerializerJson ,
129
- XenditSerializerJson $ xenditSerializerJson ,
127
+ // XenditSerializerJson $xenditSerializerJson,
130
128
CustomerSession $ customerSession ,
131
129
Metric $ metricHelper
132
130
) {
@@ -147,15 +145,9 @@ public function __construct(
147
145
$ this ->ruleRepo = $ ruleRepo ;
148
146
$ this ->quoteRepository = $ quoteRepository ;
149
147
$ this ->magentoSerializerJson = $ magentoSerializerJson ;
150
- $ this ->xenditSerializerJson = $ xenditSerializerJson ;
151
148
$ this ->customerSession = $ customerSession ;
152
149
$ this ->metricHelper = $ metricHelper ;
153
-
154
- if (interface_exists ("Magento\Framework\Serialize\Serializer\Json " )) {
155
- $ this ->serializer = $ this ->magentoSerializerJson ;
156
- } else {
157
- $ this ->serializer = $ this ->xenditSerializerJson ;
158
- }
150
+ $ this ->serializer = $ this ->magentoSerializerJson ;
159
151
}
160
152
161
153
/**
0 commit comments