Shopify_API_Trainging_1

Arch Team Trainging

Requirements

Finite State Machine

Account

Customer

Cart

Sequence Diagram

Sign Up

User->ChatBot: Sign Up(providing basic info)
ChatBot->Shopify: (API) CreateCustomer
Shopify->ChatBot: Response
Note left of User: Change State to "signin"
ChatBot->User: Sign Up result

Sign In

User->ChatBot: Sign In(inputing basic info)
ChatBot->Shopify: (API) GetCustomer
Shopify->ChatBot: Response
Note left of User: Change State to "signin"
ChatBot->User: Sign In result

Buy a stuff

TODO:

Note left of User: State: "signin"
User->ChatBot: List all Products
ChatBot->Shopify: (API) ListAllProducts
Shopify->ChatBot: Response(Products)
ChatBot->User: Product List
User->ChatBot: Choose products

State Machine Diagram

TODO:

TODOs

  • Configable
  • Unit tests (with mocking)
  • Documents
  • Panic handler and messages

References