We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 239d499 commit 2ac86b4Copy full SHA for 2ac86b4
app/code/Magento/SalesGraphQl/Model/Formatter/Order.php
@@ -57,7 +57,7 @@ public function format(OrderInterface $orderModel): array
57
'shipping_address' => $this->orderAddress->getOrderShippingAddress($orderModel),
58
'billing_address' => $this->orderAddress->getOrderBillingAddress($orderModel),
59
'payment_methods' => $this->orderPayments->getOrderPaymentMethod($orderModel),
60
- 'applied_coupons' => $orderModel->getCouponCode() ? ['code' => $orderModel->getCouponCode()] : [],
+ 'applied_coupons' => $orderModel->getCouponCode() ? [['code' => $orderModel->getCouponCode()]] : [],
61
'model' => $orderModel,
62
'comments' => $this->getOrderComments($orderModel)
63
];
0 commit comments