diff --git a/herodb/src/models/biz/invoice.rs b/herodb/src/models/biz/invoice.rs index e4030c1..5c66257 100644 --- a/herodb/src/models/biz/invoice.rs +++ b/herodb/src/models/biz/invoice.rs @@ -27,15 +27,17 @@ pub struct Payment { pub amount: Currency, pub date: DateTime, pub method: String, + pub comment: String, } impl Payment { /// Create a new payment - pub fn new(amount: Currency, method: String) -> Self { + pub fn new(amount: Currency, method: String, comment: String) -> Self { Self { amount, date: Utc::now(), method, + comment, } } }