feat: add alot

This commit is contained in:
2026-10-08 04:12:36 +02:00
parent ccf5165417
commit fc607cb7bd
99 changed files with 4981 additions and 3655 deletions
+8 -9
View File
@@ -1,16 +1,15 @@
enum PaymentMethod {
cash('cash', 'Cash', 'Cash payment'),
payconiq('payconiq', 'Payconiq', 'Payconiq QR payment'),
paymentPending('payment_pending', 'Payment pending', 'Unpaid remote close');
cash('cash'),
payconiq('payconiq'),
paymentPending('payment_pending');
final String value;
final String label;
final String description;
const PaymentMethod(this.value, this.label, this.description);
const PaymentMethod(this.value);
static PaymentMethod fromValue(String value) => PaymentMethod.values.firstWhere(
(e) => e.value == value,
static PaymentMethod fromValue(String value) =>
PaymentMethod.values.firstWhere(
(method) => method.value == value,
orElse: () => PaymentMethod.cash,
);
}
}