Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add metadata on order line payload notifications
CarlesLopezMagem1270db780511
diff --git a/saleor/order/notifications.py b/saleor/order/notifications.pyindex 6bf2e42b0f..bfcbce956e 100644--- a/saleor/order/notifications.py+++ b/saleor/order/notifications.py@@ -132,6 +132,7 @@ def get_order_line_payload(line: "OrderLine"):"unit_discount_reason": line.unit_discount_reason,"unit_discount_type": line.unit_discount_type,"unit_discount_amount": line.unit_discount_amount,+ "metadata": line.metadata,}diff --git a/saleor/order/tests/test_notifications.py b/saleor/order/tests/test_notifications.pyindex 26a55e3dbb..4456352403 100644--- a/saleor/order/tests/test_notifications.py+++ b/saleor/order/tests/test_notifications.py@@ -177,6 +177,7 @@ def test_get_order_line_payload(order_line):"unit_discount_reason": order_line.unit_discount_reason,"unit_discount_type": order_line.unit_discount_type,"unit_discount_value": order_line.unit_discount_value,+ "metadata": order_line.metadata,}