The scenario
Models a voucher redemption flow where users redeem vouchers, generating redemption orders that are paid through an integrated payment gateway supporting credit cards and wallets.
What is in this drawing
Read the decisions behind it.
01
Separating PaymentMethod as abstract class with concrete CreditCard and Wallet subclasses
02
Using enumerations for voucher, redemption, and payment statuses
03
Modeling PaymentGateway as a processor of PaymentTransaction with a dependency from RedemptionOrder
When designing or documenting the domain model for an OTT voucher redemption module with external payment processing.
More like this