Package passport.domain.models.purchases
Class PaymentDetails
java.lang.Object
passport.domain.models.purchases.PaymentDetails
Represents the details of a payment, including the payment method and amount.
-
Constructor Summary
ConstructorDescriptionPaymentDetails
(PaymentMethod method, Double amount) Constructs a new PaymentDetails object with the specified payment method and amount. -
Method Summary
-
Constructor Details
-
PaymentDetails
Constructs a new PaymentDetails object with the specified payment method and amount.- Parameters:
method
- the payment methodamount
- the payment amount
-
-
Method Details
-
amount
Returns the formatted payment amount as a string.- Returns:
- the formatted payment amount
-
html
Returns the HTML representation of the payment method.- Returns:
- the HTML representation of the payment method
-