Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Added notes on docs on how to use the API
NyanKiyoshi8464846f6de6
diff --git a/docs/architecture/events.rst b/docs/architecture/events.rstindex 4d782af881..7ceed4dd57 100644--- a/docs/architecture/events.rst+++ b/docs/architecture/events.rst@@ -6,7 +6,7 @@ Eventswhen certain actions are completed, such us creating the order,cancelling fulfillment or completing a payment.-Order events+Order Events------------+--------------------------+--------------------------+---------------------------------------------------------------------+@@ -45,6 +45,11 @@ Order events| ``other`` | ``OTHER`` | Status used during reimporting of the legacy events. |+--------------------------+--------------------------+---------------------------------------------------------------------++Email Event Types+-----------------++Fill me...+Events Design-------------@@ -62,3 +67,23 @@ directly run ``save()`` for the creation... |QuerySet.bulk_create| replace:: ``QuerySet.bulk_create``.. _QuerySet.bulk_create: https://docs.djangoproject.com/en/1.10/ref/models/querysets/#django.db.models.query.QuerySet.bulk_create++Sending Events+--------------++To send an event, simply do the following:++.. code-block:: python+ event = OrderEvent.note_added_event(+ order=order, source=user, message='hello world!')+ event.save()++If now you want to send a 'sent email' event you would do the following:++.. code-block:: python+ event = OrderEvent.email_sent_event(+ order=order, email_type=OrderEventsEmails.TRACKING_UPDATED,+ source=user)+ event.save()++Notice how we are providing the email type.