Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add applyOncePerOrder to VoucherInput in API
fowczarekee9bd1e73679
diff --git a/saleor/graphql/discount/mutations.py b/saleor/graphql/discount/mutations.pyindex 38c3a8ee77..50969c6582 100644--- a/saleor/graphql/discount/mutations.py+++ b/saleor/graphql/discount/mutations.py@@ -100,6 +100,9 @@ class VoucherInput(graphene.InputObjectType):graphene.String,description="Country codes that can be used with the shipping voucher",)+ apply_once_per_order = graphene.Boolean(+ description="Voucher should be applied to the cheapest item or order"+ )class VoucherCreate(ModelMutation):