1..*1«interface»Payable+ pay(amount): Receipt«abstract»Document+ id: UUID+ createdAt: Date+ render(): PDFInvoice+ dueDate: Date+ total(): Money+ pay(amount): ReceiptLineItem+ sku: String+ quantity: IntCustomer+ name: String发票类模型一个继承文档、实现可支付接口并拥有明细行的发票类。箭头承载含义:空心三角表示继承,虚线表示接口实现,实心菱形表示部分随整体一同消亡。被实现的类获得强调色。在编辑器中打开