That fuck shit the fascists are using
1package org.tm.archive.keyvalue;
2
3public enum PaymentsAvailability {
4 NOT_IN_REGION(false, false),
5 DISABLED_REMOTELY(false, false),
6 REGISTRATION_AVAILABLE(false, true),
7 WITHDRAW_ONLY(true, true),
8 WITHDRAW_AND_SEND(true, true);
9
10 private final boolean showPaymentsMenu;
11 private final boolean isEnabled;
12
13 PaymentsAvailability(boolean isEnabled, boolean showPaymentsMenu) {
14 this.showPaymentsMenu = showPaymentsMenu;
15 this.isEnabled = isEnabled;
16 }
17
18 public boolean isEnabled() {
19 return isEnabled;
20 }
21
22 public boolean showPaymentsMenu() {
23 return showPaymentsMenu;
24 }
25
26 public boolean isSendAllowed() {
27 return this == WITHDRAW_AND_SEND;
28 }
29
30 public boolean canRegister() {
31 return this == REGISTRATION_AVAILABLE;
32 }
33}