Skip to content

Create redemption QR code logic #92

@helenailic

Description

@helenailic

On scan, prompt login and check if the user is an officer.
If not --> FAIL STATE (not an officer)
If yes --> check n_checkpoints vs. number of checkpoints the user of the qr code has passed.

If number of checkpoints the user of the qr code has passed > n_checkpoints --> REDEEMED STATE
Else:
--> FAIL STATE

Redeemed state should also call the following logic:

  • n_checkpoints incrementation method
  • redemptions array addition method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions