Skip to content

Commit

Permalink
Demo process flow
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Apr 25, 2022
1 parent eec20ac commit b125b17
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions application/flow/Order product.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Order product

* Form `Order`
* Reservation
- Notify "The product is out of stock"
* Form `Payment`
* Payment
+ Notify "Payment was successful"
- > Return payment
* Pick up from the warehouse
- > Return to the warehouse
* Shipping by carrier
+ Notify "The product was successfully sent"
- Notify "The product was not sent"
* Finalization
+ Product feedback
+ Service feedback

# Reservation

* `getStockBalance(Order): Balance`
* `checkStockBalance(Order, Balance): Availability`
* `makeReservation(Order, Balance, Availability): Reservation`

# Pick up from the warehouse

* `pickProduct(Reservation): Package`
* `removeReservation(Reservation)`

# Return to the warehouse

* `returnProduct(Package): Return`

# Payment

* `makePayment(Order): Payment`

# Return payment

* `returnPayment(Payment): Refund`

# Shipping by carrier

* `selectCarrier(Order, Package): Carrier`
* `makeShipment(Package, Carrier): Shipment`

0 comments on commit b125b17

Please sign in to comment.