Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add customer note to draft orders api
IKarbowiak920b729f1fc2
diff --git a/saleor/graphql/order/mutations/draft_orders.py b/saleor/graphql/order/mutations/draft_orders.pyindex c7bf1d00fb..f82cb78bf0 100644--- a/saleor/graphql/order/mutations/draft_orders.py+++ b/saleor/graphql/order/mutations/draft_orders.py@@ -52,6 +52,9 @@ class DraftOrderInput(InputObjectType):voucher = graphene.ID(description="ID of the voucher associated with the order.", name="voucher")+ customer_note = graphene.String(+ description="A note from a customer. Visible by customers in the order summary."+ )class DraftOrderCreateInput(DraftOrderInput):diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 67503ff600..9baff5b425 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -1483,6 +1483,7 @@ input DraftOrderCreateInput {shippingAddress: AddressInputshippingMethod: IDvoucher: ID+ customerNote: Stringlines: [OrderLineCreateInput]}@@ -1500,6 +1501,7 @@ input DraftOrderInput {shippingAddress: AddressInputshippingMethod: IDvoucher: ID+ customerNote: String}type DraftOrderLineDelete {