Skip to content
PlantUML templates

Payments Domain (PlantUML Class)

Payment, customer and method classes with an enum.

Template previewPlantUML
Rendering…

Make it your own.

@startuml
class Payment {
  +id: UUID
  +amount: Money
  +status: Status
  +capture(): void
  +refund(): void
}
class Customer {
  +id: UUID
  +name: String
}
class PaymentMethod {
  +token: String
  +type: String
}
enum Status {
  PENDING
  CAPTURED
  REFUNDED
}
Customer "1" o-- "*" Payment
Payment "1" --> "1" PaymentMethod
Payment --> Status
@enduml