Skip to content
This repository has been archived by the owner on Jul 18, 2024. It is now read-only.

orders: manage order status #54

Closed
5 tasks done
nmoutschen opened this issue Mar 11, 2020 · 0 comments
Closed
5 tasks done

orders: manage order status #54

nmoutschen opened this issue Mar 11, 2020 · 0 comments
Labels
service:orders Issue related to the orders service

Comments

@nmoutschen
Copy link
Contributor

nmoutschen commented Mar 11, 2020

This change adds a new field to orders named "status", which is already part of the Order schema, and a new field called "history" containing the changes for the order over time.

The "status" field could have the following values:

  • NEW
  • PACKAGED
  • PACKAGING_FAILED
  • DELIVERY_FAILED
  • FULFILLED

This should add the following capabilities:

  • New orders should have a status field with the value "NEW".
  • Changing the status to PACKAGED following a PackageCreated event from the warehouse service.
  • Changing the status to FULFILLED following a DeliveryCompleted event from the delivery service.
  • Changing the status to PACKAGING_FAILED following a PackagingFailed event from the warehouse service.
  • Changing the status to DELIVERY_FAILED following a DeliveryFailed event from the delivery service.
@nmoutschen nmoutschen added the service:orders Issue related to the orders service label Mar 11, 2020
@nmoutschen nmoutschen added this to the Public release milestone Mar 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service:orders Issue related to the orders service
Projects
None yet
Development

No branches or pull requests

1 participant