Skip to content

Logic for purchasing items in our store #8

@5witchkr

Description

@5witchkr

We need to implement the logic for purchasing items in our store.
Each item can have multiple types, so we will create an object named "ItemDomain" and include a field to specify the type of item (e.g., "Book", "Course", "Other...").

The purchase logic can be broken down into three processes:

  1. Checking the amount of money on hand.
  2. Subtracting the purchase amount from the available funds.
  3. Adding the purchased item to the character's inventory.

If there are any additional considerations that need to be taken into account, please leave a comment.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions