シナリオ
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.
この図に含まれるもの
図の背後にある意思決定を読み解く。
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.