ADORSYS-GIS / e2e-banking-app

Banking app for people
https://adorsys-gis.github.io/e2e-banking-app/
Mozilla Public License 2.0
4 stars 21 forks source link

User story 14: As PawerPay Kiosk, I would like to check my balance #1

Open stephane-segning opened 6 months ago

stephane-segning commented 6 months ago

Description

Sequence Diagram

sequenceDiagram

participant kiosk as kiosk
participant ppa as power pay app
participant pps as power pay service
kiosk->>ppa : Check Balance ()
ppa->>pps : send request ()
pps-->>ppa : Requests for PIN(sends procedure ID)
ppa-->>kiosk : Display enter PIN
kiosk->>ppa : Send PIN (PIN)
ppa->>pps : send (PIN, procedure ID)
pps->>pps : validate PIN and check balance
pps-->>ppa : return balance info
ppa-->>kiosk : Display balance

Wireframe

Tickets and Explanations

Methodology: To implement these, we'll need to include a procedure object with a status.

---
title: Class Diagramm
---
classDiagram
    Procedure -- Status
    Procedure -- Type
    Procedure <|-- Transaction
    Procedure <|-- CheckBalance
    Procedure <|-- UserRegistration

    class Status {
        <<enumeration>>
        DONE
        WAITING
        ERROR
    }
    class Type {
        <<enumeration>>
        Transaction
        CheckBalance
    }
    class Procedure {
        <<Abstract>>
        +String id
        -Status status = WAITING
        +String phoneNumber
        +void markAsDone()
        +void markAsError()
        +bool isDone()
        +bool isError()
        +bool isWaiting()
        +Type getType()
    }
    class Transaction {
        +String receiverPhoneNumber
        +Double amount
        +String currency = "XAF"
    }
    class CheckBalance {
    }
    class UserRegistration {
        +String opt
        +String userName
    }
    class User {
        +String pin (hashed)
        +String phoneNumber
        +String userName
    }