UML class · Diagram Design

Payments domain · class diagram

Payments domain · UML class diagram Class diagram showing Card and BankTransfer realizing a PaymentMethod interface, PaymentService depending on PaymentMethod, and Order composed of OrderLine while associated with Customer. USES 1 1..* 0..* 1 «interface» PaymentMethod + authorize(amount: Money): AuthResult + capture(ref: String): void Card - number: String - expiry: Date - cvv: String BankTransfer - iban: String - accountHolder: String PaymentService + charge(order: Order): Receipt Order - id: String - placedAt: Date - total: Money OrderLine - sku: String - qty: Int - price: Money Customer - id: String - name: String - email: String LEGEND · RELATIONSHIPS Inheritance Realization Composition · owns Aggregation · has Association Dependency · uses