Preparing your design workspace

Loading the problem and your saved attempt…

Design a Payments and Cards Domain

Derive a UML object model for customers, accounts, credit and debit cards, then evolve it without breaking a debit-card count query.

Design a low-level object model and UML class diagram for a payments and cards domain. Identify the required classes, decide which objects own each relationship, and show relationship direction and cardinality.

The design must answer how many debit cards are linked to a given customer and must remain explainable when two additional requirements arrive.

For this exercise, assume card identifiers are unique and the model must reject any link that would make a card's ownership contradictory. A missing customer is an explicit not-found result rather than a count of zero. Use card freezing and adding a prepaid-card kind as the two authored practice changes.

You should derive and justify the customer, account, and card ownership model and its multiplicities rather than treating them as given. Payment execution, authentication, hardware interactions, settlement, rewards, fraud scoring, and persistence technology are outside scope.