UML class · Diagram Design
PaymentMethod is the contract two payment methods realize. Order composes its line items and references a customer. PaymentService only depends on the interface, never the concrete methods.
THE HEADLINE
Card and BankTransfer both realize the interface — the dashed line with the hollow triangle. PaymentService only ever talks to the interface, never to a concrete method.
No getters or setters, no full attribute lists. Every member shown earns its place in the argument this diagram is making.