Skip to content
PlantUML templates

Payments Domain (PlantUML Class)

Payment, customer and method classes with an enum.

Template previewPlantUML
Rendering…

What this template contains

Source
25 lines

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