public class PaymentsLineFormatter extends Object
Constructor and Description |
---|
PaymentsLineFormatter(String type,
Double value,
String user,
String host,
String currencyCode,
Double currencyConversion,
String comment)
Creates a new PaymentsLine instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getComment()
The comment of the payment.
|
String |
getType()
The payment type string as stored in the DB.
|
String |
getUserName()
The name of the user associated with the ticket belonging to the payment.
|
Double |
getValue()
The total amount for the respective type.
|
String |
printForeignValue()
The currency formatted total for payments made in a foreign currency.
|
String |
printsValue()
The 2 decimals formatted total for the respective type.
|
String |
printType()
The localized payment type string.
|
String |
printValue()
The currency formatted total for the respective type.
|
public PaymentsLineFormatter(String type, Double value, String user, String host, String currencyCode, Double currencyConversion, String comment)
type
- payment type, e.g. cash or magcardvalue
- public String printType()
public String getType()
public String printsValue()
public String printValue()
public String printForeignValue()
public Double getValue()
public String getUserName()
public String getComment()
Copyright © 2021. All rights reserved.