/**
* Payment type "cash"
*/
- PAYMENT_TYPE_CASH,
+ PAYMENT_TYPE_CASH("PAYMENT_TYPE_CASH"),
/**
* Payment type "credit card"
*/
- PAYMENT_TYPE_CREDIT_CARD,
+ PAYMENT_TYPE_CREDIT_CARD("PAYMENT_TYPE_CREDIT_CARD"),
+ /**
+ * Payment type "debit card"
+ */
+ PAYMENT_TYPE_DEBIT_CARD("PAYMENT_TYPE_DEBIT_CARD"),
/**
* Payment type "prepayment"
*/
- PAYMENT_TYPE_PREPAYMENT,
+ PAYMENT_TYPE_PREPAYMENT("PAYMENT_TYPE_PREPAYMENT"),
/**
* Payment type "invoice"
*/
- PAYMENT_TYPE_INVOICE;
+ PAYMENT_TYPE_INVOICE("PAYMENT_TYPE_INVOICE");
+
+ /**
+ * I18n key
+ */
+ private final String i18nKey;
+
+ /**
+ * Constructor with i18n key
+ * <p>
+ * @param i18Key I18n key
+ */
+ private PaymentType (final String i18Key) {
+ // Set both here
+ this.i18nKey = i18Key;
+ }
+
+ /**
+ * Getter for i18n key
+ * <p>
+ * @return I18n key
+ */
+ public String getI18nKey () {
+ return this.i18nKey;
+ }
}